/* ============================================================
   China Wheels JA — site v2 "Night Showroom"
   Cinematic scroll system. Brand: #E31837 red + monochrome,
   Outfit headings / DM Sans body (per design/DESIGN.md).
   ============================================================ */

:root {
  --red: #E31837;
  --red-hover: #c71530;
  --red-tint: rgba(227, 24, 55, 0.1);
  --red-border: rgba(227, 24, 55, 0.3);
  --bg-light: #ffffff;
  --bg-grey: #f7f7f7;
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --ink: #1a1a1a;
  --body: #555555;
  --muted: #888888;
  --white: #ffffff;
  --white-45: rgba(255, 255, 255, 0.45);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-06: rgba(255, 255, 255, 0.06);
  --line: #eeeeee;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-cine: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-darker);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--wide { width: min(1400px, 94vw); margin-inline: auto; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
}
.display--md { font-size: clamp(2rem, 5vw, 4rem); }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--white-45); }
.lead { font-size: 1.15rem; color: var(--body); max-width: 56ch; }
.on-dark .lead { color: var(--white-45); }

.skip-nav {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-nav:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-cine), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: var(--white-12); color: #fff; background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn-ghost--dark { border-color: #d9d9d9; color: var(--ink); background: transparent; }
.btn-ghost--dark:hover { border-color: var(--ink); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  display: flex; align-items: center;
  z-index: 100;
  transition: transform 0.45s var(--ease-cine), background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--white-06);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  width: min(1400px, 94vw); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo img { height: 34px; width: auto; }
/* dealer mark reversed to white on dark surfaces — the primary logo's black
   text disappears on #0a0a0a (flagged for Matthew/Ryan sign-off) */
.nav__logo img, .footer__logo img { filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white-45);
  transition: color 0.25s;
  padding: 6px 2px;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__clock {
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white-45);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav__clock strong { color: #fff; font-weight: 600; }
.nav .btn { padding: 0.6em 1.3em; font-size: 0.85rem; }

.nav__burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav__burger span { display: block; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,10,0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 981px) { .mobile-menu { display: none; } }
.mobile-menu a {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700;
  text-transform: uppercase; color: #fff; letter-spacing: 0.02em;
}
.mobile-menu .btn { margin-top: 1rem; }

/* ---------- hero (scroll-scrubbed video) ---------- */
.hero { position: relative; height: 480vh; background: var(--bg-darker); }
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.05) 34%, rgba(10,10,10,0.05) 60%, rgba(10,10,10,0.78) 100%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  color: #fff;
  will-change: transform, opacity, filter;
}
.hero__content .display { color: #fff; max-width: 12ch; }
.hero__content .display em { font-style: normal; color: var(--red); }
.hero__sub { margin-top: 1.2rem; font-size: 1.05rem; color: var(--white-45); max-width: 52ch; }
.hero__ctas { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero__cue {
  position: absolute; right: max(4vw, 2rem); bottom: clamp(3rem, 8vh, 6rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--white-45);
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__cue::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(180deg, var(--red), transparent);
  animation: cue-drop 2s var(--ease-cine) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- letter-spread band ---------- */
.letterband {
  position: relative; overflow: hidden;
  background: var(--bg-darker);
  padding: 0;
  height: 130vh;
}
.letterband__bg {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden;
}
.letterband__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  will-change: transform;
  transform: scale(1.12);
}
.letterband__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.55) 100%);
}
.letterband__rows {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1.2vh;
  pointer-events: none;
}
.letterband__row {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 7rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  text-align: center;
  will-change: transform;
  text-shadow: 0 4px 60px rgba(0,0,0,0.5);
}
.letterband__row--ghost { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.35); }
.letterband__label {
  position: absolute; left: 0; right: 0; bottom: 7vh; text-align: center;
}

/* ---------- fleet rail (horizontal scroll) ---------- */
.rail { position: relative; background: var(--bg-darker); }
.rail__head { padding: clamp(4rem, 9vh, 7rem) 0 2.5rem; color: #fff; }
.rail__head .display--md { color: #fff; margin-top: 0.6rem; }
.rail__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail__track {
  display: flex; gap: clamp(1rem, 2vw, 1.8rem);
  padding-inline: max(4vw, 2rem);
  will-change: transform;
}
.rail__counter {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  color: var(--white-45); font-size: 0.85rem; letter-spacing: 0.2em;
  padding: 0 max(4vw, 2rem) 1.4rem;
}
.rail__counter strong { color: #fff; font-size: 1.4rem; letter-spacing: 0.05em; }
.rail__hint { color: var(--white-45); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-head); padding: 1.4rem max(4vw, 2rem) 0; }

.mcard {
  position: relative;
  flex: none;
  width: clamp(300px, 34vw, 460px);
  aspect-ratio: 4 / 4.6;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--white-06);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color 0.3s;
}
.mcard:hover { border-color: rgba(255,255,255,0.25); }
.mcard__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  will-change: background-position, transform;
  transition: transform 0.6s var(--ease-cine);
}
.mcard:hover .mcard__img { transform: scale(1.04); }
.mcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(6,6,6,0.88) 100%);
}
.mcard__body { position: relative; z-index: 1; padding: 1.4rem 1.5rem 1.5rem; color: #fff; }
.mcard__brand { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--white-45); }
.mcard__name { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 700; text-transform: uppercase; margin-top: 0.25rem; }
.mcard__chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.chip {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.35em 0.9em; border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--white-12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.chip--red { background: var(--red-tint); border-color: var(--red-border); color: #ff9daf; }
.mcard__cta {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}
.mcard__cta::after { content: "→"; color: var(--red); transition: transform 0.3s; }
.mcard:hover .mcard__cta::after { transform: translateX(5px); }

/* ---------- reveal panel + stats ---------- */
.reveal-panel { background: var(--bg-darker); padding: clamp(5rem, 12vh, 9rem) 0; }
.reveal-panel__box {
  background: var(--bg-dark);
  border: 1px solid var(--white-06);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 5rem);
  will-change: clip-path;
  color: #fff;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem); margin-top: 3rem; }
.stat { border-top: 1px solid var(--white-12); padding-top: 1.2rem; }
.stat__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.45em; font-weight: 600; color: var(--red); margin-left: 0.15em; }
.stat__label { margin-top: 0.5rem; color: var(--white-45); font-size: 0.9rem; }

/* ---------- brand collections ---------- */
.brands { background: var(--bg-darker); padding: clamp(4rem, 10vh, 8rem) 0; }
.brands__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.bcard {
  position: relative;
  border: 1px solid var(--white-06);
  border-radius: 16px;
  background: var(--bg-dark);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.45s var(--ease-cine);
  color: #fff;
}
.bcard:hover { border-color: var(--red-border); transform: translateY(-4px); }
.bcard__logo img { height: 30px; width: auto; opacity: 0.92; }
.bcard__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; }
.bcard__desc { color: var(--white-45); font-size: 0.92rem; max-width: 34ch; }
.bcard__count { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.bcard__count::after { content: " →"; color: var(--red); }

/* ---------- EV spotlight (light) ---------- */
.ev { background: var(--bg-light); color: var(--ink); padding: clamp(5rem, 12vh, 9rem) 0; }
.ev__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 2.4rem; }
.ev__visual { position: relative; }
.ev__visual img { width: 100%; height: auto; }
.ev__visual .ev__motor {
  position: absolute; right: -4%; bottom: -10%;
  width: 44%;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.18));
}
.glass-card {
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}
.ev__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.6rem; margin-top: 1.4rem; }
.ev__spec { border-top: 2px solid var(--line); padding-top: 0.7rem; }
.ev__spec b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; display: block; color: var(--ink); }
.ev__spec span { color: var(--muted); font-size: 0.85rem; }
.ev__note { margin-top: 1.5rem; color: var(--body); font-size: 0.95rem; }

/* ---------- service band ---------- */
.service {
  position: relative; color: #fff;
  padding: clamp(5rem, 14vh, 10rem) 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.service__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  will-change: transform; transform: scale(1.08);
  opacity: 0.38;
}
.service__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.92) 20%, rgba(10,10,10,0.35) 100%); }
.service__inner { position: relative; z-index: 1; max-width: 620px; }
.service__points { list-style: none; margin: 1.8rem 0 2.2rem; padding: 0; display: grid; gap: 0.9rem; }
.service__points li { display: flex; gap: 0.8rem; color: rgba(255,255,255,0.85); }
.service__points li::before { content: "—"; color: var(--red); font-weight: 700; flex: none; }

/* ---------- CTA finale ---------- */
.finale {
  background: var(--bg-darker); color: #fff;
  padding: clamp(6rem, 16vh, 11rem) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.finale .display { color: #fff; margin-inline: auto; }
.finale__addr { margin-top: 1.4rem; color: var(--white-45); font-size: 1.05rem; }
.finale__ctas { display: flex; gap: 1rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.finale__phone { font-family: var(--font-head); font-weight: 600; color: #fff; }
.finale__phone:hover { color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--bg-darker); color: var(--white-45); border-top: 1px solid var(--white-06); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.4rem; padding: clamp(3rem, 7vh, 5rem) 0 2.4rem; }
.footer__logo img { height: 30px; }
.footer__tag { margin-top: 1rem; font-size: 0.9rem; max-width: 30ch; }
.footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a:hover { color: #fff; }
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem 0 2rem; border-top: 1px solid var(--white-06);
  font-size: 0.8rem;
}

/* ---------- vehicle detail (VDP) ---------- */
.vdp-hero { position: relative; height: 92vh; min-height: 560px; overflow: hidden; background: var(--bg-darker); }
.vdp-hero__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  will-change: transform; transform: scale(1.08);
}
.vdp-hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.12) 40%, rgba(10,10,10,0.85) 100%);
}
.vdp-hero__content { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(2.5rem, 7vh, 5rem); color: #fff; }
.vdp-hero__brandline { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.vdp-hero__brand { font-family: var(--font-head); letter-spacing: 0.34em; text-transform: uppercase; font-size: 0.8rem; color: var(--white-45); }
.vdp-hero__name {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #fff;
}
.vdp-hero__tagline { margin-top: 0.9rem; color: var(--white-45); font-size: 1.1rem; max-width: 52ch; }
.breadcrumb { font-size: 0.8rem; color: var(--white-45); margin-bottom: 1.6rem; font-family: var(--font-head); letter-spacing: 0.08em; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.4em; }

.specbar { background: var(--bg-darker); color: #fff; padding: clamp(2.6rem, 6vh, 4rem) 0; border-bottom: 1px solid var(--white-06); }
.specbar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.8rem 1.4rem; }
.specbar .stat { border-top-color: var(--white-12); }
.specbar .stat__num { font-size: clamp(1.7rem, 3vw, 2.6rem); }

.gallery { background: var(--bg-darker); padding: clamp(3rem, 8vh, 6rem) 0; }
.gallery__strip {
  display: flex; gap: 1rem; overflow-x: auto;
  padding: 1.8rem max(4vw, 2rem) 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.gallery__strip img {
  height: clamp(240px, 42vh, 420px); width: auto; flex: none;
  border-radius: 12px; scroll-snap-align: center;
  border: 1px solid var(--white-06);
}
.gallery .eyebrow { margin-left: max(4vw, 2rem); }

.spec-detail { background: var(--bg-light); padding: clamp(4rem, 10vh, 7rem) 0; }
.spec-detail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.spec-group { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem; background: #fff; }
.spec-group h3 { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.spec-group table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-group td { padding: 0.5em 0; border-bottom: 1px solid var(--bg-grey); vertical-align: top; }
.spec-group td:first-child { color: var(--muted); padding-right: 1em; white-space: normal; }
.spec-group td:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.spec-group tr:last-child td { border-bottom: 0; }

.faq { background: var(--bg-grey); padding: clamp(4rem, 10vh, 7rem) 0; }
.faq__list { margin-top: 2rem; display: grid; gap: 0.8rem; max-width: 860px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.4rem;
}
.faq summary {
  font-family: var(--font-head); font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; font-weight: 400; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--body); margin: 0.8rem 0 0.2rem; }

.related { background: var(--bg-darker); padding: clamp(4rem, 10vh, 7rem) 0; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.related .mcard { width: auto; aspect-ratio: 4 / 4.4; }

/* ---------- vehicles index ---------- */
.vindex-hero { background: var(--bg-darker); color: #fff; padding: calc(var(--nav-h) + clamp(3rem, 9vh, 6rem)) 0 clamp(2.5rem, 6vh, 4rem); }
.vindex-hero .display--md { color: #fff; margin-top: 0.7rem; }
.filterbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2rem; }
.filterbar button {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--white-45);
  border: 1px solid var(--white-12); border-radius: 9999px;
  padding: 0.55em 1.4em; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filterbar button:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.filterbar button.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.vindex { background: var(--bg-darker); padding: 0 0 clamp(4rem, 10vh, 7rem); }
.brand-section { padding-top: clamp(3rem, 7vh, 5rem); }
.brand-section__head { display: flex; align-items: center; gap: 1.4rem; padding-bottom: 1.6rem; }
.brand-section__head img { height: 28px; width: auto; }
.brand-section__head .count { color: var(--white-45); font-size: 0.85rem; font-family: var(--font-head); letter-spacing: 0.15em; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.vgrid .mcard { width: auto; aspect-ratio: 4 / 4.2; }
.vgrid .mcard.is-filtered-out { display: none; }

/* ---------- generic content page ---------- */
.page-hero { background: var(--bg-darker); color: #fff; padding: calc(var(--nav-h) + clamp(3rem, 9vh, 6rem)) 0 clamp(2.5rem, 7vh, 4.5rem); }
.page-hero .display--md { color: #fff; margin-top: 0.7rem; max-width: 18ch; }
.page-body { background: var(--bg-light); padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.page-body--grey { background: var(--bg-grey); }
.prose { max-width: 760px; color: var(--body); }
.prose h2 { color: var(--ink); font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { color: var(--ink); font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.prose a { color: var(--red); }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; margin-top: 2.4rem; }
.icard { border: 1px solid var(--line); border-radius: 14px; padding: 1.7rem; background: #fff; }
.icard h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.icard p { color: var(--body); font-size: 0.95rem; margin: 0; }
.icard .chip-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.icard .chip { background: var(--bg-grey); border-color: var(--line); color: var(--body); }

/* ---------- WhatsApp inline CTA ---------- */
.wa-cta {
  background: var(--bg-light);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  text-align: center;
}
.wa-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.wa-cta p { color: var(--body); margin: 0.8rem auto 1.8rem; max-width: 52ch; }
.wa-cta__meta { margin-top: 1.4rem; color: var(--muted); font-size: 0.85rem; }
.wa-cta__meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 0.45em; }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease-cine), transform 0.9s var(--ease-cine);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- cursor spotlight ---------- */
.spotlight {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: radial-gradient(560px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(227,24,55,0.07), transparent 65%);
  opacity: 0; transition: opacity 0.5s;
}
.spotlight.is-on { opacity: 1; }

/* ---------- film fabric: grain + scroll progress (injected by JS) ---------- */
.grain {
  position: fixed; inset: -60px; z-index: 96; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-jitter 0.9s steps(6) infinite;
}
@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-18px, 12px); }
  40% { transform: translate(14px, -20px); }
  60% { transform: translate(-10px, -14px); }
  80% { transform: translate(20px, 16px); }
  100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--red); z-index: 130;
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* ---------- ticker strip ---------- */
.ticker {
  overflow: hidden; background: var(--bg-darker);
  border-block: 1px solid var(--white-06);
  padding: 1rem 0;
}
.ticker__track {
  display: flex; gap: 3.2rem; width: max-content; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--white-45);
  animation: ticker-scroll 30s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 3.2rem; }
.ticker__track em { color: var(--red); font-style: normal; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- film page hero (full-bleed image + drifting ghost word) ---------- */
.pagefilm {
  position: relative; height: 88vh; min-height: 540px;
  overflow: hidden; background: var(--bg-darker); color: #fff;
}
.pagefilm__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  will-change: transform; transform: scale(1.1);
}
.pagefilm__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0.86) 100%);
}
.pagefilm__word {
  position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 11rem); letter-spacing: 0.3em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.32);
  white-space: nowrap; pointer-events: none; will-change: transform;
}
.pagefilm__content {
  position: absolute; inset: auto 0 0 0;
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}
.pagefilm__content .display--md { color: #fff; margin-top: 0.7rem; max-width: 20ch; }

/* ---------- glass-on-dark panels ---------- */
.glass-dark {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--white-12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 18px;
}
.specbar--overlap { padding-top: 0; margin-top: -76px; position: relative; z-index: 6; border-bottom: 0; background: transparent; }
.specbar--overlap .glass-dark { padding: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- dark spec detail + dark FAQ ---------- */
.spec-detail--dark { background: var(--bg-darker); color: #fff; }
.spec-detail--dark .display { color: #fff; }
.spec-detail--dark .spec-group { background: rgba(255,255,255,0.03); border-color: var(--white-06); }
.spec-detail--dark .spec-group td { border-bottom-color: rgba(255,255,255,0.07); }
.spec-detail--dark .spec-group td:first-child { color: var(--white-45); }
.spec-detail--dark .spec-group td:last-child { color: #fff; }
.faq--dark { background: var(--bg-dark); color: #fff; }
.faq--dark .display { color: #fff; }
.faq--dark details { background: rgba(255,255,255,0.03); border-color: var(--white-06); }
.faq--dark summary { color: #fff; }
.faq--dark details p { color: var(--white-45); }

/* ---------- giant next-model handoff ---------- */
.nextlink {
  display: block; position: relative; overflow: hidden;
  background: var(--bg-darker); border-top: 1px solid var(--white-06);
  padding: clamp(4rem, 11vh, 8rem) 0;
}
.nextlink__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s var(--ease-cine), transform 0.8s var(--ease-cine);
  transform: scale(1.06);
}
.nextlink__img::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,0.72); }
.nextlink:hover .nextlink__img { opacity: 1; transform: scale(1); }
.nextlink__inner { position: relative; z-index: 1; }
.nextlink__name {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 8.5vw, 7rem); line-height: 1; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  transition: color 0.45s var(--ease-cine);
  display: inline-block; margin-top: 0.6rem;
}
.nextlink:hover .nextlink__name { color: #fff; -webkit-text-stroke-color: transparent; }
.nextlink__arrow { color: var(--red); margin-left: 0.25em; }

/* ---------- per-letter hero name rise ---------- */
.vdp-hero__name span {
  display: inline-block; opacity: 0; transform: translateY(0.45em);
  animation: letter-rise 0.7s var(--ease-cine) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes letter-rise { to { opacity: 1; transform: none; } }

/* ---------- showroom: feature tiles + ghost brand logo ---------- */
.vgrid .mcard--wide { grid-column: span 2; aspect-ratio: 16 / 8.6; }
.brand-section { position: relative; }
.brand-section__ghost {
  position: absolute; right: 2vw; top: clamp(1rem, 4vh, 3rem);
  height: clamp(70px, 12vw, 160px); width: auto;
  opacity: 0.05; pointer-events: none;
}

@media (max-width: 760px) {
  .vgrid .mcard--wide { grid-column: span 1; aspect-ratio: 4 / 4.2; }
  .pagefilm { height: 72vh; }
  .specbar--overlap { margin-top: -40px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .progress { display: none; }
  .ticker__track { animation: none; }
  .pagefilm__img { transform: none; }
  .vdp-hero__name span { opacity: 1; transform: none; animation: none; }
  .nextlink__img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__clock { display: none; }
  .nav__burger { display: flex; }
  .brands__grid { grid-template-columns: 1fr; }
  .ev__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; }
  .hero__cue { display: none; }
  .letterband { height: 100vh; }
  .rail__sticky { position: relative; height: auto; padding: 1rem 0 3rem; }
  .rail__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .rail__track .mcard { scroll-snap-align: center; width: 82vw; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .vdp-hero { height: 78vh; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .letterband { height: auto; }
  .letterband__bg { position: relative; height: 70vh; }
  .letterband__bg img { transform: none; }
  .rail__sticky { position: relative; height: auto; }
  .rail__track { overflow-x: auto; }
  .hero__cue::after { animation: none; }
  .spotlight { display: none; }
  .vdp-hero__img, .service__bg { transform: none; }
}
