@import url('fonts/fonts.css');

:root {
  --stage: #050608;
  --stage-2: #0b0d11;
  --ink: #eef0f3;
  --mute: #6f7480;
  --dim: #3a3e47;
  --hair: rgb(255 255 255 / 9%);
  --p1: #ff4d5e;
  --p2: #3f8cff;
  --gold: #ffd166;
  --on-block: #07080a;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --snap: cubic-bezier(.2, 1.8, .4, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --prog: 0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--stage); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stage); font: 400 15px/1.55 var(--mono); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--p1); color: var(--on-block); }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.scan {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / 22%) 0 1px, transparent 1px 3px);
  opacity: .3;
}
.display {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .86;
}
.mono { font-family: var(--mono); }
.label { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: lowercase; color: var(--mute); }
.tabular { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.dim { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caret {
  display: inline-block; width: .6em; height: 1em; margin-left: .15em; vertical-align: -.12em;
  background: var(--ink); animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.av-tag {
  display: inline-block; background: var(--tc, var(--p1)); color: var(--on-block);
  font: 700 11px/1 var(--mono); letter-spacing: .08em; padding: 6px 8px 5px; text-transform: uppercase; white-space: nowrap;
}
.av-tag.tag-ink { --tc: var(--ink); }
.av-tag.live { --tc: var(--p1); }
.bar { height: 2px; background: linear-gradient(90deg, var(--c, var(--p1)), var(--ink) 60%, rgb(255 255 255 / 25%)); }

.go {
  display: inline-flex; align-items: center; gap: .6em; background: var(--p1); color: var(--on-block);
  font: italic 900 clamp(26px, 3vw, 38px)/1 var(--display); text-transform: uppercase; text-decoration: none;
  padding: .36em .7em .3em; transition: transform .35s var(--snap), background-color .2s;
}
.go:hover, .go:focus-visible { transform: skewX(-9deg); background: var(--ink); }
.cmd {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .5em;
  padding: .5em .8em; border: 1px solid var(--dim); color: var(--ink); text-decoration: none;
  font: 500 13px/1 var(--mono); letter-spacing: .04em;
}
.cmd::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease);
}
.cmd:hover, .cmd:focus-visible { color: var(--on-block); border-color: var(--ink); }
.cmd:hover::before, .cmd:focus-visible::before { clip-path: inset(0 0 0 0); }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 30; background: var(--stage);
  display: none; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
}
.film .boot:not(.cut) { display: flex; }
.boot-log {
  font: 500 clamp(12px, 1.4vw, 15px)/1.8 var(--mono); color: var(--mute); white-space: pre-wrap; margin: 0 0 auto;
}
.boot-log::after {
  content: ''; display: inline-block; width: .6em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--ink);
  animation: blink 1s steps(1, end) infinite;
}
.boot-skip { font: 500 11px/1 var(--mono); color: var(--dim); text-align: right; }

/* ---------- chrome ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter);
}
.wordmark { font: italic 900 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.wordmark i { font-style: normal; color: var(--p1); }
.top-right { display: flex; align-items: center; gap: 22px; }
.sound {
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--mute);
  font: 500 12px/1 var(--mono); letter-spacing: .04em;
}
.sound:hover, .sound[aria-pressed="true"] { color: var(--ink); }
.x-link { font: 500 13px/1 var(--mono); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--dim); }
.x-link span { color: var(--mute); }
.x-link:hover, .x-link:focus-visible { border-color: var(--ink); }

.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: none; flex-direction: column; align-items: flex-end; gap: 16px; padding-right: 14px; border-right: 1px solid var(--hair);
}
.rail::before {
  content: ''; position: absolute; right: -1px; top: 0; width: 1px; height: calc(var(--prog) * 100%); background: var(--ink);
}
.rail a {
  position: relative; display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--mute); text-decoration: none;
}
.rail a span { display: none; color: var(--ink); text-transform: lowercase; }
.rail a i { font-style: normal; color: var(--dim); }
.rail a.on span, .rail a:hover span, .rail a:focus-visible span { display: inline; }
.rail a.on i { color: var(--p1); }
.rail a:hover i, .rail a:focus-visible i { color: var(--ink); }

.chip {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 14px; background: var(--stage); border: 1px solid var(--dim); padding: 10px 12px;
  transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .5s var(--ease), visibility .5s;
}
.chip.is-shown { transform: none; visibility: visible; }
.chip .clock { font: 500 18px/1 var(--mono); }
.chip a { font: 700 12px/1 var(--mono); color: var(--stage); background: var(--p1); padding: 8px 10px 7px; text-decoration: none; white-space: nowrap; }
.chip a:hover, .chip a:focus-visible { background: var(--ink); }

/* ---------- film layers ---------- */
.stage-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
.film .stage-canvas { display: block; }
.scene { position: relative; }
.film .scene { height: calc(var(--vh, 100) * 1svh); }
.film .resolve { height: calc(var(--vh, 100) * 1svh); }
.film .pin { position: sticky; top: 0; z-index: 2; height: 100svh; overflow: hidden; }
:where(.film .pin) > * { position: relative; }
.film .stills { position: fixed; inset: 0; z-index: 0; opacity: 0; pointer-events: none; }
.film .stills::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 6 8 / 95%) 0%, rgb(5 6 8 / 86%) 40%, rgb(5 6 8 / 40%) 72%, rgb(5 6 8 / 25%) 100%); }
.film .pin > .hero-art { display: none; }

/* ---------- static (no WebGL, reduced motion, ?static) ---------- */
.static .scene { height: auto; }
.static .pin { position: relative; min-height: 100svh; padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(72px, 10vh, 110px); }
.static .stage-canvas, .static .boot, .static .rail, .static .lower-third, .static .progress { display: none !important; }
.film .roster-static, .film .slots-static { display: none; }
.static .roster-static { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 40px; }
.static .roster-static li { display: grid; gap: 6px; font: 500 12px/1.3 var(--mono); color: var(--mute); }
.static .roster-static .display { color: var(--ink); font-size: 26px; }
.static .roster-static img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--stage-2); }
.static .slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0; margin-top: 36px; }
.static .stills { display: grid; gap: 16px; margin-bottom: 32px; }
.static .still { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.static .beat { position: relative; margin-bottom: 56px; max-width: 640px; }
.static .trailer { margin-top: 40px; }
.static .resolve { padding: clamp(96px, 16vh, 180px) var(--gutter); }
.static .prologue .hero-art { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; z-index: 0; }
.static .prologue .pin { overflow: hidden; }
.static .prologue .hero-copy { margin-top: 40vh; }

/* ---------- prologue ---------- */
.hero-art { position: absolute; }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 120px); width: min(760px, 92vw); z-index: 2; }
.static .hero-copy { position: relative; left: auto; bottom: auto; }
.tag-row { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 3vh, 30px); }
.tag-row time { font: 500 13px/1 var(--mono); color: var(--mute); letter-spacing: .06em; }
.hero-title { display: grid; gap: .04em; }
.hero-title .big { font-size: min(15vw, 230px); line-height: .84; white-space: nowrap; }
.hero-title .sub { font-size: clamp(30px, 4.2vw, 64px); line-height: .9; }
.hero-title .sub .dim { color: var(--mute); }
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; opacity: 0; }
.big.in .ch { animation: slam .6s var(--snap) both; animation-delay: calc(var(--i) * 35ms); }
.big .hot { color: var(--p1); }
.big.in .hot { animation: slam .6s var(--snap) both, flick 1.2s steps(1, end) 1s 1; }
@keyframes slam {
  from { opacity: 0; transform: translateY(-30%) skewX(-10deg); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes flick {
  0% { text-shadow: none; }
  20% { text-shadow: 3px 0 var(--p1), -3px 0 var(--p2); }
  40% { text-shadow: none; }
  70% { text-shadow: -2px 0 var(--p1), 2px 0 var(--p2); }
  100% { text-shadow: none; }
}
.prompt { margin-top: clamp(18px, 3vh, 28px); font: 500 clamp(12px, 1.3vw, 14px)/1.4 var(--mono); color: var(--ink); text-shadow: 0 0 12px var(--stage); word-break: break-word; }
.countdown { margin-top: clamp(20px, 3vh, 32px); display: grid; gap: 12px; max-width: 560px; }
.countdown-head { display: flex; align-items: center; gap: 12px; min-height: 22px; }
.meter { display: flex; gap: 3px; height: 14px; }
.meter span { flex: 1; background: var(--dim); }
.meter span.lit { background: var(--ink); }
.clock { font: 500 clamp(24px, 3.4vw, 40px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: clamp(24px, 4vh, 40px); }
.cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; font: 500 11px/1 var(--mono); color: var(--mute); letter-spacing: .14em; text-transform: uppercase; }
.cue::after { content: ''; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--ink), transparent); }
.film .cue { opacity: 1; }
.film .hero-copy { will-change: transform, opacity; }

/* ---------- prize ---------- */
.film .prize-head { position: absolute; left: var(--gutter); top: clamp(96px, 16vh, 150px); }
.film .counter { opacity: 0; }
.prize-head .counter { font-size: clamp(72px, 11vw, 180px); color: var(--ink); margin-top: 8px; }
.film .slots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.film .slot { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.slot { display: grid; justify-items: center; gap: 4px; width: max-content; text-align: center; font: 500 11px/1 var(--mono); letter-spacing: .1em; white-space: nowrap; color: var(--ink); }
.slot .pr { color: var(--p1); }
.film .prize-end { position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 110px); opacity: 0; display: grid; gap: 18px; }
.prize-sub { color: var(--mute); max-width: 52ch; }
.film .prize-sub { color: #c4c8d0; }
.steps { display: grid; gap: 6px; }
.steps li { display: flex; gap: 14px; align-items: baseline; font: 500 14px/1.3 var(--mono); }
.steps .n { color: var(--p1); font-weight: 700; }

/* ---------- contenders ---------- */
.seats { font-size: clamp(64px, 9vw, 150px); }
.static .seats { font-size: clamp(56px, 9vw, 120px); margin-bottom: 36px; }
.film .seats { position: absolute; left: var(--gutter); top: clamp(96px, 16vh, 150px); opacity: 0; }
.film .end-line { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 28px var(--gutter); background: rgb(5 6 8 / 82%); text-align: center; font-size: clamp(64px, 11vw, 180px); color: var(--ink); opacity: 0; }
.static .end-line { font-size: clamp(56px, 8vw, 110px); margin-top: 48px; }
.film .lower-third {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(520px, 42vw); display: grid; gap: 8px; opacity: 0; --c: var(--ink);
}
.lt-name { font-size: clamp(54px, 7vw, 104px); }
.lt-company { color: var(--mute); }
.lower-third .av-tag { display: inline-block; justify-self: start; width: auto; height: auto; }
.film .progress {
  position: absolute; left: var(--gutter); bottom: 40px; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; width: min(56vw, 900px); opacity: 0;
}
.hex-mini {
  width: 34px; height: 40px; padding: 0; border: 0; cursor: pointer; background: var(--dim); overflow: hidden;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .25s;
}
.hex-mini img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .25s; }
.hex-mini.seen img { opacity: .85; }
.hex-mini.on { background: var(--ink); }
.hex-mini.on img { opacity: 1; }
.hex-mini:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- arenas ---------- */
.stills { position: relative; }
.film .stills .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .beats { position: absolute; inset: 0; pointer-events: none; }
.beats { position: relative; }
.beat { display: grid; gap: 18px; width: min(640px, 92vw); }
.film .beat { position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 110px); width: min(440px, 36vw); opacity: 0; }
.beat.live .beat-name { animation: slam .7s var(--snap) both; }
.beat-name { font-size: clamp(72px, 10vw, 170px); color: var(--ink); }
.beat-blurb { color: var(--mute); max-width: 52ch; }
.beat .stats { display: flex; flex-wrap: wrap; gap: 6px; }
.beat .stats .av-tag { --tc: var(--accent); }
.modes li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.modes .call { color: var(--accent); }
.modes .desc { color: var(--mute); }

/* ---------- friday ---------- */
.film .friday > .pin > .label { position: absolute; left: var(--gutter); top: clamp(96px, 16vh, 150px); }
.film .count-xl { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); white-space: nowrap; font: italic 900 min(11vw, 170px)/.86 var(--display); text-transform: uppercase; color: var(--ink); }
.count-xl { font-size: clamp(64px, 12vw, 180px); }
.film .meter-full { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(40% + 100px); height: 18px; display: flex; gap: 4px; }
.meter-full { display: flex; gap: 4px; height: 18px; margin-top: 16px; }
.meter-full span { flex: 1; background: var(--dim); }
.meter-full span.lit { background: var(--ink); }
.trailer { margin: 0; width: min(64vw, 1040px); aspect-ratio: 16 / 9; position: relative; background: #000; }
.film .trailer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; will-change: transform, clip-path; }
.trailer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trailer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; opacity: .5; }
.trailer.is-soon .trailer-poster { display: block; }
.trailer.is-soon video { display: none; }
.trailer-soon { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: var(--gutter); background: rgb(5 6 8 / 50%); }
.trailer.is-soon .trailer-soon { display: grid; }
.trailer-soon h2 { font: italic 900 clamp(48px, 9vw, 150px)/.84 var(--display); text-transform: uppercase; }
.trailer-soon p { margin-top: 18px; color: var(--mute); }

/* ---------- resolution ---------- */
.resolve-inner { display: grid; gap: clamp(22px, 3.5vh, 36px); justify-items: start; padding: clamp(96px, 16vh, 180px) var(--gutter); }
.resolve h2 { position: relative; font: italic 900 clamp(64px, 11vw, 200px)/.82 var(--display); text-transform: uppercase; }
.film .resolve { display: grid; align-items: center; min-height: 100svh; }
.film .resolve-inner { justify-items: start; text-align: left; }
.film .resolve h2 { font-size: clamp(56px, 7.4vw, 130px); }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 2; background: var(--stage);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 22px 40px;
  padding: 40px var(--gutter) 48px; border-top: 1px solid var(--hair);
}
.foot .wordmark { font-size: 40px; }
.foot .url { color: var(--mute); font: 500 13px/1 var(--mono); margin-top: 10px; }
.foot p { max-width: 62ch; color: var(--mute); font-size: 12px; line-height: 1.6; }

/* ---------- wide screens: the rail ---------- */
@media (min-width: 900px) {
  .film .rail { display: flex; }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  .topbar { padding: 16px var(--gutter); }
  .wordmark { font-size: 22px; }
  .hero-copy { bottom: 64px; }
  .hero-title .big { font-size: 19vw; white-space: normal; }
  .hero-title .sub { font-size: clamp(30px, 9vw, 44px); }
  .cue { display: none; }
  .film .seats { font-size: clamp(48px, 15vw, 90px); }
  .lt-name { font-size: 52px; }
  .lt-company { display: none; }
  .film .lower-third { top: 84px; bottom: auto; transform: none; width: auto; right: var(--gutter); align-content: start; }
  .film .beat { gap: 12px; }
  .film .beat .beat-name { font-size: clamp(48px, 14vw, 72px); }
  .film .beat .modes, .film .beat .stats { display: none; }
  .hex-mini { width: 26px; height: 31px; }
  .film .progress { bottom: 60px; gap: 3px; width: calc(100vw - 2 * var(--gutter)); }
  .film .prize-end { bottom: 110px; }
  .film .count-xl { font-size: 13vw; }
  .film .meter-full { top: calc(40% + 50px); }
  .trailer { width: 92vw; }
  .modes li { grid-template-columns: 1fr; gap: 2px; }
  .film .beat { left: 0; right: 0; bottom: 118px; width: auto; padding: 16px var(--gutter) 18px; background: linear-gradient(180deg, rgb(5 6 8 / 0%), rgb(5 6 8 / 92%) 22%); }
  .film .stills::after { background: linear-gradient(180deg, rgb(5 6 8 / 30%) 0%, rgb(5 6 8 / 45%) 40%, rgb(5 6 8 / 96%) 74%); }
  .chip { left: 0; right: 0; bottom: 0; justify-content: space-between; padding: 8px 14px; border-width: 1px 0 0; transform: translateY(100%); }
  .chip.is-shown { transform: none; }
  .chip .clock { font-size: 15px; }
  .chip a { padding: 7px 10px 6px; }
  .foot { padding-bottom: 84px; }
  .foot .wordmark { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan { display: none; }
}
