/* ============================================================
   LUXURY RENT A CAR — Midnight Noir
   Theme system: gold (default) / champagne / platinum
   + scroll-cinematic canvas sections
   ============================================================ */

:root {
  --font-display: "Syncopate", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

body[data-theme="gold"] {
  --bg: #0a0a0c;
  --bg-2: #101013;
  --surface: #141417;
  --line: rgba(201, 163, 92, 0.18);
  --line-soft: rgba(236, 232, 223, 0.08);
  --accent: #c9a35c;
  --accent-bright: #e8c984;
  --accent-dim: rgba(201, 163, 92, 0.12);
  --accent-ink: #0a0a0c;
  --text: #ece8df;
  --muted: #8d8878;
  --glow: rgba(201, 163, 92, 0.14);
}

body[data-theme="champagne"] {
  --bg: #0d0b08;
  --bg-2: #14110c;
  --surface: #181410;
  --line: rgba(216, 187, 142, 0.2);
  --line-soft: rgba(240, 233, 220, 0.08);
  --accent: #d8bb8e;
  --accent-bright: #f0dcb4;
  --accent-dim: rgba(216, 187, 142, 0.12);
  --accent-ink: #0d0b08;
  --text: #f0e9dc;
  --muted: #9a8e79;
  --glow: rgba(216, 187, 142, 0.13);
}

body[data-theme="platinum"] {
  --bg: #08090b;
  --bg-2: #0e1013;
  --surface: #121418;
  --line: rgba(200, 204, 212, 0.16);
  --line-soft: rgba(228, 230, 235, 0.08);
  --accent: #c8ccd4;
  --accent-bright: #eef0f4;
  --accent-dim: rgba(200, 204, 212, 0.1);
  --accent-ink: #08090b;
  --text: #e8eaee;
  --muted: #7f838c;
  --glow: rgba(200, 204, 212, 0.1);
}

/* ---------- LIGHT MODE (day) ---------- */
body[data-mode="light"] {
  --bg: #f4f0e8;
  --bg-2: #eae4d8;
  --surface: #fbf8f2;
  --line: rgba(40, 33, 20, 0.18);
  --line-soft: rgba(40, 33, 20, 0.09);
  --text: #1a1610;
  --muted: #79705e;
  --vignette: rgba(60, 50, 30, 0.10);
}
body[data-mode="light"][data-theme="gold"] {
  --accent: #a8792e;
  --accent-bright: #8a611f;
  --accent-dim: rgba(168, 121, 46, 0.14);
  --glow: rgba(168, 121, 46, 0.16);
}
body[data-mode="light"][data-theme="champagne"] {
  --bg: #f6f1e7; --bg-2: #efe6d4; --surface: #fdfaf3;
  --accent: #9c7536;
  --accent-bright: #7f5d27;
  --accent-dim: rgba(156, 117, 54, 0.14);
  --glow: rgba(156, 117, 54, 0.15);
}
body[data-mode="light"][data-theme="platinum"] {
  --bg: #eef1f4; --bg-2: #e1e6ec; --surface: #fafbfc;
  --line: rgba(28, 36, 48, 0.18); --line-soft: rgba(28, 36, 48, 0.09);
  --text: #131820; --muted: #69707c;
  --accent: #4f5a68;
  --accent-bright: #353e49;
  --accent-dim: rgba(79, 90, 104, 0.14);
  --glow: rgba(79, 90, 104, 0.14);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  /* clip instead of hidden: hidden creates a scroll container on iOS Safari,
     which silently breaks position:sticky (the cinematic stages) */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.cursor-on, body.cursor-on a, body.cursor-on button,
body.cursor-on input, body.cursor-on label, body.cursor-on select {
  cursor: none;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- grain + vignette ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 200;
  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%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 0.9s steps(4) infinite;
}
body[data-grain="off"] .grain { display: none; }
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -1%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(2%, 1%); }
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 199;
  background: radial-gradient(ellipse at center, transparent 58%, var(--vignette, rgba(0,0,0,0.42)) 100%);
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent-bright);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.cursor-ring .cursor-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--accent-ink); opacity: 0; transition: opacity 0.2s ease;
  text-transform: uppercase;
}
.cursor-ring.is-hover { width: 56px; height: 56px; background: var(--accent-dim); }
.cursor-ring.is-label {
  width: 76px; height: 76px; background: var(--accent-bright);
  border-color: var(--accent-bright);
}
.cursor-ring.is-label .cursor-label { opacity: 1; }
body:not(.cursor-on) .cursor-dot, body:not(.cursor-on) .cursor-ring { display: none; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
}
.preloader-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: 0.32em; text-indent: 0.32em;
  display: flex; overflow: hidden;
}
.preloader-word span { display: inline-block; transform: translateY(110%); }
.preloader-line {
  width: min(320px, 60vw); height: 1px; background: var(--line-soft);
  position: relative; overflow: hidden;
}
.preloader-line i {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.preloader-pct {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.3em; color: var(--muted);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  transition: padding 0.45s ease, background 0.45s ease, backdrop-filter 0.45s ease;
}
.nav.is-scrolled {
  padding: 14px 48px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.28em; color: var(--text); text-decoration: none;
  display: flex; align-items: baseline; gap: 10px;
}
.nav-brand em {
  font-style: normal; font-size: 8px; letter-spacing: 0.34em;
  color: var(--accent);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line); background: transparent;
  padding: 16px 30px; border-radius: 999px;
  position: relative; overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { transition: transform 0.4s ease; }
.btn:hover svg { transform: translateX(5px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--solid::before { background: var(--accent-bright); }
.btn--solid:hover { color: var(--accent-ink); }

/* ---------- shared section bits ---------- */
.section { position: relative; padding: 140px 48px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 72px;
}
.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: 0.06em; line-height: 1.14;
  text-transform: uppercase; margin-top: 18px;
}
.h2 .accent { color: var(--accent); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; }

/* ============================================================
   CINEMATIC SCRUB SECTIONS (canvas frame sequence)
   Outer section is tall; inner stage is sticky 100vh.
   --p (0..1) is set by JS = scroll progress through the section,
   and also drives the fallback poster so it scrubs without frames.
   ============================================================ */
.cine { position: relative; height: 460vh; --p: 0; }
.cine--arrival { height: 400vh; }
.cine-sticky {
  /* dvh tracks the phone's dynamic viewport (URL bar show/hide) — no gap, no crop */
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--bg);
}
.cine-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; opacity: 0; transition: opacity 0.8s ease;
}
.cine.has-frames .cine-canvas { opacity: 1; }
.cine.has-frames .cine-poster { opacity: 0; }

/* scrim keeps overlay copy readable over video frames */
.cine-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 72%, transparent) 0%, transparent 26%),
    linear-gradient(0deg, color-mix(in oklab, var(--bg) 78%, transparent) 0%, transparent 30%);
  opacity: 0;
}
.cine.has-frames .cine-scrim { opacity: 1; }

/* ---------- fallback poster (no frames yet) ---------- */
.cine-poster {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  transition: opacity 0.8s ease;
}
.hero-glow {
  position: absolute; left: 50%; top: 58%;
  width: 130vw; height: 90vh;
  transform: translate(-50%, -50%) scale(calc(1 + var(--p) * 0.35));
  background: radial-gradient(ellipse 50% 42% at 50% 55%, var(--glow), transparent 70%);
  pointer-events: none;
  opacity: calc(1 - var(--p) * 0.4);
}
.hero-road {
  position: absolute; left: 50%; bottom: -4vh;
  transform: translateX(-50%) scale(calc(1 + var(--p) * 0.55));
  transform-origin: 50% 100%;
  width: min(1100px, 92vw); height: 42vh; pointer-events: none;
  opacity: calc(0.5 - var(--p) * 0.25);
}
.hero-road .road-dash { animation: road-run 1.6s linear infinite; }
@keyframes road-run { to { stroke-dashoffset: -36; } }

/* a slow diagonal gold beam that pans with scroll — headlight sweep */
.poster-beam {
  position: absolute; top: -20%; bottom: -20%;
  left: calc(-45% + var(--p) * 110%);
  width: 42%;
  background: linear-gradient(100deg, transparent 0%, var(--glow) 42%, color-mix(in oklab, var(--accent) 24%, transparent) 50%, var(--glow) 58%, transparent 100%);
  filter: blur(18px);
  transform: skewX(-12deg);
  pointer-events: none;
}
.poster-beam--low { top: 30%; bottom: -10%; opacity: 0.8; }

/* huge stroked word for the arrival poster */
.poster-word {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(calc(0.92 + var(--p) * 0.3));
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 17vw, 280px); letter-spacing: 0.08em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  white-space: nowrap; user-select: none;
  opacity: calc(0.7 - var(--p) * 0.3);
}

/* ---------- overlay copy ---------- */
.cine-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  padding: 0 48px; pointer-events: none;
}
.cine-line {
  grid-area: 1 / 1;
  text-align: center; max-width: 900px;
  opacity: 0; will-change: transform, opacity;
}
.cine-line.is-live { pointer-events: auto; }
.cine-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.cine-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3.4vw, 44px);
  letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.cine-h--lg { font-size: clamp(30px, 5.4vw, 72px); }
.cine-cta { margin-top: 40px; }

/* hero title block inside first overlay line */
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 11vw, 158px);
  letter-spacing: 0.1em; line-height: 0.98;
  text-transform: uppercase; text-align: center;
}
.hero-title .char { display: inline-block; will-change: transform; }
.hero-sub {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 30px;
}
.hero-sub .rule { width: 70px; height: 1px; background: var(--line); }
.hero-sub p {
  font-family: var(--font-mono); font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase;
  color: var(--accent);
}
.hero-tag {
  margin: 38px auto 0; max-width: 560px; text-align: center;
  color: var(--muted); font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300; line-height: 1.8;
  text-wrap: pretty;
}
.cine.has-frames .hero-tag { color: var(--text); opacity: 0.85; }
.hero-cta {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 48px;
}
.hero-foot {
  position: absolute; left: 48px; right: 48px; bottom: 36px; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
  transition: opacity 0.4s ease;
}
.cine.is-scrubbed .hero-foot { opacity: 0; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .wheel {
  width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-cue .wheel::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%; background: var(--accent);
  animation: cue-drop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue-drop { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 26px 0; overflow: hidden; position: relative;
  display: flex;
  background: var(--bg);
}
.marquee-track {
  display: flex; gap: 64px; flex-shrink: 0; padding-right: 64px;
  align-items: center; will-change: transform;
  animation: marquee-roll 36s linear infinite;
}
@keyframes marquee-roll { to { transform: translateX(-100%); } }
.marquee-track li {
  list-style: none; display: flex; align-items: center; gap: 64px;
  font-family: var(--font-display); font-size: 13px; font-weight: 400;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.marquee-track li::after {
  content: "◆"; font-size: 7px; color: var(--accent);
}

/* ---------- fleet (pinned horizontal gallery, center-focus) ---------- */
.fleet { padding: 0; overflow: hidden; position: relative; }
.fleet-stage {
  height: 100vh; position: relative; overflow: hidden;
}
.fleet-backline {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 30vw, 460px); letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-soft);
  white-space: nowrap; pointer-events: none; user-select: none;
  opacity: 0.5; z-index: 0;
}
.fleet-intro {
  position: absolute; top: clamp(40px, 7vh, 84px); left: 0; right: 0;
  z-index: 3; text-align: center; padding: 0 48px; pointer-events: none;
}
.fleet-intro .kicker { justify-content: center; }
.fleet-intro .h2 { margin-top: 12px; font-size: clamp(24px, 3vw, 42px); }
.fleet-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}
.fleet-cue .cue-arrow {
  font-style: normal; font-size: 16px; color: var(--accent);
  animation: cue-bob 1.8s ease-in-out infinite;
}
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.fleet-rail {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; overflow: visible;
  padding-top: clamp(150px, 26vh, 320px);
  padding-bottom: clamp(70px, 11vh, 130px);
}
.fleet-progress {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--muted); white-space: nowrap;
}
.fleet-progress b { color: var(--accent); font-weight: 400; }
.fleet-track {
  display: flex; gap: clamp(28px, 3vw, 52px); padding: 0 calc(50vw - clamp(180px, 17vw, 260px));
  width: max-content; align-items: center; will-change: transform;
}

.fleet-hud {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vh, 44px);
  z-index: 3; padding: 0 48px; pointer-events: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.fleet-tagline {
  text-align: center; max-width: 40ch; margin: 0 auto;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: 0.06em; color: var(--text); line-height: 1.5;
  opacity: 0; transform: translateY(10px);
}
.fleet-hud .hint {
  justify-self: end; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

.car-card {
  width: clamp(360px, 34vw, 520px); flex-shrink: 0;
  border: 1px solid var(--line-soft); background: var(--surface);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transform-origin: center center;
  position: relative; will-change: transform, opacity;
}
.car-card.is-focus { border-color: var(--accent); box-shadow: 0 30px 80px -30px var(--glow), 0 0 0 1px var(--accent-dim); z-index: 5; }
.car-card .car-card-body { pointer-events: auto; }

/* card media: layered luxe placeholder (replaced by stills when generated) */
.car-card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 78%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--surface));
}
.car-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* real photo present → hide the stroked placeholder word (img is removed on load error,
   so the word automatically returns as a fallback) */
.car-card-media img ~ .media-word,
.car-card-media picture ~ .media-word { display: none; }
/* soft gradient at the top so the index / class badges stay readable over photos */
.car-card-media::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}
.car-card-media .media-word {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px); letter-spacing: 0.14em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  white-space: nowrap; user-select: none; pointer-events: none;
}
.car-card-media .car-sil {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 82%; height: auto; color: color-mix(in oklab, var(--text) 55%, var(--bg));
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}
.car-card-media::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 8%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  pointer-events: none;
}
.car-index {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent);
}
.car-class {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 6px 12px; background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
}
.car-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.car-name {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
}
.car-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.car-specs div { background: var(--surface); padding: 10px 12px; }
.car-specs dt {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.car-specs dd { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.car-blurb {
  color: var(--muted); font-weight: 300;
  font-size: 14px; line-height: 1.7; text-wrap: pretty;
}
.car-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.car-price { display: flex; flex-direction: column; gap: 2px; }
.car-price b {
  font-size: 24px; font-weight: 700; letter-spacing: 0.01em; color: var(--accent-bright);
}
.car-price small {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- experience ---------- */
.experience { border-top: 1px solid var(--line-soft); }
.exp-rows { display: flex; flex-direction: column; }
.exp-row {
  display: grid; grid-template-columns: 140px 1fr 1.1fr; gap: 48px;
  padding: 64px 0; border-top: 1px solid var(--line-soft);
  align-items: start;
}
.exp-row:last-child { border-bottom: 1px solid var(--line-soft); }
.exp-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px); color: transparent;
  -webkit-text-stroke: 1px var(--accent); letter-spacing: 0.06em;
  line-height: 1;
}
.exp-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 2.2vw, 27px); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.4;
}
.exp-copy { color: var(--muted); font-weight: 300; font-size: 17px; line-height: 1.85; text-wrap: pretty; max-width: 54ch; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  margin-top: 110px;
}
.stat { background: var(--bg); padding: 44px 36px; }
.stat b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 50px); letter-spacing: 0.04em;
  color: var(--text); display: flex; align-items: baseline; gap: 4px;
}
.stat b i { font-style: normal; color: var(--accent); font-size: 0.6em; }
.stat span {
  display: block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- booking / rates ---------- */
.booking { border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.rates { max-width: 860px; margin: 0 auto; }
.rate-row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.rate-row:first-child { border-top: 1px solid var(--line-soft); }
.rate-name strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 1.7vw, 20px); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.3;
}
.rate-name small {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); display: block; margin-top: 6px;
}
.rate-dots {
  flex: 1; min-width: 40px; height: 1px; align-self: center;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 7px 1px; background-repeat: repeat-x; background-position: center;
  opacity: 0.7;
}
.rate-price {
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 700;
  color: var(--accent-bright); letter-spacing: 0.01em; white-space: nowrap;
}
.rate-price small {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 400; margin-left: 6px;
}
.rates-note {
  margin: 28px auto 0; max-width: 56ch; text-align: center;
  color: var(--muted); font-weight: 300; font-size: 14px; line-height: 1.8;
}
.rates-cta { text-align: center; margin-top: 40px; }
.rates-cta .btn { font-size: 12px; padding: 20px 42px; }
.rates-cta-note {
  margin-top: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.section-lede {
  margin-top: 22px; max-width: 52ch;
  color: var(--muted); font-weight: 300; font-size: 15px; line-height: 1.8;
  text-wrap: pretty;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 4px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(13px, 1.5vw, 17px); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.5; color: var(--text);
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-bright); }
.faq-x {
  position: relative; width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; background: var(--accent);
}
.faq-x::before { left: 0; right: 0; top: 6px; height: 1px; }
.faq-x::after { top: 0; bottom: 0; left: 6px; width: 1px; transition: opacity 0.3s ease; }
.faq-item[open] .faq-x { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { opacity: 0; }
.faq-item p {
  padding: 0 4px 28px; max-width: 68ch;
  color: var(--muted); font-weight: 300; font-size: 16px; line-height: 1.85;
  text-wrap: pretty;
}
.footer-col span { display: block; }
.booking-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 72px; align-items: start;
}
.field-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 16px;
}
.car-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 44px; }
.car-chip {
  border: 1px solid var(--line-soft); background: var(--surface);
  border-radius: 3px; padding: 16px 18px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text); font-family: var(--font-body);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.car-chip strong { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; display: block; }
.car-chip > span:not(.chip-price) { flex: 1; min-width: 0; }
.car-chip small {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px;
}
.car-chip .chip-price { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.car-chip.is-active { border-color: var(--accent); background: var(--accent-dim); }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 44px; }
.date-field {
  border: 1px solid var(--line-soft); background: var(--surface);
  border-radius: 3px; padding: 14px 18px;
}
.date-field input {
  background: transparent; border: 0; outline: 0; width: 100%;
  color: var(--text); font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.06em; color-scheme: dark;
}
body[data-mode="light"] .date-field input { color-scheme: light; }
.extras { display: flex; flex-direction: column; gap: 10px; }
.extra {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line-soft); background: var(--surface);
  border-radius: 3px; padding: 15px 18px;
  transition: border-color 0.3s ease;
}
.extra:has(input:checked) { border-color: var(--accent); }
.extra--included { border-color: var(--accent-dim); background: color-mix(in oklab, var(--surface) 80%, var(--accent-dim)); }
.extra-info strong { font-size: 14px; font-weight: 600; display: block; }
.extra-info small {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.extra-right { display: flex; align-items: center; gap: 16px; }
.extra-right .x-price { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.extra-right .x-price--inc {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--accent-dim); border-radius: 999px; padding: 6px 12px;
}
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; z-index: 1; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); background: var(--bg); }

.summary {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 36px; position: sticky; top: 110px;
}
.summary-title {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.summary-title i { font-style: normal; font-size: 9px; color: var(--accent); letter-spacing: 0.3em; font-family: var(--font-mono); }
.summary-rows { display: flex; flex-direction: column; gap: 14px; }
.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px dashed var(--line-soft);
}
.summary-row b { color: var(--text); font-weight: 500; text-align: right; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 24px;
}
.summary-total span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}
.summary-total b {
  font-size: 34px; font-weight: 700; color: var(--accent-bright); letter-spacing: 0.01em;
}
.summary .btn { width: 100%; justify-content: center; margin-top: 26px; }
.summary-note {
  margin-top: 18px; font-size: 12px; color: var(--muted);
  font-weight: 300; text-align: center;
}

/* ---------- footer ---------- */
.footer { padding: 120px 48px 48px; border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 8.4vw, 120px); letter-spacing: 0.12em;
  text-transform: uppercase; text-align: center; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  transition: color 1s ease, -webkit-text-stroke-color 1s ease;
  user-select: none;
}
.footer-word.is-filled { color: var(--text); -webkit-text-stroke-color: transparent; }
.footer-word-sub {
  margin-top: 18px; text-align: center;
  font-family: var(--font-mono); font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase;
  color: var(--accent);
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-top: 90px; flex-wrap: wrap;
}
.footer-col {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); line-height: 2.3;
}
.footer-col b { color: var(--text); font-weight: 400; display: block; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color 0.3s; display: block; }
.footer-col a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .section { padding-left: 24px; padding-right: 24px; }
  .cine-overlay { padding: 0 24px; }
  .cine { height: 250vh; }
  .cine--arrival { height: 220vh; }
  .fleet-intro { padding: 0 24px; }
  .fleet-hud { padding: 0 24px; }
  .car-card { width: clamp(280px, 80vw, 420px); }
  .booking-grid { grid-template-columns: 1fr; gap: 48px; }
  .summary { position: static; }
  .exp-row { grid-template-columns: 80px 1fr; }
  .exp-copy { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .car-picker { grid-template-columns: 1fr; }
  .hero-foot { left: 24px; right: 24px; }
}

@media (max-height: 720px) {
  .hero-foot .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-cue .wheel::after { animation: none; }
  .grain { animation: none; }
  .hero-road .road-dash { animation: none; }
  .cine { height: auto; }
  .cine-sticky { position: relative; height: 100vh; }
  .cine-line { opacity: 1 !important; transform: none !important; position: static; }
  .cine-overlay { display: flex; flex-direction: column; justify-content: center; gap: 60px; }
}

/* ============================================================
   DAY / NIGHT toggle, whole-site transition, WhatsApp button
   ============================================================ */
.nav-right { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  position: relative; display: inline-flex; align-items: center;
  width: 62px; height: 30px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--accent-dim);
  cursor: pointer; flex-shrink: 0;
}
body.cursor-on .theme-toggle { cursor: none; }
.theme-toggle .tt-knob {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), background 0.4s ease;
}
body[data-mode="light"] .theme-toggle .tt-knob { transform: translateX(32px); }
.theme-toggle .tt-icons {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 8px; pointer-events: none;
}
.theme-toggle .tt-icons svg { width: 13px; height: 13px; }
.theme-toggle .tt-moon { color: var(--accent); }
.theme-toggle .tt-sun { color: var(--muted); }
.theme-toggle .tt-knob svg { width: 13px; height: 13px; color: var(--accent-ink); }
.theme-toggle .tt-knob .knob-sun { display: none; }
body[data-mode="light"] .theme-toggle .tt-knob .knob-sun { display: block; }
body[data-mode="light"] .theme-toggle .tt-knob .knob-moon { display: none; }
body[data-mode="light"] .theme-toggle .tt-moon { color: var(--muted); }
body[data-mode="light"] .theme-toggle .tt-sun { color: var(--accent); }

body.theme-anim, body.theme-anim *:not(.tt-knob) {
  transition: background-color 0.55s ease, background 0.55s ease,
    color 0.55s ease, border-color 0.55s ease, box-shadow 0.55s ease,
    fill 0.55s ease, stroke 0.55s ease !important;
}

body.no-anim, body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  transition: none !important;
}

::view-transition-old(root), ::view-transition-new(root) {
  animation: none; mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.6s ease-out infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: scale(1.08) rotate(-4deg); }
.wa-fab .wa-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 9px 15px;
  opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wa-fab:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
body.cursor-on .wa-fab { cursor: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 14px 34px -10px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 14px 34px -10px rgba(37,211,102,0.6), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 34px -10px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 980px) {
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .wa-fab .wa-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } }
