/*
  VOICE   Mythological luxury × motorsport × dark academia — cinematic, fast, exact.
  IDEA    A night sky the car races through: the falling Icarus in orbit, a gold ticker, a track you scroll along.
  PICTURE Full-screen hero: starfield canvas, live orbit rings, the team's Icarus artwork under a giant ICARUS title.
  COLOUR  Sampled from the Meet the Crew posts: near-black, ivory, khaki gold, steel blue, one cyan ring.
  TYPE    Cinzel (titles) · Cinzel Decorative (names) · Michroma (labels) · Cormorant italic (quotes) · Jost (text).

  BRAND TOKENS: every colour and font on the site comes from these variables.
*/
:root {
  --bg:      #0a0b0b;
  --bg-2:    #111210;
  --card:    #1a1915;
  --panel:   #27241d;
  --ink:     #e6e0d4;
  --ivory:   #ece6da;
  --muted:   #9d978c;
  --gold:    #b59b6c;
  --gold-hi: #d8c08f;
  --blue:    #527589;
  --chip:    #1b2830;
  --cyan:    #81cac7;
  --line:    rgb(var(--ink-rgb) / .12);

  /* RGB triplets so translucent colours follow the theme: rgb(var(--ink-rgb) / .2) */
  --ink-rgb: 230 224 212;  --gold-rgb: 181 155 108;  --gold-hi-rgb: 216 192 143;
  --bg-rgb: 10 11 11;      --blue-rgb: 82 117 137;   --cyan-rgb: 129 202 199;
  --title-fill: linear-gradient(180deg, #f6f1e7 35%, #b59b6c 100%);   /* big display text */
  --heading: "Cinzel", "Trajan Pro", Georgia, serif;
  --name:    "Cinzel Decorative", "Cinzel", Georgia, serif;
  --label:   "Michroma", "Eurostile", "Jost", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --race:    "Titillium Web", "Jost", system-ui, sans-serif;   /* motorsport numerals and names */
  --red:     #ff2a1a;                                         /* start lights only */
  --purple:  #b06cff;  --green: #3ddc84;  --yellow: #ffd23f;  /* F1 timing colours */
  --text:    "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max:     1200px;
  --pad:     max(5vw, 18px, calc((100% - var(--max)) / 2));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
/* Always-dark components (start lights, game panel, lightbox, classified block, photos, radio, blueprint frame) */
.pad, .lights-intro, .lightbox, .propel, .bp-frame, .radio, .tile, .photo, .profile-photo, .view figcaption, .gantry {
  --bg: #0a0b0b; --bg-rgb: 10 11 11; --ink: #e6e0d4; --ink-rgb: 230 224 212; --ivory: #ece6da; --muted: #9d978c;
  --title-fill: linear-gradient(180deg, #ece6da 40%, #b59b6c 100%);
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--bg); }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.06; margin: 0; text-wrap: balance; color: var(--ivory); }
h2 { font-size: clamp(36px, 5.2vw, 64px); margin-bottom: 18px; }
h3 { font-size: 21px; margin-bottom: 6px; }
i { font-style: italic; }

.band { position: relative; padding: clamp(72px, 10vw, 140px) var(--pad); }
.kicker { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0; font-size: 17px; }
.quote { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.4; color: var(--ink); margin: 0; }
.small { font-size: 14px; color: var(--muted); }

/* Greek-key border, from the posts */
.meander {
  height: 22px; margin: 0 var(--pad);
  border-block: 1px solid var(--gold);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20'%3E%3Cpath d='M0 16H24M20 16V4H6V12H14V8H10' fill='none' stroke='%23b59b6c' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 20px;
  opacity: .8;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgb(var(--bg-rgb) / .84); backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.wordmark { font-family: var(--text); font-weight: 400; font-size: 23px; display: inline-grid; line-height: 1; letter-spacing: .01em; }
.wordmark span { justify-self: end; font-size: .42em; letter-spacing: .04em; color: var(--muted); margin-top: .08em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--gold); border: 1px solid var(--gold); padding: 9px 18px; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--bg); }
.nav-toggle { display: none; background: rgb(var(--bg-rgb) / .6); color: var(--ink); font: 500 15px var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 15px; transition: transform .25s, background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid rgb(var(--ink-rgb) / .3); background: rgb(var(--bg-rgb) / .4); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: max(100svh, 700px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 96px 18px clamp(56px, 8vh, 88px);
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgb(var(--blue-rgb) / .16), transparent 70%), var(--bg);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage { position: absolute; mix-blend-mode: lighten; left: 50%; top: 42%; width: min(60vh, 86vw, 600px); aspect-ratio: 1000 / 1204; transform: translate(-50%, -50%); }
.stage-inner { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.figure { position: relative; width: 100%; height: 100%; object-fit: contain; animation: float 9s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-14px) rotate(-1deg); } }
.rings { position: absolute; left: 50%; top: 50%; width: 190%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; }
.ring { fill: none; stroke-width: 1.4; }
.ring-cyan  { stroke: var(--cyan); stroke-opacity: .5; }
.ring-gold  { stroke: var(--gold); stroke-opacity: .35; stroke-dasharray: 2 9; }
.ring-ivory { stroke: var(--ivory); stroke-opacity: .16; }
.dot-cyan  { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.dot-gold  { fill: var(--gold-hi); filter: drop-shadow(0 0 5px var(--gold)); }
.dot-ivory { fill: var(--ivory); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgb(var(--bg-rgb) / .92) 70%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; }
.title { font-family: var(--heading); font-weight: 900; line-height: .82; margin: 0 0 22px; display: grid; justify-items: center; }
.title-word { display: flex; font-size: clamp(76px, 16vw, 236px); letter-spacing: .03em; }
.title-word span {
  display: inline-block;
  background: var(--title-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * .08s);
}
@keyframes rise { from { opacity: 0; transform: translateY(60%); filter: blur(12px); } }
.title-apex { justify-self: end; margin-right: .2em; font-family: var(--text); font-weight: 300; font-size: clamp(26px, 4.4vw, 62px); letter-spacing: .08em; color: var(--gold-hi); animation: fade 1s .8s both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.hero .kicker { animation: fade 1s .1s both; display: inline-block; padding: 7px 14px; background: rgb(var(--bg-rgb) / .72); border: 1px solid rgb(var(--gold-rgb) / .35); border-radius: 999px; backdrop-filter: blur(6px); }
.hero .lede { max-width: 46ch; margin: 0 auto 30px; color: var(--ink); opacity: .85; font-size: clamp(16px, 1.5vw, 19px); animation: fade 1s 1s both; }
.hero .actions { animation: fade 1s 1.15s both; }
.scroll-cue { position: absolute; z-index: 2; bottom: 22px; left: 50%; translate: -50% 0; width: 24px; height: 38px; border: 1px solid rgb(var(--ink-rgb) / .35); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker-wrap { position: relative; z-index: 3; overflow: hidden; padding: 28px 0; margin: -46px 0 -28px; }
.ticker { background: var(--gold); color: var(--bg); transform: rotate(-2deg); margin: 0 -40px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 28px; padding: 16px 0; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--race); font-style: italic; font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker i { font-style: normal; font-size: 13px; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(80px, 10vw, 130px) clamp(56px, 7vw, 96px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat-num { margin: 0; font-family: var(--race); font-style: italic; font-weight: 700; letter-spacing: -.02em; font-size: clamp(56px, 7vw, 96px); line-height: 1; white-space: nowrap;
  background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num small { font-family: var(--label); font-size: .2em; letter-spacing: .1em; margin-left: .3em; -webkit-text-fill-color: var(--gold); }
.stat p:last-child { color: var(--muted); margin: 10px 0 0; font-size: 15px; max-width: 22ch; }

/* ---------- Why Icarus ---------- */
.story { background: var(--bg-2); overflow: hidden; }
.ghost-word { position: absolute; right: -2vw; top: 50%; translate: 0 -50%; font-family: var(--heading); font-weight: 900; font-size: clamp(140px, 26vw, 400px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(var(--gold-rgb) / .14); pointer-events: none; user-select: none; }
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.mark { margin: 0; }
.mark img { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgb(var(--ink-rgb) / .12)); }
.story .myth { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.4; color: var(--ink); }
.story p { font-size: 17px; max-width: 56ch; }
.name-parts { margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.name-parts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.name-parts dt { font: 700 italic 20px var(--race); letter-spacing: .04em; color: var(--gold-hi); }
.name-parts dt:first-letter { }
.name-parts dd { margin: 0; color: var(--ink); }
.name-parts .whole dt { color: var(--ivory); }
.name-parts .whole dd { font-family: var(--display); font-style: italic; font-size: 19px; }
@media (max-width: 600px) { .name-parts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- Crew ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1000px; }
.member {
  position: relative; background: var(--card); border: 1px solid rgb(var(--gold-rgb) / .25); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .25s ease-out, border-color .3s, box-shadow .3s;
}
.member::before { /* light sheen that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--gold-hi-rgb) / .16), transparent 45%);
}
.member:hover { border-color: var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgb(var(--gold-rgb) / .3); }
.member:hover::before { opacity: 1; }
.photo { position: relative; aspect-ratio: 1; background: #000; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; filter: contrast(1.05) brightness(.92); }
.member:hover .photo img { transform: scale(1.07); filter: contrast(1.1) brightness(1.02); }
.photo::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, var(--card)); }
.num { position: absolute; left: 16px; bottom: -10px; z-index: 1; font-family: var(--race); font-style: italic; font-weight: 700; font-size: 76px; letter-spacing: -.03em; line-height: 1; color: var(--blue); transition: color .3s, transform .4s; }
.member:hover .num { color: var(--cyan); transform: translateY(-4px); }
.member-body { padding: 16px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.role { font-family: var(--label); font-size: 10.5px; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; min-height: 3.2em; }
.driver { display: grid; font-family: var(--race); font-style: italic; text-transform: uppercase; line-height: 1; }
.driver .first { font-weight: 700; font-size: 30px; letter-spacing: .01em; color: var(--ivory); }
.driver .last { font-weight: 400; font-style: normal; font-size: 14px; letter-spacing: .38em; color: var(--muted); margin-top: 6px; }
.member-body::before { content: ""; display: block; height: 3px; width: 56px; margin-bottom: 14px; background: linear-gradient(90deg, var(--gold) 0 60%, transparent 60% 70%, var(--gold) 70% 80%, transparent 80% 90%, var(--gold) 90%); transform: skewX(-24deg); }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--chip); border: 1px solid rgb(var(--blue-rgb) / .55); color: var(--ink); font-size: 13px; padding: 4px 10px; border-radius: 2px; }

/* ---------- Engineering race track ---------- */
.engineering { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.track { position: relative; }
.rail { position: relative; height: 72px; margin: 0 0 28px; }
.rail::before, .rail-fill { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: repeating-linear-gradient(90deg, rgb(var(--ink-rgb) / .25) 0 18px, transparent 18px 30px); }
.rail-fill { right: auto; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }
.car { position: absolute; max-width: none; bottom: 4px; left: calc(var(--p) * (100% - 150px)); width: 150px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; counter-reset: stop; }
.stops li { position: relative; padding-top: 22px; border-top: 1px solid var(--line); opacity: .4; transform: translateY(8px); transition: opacity .5s, transform .5s, border-color .5s; }
.stops li::before { counter-increment: stop; content: counter(stop, decimal-leading-zero); position: absolute; top: -9px; left: 0; font-family: var(--label); font-size: 10px; letter-spacing: .1em; background: var(--bg-2); padding-right: 8px; color: var(--muted); }
.stops li.on { opacity: 1; transform: none; border-color: var(--cyan); }
.stops li.on::before { color: var(--cyan); }
.stops p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tool { display: inline-block; margin-top: 12px; font-family: var(--label); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }

/* ---------- Build log ---------- */
.log-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.log-side { position: sticky; top: 110px; }
.log-side .section-lede { margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 40px; font: 500 14px var(--text); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--gold); color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.log { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.log li { position: relative; padding: 0 0 26px 32px; }
.log li::before { content: ""; position: absolute; left: -6px; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); transition: background .3s, box-shadow .3s; }
.log li:hover::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.log-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px 22px; transition: border-color .3s, transform .3s; }
.log li:hover .log-card { border-color: rgb(var(--gold-rgb) / .5); transform: translateX(4px); }
.log time { font-family: var(--label); font-size: 11px; letter-spacing: .06em; color: var(--gold); white-space: nowrap; }
.log .tag { font-size: 13px; color: var(--muted); margin-left: 10px; }
.log h3 { margin-top: 6px; font-size: 20px; }
.log p { margin: 4px 0 0; color: var(--muted); }
.log .proof { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 14px; }
.log-empty { color: var(--muted); padding-left: 32px; }

/* ---------- PROPEL ---------- */
.propel { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 150px) var(--pad); background: radial-gradient(ellipse 80% 70% at 50% 0%, rgb(var(--gold-rgb) / .14), transparent 70%), #12100c; border-block: 1px solid rgb(var(--gold-rgb) / .25); }
.propel-inner { position: relative; }
.propel-title { font-weight: 900; font-size: clamp(80px, 17vw, 240px); line-height: .85; letter-spacing: .02em; margin: 0 0 36px;
  background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.propel-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.propel-grid p { font-size: 17px; max-width: 58ch; }
.propel-facts { margin: 0; background: var(--panel); border-top: 1px solid var(--gold); border-radius: 2px; }
.propel-facts div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.propel-facts div:last-child { border-bottom: 0; }
.propel-facts dt { font-family: var(--label); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.propel-facts dd { margin: 4px 0 0; font-weight: 500; }

/* PROPEL is classified: the text under the blur is generated gibberish, so reading the source reveals nothing */
.classified .propel-inner { position: relative; }
.classified .propel-title { margin-bottom: 28px; }
.redacted { filter: blur(9px) saturate(.6); opacity: .75; user-select: none; -webkit-user-select: none; pointer-events: none; }
.classified .propel-title { filter: blur(clamp(14px, 2.6vw, 34px)); }   /* big type needs a blur scaled to its size to become unreadable */
.classified .flight { position: absolute; inset: 0 0 auto; width: 100%; height: 58%; filter: blur(5px); opacity: .85; pointer-events: none; }
.classified-badge {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  display: flex; align-items: center; gap: 16px; padding: 16px 26px 16px 18px;
  background: rgb(var(--bg-rgb) / .82); backdrop-filter: blur(6px); border: 1px solid rgb(var(--gold-rgb) / .55); border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.classified-badge p { margin: 0; display: grid; }
.classified-badge b { font: 700 italic 22px var(--race); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.classified-badge span:not(.lock) { font-size: 14px; color: var(--muted); }
.lock { position: relative; width: 26px; height: 22px; border-radius: 4px; background: var(--gold); margin-top: 10px; }
.lock::before { content: ""; position: absolute; left: 5px; top: -12px; width: 16px; height: 16px; border: 3px solid var(--gold); border-bottom: 0; border-radius: 10px 10px 0 0; }
.lock::after { content: ""; position: absolute; left: 11px; top: 7px; width: 4px; height: 8px; border-radius: 2px; background: var(--bg); }


.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer, .slots { background: var(--card); border: 1px solid rgb(var(--gold-rgb) / .25); border-radius: 4px; padding: 30px; }
.offer ul { margin: 14px 0 0; padding: 0; list-style: none; }
.offer li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; }
.offer li:last-child { border-bottom: 0; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 2px; background: var(--gold); }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 24px; }
.slot { aspect-ratio: 3 / 2; border: 1px dashed rgb(var(--gold-rgb) / .45); border-radius: 4px; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--muted); padding: 8px; transition: border-color .3s, color .3s; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.addr { color: var(--ink); overflow-wrap: anywhere; }
.aftercare { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.aftercare .kicker { margin-bottom: 8px; }
.aftercare p:not(.kicker) { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.aftercare a { color: var(--ink); overflow-wrap: anywhere; text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: 48px var(--pad) 0; }
.foot-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-links a:hover { border-color: var(--gold); }
.giant { margin: 24px 0 0; font-family: var(--heading); font-weight: 900; font-size: clamp(80px, 21vw, 320px); line-height: .78; letter-spacing: .02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgb(var(--gold-rgb) / .35); user-select: none; }
.copy { text-align: center; margin: 0; padding: 10px 0 4px; }
.credit { text-align: center; margin: 0; padding: 0 0 26px; font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credit a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid rgb(var(--gold-rgb) / .4); }
.credit a:hover { border-color: var(--gold-hi); }

/* ---------- Start-lights gantry (shared by intro and game) ---------- */
.gantry { display: flex; gap: clamp(8px, 1.6vw, 16px); padding: clamp(10px, 1.6vw, 16px) clamp(12px, 2vw, 20px); background: linear-gradient(#1a1a1a, #0c0c0c); border: 1px solid #2c2c2c; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.pod { display: grid; gap: clamp(6px, 1vw, 10px); padding: clamp(6px, 1vw, 9px); background: #050505; border-radius: 999px; box-shadow: inset 0 2px 6px rgba(0,0,0,.9); }
.pod i { display: block; width: clamp(26px, 4.4vw, 46px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b1210, #160505 70%); box-shadow: inset 0 2px 6px rgba(0,0,0,.8); transition: background .06s, box-shadow .06s; }
.pod.on i { background: radial-gradient(circle at 35% 30%, #ffb3a8, var(--red) 42%, #9c0d04); box-shadow: 0 0 16px var(--red), 0 0 46px rgba(255,42,26,.55); }

/* ---------- Intro overlay ---------- */
.lights-intro { position: fixed; inset: 0; z-index: 100; display: none; place-content: center; justify-items: center; gap: 28px; background: radial-gradient(ellipse at 50% 45%, #141414, #030303 70%); transition: opacity .55s ease, transform .7s cubic-bezier(.7,0,.2,1); }
html.intro .lights-intro { display: grid; }
html.intro body { overflow: hidden; }
html.intro .hero * { animation-play-state: paused !important; }   /* hero waits for lights out */
.lights-intro.out { opacity: 0; transform: translateY(-4%); pointer-events: none; }
.intro-label { margin: 0; font-family: var(--race); font-style: italic; font-weight: 700; font-size: 22px; letter-spacing: .3em; color: var(--muted); }
.intro-label span { font-weight: 400; color: var(--gold); }
.intro-skip { position: absolute; right: 22px; bottom: 22px; background: none; border: 1px solid rgb(var(--ink-rgb) / .25); color: var(--muted); border-radius: 999px; padding: 0 18px; min-height: 44px; font: 500 14px var(--text); cursor: pointer; }
.intro-skip:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Lap progress (scroll) ---------- */
.lap { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, transparent 33.2%, rgb(var(--ink-rgb) / .25) 33.2% 33.5%, transparent 33.5% 66.5%, rgb(var(--ink-rgb) / .25) 66.5% 66.8%, transparent 66.8%), rgb(var(--ink-rgb) / .06); opacity: 0; transition: opacity .3s; }
.nav.scrolled .lap { opacity: 1; }
.lap-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--lp, 0) * 100%); background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 8px var(--cyan); }
.lap::after { content: ""; position: absolute; right: 0; top: -3px; width: 18px; height: 9px; background: conic-gradient(var(--ink) 25%, var(--bg) 0 50%, var(--ink) 0 75%, var(--bg) 0) 0 0 / 6px 6px; }
.lap-car { position: absolute; top: -4px; left: calc(var(--lp, 0) * (100% - 22px)); width: 22px; height: 10px; border-radius: 6px 10px 3px 3px; background: var(--gold); box-shadow: -10px 0 10px rgb(var(--cyan-rgb) / .5); }

/* ---------- Chequered details ---------- */
.chequer { height: 28px; background: conic-gradient(var(--ink) 25%, var(--bg) 0 50%, var(--ink) 0 75%, var(--bg) 0) 0 0 / 28px 28px; opacity: .9;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }

/* ---------- Reaction game ---------- */
.game { overflow: hidden; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(255,42,26,.07), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.game::before { /* speed stripes */
  content: ""; position: absolute; inset: 0 0 0 45%; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgb(var(--gold-rgb) / .09) 46px 48px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(90deg, transparent, #000 40%);
}
.game-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.how { margin: 26px 0 30px; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; }
.how li { counter-increment: how; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.how li::before { content: counter(how); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 700 italic 13px var(--race); }
.kb-only { text-transform: none; }
.kb-only + * {}
@media (pointer: coarse) { .kb-only { display: none; } }
kbd { font: 600 13px var(--race); padding: 2px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--card); }
.laps { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.laps-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-family: var(--label); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); }
.laps-head b { font: 700 italic 15px var(--race); color: var(--purple); letter-spacing: 0; margin-left: 6px; }
.lap-list { list-style: none; margin: 0; padding: 0; counter-reset: lap; }
.lap-list li { counter-increment: lap; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid rgb(var(--ink-rgb) / .06); font-family: var(--race); }
.lap-list li:last-child { border-bottom: 0; }
.lap-list li::before { content: "L" counter(lap); color: var(--muted); font-size: 13px; }
.lap-list .t { font-style: italic; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.lap-list .tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; color: var(--bg); }
.lap-list .pb .t { color: var(--purple); } .lap-list .pb .tag { background: var(--purple); }
.lap-list .up .t { color: var(--green); }  .lap-list .up .tag { background: var(--green); }
.lap-list .slow .t { color: var(--yellow); } .lap-list .slow .tag { background: var(--yellow); }
.lap-list .js .t { color: var(--red); }     .lap-list .js .tag { background: var(--red); color: #fff; }
.lap-list .lap-empty { display: block; color: var(--muted); font-family: var(--text); font-size: 14px; }
.lap-list .lap-empty::before { content: none; }

.game-panel { display: grid; gap: 16px; }
.pad {
  position: relative; display: grid; justify-items: center; gap: 18px; width: 100%;
  padding: clamp(26px, 4vw, 44px) 20px clamp(22px, 3vw, 32px);
  background: radial-gradient(ellipse at 50% 0%, #1c1c1a, #0d0d0c 70%); color: var(--ink);
  border: 1px solid rgb(var(--gold-rgb) / .35); border-radius: 10px; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 30px 70px rgba(0,0,0,.55); transition: border-color .2s, box-shadow .2s, transform .08s;
}
.pad:hover { border-color: var(--gold); }
.pad:active { transform: scale(.995); }
.pad[data-state="jump"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 30px 70px rgba(255,42,26,.18); }
.pad[data-state="done"] { border-color: var(--cyan); }
.readout { font-family: var(--race); font-style: italic; font-weight: 700; font-size: clamp(56px, 8vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ivory); }
.readout small { font-size: .3em; font-weight: 600; margin-left: 6px; color: var(--muted); }
.pad[data-state="jump"] .readout { color: var(--red); }
.verdict { min-height: 1.3em; font-family: var(--race); font-style: italic; font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.status { font-size: 15px; color: var(--muted); }
.track20 { padding: 4px 2px 0; }
.lane { position: relative; height: 54px; border-bottom: 2px solid rgb(var(--ink-rgb) / .25); background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(var(--ink-rgb) / .12) calc(10% - 1px) 10%); }
.lane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; border-top: 1px dashed rgb(var(--cyan-rgb) / .45); }
.finish { position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: conic-gradient(var(--ink) 25%, var(--bg) 0 50%, var(--ink) 0 75%, var(--bg) 0) 0 0 / 7px 7px; }
.car20 { position: absolute; left: 0; bottom: 2px; width: 120px; max-width: none; height: auto; transform: translateX(0); }
.track20.go .car20 { transform: translateX(var(--dist, 0px)); transition: transform 1.05s cubic-bezier(.35, 0, .25, 1); }
.track-scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share { justify-self: start; background: none; color: var(--gold); border: 1px solid rgb(var(--gold-rgb) / .5); border-radius: 999px; padding: 0 18px; min-height: 44px; font: 600 14px var(--text); cursor: pointer; }
.share:hover { background: var(--gold); color: var(--bg); }

/* ---------- Livery mock-up ---------- */
.livery { margin: 0 0 28px; padding: clamp(16px, 3vw, 32px); background: radial-gradient(ellipse at 50% 30%, rgb(var(--gold-rgb) / .08), transparent 70%), var(--card); border: 1px solid rgb(var(--gold-rgb) / .25); border-radius: 6px; }
.livery svg { width: 100%; height: auto; overflow: visible; }
.spot rect { fill: rgb(var(--gold-rgb) / .06); stroke: var(--gold-hi); stroke-width: 1.5; stroke-dasharray: 6 5; transition: fill .3s, stroke-dasharray .3s; }
.spot text { fill: var(--gold-hi); font: 600 italic 15px var(--race); letter-spacing: .08em; text-transform: uppercase; text-anchor: middle; }
.spot text.in { fill: var(--ivory); font-size: 17px; }
.spot:hover rect { fill: rgb(var(--gold-rgb) / .22); stroke-dasharray: none; }
.spot-title rect { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { fill: rgb(var(--gold-rgb) / .2); } }
.slots .small { margin: 6px 0 14px; }
.spots-list { list-style: none; margin: 0 0 22px; padding: 0; }
.spots-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spots-list b { font: 700 italic 16px var(--race); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-hi); }
.spots-list span { color: var(--muted); font-size: 14px; text-align: right; }
.livery figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Shared: nav current page, "more" links, section head split ---------- */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
a.member { text-decoration: none; color: inherit; }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--gold-hi); text-decoration: none; font: 700 italic 16px var(--race); letter-spacing: .08em; text-transform: uppercase; }
.more::after { content: ""; width: 28px; height: 2px; background: currentColor; transition: width .3s; }
.more:hover::after { width: 46px; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.section-head.split > div { max-width: 760px; }

/* ---------- Page header (sub-pages) ---------- */
.notfound { min-height: 80svh; display: grid; align-content: center; }
.notfound .actions { justify-content: flex-start; margin-top: 30px; }
.page-hero { position: relative; overflow: hidden; padding: clamp(140px, 18vw, 210px) var(--pad) clamp(64px, 8vw, 104px); background: radial-gradient(ellipse 70% 80% at 70% 0%, rgb(var(--blue-rgb) / .18), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; max-width: 880px; }
.page-hero h1 { font-weight: 900; font-size: clamp(48px, 8vw, 108px); line-height: .95; margin-bottom: 22px; background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lede { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); opacity: .85; }
.status-chip { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; padding: 8px 16px; border: 1px solid rgb(var(--cyan-rgb) / .45); border-radius: 999px; font: 600 14px var(--race); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.status-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Blueprint car (home teaser + car page) ---------- */
.bp-frame { margin: 0; padding: clamp(14px, 2.5vw, 28px); background: #0d1416; border: 1px solid rgb(var(--cyan-rgb) / .25); border-radius: 6px; }
.blueprint { width: 100%; height: auto; overflow: visible; }
.bp-ground { stroke: var(--ink); stroke-opacity: .2; }
.bp-line { stroke: var(--cyan); stroke-opacity: .4; stroke-dasharray: 3 6; }
.bp-body { fill: rgb(var(--cyan-rgb) / .06); stroke: #cfe9e8; stroke-width: 1.6; }
.bp-part { fill: none; stroke: #cfe9e8; stroke-width: 1.6; }
.bp-co2, .bp-co2 circle { fill: none; stroke: var(--gold-hi); stroke-width: 2; }
.bp-wheel circle { fill: none; stroke: #cfe9e8; stroke-width: 1.6; }
.callout line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.callout circle { fill: var(--bg); stroke: var(--gold); stroke-width: 1.5; }
.callout text { fill: var(--gold-hi); font: 700 italic 15px var(--race); text-anchor: middle; }
.car-teaser { background: var(--bg-2); border-block: 1px solid var(--line); }
.car-teaser-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

/* ---------- Car renders ---------- */
.showcase { border-bottom: 1px solid var(--line); }
.render-hero { margin: 0 0 18px; border-radius: 8px; overflow: hidden; background: #b9b9b9; border: 1px solid rgb(var(--gold-rgb) / .3); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.render-hero img { width: 100%; height: auto; display: block; }
.teaser-render { margin: 0; }
.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.views .v-side { grid-column: 1 / -1; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.view { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #b9b9b9; border: 1px solid var(--line); }
.view img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.views .view:not(.v-side) { aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 45%, #c6c6c6, #ababab); }
.views .view:not(.v-side) img { object-fit: contain; }   /* show the whole car in every angle */
.details .view { aspect-ratio: 16 / 10; }
.view:hover img { transform: scale(1.04); }
.view figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 3px; background: rgb(var(--bg-rgb) / .78); font: 700 italic 13px var(--race); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); }

/* ---------- Car page ---------- */
.parts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: part; }
.parts li { counter-increment: part; display: grid; gap: 6px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.parts b { display: flex; align-items: center; gap: 10px; font: 700 italic 19px var(--race); letter-spacing: .03em; text-transform: uppercase; color: var(--ivory); }
.parts b::before { content: counter(part); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-hi); font-size: 14px; }
.parts span { color: var(--muted); font-size: 15px; }
.physics { background: var(--bg-2); border-block: 1px solid var(--line); }
.physics-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.equation { background: var(--card); border: 1px solid rgb(var(--gold-rgb) / .3); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.eq { margin: 0 0 22px; font-family: var(--display); font-style: italic; font-size: clamp(24px, 3vw, 36px); color: var(--ivory); white-space: nowrap; overflow-x: auto; padding-bottom: 6px; }
.eq .frac { display: inline-block; }
.equation dl { margin: 0; display: grid; gap: 0; }
.equation dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.equation dt { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold-hi); }
.equation dd { margin: 0; color: var(--muted); font-size: 15px; }
.specs { width: 100%; max-width: 860px; border-collapse: collapse; }
.specs th, .specs td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 40%; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 400; padding-top: 19px; }
.specs td { font: 600 19px var(--race); color: var(--ivory); }
.specs .tbc td { color: var(--cyan); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; background: radial-gradient(ellipse 60% 120% at 100% 100%, rgb(var(--gold-rgb) / .12), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta-band > div:first-child { max-width: 640px; }
.cta-band .actions { justify-content: flex-start; }

/* ---------- Team profiles ---------- */
.profiles { display: grid; gap: clamp(64px, 9vw, 120px); }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: 100px; }
.profile:nth-child(even) .profile-photo { order: 2; }
.profile-photo { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid rgb(var(--gold-rgb) / .3); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.profile-photo img { width: 100%; height: auto; display: block; }
.profile-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(var(--bg-rgb) / .85)); }
.profile-photo .num { left: 22px; bottom: -14px; font-size: clamp(80px, 9vw, 120px); }
.profile-role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 16px; font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.profile-role::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.profile-role i { font-style: normal; color: var(--blue); font-size: 10px; }
.profile-name { font-family: var(--name); font-size: clamp(44px, 6vw, 76px); line-height: .95; margin: 0 0 22px; color: var(--ivory); }
.profile-name::after { content: ""; display: block; width: 110px; height: 4px; margin-top: 22px; background: var(--blue); }
.bio { margin: 0 0 20px; font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 58ch; }
.owns { margin: 0 0 20px; }
.owns .kicker { margin-bottom: 8px; }
.owns ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.owns li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.owns li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 2px; background: var(--gold); transform: skewX(-24deg); }
@media (max-width: 600px) { .owns ul { grid-template-columns: minmax(0, 1fr); } }
.profile .chips li { font-family: var(--label); font-size: 11px; letter-spacing: .06em; padding: 8px 12px; }
.profile-mail { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 22px; color: var(--ink); text-decoration: none; font: 500 16px var(--label); letter-spacing: .02em; overflow-wrap: anywhere; }
.profile-mail::before { content: ""; flex: none; width: 20px; height: 14px; border: 1.5px solid var(--gold); border-radius: 2px; background: linear-gradient(to bottom right, transparent 46%, var(--gold) 47% 53%, transparent 54%) top / 100% 60% no-repeat, linear-gradient(to bottom left, transparent 46%, var(--gold) 47% 53%, transparent 54%) top / 100% 60% no-repeat; }
.profile-mail:hover { color: var(--gold-hi); }
.radio { margin: 0; padding: 18px 22px 20px; background: #15171a; border: 1px solid rgb(var(--blue-rgb) / .45); border-radius: 6px; }
.radio figcaption { display: flex; align-items: center; gap: 12px; font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 2px; height: 40%; background: var(--blue); border-radius: 1px; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 50% { height: 100%; } }
.radio blockquote { margin: 10px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: var(--ivory); }

/* ---------- Join the pit wall ---------- */
.pitwall { overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.pitwall-rings { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); translate: -50% -50%; opacity: .45; pointer-events: none; animation: spin 120s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.pitwall-inner { position: relative; max-width: 760px; margin: 0 auto; }
.pitwall h2 { font-weight: 900; font-size: clamp(48px, 8vw, 96px); line-height: .95; }
.pitwall .quote { margin-bottom: 36px; }
.pitwall-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--panel); border-top: 1px solid var(--gold); border-bottom: 3px solid var(--blue); }
.pitwall-links a { display: grid; gap: 6px; padding: 20px; text-decoration: none; font: 500 17px var(--label); color: var(--ink); overflow-wrap: anywhere; transition: background .3s; }
.pitwall-links a + a { border-left: 1px solid var(--line); }
.pitwall-links a:hover { background: rgb(var(--gold-rgb) / .1); }
.pitwall-links span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-filters { margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filters button { background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 40px; font: 500 14px var(--text); cursor: pointer; }
.gallery-filters button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 1px solid rgb(var(--gold-rgb) / .25); border-radius: 6px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.tile:hover img { transform: scale(1.05); }
.tile-cap { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 40px 16px 14px; text-align: left; background: linear-gradient(transparent, rgb(var(--bg-rgb) / .92)); }
.tile-cap b { font: 700 italic 17px var(--race); color: var(--ivory); letter-spacing: .02em; }
.tile-cap small { font-size: 12px; color: var(--muted); }
.gallery-note { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgba(5,5,5,.94); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 60px 0 24px; max-height: 100svh; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 130px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lightbox figcaption { font: 600 italic 16px var(--race); color: var(--muted); letter-spacing: .04em; }
.lb-prev, .lb-next { justify-self: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(var(--ink-rgb) / .3); background: rgb(var(--bg-rgb) / .6); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { position: absolute; top: 16px; right: 16px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(var(--ink-rgb) / .3); background: none; color: var(--ink); font: 500 14px var(--text); cursor: pointer; }

/* ---------- Footer (multi-page) ---------- */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.foot-brand img { width: 140px; height: auto; margin-bottom: 14px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 14px; }
.foot-nav { display: grid; gap: 10px; }
.foot-nav a, .foot-contact a { color: var(--ink); text-decoration: none; width: fit-content; border-bottom: 1px solid transparent; }
.foot-nav a:hover, .foot-contact a:hover { border-color: var(--gold); }
.foot-contact { display: grid; gap: 10px; }
.foot-contact .kicker { margin-bottom: 4px; }
.foot-contact a { overflow-wrap: anywhere; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stops { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 1020px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .car-teaser-grid, .physics-grid, .profile, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .profile:nth-child(even) .profile-photo { order: 0; }
  .profile-photo { max-width: 520px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; z-index: 2; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .lightbox figure { padding: 70px 12px 90px; }
  .lightbox img { max-height: calc(100svh - 180px); }
  /* phone order: title → instructions → game → attempts */
  .game-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .game-copy { display: contents; }
  .game-panel { order: 1; margin-bottom: 22px; }
  .laps { order: 2; }
  .how { margin-bottom: 26px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; }
  .story-grid, .log-section, .propel-grid, .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .log-side { position: static; }
  .mark { max-width: 420px; }
    .foot-links { justify-content: center; }
}
@media (max-width: 600px) {
  .views, .details { grid-template-columns: minmax(0, 1fr); }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .pitwall-links { grid-template-columns: minmax(0, 1fr); }
  .pitwall-links a + a { border-left: 0; border-top: 1px solid var(--line); }
  .equation dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .classified-badge { padding: 12px 18px 12px 14px; }
  .stage { top: 36%; width: min(92vw, 52vh); }
  .rings { width: 165%; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .photo { aspect-ratio: 4 / 3; }
  .photo img { object-position: 50% 30%; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer, .slots { padding: 22px; }
  .stat { padding-right: 12px; margin-right: 12px; }
  /* the track turns vertical: the car drives down the left edge */
  .track { padding-left: 46px; }
  .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; height: auto; margin: 0; }
  .rail::before, .rail-fill { left: 19px; right: auto; top: 0; bottom: auto; width: 2px; height: 100%; background: repeating-linear-gradient(180deg, rgb(var(--ink-rgb) / .25) 0 18px, transparent 18px 30px); }
  .rail-fill { height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--blue), var(--cyan)); }
  .car { left: -36px; bottom: auto; top: calc(var(--p) * (100% - 40px)); width: 110px; transform: rotate(90deg); transform-origin: 50% 50%; }
  .stops { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stops li { opacity: 1; transform: none; }
}

/* ---------- Partners: placement maps, partner types, contacts ---------- */
.ptabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding-bottom: 2px; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs [role="tab"] { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: 500 15px var(--text); cursor: pointer; transition: all .2s; }
.ptabs [role="tab"]:hover { color: var(--ink); border-color: rgb(var(--gold-rgb) / .5); }
.ptabs [role="tab"][aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.ppanel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ppanel[hidden] { display: none; }
.ppanel:not([hidden]):has(> .pcards) { display: block; }
.pmap { margin: 0; }
.pm-label { fill: var(--muted); font: 600 15px var(--label); letter-spacing: .12em; text-transform: uppercase; }
.pm-c { text-anchor: middle; }
.pm-ground { stroke: rgb(var(--ink-rgb) / .18); }
.pm-body { fill: rgb(var(--ink-rgb) / .07); stroke: var(--gold); stroke-width: 2; }
.pm-part { fill: rgb(var(--ink-rgb) / .12); stroke: rgb(var(--gold-rgb) / .6); stroke-width: 1.5; }
.pm-gold { fill: var(--gold); }
.pm-trim { fill: none; stroke: rgb(var(--gold-rgb) / .45); stroke-width: 2; }
.pm-wheel { fill: var(--bg); stroke: var(--ink); stroke-width: 3; }
.pm-wheel-top { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.pm-screen { fill: rgb(var(--cyan-rgb) / .15); stroke: var(--cyan); stroke-width: 1.5; }
.spot.lit rect { fill: rgb(var(--gold-rgb) / .35); stroke-dasharray: none; stroke-width: 2.5; }
.spot-reserved rect { fill: rgb(var(--ink-rgb) / .05); stroke: var(--muted); stroke-dasharray: 3 4; animation: none; }
.pin { cursor: pointer; }
.pin circle { fill: var(--gold); stroke: var(--bg); stroke-width: 3; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.pin text { fill: var(--bg); font: 700 italic 24px var(--race); text-anchor: middle; pointer-events: none; }
.pin.lit circle { transform: scale(1.25); fill: var(--gold-hi); }
.pin-reserved { cursor: default; }
.pin-reserved circle { fill: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.plist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: background .2s; outline: none; }
.plist li::before { content: attr(data-spot); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--bg); font: 700 italic 15px var(--race); }
.plist li:not([data-spot])::before { content: "+"; background: none; border: 1px solid var(--line); color: var(--muted); }
.plist li.reserved::before { content: "R"; background: var(--muted); border: 0; color: var(--bg); }
.plist li:not([data-spot]) { cursor: default; }
.plist li.lit, .plist li[data-spot]:focus-visible { background: rgb(var(--gold-rgb) / .12); }
.plist b { font: 700 italic 16px var(--race); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-hi); }
.plist span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pcards, .ptypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.pcard, .ptype { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.pcard h3, .ptype h3 { font-size: 19px; margin: 0 0 8px; }
.pcard p, .ptype p:not(.kicker) { margin: 0; color: var(--muted); font-size: 14.5px; }
.ptype .kicker { margin-bottom: 10px; }
.ptype-lead { border-color: rgb(var(--gold-rgb) / .55); background: radial-gradient(ellipse at 20% 0%, rgb(var(--gold-rgb) / .14), transparent 70%), var(--card); }
.ptypes-band { padding-top: 0; }
.partners-contact { padding-top: 0; }
.contacts-head { margin-top: clamp(56px, 8vw, 96px); }
.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact { display: grid; align-content: start; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; transition: border-color .25s, transform .25s; }
.contact:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 1px solid rgb(var(--gold-rgb) / .5); }
.c-name { font: 700 italic 18px var(--race); text-transform: uppercase; letter-spacing: .03em; color: var(--ivory); }
.c-role { font-family: var(--label); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); line-height: 1.6; }
.c-about { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.c-mail { margin-top: auto; font-size: 14px; color: var(--gold-hi); overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 1000px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ppanel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contacts { grid-template-columns: minmax(0, 1fr); } .contact { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; } .contact img { grid-row: span 3; width: 56px; height: 56px; margin: 0; } .c-about, .c-mail { grid-column: 1 / -1; } }
