/* HYPER RED — hr-site.css
   Public-site layer over hr.css (which Race Command also uses on its own).
   Sections keep their original order: polish, motion, programme system,
   posters, partners, entry journey, visual refinement.
   Poster images are referenced with ?v= below; bump it when one is replaced. */

/* ==================== polish ==================== */
/* HYPER RED — hr-polish.css
   Load AFTER hr.css. Pure overrides, no markup changes needed.
   One loud moment (the door panel takes the class colour);
   everything else gets quieter and tighter. */

/* ---------- 1. Countdown: one timing-screen strip, not four floating boxes ---------- */
.clock {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 0;
  margin-bottom: 1.75rem; border: 1.5px solid var(--line);
  border-radius: 10px; overflow: hidden; background: var(--head-bg);
}
.clock-label {
  grid-column: 1 / -1; width: auto; padding: .5rem 1rem;
  font-size: var(--step--1); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .5rem;
}
.clock-label::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--flag-open); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag-open) 22%, transparent); }
.clock-seg {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  padding: .7rem 1.4rem .75rem 1rem; border-left: 1px solid var(--line);
}
.clock-label + .clock-seg { border-left: 0; }
.clock-seg b { font-size: clamp(2.2rem, 4.4vw, 3.4rem); background: none; padding: 0; border: 0; }
.clock-seg i { font-size: .72rem; font-weight: 650; }
.clock-seg:last-child b { color: var(--ink); }

/* ---------- 2. Weekend timeline: finished sessions recede, open ones read at a glance ---------- */
.tl-head, .tl-row { grid-template-columns: 15rem 1fr; }
.tl-day span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block[data-status="done"] {
  opacity: 1; background: transparent; color: var(--line-strong);
  border-color: var(--line); border-left-color: var(--line); text-decoration: line-through; text-decoration-thickness: 1px;
}
.tl-block[data-status="open"] { background: color-mix(in srgb, var(--flag-open) 12%, var(--card)); border-color: color-mix(in srgb, var(--flag-open) 45%, var(--line)); border-left-color: var(--flag-open); }
.tl-block[data-status="closing"] { background: color-mix(in srgb, var(--flag-closing) 12%, var(--card)); }
.tl-now { box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag-live) 25%, transparent); }

/* ---------- 3. Entry form: it's a real sequence, so number it ---------- */
.form { counter-reset: step; gap: 2rem; }
.form fieldset { position: relative; padding-left: 2.6rem; }
.form fieldset > legend { counter-increment: step; display: flex; align-items: center; gap: .6rem; margin-left: -2.6rem; font-size: var(--step-1); font-weight: 760; font-stretch: 108%; }
.form fieldset > legend::before {
  content: counter(step); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1.5px solid var(--line-strong); font-size: .85rem; font-weight: 800; color: var(--graphite);
}
.form fieldset:not(:last-of-type)::before {
  content: ""; position: absolute; left: .93rem; top: 2.15rem; bottom: -2rem; width: 1.5px; background: var(--line);
}
.form fieldset:has(input:checked) > legend::before,
.form fieldset:has(.input:not(:placeholder-shown):valid) > legend::before { background: var(--ink); border-color: var(--ink); color: var(--inv-fg); }
.form > div:has(#submitBtn), .form > .agree, .form > .agree-check, .form > #termsError { padding-left: 2.6rem; }
.choice span { border-radius: 6px; }

/* ---------- 4. The door panel: the one loud thing. It becomes the car door. ---------- */
.door-panel { min-height: 19rem; border: 0; background: var(--card); transition: background-color .25s; isolation: isolate; }
.door-panel:not([data-class]) { background: repeating-linear-gradient(-45deg, var(--card) 0 14px, color-mix(in srgb, var(--card) 70%, var(--bg)) 14px 28px); outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; }
.door-stripe { height: 100%; width: 38%; position: absolute; right: -6%; top: 0; transform: skewX(-18deg); z-index: -1; opacity: .9; }
.door-panel:not([data-class]) .door-stripe { opacity: .25; }
.door-body { padding: 1.5rem 1.6rem; gap: 1.4rem; min-height: 19rem; grid-template-rows: auto 1fr auto; }
.door-name { align-self: center; font-size: clamp(2.2rem, 4vw, 3.4rem); text-shadow: 0 2px 0 rgb(0 0 0 / .18); }
.door-meta { background: rgb(10 14 20 / .55); margin: 0 -1.6rem -1.5rem; padding: .85rem 1.6rem; grid-template-columns: repeat(3, 1fr); color: #fff; }
.door-meta dt { color: rgb(255 255 255 / .7); }
.door-panel[data-class] { background: var(--plate); color: var(--plate-fg, #fff); }
.door-panel[data-class] .door-stripe { background: #fff; opacity: .14; }
.door-panel[data-class] .door-event { color: var(--plate-fg, #fff); opacity: .85; }
.door-panel[data-class] .door-name.is-empty { color: rgb(255 255 255 / .35); }

/* ---------- 5. Grid: finished towers shrink out of the way, open ones invite ---------- */
.towers { display: flex; flex-wrap: wrap; align-items: flex-start; }
.towers > .tower { flex: 1 1 14rem; }
.towers > .tower[data-status="done"] { flex: 0 0 8.5rem; }
.tower[data-status="done"] .tower-head span, .tower[data-status="done"] .tower-count { display: none; }
.tower[data-status="done"] { background: transparent; border-color: var(--line); }
.tower[data-status="done"] .tower-head { background: transparent; opacity: .55; padding-block: .5rem; }
.tower[data-status="done"] .tower-head b { font-size: 1.15rem; }
.tower[data-status="done"] .tower-status { border-bottom: 0; color: var(--graphite); }
.tower[data-status="done"] .tower-empty { display: none; }
.tower[data-status="open"] .tower-empty,
.tower[data-status="closing"] .tower-empty {
  margin: .8rem .9rem .9rem; padding: 1.1rem .9rem; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: 6px; color: var(--ink); font-weight: 600;
}

/* ---------- 6. Season: past rounds compress, what's coming gets room ---------- */
.race { grid-template-columns: 7.5rem 8rem minmax(0, 1fr) auto; }
.race .trk { width: 6.5rem; height: 4.2rem; justify-self: center; }
.race[data-state="past"], .race[data-state="done"] { padding-block: .6rem; }
.race[data-state="past"] .race-name, .race[data-state="done"] .race-name { font-size: var(--step-1); }
.race[data-state="past"] .plates, .race[data-state="done"] .plates,
.race[data-state="past"] .race-sessions, .race[data-state="done"] .race-sessions { display: none; }
.race[data-state="past"] .race-where, .race[data-state="done"] .race-where { margin-bottom: 0; font-size: var(--step--1); }
.race[data-state="past"] .trk, .race[data-state="done"] .trk { height: 2.6rem; }
.race[data-state="past"] .race-status { color: var(--graphite); font-weight: 600; }
.race[data-state="next"] { box-shadow: inset 4px 0 0 var(--red); padding-block: 1.6rem; }
.race[data-state="next"] .race-name { font-size: var(--step-3); }
.race[data-state="next"] .trk { width: 7.5rem; height: 5.2rem; }
.race[data-highlight] .trk { color: #fff; }

@media (max-width: 760px) { .race { grid-template-columns: 4.5rem minmax(0, 1fr); } .race .trk, .race[data-state="next"] .trk { width: 4.5rem; height: 3.4rem; } .race[data-state="next"] .race-name { font-size: var(--step-2); } }
@media (max-width: 600px) {
  .clock-seg { padding: .55rem .8rem .6rem .7rem; }
  .form fieldset { padding-left: 0; }
  .form fieldset > legend { margin-left: 0; }
  .form fieldset::before { display: none; }
  .form > div:has(#submitBtn), .form > .agree, .form > .agree-check, .form > #termsError { padding-left: 0; }
}

/* Starting grid */
.towers > .tower { max-width: 24rem; }

/* ==================== motion ==================== */
/* HYPER RED — restrained timing-screen motion, no external runtime. */
.site-header { isolation: isolate; }
.site-header .scroll-lap {
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px;
  background: var(--graphite); transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center; pointer-events: none;
}
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .24rem;
  height: 2px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* A neutral timing line precedes each section, then the title settles in. */
.band-head { position: relative; padding-top: .8rem; }
.band-head::before {
  content: ""; position: absolute; top: 0; left: 0; width: min(7.5rem, 25%);
  height: 3px; background: var(--line-strong); transform-origin: left;
}
.motion-ready .motion-reveal:not(.motion-visible) {
  opacity: 0; transform: translateY(20px);
}
.motion-ready .motion-reveal {
  transition: opacity .58s ease, transform .58s cubic-bezier(.16,1,.3,1);
}
.motion-ready .band-head.motion-reveal::before { transform: scaleX(0); }
.motion-ready .band-head.motion-visible::before {
  transform: scaleX(1); transition: transform .65s cubic-bezier(.16,1,.3,1) .08s;
}

/* Interactive details borrow the precision of a race timing display. */
.hero-actions .btn, .form #submitBtn, .rc .btn {
  position: relative; overflow: hidden; isolation: isolate;
}
.hero-actions .btn::after, .form #submitBtn::after, .rc .btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 37%, rgb(255 255 255 / .19) 50%, transparent 63%);
  transform: translateX(-130%); transition: transform .65s cubic-bezier(.2,.8,.2,1);
}
.hero-actions .btn:hover::after, .form #submitBtn:hover::after, .rc .btn:hover::after { transform: translateX(130%); }
.race { transition: background-color .24s ease, box-shadow .24s ease; }
.race:hover { background-color: color-mix(in srgb, var(--ink) 4%, var(--bg-alt)); }
.race[data-state="next"]:hover { box-shadow: inset 4px 0 0 var(--red), inset 0 0 0 1px color-mix(in srgb, var(--red) 25%, transparent); }
.race .race-name { transition: transform .32s cubic-bezier(.16,1,.3,1); }
.race:hover .race-name { transform: translateX(.28rem); }
.stage .trk-stage { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.stage:hover .trk-stage { transform: scale(1.035); }

@media (prefers-reduced-motion: reduce) {
  .motion-ready .motion-reveal:not(.motion-visible) { opacity: 1; transform: none; }
  .motion-ready .band-head.motion-reveal::before { transform: none; }
  .hero-actions .btn::after, .form #submitBtn::after, .rc .btn::after { display: none; }
  .race:hover .race-name, .stage:hover .trk-stage { transform: none; }
}

/* ==================== premium ==================== */
/* HYPER RED / race programme. Visual system for the public homepage only.
   Deliberate surfaces, typography and spacing; no network dependencies. */
:root {
  --slate: #090B0E;
  --slate-2: #101318;
  --bg: var(--slate);
  --bg-alt: var(--slate-2);
  --card: #141920;
  --chip: #1B222A;
  --line: #292F38;
  --line-strong: #69727E;
  --ink: #F4F3F0;
  --graphite: #AAB0B8;
  --head-bg: #07090B;
  --head-fg: #F4F3F0;
  --red: #DD281D;
  --red-deep: #FF7067;
  --r-panel: 3px;
  --r-plate: 2px;
  --wide: 1440px;
  --gutter: clamp(1.15rem, 4.4vw, 5rem);
}
body { background: var(--bg); }
.site-header { background: rgb(7 9 11 / .96); border-bottom: 1px solid #272C33; backdrop-filter: blur(16px); }
.site-header > .wrap { min-height: 5rem; gap: clamp(1rem, 3vw, 3rem); }
.brand { margin-right: auto; gap: .75rem; white-space: nowrap; }
.brand img { width: 2.45rem; }
.brand > span { font-size: 1.3rem; font-stretch: 115%; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.brand-caption { margin-left: 1.1rem; padding-left: 1.1rem; border-left: 1px solid #565B63; color: #AAB0B8; font: 600 .62rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.nav { gap: clamp(.2rem, 1.3vw, 1.4rem); }
.nav a { padding: .6rem .35rem; border-radius: 0; font-size: .74rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.nav a:hover { background: transparent; color: var(--ink); }
.nav a::after { left: .35rem; right: .35rem; bottom: .38rem; }
.rc { background: #101318; }
.rc-inner { min-height: 3.25rem; }

/* The event is the visual identity: one oversized title, one strong red line. */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 7vw, 7.5rem);
  background: linear-gradient(120deg, transparent 58%, rgb(124 25 20 / .06) 100%), #090B0E;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgb(255 255 255 / .025) calc(25% - 1px), rgb(255 255 255 / .025) 25%);
  opacity: .65;
}
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; width: clamp(5px, .6vw, 10px); height: 50%;
  background: var(--line-strong); transform: skewY(-14deg); transform-origin: right top; pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hero-eyebrow { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; align-items: center; margin: 0 0 clamp(3rem, 7vw, 6.5rem); max-width: none; font: 650 .65rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; color: var(--graphite); }
.hero-eyebrow span:first-child { color: var(--ink); font-weight: 900; font-size: .88rem; letter-spacing: -.02em; }
.hero-eyebrow span + span { border-left: 1px solid #555C65; padding-left: 1.3rem; }
.hero-week { margin-bottom: 1.1rem; font: 650 .76rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.hero-title { font-size: clamp(3.7rem, 8.7vw, 9.5rem); max-width: 9.5ch; line-height: .82; letter-spacing: -.075em; margin-bottom: 1.6rem; }
.hero-title .h-dur { font-size: .4em; font-stretch: 100%; font-style: normal; font-weight: 800; letter-spacing: -.055em; margin-bottom: .25em; }
.hero-line { height: 3px; width: min(10rem, 40%); margin: 0 0 2rem; border-radius: 0; }
.hero-where { font-size: .9rem; letter-spacing: .005em; }
.hero-actions { margin-top: 2.1rem; }
.btn { min-height: 3.1rem; padding-inline: 1.35rem; border-radius: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.btn-sm { min-height: 2.25rem; padding-inline: .8rem; font-size: .7rem; }
.hero-actions .btn-red { min-width: 12.5rem; }
.hero-facts { max-width: 39rem; border: 0; border-left: 2px solid #525A66; border-radius: 0; padding: .6rem 1.2rem; margin-top: .7rem; background: transparent; }
.hero-facts dt { font: 650 .65rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
.hero-facts dd { font-size: .84rem; }
.hero-facts .facts-note { font-size: .74rem; }
.clock { border-radius: 2px; background: #11151B; border-color: #343B44; }
.clock-label { font: 650 .66rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.clock-seg b { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.onboard, .stage { border-radius: 2px; box-shadow: 22px 22px 0 -21px var(--line-strong), 0 28px 70px rgb(0 0 0 / .3); }
.stage { aspect-ratio: 1 / 1.06; }
.onboard-caption { bottom: 1rem; left: 1rem; right: 1rem; }
.onboard-caption span, .onboard-toggle { border-radius: 2px; }
.weekend { margin-top: clamp(4rem, 7vw, 7rem); border-top: 1px solid #6A737C; padding-top: 1.25rem; }
.tl-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.tl-row { padding-block: 1rem; }
.tl-block { border-radius: 1px; }

/* Information reads like a race programme, with alternating editorial beats. */
.band { padding-block: clamp(5rem, 8vw, 9rem); }
.band-sheet { background: #101318; }
.band-head { display: block; padding-top: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.band-head::before { width: 3.5rem; height: 3px; }
.band-head::after { display: block; content: "HYPER RED  /  2026"; margin-top: 2rem; color: #818B95; font: 600 .65rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }
.section-title { font-size: clamp(2.65rem, 5.4vw, 5.5rem); font-weight: 870; font-stretch: 105%; letter-spacing: -.06em; line-height: .96; text-transform: uppercase; }
.lede { margin-top: 1.3rem; font-size: clamp(.94rem, 1.25vw, 1.1rem); line-height: 1.6; }
#enter .band-head::after { content: "01  /  TAKE YOUR PLACE"; }
#grid .band-head::after { content: "02  /  LIVE TIMING"; }
#season .band-head::after { content: "03  /  RACE CALENDAR"; }
.enter-grid { grid-template-columns: minmax(0, 1.18fr) minmax(19rem, .82fr); gap: clamp(2.5rem, 6vw, 7rem); }
.form { gap: 2.2rem; }
.form fieldset { padding-block: 0 2rem; border-bottom: 1px solid var(--line); }
.form fieldset > legend { font-weight: 800; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.02em; }
.form fieldset > legend::before { border-radius: 1px; color: var(--graphite); border-color: var(--line-strong); font-family: ui-monospace, Consolas, monospace; }
.form fieldset:not(:last-of-type)::before { bottom: -2.2rem; }
.input, select.input { border-radius: 2px; min-height: 3.35rem; background: #12171D; border-color: #6A737C; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice span { min-height: 3.25rem; border-radius: 2px; }
.choice[data-class] span { border-left-width: 3px; }
.door-panel { border-radius: 2px; }
.door-note { border-left: 2px solid var(--line-strong); padding-left: .9rem; }
.recall, .mine-item, .closed-note, .empty { border-radius: 2px; }
.daytabs { border-radius: 2px; background: #12171D; border: 1px solid var(--line); padding: 2px; }
.daytabs button, .filter button { border-radius: 1px; }
.daytabs button { text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.filter button { font-size: .7rem; letter-spacing: .045em; text-transform: uppercase; }
.tower { border-radius: 2px; background: #141920; }
.tower-head b { letter-spacing: -.04em; }
.tower-status { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.season-list { border-top: 1px solid #6A737C; }
.race { border-bottom-color: #353B44; padding-block: 1.35rem; }
.race[data-state="next"] { border-radius: 1px; background: #1A1C21; box-shadow: inset 4px 0 0 var(--red), 0 14px 35px rgb(0 0 0 / .12); }
.race-name { font-weight: 850; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.035em; }
.race-date, .race-status { font: 750 .74rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .055em; }
.race[data-state="next"] .race-name { font-size: clamp(1.65rem, 3vw, 2.8rem); }
.race:hover { background-color: #1A2027; }
.race[data-state="next"]:hover { box-shadow: inset 4px 0 0 var(--red), 0 14px 35px rgb(0 0 0 / .18); }
.season-bar { height: 3px; border-radius: 0; }
.season-bar i { background: var(--ink); }
.site-footer { border-top: 1px solid var(--line); padding-block: 4rem 5rem; background: #07090B; }
.foot-brand { text-transform: uppercase; font-weight: 850; letter-spacing: -.04em; }
.site-footer p { line-height: 1.7; }
/* The FAQ, policies and 404 share the same restrained editorial system. */
.page { padding-block: clamp(4rem, 8vw, 8rem); min-height: 58vh; }
.page h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 870; font-stretch: 105%; text-transform: uppercase; letter-spacing: -.06em; line-height: .95; margin-bottom: 1.5rem; }
.page .updated { padding-top: 1.1rem; border-top: 3px solid var(--line-strong); max-width: 38rem; color: var(--graphite); }
.prose { max-width: 74ch; }
.prose h2 { font-weight: 830; font-stretch: 100%; letter-spacing: -.035em; }
.faq details { padding-block: 1.35rem; }
.faq summary { font-weight: 750; letter-spacing: -.02em; }
.offtrack .crash { border-radius: 2px; }

@media (max-width: 1050px) {
  .brand-caption { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(17rem, .8fr); gap: 2rem; }
  .hero-title { font-size: clamp(3.3rem, 8vw, 6rem); }
}
@media (max-width: 900px) {
  .hero-grid, .enter-grid { grid-template-columns: 1fr; }
  .hero-eyebrow { margin-bottom: 3rem; }
  .stage { aspect-ratio: 16 / 9; }
  .onboard { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .site-header > .wrap { min-height: 0; padding-top: .8rem; padding-bottom: .7rem; flex-wrap: wrap; gap: .6rem; }
  .brand { width: 100%; }
  .brand img { width: 1.8rem; }
  .brand > span { font-size: 1.05rem; }
  .nav { display: flex; width: 100%; justify-content: space-between; gap: .4rem; }
  .nav a { font-size: .69rem; padding: .35rem .2rem; }
  .nav a::after { bottom: .08rem; left: .2rem; right: .2rem; }
  html { scroll-padding-top: 7rem; }
  .hero { padding-block: 3.2rem 4.5rem; }
  .hero-title { font-size: clamp(3.3rem, 13vw, 6rem); }
  .hero-eyebrow span:last-child { display: none; }
  .band { padding-block: 4.5rem; }
  .section-title { font-size: clamp(2.55rem, 9vw, 4rem); }
  .race[data-state="next"] .race-name { font-size: var(--step-2); }
}
@media (max-width: 420px) {
  .hero-eyebrow { font-size: .57rem; gap: .55rem; }
  .hero-eyebrow span + span { padding-left: .7rem; }
  .hero-title { font-size: clamp(3rem, 12.3vw, 4.2rem); }
  .hero-actions .btn { width: 100%; }
  .clock-seg { padding-inline: .55rem; }
  .clock-seg b { font-size: 1.6rem; }
  .clock-seg i { font-size: .58rem; }
}

/* Phone layout: bring the signup forward and give touch controls room. */
.weekend-details > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; cursor: pointer; list-style: none; font-weight: 800; }
.weekend-details > summary::-webkit-details-marker { display: none; }
.weekend-details > summary::after { content: "+"; margin-left: auto; font: 700 1.2rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.weekend-details[open] > summary::after { content: "−"; }
.weekend-summary-hint { color: var(--graphite); font-size: .8rem; font-weight: 550; }
.weekend-content { padding-top: 1rem; }
.weekend-content .tl-title { display: none; }
@media (max-width: 760px) {
  html { scroll-padding-top: 6.5rem; }
  .hero { padding-block: 2rem 2.25rem; }
  .hero-grid { min-width: 0; gap: 1.5rem; }
  .hero-grid > * { min-width: 0; }
  .hero-eyebrow { margin-bottom: 1.25rem; }
  .hero-title { max-width: 100%; font-size: clamp(2.7rem, 10.5vw, 4.5rem); line-height: .9; overflow-wrap: anywhere; }
  .hero-where { margin-bottom: 1rem; }
  .hero-facts { margin-bottom: 1rem; padding: .75rem; }
  .clock { margin-block: 1.1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-actions .btn { min-height: 3rem; }
  .stage, .onboard, .race-poster { max-width: 100%; }
  .weekend { margin-top: 1.5rem; padding-top: .8rem; }
  .weekend-details { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
  .weekend-details > summary { min-height: 2.75rem; }
  .band { padding-block: 3rem; }
  #enter .band-head { margin-bottom: 1.25rem; }
  #enter .band-head::after { margin-top: .8rem; }
  #enter .lede { margin-top: .65rem; }
  .event-picker { margin-bottom: 1.25rem; padding: .9rem; }
  .signup-events { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .event-option { min-height: 4rem; padding: .75rem; gap: .6rem; }
  .event-option-copy { min-width: 0; }
  .event-option-copy strong { overflow-wrap: anywhere; }
  .event-option-state { white-space: nowrap; }
  .form { gap: 1.5rem; }
  .form fieldset { padding-bottom: 1.25rem; }
  .form fieldset:not(:last-of-type)::before { bottom: -1.5rem; }
  .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .choice { min-width: 0; }
  .choice span { width: 100%; min-width: 0; min-height: 3.25rem; padding: .55rem .65rem; overflow-wrap: anywhere; }
  #classChoices .choice span { max-width: none; }
  .form .btn { min-height: 3rem; }
}
@media (max-width: 380px) {
  .nav a { font-size: .63rem; }
  .hero-title { font-size: clamp(2.45rem, 10.2vw, 3.2rem); }
  .choices { grid-template-columns: 1fr; }
  .event-option { align-items: flex-start; }
}

/* Calendar groups keep signup-eligible rounds first and history out of the way. */
.season-group { padding: 0; border: 0; }
.season-group + .season-group { margin-top: 1.5rem; }
.season-group-title,
.finished-races > summary {
  display: flex; align-items: center; gap: .7rem; margin: 0; padding: .85rem 0;
  color: var(--ink); font-size: .78rem; font-weight: 850; letter-spacing: .12em;
  text-transform: uppercase; list-style: none;
}
.finished-races > summary { cursor: pointer; border-bottom: 1px solid var(--line); }
.finished-races > summary::-webkit-details-marker { display: none; }
.finished-races > summary::after { content: "+"; margin-left: auto; font: 700 1.2rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.finished-races[open] > summary::after { content: "−"; }
.season-group-count { display: inline-grid; min-width: 1.65rem; min-height: 1.65rem; place-items: center; padding: 0 .35rem; border: 1px solid var(--line-strong); color: var(--graphite); font: 700 .68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.season-group-open .season-group-title { color: var(--good); }
.season-group-open .season-group-count { color: var(--good); border-color: color-mix(in srgb, var(--good) 55%, var(--line)); }
.season-group-list { list-style: none; margin: 0; padding: 0; border: 0; }
.race[data-state="open"] .race-status { color: var(--good); }
.race[data-state="open"] { background: color-mix(in srgb, var(--good) 4%, transparent); }
.race[data-state="upcoming"] .race-status { color: var(--graphite); }
.finished-races:focus-within > summary { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Compact header: once the race bar is showing, slim the brand row so both bars stay small. */
.site-header > .wrap { transition: min-height .25s ease, padding .25s ease; }
.site-header.is-compact > .wrap { min-height: 3.5rem; }
.site-header.is-compact .brand img { width: 1.8rem; }
.site-header.is-compact .brand-caption { display: none; }
@media (max-width: 760px) {
  .site-header.is-compact > .wrap { padding-top: .45rem; padding-bottom: .45rem; }
  .site-header.is-compact .brand { display: none; }
}
@media (prefers-reduced-motion: reduce) { .site-header > .wrap { transition: none; } }

/* ==================== posters ==================== */
/* Race artwork: typography stays live and follows the schedule. */
.hero-grid > * { min-width: 0; }
.hero-grid > :first-child { container-type: inline-size; }
.hero-grid .hero-title { font-size: clamp(2.6rem, calc(13.5cqw * var(--hero-title-scale, 1)), 9rem); max-width: 100%; }
.hero-grid .hero-title .word { max-width: 100%; }
@media (max-width: 900px) { .hero-grid .hero-title { font-size: clamp(2.7rem, calc(12.2cqw * var(--hero-title-scale, 1)), 7.5rem); } }
@media (max-width: 420px) { .hero-grid .hero-title { font-size: clamp(2rem, calc(12cqw * var(--hero-title-scale, 1)), 4.6rem); } }
.race-poster {
  position: relative;
  container-type: inline-size;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b0e12;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 28px 70px rgb(0 0 0 / .2);
}
.race-poster > img {
  width: 100%; height: 100%; object-fit: cover;
}
.race-poster::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(3 6 10 / .67) 0%, rgb(3 6 10 / .3) 34%, transparent 55%, rgb(3 6 10 / .1) 72%, rgb(3 6 10 / .85) 100%);
}
.race-poster-copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: clamp(1rem, 2.2vw, 1.8rem); }
.image-disclosure { position: absolute; z-index: 2; top: clamp(.8rem, 1.5vw, 1.3rem); right: clamp(.8rem, 1.5vw, 1.3rem); padding: .32rem .5rem; background: rgb(4 7 12 / .82); color: #fff; border: 1px solid rgb(255 255 255 / .55); font: 700 .63rem/1.2 Archivo, sans-serif; letter-spacing: .04em; }
.door-panel[data-circuit="fuji"]::after,
.door-panel[data-circuit="road-atlanta"]::after,
.door-panel[data-circuit="le-mans"]::after { content: "Enhanced with AI"; position: absolute; right: .65rem; bottom: .6rem; z-index: 2; padding: .2rem .35rem; background: rgb(4 7 12 / .86); color: #fff; font: 700 .57rem/1.2 Archivo, sans-serif; letter-spacing: .03em; pointer-events: none; }
.race-poster-top { display: flex; align-items: center; gap: .55rem; font: 800 clamp(.65rem, 1vw, .85rem)/1.2 Archivo, sans-serif; letter-spacing: .16em; }
.race-poster-main { display: flex; flex-direction: column; margin-top: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.race-poster-main > span { font: 750 clamp(.62rem, 1.2vw, .92rem)/1.2 ui-monospace, monospace; letter-spacing: .23em; }
.race-poster-main strong { display: block; max-width: 100%; margin-top: .45rem; font: italic 950 clamp(2.5rem, 13cqw, 6.8rem)/.85 Archivo, sans-serif; font-stretch: 110%; letter-spacing: -.075em; overflow-wrap: anywhere; text-shadow: 0 3px 26px rgb(0 0 0 / .35); }
.race-poster-bottom { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: auto; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / .45); font: 700 clamp(.65rem, 1vw, .9rem)/1.3 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.race-poster-bottom span:last-child { text-align: right; max-width: 46%; }
@media (max-width: 900px) { .race-poster { max-width: 38rem; margin-inline: auto; } }
@media (max-width: 500px) { .race-poster-main { margin-top: 2.4rem; } }

/* Use the race-week image on the live entry card, including its empty state. */
.door-panel[data-circuit="fuji"],
.door-panel[data-circuit="fuji"]:not([data-class]),
.door-panel[data-circuit="fuji"][data-class] {
  background: linear-gradient(180deg, rgb(5 8 13 / .62), rgb(5 8 13 / .42) 55%, rgb(5 8 13 / .72)),
              url("../assets/posters/fuji-card.webp?v=4") right center / cover no-repeat;
  color: #fff;
  outline: none;
}
.door-panel[data-circuit="fuji"] .door-stripe { opacity: 0; }
.door-panel[data-circuit="fuji"] .door-event { color: #fff; opacity: 1; text-shadow: 0 1px 8px #000; }
.door-panel[data-circuit="fuji"] .door-name,
.door-panel[data-circuit="fuji"] .door-name.is-empty { color: #fff; text-shadow: 0 2px 14px #000; }

.door-panel[data-circuit="road-atlanta"],
.door-panel[data-circuit="road-atlanta"]:not([data-class]),
.door-panel[data-circuit="road-atlanta"][data-class] {
  background: linear-gradient(180deg, rgb(5 8 13 / .53), rgb(5 8 13 / .25) 50%, rgb(5 8 13 / .65)),
              url("../assets/posters/road-atlanta-card.webp?v=4") right center / cover no-repeat;
  color: #fff;
  outline: none;
}
.door-panel[data-circuit="road-atlanta"] .door-stripe { opacity: 0; }
.door-panel[data-circuit="road-atlanta"] .door-event { color: #fff; opacity: 1; text-shadow: 0 1px 8px #000; }
.door-panel[data-circuit="road-atlanta"] .door-name,
.door-panel[data-circuit="road-atlanta"] .door-name.is-empty { color: #fff; text-shadow: 0 2px 14px #000; }

.door-panel[data-circuit="le-mans"],
.door-panel[data-circuit="le-mans"]:not([data-class]),
.door-panel[data-circuit="le-mans"][data-class] {
  background: linear-gradient(180deg, rgb(5 8 13 / .6), rgb(5 8 13 / .23) 52%, rgb(5 8 13 / .7)),
              url("../assets/posters/le-mans-card.webp?v=4") right center / cover no-repeat;
  color: #fff;
  outline: none;
}
.door-panel[data-circuit="le-mans"] .door-stripe { opacity: 0; }
.door-panel[data-circuit="le-mans"] .door-event { color: #fff; opacity: 1; text-shadow: 0 1px 8px #000; }
.door-panel[data-circuit="le-mans"] .door-name,
.door-panel[data-circuit="le-mans"] .door-name.is-empty { color: #fff; text-shadow: 0 2px 14px #000; }

/* ==================== partners ==================== */
.partners {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-block-start: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
}

.partners-kicker {
  margin: 0 auto .5rem;
  color: var(--graphite);
  font-size: var(--step--1);
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 68rem;
  margin: 1.75rem auto 0;
  padding: 0;
  list-style: none;
}

.partner-tile {
  flex: 0 0 calc((100% - 4rem) / 5);
  min-width: 0;
  display: grid;
  grid-template-rows: 5rem auto;
  align-content: center;
  justify-items: center;
  gap: .75rem;
  min-height: 9.5rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}

.partner-logo {
  display: grid;
  place-items: center;
  width: min(100%, 11rem);
  height: 5rem;
  padding: .65rem .85rem;
  border-radius: var(--r-plate);
  background: #fff;
}

.partner-logo-dark { background: #0a0e14; }

.partner-logo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.partner-logo-apex img { object-fit: cover; }

@media (max-width: 1000px) {
  .partner-tile { flex-basis: calc((100% - 1rem) / 2); }
}

@media (max-width: 620px) {
  .partner-tile { flex-basis: 100%; }
}

/* ==================== journey ==================== */
/* HYPER RED — hr-journey.css
   First-visit and entry-flow refinements: the hero pitch, phone form
   layout, the confirmation next step, footer touch targets and the
   verification dialog. Loaded after the other sheets. */

/* One line that tells a new visitor what this is. Entered drivers get the
   personal welcome instead. */
.hero-pitch { max-width: 34rem; margin: 0 0 1.5rem; color: var(--ink); font-size: clamp(.98rem, 1.2vw, 1.1rem); line-height: 1.55; }
.hero-welcome:not([hidden]) + .hero-pitch { display: none; }

/* Section ledes can carry a link back to the form. */
.lede a { color: var(--ink); text-underline-offset: .18em; }

/* Confirmation: say what to do next before the action buttons. */
.pass-next { max-width: 34rem; margin: 1.1rem 0 0; color: var(--head-fg); font-size: var(--step--1); line-height: 1.6; }

/* FAQ: a way back to the form without scrolling to the header. */
.faq-cta { margin: 1.5rem 0 2rem; }

/* Footer links are a list of touch targets, not inline text. */
.foot-links { gap: 0 1.2rem; }
.foot-links a, .foot-links button { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Verification dialog: fit the 300px widget without scrollbars and match
   the site's surfaces. */
dialog.hr-verification { box-sizing: border-box; width: min(24rem, calc(100vw - 2rem)); max-width: none; overflow: visible; padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--card); color: var(--ink); }
dialog.hr-verification h2 { margin: 0 0 .5rem; font-size: var(--step-1); }
dialog.hr-verification p { margin: 0 0 1rem; color: var(--graphite); font-size: var(--step--1); line-height: 1.55; }
dialog.hr-verification > div { min-height: 65px; }

@media (max-width: 760px) {
  .hero-pitch { margin-bottom: 1rem; }
}
@media (max-width: 380px) {
  /* Short labels fit side by side, which roughly halves the form's height. */
  #classChoices, #slotChoices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dayChoices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #dayChoices .choice span { padding-inline: .45rem; }
}

/* ==================== refine ==================== */
/* ---------- Visual refinement ----------
   One focal point in the hero, red reserved for the primary action,
   readable labels, a one-row phone header, compact empty grid sessions,
   uniform partner tiles and consistent secondary pages. */
:root { --alert: #FF9F45; /* form errors: distinct from brand red and from the yellow "closing" flag */ }

/* -- Hero: the left column is title, pitch, countdown, action. Circuit facts
      sit under the media card in the right column. -- */
.hero-media { display: grid; gap: 1.1rem; min-width: 0; align-content: start; }
.hero-media .hero-facts { margin: 0; max-width: none; padding: .9rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.hero-media .hero-facts.no-trk .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .7rem 1.5rem; }
.hero-media .hero-facts .facts-note { margin-top: .7rem; }
/* The stage caption already names the circuit and its length. */
.hero-media .stage:not([hidden]) ~ .hero-facts .facts > div:first-child { display: none; }
.hero-media .stage figcaption span { display: none; }
.hero-actions { margin-top: 1.75rem; }

/* -- Track outline as the hero image: heavier line, soft glow -- */
.stage { aspect-ratio: 1 / .9; }
.trk-stage { width: 88%; }
.trk-stage path { stroke-width: 6px !important; }
.trk-stage svg { filter: drop-shadow(0 0 16px rgb(244 243 240 / .16)); }

/* -- Red has one job: the primary action (and the logo). -- */
.hero-title .h-dur { color: var(--graphite); }
.race[data-state="next"], .race[data-state="next"]:hover { box-shadow: inset 4px 0 0 var(--ink), 0 14px 35px rgb(0 0 0 / .12); }
/* Class plates in running text are labels, not buttons: outlined, with the
   class colour as a marker. Filled plates stay in the grid and the form. */
.hero-where .plate, .race .plate { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); padding-left: .5em; }
.hero-where .plate::before, .race .plate::before { content: ""; width: .55em; height: .55em; border-radius: 1px; background: var(--plate, var(--ink)); flex: none; }
/* Errors: their own colour plus a mark, so they never read as branding. */
.error { color: var(--alert); }
.error:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: .45em; border-radius: 50%; background: var(--alert); color: #14100A; font-weight: 900; font-size: .85em; line-height: 1; }
.input[aria-invalid="true"] { border-color: var(--alert); }
.toast[data-kind="error"] { border-left-color: var(--alert); }
/* The header's Enter link is the action on every page. */
.nav a.nav-cta { margin-left: .4rem; padding-inline: .95rem; background: var(--red); color: #fff; border-radius: 2px; }
.nav a.nav-cta:hover { background: #C42118; color: #fff; }
.nav a.nav-cta::after { display: none; }

/* -- Small labels: 12px floor, a little less tracking -- */
.nav a { font-size: .78rem; }
.brand-caption { font-size: .72rem; letter-spacing: .12em; }
.hero-facts dt, .clock-label, .band-head::after { font-size: .75rem; letter-spacing: .08em; }
.clock-seg i, .tower-status, .event-option-state, .filter button, .btn-sm, .tl-title { font-size: .75rem; }
.tl-now::before { font-size: .75rem; }

.race[data-state="next"] .race-status { color: var(--ink); }

/* -- Grid: an empty start time is one quiet row, not a panel -- */
.tower:has(.tower-empty) { background: transparent; }
.tower:has(.tower-empty) .tower-head { padding-block: .5rem; }
.tower:has(.tower-empty) .tower-head b { font-size: 1.15rem; }
.tower:has(.tower-empty) .tower-status { border-bottom: 0; }
.tower[data-status="open"] .tower-empty, .tower[data-status="closing"] .tower-empty { margin: 0; padding: 0 .9rem .7rem; border: 0; text-align: left; color: var(--graphite); font-weight: 500; }

/* -- Partners: quieter tiles; logos keep their own colours on a white or dark plate -- */
.partner-tile { border-color: var(--line); font-size: var(--step--1); color: var(--graphite); font-weight: 650; }
/* Six partners: three to a row on wide screens (two, then one, below). */
@media (min-width: 1001px) { .partner-tile { flex-basis: calc((100% - 2rem) / 3); } }
.partner-logo { height: 4.5rem; }

/* -- FAQ, policies and 404: same programme furniture as the homepage -- */
.page .prose::before { content: "HYPER RED  /  2026"; display: block; margin-bottom: 1.5rem; padding-top: 1.5rem; background: linear-gradient(var(--line-strong), var(--line-strong)) left top / 3.5rem 3px no-repeat; color: #818B95; font: 600 .75rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.page .updated { border-top: 0; padding-top: 0; font-size: clamp(.94rem, 1.25vw, 1.1rem); line-height: 1.6; }
.prose h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-transform: uppercase; }
.prose a { text-underline-offset: .18em; }
.faq summary { padding-block: .2rem; }
.faq details[open] summary { color: var(--ink); }
.faq details p { color: var(--graphite); max-width: 62ch; line-height: 1.65; }
.page-next { margin-top: 3.5rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.page-next p { margin: 0; font-weight: 750; }

@media (max-width: 760px) {
  /* Phone header: mark and navigation share one row. */
  .site-header > .wrap { flex-wrap: nowrap; padding-top: .45rem; padding-bottom: .45rem; gap: .5rem; }
  .brand { width: auto; }
  .nav { width: auto; flex: 1; justify-content: flex-end; gap: .1rem; }
  .nav a { font-size: .75rem; padding: .7rem .4rem; letter-spacing: .06em; }
  .nav a.nav-cta { margin-left: .3rem; padding-inline: .7rem; }
  /* Scrolled: navigation row and race bar together stay under 100px. */
  .site-header.is-compact > .wrap { min-height: 0; padding-top: .15rem; padding-bottom: .15rem; }
  .site-header .rc-inner { min-height: 3rem; padding-block: 0; }
  html { scroll-padding-top: 6.5rem; }
  .tl-block { font-size: .72rem; }
  .clock-seg i { font-size: .7rem; }
  .stage { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  /* The mark carries the brand; the wordmark stays available to assistive tech. */
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) { .nav a { font-size: .75rem; padding-inline: .32rem; } }

/* ==================== showcase ====================
   Depth, light and motion: the first screen should look like a race
   broadcast, not a form. Everything here is decorative and switches off
   under prefers-reduced-motion. */

/* Film grain over the whole page (inline SVG noise; no network request). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -- Hero -- */
.hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(3.5rem, 6vw, 6rem); }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); position: relative; z-index: 1; }
.weekend { position: relative; z-index: 1; }
/* The circuit name, outlined and oversized, sits behind everything. */
.hero > .wrap::after {
  content: attr(data-ghost); position: absolute; right: -3vw; top: -2.5rem; z-index: 0; pointer-events: none;
  font: italic 900 clamp(7rem, 24vw, 24rem)/.8 var(--font); font-stretch: 125%; letter-spacing: -.06em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgb(244 243 240 / .11);
  mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 80%, transparent 100%);
}
.hero-title { text-shadow: 0 0 60px rgb(244 243 240 / .12); }
.hero-pitch { font-size: clamp(1.02rem, 1.3vw, 1.2rem); }

/* Countdown as a timing screen. */
.clock { position: relative; background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .01)); border-color: rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 24px 60px rgb(0 0 0 / .45); backdrop-filter: blur(6px); }
.clock-seg b { font-size: clamp(2.3rem, 3.6vw, 3.4rem); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgb(244 243 240 / .25); }

/* Primary action: larger, lit from below. */
.hero-actions { flex-wrap: nowrap; }
.hero-actions .btn { min-height: 3.6rem; padding-inline: 1.5rem; font-size: .82rem; white-space: nowrap; }
.hero-actions .btn-red { min-width: 12.5rem; box-shadow: 0 14px 40px -8px rgb(221 40 29 / .65), inset 0 1px 0 rgb(255 255 255 / .22); }
.hero-actions .btn-red:hover { box-shadow: 0 18px 50px -6px rgb(221 40 29 / .8), inset 0 1px 0 rgb(255 255 255 / .28); transform: translateY(-2px); }
.hero-actions .btn:not(.btn-red) { background: rgb(255 255 255 / .04); backdrop-filter: blur(6px); }

/* The circuit: no card. A lit outline standing on a moving grid floor. */
.stage { aspect-ratio: 16 / 12; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; left: -40%; right: -40%; bottom: -6%; height: 95%; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgb(170 195 255 / .3) 0 1.5px, transparent 1.5px 64px),
    repeating-linear-gradient(0deg, rgb(170 195 255 / .3) 0 1.5px, transparent 1.5px 64px);
  transform: perspective(420px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: radial-gradient(50% 80% at 50% 78%, #000 15%, transparent 75%);
  animation: floor-run 2.6s linear infinite;
}
.stage::after {
  content: ""; position: absolute; inset: 8% 6% 20%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(120 160 255 / .22), rgb(120 160 255 / .06) 55%, transparent 75%); filter: blur(10px);
}
@keyframes floor-run { to { background-position: 0 0, 0 64px; } }
.trk-stage, .stage:hover .trk-stage { width: 100%; transform: perspective(900px) rotateX(24deg); transform-origin: 50% 60%; }
.stage:hover .trk-stage { transform: perspective(900px) rotateX(18deg) scale(1.03); }
.trk-stage path { stroke-width: 7px !important; }
.trk-stage svg { overflow: visible; filter: drop-shadow(0 0 5px rgb(255 255 255 / .75)) drop-shadow(0 0 26px rgb(130 170 255 / .55)) drop-shadow(0 26px 22px rgb(0 0 0 / .6)); }
.trk-stage .lap-car { fill: #fff; }
.trk-stage .lap-glow { fill: var(--red); opacity: .8; }
.stage figcaption { border: 0; background: none; padding: 0 0 .25rem; text-align: right; }
.stage figcaption strong { font: italic 850 clamp(1.3rem, 2.2vw, 2rem)/1 var(--font); font-stretch: 118%; letter-spacing: -.03em; text-transform: uppercase; }
/* Circuit facts read as telemetry. */
.hero-media .hero-facts { border-top-color: rgb(255 255 255 / .16); }
.hero-media .hero-facts dd { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 820; font-style: italic; font-stretch: 112%; letter-spacing: -.02em; }
.hero-media .hero-facts dd { white-space: nowrap; }
.hero-media .hero-facts dd .muted { font-style: normal; font-stretch: 100%; }

/* First-load choreography. */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.hero-week, .hero-where, .hero-pitch, .hero .clock, .hero-actions, .hero-media { animation: rise-in .7s cubic-bezier(.16, 1, .3, 1) backwards; }
.hero-where { animation-delay: .12s; }
.hero-pitch { animation-delay: .2s; }
.hero .clock { animation-delay: .28s; }
.hero-actions { animation-delay: .36s; }
.hero-media { animation-delay: .18s; animation-duration: 1s; }

/* -- Ticker band between the hero and the form -- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #0C0F13; padding-block: .95rem; }
.ticker-track { display: flex; width: max-content; animation: ticker-run 60s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; padding-inline: 1.6rem; font: italic 850 clamp(1rem, 1.6vw, 1.35rem)/1 var(--font); font-stretch: 118%; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.ticker-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgb(244 243 240 / .55); }
.ticker-track span::after { content: ""; width: .5rem; height: .5rem; margin-left: 3.2rem; background: var(--line-strong); transform: rotate(45deg); }
@keyframes ticker-run { to { transform: translateX(-50%); } }

/* -- Sections: an oversized outlined index behind each heading -- */
.band > .wrap { position: relative; }
#enter > .wrap::before, #grid > .wrap::before, #season > .wrap::before {
  position: absolute; right: 0; top: -1.5rem; z-index: 0; pointer-events: none;
  font: italic 900 clamp(7rem, 17vw, 17rem)/.8 var(--font); font-stretch: 125%; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgb(244 243 240 / .09);
}
#enter > .wrap::before { content: "01"; }
#grid > .wrap::before { content: "02"; }
#season > .wrap::before { content: "03"; }
.band > .wrap > * { position: relative; z-index: 1; }

/* Local start time on one line, UTC beside it. */
.tower-head { flex-wrap: wrap; gap: .2rem .6rem; }
.tower-head b { white-space: nowrap; font-size: 1.3rem; }
.tower-head span { white-space: nowrap; }

/* -- Surfaces: glass edges and light on hover -- */
.tower, .door-panel, .mine-item, .partner-tile, .page-next { box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 18px 40px -18px rgb(0 0 0 / .7); }
.tower { transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s; }
.tower:not(:has(.tower-empty)):hover { transform: translateY(-3px); border-color: var(--line-strong); }
.input:focus { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px rgb(244 243 240 / .08); }
.choice input:checked + span { box-shadow: 0 10px 30px -12px rgb(244 243 240 / .45); }
.form #submitBtn { min-height: 3.6rem; padding-inline: 2rem; box-shadow: 0 14px 40px -10px rgb(221 40 29 / .6); }
.race[data-state="next"] { background: linear-gradient(90deg, rgb(255 255 255 / .06), rgb(255 255 255 / .01)); }
.race[data-state="next"] .trk svg { filter: drop-shadow(0 0 10px rgb(130 170 255 / .5)); }
.partner-tile { transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s; }
.partner-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 16 / 11; max-width: 34rem; margin-inline: auto; width: 100%; }
  .stage figcaption { text-align: left; }
}
@media (max-width: 760px) {
  .hero > .wrap::after { top: -1rem; font-size: 34vw; -webkit-text-stroke-color: rgb(244 243 240 / .06); }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { min-height: 3.3rem; }
  .hero-actions .btn-red { min-width: 0; }
  #enter > .wrap::before, #grid > .wrap::before, #season > .wrap::before { font-size: 8rem; top: -.5rem; -webkit-text-stroke-color: rgb(244 243 240 / .07); }
  .ticker { padding-block: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stage::before, .ticker-track { animation: none; }
  .hero-week, .hero-where, .hero-pitch, .hero .clock, .hero-actions, .hero-media { animation: none; }
  .trk-stage, .stage:hover .trk-stage { transform: perspective(900px) rotateX(24deg); }
  .hero-actions .btn-red:hover, .tower:hover, .partner-tile:hover { transform: none; }
}

/* ==================== title intro ====================
   Intro: the mark settles in over a soft glow, the name rises letter by
   letter and a light passes across it, one red line draws beneath, then the
   backdrop fades and the star and name travel up into the header logo
   (intro.js). About 3.3 seconds, once per browser session, skippable, and
   never shown with reduced motion. */
.intro.intro-mark { background: none; animation: none; }
.intro.intro-mark::after { display: none; }
/* The backdrop is its own layer so it can fade while the name is still moving. */
.intro.intro-mark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 34% at 50% 52%, rgb(150 175 255 / .09), transparent 70%),
    radial-gradient(70% 60% at 50% 46%, #0d1016, #040507 75%);
  transition: opacity .75s cubic-bezier(.4, 0, .2, 1) .12s;
}
.intro.intro-mark.is-leaving::before { opacity: 0; }
.intro.intro-mark.is-leaving { pointer-events: none; }
.intro-mark .intro-stage { position: relative; gap: 0; animation: mark-drift 3.3s cubic-bezier(.2, 0, .2, 1) forwards; }
@keyframes mark-drift { from { transform: scale(.985); } to { transform: scale(1.02); } }

/* Star, with a slow red glow behind it. */
.intro-mark .intro-star {
  position: relative; width: clamp(4.4rem, 11vw, 7.4rem); margin-bottom: clamp(1.4rem, 3.4vw, 2.6rem);
  opacity: 0; transform: scale(.9); filter: blur(12px);
  animation: mark-star 1s cubic-bezier(.16, 1, .3, 1) .15s forwards;
}
@keyframes mark-star { to { opacity: 1; transform: none; filter: blur(0); } }
.intro-mark .intro-stage::before {
  content: ""; position: absolute; left: 50%; top: 0; width: clamp(14rem, 34vw, 24rem); aspect-ratio: 1; transform: translate(-50%, -34%); pointer-events: none;
  background: radial-gradient(closest-side, rgb(221 40 29 / .34), rgb(221 40 29 / .1) 45%, transparent 72%); filter: blur(8px);
  opacity: 0; animation: mark-glow 2.2s ease-out .3s forwards;
}
@keyframes mark-glow { 35% { opacity: 1; } 100% { opacity: .55; } }

/* Name: large, rising letter by letter. Then a light passes across it:
   each letter brightens in turn while a soft glow travels behind them. */
.intro-mark .intro-word {
  position: relative; isolation: isolate; display: flex; justify-content: center; margin: 0; clip-path: none; transform: none; animation: none;
  font-size: clamp(2.6rem, 10.6vw, 9rem); line-height: 1; letter-spacing: -.04em; color: #B4BBC6;
}
.iw { display: inline-block; overflow: hidden; padding: .1em .14em .06em .02em; margin-right: -.14em; }
.iw i { display: inline-block; font-style: inherit; transform: translateY(112%); animation: mark-rise .9s cubic-bezier(.16, 1, .3, 1) forwards, mark-flash .75s ease-out forwards; }
.iw-gap { width: .3em; }
.iw:nth-child(1) i { animation-delay: .5s, 1.3s; } .iw:nth-child(2) i { animation-delay: .545s, 1.36s; } .iw:nth-child(3) i { animation-delay: .59s, 1.42s; }
.iw:nth-child(4) i { animation-delay: .635s, 1.48s; } .iw:nth-child(5) i { animation-delay: .68s, 1.54s; } .iw:nth-child(7) i { animation-delay: .77s, 1.66s; }
.iw:nth-child(8) i { animation-delay: .815s, 1.72s; } .iw:nth-child(9) i { animation-delay: .86s, 1.78s; }
@keyframes mark-rise { to { transform: none; } }
@keyframes mark-flash { 0% { color: #B4BBC6; } 35% { color: #FFFFFF; } 100% { color: #F6F5F2; } }
.intro-mark .intro-word::after {
  content: ""; position: absolute; z-index: -1; top: -25%; bottom: -25%; left: 0; width: 38%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(190 208 255 / .3), rgb(190 208 255 / .08) 55%, transparent 80%); filter: blur(18px);
  transform: translateX(-110%); opacity: 0; animation: mark-sweep 1.15s cubic-bezier(.45, 0, .25, 1) 1.2s forwards;
}
@keyframes mark-sweep { 0% { transform: translateX(-110%); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(275%); opacity: 0; } }

.intro-rule { display: block; width: clamp(3.4rem, 8vw, 5.5rem); height: 2px; margin: clamp(1.2rem, 2.8vw, 2rem) 0 clamp(1rem, 2.2vw, 1.5rem); background: var(--red); transform: scaleX(0); animation: mark-rule .7s cubic-bezier(.65, 0, .2, 1) 1.15s forwards; }
@keyframes mark-rule { to { transform: none; } }
.intro-mark .intro-tag {
  margin: 0; transform: none; opacity: 0; color: #A9B1BC;
  font: 600 clamp(.7rem, 1.35vw, .88rem)/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .34em; text-transform: uppercase; text-indent: .34em;
  animation: mark-tag .8s cubic-bezier(.16, 1, .3, 1) 1.4s forwards;
}
@keyframes mark-tag { to { opacity: 1; letter-spacing: .22em; text-indent: .22em; } }

/* Leaving: everything but the star and name lets go first. */
@keyframes mark-gone { to { opacity: 0; } }
.intro-mark.is-leaving .intro-rule { transform: none; animation: mark-gone .25s ease forwards; }
.intro-mark.is-leaving .intro-tag { opacity: 1; letter-spacing: .22em; text-indent: .22em; animation: mark-gone .25s ease forwards; }
.intro-mark.is-leaving .intro-stage::before { opacity: .55; animation: mark-gone .5s ease forwards; }
.intro-mark.is-leaving .intro-word { color: #F6F5F2; }
.intro-mark.is-leaving .intro-word::after { display: none; }
.intro-mark ~ .intro-skip { animation: intro-fade .3s ease-out .4s both, intro-hide .01s linear 2.4s forwards; }
