/* ==========================================================================
   facelevel.com homepage: "Life at Redline" in Face Level yellow.
   F1 broadcast graphics over full-bleed action photos. The homepage only:
   /lekker-tana/ and the article keep styles.css + app.js.
   ========================================================================== */

:root {
  --ink: #0a0b0d;
  --ink-2: #101216;
  --ink-3: #181b21;
  --ink-4: #23272e;
  --line: rgba(255, 255, 255, 0.1);
  --paper: #ffffff;
  --text: #f3f4f6;
  --mute: #aab0b9;
  --mute-ink: #474d56;

  --fl: #ffe000; /* Face Level yellow: the redline */

  /* element team colours: bars and chips only */
  --river: #00d2be;
  --air: #a066ff;
  --snow: #e9eef4;
  --wave: #38a6ff;
  --road: #ff8a1f;
  --ice: #9be4ff;
  --sea: #4a62ff;
  --sail: #27c76c;

  /* F1 sector colours for the lap */
  --s1: #b06cff;
  --s2: #2fd16b;
  --s3: var(--fl);

  --gut: clamp(16px, 2.2vw, 32px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hud-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hud-h) + 12px);
  scrollbar-color: #3a3f47 var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 450;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--fl); color: var(--ink); }
:focus-visible { outline: 3px solid var(--fl); outline-offset: 2px; }
.radio :focus-visible, .pitwall :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--fl); color: var(--ink); padding: 12px 16px;
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden, .honey {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared type voices ---------- */
.chip, .tower__head, .trow, .cam__tc, .cam__pos, .cam__time, .sect__tab, .btn,
.hud__menu a, .hud__toggle, .lower-third, .who, .el, .gauge__label, .gauge__unit, dt {
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  font-weight: 900; font-size: 15px; line-height: 1;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.btn--fl { background: var(--fl); color: var(--ink); }
.btn--fl:hover { background: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--fl); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-4); }
.btn--big { min-height: 64px; padding: 0 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; justify-content: space-between; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.ico--play { fill: currentColor; stroke: none; }

/* ---------- chips / plates ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 13px; white-space: nowrap;
}
.chip--live { background: var(--fl); }
.chip--meta { background: rgba(10, 11, 13, 0.82); color: var(--paper); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* ==========================================================================
   HUD
   ========================================================================== */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2px;
  height: var(--hud-h); padding: 0 var(--gut);
  transition: background-color 0.25s;
}
.hud.is-scrolled { background: rgba(10, 11, 13, 0.96); box-shadow: 0 1px 0 var(--line); }
.hud__brand {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 4px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em;
}
.hud__brand img { width: 30px; height: 30px; }
.hud__gap { flex: 1; }
.hud__menu { display: flex; gap: 2px; }
.hud__menu a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 13px; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s;
}
.hud__menu a:hover { background: var(--fl); }
.hud__menu a[aria-current="true"] { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.hud__menu a.is-shop { background: var(--fl); }
.hud__menu a.is-shop:hover { background: var(--paper); }
.hud__menu a.is-shop[aria-current="true"] { background: var(--ink); color: var(--fl); box-shadow: inset 0 0 0 2px var(--fl); }
.hud__toggle {
  display: none; height: 36px; padding: 0 14px; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink); font-weight: 900; font-size: 13px; cursor: pointer;
}

/* ==========================================================================
   FIRST VIEWPORT
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 700px);
  background: var(--ink);
}
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 64% 42%;
  transform: scale(1.1); transform-origin: 0% 100%;
  z-index: -2;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.5) 30%, rgba(10, 11, 13, 0) 56%),
    linear-gradient(0deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.4) 30%, rgba(10, 11, 13, 0) 52%);
}

/* timing tower, shared by the hero and the stage */
.tower { width: 340px; background: rgba(10, 11, 13, 0.9); box-shadow: 0 1px 0 var(--line) inset; }
.tower__head {
  display: flex; align-items: center; height: 40px; padding: 0 14px;
  background: var(--fl); color: var(--ink);
  font-weight: 900; font-size: 14px;
}
.trow {
  display: grid; grid-template-columns: 34px 6px 1fr auto; align-items: center; gap: 12px;
  width: 100%; height: 43px; padding: 0 14px;
  background: transparent; color: #d5d9df; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; text-decoration: none; cursor: pointer;
  font-weight: 750; font-size: 15px; letter-spacing: 0.01em; text-transform: none; font-stretch: 100%;
  transition: background-color 0.15s, color 0.15s;
}
.trow i { width: 6px; height: 22px; background: var(--team); }
.trow__pos { font-weight: 900; font-style: italic; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--paper); }
.trow__el { font-size: 12px; font-weight: 700; color: #8f96a0; letter-spacing: 0.08em; text-transform: uppercase; }
.trow:hover { background: var(--ink-4); color: var(--paper); }
.trow[aria-selected="true"], .trow.is-on { background: var(--paper); color: var(--ink); }
.trow[aria-selected="true"] .trow__pos, .trow[aria-selected="true"] .trow__el,
.trow.is-on .trow__pos, .trow.is-on .trow__el { color: var(--ink); }
.trow--pit { border-bottom: 0; box-shadow: inset 0 2px 0 var(--fl); }
.trow--pit .trow__pos { color: var(--fl); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.trow--pit .trow__el { color: var(--paper); font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.trow--pit .trow__el b { color: var(--fl); font-weight: 900; }
.trow--pit:hover .trow__el b { color: var(--fl); }

.tower--hero { position: absolute; left: var(--gut); top: calc(var(--hud-h) + 20px); }

/* rev gauge: the Tana count as live telemetry */
.gauge {
  position: absolute; right: var(--gut); top: calc(var(--hud-h) + 16px);
  display: grid; justify-items: center;
  width: 210px; aspect-ratio: 1;
  color: var(--paper); text-decoration: none;
}
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge path { fill: none; }
.gauge__face { fill: rgba(10, 11, 13, 0.74); }
.gauge__track { stroke: rgba(10, 11, 13, 0.62); stroke-width: 22; }
.gauge__ticks { stroke: rgba(255, 255, 255, 0.85); stroke-width: 22; stroke-dasharray: 0.5 16.1667; stroke-dashoffset: 0.25; }
.gauge__redline { stroke: var(--fl); stroke-width: 22; stroke-dasharray: 0 90 10 0; opacity: 0.35; }
.gauge__fill {
  stroke: var(--fl); stroke-width: 12;
  stroke-dasharray: calc(var(--v, 0) * 100) 100;
  transition: stroke-dasharray 1.4s var(--ease);
}
.gauge__label, .gauge__value, .gauge__unit { position: absolute; left: 50%; translate: -50% 0; text-align: center; white-space: nowrap; }
.gauge__label { top: 29%; font-size: 11px; font-weight: 800; color: var(--fl); }
.gauge__value { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; top: 37%; }
.gauge__value small { font-size: 22px; color: #c9ced5; font-style: italic; }
.gauge__unit { top: 64%; font-size: 10px; font-weight: 800; color: #e3e6ea; letter-spacing: 0.04em; }
.gauge:hover .gauge__value b { color: var(--fl); }

.hero__copy {
  position: absolute; left: calc(var(--gut) + 340px + 40px); right: var(--gut); bottom: clamp(28px, 5vh, 56px);
}
.hero__title {
  display: grid;
  font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: 0.86; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero__title span { white-space: nowrap; }
.hero__title span:nth-child(2) { color: var(--fl); }
.lower-third { display: inline-flex; flex-wrap: wrap; margin-top: 22px; }
.lower-third b, .lower-third span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; }
.lower-third b { background: var(--paper); color: var(--ink); font-weight: 900; font-size: 17px; }
.lower-third span { background: var(--fl); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: none; font-stretch: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 14px; }

/* ==========================================================================
   RUNNING ORDER / STAGE
   ========================================================================== */
.stage {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px;
  padding: 104px var(--gut) 96px;
  background: var(--ink);
}
.stage__rail { position: sticky; top: calc(var(--hud-h) + 16px); align-self: start; min-width: 0; }
.tower--stage { width: 100%; }
.stage__def { margin-top: 18px; max-width: 34ch; color: var(--mute); font-size: 15px; }
.stage__def b { color: var(--paper); font-weight: 800; }

.stage__screen { position: relative; min-width: 0; }
.wipe {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--fl); clip-path: inset(0 100% 0 0);
}
.stage__screen.is-wiping .wipe { animation: wipe 0.56s var(--ease) both; }
@keyframes wipe {
  0% { clip-path: inset(0 100% 0 0); }
  46% { clip-path: inset(0 0 0 0); }
  54% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.js .sport { display: none; }
.js .sport.is-active { display: block; }
.sport + .sport { margin-top: 64px; }
.js .sport + .sport { margin-top: 0; }

.sport__bar { display: flex; align-items: stretch; min-height: 60px; }
.sport__bar .pos {
  display: grid; place-items: center; min-width: 76px;
  background: var(--paper); color: var(--ink);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 26px;
  box-shadow: inset -8px 0 0 var(--team);
}
.sport__bar h3 {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 6px 22px 4px;
  background: var(--ink-3);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}
.sport__bar .el { display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--ink-4); font-weight: 800; font-size: 13px; color: var(--paper); }
.sport__bar .el::before { content: ""; width: 10px; height: 10px; background: var(--team); }

.sport__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }

.cam { position: relative; overflow: hidden; background: var(--ink-3); aspect-ratio: 16 / 10; }
.cam img { width: 100%; height: 100%; object-fit: cover; }
.cam__tc, .cam__pos, .cam__time {
  position: absolute; z-index: 2; padding: 6px 10px;
  font-weight: 800; font-size: 12px; line-height: 1.1;
}
.cam__tc { top: 12px; left: 12px; background: var(--fl); color: var(--ink); max-width: calc(100% - 24px); }
.cam:has(.cam__pos) .cam__tc, .cam:has(.cam__clock) .cam__tc { max-width: calc(100% - 104px); }
.cam__pos { top: 12px; right: 12px; background: var(--paper); color: var(--ink); font-weight: 900; font-style: italic; font-size: 13px; }
.cam__clock {
  position: absolute; z-index: 2; top: 12px; right: 12px; padding: 6px 10px;
  background: var(--paper); color: var(--ink); font-weight: 900; font-size: 12px; line-height: 1.1;
  font-stretch: 112%; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.cam__clock::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #e5241b; vertical-align: 1px; }
.cam__credit {
  position: absolute; z-index: 2; left: 12px; bottom: 10px; padding: 3px 6px;
  background: rgba(10, 11, 13, 0.72); color: #d5d9df; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.cam__credit a { color: inherit; text-underline-offset: 2px; }
.cam__credit a:hover { color: var(--fl); }
.cam__time { right: 12px; bottom: 12px; background: rgba(10, 11, 13, 0.86); color: var(--paper); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.cam--stage { aspect-ratio: auto; min-height: clamp(300px, 36vw, 540px); height: 100%; }
.cam--stage img { position: absolute; inset: 0; }

/* archive frame: a still cut from the 2012 flyer, shown whole */
/* the frame takes the crop's own shape and never grows past the file's width */
.cam.cam--archive { justify-self: start; align-self: start; width: fit-content; max-width: 100%; min-height: 0; height: auto; aspect-ratio: auto; box-shadow: inset 0 0 0 2px var(--fl); }
.cam.cam--archive img { position: relative; inset: auto; width: 100%; height: auto; padding: 2px; }
/* a wide strip runs the full stage with the tiles under it; a tall crop takes only its own width */
.sport__grid:has(.cam--wide) { grid-template-columns: minmax(0, 1fr); }
.sport__grid:has(.cam--wide) .tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sport__grid:has(.cam--wide) .cam.cam--archive { width: 100%; }
.sport__grid:has(.cam--wide) .cam--archive img { width: 100%; }
.sport__grid:has(.cam--tall) { grid-template-columns: auto minmax(0, 1fr); }
/* a tall frame is as wide as its file (--w), so it sizes before the lazy image arrives */
.cam.cam--archive.cam--tall { width: var(--w); max-width: 100%; }

.sport__data { display: flex; flex-direction: column; gap: 12px; }
.tiles { display: grid; gap: 12px; }
.tile { background: var(--paper); color: var(--ink); padding: 16px 18px 18px; }
.tile dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--mute-ink); }
.tile dt::before { content: ""; width: 10px; height: 10px; background: var(--team, var(--fl)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.tile dd { margin-top: 8px; font-weight: 700; font-size: 18px; line-height: 1.3; text-wrap: pretty; }
.sport__data .btn--block { margin-top: auto; }
.tile.tile--ask { background: var(--ink-3); color: var(--paper); box-shadow: inset 0 0 0 2px var(--fl); }
.tile.tile--ask dt { color: var(--fl); }
.tile.tile--ask a { color: var(--fl); text-underline-offset: 3px; }

.sport__cams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sport__cams--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sport__cams--2 .cam { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.sport__cams--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sport__cams--pair .cam { aspect-ratio: 16 / 10; }

/* ==========================================================================
   ONBOARD: multiview
   ========================================================================== */
.onboard { padding: 96px var(--gut); background: var(--ink-2); }
.sect { display: flex; flex-wrap: nowrap; align-items: stretch; margin-bottom: 28px; max-width: 100%; }
.sect__tab {
  display: inline-flex; align-items: center; padding: 0 14px; min-height: 40px;
  background: var(--ink-4); color: var(--paper); font-weight: 900; font-size: 13px;
}
.sect__tab--fl { background: var(--fl); color: var(--ink); }
.sect__tab--ink { background: var(--ink); color: var(--paper); }
.sect__tab { flex: none; }
.sect__title {
  display: inline-flex; align-items: center; min-width: 0; padding: 8px 20px 6px; text-wrap: balance;
  background: var(--paper); color: var(--ink);
  font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(28px, 4.2vw, 58px);
  line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase;
}
.sect--small .sect__title { font-size: clamp(24px, 2.6vw, 36px); }

.multiview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feed { display: flex; flex-direction: column; min-width: 0; }
.feed--main { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.feed__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: var(--paper); }
.feed--main .feed__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.feed__media video, .feed__media img, .feed__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.feed__media .cam__tc { top: 12px; left: 12px; }
.feed__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center; width: 64px; height: 64px; translate: -50% -50%;
  background: var(--fl); color: var(--ink);
  opacity: 0; scale: 0.9; transition: opacity 0.2s, scale 0.25s var(--ease);
}
.feed__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.feed__media:hover .feed__play, .feed__media:focus-visible .feed__play { opacity: 1; scale: 1; }
.feed__media.is-playing .feed__play, .feed__media.is-playing .cam__time { display: none; }
.feed--main .feed__play { width: 84px; height: 84px; }
.strip { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; padding: 12px 16px 13px; background: var(--paper); color: var(--ink); }
.strip b { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.strip span { color: var(--mute-ink); font-weight: 550; font-size: 15px; }
.link-go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  color: var(--paper); font-weight: 900; font-size: 15px; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--fl); text-decoration-thickness: 3px; text-underline-offset: 7px;
}
.link-go:hover { color: var(--fl); }

/* ==========================================================================
   TEAM RADIO
   ========================================================================== */
.radio {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px);
  padding: 96px var(--gut); background: var(--fl); color: var(--ink);
}
.radio__title {
  font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(3rem, 7.4vw, 6rem); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase;
}
.radio__lead { margin-top: 24px; max-width: 24ch; font-weight: 650; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.radio__channel { display: inline-flex; margin-top: 28px; }
.radio__channel b, .radio__channel span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 13px; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; }
.radio__channel b { background: var(--ink); color: var(--fl); font-weight: 900; }
.radio__channel span { background: var(--paper); color: var(--ink); font-weight: 800; }
.radio__feed { align-self: start; padding: 28px clamp(20px, 2.6vw, 36px) 32px; background: var(--ink); color: var(--paper); }
.radio__wave { width: 100%; height: 72px; transform-origin: 50% 50%; transform: scaleY(0.22); transition: transform 0.4s var(--ease); }
.radio__wave path { fill: none; stroke: var(--fl); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.radio.is-live .radio__wave { animation: talk 0.42s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.radio__lines { display: grid; gap: 18px; margin-top: 18px; }
.radio__lines li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; text-wrap: pretty; }
.who { flex: none; padding: 4px 8px; background: var(--paper); color: var(--ink); font-weight: 900; font-size: 11.5px; transform: translateY(-2px); }
.is-control .who { background: var(--fl); }
.is-control { color: #e7e9ec; font-weight: 600; }
.js .radio__lines li { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.js .radio__lines li.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   TELEMETRY
   ========================================================================== */
.telemetry { padding: 96px var(--gut); background: var(--ink); }
.lap__trace { width: 100%; height: clamp(110px, 13vw, 190px); overflow: visible; }
.lap__ghost { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; }
.lap__line { fill: none; stroke: var(--fl); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: var(--draw, 0); }
.lap__sectors { display: grid; grid-template-columns: 3fr 3fr 2fr; gap: 4px; margin-top: 10px; }
.lap__sectors i {
  display: flex; align-items: center; height: 28px; padding: 0 10px; color: var(--ink);
  font-style: normal; font-weight: 900; font-size: 12px; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase;
}
.lap__sectors .s1 { background: var(--s1); }
.lap__sectors .s2 { background: var(--s2); }
.lap__sectors .s3 { background: var(--s3); }
.lap__marks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.lap__marks li { padding-top: 12px; border-top: 4px solid var(--s); }
.lap__marks b { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.lap__marks h3 { margin-top: 8px; font-weight: 850; font-size: 15px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; font-stretch: 112%; }
.lap__marks p { margin-top: 8px; color: var(--mute); font-size: 14px; line-height: 1.45; }
.lap__marks .is-now b { color: var(--fl); }
.lap__marks a { color: var(--fl); text-underline-offset: 3px; }
.lap__cams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }

/* ==========================================================================
   SHOP: the Tana in the pit lane
   ========================================================================== */
.shop { padding: 96px var(--gut); background: var(--ink-2); box-shadow: inset 0 6px 0 var(--fl); }
.shop__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
.cam--shop { aspect-ratio: auto; min-height: 520px; }
.cam--shop img { position: absolute; inset: 0; }
.shop__panel { display: flex; flex-direction: column; gap: 22px; }
.shop__lead { max-width: 34ch; font-weight: 650; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.3; text-wrap: pretty; }

.startgrid { padding: 20px; background: var(--ink-3); }
.startgrid__slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px 6px; padding-bottom: 14px; }
.startgrid__slots i {
  height: 34px; border: 3px solid rgba(255, 255, 255, 0.28); border-bottom: 0;
  transition: background-color 0.3s, border-color 0.3s;
}
.startgrid__slots i:nth-child(even) { transform: translateY(14px); }
.startgrid__slots i.is-taken { background: var(--fl); border-color: var(--fl); }
.startgrid__read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; font-weight: 750; font-size: 17px; }
.startgrid__read b { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 44px; line-height: 1; color: var(--fl); font-variant-numeric: tabular-nums; }
.startgrid__read span { flex-basis: 100%; color: var(--mute); font-weight: 500; font-size: 14px; }

.pitstop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; counter-reset: lap; }
.pitstop li { counter-increment: lap; padding: 16px 18px 18px; background: var(--ink-4); box-shadow: inset 0 3px 0 var(--fl); }
.pitstop li::before {
  content: counter(lap); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px;
  background: var(--fl); color: var(--ink); font-weight: 900; font-style: italic;
}
.pitstop b { display: block; font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 19px; text-transform: uppercase; }
.pitstop span { display: block; margin-top: 6px; color: #cfd3d9; font-size: 15px; line-height: 1.4; }
.shop__actions { display: flex; flex-wrap: wrap; gap: 2px; }
.shop__actions .btn--paper { min-height: 64px; }

/* ==========================================================================
   ARCHIVE + PIT WALL
   ========================================================================== */
.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.archive, .pitwall { padding: 80px var(--gut); }
.archive { background: var(--ink-3); }
.archive p, .pitwall p { max-width: 44ch; font-size: 18px; line-height: 1.45; }
.archive p { color: #cfd3d9; }
.archive__links { display: grid; gap: 2px; margin-top: 28px; max-width: 520px; }
.archive__links a {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px;
  background: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px;
  transition: background-color 0.15s, color 0.15s;
}
.archive__links a span { color: #8f96a0; font-weight: 700; font-size: 12px; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; }
.archive__links a:hover { background: var(--fl); color: var(--ink); }
.archive__links a:hover span { color: var(--ink); }
.pitwall { background: var(--paper); color: var(--ink); }
.pitwall .sect__title { box-shadow: inset 0 0 0 2px var(--ink); }
.pitwall__row { display: flex; max-width: 560px; margin-top: 28px; border: 3px solid var(--ink); }
.pitwall__row input[type="email"] {
  flex: 1; min-width: 0; height: 58px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink); font: 600 18px var(--font);
}
.pitwall__row input::placeholder { color: #6a707a; }
.pitwall__row input:focus-visible { outline: 0; box-shadow: inset 0 -4px 0 var(--fl); }
.pitwall__row .btn { min-height: 58px; padding: 0 28px; }
.pitwall__status { min-height: 1.5em; margin-top: 14px; font-weight: 750; font-size: 15px; }
.pitwall__status.is-err { color: #b42318; }
.rform__human { margin-top: 12px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { padding: 56px var(--gut) 28px; background: var(--ink); box-shadow: inset 0 1px 0 var(--line); }
.foot__main { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.foot__contact { display: grid; gap: 4px; }
.foot__contact a { white-space: nowrap; font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(20px, 2.2vw, 28px); text-decoration: none; text-transform: uppercase; letter-spacing: -0.01em; }
.foot__contact a:hover { color: var(--fl); }
.foot__contact small { color: var(--mute); font-size: 14px; font-style: normal; font-stretch: 100%; letter-spacing: 0.04em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.foot__links a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
  background: var(--ink-3); text-decoration: none; font-weight: 750; font-size: 13px; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase;
}
.foot__links a:hover { background: var(--fl); color: var(--ink); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; color: #8f96a0; font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .hud .chip--wide { display: none; }
  .lap__marks { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
}

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 88px; }
  .stage__rail { position: static; }
  .tower--stage { background: transparent; box-shadow: none; }
  .tower--stage .tower__rows {
    display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .tower--stage .tower__rows::-webkit-scrollbar { display: none; }
  .tower--stage .trow { flex: none; width: auto; grid-template-columns: auto 6px auto; padding: 0 16px 0 12px; height: 46px; background: var(--ink-3); border: 0; scroll-snap-align: start; }
  .tower--stage .trow__el { display: none; }
  .tower--stage .trow[aria-selected="true"] { background: var(--paper); }
  .stage__def { display: none; }
  .shop__grid { grid-template-columns: minmax(0, 1fr); }
  .cam--shop { min-height: 0; aspect-ratio: 16 / 11; }
}

@media (max-width: 960px) {
  :root { --hud-h: 60px; }
  .hud .chip--meta { display: none; }
  .hud__toggle { display: inline-flex; align-items: center; }
  .hud__menu {
    position: fixed; top: var(--hud-h); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px var(--gut) 20px;
    background: rgba(10, 11, 13, 0.98); box-shadow: 0 1px 0 var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .hud.is-open .hud__menu { transform: none; opacity: 1; visibility: visible; transition: opacity 0.2s, transform 0.25s var(--ease); }
  .hud.is-open { background: rgba(10, 11, 13, 0.98); }
  .hud__menu a { height: 52px; font-size: 15px; }

  .tower--hero { display: none; }
  .hero { min-height: max(100svh, 620px); }
  .hero__photo img { object-position: 70% 40%; transform: none; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(10, 11, 13, 0.95) 0%, rgba(10, 11, 13, 0.62) 38%, rgba(10, 11, 13, 0) 64%),
      linear-gradient(180deg, rgba(10, 11, 13, 0.55) 0%, rgba(10, 11, 13, 0) 22%);
  }
  .hero__copy { left: var(--gut); bottom: 24px; }
  .gauge { width: 152px; top: calc(var(--hud-h) + 10px); }
  .gauge__track, .gauge__ticks, .gauge__redline { stroke-width: 20; }
  .gauge__label { font-size: 11px; top: 27%; }
  .gauge__value { font-size: 38px; }
  .gauge__value small { font-size: 16px; }
  .gauge__unit { top: 61%; width: 62%; white-space: normal; font-size: 11px; line-height: 1.1; letter-spacing: 0; font-stretch: 100%; }

  .sport__grid { grid-template-columns: minmax(0, 1fr); }
  .cam--stage { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .multiview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feed--main { grid-column: 1 / -1; grid-row: auto; }
  .feed--main .feed__media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .radio { grid-template-columns: minmax(0, 1fr); }
  .close { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hud__brand span { display: none; }
  .hero__title { font-size: calc((100vw - 2 * var(--gut)) / 8.6); font-stretch: 112%; }
  .cam__tc, .cam__pos, .cam__time { font-size: 11px; padding: 5px 7px; letter-spacing: 0.06em; }
  .cam__tc { top: 8px; left: 8px; }
  .cam__pos { top: 8px; right: 8px; }
  .lower-third b, .lower-third span { min-height: 40px; padding: 0 12px; }
  .lower-third b { font-size: 15px; }
  .lower-third span { font-size: 13.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stage, .onboard, .radio, .telemetry, .shop { padding-top: 72px; padding-bottom: 72px; }
  .sect__tab { padding: 0 10px; font-size: 11px; }
  .sect--small .sect__title { font-size: clamp(20px, 5.6vw, 26px); }
  .sect__title { padding: 6px 12px 5px; font-size: clamp(22px, 6.6vw, 30px); }
  .sport__bar .pos { min-width: 54px; font-size: 20px; }
  .sport__bar .el { display: none; }
  .sport__bar h3 { padding: 8px 12px 6px; font-size: clamp(20px, 6vw, 28px); font-stretch: 112%; }
  .sport__cams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sport__cams .cam:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .multiview { grid-template-columns: minmax(0, 1fr); }
  .feed__play { opacity: 1; scale: 0.8; }
  .lap__marks { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .lap__sectors i { font-size: 11px; padding: 0 6px; letter-spacing: 0.04em; }
  .lap__cams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lap__cams .cam:first-child { grid-column: 1 / -1; }
  .startgrid__slots { gap: 10px 4px; }
  .startgrid__slots i { height: 26px; border-width: 2px; }
  .startgrid__slots i:nth-child(even) { transform: translateY(10px); }
  .pitstop { grid-template-columns: minmax(0, 1fr); }
  .shop__actions .btn { flex: 1 1 100%; }
  .archive, .pitwall { padding: 64px var(--gut); }
  .foot__links { margin-left: 0; }
  /* on a 375 px phone "+1-762-FACELEVEL 762-322-3538" ran 2 px past the edge: let the digits drop a line */
  .foot__contact a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .radio__lines li { opacity: 1; transform: none; }
}
