/* =========================================================
   CARDNA — Landing page
   ========================================================= */

:root {
  /* Midnight Cyan: cyan from the official logo, darks from the hero night scene.
     Colours used with alpha are kept as "r g b" triplets: rgb(var(--accent-rgb) / .2) */
  --bg-rgb: 4 9 13;
  --bg-2-rgb: 10 20 27;
  --accent-rgb: 4 198 226;
  --text-rgb: 238 246 248;
  --hi-rgb: 200 248 252;

  --bg: rgb(var(--bg-rgb));
  --bg-2: rgb(var(--bg-2-rgb));
  --panel: rgb(var(--bg-2-rgb) / .62);
  --line: rgb(var(--text-rgb) / .1);
  --line-strong: rgb(var(--accent-rgb) / .6);

  --accent: rgb(var(--accent-rgb));
  --accent-hi: #8eeef8;
  --accent-2: #0a8fbd;
  --accent-glow: rgb(var(--accent-rgb) / .38);
  --danger: #ff6b6b;

  --text: rgb(var(--text-rgb));
  --muted: #84a0ad;
  --dim: #64808c;

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 76px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.6em;
  border-radius: 999px;
  font: 700 15px/1 var(--font-body);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s, border-color .25s, color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }

.btn--primary {
  color: var(--bg);
  background: linear-gradient(100deg, var(--accent-hi) 0%, var(--accent) 35%, var(--accent-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -6px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 38px -6px rgb(var(--accent-rgb) / .6);
}

.btn--outline {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  border-color: var(--line-strong);
  background: rgb(var(--accent-rgb) / .08);
  transform: translateY(-2px);
}
.btn--outline:hover .icon { transform: none; color: var(--accent); }

.btn--ghost {
  padding: .8em 1.25em;
  font-size: 14px;
  color: var(--text);
  border: 1px solid rgb(var(--text-rgb) / .28);
  background: rgb(var(--text-rgb) / .04);
}
.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgb(var(--accent-rgb) / .1);
  box-shadow: 0 0 24px -8px var(--accent-glow);
}

/* ---------- Navbar ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s, backdrop-filter .35s, border-color .35s,
              opacity .9s var(--ease), translate .9s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgb(var(--bg-rgb) / .78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand__mark {
  width: auto;
  height: 36px;
}
.brand__word {
  width: auto;
  height: 12px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}
.nav__link {
  position: relative;
  padding-block: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #b4bac1;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 2px var(--accent);
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 60%; }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { width: 100%; }


.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (slide 1) ---------- */

.hero {
  --px: 0;
  --py: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* Fallback mood while the photo loads (or if it is missing) */
  background:
    radial-gradient(60% 55% at 68% 42%, rgb(var(--accent-rgb) / .22), transparent 70%),
    radial-gradient(40% 40% at 92% 78%, rgba(168, 212, 240, .1), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgb(var(--accent-rgb) / .12), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, #0b0e12 60%, var(--bg) 100%);
}

/* Poster + videos share one layer so pointer parallax and scroll zoom move them together */
.hero__layer {
  position: absolute;
  inset: -2%;
  translate: calc(var(--px) * -14px) calc(var(--py) * -8px);
  scale: calc(1 + var(--sp, 0) * .08);
  transition: translate .6s var(--ease);
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__poster {
  animation: settle 9s var(--ease) both;
  transition: opacity .6s var(--ease);
}
/* During the intro the scene starts dark; the lit poster would spoil the ignition */
.intro .hero__poster { opacity: 0; }

@keyframes settle {
  from { scale: 1.1; filter: brightness(.55) saturate(.9); }
  to   { scale: 1;   filter: brightness(1) saturate(1); }
}

.hero__video {
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.hero__video.is-playing { opacity: 1; }
.hero__video--intro { z-index: 1; }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .94) 0%, rgb(var(--bg-rgb) / .78) 24%, rgb(var(--bg-rgb) / .25) 48%, transparent 64%),
    linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / .82) 17%, rgb(var(--bg-rgb) / 0) 42%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .75) 0%, rgb(var(--bg-rgb) / 0) 16%),
    radial-gradient(120% 90% at 65% 45%, transparent 55%, rgba(0, 0, 0, .45) 100%);
}
/* Darkens the scene as the hero scrolls away */
.hero__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: calc(var(--sp, 0) * .7);
}

/* Film grain */
.hero__grain {
  position: absolute;
  inset: -50%;
  opacity: .08;
  mix-blend-mode: overlay;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0%   { translate: 0 0; }
  20%  { translate: -4% 3%; }
  40%  { translate: 3% -5%; }
  60%  { translate: -6% -2%; }
  80%  { translate: 5% 4%; }
  100% { translate: 0 0; }
}

/* Cyan light sweep at the moment of ignition */
.hero__sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero__sweep::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--accent-rgb) / .12) 40%, rgb(var(--hi-rgb) / .55) 50%, rgb(var(--accent-rgb) / .12) 60%, transparent 100%);
  filter: blur(6px);
  opacity: 0;
}
.ignited .hero__sweep::before { animation: sweep 1.7s var(--ease) .05s; }
@keyframes sweep {
  0%   { opacity: 0; translate: 0 0; }
  12%  { opacity: 1; }
  100% { opacity: 0; translate: 400% 0; }
}

/* Letterbox bars that open on ignition */
.hero__bars {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  max-height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero__bars::before,
.hero__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #000;
  transition: height 1.4s var(--ease);
}
.hero__bars::before { top: 0; }
.hero__bars::after { bottom: 0; }
.intro:not(.ignited) .hero__bars::before,
.intro:not(.ignited) .hero__bars::after { height: 12vh; }

.hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(8px, 2.5vh, 32px);
}

.hero__copy { max-width: 640px; }

.hero__title {
  font: 800 clamp(30px, min(3.5vw, 6.6vh), 52px)/1.02 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title span {
  display: block;
  color: var(--accent);
}

.hero__lede {
  margin-top: clamp(14px, 2.4vh, 26px);
  max-width: 24em;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.38;
  color: #dde6ea;
  text-wrap: pretty;
}
.hero__lede strong {
  display: block;
  font-weight: 600;
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(18px, 3vh, 32px);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 2.6vw, 38px);
  margin-top: clamp(20px, 3.6vh, 40px);
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat__icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgb(var(--accent-rgb) / .55));
}
.stat > span { display: grid; line-height: 1.15; }
.stat__num {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat small {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Feature cards ---------- */

.hero__features {
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.features {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
}
.features > li { display: flex; }

.feature {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(var(--accent-rgb) / .07), rgb(var(--accent-rgb) / 0) 45%),
    var(--panel);
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -20px rgba(0, 0, 0, .8);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.feature::after {
  content: "";
  position: absolute;
  inset: auto 18% 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px 2px var(--accent-glow);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .35s, transform .35s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 30px -8px var(--accent-glow), 0 24px 44px -20px rgba(0, 0, 0, .9);
}
.feature:hover::after { opacity: 1; transform: scaleX(1); }

.feature__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  color: var(--accent);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .6));
  transition: transform .35s var(--ease);
}
.feature:hover .feature__icon { transform: scale(1.08); }

.feature h3 {
  min-height: 2.5em;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}
.feature p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Ecosystem hologram scan (slide 2) ---------- */

/* A still hologram of the car with the features pinned to it. Nothing rotates and the
   page scrolls normally; only a slow scan beam and the active link line move. */
.scan {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px);
  background:
    radial-gradient(42% 38% at 50% 58%, rgb(var(--accent-rgb) / .08), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.scan__head { max-width: 640px; }
.scan__lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Car in the middle column, feature tags in the side columns of an overlay grid */
.scan__stage {
  --car-w: 56%;
  position: relative;
  margin-top: clamp(28px, 4vw, 52px);
}
.scan__car {
  position: relative;
  width: var(--car-w);
  margin-inline: auto;
}
.scan__car img {
  width: 100%;
  height: auto;
  mix-blend-mode: screen; /* the render sits on black */
}

/* Slow scan beam passing over the hologram */
.scan__beam {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 56% at 50% 46%, #000 55%, transparent 100%);
          mask-image: radial-gradient(60% 56% at 50% 46%, #000 55%, transparent 100%);
}
.scan__beam::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 20%;
  background: linear-gradient(180deg,
    transparent,
    rgb(var(--accent-rgb) / .1) 40%,
    rgb(var(--hi-rgb) / .55) 50%,
    rgb(var(--accent-rgb) / .1) 60%,
    transparent);
  mix-blend-mode: screen;
  transform: translateY(-100%);
  animation: scan-sweep 7s cubic-bezier(.45, 0, .55, 1) infinite;
  animation-play-state: paused;
}
.scan.is-visible .scan__beam::before { animation-play-state: running; }
@keyframes scan-sweep {
  0%   { transform: translateY(-100%); }
  70%, 100% { transform: translateY(500%); }
}

.scan__tags {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr var(--car-w) 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  pointer-events: none;
}
.scan-tag {
  pointer-events: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
  padding: 10px 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--muted);
  font: 600 13.5px/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.scan-tag .icon { flex: none; width: 18px; height: 18px; }
.scan-tag__num {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: .08em;
  color: var(--dim);
}
.scan-tag:hover { color: var(--text); border-color: rgb(var(--accent-rgb) / .3); }
.scan-tag.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 0 26px -8px var(--accent-glow), inset 0 0 0 1px rgb(var(--accent-rgb) / .18);
}
.scan-tag.is-active .icon,
.scan-tag.is-active .scan-tag__num { color: var(--accent); }

.scan-tag--l1, .scan-tag--l2, .scan-tag--l3, .scan-tag--l4 { grid-column: 1; justify-self: start; }
.scan-tag--r1, .scan-tag--r2, .scan-tag--r3 { grid-column: 3; justify-self: end; }
.scan-tag--l1, .scan-tag--r1 { grid-row: 1; }
.scan-tag--l2 { grid-row: 2; }
.scan-tag--l3 { grid-row: 3; }
.scan-tag--l4, .scan-tag--r3 { grid-row: 4; }
.scan-tag--r2 { grid-row: 2 / 4; }

/* Hotspots on the car (added by ecosystem.js) */
.scan-spot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / .35);
  box-shadow: 0 0 0 1px rgb(var(--hi-rgb) / .5);
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.scan-spot.is-active {
  background: var(--accent-hi);
  transform: scale(1.3);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--accent);
}
.scan-spot.is-active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: scan-ping 2s var(--ease) infinite;
}
@keyframes scan-ping {
  from { transform: scale(.6); opacity: 1; }
  to   { transform: scale(2.2); opacity: 0; }
}

/* Callout lines from each tag to its hotspot */
.scan__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.scan__links polyline {
  fill: none;
  stroke: rgb(var(--text-rgb) / .13);
  stroke-width: 1;
  transition: stroke .3s var(--ease);
}
.scan__links polyline.is-active {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  filter: drop-shadow(0 0 4px var(--accent));
  animation: scan-flow 1.4s linear infinite;
}
@keyframes scan-flow { to { stroke-dashoffset: -24; } }

/* Detail panel under the car */
.scan__panels {
  max-width: 680px;
  margin: clamp(20px, 3vw, 36px) auto 0;
}
.scan-panel { animation: scan-in .45s var(--ease) both; }
@keyframes scan-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.scan-panel__meta {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scan-panel__meta span { margin-right: 10px; color: var(--accent); }
.scan-panel__title {
  margin-top: 10px;
  font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--font-display);
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.scan-panel__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.scan-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.scan-panel__tags li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.scan-panel__tags li.is-accent { color: var(--accent); border-color: rgb(var(--accent-rgb) / .4); }

/* Without JS every feature is listed */
html:not(.js) .scan-panel[hidden] { display: block !important; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .scan__beam,
  .scan-spot.is-active::after { display: none; }
  .scan__links polyline.is-active { animation: none; stroke-dasharray: none; }
  .scan-panel { animation: none; }
}

/* ---------- Shared section type + scroll reveal ---------- */

.eyebrow {
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin-top: 14px;
  font: 800 clamp(30px, 3.4vw, 52px)/1.02 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-title span { color: var(--accent); }

/* Only hidden when JS is there to reveal it again */
.js [data-reveal] {
  transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s);
}
.js [data-reveal]:not(.is-in) {
  opacity: 0;
  translate: 0 28px;
}

/* ---------- Digital Garage & Passport (slide 3) ---------- */

.garage {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(42% 46% at 52% 50%, rgb(var(--accent-rgb) / .07), transparent 70%),
    var(--bg);
}
.garage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: center;
}

.garage__lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: #c9cdd2;
  text-wrap: pretty;
}
.garage__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.garage__tiles li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 13px;
  line-height: 1.3;
  color: #d8dade;
  transition: border-color .3s, translate .3s var(--ease);
}
.garage__tiles li:hover {
  border-color: var(--line-strong);
  translate: 0 -3px;
}
.garage__tiles .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 1.7;
}
.garage__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.garage__note {
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Phone mockups: every size inside is in em, scaled from the phone width */
.garage__phones {
  --pw: clamp(200px, 17vw, 262px);
  position: relative;
  height: calc(var(--pw) * 2.32);
}
.phone {
  position: absolute;
  width: var(--pw);
  aspect-ratio: 9 / 19.2;
  padding: calc(var(--pw) * .035);
  border-radius: calc(var(--pw) * .17);
  background: linear-gradient(145deg, #3a4048, #0d0f12 40%, #22272d 70%, #0b0d10);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 0 60px -20px rgb(var(--accent-rgb) / .35);
  font-size: calc(var(--pw) / 22);
}
.phone--front {
  left: 0;
  top: 0;
  z-index: 2;
  rotate: -4deg;
  animation: float 7s ease-in-out infinite;
}
.phone--back {
  right: -8%;
  top: 12%;
  rotate: 5deg;
  scale: .92;
  animation: float 7s ease-in-out -3.5s infinite;
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.6em .95em .7em;
  overflow: hidden;
  border-radius: calc(var(--pw) * .14);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  color: var(--text);
}
.phone__screen::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 50%;
  translate: -50% 0;
  width: 5.4em;
  height: 1.45em;
  border-radius: 1em;
  background: #000;
}
.phone .icon { stroke-width: 1.8; }

.app__status {
  position: absolute;
  top: .95em;
  left: 1.7em;
  right: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 .74em/1 var(--font-body);
}
.app__sys { display: flex; align-items: center; gap: .3em; }
.app__sys i {
  width: .95em;
  height: .6em;
  border-radius: .15em;
  background: var(--text);
  opacity: .85;
}
.app__sys i:last-child { width: 1.5em; }

.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .3em;
}
.app__bar img { width: auto; height: .62em; }
.app__bar .icon { width: 1.2em; height: 1.2em; color: var(--muted); }

.app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1em;
}
.app__head b {
  font: 800 1.3em/1 var(--font-display);
  font-stretch: 118%;
}
.app__add {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / .14);
  color: var(--accent);
}
.app__add .icon { width: 1em; height: 1em; }

.app__tabs {
  display: flex;
  gap: .3em;
  margin-top: .9em;
  padding: .25em;
  border-radius: .8em;
  background: rgba(255, 255, 255, .05);
  font: 600 .7em/1 var(--font-body);
}
.app__tabs span {
  flex: 1;
  padding: .7em .4em;
  border-radius: .6em;
  text-align: center;
  color: var(--muted);
}
.app__tabs .is-on {
  background: var(--accent);
  color: var(--bg);
}

.app__vehicle {
  position: relative;
  margin-top: .9em;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 1em;
  background: #0d1014;
}
.app__vehicle img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.app__badge {
  position: absolute;
  top: .6em;
  right: .6em;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .4em .6em;
  border-radius: 1em;
  background: rgb(var(--bg-rgb) / .72);
  font: 600 .6em/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ice, #a8d4f0);
}
.app__badge .icon { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.app__vmeta { padding: .6em .75em .7em; }
.app__vmeta b {
  display: block;
  font: 700 .86em/1.2 var(--font-body);
}
.app__vmeta small {
  display: block;
  margin-top: .3em;
  font: 500 .64em/1.2 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}

.app__list { margin-top: .6em; }
.app__list li {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .66em .15em;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font: 500 .72em/1.2 var(--font-body);
}
.app__list li > .icon:first-child {
  width: 1.3em;
  height: 1.3em;
  color: var(--accent);
}
.app__list span { flex: 1; }
.app__list em {
  font: 600 .84em/1 var(--font-mono);
  font-style: normal;
  color: var(--muted);
}
.app__list em.is-ok { color: #a8d4f0; }
.app__chev { width: 1em; height: 1em; color: var(--dim); }

.app__nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: auto;
  padding: .7em .2em .2em;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.app__nav .icon { width: 1.3em; height: 1.3em; color: var(--dim); }
.app__nav .is-on {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / .14);
}
.app__nav .is-on .icon { color: var(--accent); }

/* Vehicle Passport (Phase 2) */
.passport {
  position: relative;
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid rgb(var(--accent-rgb) / .32);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(var(--accent-rgb) / .08), rgb(var(--accent-rgb) / 0) 40%),
    var(--panel);
  box-shadow: 0 30px 80px -40px rgb(var(--accent-rgb) / .35);
}
.passport__chip {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.passport__title {
  margin-top: 16px;
  font: 800 clamp(24px, 2.2vw, 32px)/1.05 var(--font-display);
  font-stretch: 125%;
  text-transform: uppercase;
}
.passport__sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #c9cdd2;
}
.passport__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.passport__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #dde6ea;
}
.passport__tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / .14);
  color: var(--accent);
}
.passport__tick .icon { width: 13px; height: 13px; stroke-width: 2.6; }

.passport__holo {
  position: relative;
  margin-top: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(60% 50% at 50% 70%, rgb(var(--accent-rgb) / .12), transparent 70%),
    #07090c;
}
.passport__holo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}
.passport__scan {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(168, 212, 240, .14), transparent);
  mix-blend-mode: screen;
  animation: scan 4.5s linear infinite;
}
@keyframes scan {
  to { translate: 0 440%; }
}
.passport__card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(var(--bg-rgb) / .72);
  backdrop-filter: blur(8px);
  font: 500 9.5px/1.35 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.passport__card img { width: 26px; height: auto; }
.passport__card b { font-weight: 700; letter-spacing: .14em; }
.passport__card small { display: block; color: var(--accent); }

/* ---------- Trusted Workshop Partners (slide 4) ---------- */

.partners {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid rgb(var(--text-rgb) / .06);
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(var(--accent-rgb) / .06), transparent 70%),
    var(--bg);
}

.partners__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.partners__lede {
  margin-top: 16px;
  max-width: 46em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: #c9cdd2;
}
.partners__all { flex: none; }

.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(var(--text-rgb) / .03), rgb(var(--text-rgb) / 0) 50%),
    var(--panel);
  color: #aeb4bb;
  transition: border-color .35s, color .35s, translate .35s var(--ease), box-shadow .35s;
}
.partner:hover {
  translate: 0 -4px;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -24px rgb(var(--accent-rgb) / .55);
}
.partner__mark {
  width: 44px;
  height: 44px;
  fill: currentColor;
}
.partner__mark .pl__accent {
  fill: #6b7682;
  transition: fill .35s;
}
.partner:hover .partner__mark .pl__accent { fill: var(--accent); }
.partner__name {
  font: 800 15px/1.1 var(--font-display);
  font-stretch: 118%;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.partner__name small {
  display: block;
  margin-top: 5px;
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: .3em;
  color: var(--dim);
}
.partner__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 10px;
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
  border-top: 1px solid rgb(var(--text-rgb) / .06);
  font: 500 9.5px/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.partner__tags span { white-space: nowrap; }
.partner__tags span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 5px 2px 0;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  opacity: .7;
}

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 28px;
  margin-top: clamp(36px, 4vw, 56px);
}
.perks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.perk__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(var(--accent-rgb) / .12);
  color: var(--accent);
}
.perk__icon .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.perks b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.perks p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.join {
  display: flex;
  align-items: center;
  gap: 18px 24px;
  margin-top: clamp(36px, 4vw, 56px);
  padding: 20px 22px;
  border: 1px solid rgb(var(--accent-rgb) / .28);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgb(var(--accent-rgb) / .1), rgb(var(--accent-rgb) / 0) 60%),
    var(--panel);
}
.join__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.join__icon .icon { width: 22px; height: 22px; }
.join__copy { flex: 1; }
.join__copy b {
  font: 800 18px/1.2 var(--font-display);
  font-stretch: 118%;
  text-transform: uppercase;
}
.join__copy p {
  margin-top: 4px;
  font-size: 14.5px;
  color: #c9cdd2;
}

/* ---------- A Complete Automotive Ecosystem (slide 5) ---------- */

.world {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid rgb(var(--text-rgb) / .06);
  background: var(--bg);
}
.world__head { max-width: 860px; }
.world__lede {
  margin-top: 16px;
  max-width: 46em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: #c9cdd2;
}

.world__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}
.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  scroll-margin-top: calc(var(--nav-h) + 24px);
  transition: border-color .4s, translate .4s var(--ease), box-shadow .4s;
}
.world-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px 2px var(--accent-glow);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.world-card:hover {
  translate: 0 -4px;
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -30px rgb(var(--accent-rgb) / .5);
}
.world-card:hover::after { transform: scaleX(1); }

.world-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.world-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}
.world-card:hover .world-card__media img { scale: 1.06; }
/* Fade the photo into the card body */
.world-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgb(var(--bg-2-rgb) / .95), rgb(var(--bg-2-rgb) / 0));
}
.world-card__chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / .72);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.world-card__body {
  position: relative;
  padding: 0 18px 22px;
  margin-top: -22px;
}
.world-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.world-card__icon .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.world-card h3 {
  margin-top: 14px;
  font: 800 16px/1.15 var(--font-display);
  font-stretch: 118%;
  text-transform: uppercase;
}
.world-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.world__hint {
  display: none;
  margin-top: 16px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Pre-register CTA (slide 6) ---------- */

.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 84vh, 840px);
  padding-block: clamp(72px, 8vw, 112px);
  overflow: hidden;
  border-top: 1px solid rgb(var(--text-rgb) / .06);
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 30% 70%, rgb(var(--accent-rgb) / .25), transparent 70%),
    var(--bg-2);
}
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
}
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgb(var(--bg-rgb) / .96) 0%, rgb(var(--bg-rgb) / .84) 34%, rgb(var(--bg-rgb) / .2) 62%, rgb(var(--bg-rgb) / 0) 80%),
    linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 18%, rgb(var(--bg-rgb) / 0) 72%, var(--bg) 100%);
}
.cta__script {
  position: absolute;
  left: clamp(16px, 5vw, 80px);
  bottom: clamp(56px, 9vw, 128px);
  z-index: 1;
  font: 400 clamp(42px, 5vw, 80px)/.95 "Mr Dafoe", "Brush Script MT", cursive;
  color: var(--text);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .65);
  rotate: -6deg;
}

.cta__inner {
  display: flex;
  justify-content: flex-end;
}
.cta__panel { width: min(100%, 520px); }
.cta__lede {
  margin-top: 14px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: #c9cdd2;
}

.cta__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  padding: 0;
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgb(var(--text-rgb) / .14);
  border-radius: 12px;
  background: rgb(var(--bg-rgb) / .62);
  backdrop-filter: blur(8px);
  font: 500 15px/1 var(--font-body);
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .18);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field--choice,
.field--wide { grid-column: 1 / -1; }
.field--choice legend { margin-bottom: 7px; }
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices label {
  position: relative;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choices span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgb(var(--text-rgb) / .16);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / .5);
  font: 600 14px/1 var(--font-body);
  color: #c9cdd2;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s;
}
.choices span:hover { border-color: rgb(var(--accent-rgb) / .5); }
.choices input:checked + span {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / .14);
  color: var(--text);
}
.choices input:focus-visible + span { box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .25); }

.cta__error {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--danger);
}
.cta__submit {
  grid-column: 1 / -1;
  justify-content: center;
  height: 54px;
}
/* Consent is recorded with the sign-up (PRD PRE-01), so it is an explicit checkbox */
.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta__done {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(var(--accent-rgb) / .08);
}
.cta__done[hidden] { display: none; }
.cta__done-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.cta__done-icon .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.cta__done p {
  font-size: 14.5px;
  line-height: 1.5;
  color: #c9cdd2;
}
.cta__done b {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  color: var(--text);
}

.cta__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgb(var(--text-rgb) / .08);
  scroll-margin-top: calc(var(--nav-h) + 160px);
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 1px solid rgb(var(--text-rgb) / .18);
  border-radius: 12px;
  background: rgb(var(--bg-rgb) / .6);
  font: 700 15px/1.15 var(--font-body);
  color: var(--text);
}
.store .icon { width: 22px; height: 22px; color: var(--accent); }
.store > span { display: grid; }
.store small {
  font: 500 9.5px/1.3 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */

/* Big sign-off: a short call to action, compact links, then the official wordmark
   spread across the full width with the tagline under it, as in the lockup */
.footer {
  position: relative;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgb(var(--text-rgb) / .07);
  background:
    radial-gradient(55% 45% at 50% 100%, rgb(var(--accent-rgb) / .12), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgb(var(--text-rgb) / .07);
}
.footer__cta-title {
  font: 800 clamp(24px, 3vw, 40px)/1.05 var(--font-display);
  font-stretch: 112%;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px)) 1fr;
  gap: 32px;
  padding-top: clamp(32px, 4vw, 48px);
}
.footer__follow { justify-self: end; }

.footer__sign {
  display: block;
  margin-top: clamp(48px, 7vw, 96px);
}
.footer__sign img {
  width: 100%;
  height: auto;
  /* No mask here: a mask would clip the glow to the image box */
  filter: drop-shadow(0 0 28px rgb(var(--accent-rgb) / .22));
}
/* Same rules-either-side treatment as the official lockup */
.footer__tagline {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-top: clamp(12px, 1.6vw, 22px);
  font: 300 clamp(9px, 1.15vw, 16px)/1.2 var(--font-body);
  font-stretch: 112%;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #c9cdd2;
}
.footer__tagline::before,
.footer__tagline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.footer__tagline::after { transform: scaleX(-1); }

.footer__col h3 {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer__col ul {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.footer__col a {
  font-size: 14.5px;
  color: #b4bac1;
  transition: color .2s;
}
.footer__col a:hover { color: var(--text); }

.footer .footer__social {
  display: flex;
  gap: 8px;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(var(--text-rgb) / .14);
  border-radius: 50%;
  color: #c9cdd2;
  transition: color .25s, border-color .25s, background-color .25s;
}
.footer__social a:hover {
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
}
.footer__social .icon { width: 18px; height: 18px; stroke-width: 1.8; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 24px max(24px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(var(--text-rgb) / .07);
  font-size: 13px;
  color: var(--dim);
}
.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal a { color: var(--dim); transition: color .2s; }
.footer__legal a:hover { color: var(--text); }
.footer__motto {
  margin-left: auto;
  font: 600 13px/1 var(--font-body);
  color: #c9cdd2;
}

/* ---------- Entrance motion ---------- */

.reveal {
  opacity: 0;
  translate: 0 16px;
  animation: rise .9s var(--ease) var(--d, 0s) forwards;
}
@keyframes rise {
  to { opacity: 1; translate: 0 0; }
}

/* Hold the copy and nav until the vehicles light up */
.intro:not(.ignited) .reveal { animation-play-state: paused; }
.intro:not(.ignited) .nav { opacity: 0; translate: 0 -12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; translate: none; }
  .hero__poster, .hero__grain { animation: none; }
  .hero__layer { translate: none; scale: none; }
  .hero__sweep { display: none; }
  .js [data-reveal] { transition: none; }
  .js [data-reveal]:not(.is-in) { opacity: 1; translate: none; }
  .phone--front, .phone--back, .passport__scan { animation: none; }
  .world-card__media img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav__link { font-size: 14px; }
}

@media (max-width: 1100px) {
  /* Feature strip: icon + name only, so all seven fit without sideways scrolling */
  .features { gap: 8px; }
  .feature { gap: 6px; padding: 14px 6px 12px; }
  .feature p { display: none; }
  .feature__icon { width: 26px; height: 26px; margin-bottom: 2px; }
  .feature h3 { font-size: 13px; }
}

/* Phones: four on the first row, three centred below */
@media (max-width: 820px) {
  .features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .features > li { flex: 0 0 calc((100% - 3 * 8px) / 4); }
  .feature { padding: 12px 4px 10px; }
  .feature__icon { width: 22px; height: 22px; }
  .feature h3 { font-size: 11.5px; font-stretch: 100%; }
}

@media (max-width: 1120px) {
  :root { --nav-h: 68px; }

  .nav__toggle { display: inline-flex; }

  .nav__menu {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 56px) 24px;
    background: rgb(var(--bg-rgb) / .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity .25s, translate .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
  .nav__link {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .nav__link::after { display: none; }
}

@media (max-width: 820px) {
  .hero__poster, .hero__video { object-position: 70% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / .9) 0%, rgb(var(--bg-rgb) / .55) 40%, rgb(var(--bg-rgb) / .35) 60%, var(--bg) 92%),
      linear-gradient(90deg, rgb(var(--bg-rgb) / .7) 0%, transparent 70%);
  }
  .hero__inner { align-items: flex-start; padding-top: 28px; }
}

/* Portrait phones get the 9:16 cut: copy on top, vehicles fill the lower half of the first screen */
@media (max-width: 820px) and (orientation: portrait) {
  .hero__media {
    bottom: auto;
    height: 100vh;
    height: 100svh;
  }
  .hero__poster, .hero__video { object-position: 50% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / .92) 0%, rgb(var(--bg-rgb) / .7) 26%, rgb(var(--bg-rgb) / .1) 50%, rgb(var(--bg-rgb) / 0) 72%, var(--bg) 100%);
  }
  .hero__inner { padding-top: 20px; }
  .stats { margin-top: clamp(180px, 34svh, 340px); }
  .hero__bars::before, .hero__bars::after { max-height: 9vh; }
}

@media (max-width: 560px) {
  .brand__mark { height: 32px; }
  .brand__word { height: 10px; }

  .hero__title { font-size: 28px; }


  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

}


/* Ecosystem scan: narrower side columns on tablets */
@media (max-width: 1100px) {
  .scan__stage { --car-w: 52%; }
  .scan-tag { gap: 8px; padding: 8px 10px; font-size: 12.5px; }
  .scan-tag__num { display: none; }
}

/* Ecosystem scan on phones: car on top, tags as a grid below it, no callout lines */
@media (max-width: 820px) {
  .scan__stage { --car-w: 100%; }
  .scan__links { display: none; }
  .scan__tags {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 8px;
    margin-top: 18px;
  }
  .scan-tag {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    max-width: none;
    padding: 10px 12px;
    font-size: 13px;
  }
  .scan-tag__num { display: inline; }
  .scan-spot { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .scan__panels { margin-top: 24px; }
}

/* Garage: two columns on tablets, passport below as a wide card */
@media (max-width: 1180px) {
  .garage__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .garage__phones { --pw: clamp(200px, 26vw, 262px); }
  .passport {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }
  .passport > :not(.passport__holo) { grid-column: 1; }
  .passport__chip { justify-self: start; }
  .passport__holo {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0;
  }
}

/* Garage on phones: single column, phones side by side */
@media (max-width: 820px) {
  .garage__grid { grid-template-columns: minmax(0, 1fr); }
  .garage__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garage__phones {
    --pw: min(44vw, 230px);
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    height: calc(var(--pw) * 2.25);
  }
  .phone--back { right: 0; }
  .passport { display: block; }
  .passport__holo { margin-top: 20px; }
}

/* Partners: tablets */
@media (max-width: 1100px) {
  .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
}

/* Partners: phones */
@media (max-width: 640px) {
  .partners__head { flex-direction: column; align-items: flex-start; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .partner { padding: 22px 10px 16px; }
  .perks { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .join { flex-direction: column; align-items: flex-start; }
  .join .btn { width: 100%; justify-content: center; }
}

/* Ecosystem cards: swipeable rail below desktop width */
@media (max-width: 1100px) {
  .world__rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 34%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Bleed to the screen edges so the next card peeks in from the side */
    --gutter: clamp(16px, 4vw, 56px);
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
  }
  .world__rail::-webkit-scrollbar { display: none; }
  .world-card { scroll-snap-align: start; }
  .world__hint { display: block; }
}
@media (max-width: 640px) {
  .world__rail { grid-auto-columns: 80%; }
}

/* CTA on phones: photo on top, form underneath */
@media (max-width: 820px) {
  .cta {
    display: block;
    min-height: 0;
    padding-top: 0;
  }
  .cta__media {
    position: relative;
    z-index: 0;
    height: max(62vw, 260px);
  }
  .cta__media img { object-position: 24% 60%; }
  .cta__media::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 22%, rgb(var(--bg-rgb) / 0) 55%, var(--bg) 100%);
  }
  .cta__script { bottom: 14px; font-size: 40px; }
  .cta__inner { margin-top: 8px; }
  .cta__panel { width: 100%; }
}
@media (max-width: 480px) {
  .cta__form { grid-template-columns: minmax(0, 1fr); }
  .store { flex: 1 1 0; }
}

/* Footer: socials on their own row on tablets; on phones the CTA stacks and the
   three link columns stay side by side so the list stays short */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__follow { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .footer__cta { flex-direction: column; align-items: stretch; }
  .footer__cta .btn { justify-content: center; }
  .footer__grid { gap: 28px 12px; }
  .footer__col ul { gap: 10px; margin-top: 14px; }
  .footer__col a { font-size: 13.5px; }
  .footer__tagline { letter-spacing: .18em; gap: .8em; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__motto { margin-left: 0; }
}
