:root {
  --bg: #0A0A0B;
  --ink: #ECECEF;
  --ink-soft: #9B9BA3;
  --line: rgba(236,236,239,.13);
  --accent: #E0203A;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: dark; } }
:root[data-theme="light"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font: 500 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.display, h1, h2 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.005em; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; display: block; }

/* ---------- intro: the drive-in ---------- */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; pointer-events: none; transition: opacity .9s var(--ease); }
body.is-intro .intro { pointer-events: auto; }
.intro.is-gone { opacity: 0; }
.intro__brand { position: absolute; left: 50%; top: 42%; translate: -50% -50%; margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(4rem, 16vw, 15rem); letter-spacing: .02em; color: rgba(236,236,239,.06); }
.intro__load { position: absolute; left: var(--gutter); bottom: clamp(28px, 6vh, 56px); margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; }
.intro__load small { font-size: .45em; color: var(--ink-soft); }
.intro__what { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-left: 18px; }
/* two headlight blooms approach from the vanishing point while the model streams in */
.intro__beams { position: absolute; left: 50%; top: 58%; width: 1px; height: 1px; }
.intro__beams i { position: absolute; top: 0; width: 18px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 30px 10px rgba(255,255,255,.55), 0 0 120px 40px rgba(210,225,255,.18); animation: approach 2.4s cubic-bezier(.5,0,.9,.6) infinite; }
.intro__beams i:first-child { --dx: -1; }
.intro__beams i:last-child { --dx: 1; }
@keyframes approach {
  0% { transform: translate(calc(var(--dx) * 6px), -40px) scale(.15); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 40vw), 30vh) scale(5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .intro__beams i { animation: none; opacity: .6; } }

/* ---------- callout pinned to the car ---------- */
.callout { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.callout__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(224,32,58,.25); }
.callout__line { position: absolute; left: 0; top: 0; width: 110px; height: 1px; background: var(--ink); opacity: .5; transform-origin: 0 0; transform: rotate(-28deg); }
.callout__label { position: absolute; left: 96px; top: -66px; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(10,10,11,.7); border: 1px solid var(--line); padding: 8px 10px; border-radius: 3px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); transition: background .4s, opacity .8s; }
body.is-intro .nav { opacity: 0; }
.nav.is-solid { background: rgba(10,10,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 italic 22px/1 var(--display); letter-spacing: .14em; }
.brand svg { width: 34px; height: 20px; fill: var(--accent); }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font: 500 14px/1 var(--text); text-decoration: none; padding: 10px 0; opacity: .78; }
.nav nav a:hover { opacity: 1; }
.pill { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }

main { position: relative; z-index: 2; }
body.is-intro main { visibility: hidden; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 0 var(--gutter) clamp(32px, 7vh, 72px); }
.ghost { position: fixed; z-index: -1; left: 50%; top: 40%; translate: -50% -50%; margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(8rem, 30vw, 34rem); line-height: .8; color: rgba(236,236,239,.045); white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.hero h1 { font-size: clamp(3.2rem, 7.6vw, 8.4rem); line-height: .84; margin: 0 0 20px; }
.lede { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--ink-soft); max-width: 42ch; margin: 0; }
.hero__copy, .hero__aside, .ghost { transition: opacity .8s var(--ease), transform .8s var(--ease); }
body.is-driving .hero__copy, body.is-driving .hero__aside, body.is-driving .ghost, body.is-driving .nav { opacity: 0; }
body.is-driving .hero__copy { transform: translateY(20px); }
.hero__aside { display: grid; gap: 8px; justify-items: end; text-align: right; }

/* ---------- pins ---------- */
.pin { height: var(--span, 200vh); position: relative; }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
[data-show] { opacity: 0; will-change: opacity, transform; }
.turn__notes { list-style: none; margin: 0; padding: 0; }
.turn__notes li { position: absolute; left: var(--gutter); bottom: clamp(44px, 11vh, 110px); max-width: 34rem; }
.turn__notes h2 { font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: .9; margin: 12px 0 0; }
.ticks { position: absolute; right: var(--gutter); bottom: clamp(52px, 12vh, 120px); display: flex; gap: 8px; }
.ticks i { display: block; width: 28px; height: 2px; background: var(--line); transition: background .3s, width .3s; }
.ticks i.on { background: var(--accent); width: 46px; }
.cabin__copy { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; max-width: 26rem; text-align: right; }
.cabin__copy h2 { font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .86; margin: 0 0 18px; }
.cabin__copy p:last-child { color: var(--ink-soft); line-height: 1.6; margin: 0 0 0 auto; max-width: 34ch; }

/* ---------- paint ---------- */
.paint { height: 200vh; position: relative; }
.paint__stage { position: sticky; top: 0; height: 100vh; height: 100svh; cursor: grab; touch-action: pan-y; outline: none; }
.paint__stage:active { cursor: grabbing; }
.paint__stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; }
.paint__copy { position: absolute; left: var(--gutter); top: clamp(96px, 15vh, 150px); }
.paint__copy h2 { font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .86; margin: 0 0 14px; }
.paint__copy p { margin: 0; color: var(--ink-soft); max-width: 32ch; line-height: 1.55; }
.paint__bar { position: absolute; left: 50%; bottom: clamp(28px, 6vh, 64px); translate: -50% 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.swatches { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(20,20,22,.7); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.swatches button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 7px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink); font: 500 14px/1 var(--text); cursor: pointer; }
.swatches button i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.swatches button[aria-checked="true"] { background: rgba(236,236,239,.1); border-color: var(--line); }
.launch { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 8px; border-radius: 999px; border: 1px solid rgba(224,32,58,.6); background: rgba(224,32,58,.12); color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.launch__ring { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--rev, 0) * 360deg), rgba(236,236,239,.12) 0); display: grid; place-items: center; }
.launch__ring::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: #141416; }
.launch kbd { font: 500 10px/1 var(--mono); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }
.launch[aria-pressed="true"] { background: rgba(224,32,58,.3); }

/* ---------- spec ---------- */
.spec { position: relative; padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px); background: linear-gradient(180deg, transparent, rgba(10,10,11,.9) 18%, rgba(10,10,11,.96)); }
.spec__inner { max-width: 1180px; }
.spec h2 { font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .86; margin: 0 0 24px; }
.spec__lede { color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 54ch; margin: 0 0 56px; }
.spec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; max-width: 62%; }
.spec__grid div { border-top: 1px solid var(--line); padding: 18px 0 26px; }
.spec__grid dt { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.spec__grid dd { margin: 0; font-size: 16px; line-height: 1.45; }

/* ---------- finale ---------- */
.finale { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--gutter) 28px; }
.finale__word { margin: 0; align-self: start; padding-top: 4vh; font-size: clamp(4.4rem, 13vw, 15rem); line-height: .8; }
.finale__word em { color: var(--accent); font-style: italic; }
.finale__end { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; }
.cta { height: 54px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ink); color: #0A0A0B; font: 600 15px/1 var(--text); cursor: pointer; transition: transform .3s var(--ease); }
.cta:hover { transform: translateY(-2px); }
.legal { margin: 0; justify-self: end; max-width: 70ch; text-align: right; font: 400 11px/1.65 var(--mono); color: var(--ink-soft); }
.noscript { position: fixed; inset: auto 0 0 0; z-index: 30; padding: 16px; background: #111; color: #fff; text-align: center; }

@media (max-width: 760px) {
  .nav { padding: 14px 20px; }
  .nav nav { display: none; }
  .pill { font-size: 10px; padding: 8px 10px; }
  .hero { grid-template-columns: 1fr; padding: 0 20px 32px; }
  .hero h1 { font-size: 3.4rem; }
  .hero__aside { display: none; }
  .turn__notes li { left: 20px; right: 20px; bottom: 44px; }
  .turn__notes h2 { font-size: 2.3rem; }
  .ticks { right: 20px; top: 80px; bottom: auto; }
  .cabin__copy { left: 20px; right: 20px; top: auto; bottom: 40px; translate: 0 0; text-align: left; }
  .cabin__copy h2 { font-size: 2.8rem; }
  .cabin__copy p:last-child { margin: 0; }
  .paint__copy { left: 20px; right: 20px; top: 76px; }
  .paint__copy h2 { font-size: 2.6rem; }
  .paint__bar { bottom: max(18px, env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  .swatches button { padding: 0 10px 0 6px; font-size: 13px; }
  .swatches button span { display: none; }
  .callout__line { width: 60px; } .callout__label { left: 50px; top: -44px; font-size: 10px; }
  .spec__grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .finale__word { font-size: 24vw; }
  .finale__end { grid-template-columns: 1fr; gap: 18px; }
  .legal { justify-self: start; text-align: left; }
  .intro__what { display: block; margin: 8px 0 0; }
  .intro__load { flex-wrap: wrap; }
}
