/* ZERO TO HERO · Season III */
:root {
  --bg: #0a0a0b;
  --bg2: #121214;
  --ink: #f3f1ec;
  --mute: #96948f;
  --line: rgba(243, 241, 236, .14);
  --red: #ff2b1c;
  --gut: clamp(18px, 4vw, 56px);
  --head: 68px;
  --d: 'Tektur', 'Geologica', system-ui, sans-serif;
  --f: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.out { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.red { color: var(--red); }

.kick {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 22px;
}
.kick::before { content: ''; width: 26px; height: 2px; background: var(--red); }
.kick--dark { color: rgba(10, 10, 11, .7); }
.kick--dark::before { background: var(--bg); }

.h2 {
  font-size: clamp(34px, 5.4vw, 84px);
  font-weight: 800; font-family: var(--d); font-style: italic;
  line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
  max-width: 16ch;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  font-weight: 600; font-size: 16px; letter-spacing: -.005em; line-height: 1.2; text-align: center;
  border: 1.5px solid transparent;
  transform: skewX(-8deg);
  transition: background .25s, color .25s, border-color .25s;
}
.btn > * { transform: skewX(8deg); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: skewX(8deg) translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn--full { width: 100%; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
}
.no-motion .loader { display: none; }
.loader__word {
  display: flex; font-size: clamp(64px, 17vw, 230px); font-weight: 900; font-family: var(--d); font-style: italic;
  line-height: .9; letter-spacing: -.04em; perspective: 900px;
}
.loader__word > span { display: block; }
.loader__flip { position: relative; }
.loader__flip i { display: block; font-style: inherit; backface-visibility: hidden; }
.loader__flip i:last-child { position: absolute; inset: 0; color: var(--red); transform: rotateX(-90deg); }
.loader__bar { width: min(320px, 60vw); height: 2px; background: var(--line); }
.loader__bar b { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.loader__num { font-size: 13px; letter-spacing: .14em; color: var(--mute); font-variant-numeric: tabular-nums; }
.loader__num b { color: var(--ink); font-weight: 500; }

/* ---------- header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gut);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.head.is-solid { background: rgba(10, 10, 11, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.head.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 900; font-family: var(--d); font-style: italic; font-size: 19px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.logo__to { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--mute); }
.logo__h { color: var(--red); }
.logo__img { display: block; height: 30px; width: auto; }
@media (min-width: 1000px) { .logo__img { height: 36px; } }
.foot__plate { display: block; width: min(240px, 100%); height: auto; margin-bottom: 14px; }
.logo sup { font-size: 9.5px; font-weight: 500; letter-spacing: .1em; color: var(--mute); font-family: var(--f); font-style: normal; margin-left: 4px; }
.nav { display: none; gap: 30px; font-size: 14.5px; font-weight: 400; }
.nav a { position: relative; padding: 6px 0; color: var(--mute); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-on { color: var(--ink); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.head__right { display: flex; align-items: center; gap: 22px; }
.powered { display: none; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .06em; color: var(--mute); transition: color .2s; }
.powered img { width: auto; height: 20px; opacity: .9; transition: opacity .2s; }
.powered:hover { color: var(--ink); }
.powered:hover img { opacity: 1; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (min-width: 1100px) { .powered { display: inline-flex; } }

/* ---------- side gauge ---------- */
.gauge {
  position: fixed; right: 16px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--mute);
  mix-blend-mode: difference;
}
.gauge span { writing-mode: vertical-rl; }
.gauge__track { width: 2px; height: 150px; background: rgba(243, 241, 236, .2); }
.gauge__track b { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleY(0); transform-origin: top; }
.gauge em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (min-width: 1280px) { .gauge { display: flex; } }
.no-motion .gauge { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: calc(var(--head) + 22px) var(--gut) 26px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 70% 60%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 70% 60%, #000 0%, transparent 68%);
}
.hero__top { position: relative; display: flex; align-items: center; gap: 14px; font-size: 13.5px; letter-spacing: .08em; }
.hero__season { background: var(--red); color: #fff; font-weight: 600; text-transform: uppercase; padding: 5px 12px; transform: skewX(-8deg); }
.hero__by { color: var(--mute); }
.hero__title {
  position: relative; z-index: 2; margin-top: clamp(14px, 3vh, 34px);
  font-size: clamp(74px, 20.5vw, 330px); font-weight: 900; font-family: var(--d); font-style: italic;
  line-height: .8; letter-spacing: -.05em; text-transform: uppercase;
}
.hero__zero { display: block; color: transparent; -webkit-text-stroke: clamp(1.5px, .22vw, 3px) var(--ink); will-change: transform; }
.hero__row { display: flex; align-items: baseline; gap: .08em; margin-top: .02em; }
.hero__to { font-size: .16em; font-weight: 500; letter-spacing: .1em; color: var(--mute); font-family: var(--f); font-style: normal; align-self: center; }
.hero__hero { color: var(--red); will-change: transform; }
.hero__car {
  position: relative; z-index: 3; width: min(100%, 900px); margin: clamp(-30px, -4vw, -10px) 0 0 auto; pointer-events: none;
}
.hero__foot { position: relative; z-index: 2; margin-top: auto; padding-top: 26px; display: grid; gap: 22px; }
.hero__lead { max-width: 44ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; padding-left: 6px; }

.season {
  position: relative; z-index: 2; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 16px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--mute);
}
.season__track { position: relative; height: 2px; background: var(--line); }
.season__track b { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.season__track i { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--red); transform: rotate(45deg); }
.season__now { grid-column: 1 / -1; color: var(--ink); font-weight: 500; }

@media (max-width: 899px) { .hero__title { font-size: 26vw; } }
@media (min-width: 900px) {
  .hero__car { position: absolute; right: 0; bottom: 150px; width: 58vw; max-width: 1040px; margin: 0; }
  .hero__foot { grid-template-columns: minmax(0, 44ch) auto; align-items: end; justify-content: space-between; }
  .season { grid-template-columns: auto 1fr auto auto; }
  .season__now { grid-column: auto; padding-left: 18px; border-left: 1px solid var(--line); }
}

/* ---------- car drawing ---------- */
.car { width: 100%; height: auto; overflow: visible; }
.car path, .car circle, .car line { vector-effect: non-scaling-stroke; }
.car__ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.car__ln--thin { stroke-width: 1; opacity: .55; }
.car__fill { fill: var(--red); fill-opacity: 0; stroke: none; }
.car__glass { fill: var(--bg); fill-opacity: 0; stroke: none; }
.car__ground { stroke: var(--line); stroke-width: 1; }
.car__dim { stroke: var(--mute); stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; }
.car__tyre { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.car__wing { fill: var(--bg2); }
.hero__car .car__wing { fill: var(--bg); }
.car__rim { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.car__spoke { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; opacity: 0; }
.car__hub { fill: var(--ink); }
.car__dyno { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.car__lamp { fill: var(--ink); fill-opacity: 0; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.car__tag { font-family: var(--f); font-size: 15px; font-weight: 500; letter-spacing: .12em; fill: var(--mute); }
.car__wheel { transform-box: fill-box; transform-origin: center; }
.car__arch { fill: none; }
.hero__car .car__fill { fill: var(--bg); fill-opacity: 1; }
.hero__car .car__arch { fill: var(--bg); }

/* ---------- story ---------- */
.story { padding-block: clamp(90px, 13vw, 190px); }
.story__big {
  font-size: clamp(30px, 5vw, 78px); font-weight: 700; font-family: var(--d); font-style: italic;
  line-height: 1.08; letter-spacing: -.03em; max-width: 21ch;
}
.story__big em { font-style: normal; color: var(--red); }
.story__big .w { opacity: .16; }
.no-motion .story__big .w { opacity: 1; }
.story__facts { margin-top: clamp(50px, 7vw, 100px); display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.fact b { font-size: 54px; font-weight: 900; font-family: var(--d); font-style: italic; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.fact p { color: var(--mute); max-width: 30ch; }
@media (min-width: 900px) {
  .story__facts { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .fact { grid-template-columns: 1fr; align-content: start; gap: 16px; padding: 28px 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
  .fact b { font-size: clamp(64px, 7vw, 110px); }
}

/* ---------- build ---------- */
.build { border-top: 1px solid var(--line); background: var(--bg2); }
.build__pin { padding: clamp(80px, 10vw, 120px) var(--gut); display: grid; gap: 34px; max-width: 1440px; margin-inline: auto; }
.build__title { font-size: clamp(30px, 4.2vw, 62px); font-weight: 800; font-family: var(--d); font-style: italic; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.build__title .out, .build__title .red { text-transform: uppercase; }
.build__stage { position: relative; }
.build__pct {
  position: absolute; left: 0; top: -6px; z-index: 0;
  font-size: clamp(60px, 15vw, 230px); font-weight: 900; font-family: var(--d); font-style: italic; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 236, .22); font-variant-numeric: tabular-nums;
}
.build__pct span { font-size: .4em; }
.build__car { position: relative; z-index: 1; padding-top: clamp(30px, 6vw, 70px); }
.build__steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.step__n { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--red); padding-top: 5px; }
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.step h3 span { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.step p { margin-top: 6px; color: var(--mute); font-size: 16px; max-width: 46ch; }
.step p > i { font-style: normal; }

@media (min-width: 1000px) {
  .build__pin {
    min-height: 100vh; padding-block: calc(var(--head) + 24px) 34px;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); grid-template-rows: auto 1fr; gap: 20px 56px; align-items: center;
  }
  .build__head { grid-column: 1 / -1; }
  .build__steps { align-self: center; }
  .motion .step { opacity: .32; transition: opacity .4s; position: relative; }
  .motion .step::before { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .motion .step.is-on { opacity: 1; }
  .motion .step.is-on::before { transform: scaleX(1); }
  .motion .step p { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease); }
  .motion .step p > i { font-style: normal; overflow: hidden; }
  .motion .step.is-on p { grid-template-rows: 1fr; margin-top: 6px; }
}

/* ---------- draw ---------- */
.draw { padding-block: clamp(90px, 12vw, 170px); border-top: 1px solid var(--line); }
.draw__head { display: grid; gap: 0; margin-bottom: clamp(40px, 6vw, 80px); }
.draw__sub { margin-top: 24px; max-width: 52ch; color: var(--mute); font-size: clamp(17px, 1.4vw, 20px); }
.draw__grid { display: grid; gap: 34px; }
.tickets { display: grid; gap: 16px; align-content: start; }
.ticket {
  position: relative; display: grid; grid-template-columns: 76px 1fr;
  background: var(--bg2); border: 1px solid var(--line);
  transition: border-color .3s;
}
.ticket:hover { border-color: rgba(243, 241, 236, .4); }
.ticket__stub { position: relative; display: grid; place-items: center; border-right: 2px dashed var(--line); }
.ticket__stub::before, .ticket__stub::after { content: ''; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket__stub::before { top: -11px; }
.ticket__stub::after { bottom: -11px; }
.ticket__stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 44px; font-weight: 900; font-family: var(--d); font-style: italic; letter-spacing: -.03em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.ticket__body { padding: 24px 22px 24px 26px; display: grid; gap: 10px; justify-items: start; }
.ticket__tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ticket h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.ticket p { color: var(--mute); font-size: 16px; max-width: 40ch; }
.ticket .btn { margin: 8px 0 0 5px; }
.ticket__state { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px !important; letter-spacing: .04em; }
.ticket__state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--mute); }
.ticket--free.is-in { border-color: var(--red); }
.ticket--free.is-in .ticket__stub span { color: var(--red); -webkit-text-stroke-color: var(--red); }
.ticket--free.is-in .ticket__state { color: var(--ink); }
.ticket--free.is-in .ticket__state::before { background: var(--red); border-color: var(--red); }
.tickets__note { font-size: 14.5px; color: var(--mute); }
.tickets__note a, .check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.entry { background: var(--ink); color: var(--bg); padding: clamp(24px, 3.4vw, 44px); align-self: start; }
.entry__form { display: grid; gap: 18px; }
.entry__form[hidden] { display: none; }
.entry__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; font-family: var(--d); font-style: italic; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(10, 10, 11, .65); }
.field input {
  width: 100%; height: 54px; padding: 0 14px; background: transparent; color: var(--bg);
  border: 0; border-bottom: 2px solid rgba(10, 10, 11, .25); border-radius: 0; font-size: 18px; font-weight: 400;
  transition: border-color .2s, background .2s;
}
.field input:focus { outline: 0; border-color: var(--bg); background: rgba(10, 10, 11, .05); }
.field__err { display: none; font-style: normal; font-size: 13.5px; font-weight: 500; color: #c1150a; }
.field.is-bad input { border-color: #c1150a; }
.field.is-bad .field__err { display: block; }
.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check i { width: 24px; height: 24px; border: 2px solid var(--bg); display: grid; place-items: center; transition: background .2s; }
.check i::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translateY(-1px) scale(0); transition: transform .2s; }
.check input:checked + i { background: var(--bg); }
.check input:checked + i::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 3px; }
.check.is-bad i { border-color: #c1150a; }
.check a { color: var(--bg); }
.entry__err { font-size: 14.5px; font-weight: 500; color: #c1150a; }
.entry__err:empty { display: none; }
.entry .btn--red:hover { background: var(--bg); color: var(--ink); }
.entry .btn--line { border-color: rgba(10, 10, 11, .3); color: var(--bg); }
.entry .btn--line:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.entry [disabled] { opacity: .6; pointer-events: none; }
.entry__done { display: grid; gap: 14px; justify-items: start; }
.entry__done[hidden] { display: none; }
.entry__done h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; font-family: var(--d); font-style: italic; letter-spacing: -.035em; line-height: 1; }
.entry__done p { max-width: 38ch; }
.entry__done .btn { margin-top: 10px; }
.entry__tick { width: 64px; height: 64px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.entry__demo { font-size: 14px; padding: 12px 14px; border: 1.5px dashed rgba(10, 10, 11, .4); }
@media (min-width: 1000px) {
  .draw__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 56px; align-items: start; }
  .entry { position: sticky; top: calc(var(--head) + 24px); }
}

/* ---------- carner ---------- */
.carner { position: relative; background: var(--red); color: var(--bg); overflow: hidden; }
.carner__in { padding-block: clamp(64px, 8vw, 120px) clamp(54px, 6vw, 90px); display: grid; gap: 36px; }
.carner__title { font-size: clamp(34px, 5.6vw, 88px); font-weight: 900; font-family: var(--d); font-style: italic; line-height: 1; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.carner__act { display: grid; gap: 18px; justify-items: start; }
.carner__act .btn { margin-left: 6px; max-width: calc(100% - 12px); padding-block: 12px; }
.code {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 2px 18px; text-align: left;
  padding: 14px 20px; border: 2px dashed var(--bg); color: var(--bg); transition: background .2s;
}
.code:hover { background: rgba(10, 10, 11, .1); }
.code__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.code b { grid-row: span 2; font-size: 46px; font-weight: 900; font-family: var(--d); font-style: italic; letter-spacing: -.02em; line-height: 1; }
.code__c { font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.carner__tape { border-top: 2px solid var(--bg); overflow: hidden; padding-block: 12px; }
.carner__tape > div { display: flex; width: max-content; gap: 34px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; will-change: transform; }
.carner__tape span::after { content: '///'; margin-left: 34px; opacity: .5; }
@media (min-width: 1000px) {
  .carner__in { grid-template-columns: minmax(0, 1.3fr) auto; align-items: end; gap: 60px; }
}

/* ---------- sponsors ---------- */
.spons { padding-block: clamp(90px, 12vw, 170px) clamp(70px, 9vw, 130px); }
.spons__head { margin-bottom: clamp(40px, 6vw, 80px); }
.tiers { display: grid; gap: 44px; }
.tier__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-family: var(--d); font-style: italic; letter-spacing: -.02em; line-height: 1.1; }
.tier__title small { font-size: 12.5px; font-weight: 400; color: var(--mute); letter-spacing: .06em; font-family: var(--f); font-style: normal; }
.tier__list { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sp { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sp__box {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: var(--box); padding: var(--pad);
  background: var(--bg2); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.sp__box::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
a.sp:hover .sp__box { border-color: rgba(243, 241, 236, .38); background: #17171a; }
a.sp:hover .sp__box::after { transform: scaleX(1); }
.sp__box--light { background: #fff; }
a.sp:hover .sp__box--light { background: #fff; }
.sp__logos { position: absolute; inset: var(--pad); display: flex; align-items: center; justify-content: center; gap: 8%; }
.sp__logos img { height: 100%; width: auto; max-width: 100%; min-width: 0; object-fit: contain; flex: 0 1 auto; }
.sp__name { font-size: var(--nm); font-weight: 800; font-family: var(--d); font-style: italic; letter-spacing: -.025em; line-height: 1.05; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.sp__box--light .sp__name { color: var(--bg); }
.sp__visual { position: absolute; right: 6px; bottom: 0; height: 86%; width: auto; }
.sp__meta { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.sp__meta b { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sp__meta b svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--red); stroke-width: 2.4; transition: transform .3s var(--ease); }
a.sp:hover .sp__meta b svg { transform: translate(2px, -2px); }
.sp__meta span { color: var(--mute); font-size: 13px; }

.tier--premium { --box: 150px; --pad: 26px; --nm: clamp(20px, 5.4vw, 34px); }
.tier--premium .tier__title { font-size: 30px; }
.tier--premium .sp__meta { font-size: 16px; }
.tier--gold { --box: 112px; --pad: 20px; --nm: clamp(17px, 4.4vw, 24px); }
.tier--gold .tier__title { font-size: 24px; }
.tier--silver { --box: 84px; --pad: 16px; --nm: clamp(15px, 3.6vw, 18px); }
.tier--silver .tier__title { font-size: 19px; }
.tier--bronze { --box: 60px; --pad: 12px; --nm: 14px; }
.tier--bronze .tier__title { font-size: 16px; }
.tier--bronze .tier__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 479px) {
  .tier--premium .tier__list { grid-template-columns: 1fr; }
}

/* ---------- a tier as a carousel (Gold) ---------- */
.spc { display: grid; gap: 18px; min-width: 0; }
.spc__track.tier__list {
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--cg)) / 2); gap: var(--cg); --cg: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.spc__track::-webkit-scrollbar { display: none; }
.spc__track > .sp { scroll-snap-align: start; }
.spc__bar { display: flex; align-items: center; gap: 12px; }
.spc__btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); color: var(--ink); transition: border-color .25s, background .25s, color .25s; }
.spc__btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.spc__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.spc__dots { display: flex; flex: 1; gap: 6px; }
.spc__dot { flex: 1; max-width: 36px; height: 20px; position: relative; }
.spc__dot::before { content: ''; position: absolute; inset: 9px 0; background: var(--line); transition: background .3s; }
.spc__dot[aria-current="true"]::before { background: var(--red); }
@media (max-width: 599px) {
  /* one card and a peek of the next, so it reads as swipeable */
  .spc__track.tier__list { grid-auto-columns: 78%; }
}
@media (min-width: 1000px) {
  .tiers { grid-template-columns: var(--cols); gap: 0; align-items: start; }
  .tier { padding-inline: 28px; border-left: 1px solid var(--line); }
  .tier:first-child { padding-left: 0; border-left: 0; }
  .tier:last-child { padding-right: 0; }
  .tier__list { grid-template-columns: 1fr; gap: 20px; }
  .tier--split .tier__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spc__track.tier__list { --cg: 20px; }
  .tier--bronze .tier__list { grid-template-columns: 1fr; }
  .tier--premium { --box: 208px; --pad: 40px; --nm: clamp(26px, 2.6vw, 40px); }
  .tier--premium .tier__title { font-size: 36px; }
  .tier--gold { --box: 128px; --pad: 24px; --nm: clamp(18px, 1.7vw, 25px); }
  .tier--gold .tier__title { font-size: 26px; }
  .tier--silver { --box: 92px; --pad: 18px; --nm: 17px; }
  .tier--bronze { --box: 60px; --nm: 14px; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(50px, 7vw, 90px) 26px; overflow: hidden; }
.foot__word { font-size: clamp(40px, 14.2vw, 270px); font-weight: 900; font-family: var(--d); font-style: italic; line-height: .85; letter-spacing: -.05em; white-space: nowrap; }
.foot__to { font-size: .2em; font-weight: 500; letter-spacing: .08em; color: var(--mute); font-family: var(--f); font-style: normal; vertical-align: middle; }
.foot__row { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 30px; }
.foot__col { display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot__k { font-weight: 700; }
.foot__col p:not(.foot__k) { color: var(--mute); }
.foot__col a { color: var(--mute); transition: color .2s; }
.foot__col a:hover { color: var(--ink); }
.foot__powered { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14.5px; }
.foot__powered img { width: auto; height: 36px; }
/* Phones: the credit stays, but quieter, so it does not compete with the series. */
@media (max-width: 699px) {
  .foot__powered { gap: 8px; font-size: 12px; color: var(--mute); }
  .foot__powered img { height: 20px; opacity: .7; }
}
.foot__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13.5px; color: var(--mute); }
.foot__base a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
@media (min-width: 800px) {
  .foot__row { grid-template-columns: 1fr 1fr auto; }
  .foot__col--end { justify-items: end; }
}

/* ---------- terms page ---------- */
.legal { padding: calc(var(--head) + 60px) var(--gut) 100px; max-width: 860px; margin-inline: auto; min-height: 80vh; }
.legal h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 900; font-family: var(--d); font-style: italic; letter-spacing: -.035em; line-height: 1; margin-bottom: 30px; }
.legal p { color: var(--mute); margin-bottom: 18px; max-width: 62ch; }
.legal .btn { margin: 20px 0 0 6px; }

/* ---------- motion helpers ---------- */
.motion [data-rise] { opacity: 0; transform: translateY(26px); }
/* line mask with room for the italic slant, accents and descenders, so no glyph is cut */
.ln { clip-path: inset(-.3em -.3em -.3em -.3em); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* display face on small headings and buttons */
.btn { font-family: var(--d); font-style: italic; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.btn--sm { font-size: 15px; }
.ticket h3, .step h3, .sp__meta b, .foot__k, .ticket__tag { font-family: var(--d); }
.step h3 span { font-family: var(--f); }

/* ---------- glitch ---------- */
.gl { position: relative; --g1: #00e5ff; --g2: var(--red); }
.gl--red { --g2: #fff; }
.gl--dark { --g1: #fff; --g2: #00e5ff; }
span.gl { display: inline-block; }
.hero__zero.gl { display: block; width: max-content; }
.motion .gl::before, .motion .gl::after {
  content: attr(data-gl); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; -webkit-text-stroke: 0; color: var(--g1);
}
.motion .gl::after { color: var(--g2); }
.motion .gl--out::before, .motion .gl--out::after { color: transparent; -webkit-text-stroke: 2px var(--g1); }
.motion .gl--out::after { -webkit-text-stroke-color: var(--g2); }
.motion .gl.is-gl::before { opacity: .9; animation: glA .46s steps(1) both; }
.motion .gl.is-gl::after { opacity: .9; animation: glB .46s steps(1) both; }
@keyframes glA {
  0% { clip-path: inset(8% 0 62% 0); transform: translate(-.05em, -.01em); }
  20% { clip-path: inset(54% 0 12% 0); transform: translate(.06em, .01em); }
  40% { clip-path: inset(30% 0 44% 0); transform: translate(-.08em, 0); }
  60% { clip-path: inset(76% 0 4% 0); transform: translate(.05em, 0); }
  80% { clip-path: inset(2% 0 80% 0); transform: translate(-.03em, 0); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes glB {
  0% { clip-path: inset(66% 0 10% 0); transform: translate(.06em, .01em); }
  20% { clip-path: inset(12% 0 70% 0); transform: translate(-.05em, 0); }
  40% { clip-path: inset(58% 0 20% 0); transform: translate(.08em, -.01em); }
  60% { clip-path: inset(20% 0 52% 0); transform: translate(-.06em, 0); }
  80% { clip-path: inset(84% 0 2% 0); transform: translate(.04em, 0); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
.motion .btn:hover { animation: btnGl .32s steps(1) 1; }
@keyframes btnGl {
  0% { clip-path: inset(0 0 58% 0); filter: drop-shadow(-5px 0 #00e5ff); }
  25% { clip-path: inset(42% 0 0 0); filter: drop-shadow(5px 0 #00e5ff); }
  50% { clip-path: inset(18% 0 30% 0); filter: drop-shadow(-3px 0 #fff); }
  75% { clip-path: inset(0 0 0 0); filter: drop-shadow(2px 0 #00e5ff); }
  100% { clip-path: none; filter: none; }
}
.motion a.sp:hover .sp__name { animation: nmGl .34s steps(1) 1; }
@keyframes nmGl {
  0% { text-shadow: -4px 0 #00e5ff, 4px 0 var(--red); transform: translateX(3px); }
  33% { text-shadow: 4px 0 #00e5ff, -4px 0 var(--red); transform: translateX(-3px) skewX(-12deg); }
  66% { text-shadow: -2px 0 #00e5ff, 2px 0 var(--red); transform: translateX(1px); }
  100% { text-shadow: none; transform: none; }
}

/* scanlines, cursor */
.scan { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255, 255, 255, .028) 2px 3px); }
.cur { position: fixed; left: 0; top: 0; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1.5px solid #fff; pointer-events: none; mix-blend-mode: difference; rotate: 45deg; opacity: 0; transition: width .25s, height .25s, margin .25s, background .25s; }
.cur.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255, 255, 255, .14); }
.no-motion .scan, .no-motion .cur { display: none; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* ticker */
.ticker { border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 26px); overflow: hidden; display: grid; gap: 4px; }
.ticker__row { display: flex; width: max-content; white-space: nowrap; will-change: transform; font-family: var(--d); font-style: italic; font-weight: 900; font-size: clamp(44px, 8.4vw, 132px); line-height: 1; letter-spacing: -.02em; }
.ticker__row span { padding-right: .35em; }
.ticker__row span::after { content: "///"; margin-left: .35em; color: var(--red); -webkit-text-stroke: 0; }
.ticker__row--out span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.no-motion .ticker { display: none; }

.sp__box, .ticket { will-change: transform; }

/* moving bands fade out at the screen edges instead of chopping letters */
.ticker, .carner__tape {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
@media (max-width: 899px) {
  .ticker__row { font-size: clamp(30px, 9vw, 64px); }
  .ticker { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
}

/* slanted display words: the italic overhang sits outside the text box, and phones clip it
   when the word is on its own layer (transform, filter). Padding keeps the whole glyph inside. */
.hero__zero, .hero__hero, .foot__word .gl, .logo .gl, .loader__word > span, .build__pct, .fact b, .code b, .ticket__stub span {
  padding: .12em .16em; margin: -.12em -.16em;
}
.motion .gl::before, .motion .gl::after { padding: inherit; box-sizing: border-box; }
.ticker__row span { padding-left: .12em; }
/* the H of the loader sits exactly on the Z (inside the padding added above) */
.loader__word > .loader__flip { padding: 0; margin: 0; }
.loader__flip i { padding: .12em .3em; margin: -.12em -.3em; }
.loader__flip i:last-child { inset: 0; }

/* ---------- sponsors at the very top of the hero ---------- */
.hero__bar { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.hero__spons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero__spons:empty { display: none; }
.hero__spons-k { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hsp {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 120px; padding: 0 16px;
  border: 1px solid var(--line); background: rgba(10, 10, 11, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--d); font-style: italic; font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  transition: border-color .25s, background .25s;
}
a.hsp:hover { border-color: var(--ink); background: rgba(243, 241, 236, .08); }
.hsp img { height: 26px; width: auto; max-width: 150px; object-fit: contain; }
.hsp--light { background: #fff; color: var(--bg); }
.hsp__all { font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); white-space: nowrap; }
.hsp__all:hover { color: var(--ink); }
@media (max-width: 599px) {
  .hero__spons { width: 100%; }
  .hero__spons-k { width: 100%; }
  /* two per row, and a long name wraps onto a second line instead of being cut */
  .hsp { flex: 1 1 calc(50% - 7px); min-width: 0; height: auto; min-height: 46px; padding: 8px 10px; font-size: 14px; line-height: 1.15; white-space: normal; text-align: center; }
  .hsp img { height: 22px; max-width: 100%; }
  .hsp__all { width: 100%; }
}
}

/* sponsors section now sits directly under the hero */
.spons { padding-block: clamp(56px, 7vw, 100px) clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }

/* ---------- hero with a photo ---------- */
/* ---------- photos of the car ---------- */
.shots { padding-block: clamp(70px, 9vw, 130px); border-top: 1px solid var(--line); }
.shots[hidden] { display: none; }
.shots__grid { margin-top: clamp(30px, 4vw, 56px); display: grid; gap: 12px; grid-template-columns: 1fr; }
.shot { position: relative; margin: 0; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); aspect-ratio: 3 / 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px; font-size: 14px; font-weight: 500; background: linear-gradient(0deg, rgba(10, 10, 11, .9), rgba(10, 10, 11, 0)); }
@media (min-width: 700px) {
  .shots__grid { grid-template-columns: repeat(2, 1fr); }
  .shot:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (min-width: 1100px) {
  .shots__grid { grid-template-columns: repeat(3, 1fr); }
  .shot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- hero with a full-screen photo ----------
   The picture fills the whole first screen. JS sizes .hero__frame to the photo's own 16:9 shape
   and slides it so the headlight stays in view; the glow pieces are placed in % of that frame,
   so they always sit exactly on the lamp. */
.hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); opacity: 0; transition: opacity .9s var(--ease); }
.hero--photo .hero__photo { opacity: 1; }
.hero__frame { position: absolute; left: 0; top: 0; }
.hero__frame img { display: block; width: 100%; height: 100%; }
.hero__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .82) 0%, rgba(10, 10, 11, .3) 16%, rgba(10, 10, 11, 0) 28%),
    linear-gradient(0deg, rgba(10, 10, 11, .98) 0%, rgba(10, 10, 11, .88) 18%, rgba(10, 10, 11, .4) 36%, rgba(10, 10, 11, 0) 52%);
}

/* the headlight: light added on top of the photo */
.lamp { position: absolute; pointer-events: none; mix-blend-mode: screen; opacity: 0; will-change: opacity; }
.lamp--halo { left: 30%; top: 20%; width: 68%; height: 52%; background: radial-gradient(ellipse at 50% 50%, rgba(214, 228, 255, .5) 0%, rgba(160, 190, 255, .16) 38%, rgba(160, 190, 255, 0) 68%); filter: blur(14px); }
.lamp--drl { left: 41%; top: 38.6%; width: 45%; height: 4.2%; transform: rotate(-7.2deg); background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 1) 0%, rgba(232, 240, 255, .7) 40%, rgba(232, 240, 255, 0) 72%); filter: blur(5px); }
.lamp--low { left: 43%; top: 58.6%; width: 28%; height: 2.6%; transform: rotate(6.5deg); background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .9) 0%, rgba(232, 240, 255, 0) 70%); filter: blur(5px); }
.lamp--lens { left: 70.4%; top: 38.5%; width: 9%; height: 15%; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .85) 0%, rgba(190, 215, 255, .3) 34%, rgba(190, 215, 255, 0) 68%); filter: blur(4px); }
.no-motion .lamp { opacity: .55; }

.hero--photo { min-height: 100svh; }
.hero--photo .hero__car, .hero--photo .hero__grid { display: none; }
.hero--photo .hero__bar, .hero--photo .hero__title, .hero--photo .hero__foot, .hero--photo .season { position: relative; z-index: 2; }
/* the title drops to one line so the car is not covered */
.hero--photo .hero__title {
  margin-top: auto; padding-top: 30px;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .12em;
  font-size: clamp(44px, 11.4vw, 200px); line-height: .82;
}
.hero--photo .hero__zero.gl { display: inline-block; width: auto; }
.hero--photo .hero__row { margin-top: 0; }
.hero--photo .hero__foot { margin-top: 0; padding-top: 18px; }
.hero--photo .season { margin-top: 22px; }
@media (max-width: 599px) {
  /* phones: the lamp shows in the upper part, the text sits on black below it */
  .hero__photo::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 11, .86) 0%, rgba(10, 10, 11, .25) 20%, rgba(10, 10, 11, 0) 32%),
      linear-gradient(0deg, rgba(10, 10, 11, 1) 0%, rgba(10, 10, 11, 1) 40%, rgba(10, 10, 11, 0) 60%);
  }
  .hero--photo .hero__title { font-size: 13.2vw; padding-top: 50vw; }
}
/* small labels over the photo stay readable on the bright reflections */
.hero--photo .hero__spons-k, .hero--photo .hsp__all, .hero--photo .hero__by, .hero--photo .hero__to { color: var(--ink); text-shadow: 0 1px 12px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .8); }
.hero--photo .hsp { background: rgba(10, 10, 11, .72); }

/* ---------- the headlight drawn as lines (hero intro) ----------
   An SVG laid exactly over the photo, in the photo's own coordinates (1000 wide). The outline
   of the lamp is sketched in the dark, then the light strip sweeps on and the photo takes over. */
.lampline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lampline path, .lampline ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* no non-scaling-stroke here: it makes the browser measure dashes in screen pixels, which breaks the draw-on */
.lampline__out { stroke: rgba(243, 241, 236, .72); stroke-width: 1; }
.lampline__drl { stroke: #fff; stroke-width: 5.5; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 16px rgba(170, 200, 255, .95)) drop-shadow(0 0 42px rgba(120, 160, 255, .6)); }
.lampline__drl--low { stroke-width: 3.2; opacity: .8; }
.no-motion .lampline { display: none; }

/* ---------- four rings, drawn in the dark before the headlight (hero intro) ---------- */
.rings { position: absolute; left: 50%; top: 44%; z-index: 1; width: min(52vw, 440px); height: auto; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.rings circle { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: butt; }
.no-motion .rings { display: none; }

/* ---------- build section: line art from the real side photo ---------- */
.car--art .car__lamp { stroke: none; }
.car--art .car__lamp--tail { fill: var(--red); }
.car--art .car__fill { fill: var(--red); }
.car--art .car__glass { fill: var(--bg2); }
.car--art .car__tyre { fill: var(--bg2); stroke: rgba(243, 241, 236, .5); stroke-width: 1.2; }
.car--art .car__rim { stroke-width: 1; }

/* ---------- mini game: 0 to 100 ---------- */
.game { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.game__sub { margin-top: 22px; max-width: 54ch; color: var(--mute); font-size: clamp(17px, 1.4vw, 20px); }
.game__box { margin-top: clamp(30px, 4vw, 56px); border: 1px solid var(--line); background: var(--bg2); padding: clamp(14px, 2vw, 26px); display: grid; gap: 18px; }
.game__stage { position: relative; height: clamp(250px, 34vw, 400px); overflow: hidden; background: linear-gradient(180deg, #050506 0%, #0d0d10 70%, #131316 100%); border: 1px solid var(--line); }
.game__lights { position: absolute; left: 50%; top: 14px; z-index: 3; display: flex; gap: 10px; transform: translateX(-50%); padding: 8px 12px; background: rgba(0, 0, 0, .6); border: 1px solid var(--line); }
.game__lights i { width: 18px; height: 18px; border-radius: 50%; background: #2a2a2e; transition: background .1s, box-shadow .1s; }
.game__lights i[data-on="red"] { background: var(--red); box-shadow: 0 0 16px var(--red); }
.game__lights i[data-on="green"] { background: #2ee66b; box-shadow: 0 0 18px #2ee66b; }
.game__hud { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 18px; pointer-events: none; }
.game__speed { display: flex; align-items: baseline; gap: 6px; font-family: var(--d); font-style: italic; font-weight: 900; line-height: .85; }
.game__speed b { font-size: clamp(54px, 9vw, 120px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 1.9ch; }
.game__speed span { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--mute); font-style: normal; }
.game__stat { display: grid; gap: 2px; text-align: right; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.game__stat b { font-family: var(--d); font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.game__stat b i { font-style: normal; }
.game__car { position: absolute; left: 3%; bottom: 20px; z-index: 1; width: min(62%, 560px); height: auto; will-change: transform; }
.game__road { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; border-top: 1px solid rgba(243, 241, 236, .35); background: repeating-linear-gradient(90deg, rgba(243, 241, 236, .5) 0 46px, transparent 46px 120px) 0 13px / 120px 3px repeat-x; }
.game__stage.is-limit .game__car { filter: drop-shadow(0 0 10px var(--red)); }
.game__rev { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.game__rev-k { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.game__rev-bar { position: relative; height: 26px; background: #1c1c20; border: 1px solid var(--line); }
.game__rev-zone { position: absolute; top: 0; bottom: 0; left: 75.4%; width: 21.3%; background: rgba(46, 230, 107, .55); }
.game__rev-red { position: absolute; top: 0; bottom: 0; left: 96.7%; right: 0; background: var(--red); }
.game__rev-bar b { position: absolute; top: -5px; bottom: -5px; left: 0; width: 4px; margin-left: -2px; background: var(--ink); box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.game__foot { display: grid; gap: 14px; align-items: center; }
.game__msg { min-height: 2.8em; font-size: 17px; font-weight: 500; }
.game__msg[data-tone="good"] { color: #5df08f; }
.game__msg[data-tone="bad"] { color: #ff7a70; }
.game__btn { width: 100%; min-height: 72px; font-size: 22px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.game[data-state="armed"] .game__btn { background: #2ee66b; color: #06220f; }
.game__cta { font-size: 16px; }
.game__cta[hidden] { display: none; }
.game__cta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.game__note { margin-top: 14px; font-size: 13.5px; color: var(--mute); }
.motion .game .btn:hover { animation: none; }
@media (min-width: 800px) {
  .game__foot { grid-template-columns: 1fr minmax(280px, 360px); }
}
@media (max-width: 699px) {
  /* phones: the lights move down beside the car so they never sit on the speed */
  .game__lights { left: auto; right: 12px; top: auto; bottom: 46px; transform: none; padding: 6px 9px; gap: 7px; }
  .game__lights i { width: 14px; height: 14px; }
  .game__car { width: 66%; }
}

/* ---------- the clean vector S3 ---------- */
.car__lamp--tail { stroke: var(--ink); }
.build__car .car__lamp--tail { fill: var(--red); }
.car__spoke { fill: none; }
.game__car { height: auto; }
.game__car svg { display: block; width: 100%; height: auto; overflow: visible; }
.game__car .car__spoke { opacity: 1; }
.game__car .car__dyno, .game__car .car__ground { display: none; }
.game__car .car__tyre { fill: #0d0d10; }
.game__car .car__ln--thin { opacity: .7; }
.game__car { bottom: 29px; }
/* start lights sit beside the road at every size, clear of the numbers */
.game__lights { left: auto; right: 14px; top: auto; bottom: 46px; transform: none; }
