:root {
  --black: #040405;
  --panel: #09090b;
  --silver: #cfd2d6;
  --grey: #7a7f86;
  --dim: #3a3e44;
  --line: rgba(217, 219, 222, 0.10);
  --tan: #b89a72;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--black);
}
body {
  background: var(--black);
  color: var(--silver);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  background: linear-gradient(to bottom, rgba(10,11,13,0.75), rgba(10,11,13,0));
}
.site-header .logo img { height: 22px; width: auto; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.site-nav a, .caps {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--grey); font-weight: 500;
}
.site-nav a { transition: color .3s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--silver); }

/* ---------- Snap panels ---------- */
.panel {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}

.hairline {
  height: 1px; width: 100%;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---------- Hero ---------- */
.hero { padding: 0; align-items: flex-end; }
.film-wrap { position: absolute; inset: 0; will-change: opacity, transform; }
.film-wrap > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Rewind frames and the held final still sit over the video */
.film-wrap .still { opacity: 0; pointer-events: none; }
.film-wrap .still.show { opacity: 1; }
/* Soft edges so the film melts into the page instead of ending on a hard line */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--black) 0%, rgba(4,4,5,0.9) 16%, rgba(4,4,5,0.45) 36%, rgba(4,4,5,0.15) 60%),
    linear-gradient(to bottom, rgba(4,4,5,0.75) 0%, rgba(4,4,5,0) 22%),
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(4,4,5,0) 50%, rgba(4,4,5,0.75) 100%);
}
.hero-text { will-change: opacity, transform; }
.hero-side { display: flex; align-items: center; gap: 28px; }
.hero-meta { display: flex; align-items: center; gap: 12px; }
.hero-meta .flag { width: 22px; height: 11px; display: block; }

/* Writing only appears once the film settles on its final shot */
.hero-title, .hero-meta, .hero .scroll-cue {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease;
}
.hero.held .hero-title, .hero.held .hero-meta { opacity: 1; transform: none; filter: none; }
.hero.held .hero-meta { transition-delay: .25s; }
.hero.held .scroll-cue { opacity: 1; filter: none; transition-delay: .8s; animation: cue 2.4s ease-in-out .8s infinite; }
.skip-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
  opacity: 0; transition: opacity 1s ease; color: var(--dim);
}
.hero.playing .skip-hint { opacity: 1; transition-delay: 2.5s; }
.hero.held .skip-hint { opacity: 0; transition-delay: 0s; }
.locked { overflow: hidden; }
.hero-top {
  position: absolute; z-index: 25; left: 50%; top: 32px; transform: translateX(-50%);
  color: var(--silver); white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: 0.34em;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero.playing .hero-top { opacity: 1; transition-delay: 1.2s; }
.hero.held .hero-top { opacity: 0; transition-delay: 0s; }
/* Until the visitor clicks, the pill only offers restart + a pulsing prompt */
.sound .prompt { display: none; padding: 0 14px 0 4px; color: var(--silver); white-space: nowrap; }
.sound.blocked .prompt { display: inline; animation: haze 2.4s ease-in-out infinite; }
.sound.blocked .vol, .sound.blocked .mute { display: none; }
.sound.blocked { border-color: rgba(217,219,222,.35); animation: hazeBox 2.4s ease-in-out infinite; }
@keyframes haze {
  0%,100% { opacity: .65; text-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,.75), 0 0 22px rgba(255,255,255,.35); }
}
@keyframes hazeBox {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); background-color: rgba(4,4,5,.35); }
  50% { box-shadow: 0 0 22px 2px rgba(255,255,255,.14); background-color: rgba(255,255,255,.06); }
}
/* Volume and mute slide in once sound is allowed */
.sound.unlocked .vol, .sound.unlocked .mute { animation: controlsIn .7s cubic-bezier(.2,.7,.2,1) both; }
.sound.unlocked .mute { animation-delay: .08s; }
@keyframes controlsIn { from { opacity: 0; transform: translateX(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 760px) { .vol { width: 64px; } .hero-side { flex-wrap: wrap; gap: 12px; } .sound .prompt { font-size: 10px; } }
@media (max-width: 760px) { .hero-top { top: 64px; } }
.hero-text {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) 56px;
}
.hero-text h1 {
  font-weight: 200; font-size: clamp(34px, 5.5vw, 80px);
  letter-spacing: 0.02em; line-height: 1; margin-top: 14px;
}
/* Oval controls bottom right */
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 44px;
  background: rgba(4,4,5,0.35); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 18px; color: var(--grey);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s, opacity 1s ease, transform 1s ease;
}
.pill:hover { color: var(--silver); border-color: rgba(217,219,222,.35); }
.sound { padding: 0 6px 0 18px; }
.sound .mute {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
}
.sound .slash { opacity: 0; transition: opacity .25s; }
.sound .waves { transition: opacity .25s; }
.sound:not(.on) .slash { opacity: 1; }
.sound:not(.on) .waves { opacity: 0; }
.sound.on { color: var(--silver); }

/* Volume slider: thin silver line, small round thumb */
.vol {
  -webkit-appearance: none; appearance: none; width: 90px; height: 20px;
  background: transparent; cursor: pointer; --fill: 100%;
}
.vol::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(to right, var(--silver) var(--fill), rgba(217,219,222,.18) var(--fill));
}
.vol::-moz-range-track { height: 2px; background: rgba(217,219,222,.18); }
.vol::-moz-range-progress { height: 2px; background: var(--silver); }
.vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4.5px;
  border-radius: 50%; background: var(--silver); border: 0;
}
.vol::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--silver); border: 0; }

.sound .replay {
  width: 34px; height: 34px; display: grid; place-items: center; margin-right: 4px;
  background: none; border: 0; color: var(--grey); cursor: pointer; border-radius: 50%;
  transition: color .3s, transform .3s;
}
.sound .replay:hover { color: var(--silver); transform: rotate(-40deg); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 1px; height: 28px; background: var(--grey);
}
@keyframes cue { 0%,100% { transform: translate(-50%, 0); opacity: .2 } 50% { transform: translate(-50%, 8px); opacity: .7 } }

/* ---------- Build story ---------- */
.story .inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.story h2 {
  font-weight: 200; font-size: clamp(30px, 4vw, 56px); line-height: 1.15;
  max-width: 18ch; margin: 18px 0 32px;
}
.story p { color: var(--grey); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; max-width: 58ch; }
.specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 64px;
}
.specs div { padding: 24px 0; border-top: 1px solid var(--line); }
.specs div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.specs b { display: block; font-weight: 300; font-size: clamp(20px, 2vw, 28px); color: var(--silver); margin-top: 10px; }

/* ---------- Feature panels ---------- */
.feature { padding-left: 0; padding-right: 0; }
.feature .inner {
  width: 100%; display: grid; grid-template-columns: 1.6fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter);
}
.feature.flip .inner { grid-template-columns: 1fr 1.6fr; }
.feature.flip .media { order: 2; }
.media {
  aspect-ratio: 16 / 10; width: 100%;
  background: radial-gradient(ellipse at 50% 60%, #111215 0%, var(--panel) 60%, var(--black) 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .placeholder { text-align: center; }
.media .placeholder span { display: block; margin-top: 8px; color: var(--dim); font-size: 12px; letter-spacing: .1em; }
.feature .num { color: var(--dim); font-size: 11px; letter-spacing: .32em; }
.feature h3 { font-weight: 200; font-size: clamp(28px, 3vw, 44px); margin: 16px 0 20px; line-height: 1.1; }
.feature p { color: var(--grey); line-height: 1.7; max-width: 40ch; }

/* ---------- Closing panel ---------- */
.closing { flex-direction: column; justify-content: center; text-align: center; }
.closing img { height: clamp(36px, 6vw, 72px); width: auto; margin: 0 auto 40px; }
.closing p { color: var(--grey); max-width: 44ch; margin: 0 auto 40px; line-height: 1.7; }
.button {
  display: inline-block; border: 1px solid rgba(217,219,222,.35); border-radius: 999px;
  padding: 16px 34px; transition: background .3s, color .3s;
}
.button:hover { background: var(--silver); color: var(--black); }
.site-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
}

/* ---------- Plain pages ---------- */
.page .inner { max-width: 1000px; margin: 0 auto; width: 100%; }
.page h1 { font-weight: 200; font-size: clamp(36px, 5vw, 68px); margin: 18px 0 32px; line-height: 1.1; }
.page p { color: var(--grey); line-height: 1.8; max-width: 60ch; margin-bottom: 20px; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.contact-grid dt { margin-bottom: 8px; }
.contact-grid dd { margin-bottom: 28px; font-size: 18px; }
form label { display: block; margin-bottom: 24px; }
form input, form textarea {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--silver); font: inherit; font-size: 16px; padding: 10px 0;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--silver); }
form button { background: none; color: var(--silver); cursor: pointer; font: inherit; }

/* ---------- About: one screen with tabs ---------- */
.about .about-grid {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.about-side { position: relative; }
.about-tabs { display: flex; flex-direction: column; margin: 28px 0 44px; border-left: 1px solid var(--line); }
.about-tabs button {
  position: relative; display: flex; align-items: baseline; gap: 16px; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 16px 0 16px 22px;
  color: var(--grey); font: inherit; font-size: 15px; transition: color .4s;
}
.about-tabs button::before {
  content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 0;
  background: var(--silver); transform: translateY(-50%); transition: height .5s cubic-bezier(.2,.7,.2,1);
}
.about-tabs button:hover { color: var(--silver); }
.about-tabs button[aria-selected="true"] { color: var(--silver); }
.about-tabs button[aria-selected="true"]::before { height: 60%; }
.about-tabs .n { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.about-tabs button[aria-selected="true"] .n { color: var(--grey); }

/* All panes share one spot so switching never jumps the layout */
.about-panes { display: grid; }
.pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); filter: blur(4px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease, visibility 0s .6s; }
.pane.active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .1s, .1s, .1s, 0s; }
.pane h1 { font-weight: 200; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; margin-bottom: 28px; }
.pane p { color: var(--grey); line-height: 1.75; max-width: 62ch; margin-bottom: 18px; font-size: 16px; }
.pane p:first-of-type { color: var(--silver); }
.pane .about-flag { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--grey); font-size: 11px; }
.pane .about-flag .flag { width: 22px; height: 11px; display: block; }
.pane .about-flag + p { color: var(--silver); }

@media (max-width: 760px) {
  .about .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-tabs { flex-direction: row; border-left: 0; border-bottom: 1px solid var(--line); margin: 18px 0 0; overflow-x: auto; scrollbar-width: none; }
  .about-tabs::-webkit-scrollbar { display: none; }
  .about-tabs button { padding: 12px 14px 12px 0; flex-direction: column; gap: 4px; font-size: 13px; white-space: nowrap; }
  .about-tabs button::before { left: 0; top: auto; bottom: -1px; width: 0; height: 1px; transform: none; transition: width .5s; }
  .about-tabs button[aria-selected="true"]::before { width: calc(100% - 14px); height: 1px; }
  .about-side .about-cta { display: none; }
}

/* ---------- Opening intro ---------- */
.intro { position: fixed; inset: 0; z-index: 50; background: var(--black); }
.intro-meta {
  position: absolute; left: 0; right: 0; top: 60%;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  opacity: 0; color: var(--grey);
}
.intro-meta .flag { width: 24px; height: 12px; display: block; }
.intro-meta .dot { color: var(--dim); }
.intro-cue {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--grey); cursor: pointer; opacity: 0;
}
.intro-cue svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(6px); opacity: 1 } }
@media (max-width: 760px) {
  .intro-meta { flex-wrap: wrap; gap: 10px; padding: 0 16px; font-size: 10px; letter-spacing: .24em; }
}
.intro-logo {
  position: fixed; z-index: 51; left: 0; top: 0;
  width: min(62vw, 620px); aspect-ratio: 1180 / 190;
  transform-origin: 0 0; pointer-events: none;
}
.intro-logo img { width: 100%; height: 100%; opacity: 0; }
.intro-logo .shine {
  position: absolute; inset: 0;
  -webkit-mask: url(../assets/runner-wordmark.png) center / 100% 100% no-repeat;
          mask: url(../assets/runner-wordmark.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.95) 50%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0;
  opacity: 0;
}
.intro-running .site-header .logo { opacity: 0; }
.intro-done .intro, .intro-done .intro-logo { display: none; }

/* JS drives the snapping on desktop, so turn the browser's hard snap off there */
html.js-snap { scroll-snap-type: none; scroll-behavior: auto; }

/* ---------- Reveal on snap ---------- */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease; }
.in .reveal { opacity: 1; transform: none; filter: none; }
.in .reveal:nth-child(2) { transition-delay: .12s; }
.in .reveal:nth-child(3) { transition-delay: .24s; }
.in .reveal:nth-child(4) { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .site-header { padding: 20px 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { letter-spacing: .2em; font-size: 10px; }
  .site-header .logo img { height: 16px; }
  .hero-text { flex-direction: column; align-items: flex-start; padding: 0 16px 64px; }
  .hero-side { width: 100%; justify-content: space-between; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature .inner, .feature.flip .inner { grid-template-columns: 1fr; padding: 0 16px; }
  .feature.flip .media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel { padding-left: 16px; padding-right: 16px; }
  .feature { padding-left: 0; padding-right: 0; }
}

/* ---------- Final frame callouts: lines off the car to labelled pills ---------- */
.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callout-lines line {
  stroke: rgba(230,232,235,.55); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .3s, stroke-dashoffset .55s cubic-bezier(.5,0,.2,1);
}
.callout-lines circle { fill: var(--silver); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .4s; }
.callout-lines circle.ring { fill: none; stroke: var(--silver); stroke-width: 1; }
.callout {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; height: 34px; padding: 0 18px; white-space: nowrap;
  border: 1px solid rgba(217,219,222,.5); border-radius: 999px; color: var(--silver);
  background: rgba(4,4,5,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-decoration: none;
  opacity: 0; filter: blur(4px); pointer-events: none;
  transition: opacity .45s ease, filter .45s ease, color .3s, border-color .3s, background .3s, box-shadow .3s;
}
.callout::after { content: ''; position: absolute; inset: -6px; } /* bigger click area */
.callout:hover, .callout:focus-visible, .callout.hot {
  color: #fff; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.08);
  box-shadow: 0 0 18px rgba(255,255,255,.18); outline: none;
}
.callout-lines line.hot { stroke: #fff; }
.explore-title {
  position: absolute; left: 50%; top: 32px; transform: translate(-50%, 8px); text-align: center;
  opacity: 0; filter: blur(6px); transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}
.explore-title span { display: block; color: var(--silver); font-size: 14px; font-weight: 700; letter-spacing: .34em; }
.explore-title small { display: block; margin-top: 10px; color: var(--grey); font-size: 10px; }

/* Shown once the film holds: lines draw out from the car, then the pills appear */
.hero.held .callout-lines line { stroke-dashoffset: 0; transition-delay: 0s, calc(.15s + var(--i) * .06s); }
.hero.held .callout-lines circle { opacity: 1; transition-delay: calc(.05s + var(--i) * .06s); }
.hero.held .callout-lines circle.ring { animation: ping 2.8s ease-out calc(1.4s + var(--i) * .2s) infinite; opacity: 0; }
.hero.held .callout { opacity: 1; filter: none; pointer-events: auto; transition-delay: calc(.45s + var(--i) * .06s), calc(.45s + var(--i) * .06s), 0s, 0s, 0s, 0s, 0s, 0s; }
.hero.held .explore-title { opacity: 1; filter: none; transform: translate(-50%, 0); transition-delay: .1s; }
@keyframes ping { 0% { opacity: .7; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(3.2); } }

/* Phones: the car is cropped, so drop the lines and list the pills under the title */
@media (max-width: 760px) {
  .explore-title { top: 64px; }
  .callout-lines { display: none; }
  .callouts { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 8px; padding: 128px 16px 0; }
  .callout { position: relative; transform: none !important; left: auto !important; top: auto !important; height: 36px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .callout-lines line { transition: none; } .hero.held .callout-lines circle.ring { animation: none; }
}

/* ---------- Our process: timeline + what you can spec ---------- */
.process-inner { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; gap: clamp(36px, 6vh, 72px); }
.process-head h2 { font-weight: 200; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; margin-top: 18px; max-width: 18ch; }
.timeline { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
/* the line runs through the dots and draws across as the screen arrives */
.timeline::before, .timeline::after { content: ''; position: absolute; left: 4px; right: 0; top: 4px; height: 1px; background: var(--line); }
.timeline::after { background: linear-gradient(to right, var(--silver), rgba(207,210,214,.25)); transform: scaleX(0); transform-origin: left;
  transition: transform 2.2s cubic-bezier(.6,0,.2,1) .3s; }
.in .timeline::after { transform: scaleX(1); }
.step { position: relative; padding-top: 34px; opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease; transition-delay: calc(.4s + var(--i) * .35s); }
.in .step { opacity: 1; transform: none; filter: none; }
.step .dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; z-index: 1;
  background: var(--black); border: 1px solid var(--silver); transition: background .4s; transition-delay: inherit; }
.in .step .dot { background: var(--silver); box-shadow: 0 0 12px rgba(255,255,255,.35); }
.step-n { color: var(--dim); }
.step h3 { font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); color: var(--silver); margin: 12px 0 12px; }
.step p { color: var(--grey); font-size: 14px; line-height: 1.65; }
.step-time { margin-top: 16px; color: var(--silver); font-size: 10px; display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.spec { display: flex; align-items: center; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.spec ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec li { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--grey); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 28px; }
  .timeline::before, .timeline::after { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(to bottom, var(--silver), rgba(207,210,214,.25)); }
  .in .timeline::after { transform: scaleY(1); }
  .step { padding-top: 0; }
  .step .dot { left: -28px; top: 4px; }
  .step-time { margin-top: 10px; }
  .spec { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .step, .timeline::after { transition: none; } }

/* Process, simplified: time as plain text, not a pill */
.step-time { padding: 0; border: 0; border-radius: 0; color: var(--grey); margin-top: 14px; }
.process-head h2 { max-width: none; }

/* Skip: only while the film plays, sits left of the sound pill */
.skip { margin-right: -16px; cursor: pointer; font: inherit; font-size: 11px; gap: 8px; padding: 0 16px; color: var(--silver);
  opacity: 0; pointer-events: none; transform: translateY(6px); }
.hero.playing .skip { opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s, 0s, 1.5s, 1.5s; }
.skip:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.hero:not(.playing) .skip { transition-delay: 0s; }
@media (max-width: 760px) { .skip { height: 40px; padding: 0 12px; font-size: 10px; } }
.hero.skipping .skip { opacity: 0; pointer-events: none; transition-delay: 0s; }

/* Labels pulse gently (one after another) to invite a tap, and lift on hover */
.callout { transition: opacity .45s ease, filter .45s ease, color .3s, border-color .3s, background .3s, box-shadow .3s, translate .35s cubic-bezier(.2,.7,.2,1), scale .35s cubic-bezier(.2,.7,.2,1); }
.hero.held .callout { animation: calloutPulse 2.8s ease-in-out calc(1.4s + var(--i) * .3s) infinite; }
.hero.held .callout:hover, .hero.held .callout:focus-visible, .hero.held .callout.hot {
  animation: none; translate: 0 -4px; scale: 1.05;
  box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 20px rgba(255,255,255,.2);
}
@keyframes calloutPulse {
  0%, 100% { border-color: rgba(217,219,222,.5); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { border-color: rgba(255,255,255,.95); box-shadow: 0 0 16px 1px rgba(255,255,255,.22); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .hero.held .callout { animation: none; } }

/* The detail pops up in the middle, the page behind blurs */
.spec-pop { width: min(520px, calc(100vw - 32px)); padding: 44px clamp(24px, 4vw, 44px) 40px; border: 1px solid rgba(217,219,222,.25);
  border-radius: 18px; background: rgba(12,12,14,.92); color: var(--silver);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(255,255,255,.06);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.spec-pop.show { opacity: 1; transform: none; }
.spec-pop::backdrop { background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sp-group { color: var(--dim); }
.spec-pop h3 { font-weight: 200; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin: 12px 0 18px; }
.sp-text { color: var(--grey); line-height: 1.75; font-size: 15px; margin: 0; }
.sp-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--grey); font-size: 13px; }
.sp-close:hover { color: #fff; border-color: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { .in .spec-pill { animation: none; } .spec-pop { transition: none; } }

.spec-pop { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 48px); overflow-y: auto; }

/* ---------- Build overview: intro left, upgrades right ---------- */
.overview-inner { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.overview-left h2 { font-weight: 200; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.08; margin: 18px 0 26px; }
.works-intro p { color: var(--grey); font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.works-intro p:last-child { color: var(--silver); margin: 0; }
.spec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.spec-title .caps { color: var(--silver); font-weight: 700; }
.spec-title .hint { color: var(--grey); font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.spec-title .hint::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 10px rgba(255,255,255,.7); animation: cue 2.4s ease-in-out infinite; }
.spec-groups { display: grid; gap: 14px; }
.spec-group > .caps { color: var(--dim); font-size: 10px; margin-bottom: 7px; }
.spec-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.spec-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  min-height: 38px; padding: 0 8px 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(217,219,222,.4); background: rgba(255,255,255,.02); color: var(--silver);
  font-family: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  transition: color .3s, border-color .3s, background .3s, box-shadow .3s, translate .35s cubic-bezier(.2,.7,.2,1);
}
.spec-pill .plus { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(217,219,222,.35); color: var(--silver); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, color .3s, border-color .3s; }
.in .spec-pill { animation: calloutPulse 3.2s ease-in-out calc(1s + var(--i) * .18s) infinite; }
.spec-pill:hover, .spec-pill:focus-visible {
  animation: none; translate: 0 -3px; color: #fff; outline: none;
  border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.07);
  box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 20px rgba(255,255,255,.22);
}
.spec-pill:hover .plus, .spec-pill:focus-visible .plus { transform: rotate(90deg); background: var(--silver); color: var(--black); border-color: var(--silver); }

/* ---------- Stage by stage: 1-7 across the top, the stage below ---------- */
.works-inner { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; gap: clamp(22px, 3.6vh, 40px); }
.works-head { display: flex; align-items: center; justify-content: space-between; }
.works-head .caps { color: var(--silver); font-weight: 700; }
.works-nav { display: flex; gap: 10px; }
.works-nav button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--grey); transition: color .3s, border-color .3s; }
.works-nav button:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.works-steps { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.wtrack { position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.wtrack i { display: block; height: 100%; width: calc((var(--n) + .5) / 7 * 100%); background: var(--silver);
  box-shadow: 0 0 8px rgba(255,255,255,.4); transition: width .8s cubic-bezier(.6,0,.2,1); }
.works-steps button { position: relative; display: grid; gap: 8px; justify-items: start; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--dim); font-family: inherit; transition: color .35s; }
.works-steps .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--black); border: 1px solid var(--dim); margin-bottom: 10px; transition: background .35s, border-color .35s, box-shadow .35s; }
.works-steps .n { font-size: 11px; letter-spacing: .3em; }
.works-steps .t { font-size: 14px; font-weight: 300; line-height: 1.35; }
.works-steps button:hover { color: var(--grey); }
.works-steps button:hover .dot { border-color: var(--silver); }
.works-steps button[aria-selected="true"] { color: var(--silver); }
.works-steps button[aria-selected="true"] .dot { background: var(--silver); border-color: var(--silver); box-shadow: 0 0 12px rgba(255,255,255,.6); }
.works-steps button:focus-visible { outline: 1px solid var(--silver); outline-offset: 6px; }
.works-panes { display: grid; padding-top: clamp(20px, 3vh, 32px); border-top: 1px solid var(--line); }
.wpane { grid-area: 1 / 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  opacity: 0; transform: translateY(12px); filter: blur(6px); pointer-events: none; transition: opacity .55s ease, transform .55s ease, filter .55s ease; }
.wpane.active { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .1s; }
.wnum { font-weight: 200; font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--silver); }
.wnum span { font-size: 12px; letter-spacing: .3em; color: var(--dim); margin-left: 10px; vertical-align: middle; }
.wpane h3 { font-weight: 300; font-size: clamp(22px, 2vw, 30px); color: var(--silver); margin: 12px 0 16px; }
.wtext p { color: var(--grey); font-size: 14.5px; line-height: 1.7; margin: 0 0 10px; max-width: 62ch; }
.wtext p:first-child { color: var(--silver); }
.wmedia { aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #111215 0%, var(--panel) 60%, var(--black) 100%); }
.wmedia img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .overview-inner { grid-template-columns: 1fr; gap: 36px; }
  .wpane { grid-template-columns: 1fr; } .wmedia { display: none; }
}
@media (max-width: 860px) {
  .works-steps { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .works-steps::-webkit-scrollbar { display: none; }
  .works-steps button { flex: none; width: 120px; }
  .wtrack { display: none; }
}
@media (max-width: 560px) { .spec-pills { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wpane, .wtrack i { transition: none; } }

/* Upgrades, simplified: six areas as large pills, the detail lives in the pop-up */
.overview-right .spec-pills { grid-template-columns: 1fr 1fr; gap: 12px; }
.overview-right .spec-pill { min-height: 64px; padding: 0 12px 0 22px; gap: 14px; font-size: 14px; font-weight: 400; }
.spec-pill .num { color: var(--dim); font-size: 11px; letter-spacing: .25em; flex: none; }
.spec-pill .label { flex: 1; }
.spec-pill .count { flex: none; color: var(--dim); font-size: 11px; }
.spec-pill .plus { width: 30px; height: 30px; }
.spec-pill template { display: none; }
.overview-left .works-intro p { color: var(--grey); font-size: 16px; }

/* Pop-up: one area, its upgrades in two columns */
.spec-pop { width: min(860px, calc(100vw - 32px)); }
.sp-items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.sp-item { padding-top: 16px; border-top: 1px solid var(--line); }
.sp-item h4 { font-weight: 500; font-size: 15px; color: var(--silver); margin: 0 0 8px; }
.sp-item p { color: var(--grey); font-size: 14px; line-height: 1.7; margin: 0; }
.sp-item:only-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .sp-items { grid-template-columns: 1fr; } .overview-right .spec-pills { grid-template-columns: 1fr; } .overview-right .spec-pill { min-height: 56px; } }

/* The build (screen after the film): dark desert dunes behind, faded into the page at every edge */
.story { position: relative; isolation: isolate; }
.story::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--black) 0%, rgba(4,4,5,0) 22%, rgba(4,4,5,0) 78%, var(--black) 100%),
    linear-gradient(to right, rgba(4,4,5,.55) 0%, rgba(4,4,5,0) 30%, rgba(4,4,5,0) 70%, rgba(4,4,5,.35) 100%),
    url('../assets/dunes.png') center 70% / cover no-repeat;
}

/* Smoother switch from the audio prompt to the volume controls */
.sound { overflow: hidden; white-space: nowrap; transition: box-shadow .5s ease, background-color .5s ease, border-color .5s ease; }
.sound.morphing .vol, .sound.morphing .mute { opacity: 0; }
.sound.unlocked .vol { animation: controlsIn .6s cubic-bezier(.2,.7,.2,1) .2s both; }
.sound.unlocked .mute { animation: controlsIn .6s cubic-bezier(.2,.7,.2,1) .3s both; }

/* Higher-quality dunes: the photo is bright, so it's darkened to sit in the black page */
.story::before {
  background: url('../assets/dunes.webp') center 78% / cover no-repeat;
  filter: brightness(.3) saturate(.85) contrast(1.05);
}
.story::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--black) 0%, rgba(4,4,5,0) 30%, rgba(4,4,5,0) 75%, var(--black) 100%),
    linear-gradient(to right, rgba(4,4,5,.6) 0%, rgba(4,4,5,0) 35%, rgba(4,4,5,0) 70%, rgba(4,4,5,.35) 100%);
}

/* Our process: Dubai skyline from the desert behind, darkened like the dunes */
.process { position: relative; isolation: isolate; }
.process::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../assets/dubai-skyline.jpg') center 60% / cover no-repeat;
  filter: brightness(.3) saturate(.85) contrast(1.05);
}
.process::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--black) 0%, rgba(4,4,5,.15) 28%, rgba(4,4,5,.15) 72%, var(--black) 100%),
    linear-gradient(to right, rgba(4,4,5,.55) 0%, rgba(4,4,5,0) 35%, rgba(4,4,5,0) 70%, rgba(4,4,5,.35) 100%);
}

.story-cta { margin-top: 28px; }

.story h2 { max-width: 22ch; font-size: clamp(30px, 3.8vw, 56px); }
.story p { margin-top: 0; }
.story-cta { margin-top: 20px; }

/* Hero title a little heavier */
.hero-text h1 { font-weight: 500; letter-spacing: 0; }

.story h2 { max-width: none; }
@media (max-width: 760px) { .story h2 br { display: none; } }

/* keep "Built from the chassis up." on one line where it fits */
.overview-left h2 { font-size: clamp(30px, 3vw, 46px); }
@media (min-width: 1100px) { .overview-left h2 { white-space: nowrap; } }

/* Hero title in Michroma: wide, automotive capitals */
.hero-text h1 { font-family: Michroma, Manrope, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 50px); letter-spacing: .04em; line-height: 1.1; }

.hero-text h1 { font-size: clamp(18px, 2.55vw, 38px); }

/* Stage row under "Built from the chassis up": 1-7 left to right, short summaries */
.overview-inner { row-gap: clamp(28px, 5vh, 56px); align-items: end; }
.overview-right .spec-pill { min-height: 54px; }
.stage-row { grid-column: 1 / -1; }
.stage-row > .caps { color: var(--silver); font-weight: 700; margin-bottom: 18px; }
.stage-row ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
.stage-row ol::before, .stage-row ol::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.stage-row ol::after { background: linear-gradient(to right, var(--silver), rgba(207,210,214,.3)); transform: scaleX(0); transform-origin: left; transition: transform 2s cubic-bezier(.6,0,.2,1) .3s; }
.in .stage-row ol::after { transform: scaleX(1); }
.stage-row li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 24px;
  opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(.4s + var(--i) * .22s); }
.in .stage-row li { opacity: 1; transform: none; }
.stage-row .dot { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--black); border: 1px solid var(--silver); transition: background .4s, box-shadow .4s; transition-delay: inherit; }
.in .stage-row .dot { background: var(--silver); box-shadow: 0 0 10px rgba(255,255,255,.45); }
.stage-row .n { color: var(--dim); font-size: 10px; letter-spacing: .3em; }
.stage-row b { font-weight: 400; font-size: 14px; color: var(--silver); line-height: 1.3; }
.stage-row .s { color: var(--grey); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 1100px) { .stage-row ol { grid-template-columns: repeat(4, 1fr); row-gap: 26px; } .stage-row ol::before, .stage-row ol::after { display: none; } }
@media (max-width: 560px) { .stage-row ol { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .stage-row li, .stage-row ol::after { transition: none; } }

/* Stages are clickable: each opens its full text in the pop-up */
.stage-title { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.stage-title .caps { color: var(--silver); font-weight: 700; }
.stage-title .hint { color: var(--grey); font-size: 12px; }
.stage-btn { position: relative; display: grid; gap: 6px; align-content: start; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 24px 10px 12px 0; margin: -0px; color: inherit; font-family: inherit; border-radius: 12px;
  transition: translate .35s cubic-bezier(.2,.7,.2,1); }
.stage-row li { padding-top: 0; }
.stage-btn .more { color: var(--silver); font-size: 9.5px; margin-top: 6px; opacity: .55; transition: opacity .3s, letter-spacing .3s; }
.stage-btn:hover, .stage-btn:focus-visible { translate: 0 -3px; outline: none; }
.stage-btn:hover b, .stage-btn:focus-visible b { color: #fff; }
.stage-btn:hover .more, .stage-btn:focus-visible .more { opacity: 1; letter-spacing: .36em; }
.stage-btn:hover .dot, .stage-btn:focus-visible .dot { box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 16px rgba(255,255,255,.7); }
.in .stage-btn .more { animation: haze 3s ease-in-out calc(2.5s + var(--i) * .25s) infinite; }
.stage-btn:hover .more { animation: none; }
.stage-btn template { display: none; }
.sp-item p + p { margin-top: 12px; }

/* Stages: just number + title on the line; the summary drops down on hover/focus, click opens the full text */
.stage-btn { padding-bottom: 6px; }
.stage-btn .drop { position: absolute; left: 0; right: 6px; top: 100%; display: grid; gap: 6px; padding-top: 8px;
  opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), clip-path .45s cubic-bezier(.2,.7,.2,1); }
.stage-btn:hover .drop, .stage-btn:focus-visible .drop { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.stage-btn .more { opacity: 1; animation: none !important; margin-top: 2px; }
.in .stage-btn .dot { animation: dotPulse 2.8s ease-in-out calc(2.6s + var(--i) * .25s) infinite; }
.stage-btn:hover .dot { animation: none; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 6px rgba(255,255,255,.3); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,.1), 0 0 18px rgba(255,255,255,.75); } }
.stage-row { padding-bottom: 70px; }   /* room for the drop-down */
@media (hover: none) { .stage-btn .drop { position: static; opacity: 1; transform: none; clip-path: none; } .stage-row { padding-bottom: 0; } }

/* Our process: build time shown once, under the timeline */
.step h3 { font-size: clamp(18px, 1.5vw, 22px); }
.step p { font-size: 13.5px; }
.process-time { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.process-time .caps { color: var(--grey); }
.process-time b { font-weight: 300; font-size: clamp(22px, 2vw, 30px); color: var(--silver); letter-spacing: .02em; }
.process-time .note { color: var(--grey); font-size: 13px; }

/* Our process, lighter: numbered badges on the line, text drops down in a frosted box on hover / tap */
.timeline::before, .timeline::after { top: 17px; left: 17px; }
.step { padding-top: 54px; outline: none; cursor: default; }
.step .badge { position: absolute; left: 0; top: 0; z-index: 1; width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); border: 1px solid rgba(217,219,222,.5); color: var(--silver); font-size: 11px; letter-spacing: .08em;
  transition: background .35s, color .35s, box-shadow .35s, border-color .35s; }
.in .step .badge { animation: dotPulse 3s ease-in-out calc(2.4s + var(--i) * .3s) infinite; }
.step h3 { margin: 0 0 8px; }
.step-more { color: var(--grey); font-size: 10px; transition: color .3s, letter-spacing .3s; }
.step-drop { position: absolute; left: -14px; top: calc(100% + 10px); width: min(300px, calc(100% + 60px)); z-index: 5;
  padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(217,219,222,.18);
  background: rgba(14,14,16,.5); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0 round 14px); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), clip-path .45s cubic-bezier(.2,.7,.2,1); }
.step-drop p { margin: 0; color: var(--silver); font-size: 13.5px; line-height: 1.65; }
.step:last-child .step-drop { left: auto; right: -14px; }
.step:hover .step-drop, .step:focus-within .step-drop { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); pointer-events: auto; }
.step:hover .badge, .step:focus-within .badge { animation: none; background: var(--silver); color: var(--black); border-color: var(--silver); box-shadow: 0 0 18px rgba(255,255,255,.55); }
.step:hover .step-more, .step:focus-within .step-more { color: #fff; letter-spacing: .36em; }
.step:hover h3, .step:focus-within h3 { color: #fff; }
.process-inner { padding-bottom: 40px; }
@media (max-width: 960px) {
  .timeline { padding-left: 52px; }
  .timeline::before, .timeline::after { left: 17px; top: 17px; }
  .step { padding-top: 6px; }
  .step .badge { left: -52px; top: 0; }
  .step-drop { position: static; width: auto; margin-top: 10px; opacity: 1; transform: none; clip-path: none; pointer-events: auto; }
  .step-more { display: none; }
}

/* Process steps: hairline under each title, "More info ⌄" below it; room reserved so the boxes never cover the build time */
.step h3 { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(217,219,222,.18); }
.step-more { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.step-more svg { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.step:hover .step-more svg, .step:focus-within .step-more svg { transform: rotate(180deg); }
.step-drop { top: calc(100% + 12px); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); background: rgba(14,14,16,.55); }
.timeline { padding-bottom: 190px; }
.process-time { margin-top: 0; }
@media (max-width: 960px) { .timeline { padding-bottom: 0; } }

.step h3 { min-height: calc(2.5em + 12px); display: flex; align-items: flex-end; }
@media (max-width: 960px) { .step h3 { min-height: 0; } }

.process-time { transition: opacity 1s ease, transform 1s ease, filter 1s ease, translate .45s cubic-bezier(.2,.7,.2,1); }
/* the box follows the same open/closed state as the build-time line, so they always move together */
.step.open .step-drop { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); pointer-events: auto; }
.step.open .badge { animation: none; background: var(--silver); color: var(--black); border-color: var(--silver); box-shadow: 0 0 18px rgba(255,255,255,.55); }
.step.open h3 { color: #fff; }
.step.open .step-more { color: #fff; letter-spacing: .36em; }
.step.open .step-more svg { transform: rotate(180deg); }
.step-drop, .process-time { will-change: transform, opacity; }

/* ---------- Our process: click to expand, in the flow (replaces the hover drop-down) ---------- */
.process { align-items: flex-start; padding-top: clamp(130px, 20vh, 190px); }
.timeline { padding-bottom: 0; align-items: start; }
.process-time { translate: none !important; }
.step-drop, .step:hover .step-drop, .step:focus-within .step-drop {
  position: static; width: auto; left: auto; right: auto; top: auto; margin: 0;
  display: grid; grid-template-rows: 0fr; opacity: 1; transform: none; clip-path: none; pointer-events: none;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: grid-template-rows .55s cubic-bezier(.3,.7,.2,1);
}
.step-drop > div { overflow: hidden; min-height: 0; }
.step-drop p { opacity: 0; transform: translateY(-8px); filter: blur(3px); padding: 2px 4px 16px 0; color: var(--silver);
  transition: opacity .35s ease, transform .45s ease, filter .35s ease; }
.step.open .step-drop, .step.open:hover .step-drop { grid-template-rows: 1fr; pointer-events: auto; }
.step.open .step-drop p { opacity: 1; transform: none; filter: none; transition-delay: .15s; }
.step-more { background: none; border: 0; padding: 4px 0; font-family: inherit; color: var(--grey); letter-spacing: .3em; }
.step:hover .step-more, .step:focus-within .step-more, .step.open .step-more { letter-spacing: .3em; }
.step-more:hover, .step-more:focus-visible { color: #fff; outline: none; }
.step:hover .step-more svg, .step:focus-within .step-more svg { transform: none; }
.step.open .step-more svg { transform: rotate(180deg); }
.step.open .step-more { color: var(--silver); }
.step-more:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 960px) {
  .step-drop { position: static; }
  .step-more { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .step-drop, .step-drop p { transition: none; } }

/* "Explore the build" larger */
.explore-title { white-space: nowrap; top: 26px; }
.explore-title span { font-size: clamp(16px, 1.75vw, 30px); letter-spacing: .26em; margin-right: -.26em; }
.explore-title small { font-size: clamp(10px, .85vw, 13px); margin-top: 12px; }
@media (max-width: 760px) { .explore-title { top: 64px; } }

@media (max-width: 900px) { .explore-title { top: 64px; } }

/* ---------- Feature clips over the final shot ---------- */
.film-wrap > .fclip { opacity: 0; pointer-events: none; transition: opacity .2s linear; }
.film-wrap > .fclip.show { opacity: 1; }
.film-wrap > .fend { transition-duration: .45s; }
.hero.held.feature .explore-title, .hero.held.feature .hero-title, .hero.held.feature .hero-meta, .hero.held.feature .scroll-cue {
  opacity: 0; animation: none; transition-duration: .3s; transition-delay: 0s; }
.feature-panel { position: absolute; z-index: 4; left: var(--gutter); bottom: 56px; max-width: 46ch;
  opacity: 0; transform: translateY(14px); filter: blur(6px); pointer-events: none; visibility: hidden;
  transition: opacity .45s ease, transform .45s ease, filter .45s ease, visibility 0s .45s; }
.feature-panel.show { opacity: 1; transform: none; filter: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.feature-panel:not(.show) { transition-duration: .25s, .25s, .25s, 0s; transition-delay: 0s, 0s, 0s, .25s; }
.feature-panel h2 { font-family: Michroma, Manrope, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.55vw, 38px); letter-spacing: .04em; line-height: 1.1; margin: 14px 0; }
.feature-panel p { color: var(--silver); font-size: 15px; line-height: 1.65; margin: 0 0 22px; }
.feature-back { cursor: pointer; font-family: inherit; font-size: 11px; color: var(--silver); border-color: rgba(217,219,222,.45); }
.feature-back:hover, .feature-back:focus-visible { color: #fff; border-color: rgba(255,255,255,.9); box-shadow: 0 0 18px rgba(255,255,255,.2); outline: none; }
@media (max-width: 760px) { .feature-panel { left: 16px; right: 16px; bottom: 132px; } }

/* The clips begin and end on the exact stills, so they cut in without a visible fade */
.film-wrap > video.fclip { transition-duration: .05s; will-change: opacity; }
/* Kept on the graphics card (but invisible) while the final shot is up, so a click starts without a hitch */
.hero.held .film-wrap > .fclip:not(.show) { opacity: .001; }
.hero.clip-on .film-wrap > video:not(.fclip), .hero.clip-on .film-wrap > .still { visibility: hidden; }
.hero.feature .callout { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Frozen final shot (a one-frame video, so its colour matches the film and clips) */
.film-wrap > .final-shot { opacity: 0; pointer-events: none; }
.film-wrap > .final-shot.show { opacity: 1; }
.film-wrap > .fclip.fend { transition-duration: .3s; }

/* Lines and labels: always arrive from the car outwards (first time and coming back from a clip), and pull back in when a clip starts */
.callout { translate: var(--fx, 0px) var(--fy, 0px); }
.hero.held .callout { translate: 0 0; transition-duration: .32s, .32s, .3s, .3s, .3s, .3s, .42s, .35s;
  transition-delay: calc(.2s + var(--i) * .035s), calc(.2s + var(--i) * .035s), 0s, 0s, 0s, 0s, calc(.2s + var(--i) * .035s), 0s; }
.hero.held .callout-lines circle { transition-delay: calc(var(--i) * .035s); }
.hero.held .callout-lines line { transition: stroke .3s, stroke-dashoffset .38s cubic-bezier(.4,0,.2,1); transition-delay: 0s, calc(.03s + var(--i) * .035s); }
.hero.held.settled .callout { transition-duration: .45s, .45s, .3s, .3s, .3s, .3s, .35s, .35s; transition-delay: 0s; }
.hero.held.feature .callout { opacity: 0; filter: blur(4px); translate: var(--fx, 0px) var(--fy, 0px); pointer-events: none; animation: none; scale: 1;
  transition-duration: .22s; transition-delay: 0s; }
.hero.held.feature .callout-lines line { stroke-dashoffset: 1; transition: stroke-dashoffset .24s cubic-bezier(.4,0,1,1); transition-delay: 0s; }
.hero.held.feature .callout-lines circle { opacity: 0; transition: opacity .2s ease .06s; animation: none; }
.hero.clip-on.feature .callouts { visibility: hidden; transition: visibility 0s .35s; }
.hero.held:not(.settled) .callout:not(:hover) { animation: none; }
@media (prefers-reduced-motion: reduce) { .callout, .hero.held .callout, .hero.held.feature .callout { transition: opacity .2s; translate: 0 0; } .hero.held .callout-lines line { transition: none; } }

/* Coming back, the titles return just as quickly */
.hero.held:not(.feature) .explore-title, .hero.held:not(.feature) .hero-title, .hero.held:not(.feature) .hero-meta { transition-duration: .6s; transition-delay: .05s; }
.hero.held .callout-lines circle { transition-duration: .25s; }

@media (min-width: 761px) { .feature-panel h2 { white-space: nowrap; } }

/* Close-ups: the haze round the edges clears once a clip has landed, leaving just enough shade behind the header and text */
.hero::after { transition: opacity .9s ease-in-out .1s; }
.hero:not(.held)::after { opacity: 0; transition: opacity .4s ease; }   /* the film plays clean: the haze arrives with the labels */
.hero.clearing:not(.leaving)::after { opacity: 0; transition: opacity 1.1s ease-in-out .1s; }
.hero.leaving::after { transition: opacity .25s ease; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background:
    linear-gradient(to bottom, rgba(4,4,5,.6) 0%, rgba(4,4,5,0) 15%),
    radial-gradient(ellipse 48% 62% at 0% 100%, rgba(4,4,5,.9) 0%, rgba(4,4,5,.68) 42%, rgba(4,4,5,0) 100%); }
.hero.clearing:not(.leaving)::before { opacity: 1; transition: opacity .6s ease .85s; }
@media (max-width: 760px) { .hero::before { background: linear-gradient(to bottom, rgba(4,4,5,.6) 0%, rgba(4,4,5,0) 14%), linear-gradient(to top, rgba(4,4,5,.9) 0%, rgba(4,4,5,.7) 38%, rgba(4,4,5,0) 58%); } }

.feature-panel .caps:first-child { color: var(--silver); }

/* ---------- Labels that look like buttons ---------- */
.callout { height: 40px; padding: 0 7px 0 18px; gap: 12px; background: rgba(28,29,33,.72); border-color: rgba(217,219,222,.6); cursor: pointer; }
.callout .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0b; background: rgba(207,210,214,.92);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s; }
.callout:hover .plus, .callout.hot .plus, .callout:focus-visible .plus { transform: rotate(90deg); background: #fff; }
.callout:hover, .callout:focus-visible, .callout.hot { background: rgba(60,62,68,.8); }
.explore-title small.explore-hint { color: var(--silver); }
@media (max-width: 760px) { .callout { height: 38px; padding: 0 6px 0 14px; gap: 8px; } .callout .plus { width: 22px; height: 22px; } }

/* The car is clickable too */
.callout-lines .hit { fill: transparent; pointer-events: none; cursor: pointer; }
.hero.held.settled:not(.feature) .callout-lines .hit { pointer-events: all; }
.hero.held .callout.hot { translate: 0 -4px; scale: 1.05; animation: none; color: #fff; border-color: rgba(255,255,255,.95); box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 20px rgba(255,255,255,.2); }
.hero.held.feature .callout.hot { translate: var(--fx, 0px) var(--fy, 0px); scale: 1; }

/* Invite: a ring runs round the dots and ends with Engine giving a little press */
.callout-lines g.invite circle:not(.ring) { animation: dotBeat 1.1s ease-out; }
.hero.held .callout-lines g.invite circle.ring { animation: inviteRing 1.1s ease-out; }
.callout-lines g.invite line { stroke: #fff; }
@keyframes inviteRing { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(7); } }
@keyframes dotBeat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.9); } }
.hero.held .callout.press { animation: pressIn .85s cubic-bezier(.3,.7,.2,1); }
@keyframes pressIn { 0% { scale: 1; } 25% { scale: .92; background: rgba(120,122,128,.85); } 55% { scale: 1.08; border-color: #fff; box-shadow: 0 0 26px rgba(255,255,255,.4); } 100% { scale: 1; } }

/* First scroll, caught once */
.catch-hint { position: absolute; z-index: 4; left: 50%; bottom: 118px; transform: translate(-50%, 12px); padding: 13px 24px; border-radius: 999px; white-space: nowrap;
  color: #fff; font-size: 11px; background: rgba(28,29,33,.85); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 0 34px rgba(255,255,255,.16);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.hero.catch .catch-hint { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .catch-hint { white-space: normal; text-align: center; width: calc(100% - 48px); } }

@media (prefers-reduced-motion: reduce) { .callout.press, .callout-lines g.invite circle { animation: none !important; } }


/* ---------- The drive onto the dunes ---------- */
.drive-stage { display: none; }
.drive-ready .drive-stage { display: block; position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: -1; overflow: hidden; background: var(--black); pointer-events: none; }
.drive-ready .drive-stage.live { position: fixed; }
.drive-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.drive-stage .drive-in, .drive-stage .drive-out { opacity: .001; }
.drive-stage .drive-in { transition: opacity .25s linear; }
.drive-stage video.show { opacity: 1; transition: none; }
/* two sets of edges: the hero's haze, and this page's shade for the text. They swap during the drive. */
.drive-stage::before, .drive-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; transition: opacity 1.3s ease-in-out .2s; }
.drive-stage::before { opacity: 0; background:
    linear-gradient(to top, var(--black) 0%, rgba(4,4,5,0.9) 16%, rgba(4,4,5,0.45) 36%, rgba(4,4,5,0.15) 60%),
    linear-gradient(to bottom, rgba(4,4,5,0.75) 0%, rgba(4,4,5,0) 22%),
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(4,4,5,0) 50%, rgba(4,4,5,0.75) 100%); }
.drive-stage::after { background:
    linear-gradient(to top, var(--black) 0%, rgba(4,4,5,.35) 14%, rgba(4,4,5,0) 28%),
    linear-gradient(to bottom, rgba(4,4,5,.75) 0%, rgba(4,4,5,0) 18%),
    linear-gradient(to right, rgba(4,4,5,.86) 0%, rgba(4,4,5,.66) 24%, rgba(4,4,5,0) 43%); }
.drive-stage.from-hero::before { opacity: 0; }   /* the hero's own haze fades over the clip instead */
.drive-stage.from-hero::after { opacity: 0; }
.drive-stage.live.from-hero::before, .drive-stage.live.from-hero::after { transition: opacity .9s ease-in-out .1s; }
.drive-stage.cut::before, .drive-stage.cut::after, .drive-stage.cut video { transition: none !important; }
.drive-ready .story::before, .drive-ready .story::after { display: none; }
.hero.driving .sound, .hero.driving .catch-hint { opacity: 0; transition: opacity .25s ease; }
.story.waiting .reveal, .story.in.waiting .reveal { opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity .25s ease, transform .25s ease, filter .25s ease; transition-delay: 0s; }

/* Page 2 beside the parked car */
.drive-ready .story .inner { margin: 0; width: 100%; max-width: calc(50vw - 0.132 * max(100vw, 177.8vh) - var(--gutter) - 28px); }
.drive-ready .story h2 { font-size: clamp(23px, 2vw, 44px); margin: 16px 0 22px; }
.drive-ready .story p { font-size: clamp(14px, 1.02vw, 18px); line-height: 1.7; }
.drive-ready .story .specs { grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 32px; }
.drive-ready .story .specs div, .drive-ready .story .specs div + div { padding: 16px 0; border-left: 0; }
.drive-ready .story .specs b { font-size: clamp(15px, 1.15vw, 21px); margin-top: 7px; }

/* the shade for the text only arrives as the car parks, so the dust stays visible */
.drive-stage.live:not(.from-hero)::after { transition: opacity 1.1s ease-in-out 1.3s; }

/* While the film plays the menu's dark strip goes too; a soft shadow keeps the words readable on bright moments */
.home .site-header { background: none; }
.home .site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .9s ease-in-out .1s;
  background: linear-gradient(to bottom, rgba(10,11,13,.75), rgba(10,11,13,0)); }
.home:has(.hero:not(.held)) .site-header::before { opacity: 0; transition: opacity .4s ease; }
.home:has(.hero:not(.held)) .site-nav a, .hero.playing .skip-hint, .hero.playing .hero-top { text-shadow: 0 0 10px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.6); }
.home:has(.hero:not(.held)) .site-nav a:not([aria-current]) { color: #c3c6ca; }
.hero.playing .skip-hint { color: var(--silver); }
.hero.playing .skip-hint { white-space: nowrap; }
.hero.playing .pill { background-color: rgba(6,6,8,.62); }

/* Page 2 beside the car, smaller windows: keep the text clear of the header */
@media (min-width: 901px) and (max-width: 1240px) {
  .drive-ready .story h2 { font-size: 20px; margin: 10px 0 14px; }
  .drive-ready .story p { font-size: 13.5px; line-height: 1.55; }
  .drive-ready .story .specs { margin-top: 18px; gap: 0 20px; }
  .drive-ready .story .specs div, .drive-ready .story .specs div + div { padding: 10px 0; }
  .drive-ready .story .specs b { font-size: 14px; margin-top: 4px; }
}

/* Electronic tint: the dash switch, in the close-up */
.film-wrap > video.fclip.falt { transition: opacity .85s ease-in-out; }
.film-wrap > video.fclip.falt[src*="teak-rear"] { transition-duration: .55s; }
.film-wrap > video.fclip.falt.instant { transition: none; }   /* the camera move already ends on this frame */
.film-wrap > video.fclip.cut { transition: none; }            /* ...so the clip over it can go in the same frame, with no fade to flash through */
/* Teak panel: switch between the side step and the rear step */
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4,4,5,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.view-toggle button { appearance: none; border: 0; background: none; font-family: inherit; cursor: pointer; height: 36px; padding: 0 18px; border-radius: 999px; color: var(--grey); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; transition: color .3s, background-color .3s; }
.view-toggle button:hover { color: var(--silver); }
.view-toggle button.on { background: var(--silver); color: var(--black); }
.view-toggle button:focus-visible { outline: 1px solid var(--silver); outline-offset: 2px; }
.tint-console { position: relative; height: clamp(200px, 34vh, 340px); aspect-ratio: 440 / 916; border-radius: 17.5% / 8.4%; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 12px 2px rgba(255,255,255,.42), 0 0 34px 8px rgba(255,255,255,.26), 0 0 76px 22px rgba(255,255,255,.15), 0 0 140px 50px rgba(255,255,255,.08);   /* white haze, strongest at the casing */
  opacity: 0; transform: translateY(12px) scale(.965); transition: opacity .3s ease, transform .3s ease; }
.feature-panel.show .tint-console { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform .9s cubic-bezier(.2,.7,.2,1) .3s; }
/* The car behind goes soft around the casing, fading out to sharp, so it sits in front of the picture */
.tint-wrap { position: relative; width: fit-content; margin: 0 0 24px; isolation: isolate; }
.tint-wrap::before { content: ''; position: absolute; inset: -100px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); background: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 100px, #000 calc(100% - 100px), transparent), linear-gradient(to bottom, transparent, #000 100px, #000 calc(100% - 100px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 100px, #000 calc(100% - 100px), transparent), linear-gradient(to bottom, transparent, #000 100px, #000 calc(100% - 100px), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.feature-panel.show .tint-wrap::before { opacity: 1; transition: opacity .9s ease .5s; }
.feature-panel > *:not(.tint-wrap) { position: relative; z-index: 1; }   /* words and Back stay sharp */
.tint-console img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; border-radius: inherit; }
/* The tint button: raised and lit, dips when pressed, with a prompt beside it */
.tint-switch { position: absolute; left: 10%; top: 65.6%; width: 79.5%; height: 28.8%; padding: 0; border: 0; background: #000; border-radius: 5% / 6.5%; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 0 3px #000; color: #fff; }
.tint-switch .cap { position: absolute; inset: 0; border-radius: 5% / 6.5%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.13), rgba(255,255,255,.05)), url(../assets/tint-console.jpg?v=2) 48.8% 92.1% / 125.8% 347.2%;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 0 14px rgba(255,255,255,.25), inset 0 2px 3px rgba(255,255,255,.35), inset 0 -5px 8px rgba(0,0,0,.55);
  transition: box-shadow .6s ease-in-out, transform .18s cubic-bezier(.3,0,.2,1), filter .25s; }
.tint-switch[aria-checked="true"] .cap { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255,255,255,.55), 0 0 40px rgba(255,255,255,.18), inset 0 2px 3px rgba(255,255,255,.35), inset 0 -5px 8px rgba(0,0,0,.45), inset 0 0 22px rgba(255,255,255,.1); }
.tint-switch::before { content: ''; position: absolute; inset: -8px -14px -14px; }   /* easier to hit */
.tint-switch:hover .cap { filter: brightness(1.25); transform: scale(1.035); }
.tint-switch:active .cap { filter: brightness(.85); transform: scale(.93); transition-duration: .6s, .07s, .07s; }
.tint-switch:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.tint-switch .lit { max-width: none; inset: auto; left: -12.58%; top: -227.8%; width: 125.8%; height: 347.2%; border-radius: 0; opacity: 0; transition: opacity .6s ease-in-out; filter: drop-shadow(0 0 3px rgba(255,255,255,.9)) drop-shadow(0 0 9px rgba(255,255,255,.65)); }
.tint-switch[aria-checked="true"] .lit { opacity: 1; }
.tint-switch .cap::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #fff; opacity: 0; pointer-events: none; }
.tint-hint { font-family: Manrope, sans-serif; position: absolute; left: calc(100% + 36px); top: 50%; translate: 0 -50%; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; white-space: nowrap;
  color: #fff; font-size: 11px; background: rgba(10,10,11,.72); border: 1px solid rgba(255,255,255,.6); transition: background-color .25s, color .25s, border-color .25s; }
.tint-hint::before { content: ''; position: absolute; right: 100%; top: 50%; width: 34px; height: 1px; background: linear-gradient(to left, rgba(255,255,255,.75), rgba(255,255,255,.35)); }
.tint-switch:hover .tint-hint { background: #fff; color: #0b0b0c; border-color: #fff; }
/* Until it's been tried: a ring pulses out and the button dips, as if being pressed */
.feature-panel.show .tint-console:not(.used) .cap { animation: tint-nudge 2.6s ease-in-out 1.6s infinite; }
.feature-panel.show .tint-console:not(.used) .cap::after { animation: tint-pulse 2.6s ease-out 1.6s infinite; }
.tint-switch:hover .cap, .tint-switch:active .cap { animation: none !important; }
@keyframes tint-nudge { 0%, 100% { transform: scale(1); } 8% { transform: scale(.93); } 20% { transform: scale(1.025); } 32% { transform: scale(1); } }
@keyframes tint-pulse { 0%, 8% { opacity: 0; transform: scale(1); } 12% { opacity: .95; } 80%, 100% { opacity: 0; transform: scale(1.32, 1.45); } }
@media (max-width: 760px) { .tint-console { height: 220px; } .tint-wrap { margin-bottom: 18px; } .tint-wrap::before { inset: -60px -16px; } }
@media (prefers-reduced-motion: reduce) { .feature-panel.show .tint-console, .feature-panel.show .tint-wrap::before, .tint-switch .cap, .tint-switch .lit, .film-wrap > video.fclip.falt { transition: none; } .feature-panel.show .tint-console .cap, .feature-panel.show .tint-console .cap::after { animation: none !important; } }

/* Roof close-up: the studio floor is light, so the shade runs right along the bottom behind the words and controls */
@media (min-width: 761px) { .hero[data-feature="roof"]::before, .hero[data-feature="teak"]::before { background:
  linear-gradient(to bottom, rgba(4,4,5,.72) 0%, rgba(4,4,5,0) 19%),
  linear-gradient(to top, rgba(4,4,5,.93) 0%, rgba(4,4,5,.8) 18%, rgba(4,4,5,.42) 31%, rgba(4,4,5,0) 46%),
  radial-gradient(ellipse 46% 56% at 0% 100%, rgba(4,4,5,.75) 0%, rgba(4,4,5,.45) 50%, rgba(4,4,5,0) 100%); } }

/* ---------- Photo walls: photos projected onto two studio walls meeting in a corner behind the car ---------- */
.screens { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s; }
.hero.driving .screens { transition: opacity .85s cubic-bezier(.4,0,.3,1), visibility 0s .85s; }
/* Setting off: the hero lies over the moving clip with its own picture hidden, so everything on it melts away as the car pulls off */
.hero.drive-over { position: relative; z-index: 6; background: none; pointer-events: none; }
.hero.drive-over .film-wrap { visibility: hidden; }
.hero.drive-over::after, .hero.drive-over.leaving::after { opacity: 0; transition: opacity .9s ease-in-out .1s; }
.hero.held.feature.driving .callout { transition-duration: .55s; transition-timing-function: cubic-bezier(.4,0,.3,1); transition-delay: calc(var(--i) * .03s); }
.hero.held.feature.driving .callout-lines line { transition: stroke-dashoffset .55s cubic-bezier(.5,0,.3,1); transition-delay: calc(var(--i) * .03s); }
.hero.held.feature.driving .callout-lines circle { transition: opacity .45s ease .1s; }
.hero.held.feature.driving .explore-title, .hero.held.feature.driving .hero-title, .hero.held.feature.driving .hero-meta, .hero.held.feature.driving .scroll-cue { transition-duration: .7s; }
.hero.driving .sound { transition: opacity .6s ease !important; }
.hero.held:not(.feature) .screens { opacity: 1; visibility: visible; transition: opacity 1.2s ease .25s; }
.screens-mask { position: absolute; display: block; -webkit-mask: url(../assets/car-mask.png?v=4) 0 0 / 100% 100% no-repeat; mask: url(../assets/car-mask.png?v=4) 0 0 / 100% 100% no-repeat; }
.screens-open { position: absolute; left: 50%; top: 15%; translate: -50% 0; opacity: 0; pointer-events: none; }
.screens-open:focus-visible { opacity: 1; pointer-events: auto; }
.hero.wall-hover { cursor: zoom-in; }
@media (max-width: 900px), (max-aspect-ratio: 13/10) { .screens { display: none; } }

.photo-box { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4,4,5,.94); opacity: 0; transition: opacity .3s ease; color: #fff; overflow: hidden; }
.photo-box.show { opacity: 1; }
.photo-box::backdrop { background: transparent; }
.photo-box img { position: absolute; inset: 0; margin: auto; max-width: min(92vw, 1920px); max-height: 84dvh; width: auto; height: auto; border-radius: 4px; transition: opacity .25s ease; }
.photo-box img.swap { opacity: 0; }
.photo-box button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(217,219,222,.4); background: rgba(8,8,9,.6); color: #fff; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.photo-box button:hover { background: #fff; color: #0b0b0c; border-color: #fff; }
.photo-box button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pb-close { top: 22px; right: 24px; } .pb-prev { left: 24px; top: calc(50% - 26px); } .pb-next { right: 24px; top: calc(50% - 26px); }
.pb-count { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: var(--silver); }
@media (max-width: 760px) { .pb-prev { left: calc(50% - 64px); top: auto; bottom: 60px; } .pb-next { right: calc(50% - 64px); top: auto; bottom: 60px; } .photo-box img { max-height: 62dvh; } }

/* Closer looks inside a close-up (interior): labels and lines like the ones on the car */
.spots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.spot-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spot-lines line { stroke: rgba(230,232,235,.6); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .3s, stroke-dashoffset .3s cubic-bezier(.4,0,1,1); }
.spot-lines line.hot { stroke: #fff; }
.spot-lines circle { fill: var(--silver); opacity: 0; transition: opacity .2s; }
.spot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); appearance: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 7px 0 18px; white-space: nowrap;
  border: 1px solid rgba(217,219,222,.6); border-radius: 999px; color: var(--silver); background: rgba(28,29,33,.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  opacity: 0; filter: blur(4px); pointer-events: none; transition: opacity .3s ease, filter .3s ease, background .3s; }
.spot::after { content: ''; position: absolute; inset: -6px; }
.spot .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0b; background: rgba(207,210,214,.92); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s; }
.spot:hover, .spot:focus-visible { background: rgba(60,62,68,.8); outline: none; }
.spot:hover .plus, .spot:focus-visible .plus { transform: rotate(90deg); background: #fff; }
.spots.on .spot { opacity: 1; filter: none; pointer-events: auto; transition-delay: calc(.25s + var(--i) * .07s), calc(.25s + var(--i) * .07s), 0s; }
.spots.on .spot-lines line { stroke-dashoffset: 0; transition: stroke .3s, stroke-dashoffset .5s cubic-bezier(.5,0,.2,1); transition-delay: 0s, calc(var(--i) * .07s); }
.spots.on .spot-lines circle { opacity: 1; transition-delay: calc(var(--i) * .07s); }
.feature-panel.swap > * { opacity: 0; transition: opacity .25s; }
.feature-panel > * { transition: opacity .35s; }
@media (max-width: 760px) { .spot-lines { display: none; } .spots { display: flex; justify-content: center; align-content: flex-start; align-items: flex-start; gap: 8px; padding: 96px 16px 0; flex-wrap: wrap; } .spot { position: relative; transform: none; left: auto !important; top: auto !important; height: 36px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .spot, .spot-lines line, .spot-lines circle { transition: none !important; } }
.film-wrap > video.fclip.instant { transition: none; }

/* Console start-up film, laid on the screen of the console close-up (screen blend: its black is the screen switched off) */
.boot-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.boot { position: absolute; display: block; object-fit: fill; mix-blend-mode: screen; opacity: 0; transition: opacity .4s ease; }
.boot.show { opacity: 1; transition-duration: .15s; }
.film-wrap > video.fclip.fon { transition: opacity .6s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .boot { display: none; } }

/* Sound and replay belong to the car sitting in the studio: they step aside while a part is open */
.hero .sound { transition: opacity .35s ease, visibility 0s 0s, box-shadow .5s ease, background-color .5s ease, border-color .5s ease; }
.hero.feature .sound { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s .3s; }
.film-wrap > video.fclip.flook { transition: opacity .25s ease; }
.film-wrap > video.fclip.flook.show { transition: none; }   /* appears on the centre frame, which matches the lit render */
/* Console: once the screen is on, a cue that the mouse looks along the console */
.look-hint { position: absolute; left: 50%; bottom: 14%; translate: -50% 12px; z-index: 4; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 20px;
  border: 1px solid rgba(217,219,222,.55); border-radius: 999px; background: rgba(12,12,14,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 11px; letter-spacing: .2em; pointer-events: none; opacity: 0; transition: opacity .5s ease, translate .5s cubic-bezier(.2,.7,.2,1); }
.look-hint.show { opacity: 1; translate: -50% 0; transition-delay: .3s; }
.look-hint svg:first-child { animation: nudgeL 1.6s ease-in-out infinite; }
.look-hint svg:last-child { animation: nudgeR 1.6s ease-in-out infinite; }
@keyframes nudgeL { 50% { transform: translateX(-5px); } }
@keyframes nudgeR { 50% { transform: translateX(5px); } }
@media (pointer: coarse) { .look-hint span { font-size: 0; } .look-hint span::after { content: 'Drag to look around'; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .look-hint svg { animation: none !important; } }
