/* Counterweight landing: the game's palette. Fonts are self-hosted: one subset file per weight (Latin + Cyrillic). */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fira-400.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/fira-500.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fira-600.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/firaxc-700.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/firaxc-800.woff2) format("woff2"); }

/* ======================================================================================
   One system for the whole page: one dark slab, one grid, one heading style, one rule weight,
   one button, one caption. Section = "floor": number in the game's pixel font + label,
   a huge condensed uppercase title, a lead, then the content flush with the grid.
   ====================================================================================== */
:root {
  --soot: #161412; --coal: #1d1b18; --iron: #2e2b27; --rule: #3a3631; --grey: #8a8478; --ash: #c7c1b0;
  --paper: #eee6d3; --brass: #d9b665; --brass-hi: #e8c97c; --brass-dk: #8a6f33; --red: #ad1d18;
  --sans: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --cond: "Fira Sans Extra Condensed", "Fira Sans", "Arial Narrow", sans-serif;
  --wrap: 1440px; --gut: 40px; --col-gap: 32px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 136px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--soot); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--soot); color: var(--paper); font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
.px, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: var(--soot); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 50; padding: 10px 16px; background: var(--brass); color: var(--soot); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* desktop-only / mobile-only: by the pointer, not the width */
.mobile-only { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  p.mobile-only { display: block !important; }
}

/* ---------- buttons: one button, three sizes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px;
  border: 0; border-radius: 0; background: var(--brass); color: var(--soot); font: 800 20px/1 var(--cond);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--brass-dk); transition: transform .08s, box-shadow .08s, background .15s; }
.btn:hover { background: var(--brass-hi); color: var(--soot); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brass-dk); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ash); }
.btn.ghost:active { transform: none; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 17px; box-shadow: 0 3px 0 var(--brass-dk); }
.btn-xl { min-height: 72px; padding: 0 56px; font-size: 32px; box-shadow: 0 6px 0 var(--brass-dk); }
.btn-xl:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--brass-dk); }
.copied { margin: var(--s2) 0 0; color: var(--brass); font-size: 15px; word-break: break-all; }
.copied:empty { display: none; }

/* ---------- nav with the floor dial ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; height: 72px; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(22, 20, 18, .94); box-shadow: 0 1px 0 var(--iron); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3); }
.nav-logo { justify-self: start; display: block; }
.nav-logo img { width: 159px; height: 15px; }
.nav .btn { justify-self: end; }
.dial { position: relative; display: flex; align-items: center; gap: 14px; }
.dial-face { width: 116px; height: 58px; overflow: visible; }
.dial-plate { fill: var(--brass); }
.dial-rim { fill: none; stroke: var(--brass-dk); stroke-width: 2; }
.dial-num { fill: var(--soot); font: 800 15px var(--cond); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.dial-num.on { fill: var(--paper); }
.dial-dot { fill: transparent; transition: fill .2s; pointer-events: none; }
.dial-dot.on { fill: var(--soot); }
.dial-hit { fill: transparent; cursor: pointer; }
.dial-needle { stroke: var(--soot); stroke-width: 4; stroke-linecap: square; transform-origin: 66px 62px; transition: transform .45s var(--ease); }
.dial-hub { fill: var(--soot); }
.dial-label { display: flex; align-items: baseline; gap: 8px; min-width: 150px; margin: 0; color: var(--ash);
  font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.dial-label b { color: var(--brass); font-size: 22px; font-weight: 800; letter-spacing: .04em; }
/* the floor list: a real menu under the dial on hover or keyboard focus */
.dial-floors { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--soot); box-shadow: inset 0 0 0 1px var(--iron); transform: translate(-50%, -4px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; }
.dial:hover .dial-floors, .dial:focus-within .dial-floors { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dial-floors::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.dial.shut .dial-floors { opacity: 0 !important; pointer-events: none !important; }
.dial-floors a { display: flex; gap: 12px; padding: 9px 18px; color: var(--ash); font: 700 16px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.dial-floors a::before { content: attr(data-floor); width: 14px; color: var(--grey); }
.dial-floors a[aria-current="true"] { color: var(--brass); }
.dial-floors a:hover, .dial-floors a:focus-visible { color: var(--paper); box-shadow: inset 3px 0 0 var(--brass); outline: none; }

/* ---------- hero: one poster ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; max-height: 1240px; overflow: hidden; }
/* app.js ends the stage just under the top of the wordmark, so the model never sits behind the text */
.hero-stage { position: absolute; inset: 72px 0 34% 0; }
.hero-stage canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-stage.ready canvas { opacity: 1; }
.hero-stage.no-gl canvas { display: none; }
.hero-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage.no-gl .hero-fallback { display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--soot) 0%, rgba(22, 20, 18, .9) 22%, rgba(22, 20, 18, 0) 40%); }
.hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: var(--s6); pointer-events: none; }
.hero-in > * { pointer-events: auto; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 var(--s2); color: var(--ash);
  font: 700 16px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.kicker b { color: var(--brass); font-weight: 800; }
.kicker span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px 3px 0; background: var(--rule); }
.hero h1 { margin: 0; line-height: 0; }
.wm { width: 100%; height: auto; }
.hero-row, .foot-row { max-width: var(--wm-w, none); }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: end; margin-top: var(--s4); }
.lead { max-width: 640px; margin: 0; font-size: 26px; line-height: 1.35; }
.hero-cta { justify-self: end; text-align: right; }
.cta-note { margin: var(--s2) 0 0; color: var(--grey); font-size: 15px; }
.hero-hint { position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  margin: 0; padding: 8px 14px 7px; background: rgba(22, 20, 18, .82); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ash);
  font: 700 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.hero-hint svg { width: 20px; height: 20px; color: var(--brass); animation: hint-turn 2.4s ease-in-out infinite; }
@keyframes hint-turn { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.hero-hint.gone, .hero-stage:not(.ready) .hero-hint, .hero-stage.no-gl .hero-hint { opacity: 0; }

/* ---------- the link panel from the game's menu (DEV / SOURCE / ITCH.IO) ---------- */
.menu-links { --k: 3; position: relative; flex: none; width: calc(128px * var(--k)); height: calc(70px * var(--k)); }
.menu-links img { width: 100%; height: 100%; }
.ml { position: absolute; left: calc(var(--x) * var(--k) * 1px); top: calc(var(--y) * var(--k) * 1px);
  width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px); outline: none;
  background: url(../img/menu-links.png) calc(var(--x) * var(--k) * -1px) calc(var(--y) * var(--k) * -1px) / calc(128px * var(--k)) calc(70px * var(--k)) no-repeat;
  image-rendering: pixelated; opacity: 0; filter: brightness(1.45); transition: opacity .15s; }
.ml:hover, .ml:focus-visible { opacity: 1; }
.ml::after { content: attr(data-cap); position: absolute; left: 50%; top: calc((70 - var(--y) - var(--h)) * var(--k) * 1px + 100% + 10px); transform: translateX(-50%); filter: brightness(.69);
  color: var(--brass); font: 700 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ml-dev { --x: 4; --y: 29; --w: 30; --h: 37; }
.ml-src { --x: 41; --y: 28; --w: 38; --h: 36; }
.ml-itch { --x: 86; --y: 29; --w: 38; --h: 37; }
.hero-links { --k: 2; position: absolute; z-index: 4; right: var(--gut); top: 92px; }
.foot-links { margin-left: auto; }


/* ---------- floors: one section head for all ---------- */
.sec { padding: var(--s8) 0 0; }
.sec + .sec { margin-top: var(--s7); border-top: 1px solid var(--iron); }
.sh { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); column-gap: var(--col-gap); margin-bottom: var(--s6); }
.sh-n { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 12px; margin: 10px 0 0; color: var(--brass); }
.sh-n .pos svg { height: 40px; width: auto; }
h2 { grid-column: 2; margin: 0; font: 800 clamp(52px, 7.6vw, 128px)/.88 var(--cond); letter-spacing: -.005em; text-transform: uppercase; }
h2, .reel h3, .tab .t, .rank .cat { text-wrap: balance; }
.lead, .sh-lead, .tab .d, .stat, .reel p, .step-text, .clip-desc, .game-touch p, blockquote p, blockquote cite, .foot-meta span, .keys li { text-wrap: pretty; }
.sh-lead { grid-column: 2; max-width: 780px; margin: var(--s3) 0 0; color: var(--ash); font-size: 21px; line-height: 1.5; }
.sh .story-nav { position: absolute; right: 0; bottom: 0; }

/* ---------- gameplay clips ---------- */
#clip-view { scroll-margin-top: 104px; }
/* the clips at exactly twice the game frame (960 x 540) when there is room */
.play-grid { display: grid; grid-template-columns: minmax(0, 960px) minmax(0, 1fr); gap: var(--col-gap); align-items: start; }
.player { position: relative; background: var(--coal); aspect-ratio: 16 / 9; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; cursor: pointer; }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(238, 230, 211, .12); pointer-events: none; }
.player-bar i { display: block; height: 100%; width: 0; background: var(--brass); }
.tabs { display: flex; flex-direction: column; align-self: stretch; margin: 0; padding: 0; }
.tab { width: 100%; display: block; margin: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--iron); background: none;
  color: var(--grey); font: inherit; text-align: left; cursor: pointer; transition: color .2s; }
.tab:last-child { border-bottom: 1px solid var(--iron); }
.tab .n { display: block; font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.tab .t { display: block; margin-top: 6px; font: 800 32px/1 var(--cond); text-transform: uppercase; color: inherit; }
.tab .d { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 1.45; color: var(--ash);
  transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.tab:hover { color: var(--ash); }
.tab[aria-selected="true"] { color: var(--paper); box-shadow: inset 0 3px 0 var(--brass); }
.tab[aria-selected="true"] .n { color: var(--brass); }
.tab[aria-selected="true"] .d { max-height: 120px; opacity: 1; margin-top: 10px; }
.tab-locked { cursor: default; color: var(--grey); flex: 1 0 auto; }
.tab-locked:hover { color: var(--grey); }
.tab-locked .t { color: var(--grey); }
.tab-locked .n { color: var(--brass); }
.tab-locked .d { max-height: none; opacity: 1; margin-top: 10px; color: var(--grey); }
.clip-desc, .clip-title { display: none; }

/* ---------- pixel lab ---------- */
.lab-view { position: relative; height: min(74vh, 760px); min-height: 460px; background: var(--soot); user-select: none; -webkit-user-select: none; }
.lab-view canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .6s var(--ease); }
.lab-view.ready canvas { opacity: 1; }
.lab-view canvas:active { cursor: grabbing; }
.lab-view.no-gl canvas, .lab-view.no-gl .split, .lab-view.no-gl .lab-tag { display: none; }
.lab-view.no-gl ~ .lab-bar .steps { display: none; }
.lab-fallback { display: none; }
/* without 3D: the still at its own 16:9, no black box around it */
.lab-view.no-gl { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.lab-view.no-gl .lab-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.lab-tag { position: absolute; top: 8px; color: var(--ash); text-shadow: 0 0 6px var(--soot), 0 0 2px var(--soot);
  font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.lab-tag.l { left: 0; } .lab-tag.r { right: 0; color: var(--brass); }
.lab.stepmode .lab-tag.l { display: none; }
.split { position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; z-index: 3; }
.split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--paper); }
.split span { position: absolute; bottom: 16px; left: 50%; width: 44px; height: 44px; margin: 0 0 0 -22px;
  background: var(--paper); color: var(--soot); display: grid; place-items: center; transition: transform .15s; }
.split:hover span, .split.drag span { transform: scale(1.08); }
.split svg { width: 20px; height: 20px; }
.split:focus-visible { outline: none; }
.split:focus-visible span { outline: 2px solid var(--brass); outline-offset: 3px; }
.lab-bar { margin-top: var(--s4); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; border-top: 1px solid var(--iron); }
.step { position: relative; width: 100%; padding: 18px 12px 0 0; border: 0; background: none; color: var(--ash); text-align: left;
  font: inherit; cursor: pointer; transition: color .2s; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; transition: background .2s; }
.step .n { display: block; color: var(--grey); font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.step .t { display: block; margin-top: 6px; font: 800 32px/1 var(--cond); text-transform: uppercase; }
.step:hover { color: var(--paper); }
.step:hover::before { background: var(--rule); }
.step[aria-pressed="true"] { color: var(--paper); }
.step[aria-pressed="true"]::before { background: var(--brass); }
.step[aria-pressed="true"] .n { color: var(--brass); }
.lab-foot { margin-top: var(--s3); }
.step-text { min-height: 78px; margin: 0; max-width: 720px; color: var(--ash); font-size: 17px; line-height: 1.5; }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.models button { white-space: nowrap; }
.models, .steps, .reel { overscroll-behavior-x: contain; overflow-y: hidden; }
/* the model switcher inside the picture: arrows at the sides, the name and count in the corner */
.lab-arrow { position: absolute; top: 50%; z-index: 4; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 0; border-radius: 0;
  display: grid; place-items: center; background: rgba(22, 20, 18, .72); box-shadow: inset 0 0 0 1px var(--rule); color: var(--paper);
  cursor: pointer; transition: box-shadow .15s, background .15s; }
.lab-arrow:hover { background: var(--soot); box-shadow: inset 0 0 0 1px var(--ash); }
.lab-arrow:active { box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass); }
.lab-arrow svg { width: 20px; height: 20px; }
.lab-arrow.prev { left: 0; } .lab-arrow.next { right: 0; }
.lab-view.no-gl .lab-arrow, .lab-view.no-gl ~ .models { display: none; }
.models button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ash); font: 800 17px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: box-shadow .15s, color .15s; }
.models button:hover { box-shadow: inset 0 0 0 1px var(--ash); color: var(--paper); }
.models button[aria-pressed="true"] { color: var(--paper); box-shadow: inset 0 0 0 1px var(--rule), inset 0 -3px 0 var(--brass); }

/* ---------- ratings ---------- */
.ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
.rank { padding-top: var(--s4); border-top: 1px solid var(--iron); }
.rank:first-child { border-top: 3px solid var(--brass); padding-top: calc(var(--s4) - 2px); }
.rank .pos { display: flex; align-items: flex-end; height: 160px; color: var(--paper); }
.rank:first-child .pos { color: var(--brass); }
.rank .pos svg { height: 100%; width: auto; }
.rank .cat { display: block; margin-top: var(--s3); font: 800 32px/1 var(--cond); text-transform: uppercase; }
.rank .sc { display: block; margin-top: 8px; color: var(--grey); font-size: 15px; }
.voices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); margin-top: var(--s7); align-items: end; }
.stat { margin: 0; color: var(--ash); font-size: 20px; line-height: 1.45; }
.stat b { display: block; margin-bottom: 10px; color: var(--paper); font: 800 96px/.9 var(--cond); text-transform: uppercase; }
blockquote { margin: 0; padding: 0 0 0 var(--s4); border-left: 3px solid var(--brass); }
blockquote p { margin: 0; font: 800 46px/1 var(--cond); text-transform: uppercase; color: var(--paper); }
blockquote cite { display: block; margin-top: var(--s2); color: var(--grey); font-size: 15px; font-style: normal; }

/* ---------- story ---------- */
.story-nav { display: flex; gap: 8px; }
.story-nav button { width: 52px; height: 52px; border: 0; background: none; box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: box-shadow .15s, opacity .2s; }
.story-nav button:hover { box-shadow: inset 0 0 0 1px var(--ash); }
.story-nav button:disabled { opacity: .3; cursor: default; }
.story-nav svg { width: 18px; height: 18px; }
/* 480 px cards: the 960 and 1920 px game frames land on exactly one game pixel per screen pixel */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: 480px; gap: var(--col-gap); margin: 0;
  padding: 0 var(--gut) 8px max(var(--gut), calc((100vw - var(--wrap)) / 2)); list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel li { scroll-snap-align: start; border-top: 1px solid var(--iron); padding-top: var(--s3); }
.reel .media { position: relative; aspect-ratio: 16 / 9; background: var(--coal); overflow: hidden; }
.reel .media img, .reel .media video { width: 100%; height: 100%; object-fit: cover; }
.reel .media.contain img { object-fit: contain; }
.reel .media.ba { cursor: pointer; }
.reel .media .before { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.reel .media.ba.show .before { opacity: 1; }
@media (hover: hover) { .reel .media.ba:hover .before { opacity: 1; } }
.reel time { display: block; margin-top: var(--s3); color: var(--brass); font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.reel h3 { margin: 10px 0 0; font: 800 32px/1 var(--cond); text-transform: uppercase; }
.reel p { margin: 12px 0 0; color: var(--ash); font-size: 16px; line-height: 1.5; }

/* ---------- footer: the closing plate ---------- */
.foot { margin-top: var(--s8); padding: var(--s7) 0 var(--s5); border-top: 1px solid var(--iron); }
.foot .wm { margin-bottom: var(--s5); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.links a { color: var(--ash); font: 700 18px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 4px; transition: color .15s, border-color .15s; }
.links a:hover { color: var(--paper); border-color: var(--ash); }
.foot-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid var(--iron); color: var(--grey); font-size: 14px; }

/* ---------- reveal (only when the script runs) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero h1, .js .hero .hero-row { animation: rise .9s var(--ease) backwards; }
.js .hero .hero-row { animation-delay: .1s; }
@media (hover: none) and (pointer: coarse) { .js .hero h1, .js .hero .hero-row { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --gut: 28px; --col-gap: 24px; }
  .sh { grid-template-columns: 1fr; }
  .sh-n { grid-row: auto; flex-direction: row; align-items: center; gap: 14px; margin: 0 0 var(--s3); }
  .sh-n .pos svg { height: 28px; }
  h2, .sh-lead { grid-column: 1; }
  .play-grid { grid-template-columns: 1fr; gap: 0; }
  .tabs { flex-direction: row; gap: 6px; margin-top: 2px; overflow: visible; }
  .tab { flex: 1 1 0; min-width: 0; width: auto; height: 34px; padding: 0; border: 0; position: relative; }
  .tab:last-child { border: 0; }
  .tab .n, .tab .t { display: none; }
  .tab::before, .tab::after { content: ""; position: absolute; left: 0; top: 12px; height: 4px; }
  .tab::before { right: 0; background: var(--iron); }
  .tab::after { width: var(--p, 0%); background: var(--brass); }
  .tab.done::after { width: 100%; background: var(--rule); }
  .tab-locked::before { background: repeating-linear-gradient(90deg, var(--iron) 0 6px, transparent 6px 10px); }
  .tab[aria-selected="true"]::after { bottom: auto; right: auto; height: 4px; }
  .player-bar { display: none; }
  .clip-title { display: block; margin: var(--s2) 0 0; font: 800 30px/1 var(--cond); text-transform: uppercase; }
  .clip-title span { display: block; margin-bottom: 8px; color: var(--brass); font: 700 14px/1 var(--cond); letter-spacing: .14em; }
  .models button:focus-visible { outline-offset: -2px; }
  .tab[aria-selected="true"] { box-shadow: none; }
  .tab .d { display: none; }
  .tab-locked .d { display: none; }

  .clip-desc { display: block; min-height: 48px; margin: 10px 0 0; color: var(--ash); font-size: 17px; }
  .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
  .dial-label { min-width: 116px; }
}
@media (max-width: 860px) {
  .hero { height: auto !important; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero-stage { position: relative; inset: auto !important; height: 52vh; height: 52svh; min-height: 320px; margin-top: 72px; }
  .hero::after { top: 72px; bottom: auto; height: 52svh; min-height: 320px; background: linear-gradient(0deg, var(--soot) 0%, rgba(22, 20, 18, 0) 24%); }
  .hero-in { height: auto; margin-top: -24px; padding-bottom: var(--s5); }
  .hero-row { grid-template-columns: 1fr; margin-top: var(--s4); }
  .hero-cta { justify-self: stretch; text-align: left; }
  .lead { font-size: 21px; }
  .hero-hint { bottom: 40px; font-size: 13px; padding: 7px 12px 6px; }
  .sec { padding-top: var(--s7); }
  .sec + .sec { margin-top: var(--s6); }
  .sh { margin-bottom: var(--s5); }
  .sh-lead { font-size: 18px; }
  .sh .story-nav { display: none; }
  .voices { grid-template-columns: 1fr; row-gap: var(--s5); margin-top: var(--s6); }
  blockquote p { font-size: 34px; }
  .stat b { font-size: 72px; }
  .rank .pos { height: 96px; }
  .rank .cat { font-size: 28px; }
  .nav-in { grid-template-columns: auto 1fr; }
  .dial { justify-self: end; }
  .dial-face { display: none; }
  .dial-floors { left: auto; right: 0; transform: none; }
  .dial:hover .dial-floors, .dial:focus-within .dial-floors { transform: none; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; --col-gap: 16px; }
  body { font-size: 17px; }
  .nav-logo img { width: 106px; height: 10px; }
  .kicker { font-size: 14px; gap: 6px 18px; margin-bottom: var(--s3); }
  .kicker span::before { margin-right: 10px; }
  .btn-xl { width: 100%; min-height: 64px; font-size: 26px; padding: 0 20px; }
  .lab-view { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .lab-view.no-gl { aspect-ratio: 16 / 9; }
  .lab-tag { top: 10px; font-size: 12px; }
  .lab-tag.l { left: 0; } .lab-tag.r { right: 0; }
  .lab-arrow { width: 44px; height: 44px; margin-top: -22px; }
    .models::-webkit-scrollbar { display: none; }
  .steps { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0 22px; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .step:focus-visible { outline-offset: -2px; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: none; width: auto; padding-right: 0; }
  .step .t { font-size: 26px; white-space: nowrap; }
  .step-text { font-size: 16px; min-height: 96px; }
  .rank .pos { height: 64px; }
  .rank .cat { font-size: 24px; }
  .reel { grid-auto-columns: 84vw; gap: 16px; }
  .reel h3 { font-size: 26px; }
  .foot-links { --k: 2; margin: var(--s4) auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero h1, .js .hero .hero-row { animation: none; }
  .btn, .tab .d, .dial-needle { transition: none; }
}
