/* ═══════════════════════════════════════════
   Welcome screen — graduation-glow
   Quiet arrival: the graduate's name fades and
   rises against the cream-parchment surface,
   with a low-density sparkle field drifting
   behind it and a signed attribution beneath.
   ═══════════════════════════════════════════ */

.welcome-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

/* ───── Sparkle field — drifts behind the name, low density ───── */
.welcome-sparkles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Second sparkle tone. On a light ground a second COLOUR cannot work: any
   tint saturated enough to read is darker than the parchment, which is what
   made these render as dark specks. Vary the glint's size instead, and let
   the shared .sparkle-layer--light variant own the colour. */
.sparkle-layer--light .sparkle.welcome-sparkle-sage {
    width: 9px;
    height: 9px;
}

/* ───── Graduate's name — the declaration ───── */
.welcome-name {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.75rem, 8vw, 5.25rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
    opacity: 0;
    transform: translateY(24px);
    animation: welcome-nameRise 900ms var(--ease-expo-out) 200ms both;
}

/* ───── Attribution — fixed tagline + sender's signature ───── */
.welcome-attribution {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    animation: welcome-nameRise 700ms var(--ease-expo-out) 1100ms both;
}

.welcome-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin: 0 0 0.6rem;
}

.welcome-from {
    font-family: var(--font-script);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--accent-warm-deep);
    margin: 0;
    line-height: 1.2;
}

/* ───── Full-bleed tap target — the lightest possible gesture ───── */
.welcome-tap-target {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
}

.welcome-hint {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    /* Its own breathe, not the shared reveel-breathe (0.6 -> 1): at the 0.6
       trough the only instruction on the first screen fell to 2.75:1. A
       one-off measurement near the peak read 6.14 and missed it entirely.
       0.9 -> 1 keeps the pulse and stays above AA throughout. */
    animation: welcome-fadeIn 900ms var(--ease-expo-out) 2000ms both,
               welcome-hintBreathe 3.2s var(--ease-breath) 2900ms infinite;
}

/* ───── Keyframes ───── */
@keyframes welcome-nameRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcome-fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

@keyframes welcome-hintBreathe {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* ───── Mobile ───── */
@media (max-width: 480px) {
    .welcome-container {
        padding: 1.5rem 1.25rem;
    }
    .welcome-hint {
        bottom: 4%;
    }
}
