/* =============================================================
   ARISTOS ARCHIVE — SINGLE HERO LANDING
   Brand system: deep-purple canvas + Cinzel display + Montserrat
   body + lavender accents. Matches the aristosai.com.au search
   site so the three subdomains feel like one family.

   Design intent: a "quiet vault" — the centerpiece text reads
   like a carved dedication, the background fragments read like
   paper memorials drifting in a museum hall. Every interaction
   should feel meditative and deliberate, never flashy.
   ============================================================= */


/* =============================================================
   TOKENS
   ============================================================= */
:root {
    /* Canvas */
    --bg: #0A0820;
    --bg-alt: #0F0C24;
    --bg-deep: #050412;

    /* Purple core + lavender accents */
    --purple: #2E2464;
    --purple-d: #1B1540;
    --purple-dd: #0F0C24;
    --lavender: #9B8EC4;
    --lavender-l: #C8BFE2;
    --lavender-d: #7B6EA8;
    --accent: #A594D6;

    /* Text hierarchy */
    --text: #E8E2F5;
    --text-sec: #B6ACD2;
    --text-tert: #7A7099;
    --text-muted: #5A5278;

    /* Semantic */
    --success: #10B981;
    --amber: #F59E0B;

    /* Geometry */
    --hero-max: 760px;
    --radius: 14px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 180ms;
    --dur: 360ms;
    --dur-slow: 720ms;
}


/* =============================================================
   RESET + BASE
   ============================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* 62.5% so 1rem = 10px for easier math in clamp() calls below.
       Font-size is restored at body level. */
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: rgba(165, 148, 214, 0.18) transparent;
}

body {
    min-height: 100svh;
    min-height: 100dvh; /* dynamic viewport — iOS Safari address bar */
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    overflow: hidden; /* hero fits in one viewport on desktop */
    position: relative;
}

/* Allow scrolling on narrow/short viewports where the hero has to
   stack vertically and can't fit 100vh. */
@media (max-height: 680px), (max-width: 640px) {
    body {
        overflow: auto;
    }
}

button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================================
   GHOST SCROLLBAR — matches the search site exactly
   ============================================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(155, 142, 196, 0.18);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(165, 148, 214, 0.45); }


/* =============================================================
   BACKDROP — lavender glow + drifting fragments + grid lines
   ============================================================= */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* .vault re-enables for fragments below */
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

/* Upper-right lavender dawn — the "source of light" of the page.
   Large, soft, positioned outside the viewport so only the edge
   glow reaches the content. */
.glow--upper {
    top: -30%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle at center,
        rgba(165, 148, 214, 0.28) 0%,
        rgba(155, 142, 196, 0.14) 35%,
        transparent 65%);
    animation: glow-breathe-a 16s ease-in-out infinite;
}

/* Lower-left counter-glow — a much deeper purple, counter-balances
   the lavender dawn so the page has a "sun + moon" feel. */
.glow--lower {
    bottom: -25%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle at center,
        rgba(46, 36, 100, 0.55) 0%,
        rgba(46, 36, 100, 0.22) 40%,
        transparent 70%);
    animation: glow-breathe-b 22s ease-in-out infinite;
}

@keyframes glow-breathe-a {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50%      { transform: translate(-20px, 15px) scale(1.05); opacity: 0.85; }
}
@keyframes glow-breathe-b {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50%      { transform: translate(25px, -20px) scale(1.08); opacity: 0.9; }
}

/* Hairline grid — barely visible square grid for a "museum floor"
   texture. Sits under the glows but above the canvas fill. */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 142, 196, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 142, 196, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}


/* =============================================================
   VAULT — floating page fragments, each a time-capsule button
   ============================================================= */
.vault {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Variable that JS writes to for mouse-parallax — the whole
       vault translates slightly opposite to the cursor. */
    transform: translate3d(var(--vault-tx, 0), var(--vault-ty, 0), 0);
    transition: transform 300ms var(--ease-out);
}

/* Each fragment is positioned via --x / --y percent variables
   set inline in the HTML. --r sets its base tilt, --d controls
   the animation-delay phase so they don't all drift in sync. */
.fragment {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: clamp(68px, 8vw, 96px);
    height: clamp(48px, 5.5vw, 68px);
    padding: 8px 9px 6px;
    border-radius: 6px;
    background: linear-gradient(160deg,
        rgba(30, 22, 66, 0.55) 0%,
        rgba(20, 14, 48, 0.35) 100%);
    border: 1px solid rgba(155, 142, 196, 0.12);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    transform: translate(-50%, -50%) rotate(var(--r)) translateY(0);
    opacity: 0;
    pointer-events: auto;
    cursor: help;
    outline: none;
    animation:
        fragment-in 1200ms var(--ease-out) forwards,
        fragment-drift 12s ease-in-out infinite;
    animation-delay:
        calc(400ms + var(--d) * 80ms),
        calc(1800ms + var(--d) * 400ms);
    transition:
        transform 260ms var(--ease-out),
        background 260ms var(--ease-out),
        border-color 260ms var(--ease-out),
        box-shadow 260ms var(--ease-out),
        opacity 260ms var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* The 2026 fragment — Aristos Archive's own entry — gets an
   accent glow so it stands out as "you are here in history". */
.fragment--accent {
    background: linear-gradient(160deg,
        rgba(165, 148, 214, 0.22) 0%,
        rgba(123, 110, 168, 0.12) 100%);
    border-color: rgba(200, 191, 226, 0.35);
    box-shadow:
        0 6px 24px rgba(165, 148, 214, 0.25),
        0 0 0 1px rgba(200, 191, 226, 0.15) inset;
}
.fragment--accent .fragment-year {
    color: var(--lavender-l);
}

.fragment-year {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: rgba(200, 191, 226, 0.45);
    letter-spacing: 0.5px;
    line-height: 1;
    transition: color 260ms var(--ease-out);
}

/* The little "text lines" inside each fragment — purely decorative,
   they make the fragment read as "a page we've preserved". */
.fragment-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
}
.fragment-lines span {
    display: block;
    height: 1.5px;
    background: rgba(155, 142, 196, 0.18);
    border-radius: 1px;
    transition: background 260ms var(--ease-out), width 260ms var(--ease-out);
}
.fragment-lines span:nth-child(1) { width: 90%; }
.fragment-lines span:nth-child(2) { width: 70%; }
.fragment-lines span:nth-child(3) { width: 45%; }

/* Hover / focus — lift, brighten, magnify slightly. The tooltip
   is anchored + populated via JS. */
.fragment:hover,
.fragment:focus-visible {
    transform: translate(-50%, -50%) rotate(var(--r)) translateY(-4px) scale(1.08);
    background: linear-gradient(160deg,
        rgba(46, 36, 100, 0.75) 0%,
        rgba(30, 22, 66, 0.55) 100%);
    border-color: rgba(200, 191, 226, 0.55);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(200, 191, 226, 0.15) inset,
        0 0 24px rgba(165, 148, 214, 0.15);
    z-index: 5;
}
.fragment:hover .fragment-year,
.fragment:focus-visible .fragment-year {
    color: var(--lavender-l);
}
.fragment:hover .fragment-lines span,
.fragment:focus-visible .fragment-lines span {
    background: rgba(200, 191, 226, 0.42);
}

/* Fade-in + settle from below */
@keyframes fragment-in {
    0% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 20px)) rotate(var(--r)) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
    }
}

/* Continuous gentle drift — this is what gives the vault its
   "suspended in time" feeling. Each fragment has a different --d
   offset so the room never feels mechanical. */
@keyframes fragment-drift {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--r)) translateY(0); }
    50%      { transform: translate(-50%, -50%) rotate(calc(var(--r) + 1deg)) translateY(-6px); }
}

/* Hide some fragments at narrow viewports to keep the scene
   uncrowded. --hide-sm hides below 860px; --hide-md below 1100px. */
@media (max-width: 1100px) {
    .fragment--hide-md { display: none; }
}
@media (max-width: 860px) {
    .fragment--hide-sm { display: none; }
}


/* =============================================================
   HERO LAYOUT — three rows, one viewport
   ============================================================= */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 64px);
    gap: clamp(18px, 3vh, 36px);
}

/* =============================================================
   TOP BAR — back-link + status chip
   ============================================================= */
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    animation: rise 800ms var(--ease-out) 100ms forwards;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--text-sec);
    transition: color var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
.back:hover,
.back:focus-visible {
    color: var(--text);
    transform: translateX(-2px); /* "going back" micro-cue */
    outline: none;
}
/* Back-link logo — proper PNG monogram sitting on a warm white halo.
   The halo is essential: on the deep-purple canvas the logo's circle
   fill (#2E2464) would disappear. The white radial glow underneath is
   what makes the mark "show through" the darkness. */
.back-mark-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease-out);
}

/* The halo itself — a radial gradient extending beyond the logo's
   bounds, blurred for softness. Sits behind the image via z-index. */
.back-mark-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.24) 0%,
        rgba(255, 255, 255, 0.10) 40%,
        rgba(200, 191, 226, 0.04) 70%,
        transparent 100%);
    filter: blur(6px);
    z-index: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}

.back-mark {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(46, 36, 100, 0.5));
    transition: transform var(--dur) var(--ease-out),
                filter var(--dur) var(--ease-out);
}

.back:hover .back-mark-wrap {
    transform: rotate(-8deg);
}
.back:hover .back-mark-wrap::before {
    /* Intensify the halo on hover — the logo "lights up" */
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.18) 40%,
        rgba(200, 191, 226, 0.06) 70%,
        transparent 100%);
    transform: scale(1.1);
}
.back:hover .back-mark {
    filter: drop-shadow(0 3px 6px rgba(46, 36, 100, 0.6))
            drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.back-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}
.back-wordmark {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text);
}
.back-suffix {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lavender);
}

/* Status chip — shows launch status. Hairline outline, no fill. */
.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: rgba(165, 148, 214, 0.06);
    border: 1px solid rgba(165, 148, 214, 0.22);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: var(--lavender-l);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(165, 148, 214, 0.7);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.3); }
}

/* Hide the back-suffix "Archive" label on very narrow screens
   so the top bar doesn't wrap awkwardly. */
@media (max-width: 480px) {
    .back-suffix { display: none; }
    .back-wordmark { font-size: 1.35rem; }
}


/* =============================================================
   CENTERPIECE CONTENT
   ============================================================= */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(16px, 2.5vh, 28px);
    max-width: var(--hero-max);
    margin: 0 auto;
    width: 100%;
}

/* =============================================================
   HERO MARK — the proper Aristos monogram as the page's emotional
   centerpiece. Rendered large (88px), centered, with a broad soft
   white halo behind that makes the deep-purple logo pop against
   the deep-purple canvas. This is the first pixel the user reads
   as "this is Aristos" — it has to land with gravity.
   ============================================================= */
.hero-mark-wrap {
    position: relative;
    width: clamp(76px, 9vw, 96px);
    height: clamp(76px, 9vw, 96px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    /* Lead the page's staggered reveal — the logo appears first,
       then the eyebrow, then the display heading. */
    animation: mark-in 1100ms var(--ease-out) 80ms forwards;
}

/* The halo — three radial layers stacked for depth:
   inner bright core → soft lavender blush → fade to nothing.
   Extends 32px beyond the logo's bounds so the glow fills the
   space the eye expects a "lit object" to illuminate. */
.hero-mark-wrap::before {
    content: '';
    position: absolute;
    inset: -32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.12) 22%,
            rgba(200, 191, 226, 0.06) 50%,
            transparent 75%);
    filter: blur(14px);
    z-index: 0;
    pointer-events: none;
    /* Slow breathing animation — the halo pulses subtly like
       a beacon. Nothing flashy, just alive. */
    animation: halo-breathe 5s ease-in-out infinite 1400ms;
}

/* A second thinner ring right at the edge of the logo — gives
   the monogram a crisp lit outline, not just a fuzzy ambient glow. */
.hero-mark-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        transparent 58%,
        rgba(255, 255, 255, 0.18) 70%,
        rgba(200, 191, 226, 0.08) 82%,
        transparent 95%);
    filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

.hero-mark {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Multi-layer drop shadow: deep purple base for "weight",
       lavender glow for "warmth". The logo feels embedded in
       the light rather than pasted on top of it. */
    filter:
        drop-shadow(0 8px 24px rgba(46, 36, 100, 0.6))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 18px rgba(200, 191, 226, 0.2));
}

@keyframes mark-in {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes halo-breathe {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.06);
    }
}

/* Shrink the mark on tall narrow phones so it doesn't dominate
   the viewport height when the hero has to stack vertically. */
@media (max-width: 640px) {
    .hero-mark-wrap {
        width: 68px;
        height: 68px;
    }
    .hero-mark-wrap::before {
        inset: -24px;
        filter: blur(10px);
    }
}


/* Eyebrow — the name-tag that identifies this page. Diamond
   glyphs on either side + uppercase Montserrat. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--lavender);
    opacity: 0;
    animation: rise 800ms var(--ease-out) 320ms forwards;
}
.eyebrow-glyph {
    color: var(--lavender-d);
    font-size: 0.85em;
    transform: translateY(-1px);
}

/* Display heading — Cinzel, layered lines, blinking cursor.
   Each .display-line staggers in on its own delay (set via
   data-stagger + CSS custom property --i in JS). */
.display {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(3.2rem, 6.5vw, 6rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--text);
    text-wrap: balance;
}

.display-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: rise 900ms var(--ease-out) forwards;
}
/* Display heading lines cascade in AFTER the hero mark + eyebrow
   have landed. Timings chosen so each line arrives roughly 120ms
   after the previous — fast enough to feel energetic, slow enough
   to read each line as it appears. */
.display-line[data-stagger="1"] { animation-delay: 440ms; }
.display-line[data-stagger="2"] { animation-delay: 560ms; }
.display-line[data-stagger="3"] { animation-delay: 680ms; }

/* "one page at a time" — rendered in accent lavender with a
   subtle italic to mark it as the emotional climax of the line. */
.display-line--em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--lavender);
    animation: blink 1.1s step-end infinite;
    font-weight: 600;
    transform: translateY(-3px);
}
@keyframes blink {
    0%, 50%       { opacity: 1; }
    50.01%, 100%  { opacity: 0; }
}

/* Lede — Montserrat body with generous max-width. Two paragraphs. */
.lede {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 580px;
    font-size: clamp(1.4rem, 1.35vw, 1.55rem);
    line-height: 1.68;
    color: var(--text-sec);
}
.lede-p {
    opacity: 0;
    animation: rise 900ms var(--ease-out) forwards;
}
.lede-p[data-stagger="4"] { animation-delay: 860ms; }
.lede-p[data-stagger="5"] { animation-delay: 980ms; }

.lede-p--emph {
    color: var(--text);
}
.lede-p em {
    color: var(--lavender-l);
    font-style: italic;
}

/* Inline monospace for ".au" — Cinzel-flavoured small mark so
   the top-level domain reads as a proper noun, not code. */
.au-mono {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 1px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.92em;
    color: var(--lavender-l);
    background: rgba(165, 148, 214, 0.1);
    border: 1px solid rgba(165, 148, 214, 0.22);
    letter-spacing: 0.02em;
}


/* =============================================================
   STATS ROW
   ============================================================= */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 36px);
    margin-top: clamp(10px, 2vh, 20px);
    opacity: 0;
    animation: rise 900ms var(--ease-out) 1100ms forwards;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 130px;
}
.stat-value {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    line-height: 1;
    color: var(--lavender-l);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.stat-value--inf {
    /* Infinity glyph needs a slight bump to optically match the
       numeric stats at the same font-size. */
    font-size: clamp(3rem, 3.8vw, 4rem);
    line-height: 0.8;
    transform: translateY(-1px);
}
.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tert);
    max-width: 160px;
    text-align: center;
}

.stat-sep {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(165, 148, 214, 0.3) 50%,
        transparent 100%);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .stat-sep { display: none; }
    .stats { gap: 20px; }
}


/* =============================================================
   BOTTOM — partners + promise
   ============================================================= */
.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding-top: 12px;
}

.partners {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    font-size: 1.15rem;
    opacity: 0;
    animation: rise 900ms var(--ease-out) 1240ms forwards;
}
.partners-lbl {
    color: var(--text-tert);
    font-weight: 400;
}
.partners-list {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.partner {
    color: var(--lavender-l);
    font-weight: 500;
    padding-bottom: 1px;
    border-bottom: 1px dotted rgba(165, 148, 214, 0.35);
    transition: border-color var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out);
}
.partner:hover {
    color: var(--text);
    border-bottom-color: rgba(165, 148, 214, 0.7);
}
.partners-sep {
    color: var(--lavender-d);
    opacity: 0.6;
}

.promise {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: rise 900ms var(--ease-out) 1380ms forwards;
}
.promise-sep {
    color: var(--lavender-d);
    opacity: 0.5;
}


/* =============================================================
   FRAGMENT TOOLTIP (singleton)
   ============================================================= */
.fragment-tip {
    position: fixed;
    z-index: 10;
    padding: 10px 14px;
    min-width: 180px;
    max-width: 280px;
    border-radius: 8px;
    background: linear-gradient(160deg,
        rgba(30, 22, 66, 0.95) 0%,
        rgba(15, 12, 36, 0.92) 100%);
    border: 1px solid rgba(165, 148, 214, 0.3);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px)) scale(0.95);
    transition:
        opacity 200ms var(--ease-out),
        transform 200ms var(--ease-out);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.45;
}
.fragment-tip.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 10px)) scale(1);
}
/* Little arrow at the bottom of the tooltip pointing to the fragment. */
.fragment-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 9px;
    height: 9px;
    background: inherit;
    border-right: 1px solid rgba(165, 148, 214, 0.3);
    border-bottom: 1px solid rgba(165, 148, 214, 0.3);
    transform: translateX(-50%) rotate(45deg);
}
.tip-year {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--lavender-l);
    letter-spacing: 0.5px;
}
.tip-event {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.5;
}


/* =============================================================
   STAGGER ANIMATION — used by all primary content blocks
   ============================================================= */
@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tall phones — relax the single-viewport constraint, let the
   page breathe vertically. */
@media (max-width: 640px) {
    .hero {
        padding: 18px 20px 28px;
        gap: 28px;
    }
    .hero-top {
        gap: 12px;
    }
    .status {
        font-size: 1rem;
        padding: 6px 11px 6px 9px;
    }
    .eyebrow {
        font-size: 0.95rem;
        letter-spacing: 2.5px;
    }
    .display {
        font-size: clamp(2.6rem, 8vw, 4rem);
    }
    .lede {
        font-size: 1.35rem;
        line-height: 1.6;
    }
    .stats {
        flex-direction: column;
        gap: 18px;
    }
    .stat {
        min-width: 0;
    }
    .partners, .promise {
        font-size: 1rem;
    }
    .promise {
        letter-spacing: 1.4px;
    }
}

/* Very tall narrow — keep fragments subtle so they don't
   crowd the text. */
@media (max-width: 480px) {
    .vault { opacity: 0.55; }
}


/* =============================================================
   REDUCED MOTION — honor the user's preference. Everything
   that moves, stops moving. Only opacity transitions remain.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fragment,
    .display-line,
    .lede-p,
    .partners,
    .promise,
    .stats,
    .hero-top,
    .eyebrow,
    .hero-mark-wrap {
        opacity: 1;
        transform: none;
    }
    .cursor,
    .status-dot {
        animation: none;
        opacity: 1;
    }
    .glow--upper,
    .glow--lower {
        animation: none;
    }
}


/* =============================================================
   HIGH-CONTRAST / forced-colors accessibility
   ============================================================= */
@media (forced-colors: active) {
    .fragment,
    .status,
    .partner {
        border-color: CanvasText;
    }
    .cursor,
    .status-dot {
        background: CanvasText;
        color: CanvasText;
    }
}


/* =============================================================
   PRINT — serve a clean, minimal version of the dedication
   ============================================================= */
@media print {
    .backdrop,
    .hero-top,
    .status,
    .fragment-tip {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .display,
    .display-line--em,
    .stat-value,
    .lede-p,
    .partner {
        color: black !important;
        text-shadow: none !important;
    }
}
