/* ═════════════════════════════════════════════════════════════════════════
   BAYNE — playbayne.com
   The game's home. ractr.com is the engine; this is the world.

   Type     Newsreader Display for everything carved in stone (the wordmark,
            the headlines), Newsreader Italic for the word that should be
            felt, Mona Sans for everything that talks, Geist Mono for the
            small print of a frame (place, hour, source).
   Colour   Night, parchment, and one metal: old gold, with ember for fire
            and a dried-blood red that belongs to Lord Bayne alone.
   Images   Real frames only: the game engine or the AR build, cropped,
            never retouched.
   ═════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Newsreader Display"; src: url("media/type/newsreader-display.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader Display"; src: url("media/type/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("media/type/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("media/type/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    --night: #07060a;
    --night-1: #0c0a0f;
    --night-2: #14111a;
    --ink: #f2eadb;
    --ink-2: #cfc5b1;
    --ink-3: #9a907d;
    --ink-4: #635b4f;
    --gold: #d9ae62;
    --gold-hot: #f7da98;
    --gold-deep: #9a6a2c;
    --ember: #ff9a52;
    --blood: #a3281f;
    --moon: #b9c7e6;
    --line: rgba(242, 234, 219, 0.1);
    --line-2: rgba(242, 234, 219, 0.2);
    --gild: linear-gradient(100deg, #fde9b6 0%, #e7bd6c 42%, #b87a34 100%);

    --f-display: "Newsreader Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --f-sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --gutter: clamp(18px, 4.4vw, 64px);
    --max: 1400px;
    --mast: 70px;
    --r: 18px;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --fs-h2: clamp(2.3rem, 5.2vw, 5.2rem);
    --fs-lede: clamp(1.06rem, 1.35vw, 1.28rem);
}

/* ─── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--night); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mast) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0; background: var(--night); color: var(--ink);
    font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.62;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: rgba(217, 174, 98, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* grain over everything, quiet and static: kills banding in the dark gradients */
body::after {
    content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--night); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease); }
.skip:focus { top: 16px; }

.kicker {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.9em;
    margin: 0 0 1.4rem; font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
}
.kicker > span:first-child { display: inline-flex; align-items: center; gap: 0.9em; color: var(--gold); }
.kicker > span:first-child::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.kicker > span:only-child::after { display: none; }
.kicker-blood > span:first-child { color: #e2574b; }

h2 {
    font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 400; line-height: 0.98;
    letter-spacing: -0.012em; margin-bottom: 1.4rem;
}
h2 em, .hero-sub em {
    font-style: italic; font-weight: 400;
    background: var(--gild); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: 0.06em; margin-right: -0.06em;
}
.lede { font-size: var(--fs-lede); line-height: 1.58; color: var(--ink-2); max-width: 38rem; }
.i { width: 18px; height: 18px; flex: none; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
    font: 600 0.98rem/1 var(--f-sans); font-stretch: 104%; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
    transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.35s var(--ease), color 0.3s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn-gold {
    color: #1a1206;
    background: linear-gradient(180deg, #f8dfa4, #d9ae62 55%, #b98a45);
    box-shadow: 0 0 0 1px rgba(255, 236, 190, 0.55) inset, 0 12px 40px -12px rgba(217, 174, 98, 0.65);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 240, 205, 0.8) inset, 0 18px 50px -12px rgba(233, 190, 110, 0.8); }
.btn-gold .i { transition: transform 0.35s var(--ease); }
.btn-gold:hover .i { transform: translateX(3px); }
.btn-glass { color: var(--ink); background: rgba(12, 10, 16, 0.42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(242, 234, 219, 0.22) inset; }
.btn-glass:hover { background: rgba(12, 10, 16, 0.62); }

/* ─── Masthead ────────────────────────────────────────────────────────── */
.mast {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--mast);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: var(--gutter);
    transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.mast.is-scrolled { background: rgba(7, 6, 10, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.mast-word { font: 500 1.3rem/1 var(--f-display); letter-spacing: 0.32em; margin-right: -0.32em; text-decoration: none; color: var(--ink); }
.mast-nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.mast-nav a { font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 8px 0; position: relative; }
.mast-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.mast-nav a:hover { color: var(--ink); }
.mast-nav a:hover::after { transform: scaleX(1); }
.mast-end { display: flex; align-items: center; gap: 10px; }
.sound {
    display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(12, 10, 16, 0.4); box-shadow: 0 0 0 1px var(--line-2) inset; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.sound:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.55) inset; }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] { color: var(--gold-hot); }
.sound[aria-pressed="true"] .sound-bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -0.55s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.mast-menu { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(12, 10, 16, 0.45); box-shadow: 0 0 0 1px var(--line-2) inset; cursor: pointer; }
.mast-menu > span:first-child { display: grid; gap: 5px; width: 16px; margin: auto; }
.mast-menu i { display: block; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.mast-menu[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.mast-menu[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-media, .hero-shade, .hero-bars { position: absolute; inset: 0; }
.hero-media { z-index: -3; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-video { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
    z-index: -2;
    background:
        radial-gradient(90% 70% at 50% 42%, rgba(7, 6, 10, 0), rgba(7, 6, 10, 0.42) 74%),
        linear-gradient(180deg, rgba(7, 6, 10, 0.4) 0%, rgba(7, 6, 10, 0) 22%, rgba(7, 6, 10, 0.06) 60%, rgba(7, 6, 10, 0.9) 100%);
}
/* cinema bars: they open as the page arrives */
.hero-bars { z-index: -1; pointer-events: none; }
.hero-bars i { position: absolute; left: 0; right: 0; height: 12vh; background: var(--night); }
.hero-bars i:first-child { top: 0; }
.hero-bars i:last-child { bottom: 0; }
.js .hero-bars i { animation: barsOpen 1.8s var(--ease-io) 0.15s both; }
.js .hero-bars i:first-child { transform-origin: top; }
.js .hero-bars i:last-child { transform-origin: bottom; }
@keyframes barsOpen { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; padding: calc(var(--mast) + 4vh) var(--gutter) 12vh; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(14px, 2.4vh, 26px); font: 500 0.74rem/1 var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); }
.hero-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero-title {
    display: flex; justify-content: center;
    font-family: var(--f-display); font-weight: 500; line-height: 0.82;
    font-size: clamp(4.6rem, 17vw, 15.5rem); letter-spacing: 0.14em; margin-right: -0.14em;
    color: var(--ink);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35), 0 0 80px rgba(255, 210, 140, 0.18);
}
.hero-title span { display: inline-block; }
.js .hero-title span { animation: carve 1.6s var(--ease) both; animation-delay: calc(0.2s + var(--k, 0) * 0.08s); }
.hero-title span:nth-child(1) { --k: 0; } .hero-title span:nth-child(2) { --k: 1; } .hero-title span:nth-child(3) { --k: 2; } .hero-title span:nth-child(4) { --k: 3; } .hero-title span:nth-child(5) { --k: 4; }
@keyframes carve {
    from { opacity: 0; transform: translateY(0.28em) scale(1.08); filter: blur(14px); letter-spacing: 0.3em; }
    60% { opacity: 1; filter: blur(0); }
    to { opacity: 1; transform: none; filter: none; }
}
.hero-rule { display: block; width: min(420px, 60vw); height: 1px; margin: clamp(16px, 2.6vh, 28px) 0; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hot) 50%, var(--gold) 80%, transparent); }
.js .hero-rule { animation: rule 1.4s var(--ease) 0.9s both; }
@keyframes rule { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.hero-sub { margin: 0 0 clamp(22px, 3.4vh, 36px); font-family: var(--f-display); font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--ink); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; margin: clamp(18px, 3vh, 28px) 0 0; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 154, 82, 0.6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 154, 82, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 154, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 154, 82, 0); } }
.js .hero-kicker, .js .hero-sub, .js .hero-cta, .js .hero-status { animation: rise 1.2s var(--ease) both; }
.js .hero-kicker { animation-delay: 0.1s; }
.js .hero-sub { animation-delay: 1.05s; }
.js .hero-cta { animation-delay: 1.25s; }
.js .hero-status { animation-delay: 1.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-cap { position: absolute; left: var(--gutter); bottom: 26px; z-index: 2; margin: 0; font: 500 0.66rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hero-down { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 12px; font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.hero-down i { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.hero-down i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ─── The descent (pinned stage, four chapters) ───────────────────────── */
.descent { position: relative; }
.descent-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.layer.is-on { opacity: 1; }
.layer img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p, 0) * 0.12)); transform-origin: 50% 60%; will-change: transform; }
.layer-scope { display: grid; place-items: center; background: #000; }
.layer-scope img { width: min(100%, 1380px); height: auto; aspect-ratio: 1380 / 520; object-fit: cover; transform: scale(calc(1.06 - var(--p, 0) * 0.06)); }
.layer-dark { background: radial-gradient(60% 55% at 50% 62%, rgba(163, 40, 31, 0.28), transparent 70%), radial-gradient(120% 90% at 50% 120%, rgba(255, 120, 60, 0.12), transparent 60%), #050406; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #ffb070; box-shadow: 0 0 8px 2px rgba(255, 140, 60, 0.7); opacity: 0; }
.layer-dark.is-on .embers i { animation: ember 9s linear infinite; }
.embers i:nth-child(1) { left: 12%; animation-delay: 0s; } .embers i:nth-child(2) { left: 24%; animation-delay: 2.1s; } .embers i:nth-child(3) { left: 37%; animation-delay: 4.3s; } .embers i:nth-child(4) { left: 49%; animation-delay: 1.2s; }
.embers i:nth-child(5) { left: 61%; animation-delay: 5.6s; } .embers i:nth-child(6) { left: 72%; animation-delay: 3.3s; } .embers i:nth-child(7) { left: 84%; animation-delay: 6.8s; } .embers i:nth-child(8) { left: 93%; animation-delay: 0.7s; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translate(-30px, -105vh); opacity: 0; } }
.descent-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 6, 10, 0.78) 0%, rgba(7, 6, 10, 0.35) 38%, rgba(7, 6, 10, 0) 62%), linear-gradient(180deg, rgba(7, 6, 10, 0.5), transparent 20%, transparent 78%, rgba(7, 6, 10, 0.85)); }
.descent-rail { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font: 500 0.8rem/1 var(--f-display); letter-spacing: 0.1em; color: var(--ink-4); }
.descent-rail li { display: flex; align-items: center; gap: 10px; justify-content: flex-end; transition: color 0.5s; }
.descent-rail li::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.descent-rail li.is-on { color: var(--gold-hot); }
.descent-rail li.is-on::after { width: 36px; }
.chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: calc(560px + var(--gutter) * 2); padding: 14vh var(--gutter); }
.chapter h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5); }
.chapter p { color: var(--ink-2); font-size: var(--fs-lede); line-height: 1.58; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7); }
.chapter .chapter-meta { margin-top: 0.6rem; font: 500 0.68rem/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.chapter-lore { max-width: calc(760px + var(--gutter) * 2); }
.chapter-lore h2 { font-size: clamp(2.5rem, 5.6vw, 5.6rem); }
.chapter-lore h2 em { background: linear-gradient(100deg, #ffb8a0 0%, #e2574b 45%, #8e1f18 100%); -webkit-background-clip: text; background-clip: text; }
.lore-text { max-width: 40rem; }
.js .chapter > * { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .chapter.is-in > * { opacity: 1; transform: none; }
.js .chapter.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.js .chapter.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.js .chapter.is-in > *:nth-child(4) { transition-delay: 0.24s; }

/* ─── Section heads ───────────────────────────────────────────────────── */
.sec-head { max-width: 900px; margin-bottom: clamp(40px, 6vh, 72px); }
.sec-head-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.sec-head-row h2 { margin-bottom: 0; }
.sec-head-row .lede { margin-bottom: 1rem; }

/* ─── Zones ───────────────────────────────────────────────────────────── */
.zones { position: relative; padding-block: clamp(110px, 16vh, 180px); background: radial-gradient(80% 50% at 80% 0%, rgba(217, 174, 98, 0.07), transparent 70%), var(--night); }
.zone-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.zc-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: #000; box-shadow: 0 0 0 1px var(--line) inset, 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.zc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.zone-card:hover .zc-media img { transform: scale(1.03); }
.zc-live .zc-f { opacity: 0; transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.zc-live .zc-f.is-f-on { opacity: 1; }
.no-js .zc-live .zc-f:nth-child(4) { opacity: 1; }
.zc-chip { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(7, 6, 10, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 0.64rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.zc-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.zc-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background: radial-gradient(70% 50% at 50% 50%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1)); opacity: 0; transition: opacity 0.9s var(--ease); }
.zone-card:hover .zc-card, .zone-card:focus-within .zc-card, .zone-card.is-in .zc-card, .zc-card-on { opacity: 1; }
.zc-you { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); }
.zc-name { font: 500 clamp(1.9rem, 3vw, 2.7rem)/1 var(--f-display); letter-spacing: 0.16em; margin-right: -0.16em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 30px rgba(0, 0, 0, 0.8); }
.zc-black .zc-media { background: radial-gradient(60% 45% at 50% 55%, rgba(120, 130, 170, 0.12), transparent 70%), #030305; }
.zc-black .zc-name { color: #d8dcea; }
.zc-text { padding: 20px 4px 0; }
.zc-text h3 { font: 500 1.6rem/1.1 var(--f-display); letter-spacing: 0.02em; margin-bottom: 8px; }
.zc-epithet { font-family: var(--f-display); font-style: italic; font-size: 1.12rem; line-height: 1.4; color: var(--gold-hot); margin-bottom: 8px; }
.zc-note { margin: 0; font-size: 0.93rem; color: var(--ink-3); }
.zone-map { margin: clamp(56px, 8vh, 96px) 0 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.zm-frame { position: relative; overflow: hidden; border-radius: var(--r); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.35) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.zm-frame img { width: 100%; height: auto; filter: sepia(0.65) saturate(0.85) contrast(1.08) brightness(0.82); }
.zm-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 50% 50%, transparent 55%, rgba(7, 6, 10, 0.75)); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.35) inset; pointer-events: none; }
.zone-map figcaption { color: var(--ink-2); font-size: 1.02rem; }
.zone-map figcaption .kicker { margin-bottom: 1rem; }

/* ─── Dig and build ───────────────────────────────────────────────────── */
.build { position: relative; padding-block: clamp(110px, 16vh, 190px) 0; overflow: hidden; background: linear-gradient(180deg, var(--night), var(--night-1)); }
.build-words { font-size: clamp(3rem, 10.5vw, 10.5rem); line-height: 0.9; letter-spacing: -0.02em; margin: 0 0 clamp(28px, 4vh, 48px); }
.build-words .bw { display: block; }
.js .build-words .bw { opacity: 0.12; transform: translateX(-4%); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .build-words .bw.is-in { opacity: 1; transform: none; }
.build-lede { margin-left: auto; max-width: 34rem; }
.build-band { position: relative; margin: clamp(64px, 10vh, 120px) 0 0; }
.build-band img { width: 100%; max-width: 1380px; margin-inline: auto; aspect-ratio: 1380 / 515; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.build-band figcaption { text-align: center; margin: 12px 0 0; padding-bottom: 20px; font: 500 0.66rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }

/* ─── People (armoury carousel) ───────────────────────────────────────── */
.armoury { position: relative; padding-block: clamp(110px, 15vh, 170px) clamp(90px, 12vh, 140px); background: radial-gradient(70% 45% at 15% 20%, rgba(217, 174, 98, 0.08), transparent 70%), var(--night-1); }
.arm-dev { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0; font-size: 0.95rem; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 154, 82, 0.55) inset; font: 500 0.62rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }
.carousel { position: relative; }
.car-track {
    list-style: none; margin: 0; padding: 8px var(--gutter) 24px;
    display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
@media (min-width: 1500px) { .car-track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.car-card { flex: 0 0 auto; width: clamp(200px, 22vw, 280px); scroll-snap-align: start; }
.car-card.car-wide { width: clamp(300px, 44vw, 560px); }
.car-card figure { margin: 0; }
.car-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); background: #111; box-shadow: 0 0 0 1px var(--line) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.car-wide img { aspect-ratio: 4 / 3; }
.car-card:hover img { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.5) inset, 0 40px 70px -30px rgba(0, 0, 0, 0.95); }
.car-card figcaption { display: grid; gap: 2px; padding: 14px 2px 0; }
.cc-name { font: 500 1.25rem/1.15 var(--f-display); }
.cc-kit { font-size: 0.88rem; color: var(--ink-3); }
.car-ui { display: flex; align-items: center; gap: 24px; margin-top: 6px; }
.car-count { margin: 0; font: 500 0.8rem/1 var(--f-mono); letter-spacing: 0.1em; color: var(--ink-3); }
.car-count b { color: var(--gold-hot); font-weight: 500; }
.car-src { flex: 1; margin: 0; font: 500 0.66rem/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.car-btns { display: flex; gap: 10px; }
.car-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(242, 234, 219, 0.06); box-shadow: 0 0 0 1px var(--line-2) inset; transition: background-color 0.3s, box-shadow 0.3s; }
.car-btn:hover { background: rgba(217, 174, 98, 0.14); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.6) inset; }
.car-btn svg { width: 20px; height: 20px; }
.car-btn:disabled { opacity: 0.35; cursor: default; }
.arm-line { margin: clamp(64px, 9vh, 110px) auto 0; }
.arm-line img { width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line) inset; }
.arm-line figcaption, .ar-media figcaption, .sky-panel figcaption { margin-top: 12px; font: 500 0.66rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }

/* ─── Weather and time ────────────────────────────────────────────────── */
.skies { padding-block: clamp(110px, 15vh, 170px); background: linear-gradient(180deg, var(--night-1), var(--night)); }
.skies-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.skies-tabs { display: grid; gap: 4px; margin-top: 30px; }
.sky-tab {
    display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
    padding: 14px 16px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; background: transparent;
    box-shadow: 0 1px 0 var(--line); transition: background-color 0.3s, box-shadow 0.3s;
}
.sky-tab:hover { background: rgba(242, 234, 219, 0.04); }
.sky-tab[aria-selected="true"] { background: rgba(217, 174, 98, 0.1); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.45) inset; }
.st-time { font: 400 1.35rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sky-tab[aria-selected="true"] .st-time { color: var(--gold-hot); }
.st-place { font-size: 0.98rem; color: var(--ink); }
.st-sky { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.skies-view { position: relative; display: grid; }
.sky-panel { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.sky-panel.is-on { opacity: 1; }
.sky-link { display: block; overflow: hidden; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line) inset, 0 40px 90px -40px rgba(0, 0, 0, 0.95); }
.sky-link img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 1.2s var(--ease); }
.sky-link:hover img { transform: scale(1.02); }
.skies-dial { position: absolute; z-index: 2; right: 16px; top: 16px; width: 76px; height: 76px; display: grid; place-items: center; color: var(--gold-hot); border-radius: 50%; background: rgba(7, 6, 10, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.skies-dial svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); overflow: visible; }
.dial-hand { transform-origin: 60px 60px; transform: rotate(var(--sun, 0deg)); transition: transform 1.2s var(--ease); }
.dial-time { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--ink); }

/* ─── BAYNE AR ────────────────────────────────────────────────────────── */
.ar { padding-block: clamp(100px, 14vh, 160px); background: radial-gradient(60% 50% at 30% 50%, rgba(185, 199, 230, 0.07), transparent 70%), var(--night); }
.ar-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.ar-media { margin: 0; max-width: 460px; }
.ar-media a { display: block; overflow: hidden; border-radius: 26px; box-shadow: 0 0 0 1px rgba(185, 199, 230, 0.28) inset, 0 50px 100px -40px rgba(0, 0, 0, 0.95); }
.ar-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ar-copy h2 em { background: linear-gradient(100deg, #f2f5ff 0%, #b9c7e6 50%, #7f8fb8 100%); -webkit-background-clip: text; background-clip: text; }

/* ─── Join ────────────────────────────────────────────────────────────── */
.join { position: relative; padding-block: clamp(120px, 17vh, 200px); overflow: hidden; text-align: center; background: var(--night-1); }
.join-glow { position: absolute; inset: 0; background: radial-gradient(50% 45% at 50% 40%, rgba(217, 174, 98, 0.16), transparent 70%); pointer-events: none; }
.join-inner { position: relative; display: grid; justify-items: center; max-width: 820px; }
.join-seal { width: 84px; height: 84px; margin-bottom: 26px; color: var(--gold); opacity: 0.9; }
.js .join-seal { animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.join .kicker > span:first-child::after { display: none; }
.join h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.join .lede { margin: 0 auto 36px; }
.signup-wrapper { width: 100%; max-width: 620px; }
.signup-form { width: 100%; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
.form-input {
    width: 100%; height: 56px; padding: 0 20px; border: 0; border-radius: 14px;
    font: 400 1rem/1 var(--f-sans); color: var(--ink); background: rgba(242, 234, 219, 0.05);
    box-shadow: 0 0 0 1px var(--line-2) inset; transition: box-shadow 0.3s, background-color 0.3s;
}
.form-input::placeholder { color: var(--ink-3); }
.form-input:focus { outline: none; background: rgba(242, 234, 219, 0.08); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.8) inset, 0 0 0 4px rgba(217, 174, 98, 0.14); }
.form-submit {
    width: 100%; height: 58px; margin-top: 10px; border: 0; border-radius: 14px; cursor: pointer;
    font: 650 1.02rem/1 var(--f-sans); font-stretch: 106%; letter-spacing: 0.01em; color: #1a1206;
    background: linear-gradient(180deg, #f8dfa4, #d9ae62 55%, #b98a45);
    box-shadow: 0 0 0 1px rgba(255, 236, 190, 0.55) inset, 0 18px 50px -18px rgba(217, 174, 98, 0.75);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s;
}
.form-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.form-submit:disabled { cursor: progress; filter: saturate(0.6) brightness(0.9); }
.form-error { margin: 14px 0 0; color: #ffb4a8; font-size: 0.95rem; }
.form-error a { color: var(--gold-hot); }
.form-note { margin: 14px 0 0; font: 500 0.7rem/1.5 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.form-success { display: none; padding: 26px; border-radius: 16px; background: rgba(217, 174, 98, 0.1); box-shadow: 0 0 0 1px rgba(217, 174, 98, 0.5) inset; font: 400 1.35rem/1.35 var(--f-display); color: var(--ink); }
.btn-discord { margin-top: 18px; }
.join-fine { margin: 28px 0 0; font-size: 0.86rem; color: var(--ink-3); }
.join-fine a { color: var(--ink-2); }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.foot { position: relative; padding-block: clamp(64px, 10vh, 110px) 32px; border-top: 1px solid var(--line); background: var(--night); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; }
.foot-word { grid-column: 1 / -1; margin: 0 0 12px; font: 500 clamp(4.5rem, 19vw, 17rem)/0.78 var(--f-display); letter-spacing: 0.14em; color: transparent; -webkit-text-stroke: 1px rgba(217, 174, 98, 0.35); user-select: none; }
.foot-line { margin: 0; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.foot-nav a { font: 500 0.74rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--gold-hot); }
.foot-engine { color: var(--gold) !important; }
.foot-small { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-4); }

/* ─── Lightbox ────────────────────────────────────────────────────────── */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; display: none; place-items: center; }
.lightbox[open] { display: grid; animation: lbIn 0.35s var(--ease); }
.lightbox::backdrop { background: rgba(3, 2, 5, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.985); } }
.lightbox figure { margin: 0; max-width: min(94vw, 1800px); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 12px; box-shadow: 0 40px 120px -30px #000; }
.lightbox video { display: block; width: min(94vw, 1600px); max-height: 84vh; border-radius: 12px; background: #000; box-shadow: 0 40px 120px -30px #000; }
.lightbox figcaption { margin-top: 14px; text-align: center; font: 500 0.74rem/1.5 var(--f-mono); letter-spacing: 0.08em; color: var(--ink-2); }
.lb-close { position: fixed; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--ink); }
.lb-close svg { width: 20px; height: 20px; }

/* ─── Reveal ──────────────────────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mast-nav { gap: 16px; }
    .skies-grid, .ar-grid, .zone-map { grid-template-columns: minmax(0, 1fr); }
    .ar-media { max-width: 420px; }
}
@media (max-width: 900px) {
    :root { --mast: 62px; }
    .mast-menu { display: block; }
    .mast-nav {
        position: fixed; inset: var(--mast) 0 auto; display: grid; gap: 0; padding: 10px var(--gutter) 22px;
        background: rgba(7, 6, 10, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
    }
    .mast-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .mast-nav a { padding: 16px 0; font-size: 0.86rem; border-bottom: 1px solid var(--line); }
    .mast-end .btn-sm { display: none; }
    .sound-label { display: none; }
    .sound { width: 42px; padding: 0; justify-content: center; }
    .sec-head-row { grid-template-columns: minmax(0, 1fr); }
    .zone-cards { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .zc-media { aspect-ratio: 4 / 4.2; }
    .descent-veil { background: linear-gradient(180deg, rgba(7, 6, 10, 0.55), rgba(7, 6, 10, 0.25) 30%, rgba(7, 6, 10, 0.55) 62%, rgba(7, 6, 10, 0.92)); }
    .descent-rail { display: none; }
    .chapter { justify-content: flex-end; padding-bottom: 12vh; }
    .layer-scope img { width: 100%; height: 100%; aspect-ratio: auto; }
    .hero-cap { display: none; }
    .hero-down { left: 50%; right: auto; translate: -50% 0; }
    .car-ui { flex-wrap: wrap; gap: 14px; }
    .car-src { order: 3; flex-basis: 100%; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-nav { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .hero-kicker { letter-spacing: 0.22em; font-size: 0.66rem; }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .skies-tabs { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .skies-tabs::-webkit-scrollbar { display: none; }
    .sky-tab { grid-template-columns: 1fr; gap: 6px; scroll-snap-align: start; box-shadow: 0 0 0 1px var(--line) inset; }
    .skies-dial { width: 62px; height: 62px; }
    .car-card { width: 62vw; }
    .car-card.car-wide { width: 86vw; }
    .car-wide img { aspect-ratio: 920 / 550; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .layer img, .layer-scope img { transform: none !important; }
    .js .chapter > *, .js .rv, .js .build-words .bw { opacity: 1 !important; transform: none !important; }
    .hero-video { display: none; }
}
