/* GĀMHQ design system, built from the owner's logo: black ground, pure red, white, heavy geometric capitals.
   Type: Montserrat (black weights, tight, the logo's attitude) for display; Geist for reading; Geist Mono for counts.
   Shape: hard edges. Buttons and panels are square cut; the only round things are lights.
   Motion: things arrive with weight (fast out, long settle), never float. Reduced motion is honoured everywhere. */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2018-201D, U+2026, U+2192; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0101; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #000;
  --bg-2: #0b0b0b;
  --bg-3: #161616;
  --fg: #fff;
  --fg-2: #c9c9c9;
  --fg-3: #8d8d8d;
  --red: #ff0000;
  --red-deep: #b30000;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.3);
  --focus: #ff0000;
  color-scheme: dark;
  --f-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --t-sm: 0.875rem; --t-md: 1rem; --t-lg: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  --t-xl: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); --t-2xl: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); --t-3xl: clamp(2.8rem, 1.4rem + 6.4vw, 7.6rem);
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.9, 0.1, 1);
  --kick: cubic-bezier(0.7, 0, 0.2, 1);
  --z-world: 0; --z-page: 1; --z-hud: 5; --z-header: 20; --z-menu: 30; --z-cursor: 50; --z-skip: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; background: #000; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--t-md)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.035em; line-height: 0.92; margin: 0; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.red { color: var(--red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--s-4); top: -60px; z-index: var(--z-skip); background: var(--red); color: #fff; padding: 10px 16px; font-weight: 800; text-decoration: none; transition: top 200ms var(--ease); }
.skip:focus { top: var(--s-3); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* page changes: a shutter that works in every browser. The next page opens it; a click closes it. */
.wipe { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: #000; transform-origin: 50% 0; animation: wipe-open 620ms var(--kick) 60ms both; }
.wipe::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.wipe.done { visibility: hidden; }
html.leaving .wipe { visibility: visible; transform-origin: 50% 100%; animation: wipe-close 400ms var(--kick) both; }
html.leaving .wipe::after { top: 0; bottom: auto; }
@keyframes wipe-open { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes wipe-close { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.home .wipe { animation-duration: 1ms; animation-delay: 0ms; }
@media (prefers-reduced-motion: reduce) { .wipe { animation: wipe-fade 200ms linear both; } html.leaving .wipe { animation: wipe-fade 120ms linear reverse both; } }
@keyframes wipe-fade { from { opacity: 1; } to { opacity: 0; } }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: 68px; display: flex; align-items: center; transition: background 240ms var(--ease); }
.site-head.is-solid { background: linear-gradient(#000 55%, rgba(0, 0, 0, 0)); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.logo { display: block; text-decoration: none; line-height: 0; }
.logo svg { height: 22px; width: auto; transition: transform 300ms var(--ease); }
.logo:hover svg { transform: skewX(-8deg) scale(1.04); }
.head-right { display: flex; align-items: center; gap: var(--s-2); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; text-decoration: none; font: 800 12px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); padding: 12px 12px; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.snd-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: 700 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.snd-btn i { display: inline-flex; gap: 2px; align-items: end; height: 12px; }
.snd-btn i b { width: 2px; background: currentColor; height: 4px; }
.snd-btn[aria-pressed="true"] { color: #fff; border-color: var(--red); }
.snd-btn[aria-pressed="true"] i b { animation: eq 0.9s ease-in-out infinite alternate; }
.snd-btn i b:nth-child(2) { animation-delay: -0.3s; } .snd-btn i b:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0; z-index: var(--z-menu); flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 var(--gutter); background: #000; clip-path: inset(0 0 100% 0); transition: clip-path 500ms var(--kick); visibility: hidden; }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { font-size: clamp(2.4rem, 12vw, 3.6rem); letter-spacing: -0.03em; padding: 6px 0; color: #fff; }
  .nav a::after { left: 0; right: 0; bottom: 2px; height: 4px; }
  .menu-btn { position: relative; z-index: calc(var(--z-menu) + 1); display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); background: #000; color: #fff; font: 800 11px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
  .snd-btn span { display: none; }
}

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; font: 900 15px/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate; touch-action: manipulation; transition: transform 160ms var(--ease), color 200ms; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform 320ms var(--kick); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; font-size: 16px; }
.btn-red:hover { color: #000; }
.btn-line { background: rgba(0, 0, 0, 0.35); color: #fff; border-color: #fff; }
.btn-line:hover { color: #000; }
.btn .arr { transition: transform 300ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-big { min-height: 68px; padding: 0 34px; font-size: clamp(16px, 1rem + 0.5vw, 22px); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.label { font: 700 11px/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- the cursor (fine pointers; the system pointer stays for accessibility) and touch feedback ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 200ms; }
.cur::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border: 2px solid var(--red); border-radius: 50%; transition: transform 260ms var(--ease), background 200ms, border-color 200ms; }
.cur i { position: absolute; left: 22px; top: -9px; font: 800 10px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 7px; font-style: normal; opacity: 0; transform: translateX(-6px); transition: opacity 180ms, transform 260ms var(--ease); white-space: nowrap; }
.cur.on { opacity: 1; }
.cur.hot::before { transform: scale(1.9); background: rgba(255, 0, 0, 0.22); }
.cur.word::before { transform: scale(1.35); border-color: #fff; }
.cur.word i { opacity: 1; transform: none; }
.cur.press::before { transform: scale(0.7); }
@media (pointer: coarse) { .cur { display: none; } }
.tap-ring { position: fixed; z-index: var(--z-cursor); width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 2px solid var(--red); border-radius: 50%; pointer-events: none; animation: tap-ring 600ms var(--ease) both; }
@keyframes tap-ring { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-ring { animation-duration: 1ms; } }

/* ---------- THE WORLD (home) ---------- */
.world { position: fixed; inset: 0; z-index: var(--z-world); background: #000; }
.world canvas { width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.world canvas.ready { opacity: 1; }
.world .stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.world .fx { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 0; }
.world::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.7) 100%); }
.grain { position: fixed; inset: -50%; z-index: var(--z-page); pointer-events: none; opacity: 0.05; 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) { .grain { animation: grain 0.9s steps(4) infinite; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* the loader is the first shot: a tally lamp warming up, then a shutter opens on the dark stage */
.loader { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; pointer-events: none; animation: ld-fail 0.01s linear 9s both; }
@keyframes ld-fail { to { visibility: hidden; } }
.loader .ld-a, .loader .ld-b { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transition: transform 1000ms var(--kick); }
.loader .ld-a { top: 0; } .loader .ld-b { bottom: 0; }
.loader .ld-b::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 500ms var(--kick); }
.ld-in { position: relative; display: grid; justify-items: center; gap: 18px; transition: opacity 300ms; }
.ld-lamp { width: 14px; height: 14px; border-radius: 50%; background: #3a0000; box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08); transition: background 300ms, box-shadow 300ms; }
.ld-txt { font: 700 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ld-txt span { color: #fff; margin-left: 8px; }
.ld-bar { width: 160px; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
@media (prefers-reduced-motion: no-preference) { .ld-lamp { animation: lamp-warm 1.6s ease-in-out infinite alternate; } }
@keyframes lamp-warm { from { background: #3a0000; } to { background: #7a0000; } }
.loader.open .ld-lamp { background: #ff2a1a; box-shadow: 0 0 24px 6px rgba(255, 40, 20, 0.6); animation: none; }
.loader.open .ld-in { opacity: 0; transition-delay: 220ms; }
.loader.open .ld-a { transform: translateY(-101%); transition-delay: 300ms; }
.loader.open .ld-b { transform: translateY(101%); transition-delay: 300ms; }
.loader.open .ld-b::before { transform: scaleX(1); }
html.world-off .loader { display: none; }

.show { position: relative; z-index: var(--z-page); }
.ch { position: relative; }
.ch[data-ch="logo"] { height: 240svh; }
.ch[data-ch="show"] { height: 360svh; }
.ch[data-ch="doors"] { height: 250svh; }
.ch[data-ch="meter"] { height: 270svh; }
.ch[data-ch="film"] { height: 380svh; }
.ch[data-ch="finale"] { height: 200svh; }
.pin { position: sticky; top: 0; height: 100svh; display: grid; pointer-events: none; }
.pin > * { pointer-events: auto; }
/* with the world running, every chapter's text sits in the same fixed frame and the world script times it to the camera */
html.world-on .ch .pin { position: fixed; inset: 0; height: auto; }
html.world-on .copy-block, html.world-on .finale-block { visibility: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }

.copy-block { padding: 0 var(--gutter); max-width: min(600px, 44vw); }
.copy-block.at-bl { align-self: end; padding-bottom: clamp(32px, 8vh, 84px); }
.copy-block.at-tl { align-self: start; padding-top: calc(68px + clamp(20px, 6vh, 64px)); }
.copy-block.at-ml { align-self: center; }
.copy-block h2 { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.9rem); }
.copy-block p { margin-top: var(--s-4); font-size: var(--t-lg); color: var(--fg-2); max-width: 38ch; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.copy-block .ctas { margin-top: var(--s-5); }
.copy-block .tagline { font: 900 clamp(1.7rem, 1rem + 2.2vw, 3rem)/0.98 var(--f-display); text-transform: uppercase; letter-spacing: -0.03em; color: #fff; margin-top: 0; max-width: 14ch; }
.copy-block .lede { max-width: 40ch; }
.copy-block .hint { margin-top: var(--s-5); font: 700 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.copy-block h2, .finale-block h2, .tagline { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55); }

/* the show's control desk: docked under the set, never over it */
.desk { position: fixed; z-index: var(--z-hud); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); padding: 14px var(--gutter) 16px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9) 34%); transform: translateY(110%); transition: transform 520ms var(--kick); }
body[data-ch="show"] .desk { transform: none; }
.desk-top { display: grid; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 800 10px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #000; background: #ffd23a; padding: 6px 8px; width: max-content; }
.badge.you { background: #fff; }
.timer { font: 600 11px/1 var(--f-mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.q { font: 900 14px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt { position: relative; display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line-2); background: rgba(0, 0, 0, 0.6); color: #fff; font: 800 14px/1 var(--f-text); text-align: left; cursor: pointer; overflow: hidden; isolation: isolate; touch-action: manipulation; transition: transform 140ms var(--ease), border-color 200ms; }
.opt:active { transform: scale(0.96); }
.opt .fill { position: absolute; inset: 0; z-index: -1; background: rgba(255, 0, 0, 0.35); transform-origin: left; transform: scaleX(var(--share, 0)); transition: transform 420ms var(--ease); }
.opt .key { font: 700 11px/1 var(--f-mono); color: var(--fg-3); }
.opt .pct { font: 700 12px/1 var(--f-mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.opt[aria-pressed="true"], .opt.win { border-color: var(--red); }
.opt.win .fill { background: rgba(255, 0, 0, 0.6); }
.desk-mid { display: grid; gap: 6px; min-width: 0; }
.now { font: 700 11px/1.3 var(--f-mono); color: #ff5a5a; min-height: 14px; }
.chat { display: flex; gap: 6px; min-height: 22px; overflow: hidden; }
.chat span { font: 600 11px/1 var(--f-mono); padding: 5px 8px; background: rgba(255, 255, 255, 0.08); color: var(--fg-2); white-space: nowrap; }
.chat span b { color: #fff; margin-left: 6px; }
.desk-side { display: grid; gap: 6px; justify-items: end; }
.push { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 2px solid #ffb347; background: rgba(0, 0, 0, 0.6); color: #ffc070; font: 900 12px/1 var(--f-display); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; transition: transform 140ms var(--ease); }
.push:active { transform: scale(0.96); }
.push .meter { position: absolute; inset: 0; z-index: -1; background: rgba(255, 179, 71, 0.3); transform-origin: left; transform: scaleX(var(--meter, 0)); transition: transform 300ms var(--ease); }
.push kbd, .desk kbd { font: 700 10px var(--f-mono); border: 1px solid currentColor; padding: 1px 4px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { min-height: 34px; min-width: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--fg-2); font: 700 11px/1 var(--f-mono); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; }
.tally-line { display: flex; gap: 12px; font: 600 11px/1.3 var(--f-mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tally-line b { color: #fff; }
.desk-note { display: none; }
@media (max-width: 1180px) { .desk-feed .chat { display: none; } }
.turn-line { position: fixed; z-index: var(--z-hud); left: 50%; bottom: 128px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; background: #000; border: 2px solid var(--red); font: 900 clamp(1.1rem, 0.9rem + 1vw, 1.7rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.turn-line[hidden] { display: none; }
.turn-line a { font: 900 13px/1 var(--f-display); letter-spacing: 0.05em; color: #fff; background: var(--red); padding: 12px 14px; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .turn-line:not([hidden]) { animation: slam 700ms var(--ease) both; } }
@keyframes slam { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%); } }
.secret { position: fixed; z-index: var(--z-hud); left: 50%; top: 84px; transform: translateX(-50%); margin: 0; padding: 10px 14px; background: #fff; color: #000; font: 800 13px/1.2 var(--f-text); max-width: calc(100% - 32px); text-align: center; }
.secret[hidden] { display: none; }

/* the meter's controls and readout */
.meter-read { display: grid; gap: var(--s-3); margin-top: var(--s-5); justify-items: start; }
.meter-read .seg button { min-height: 44px; font-size: 13px; min-width: 60px; }
.copy-block .readout { display: grid; gap: 4px; font: 600 12px/1.4 var(--f-mono); color: var(--fg-2); margin: 0; }
.readout b { color: #fff; font-size: 15px; }
/* the picture house caption */
.film-head h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.8rem); max-width: 13ch; }
.copy-block .reel-cap { margin-top: var(--s-5); }
.reel-cap b { display: block; font: 900 clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; color: #fff; }
.reel-cap span { display: block; margin-top: 6px; color: var(--fg-2); }
.reel-cap .label { margin-top: 10px; }
/* the finale: the headline above the letters, the button below them */
.finale-block { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: calc(68px + clamp(8px, 4vh, 40px)) var(--gutter) clamp(24px, 5vh, 56px); text-align: center; justify-items: center; }
.finale-block h2 { font-size: clamp(2.2rem, 0.9rem + 4vw, 5.2rem); max-width: 17ch; }
.fin-low { grid-row: 3; display: grid; justify-items: center; gap: var(--s-4); }
.fin-low p { color: var(--fg-2); }
.plat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font: 600 12px/1.4 var(--f-mono); color: var(--fg-3); }
.plat li small { display: none; }

@media (max-width: 760px) {
  .copy-block { max-width: none; }
  .copy-block.at-bl { padding-bottom: 28px; }
  .copy-block.at-tl { padding-top: 84px; }
  .copy-block.at-ml { align-self: start; padding-top: 84px; }
  .copy-block h2 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
  .copy-block p { font-size: 15px; margin-top: 10px; }
  .ch[data-ch="show"] .copy-block p { display: none; }
  .ch[data-ch="meter"] .copy-block > p { display: none; }
  .meter-read { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 20px; margin: 0; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; }
  .meter-read .badge { grid-column: 1 / -1; grid-row: 1; }
  .copy-block .readout { font-size: 11px; }
  .film-head .reel-cap { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 26px; }
  .finale-block h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .copy-block .tagline { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .desk { grid-template-columns: 1fr auto; gap: 8px 10px; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.92); border-top: 2px solid var(--red); }
  .desk-top { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .desk-mid:not(.desk-feed) { grid-column: 1; }
  .q { font-size: 13px; }
  .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .opt { grid-template-columns: 1fr auto; min-height: 44px; padding: 0 8px; gap: 4px; font-size: 12px; }
  .opt .key { display: none; }
  .desk-feed { display: none; }
  .desk-side { grid-column: 2; grid-row: 2; align-self: end; }
  .desk-side .seg { display: none; }
  .push { flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; width: 80px; padding: 0 6px; font-size: 10px; line-height: 1.05; text-align: center; }
  .push kbd { display: none; }
  .turn-line { bottom: 150px; font-size: 1.05rem; padding: 10px 10px 10px 14px; }
}
.home .site-foot { position: relative; z-index: var(--z-page); background: #000; }

/* ---------- inner pages ---------- */
.page { position: relative; z-index: var(--z-page); }
.page-hero { padding-top: calc(68px + clamp(48px, 9vw, 128px)); padding-bottom: clamp(32px, 6vw, 80px); }
.page-hero h1 { font-size: var(--t-3xl); max-width: 13ch; }
.page-hero h1 .red { display: inline; }
.page-hero p { margin-top: var(--s-5); font-size: var(--t-lg); color: var(--fg-2); max-width: 48ch; }
.page-hero .ctas { margin-top: var(--s-6); }
.sec { padding-block: clamp(64px, 10vw, 140px); position: relative; }
.sec-head { display: grid; gap: var(--s-4); max-width: 48rem; margin-bottom: clamp(32px, 6vw, 72px); }
.sec-head h2 { font-size: var(--t-2xl); }
.sec-head p { color: var(--fg-2); font-size: var(--t-lg); max-width: 60ch; }
.band { border-top: 2px solid var(--red); }
.fh { position: relative; min-height: 96svh; display: grid; align-items: end; padding-top: 68px; overflow: hidden; isolation: isolate; }
.fh-art { position: absolute; inset: 0; z-index: -2; }
.fh-art img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .fh-art img { animation: drift 30s ease-in-out infinite alternate; } }
@keyframes drift { from { transform: scale(1.06) translateX(-1%); } to { transform: scale(1.12) translateX(1.5%); } }
.fh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000 3%, rgba(0, 0, 0, 0.5) 45%, transparent 75%), linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 60%); }
.fh .wrap { padding-bottom: clamp(36px, 7vw, 96px); }
.fh h1 { font-size: clamp(3.4rem, 1.4rem + 9vw, 10rem); letter-spacing: -0.05em; line-height: 0.85; }
.fh p { margin-top: var(--s-5); font-size: var(--t-lg); max-width: 40ch; }
.fh .ctas { margin-top: var(--s-6); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: var(--s-4); max-width: 62ch; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: #fff; }
.prose h2 { font-size: var(--t-2xl); margin-bottom: var(--s-2); }
.turntable { position: relative; aspect-ratio: 4 / 5; max-height: 80vh; background: radial-gradient(110% 80% at 50% 35%, #2a0505 0%, #0d0202 55%, #000 100%); overflow: hidden; border: 2px solid var(--red); }
.turntable canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.turntable .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; font: 700 11px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; pointer-events: none; }
/* the paintings: a reel you drag, not a grid */
.reel-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 980px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.reel-row figure { margin: 0; scroll-snap-align: center; }
.reel-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-3); }
.reel-row figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 12px; color: var(--fg-2); font-size: var(--t-sm); }
.reel-row figcaption b { font: 900 clamp(1.1rem, 0.9rem + 1vw, 1.6rem)/1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: -0.02em; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--red); }
.ctl { padding: var(--s-6) var(--s-5) var(--s-6) 0; }
.ctl + .ctl { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.ctl h3 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.ctl dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: var(--t-sm); }
.ctl dt { font: 900 12px/1.6 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }
.ctl dd { margin: 0; color: var(--fg-2); }
@media (max-width: 760px) { .controls { grid-template-columns: 1fr; } .ctl + .ctl { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .ctl dl { grid-template-columns: 1fr; gap: 2px; } .ctl dd { margin-bottom: 10px; } }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--red); }
.flow li { padding: var(--s-5) var(--s-5) var(--s-6) 0; }
.flow li + li { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.flow h3 { font-size: var(--t-lg); margin: var(--s-3) 0 var(--s-2); }
.flow p { font-size: var(--t-sm); color: var(--fg-2); }
.flow .label { color: var(--red); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.frame-code { font: 400 13px/1.65 var(--f-mono); background: #0a0a0a; border-left: 3px solid var(--red); padding: var(--s-5); overflow-x: auto; color: var(--fg-2); white-space: pre; margin: 0; }
.frame-code b { color: #fff; }
@media (max-width: 640px) { .frame-code { font-size: 11px; padding: var(--s-4); white-space: pre-wrap; word-break: break-word; } }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 72px); }
.checks > div { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.checks h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.checks p { color: var(--fg-2); font-size: var(--t-sm); max-width: 52ch; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--t-xl); margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { color: var(--fg-2); margin-bottom: var(--s-3); }
.legal ul { padding-left: 1.2em; margin: 0 0 var(--s-3); }
.legal li::marker { color: var(--red); }
.legal strong { color: #fff; }
.legal .updated { font: 600 var(--t-sm) var(--f-mono); color: var(--fg-3); }
.lost { position: relative; min-height: 100svh; display: grid; align-content: end; padding-bottom: clamp(40px, 8vh, 96px); }
.lost h1 { font-size: var(--t-2xl); }
.lost p { margin-top: var(--s-4); color: var(--fg-2); max-width: 40ch; }
.lost .ctas { margin-top: var(--s-5); }
.lost-world { position: absolute; inset: 0; }
.lost-world canvas { width: 100%; height: 100%; touch-action: pan-y; }

/* ---------- footer ---------- */
.site-foot { position: relative; z-index: var(--z-page); border-top: 2px solid var(--red); padding-block: var(--s-8) var(--s-7); color: var(--fg-2); font-size: var(--t-sm); background: #000; }
.foot-dev { font: 900 var(--t-xl)/1 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; color: #fff; margin: 0 0 var(--s-7); }
.foot-dev span { color: var(--red); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
.foot-grid h2 { font: 700 11px/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s-3); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-grid .logo svg { height: 26px; }
.foot-base { margin-top: var(--s-7); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; color: var(--fg-3); font-size: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.in { opacity: 1; transform: none; }
}

