/* ══ Attract loop ══
   Full-screen idle overlay. Built entirely from the existing brand tokens so
   it reads as the product resting, not as a separate screensaver app. */

#attract-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;             /* below the kiosk panel (1000), above everything else */
    background: var(--color-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

#attract-overlay[hidden] { display: none; }

/* Each scene stacks in the same place and cross-fades. */
.attract-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8vh 8vw;
    opacity: 0;
    transition: opacity 900ms var(--ease-out-soft);
}

.attract-scene.is-active { opacity: 1; }

.attract-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Slow drift gives a still photograph life without motion artefacts. */
    animation: attractDrift 12s var(--ease-out-soft) forwards;
}

@keyframes attractDrift {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}

/* A wash so type stays legible over any photograph. */
.attract-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Enough wash for type to sit legibly over the lower half, and no more.
       The earlier ramp reached 88% opacity by two-thirds height and erased
       the photograph — on a kiosk selling a scan, the person IS the message. */
    background: linear-gradient(180deg,
        rgba(251, 249, 246, 0) 0%,
        rgba(251, 249, 246, 0.08) 45%,
        rgba(251, 249, 246, 0.62) 78%,
        rgba(251, 249, 246, 0.92) 100%);
}

.attract-body {
    position: relative;
    z-index: 1;
    max-width: 22ch;
}

.attract-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.15;
    color: var(--color-navy);
    text-wrap: balance;
    margin: 0;
}

.attract-sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.5;
    color: var(--color-ink);
    margin: 16px 0 0;
    max-width: 30ch;
}

.attract-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 14px;
}

/* ── Proof scene: the device visibly working ── */
/* Only drawn when the scene asks for it. position-face.jpg already contains a
   gold alignment oval, so drawing this over that photograph gives two — the
   overlay exists for footage that has none. */
.attract-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(46vw, 320px);
    height: min(62vw, 430px);
    transform: translate(-50%, -58%);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    opacity: 0.9;
    animation: attractTrace 3s var(--ease-out-soft) infinite;
}

@keyframes attractTrace {
    0%, 100% { box-shadow: 0 0 0 0 rgba(188,153,106,0.45); }
    50%      { box-shadow: 0 0 0 18px rgba(188,153,106,0); }
}

/* Sits in the lower third, clear of the face. Centred over the mouth it was
   both badly composed and hard to read against skin tones. */
.attract-metric {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-serif);
    color: var(--color-navy);
}

.attract-metric-value {
    font-size: clamp(3rem, 12vw, 6rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.attract-metric-unit {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-muted);
}

/* Not decoration: this is what stops a demo reading as a measurement. */
.attract-example {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    z-index: 1;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
    border: 1px solid rgba(138,132,120,0.4);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
}

/* ── List scene ── */
.attract-list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attract-list li {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    color: var(--color-ink);
    opacity: 0;
    animation: attractRise 600ms var(--ease-out-soft) forwards;
}

@keyframes attractRise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── Offer scene ── */
.attract-offer {
    position: relative;
    z-index: 1;
    border: 1px dashed var(--color-gold);
    border-radius: var(--radius-card);
    background: var(--color-gradient-light);
    padding: 22px 26px;
    max-width: 26ch;
}

/* ── Invitation ── */
.attract-pulse {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 22px;
    border-radius: 50%;
    background: var(--color-gold);
    animation: attractBeat 2.4s var(--ease-out-soft) infinite;
}

@keyframes attractBeat {
    0%, 100% { box-shadow: 0 0 0 0 rgba(188,153,106,0.55); }
    50%      { box-shadow: 0 0 0 16px rgba(188,153,106,0); }
}

/* Respect a viewer who has asked for less movement: keep the cross-fades
   and the timing, drop the travel. */
@media (prefers-reduced-motion: reduce) {
    .attract-photo { animation: none; }
    .attract-list li { animation-duration: 1ms; }
    .attract-oval, .attract-pulse { animation: none; }
}

/* A film fills the screen edge to edge. The kiosk is 9:16 and the footage is
   9:16, so cover crops nothing in practice — it only guards against an odd
   viewport. */
.attract-film {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-offwhite);
}
