/* ==========================================================================
   PAPERPLANE — site styles
   --------------------------------------------------------------------------
   CONCEPT: "the cabinet in the room."

   The game is a lit object in a dark arcade. So the HERO and every PHONE
   SCREEN stay in the game's night palette in both themes — they are the
   cabinet, and a cabinet does not stop glowing when you turn the lights on.
   Everything around them is the ROOM, and that is what the toggle changes.
   Light mode is a museum wall, not a bleached copy of the dark one, which
   suits a game whose whole meta is filling a museum.

   Everything animated on this page is lifted from something the game
   actually does — a hot coin multiplier (here it is the scroll rail), the
   gems and diamonds drifting through the sky, and the arcade cabinet's CRT. The hero phone hangs in 3D and tracks the pointer.

   Palette and type come straight from game/index.html.
     gold #ffd24a / #fff3b0 / #c98a12   magenta #ff3d8b   cyan #31e8ff
     epic #c04dff   cabinet 160deg #5c1042 -> #2b0524 55% -> #1a0316
     Bungee (display) + Rubik (body)
   ========================================================================== */

/* ============================ TOKENS ============================ */
:root {
    --gold: #ffd24a;
    --gold-hi: #fff3b0;
    --gold-dk: #c98a12;
    --gold-ink: #3a2400;
    --magenta: #ff3d8b;
    --cyan: #31e8ff;
    --epic: #c04dff;
    --seven: #ff4d6d;
    --violet: #7b2ff7;

    --cabinet: linear-gradient(160deg, #5c1042, #2b0524 55%, #1a0316);
    --night: radial-gradient(120% 100% at 50% 0%, #24093f 0%, #0b0217 70%);
    --night-ink: #f4e9ff;
    --night-muted: #b9a3d6;
    --night-line: rgba(154, 109, 214, .3);

    --bg: #0d0318;
    --bg-2: #150726;
    --surface: #1a0a28;
    --surface-2: #23103a;
    --ink: #f4e9ff;
    --ink-2: #b9a3d6;
    --ink-3: #8b76ab;
    --line: rgba(154, 109, 214, .26);
    --line-2: rgba(154, 109, 214, .44);
    --gold-text: #ffd24a;
    --shadow: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px -28px rgba(0,0,0,.9);

    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");

    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f6f1f8; --bg-2: #ede3f1; --surface: #ffffff; --surface-2: #f3ebf7;
        --ink: #1c0d29; --ink-2: #5c4675; --ink-3: #8877a0;
        --line: rgba(92,45,140,.16); --line-2: rgba(92,45,140,.3);
        --gold-text: #8a5a00;
        --shadow: 0 2px 4px rgba(40,12,66,.05), 0 22px 50px -30px rgba(40,12,66,.38);
        color-scheme: light;
    }
}
:root[data-theme="light"] {
    --bg: #f6f1f8; --bg-2: #ede3f1; --surface: #ffffff; --surface-2: #f3ebf7;
    --ink: #1c0d29; --ink-2: #5c4675; --ink-3: #8877a0;
    --line: rgba(92,45,140,.16); --line-2: rgba(92,45,140,.3);
    --gold-text: #8a5a00;
    --shadow: 0 2px 4px rgba(40,12,66,.05), 0 22px 50px -30px rgba(40,12,66,.38);
    color-scheme: light;
}

/* ============================ BASE ============================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap, .narrow { width: min(1180px, 100% - 30px); } }

.eyebrow {
    font-family: 'Bungee', system-ui, sans-serif;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--acc, var(--gold-text)); margin: 0 0 14px;
    display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
    content: ""; width: 22px; height: 2px; flex: none;
    background: var(--acc, var(--gold)); box-shadow: 0 0 10px var(--acc, var(--gold));
}
.eyebrow.mid { justify-content: center; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2.big {
    font-family: 'Bungee', system-ui, sans-serif; font-weight: 400;
    font-size: clamp(28px, 4.6vw, 50px); line-height: 1.04; margin: 0 0 18px;
}
.lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); margin: 0 0 20px; }

/* ============================ BUTTONS ============================ */
.btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 11px;
    cursor: pointer; border: none;
    font-family: 'Bungee', system-ui, sans-serif;
    font-size: clamp(15px, 2vw, 19px);
    color: var(--gold-ink);
    padding: 17px 40px; border-radius: 999px; text-decoration: none;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-dk));
    box-shadow: 0 6px 0 #7a4a05, 0 14px 30px rgba(0,0,0,.5), 0 0 40px rgba(255,210,74,.45);
    transition: transform .09s ease, box-shadow .25s ease;
    overflow: hidden; isolation: isolate;
}
/* specular sweep, permanently looping — this is the "come and get it" button */
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.85) 46%, transparent 62%);
    transform: translateX(-120%);
    animation: sweep 3.6s ease-in-out infinite;
}
@keyframes sweep { 0%,55% { transform: translateX(-120%) } 85%,100% { transform: translateX(120%) } }
.btn:hover { color: var(--gold-ink); box-shadow: 0 6px 0 #7a4a05, 0 18px 40px rgba(0,0,0,.55), 0 0 70px rgba(255,210,74,.75); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a4a05, 0 8px 18px rgba(0,0,0,.5); }

.btn.ghost {
    background: transparent; color: var(--night-ink);
    border: 2px solid var(--night-line); box-shadow: none; padding: 15px 32px;
}
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 30px rgba(255,210,74,.22); }

/* ============================ TAILWIND RAIL ============================
   A fixed gauge down the left edge. It fills with scroll depth and IGNITES
   past 70% with the game's gold flare, like a coin multiplier running hot.
   It is a scroll progress bar that happens to look like a game mechanic. */
#overdrive {
    position: fixed; left: 0; top: 0; bottom: 0; width: 5px; z-index: 90;
    background: rgba(120,70,180,.16); pointer-events: none;
}
#overdrive .od-fill {
    position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
    background: linear-gradient(180deg, var(--cyan), var(--magenta) 55%, var(--epic));
    box-shadow: 0 0 14px rgba(255,61,139,.7);
    transition: background .5s ease;
}
#overdrive .od-mark {
    position: absolute; left: 0; right: 0; bottom: 70%; height: 2px;
    background: rgba(255,210,74,.55);
}
body.overdrive #overdrive .od-fill {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-dk));
    box-shadow: 0 0 22px rgba(255,210,74,.95), 0 0 46px rgba(255,210,74,.5);
}
#overdrive .od-tag {
    position: absolute; left: 12px; bottom: 70%;
    font-family: 'Bungee', sans-serif; font-size: 9px; letter-spacing: .16em;
    color: var(--gold); white-space: nowrap;
    opacity: 0; transform: translateY(50%) translateX(-6px); transition: opacity .35s ease, transform .35s ease;
    text-shadow: 0 0 12px rgba(255,210,74,.8);
}
body.overdrive #overdrive .od-tag { opacity: 1; transform: translateY(50%) translateX(0); }
@media (max-width: 900px) { #overdrive { width: 3px; } #overdrive .od-tag { display: none; } }

/* ============================ NAV ============================ */
.nav {
    position: sticky; top: 0; z-index: 80;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand {
    font-family: 'Bungee', system-ui, sans-serif; font-size: 17px;
    color: var(--ink); text-decoration: none;
    display: flex; align-items: center; gap: 10px; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand .dot {
    width: 14px; height: 14px; border-radius: 3px; flex: none;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    box-shadow: 0 0 16px rgba(255,61,139,.75);
    animation: brandspin 6s linear infinite;
}
@keyframes brandspin {
    0%   { transform: rotate(45deg)  scale(1);   filter: hue-rotate(0deg) }
    50%  { transform: rotate(225deg) scale(1.16);filter: hue-rotate(60deg) }
    100% { transform: rotate(405deg) scale(1);   filter: hue-rotate(0deg) }
}
.nav a.nl {
    font-size: 13px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink-2); text-decoration: none;
    position: relative; padding: 4px 0;
}
.nav a.nl::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--gold); transition: right .28s cubic-bezier(.2,.8,.3,1);
}
.nav a.nl:hover { color: var(--gold-text); }
.nav a.nl:hover::after { right: 0; }
@media (max-width: 780px) { .nav a.nl { display: none; } }

.tgl {
    width: 38px; height: 38px; flex: none; display: grid; place-items: center;
    border-radius: 10px; border: 1px solid var(--line-2);
    background: var(--surface); color: var(--ink-2); cursor: pointer;
    transition: color .2s, border-color .2s, transform .2s;
}
.tgl:hover { color: var(--gold); border-color: var(--gold); transform: rotate(-18deg); }
.tgl svg { width: 17px; height: 17px; }
.tgl .moon { display: none; }
:root[data-theme="light"] .tgl .moon { display: block; }
:root[data-theme="light"] .tgl .sun { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .tgl .moon { display: block; }
    :root:not([data-theme="dark"]) .tgl .sun { display: none; }
}

/* ============================ HERO ============================ */
.hero {
    position: relative; overflow: hidden;
    background: var(--night); color: var(--night-ink);
    border-bottom: 1px solid var(--night-line);
    padding: clamp(40px, 6vw, 78px) 0 clamp(50px, 7vw, 92px);
}
/* drifting gem field */
#gemfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
/* arcade CRT: scanlines + grain + vignette. This is the single biggest thing
   stopping the page reading as a generic gradient hero. */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background:
        repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
        radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
    mix-blend-mode: multiply; opacity: .5;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background-image: var(--noise); opacity: .045; mix-blend-mode: overlay;
}
.hero .wrap { position: relative; z-index: 5; }

.hero-grid {
    display: grid; grid-template-columns: 1.02fr .98fr;
    gap: clamp(28px, 4vw, 64px); align-items: center;
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-cta { justify-content: center; }
    .hero .eyebrow { justify-content: center; }
    .hero .lede { margin-inline: auto; }
}

.hero h1 {
    font-family: 'Bungee', system-ui, sans-serif; font-weight: 400;
    font-size: clamp(36px, 6.6vw, 76px); line-height: .96; letter-spacing: -.012em;
    margin: 0 0 20px; color: #fff;
    text-shadow: 0 4px 0 rgba(0,0,0,.42), 0 0 70px rgba(255,61,139,.32);
}
.hero h1 .gold {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-dk));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255,210,74,.5));
}
/* each line slams in from the intro sequence */
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; will-change: transform; }
.hero .lede { color: var(--night-muted); font-size: clamp(16px, 2vw, 20px); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero-note { font-size: 12.5px; color: var(--night-muted); letter-spacing: .03em; margin: 18px 0 0; }
.hero-note b { color: var(--gold); }

/* ---------- playable board rig ---------- */
.rig { position: relative; display: flex; justify-content: center; align-items: center; }

/* The suspended phone. --mx/--my are written every frame by the parallax
   loop; the glow and the ground shadow shift against the phone's motion,
   which is the part that actually reads as depth. */
.heroStage { position: relative; width: min(320px, 76vw); }
.heroStage::before {
    content: ""; position: absolute; inset: -10% -18%; z-index: 0;
    background: radial-gradient(50% 50% at 50% 50%, var(--magenta), transparent 70%);
    opacity: .32; filter: blur(48px);
    transform: translate3d(var(--mx, 0), var(--my, 0), 0);
    transition: background .6s ease, opacity .6s ease;
}
body.overdrive .heroStage::before {
    background: radial-gradient(50% 50% at 50% 50%, var(--gold), transparent 70%);
    opacity: .5;
}
.heroStage .shadow {
    position: absolute; z-index: 0; left: 8%; right: 8%; bottom: -7%;
    height: 26px; border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.85), transparent 72%);
    filter: blur(13px); opacity: .5; pointer-events: none;
}
.heroStage .phone { position: relative; z-index: 2; will-change: transform; }

.phone {
    position: relative; z-index: 2;
    aspect-ratio: 9 / 16; border-radius: 34px; padding: 9px;
    background: var(--cabinet);
    border: 1px solid rgba(255,210,74,.26);
    box-shadow: 0 3px 0 rgba(0,0,0,.55), 0 34px 80px -26px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1);
    transition: box-shadow .5s ease, border-color .5s ease;
}
body.overdrive .heroStage .phone {
    border-color: rgba(255,210,74,.8);
    box-shadow: 0 3px 0 rgba(0,0,0,.55), 0 34px 80px -26px rgba(0,0,0,.9),
                0 0 60px rgba(255,210,74,.5), inset 0 1px 0 rgba(255,255,255,.14);
}
/* .tilt is the JS hook for pointer parallax; the short transition keeps the
   tilt responsive while still easing the snap back on pointerleave. */
.tilt { perspective: 900px; }
.tilt .phone {
    transition: transform .16s ease-out, box-shadow .5s ease, border-color .5s ease;
    will-change: transform;
}
.phone img { width: 100%; height: 100%; border-radius: 26px; display: block; }
.phone img { object-fit: cover; background: #12041f; }
.phone video { width: 100%; height: 100%; border-radius: 26px; display: block; object-fit: cover; background: #12041f; }
.phone .notch {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    width: 58px; height: 5px; border-radius: 99px; background: rgba(0,0,0,.5); z-index: 4;
}
/* pointer-tracked specular glare */
.phone .glare {
    position: absolute; inset: 9px; border-radius: 26px; z-index: 3; pointer-events: none;
    background: radial-gradient(28% 22% at var(--gx, 50%) var(--gy, 22%), rgba(255,255,255,.2), transparent 70%),
                linear-gradient(150deg, rgba(255,255,255,.12) 0%, transparent 40%);
}
/* ============================ TICKER ============================
   217 destinations is the headline fact, so let it physically scroll past. */
.ticker {
    position: relative; overflow: hidden;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 15px 0; display: flex;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker ul {
    display: flex; align-items: center; gap: 30px; flex: none;
    list-style: none; margin: 0; padding: 0 15px;
    animation: slide 62s linear infinite;
}
.ticker:hover ul { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0) } to { transform: translateX(-100%) } }
.ticker li {
    font-family: 'Bungee', sans-serif; font-size: 12.5px; letter-spacing: .1em;
    color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 30px;
}
.ticker li::after {
    content: ""; width: 7px; height: 7px; border-radius: 2px; flex: none;
    background: var(--acc, var(--magenta)); transform: rotate(45deg); opacity: .75;
}

/* ============================ STATS ============================ */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 12px; text-align: center; position: relative; }
.stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
}
.stat .n {
    font-family: 'Bungee', sans-serif; font-size: clamp(26px, 4vw, 46px); line-height: 1;
    color: var(--gold-text); font-variant-numeric: tabular-nums; display: block; margin-bottom: 9px;
    text-shadow: 0 0 30px rgba(255,210,74,.28);
}
.stat .l { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 620px) {
    .stats .wrap { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(1)::before, .stat:nth-child(3)::before { display: none; }
    .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ============================ FEATURES ============================ */
.feature { position: relative; padding: clamp(66px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.feature:nth-child(even) { background: var(--bg-2); }
/* a slow accent bloom that drifts behind each section */
.feature .bloom {
    position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
    border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(50% 50% at 50% 50%, var(--acc), transparent 70%);
    opacity: .1; filter: blur(70px);
    top: 50%; left: 0; transform: translate(-30%, -50%);
    animation: drift 22s ease-in-out infinite alternate;
}
.feature.flip .bloom { left: auto; right: 0; transform: translate(30%, -50%); animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(-30%, -62%) scale(1) } to { transform: translate(-14%, -38%) scale(1.18) } }
.feature .wrap { position: relative; z-index: 2; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feature.flip .frow > .fcopy { order: 2; }
.feature.flip .frow > .fshot { order: 1; }
.fshot { display: flex; justify-content: center; }
@media (max-width: 880px) {
    .frow { grid-template-columns: 1fr; gap: 42px; }
    .feature.flip .frow > .fcopy, .feature.flip .frow > .fshot { order: unset; }
    .fshot { order: -1 !important; }
}

.fcopy h2 {
    font-family: 'Bungee', sans-serif; font-weight: 400;
    font-size: clamp(26px, 3.9vw, 44px); line-height: 1.02; margin: 0 0 18px; color: var(--ink);
}
.fcopy > p { color: var(--ink-2); font-size: clamp(15px, 1.8vw, 17px); margin: 0 0 18px; max-width: 46ch; }

.bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 13px; align-items: start; font-size: 15px; color: var(--ink-2); }
.bullets li b { color: var(--ink); font-weight: 700; }
.bullets .mk {
    width: 11px; height: 11px; margin-top: 7px; border-radius: 2px; flex: none;
    background: var(--acc, var(--gold)); transform: rotate(45deg);
    box-shadow: 0 0 12px var(--acc, var(--gold));
}
/* markers pulse in sequence once the row lands */
.reveal.in .bullets .mk { animation: mkpop .5s cubic-bezier(.2,1.4,.4,1) backwards; }
.reveal.in .bullets li:nth-child(1) .mk { animation-delay: .18s }
.reveal.in .bullets li:nth-child(2) .mk { animation-delay: .28s }
.reveal.in .bullets li:nth-child(3) .mk { animation-delay: .38s }
.reveal.in .bullets li:nth-child(4) .mk { animation-delay: .48s }
@keyframes mkpop { from { transform: rotate(45deg) scale(0) } 70% { transform: rotate(45deg) scale(1.5) } to { transform: rotate(45deg) scale(1) } }

/* the wipe: feature screenshots are uncovered, not faded in, like a new
   destination's skyline sliding in as you fly into it */
.mistbox { position: relative; width: min(310px, 78vw); }
.mistbox .mist {
    position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 34px;
    background: linear-gradient(180deg, #2a0845 0%, rgba(42,8,69,.92) 42%, rgba(42,8,69,0) 100%);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    transform: translateY(0); opacity: 1;
    transition: transform 1.5s cubic-bezier(.25,.9,.25,1), opacity 1.5s ease;
}
.reveal.in .mistbox .mist { transform: translateY(102%); opacity: 0; }

/* ============================ SPECIALS ============================ */
.specials { padding: clamp(66px, 9vw, 116px) 0; border-bottom: 1px solid var(--line); }
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 16px; margin-top: 44px; }
.scard {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow);
    transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .3s;
}
.scard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--acc, var(--gold)); }
.scard::after {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none;
    background: radial-gradient(60% 60% at 50% 0%, var(--acc), transparent 70%);
}
.scard:hover { transform: translateY(-7px); border-color: var(--acc, var(--gold)); box-shadow: var(--shadow), 0 0 40px -8px var(--acc); }
.scard:hover::after { opacity: .13; }
.scard .sh { font-family: 'Bungee', sans-serif; font-size: 14px; color: var(--acc, var(--gold-text)); margin: 0 0 10px; }
.scard p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ============================ BAND ============================ */
.band {
    position: relative; overflow: hidden; text-align: center;
    background: var(--night); color: var(--night-ink);
    padding: clamp(76px, 10vw, 132px) 0; border-bottom: 1px solid var(--night-line);
}
.band::before {
    content: ""; position: absolute; inset: -40% 10% auto 10%; height: 80%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255,210,74,.26), transparent 70%);
    filter: blur(52px); animation: pulseglow 6s ease-in-out infinite;
}
@keyframes pulseglow { 0%,100% { opacity: .75; transform: scale(1) } 50% { opacity: 1; transform: scale(1.1) } }
.band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px);
    opacity: .4; mix-blend-mode: multiply;
}
.band .wrap { position: relative; z-index: 3; }
.band h2 {
    font-family: 'Bungee', sans-serif; font-weight: 400;
    font-size: clamp(30px, 5.6vw, 62px); line-height: 1.02; margin: 0 0 20px; color: #fff;
}
.band p { color: var(--night-muted); max-width: 52ch; margin: 0 auto 34px; font-size: clamp(15px,1.9vw,18px); }

/* ============================ FOOTER ============================ */
footer.ft { padding: 58px 0 46px; background: var(--bg); }
.ftgrid { display: flex; flex-wrap: wrap; gap: 26px 48px; align-items: flex-start; justify-content: space-between; }
.ftgrid .brand { margin-right: 0; }
.ftnav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ftnav a { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.ftnav a:hover { color: var(--gold-text); }
.ftbase {
    margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--ink-3);
    display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ============================ ARTICLE PAGES ============================ */
.phead {
    position: relative; overflow: hidden;
    background: var(--night); color: var(--night-ink);
    padding: clamp(54px, 7vw, 88px) 0 clamp(46px, 6vw, 70px);
    border-bottom: 1px solid var(--night-line);
}
.phead::before {
    content: ""; position: absolute; inset: -60% 26% auto 26%; height: 110%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(192,77,255,.34), transparent 70%);
    filter: blur(62px); animation: pulseglow 7s ease-in-out infinite;
}
.phead::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px);
    opacity: .4; mix-blend-mode: multiply;
}
.phead .wrap { position: relative; z-index: 3; }
.phead h1 {
    font-family: 'Bungee', sans-serif; font-weight: 400;
    font-size: clamp(30px, 5.4vw, 56px); line-height: 1.04; margin: 0 0 14px; color: #fff;
}
.phead p { color: var(--night-muted); max-width: 58ch; margin: 0; }
.phead .eyebrow { color: var(--gold); }
.phead .eyebrow::before { background: var(--gold); }

article.doc { padding: clamp(48px, 7vw, 82px) 0 96px; }
article.doc h2 {
    font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 21px; line-height: 1.25;
    margin: 54px 0 14px; color: var(--ink); scroll-margin-top: 86px;
}
article.doc h2:first-of-type { margin-top: 0; }
article.doc h3 { font-size: 16px; font-weight: 900; margin: 28px 0 10px; color: var(--ink); }
article.doc p { color: var(--ink-2); margin: 0 0 16px; }
article.doc ul { color: var(--ink-2); padding-left: 22px; margin: 0 0 16px; }
article.doc li { margin-bottom: 9px; }
article.doc li b, article.doc p b { color: var(--ink); }
article.doc a { font-weight: 700; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin: 0 0 46px; box-shadow: var(--shadow); }
.toc h4 { font-family: 'Bungee', sans-serif; font-size: 11px; letter-spacing: .14em; margin: 0 0 14px; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 7px; font-size: 14px; }
.toc a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--gold-text); text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

.note {
    border-left: 3px solid var(--gold);
    background: var(--surface-2);
    background: color-mix(in srgb, var(--gold) 9%, var(--surface));
    border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 26px 0;
}
.note p { margin: 0; color: var(--ink); font-size: 14.5px; }
.note .nh { font-family: 'Bungee', sans-serif; font-size: 10px; letter-spacing: .14em; color: var(--gold-text); margin: 0 0 8px; }
.updated { font-size: 13px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; display: inline-block; margin-bottom: 36px; }

.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 0 0 46px; }
.ccard {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: border-color .3s, transform .3s cubic-bezier(.2,.8,.3,1);
}
.ccard:hover { border-color: var(--acc, var(--gold)); transform: translateY(-5px); }
.ccard .ch { font-family: 'Bungee', sans-serif; font-size: 13px; color: var(--acc, var(--gold-text)); margin: 0 0 10px; }
.ccard p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.ccard a.go { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--acc, var(--gold-text)); align-self: flex-start; }
.ccard a.go:hover { text-decoration: underline; }

.mailbox {
    position: relative; overflow: hidden; text-align: center;
    background: var(--cabinet); border: 1px solid rgba(255,210,74,.3);
    border-radius: 20px; padding: clamp(28px, 4vw, 46px);
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); margin-bottom: 46px;
}
.mailbox::before {
    content: ""; position: absolute; inset: -50% 20% auto 20%; height: 120%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255,210,74,.22), transparent 70%);
    filter: blur(44px); animation: pulseglow 6s ease-in-out infinite;
}
.mailbox > * { position: relative; z-index: 2; }
.mailbox .eyebrow { color: var(--gold); justify-content: center; }
.mailbox .eyebrow::before { background: var(--gold); }
.mailbox .addr { font-family: 'Bungee', sans-serif; font-size: clamp(19px, 4vw, 34px); color: #fff; margin: 0 0 8px; word-break: break-word; }
.mailbox .addr a { color: #fff; text-decoration: none; }
.mailbox .addr a:hover { color: var(--gold); }
.mailbox .sub { color: var(--night-muted); font-size: 14.5px; margin: 0 0 24px; }
.mailbox .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.copybtn {
    font-family: 'Rubik', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    background: transparent; color: var(--night-ink);
    border: 2px solid var(--night-line); border-radius: 999px;
    padding: 14px 26px; cursor: pointer; transition: border-color .2s, color .2s;
}
.copybtn:hover { border-color: var(--gold); color: var(--gold); }
.copybtn.done { border-color: var(--cyan); color: var(--cyan); }

.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
    cursor: pointer; padding: 18px 34px 18px 2px; font-weight: 700; font-size: 15.5px;
    color: var(--ink); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font-family: 'Bungee', sans-serif; color: var(--gold-text); font-size: 17px;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--gold-text); }
.faq .anx { padding: 0 34px 20px 2px; color: var(--ink-2); font-size: 15px; margin: 0; }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.3,1); }
/* headings wipe in behind a gold edge */
.reveal .fcopy h2, .reveal.fcopy h2 { position: relative; }

/* cursor gem trail canvas */
#trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }
@media (hover: none) { #trail { display: none; } }

/* ============================ INTRO SEQUENCE ============================ */
/* Only ever shown when scripting is available — otherwise it would cover the
   page permanently, since nothing would be left to dismiss it. */
#intro { display: none; }
html.js #intro {
    position: fixed; inset: 0; z-index: 300; background: #0b0217;
    display: grid; place-items: center; transition: opacity .7s ease, visibility .7s;
}
#intro.gone { opacity: 0; visibility: hidden; }
#intro .mark {
    font-family: 'Bungee', sans-serif; font-size: clamp(24px, 6vw, 54px); color: #fff;
    letter-spacing: .02em; position: relative; overflow: hidden; padding: 0 6px;
}
#intro .mark span { display: inline-block; animation: introletter .6s cubic-bezier(.2,1.5,.4,1) backwards; }
@keyframes introletter { from { transform: translateY(70%) scale(.7); opacity: 0 } to { transform: none; opacity: 1 } }
#intro .bar {
    margin: 22px auto 0; width: 180px; height: 4px; border-radius: 99px;
    background: rgba(255,255,255,.12); overflow: hidden;
}
#intro .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--gold)); animation: introbar 1.05s ease-out forwards; }
@keyframes introbar { to { width: 100% } }

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .mistbox .mist { display: none; }
    .ticker ul { animation: none; }
    .btn::after, .brand .dot, .feature .bloom, .band::before, .phead::before, .mailbox::before { animation: none !important; }
    #intro { display: none; }
    #trail { display: none; }
    .reveal.in .bullets .mk { animation: none; }
    * { transition-duration: .01ms !important; }
}
