/* === Precision Mobile Car Care — design tokens === */

/* Register typed custom properties so calc(var(--x) * …) interpolates correctly
   inside transitions (entry animations, scroll-driven reveals). Without this,
   Chrome treats var() in calc() as a string substitution and the transitioned
   computed value gets pinned to the initial state. */
@property --in    { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --p     { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --r     { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --z     { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --shift { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --i     { syntax: '<integer>'; inherits: true; initial-value: 0; }

:root {
  --bg: oklch(13% 0.006 60);
  --bg-1: oklch(16% 0.008 60);
  --bg-2: oklch(20% 0.01 60);
  --line: oklch(28% 0.012 60);
  --line-2: oklch(35% 0.014 60);
  --fg: oklch(96% 0.008 85);
  --fg-2: oklch(78% 0.01 85);
  --muted: oklch(58% 0.012 80);
  --muted-2: oklch(42% 0.014 70);

  --plate: #FFC300;          /* signature license plate yellow */
  --plate-deep: #E5A800;
  --signal: #E63725;         /* PRECISION-script red */
  --neon: #B6FF2A;            /* neon accent from their flyer */

  --accent: var(--plate);
  --accent-ink: #1a1206;

  --radius: 4px;
  --radius-lg: 8px;

  --display: "Anton", "Bebas Neue", system-ui, sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, oklch(22% 0.02 60 / 0.7), transparent 70%),
    radial-gradient(900px 500px at -10% 60%, oklch(20% 0.018 50 / 0.5), transparent 70%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { display: block; max-width: 100%; }

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

/* === typography === */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(56px, 8.4vw, 130px); line-height: 1.0; }
h2 { font-size: clamp(40px, 5.5vw, 92px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent);
}

/* === container + section === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

section { position: relative; padding: clamp(64px, 9vw, 140px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { max-width: 12ch; text-wrap: pretty; }
.section-head .meta { text-align: right; color: var(--muted); max-width: 36ch; }

/* === nav === */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding .25s ease, background .25s ease, backdrop-filter .25s ease;
}
.nav-wrap.scrolled {
  padding: 10px 0;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.nav-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid color-mix(in oklch, var(--accent-ink) 35%, transparent);
  border-radius: 3px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text .a {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.nav-brand-text .b {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  justify-self: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  color: var(--fg-2);
  border-radius: 4px;
  position: relative;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }
.nav-links a .num { color: var(--muted); margin-right: 8px; }
@media (max-width: 900px) { .nav-links { display: none; } }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* === buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, white); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--fg-2); }
.btn-dark {
  background: oklch(10% 0.005 60);
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-dark:hover { background: oklch(8% 0.005 60); }
.btn .arrow { font-size: 14px; }

/* === hero === */
.hero {
  padding-top: 120px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  --p: 0;       /* scroll progress 0..1 set by JS */
  --in: 0;     /* entry progress 0..1 set by JS on mount */
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  /* parallax up as you scroll past the hero */
  transform: translateY(calc(var(--p) * -32px));
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
}
.hero-headline {
  position: relative;
}
.hero-headline h1 {
  text-wrap: balance;
}
.hero-headline h1 .accent { color: var(--accent); }
.hero-headline h1 .outline {
  -webkit-text-stroke: 1.5px var(--fg-2);
  color: transparent;
}
.hero-headline h1 .line {
  display: block;
  /* mount-stagger: each .line clip-reveals from below */
  opacity: calc(var(--in) * 1);
  transform: translateY(calc((1 - var(--in)) * 28px))
             translateY(calc(var(--p) * var(--shift, 0) * -1px));
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1.02);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.hero-headline .sub {
  margin-top: 40px;
  max-width: 46ch;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.55;
  opacity: calc(var(--in) * 1);
  transform: translateY(calc((1 - var(--in)) * 16px));
  transition: opacity .9s ease .55s, transform .9s ease .55s;
}
.hero-headline .actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: calc(var(--in) * 1);
  transform: translateY(calc((1 - var(--in)) * 16px));
  transition: opacity .9s ease .7s, transform .9s ease .7s;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 30px 60px -20px oklch(5% 0 0 / 0.7),
    inset 0 0 0 1px var(--line);
  /* entry: scale + reveal */
  opacity: calc(0.3 + var(--in) * 0.7);
  transform: translateY(calc((1 - var(--in)) * 40px)) scale(calc(0.96 + var(--in) * 0.04));
  transition: opacity 1.1s ease .2s, transform 1.1s cubic-bezier(.2,.8,.2,1.02) .2s;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* matte → glossy as the page is scrolled past the hero (driven by --p) */
  /* AND entry: starts a touch matte, becomes vivid once mounted (driven by --in) */
  filter:
    saturate(calc(0.55 + var(--in) * 0.35 + var(--p) * 0.35))
    contrast(calc(0.9 + var(--in) * 0.1 + var(--p) * 0.1))
    brightness(calc(0.88 + var(--in) * 0.08 + var(--p) * 0.1));
  transform: scale(calc(1.04 + var(--p) * 0.06))
             translateY(calc(var(--p) * -24px));
  transition: filter 1.2s ease, transform .25s linear;
}

/* Polish-gleam — a soft diagonal sheen that sweeps across the photo as you scroll.
   Drives off --p so scrolling up reverses it. */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(115deg,
      transparent 35%,
      color-mix(in oklch, white 40%, transparent) 47%,
      color-mix(in oklch, white 65%, transparent) 50%,
      color-mix(in oklch, white 40%, transparent) 53%,
      transparent 65%);
  mix-blend-mode: overlay;
  pointer-events: none;
  /* sweeps from -120% (off the top-left) at p=0 to 120% (off the bottom-right) at p=1
     also gated by --in so it doesn't fire before mount */
  transform: translate(calc(var(--p) * 220% - 120%), calc(var(--p) * 60% - 20%));
  opacity: calc(var(--in) * (0.85 - abs(var(--p) - 0.5) * 1.2));
  z-index: 2;
}
/* fallback for browsers without abs() in CSS */
@supports not (opacity: abs(1)) {
  .hero-photo::before { opacity: calc(var(--in) * 0.85); }
}

/* Subtle "swirl marks" overlay that fades out as you scroll (the paint correction metaphor). */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40px 8px at 20% 30%, oklch(100% 0 0 / 0.06), transparent 70%),
    radial-gradient(ellipse 60px 10px at 75% 50%, oklch(100% 0 0 / 0.05), transparent 70%),
    radial-gradient(ellipse 50px 8px at 40% 75%, oklch(100% 0 0 / 0.04), transparent 70%),
    radial-gradient(ellipse 70px 10px at 85% 20%, oklch(100% 0 0 / 0.05), transparent 70%);
  mix-blend-mode: screen;
  opacity: calc((1 - var(--p)) * 0.9);
  pointer-events: none;
  z-index: 1;
  transition: opacity .3s linear;
}

.hero-photo:hover img { transform: scale(1.06); }

/* === 3D HERO STAGE === */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero-grid {
  /* with the 3D moved to a full-bleed sibling, headline takes a constrained slot */
  grid-template-columns: minmax(340px, 580px) 1fr !important;
}
.hero-headline {
  max-width: 580px;
}

.hero-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 80px;       /* stop above the marquee strip */
  width: clamp(560px, 64vw, 1100px);
  z-index: 1;
  border: none;
  border-radius: 0;
  background:
    radial-gradient(ellipse 70% 55% at 58% 58%,
      oklch(22% 0.025 60 / 0.55) 0%,
      oklch(12% 0.008 60 / 0.35) 40%,
      transparent 80%),
    radial-gradient(ellipse 100% 60% at 100% 50%,
      oklch(18% 0.018 60 / 0.4) 0%,
      transparent 70%);
  aspect-ratio: auto;
  isolation: isolate;
  opacity: calc(0.5 + var(--in) * 0.5);
  transform: translateY(calc((1 - var(--in)) * 28px));
  transition: opacity 1.1s ease .2s, transform 1.1s cubic-bezier(.2,.8,.2,1.02) .2s;
}
/* Left-edge feather: blend the canvas into the page background so it sits in the back, not in a box */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    color-mix(in oklch, var(--bg) 80%, transparent) 14%,
    transparent 32%,
    transparent 86%,
    color-mix(in oklch, var(--bg) 35%, transparent) 100%
  );
  z-index: 2;
  pointer-events: none;
}
/* Top + bottom fog — blends sky/floor into page bg */
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    transparent 18%,
    transparent 72%,
    color-mix(in oklch, var(--bg) 92%, transparent) 100%
  );
  z-index: 2;
  pointer-events: none;
}
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-3d-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-3d-hint {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  background: oklch(2% 0 0 / 0.35);
  border: 1px solid oklch(100% 0 0 / 0.08);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(95% 0 0 / 0.7);
  pointer-events: none;
  opacity: 0;
  animation: heroHintIn 1.6s ease 1.4s forwards;
}
.hero-3d-hint .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: heroHintPulse 2.4s ease infinite;
}
@keyframes heroHintIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroHintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-3d-tag {
  position: absolute;
  right: 32px;
  top: 32px;
  z-index: 3;
  text-align: right;
  font-family: var(--mono);
  text-transform: uppercase;
  color: oklch(95% 0 0 / 0.75);
  pointer-events: none;
  opacity: 0;
  animation: heroHintIn 1.4s ease 1.6s forwards;
}
.hero-3d-tag .t-num {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--accent);
}
.hero-3d-tag .t-label {
  font-size: 8px;
  letter-spacing: 0.32em;
  color: oklch(70% 0 0 / 0.6);
  margin-top: 4px;
}

/* loader (while GLB downloads) */
.hero-3d-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.hero-3d-loader .loader-num {
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: 0.02em;
  color: oklch(95% 0 0 / 0.85);
  line-height: 1;
}
.hero-3d-loader .loader-bar {
  width: 140px;
  height: 1px;
  background: oklch(100% 0 0 / 0.15);
  overflow: hidden;
}
.hero-3d-loader .loader-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .25s ease;
}
.hero-3d-loader .loader-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: oklch(65% 0 0 / 0.6);
}

/* faint scan-lines — extra subtle now that scene is the focus */
.hero-3d-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      oklch(100% 0 0 / 0.025) 0px,
      oklch(100% 0 0 / 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: overlay;
  opacity: 0.28;
}
.hero-3d-scanline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    oklch(100% 0 0 / 0.035) 50%,
    transparent 100%
  );
  animation: heroScan 9s linear infinite;
}
@keyframes heroScan {
  0%   { top: -28%; }
  100% { top: 100%; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-stage {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 460px;
    margin-top: 24px;
  }
}

.hero-photo-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(to top, oklch(8% 0 0 / 0.85), transparent);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  z-index: 3;
  transform: translateY(calc(var(--p) * 24px));
  opacity: calc(1 - var(--p) * 0.6);
}
.hero-photo-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hero-photo-meta .vehicle {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* plate badge — recreation of the real Precision sign */
.plate-badge {
  --plate-yellow: #f6d20a;
  --plate-orange: #ec3f10;
  --plate-ink: #0b0a08;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(180deg, #fbe040 0%, #f6d20a 45%, #efc60a 100%);
  color: var(--plate-ink);
  padding: 9px 22px 11px;
  border-radius: 5px;
  border: 2px solid var(--plate-ink);
  position: relative;
  font-family: var(--display);
  letter-spacing: 0.02em;
  box-shadow:
    0 2px 0 0 rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(0,0,0,0.06),
    inset 0 0 28px rgba(180,120,0,0.18);
  overflow: visible;
}
/* subtle aged/weathered noise on the plate face */
.plate-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background:
    radial-gradient(circle at 22% 30%, rgba(0,0,0,0.06) 0px, transparent 4px),
    radial-gradient(circle at 72% 70%, rgba(0,0,0,0.07) 0px, transparent 6px),
    radial-gradient(circle at 38% 78%, rgba(0,0,0,0.05) 0px, transparent 5px);
  pointer-events: none;
  opacity: 0.7;
}

/* screw heads in the four corners */
.plate-screw {
  position: absolute;
  width: 4px; height: 4px;
  background: radial-gradient(circle at 30% 30%, #2a2a2a 0%, #050505 70%);
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.18);
  z-index: 2;
}
.plate-screw--tl { top: 4px; left: 5px; }
.plate-screw--tr { top: 4px; right: 5px; }
.plate-screw--bl { bottom: 4px; left: 5px; }
.plate-screw--br { bottom: 4px; right: 5px; }

/* "PRECISION" — black text sitting on an orange backdrop block */
.plate-badge .plate-1 {
  font-family: "Anton", var(--display);
  font-size: 18px;
  letter-spacing: 0.03em;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-top: 1px;
}
.plate-badge .plate-1 span {
  display: inline-block;
  position: relative;
  color: var(--plate-ink);
  padding: 1px 7px 2px;
  background: linear-gradient(180deg, #f8531e 0%, #e63a0d 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.18);
  border-radius: 2px;
  /* faint ink-bleed shadow under letters */
  text-shadow: 0 0.5px 0 rgba(0,0,0,0.25);
}

/* "Mobile Car Care" — white cursive with thick orange stroke */
.plate-badge .plate-2 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1;
  color: #ffffff;
  -webkit-text-stroke: 3px var(--plate-orange);
  paint-order: stroke fill;
  margin-top: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

/* large variant */
.plate-badge.lg {
  padding: 13px 30px 16px;
  gap: 3px;
  border-radius: 7px;
  border-width: 3px;
}
.plate-badge.lg .plate-1 { font-size: 28px; }
.plate-badge.lg .plate-1 span { padding: 2px 11px 3px; }
.plate-badge.lg .plate-2 {
  font-size: 22px;
  -webkit-text-stroke: 4px var(--plate-orange);
}
.plate-badge.lg .plate-screw { width: 6px; height: 6px; }
.plate-badge.lg .plate-screw--tl { top: 6px; left: 7px; }
.plate-badge.lg .plate-screw--tr { top: 6px; right: 7px; }
.plate-badge.lg .plate-screw--bl { bottom: 6px; left: 7px; }
.plate-badge.lg .plate-screw--br { bottom: 6px; right: 7px; }

/* hero spec strip */
/* hero spec strip — removed (fabricated content) */
/* legacy .hero-spec rules kept hidden in case of cached refs */
.hero-spec { display: none; }
.hero-spec .item:last-child { border-right: 0; }
.hero-spec .item .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-spec .item .v {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}
.hero-spec .item .v .unit {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-left: 6px;
}
@media (max-width: 720px) {
  .hero-spec { grid-template-columns: repeat(2, 1fr); }
  .hero-spec .item { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .hero-spec .item:nth-child(2) { border-right: 0; }
  .hero-spec .item:nth-child(odd) { padding-right: 16px; }
  .hero-spec .item:nth-child(even) { padding-left: 16px; }
}

/* marquee */
.marquee {
  position: relative;
  z-index: 4;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 50s linear infinite;
  gap: 56px;
  padding: 22px 28px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.marquee-item .star {
  color: var(--accent);
  font-size: 16px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === services === */
/* Mobile-service banner — sits above the service list to make crystal clear
   that EVERY service is delivered to the customer's location. */
.mobile-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background:
    linear-gradient(135deg,
      color-mix(in oklch, var(--accent) 18%, transparent) 0%,
      color-mix(in oklch, var(--accent) 4%, transparent) 100%),
    var(--bg-1);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line));
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.mobile-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.mobile-banner-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: mobileBannerPulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes mobileBannerPulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in oklch, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 18px color-mix(in oklch, var(--accent) 0%, transparent); }
}
.mobile-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mobile-banner-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.mobile-banner-title {
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 26px);
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.mobile-banner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.mobile-banner-meta .dot-sep {
  color: var(--accent);
  opacity: 0.6;
}
@media (max-width: 720px) {
  .mobile-banner {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 28px;
  }
  .mobile-banner-meta {
    grid-column: 1 / -1;
    font-size: 10px;
    letter-spacing: 0.14em;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 240px 60px;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: background .15s ease, padding .2s ease;
  position: relative;
}
.service-row:hover { background: color-mix(in oklch, var(--bg-2) 50%, transparent); padding-left: 14px; padding-right: 14px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 10px;
}
.service-row .name {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.service-row .name-text {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.service-row .summary {
  font-family: var(--body, inherit);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  max-width: 62ch;
  text-align: left;
  text-wrap: pretty;
}
.service-row .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
  padding-top: 14px;
}
.service-row .go {
  text-align: right;
  font-size: 22px;
  color: var(--muted);
  transition: transform .2s ease, color .15s ease;
  padding-top: 6px;
}
.service-row:hover .go { transform: translateX(6px); color: var(--accent); }
.service-row.hidden { display: none; }

@media (max-width: 800px) {
  .service-row { grid-template-columns: 50px 1fr 60px; gap: 14px; padding: 22px 0; }
  .service-row .tag { display: none; }
  .service-row .summary { font-size: 13px; max-width: none; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
}

/* === gallery tabs === */
.gallery-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.gallery-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.gallery-tab:hover { color: var(--fg); }
.gallery-tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.gallery-tab .tab-icon {
  font-size: 14px;
  color: var(--accent);
}
.gallery-tab .tab-count {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

/* === video grid === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  position: relative;
  aspect-ratio: 9/16;        /* vertical (Reels / TikTok style) — common for detailing clips */
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 12px,
      color-mix(in oklch, var(--accent) 5%, transparent) 12px,
      color-mix(in oklch, var(--accent) 5%, transparent) 13px),
    var(--bg-1);
}
.video-placeholder .vp-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  font-size: 22px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
}
.video-placeholder .vp-label {
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.video-placeholder .vp-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 0;
  cursor: pointer;
  background: var(--bg-2);
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.video-thumb:hover img { transform: scale(1.04); }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, oklch(0% 0 0 / 0.6), oklch(0% 0 0 / 0.1) 50%);
}
.video-play span {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 8px 30px -4px oklch(0% 0 0 / 0.6);
  transition: transform .2s ease;
}
.video-thumb:hover .video-play span { transform: scale(1.08); }
.video-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  text-align: left;
}
.video-meta .vm-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.video-meta .vm-title {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--fg);
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
video.video-frame {
  object-fit: cover;
  background: #000;
}
.video-placeholder.soft {
  background: oklch(14% 0.005 60);
  color: oklch(55% 0 0 / 0.5);
  font-size: 28px;
}
.video-placeholder.soft .vp-icon {
  font-size: 28px;
  opacity: 0.5;
}
.video-thumb.local {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video-thumb.local video {
  pointer-events: none;
}
.video-thumb.local .video-play {
  pointer-events: none;
}

.video-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  flex-wrap: wrap;
}

/* === gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px oklch(5% 0 0 / 0.6), 0 0 0 1px var(--line-2); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(5% 0 0 / 0.9) 0%, transparent 50%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .meta-vehicle {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.gallery-item .meta-svc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.gallery-item .badge-tl {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 9px;
  background: oklch(5% 0 0 / 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

/* gallery sizes */
.gallery-item.w6 { grid-column: span 6; }
.gallery-item.w4 { grid-column: span 4; }
.gallery-item.w3 { grid-column: span 3; }
.gallery-item.w5 { grid-column: span 5; }
.gallery-item.w7 { grid-column: span 7; }
.gallery-item.h2 { grid-row: span 2; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .gallery-item.w6 { grid-column: span 6; }
  .gallery-item.w4 { grid-column: span 3; }
  .gallery-item.w3 { grid-column: span 3; }
  .gallery-item.w5 { grid-column: span 6; }
  .gallery-item.w7 { grid-column: span 6; }
}

/* === process === */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.process-step:last-child { border-right: 0; }
.process-step .step-num {
  font-family: var(--display);
  font-size: 56px;
  color: var(--accent);
  line-height: 0.8;
  letter-spacing: 0;
}
.process-step .step-title {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}
.process-step .step-desc {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
  margin-top: auto;
}
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
}

/* === vehicles === */
.vehicles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vehicle-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.vehicle-card .v-icon {
  font-family: var(--display);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.vehicle-card .v-title {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}
.vehicle-card .v-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 900px) { .vehicles { grid-template-columns: repeat(2, 1fr); } }

/* === testimonial / quote === */
.quote-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  background:
    radial-gradient(800px 400px at 100% 0%, oklch(22% 0.02 80 / 0.5), transparent 60%),
    var(--bg-1);
  position: relative;
  overflow: hidden;
}
.quote-block .q-mark {
  font-family: var(--display);
  font-size: 160px;
  color: var(--accent);
  position: absolute;
  top: -20px; left: 24px;
  line-height: 1;
  opacity: 0.18;
}
.quote-block .q-text {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 22ch;
  text-wrap: balance;
}
.quote-block .q-attr {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* === contact / footer === */

/* Contact hero — bespoke standout treatment for the "Get a quote" headline.
   Big display type, an accent-coloured word, a ghost wordmark behind, and
   the two primary CTAs (call / quote) baked right in so visitors don't have
   to scroll to find them. */
.contact-hero {
  position: relative;
  margin-bottom: 64px;
  padding: 72px 56px 64px;
  background:
    radial-gradient(120% 80% at 0% 0%,
      color-mix(in oklch, var(--accent) 14%, transparent) 0%,
      transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, color-mix(in oklch, var(--bg-1) 80%, var(--bg)) 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.contact-hero::before {
  /* corner accent slash */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background:
    linear-gradient(135deg,
      transparent 49%,
      color-mix(in oklch, var(--accent) 25%, transparent) 50%,
      transparent 51%) center / 22px 22px repeat;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(80% 80% at 100% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, black, transparent);
}
.contact-hero-bg {
  position: absolute;
  inset: auto 0 -8% 0;
  display: flex;
  gap: 80px;
  font-family: var(--display);
  font-size: clamp(180px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in oklch, var(--accent) 20%, transparent);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
}
.contact-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-hero-num {
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0;
}
.contact-hero-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.contact-hero-title {
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}
.contact-hero-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.contact-hero-accent::after {
  /* hand-drawn-feel underline that draws attention */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.12em;
  background: var(--accent);
  opacity: 0.35;
  transform: skewX(-8deg);
}
.contact-hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 620px;
  text-transform: none;
}
.contact-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: mobileBannerPulse 1.8s ease-out infinite;
}
.contact-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-hero-actions .phone-glyph {
  display: inline-block;
  margin-right: 8px;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .contact-hero { padding: 56px 36px 48px; }
  .contact-hero-bg { font-size: clamp(140px, 28vw, 220px); gap: 60px; }
}
@media (max-width: 600px) {
  .contact-hero {
    padding: 44px 22px 38px;
    margin-bottom: 44px;
    border-radius: 14px;
  }
  .contact-hero-content { gap: 22px; }
  .contact-hero-title { font-size: clamp(56px, 15vw, 96px); }
  .contact-hero-actions { flex-direction: column; align-items: stretch; }
  .contact-hero-actions .btn { justify-content: center; }
  .contact-hero-bg { font-size: clamp(120px, 36vw, 180px); gap: 40px; }
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 4px; }
.contact-info .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row .v {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.contact-info .row .v a:hover { color: var(--accent); }
.contact-info .row .v .small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-left: 12px; }

footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
footer .foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  flex-wrap: wrap;
}
footer .copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
footer .social {
  display: flex;
  gap: 8px;
}
footer .social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--fg-2);
  transition: all .15s ease;
}
footer .social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* big footer wordmark */
.giant-mark {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 1px var(--line-2);
  color: transparent;
  margin-top: 56px;
  margin-bottom: -20px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* === booking modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(5% 0 0 / 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: pop .25s cubic-bezier(.2,.8,.2,1.05);
}
@keyframes pop { from { transform: scale(0.96) translateY(10px); opacity: 0; } }
.modal-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.modal-head .title {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.modal-head .close {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--muted);
}
.modal-head .close:hover { background: var(--bg-2); color: var(--fg); }
.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}
.modal-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--bg);
}

/* steps */
.steps {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
}
.step-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step-bar.done { background: var(--accent); }
.step-bar.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: fill 1.2s ease infinite;
}
@keyframes fill { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* form field */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--accent);
}
.field.error input, .field.error textarea, .field.error select { border-color: var(--signal); }
.field .err {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--signal);
  text-transform: uppercase;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  width: 100%;
}
.choice:hover { border-color: var(--fg-2); }
.choice.selected { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, transparent); }
.choice .c-icon {
  width: 40px; height: 40px;
  background: var(--bg-2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}
.choice .c-text { display: flex; flex-direction: column; gap: 2px; }
.choice .c-title { font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.choice .c-sub { font-size: 12px; color: var(--muted); }

.service-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
  width: 100%;
}
.svc-pick:hover { border-color: var(--fg-2); }
.svc-pick.selected { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, transparent); }
.svc-pick .chk {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-pick.selected .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.svc-pick .name {
  font-family: var(--display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.summary .sum-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.summary .sum-row:last-child { border-bottom: 0; }
.summary .sum-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  align-self: center;
}

.success {
  text-align: center;
  padding: 32px 8px 16px;
}
.success .check {
  width: 64px; height: 64px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 32px;
  font-weight: bold;
  animation: pop .4s cubic-bezier(.2,.8,.2,1.4);
}
.success h3 {
  font-family: var(--display);
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.success p {
  color: var(--fg-2);
  max-width: 36ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* === scroll-reveal utilities ===
   Drive each element's --r progress (0..1) from JS based on its on-screen ratio.
   Because --r tracks position, scrolling back UP naturally reverses the effect. */
.reveal {
  --r: 0;
  opacity: calc(0.15 + var(--r) * 0.85);
  transform: translateY(calc((1 - var(--r)) * 36px));
  transition: opacity .25s linear, transform .35s linear;
  will-change: opacity, transform;
}
.reveal-soft {
  --r: 0;
  opacity: calc(0.4 + var(--r) * 0.6);
  transform: translateY(calc((1 - var(--r)) * 20px));
  transition: opacity .25s linear, transform .35s linear;
  will-change: opacity, transform;
}

/* section heads — h2 lifts on enter and parallaxes very subtly */
.section-head {
  --r: 0;
}
.section-head h2 {
  opacity: calc(0.2 + var(--r) * 0.8);
  transform: translateY(calc((1 - var(--r)) * 24px));
  transition: opacity .3s linear, transform .35s linear;
}
.section-head .meta,
.section-head .eyebrow {
  opacity: calc(0.2 + var(--r) * 0.8);
  transition: opacity .3s linear;
}

/* gallery items reveal with progressive offset */
.gallery-item {
  --r: 0;
  opacity: calc(0.3 + var(--r) * 0.7);
  transform: translateY(calc((1 - var(--r)) * 28px));
  transition: opacity .25s linear, transform .35s linear, box-shadow .25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
}

/* Giant outlined PRECISION wordmark at footer — parallaxes & swells in */
.giant-mark {
  --r: 0;
  transform: translateY(calc((1 - var(--r)) * 80px)) scale(calc(0.94 + var(--r) * 0.06));
  opacity: calc(0.15 + var(--r) * 0.85);
  transition: opacity .3s linear, transform .4s linear;
  -webkit-text-stroke-color: color-mix(in oklch, var(--line-2) 100%, var(--accent) calc(var(--r) * 20%));
}

/* Marquee runs at a constant speed — no scroll-coupled speed-up */

/* ===========================================================
   CINEMATIC SCROLL-ZOOM SHOWCASE
   --------------------------------------------------------- */
.showcase {
  position: relative;
  background: var(--bg);
}
.showcase-intro {
  padding: 100px 0 40px;
  border-bottom: 1px solid var(--line);
}
.showcase-intro .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.showcase-intro h2 {
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
}

/* === Static showcase cards (2x2 grid) === */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 24px;
}
.showcase-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "slate"
    "img"
    "caption";
}

.showcase-card-slate {
  grid-area: slate;
  padding: 20px max(20px, 2vw) 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.showcase-card-slate .slate-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}

.showcase-card-img {
  grid-area: img;
  position: relative;
  margin: 20px max(20px, 2vw) 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow:
    0 40px 80px -30px oklch(2% 0 0 / 0.7),
    0 0 0 1px var(--line);
}
.showcase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-card-plate {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  transform: scale(0.85);
  transform-origin: bottom right;
}

.showcase-card-caption {
  grid-area: caption;
  background:
    linear-gradient(to top, var(--bg) 0%, var(--bg-1) 100%);
  border-top: 2px solid var(--accent);
  margin-top: 22px;
  padding: 22px max(20px, 2vw) 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  position: relative;
}
.showcase-card-caption::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.4;
  filter: blur(4px);
}
.showcase-card-caption-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.showcase-card-tag .tag-num {
  font-family: var(--display);
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0;
}
.showcase-card-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.showcase-card-caption-right {
  text-align: right;
}
.showcase-card-caption-right .plate-badge.lg {
  transform: scale(0.7);
  transform-origin: right center;
}

@media (max-width: 900px) {
  .showcase-grid { gap: 22px; }
  .showcase-card-title { font-size: clamp(20px, 3vw, 28px); }
}
@media (max-width: 720px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .showcase-card-slate { padding-top: 18px; }
  .showcase-card-img { margin: 18px 14px 0; }
  .showcase-card-caption {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 18px 24px;
    margin-top: 20px;
  }
  .showcase-card-caption-right { text-align: left; }
  .showcase-card-caption-right .plate-badge.lg { transform: scale(0.8); transform-origin: left center; }
  .showcase-card-title { font-size: clamp(24px, 6vw, 32px); }
}

.lightbox {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, oklch(15% 0 0 / 0.4), transparent 70%),
    oklch(4% 0 0 / 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: fade .2s ease;
}
.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.lightbox-head .lb-counter { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* Stage uses flex centering with the image as a flex item that gets explicit
   max-width/max-height computed in JS to ALWAYS fit inside the available space.
   Pure CSS percentage approach is unreliable across browsers when the parent
   has flex children of unknown intrinsic size. */
.lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 88px;
  overflow: hidden;
}

/* Showroom backdrop — subtle floor reflection + spotlight feel */
.lightbox-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 60%;
  height: 30px;
  background: radial-gradient(ellipse at center, oklch(0% 0 0 / 0.7), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* hard caps so the image NEVER overflows the stage box */
  max-width: 100%;
  max-height: 100%;
  padding: 8px;
  background: oklch(8% 0 0);
  border-radius: 8px;
  box-shadow:
    0 30px 80px -20px oklch(0% 0 0 / 0.95),
    0 0 0 1px oklch(20% 0.01 80),
    inset 0 0 0 1px oklch(15% 0.005 80);
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  /* sharpen rendering — avoid upscaling blur from browser scaling */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: oklch(10% 0 0 / 0.75);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}
.lightbox-foot {
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  flex: 0 0 auto;
  background: oklch(7% 0 0 / 0.6);
}
.lightbox-foot .vehicle-spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.lightbox-foot .vehicle-spec .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lightbox-foot .vehicle-spec .v {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
@media (max-width: 720px) {
  .lightbox-foot { grid-template-columns: 1fr; }
  .lightbox-foot .vehicle-spec { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lightbox-stage { padding: 16px 56px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* call cta sticky */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-cta .ring {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.phone-cta .ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cue 2s ease infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   MOBILE RESPONSIVENESS PASS
   ============================================================ */

/* Prevent horizontal scroll from oversized elements like the giant wordmark
   or 3D stage overflow on small viewports. */
html, body { overflow-x: hidden; }

/* === Nav: keep brand + a single primary action; hide the long phone text === */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 12px; padding: 0 18px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 11px 14px; font-size: 10px; letter-spacing: 0.16em; }
  .nav-cta .phone-cta span:not(.ring) { display: none; }       /* hide number text, keep pulsing dot */
  .nav-cta .phone-cta { padding: 11px 12px; }
}
@media (max-width: 480px) {
  .nav-brand-text .b { display: none; }
  .nav-brand-text .a { font-size: 16px; }
  .nav-mark { width: 32px; height: 32px; font-size: 20px; }
  .nav-cta .btn-primary .arrow { display: none; }
}
@media (max-width: 380px) {
  /* On very small phones, the phone button can be dropped — call CTA still in hero & contact */
  .nav-cta .phone-cta { display: none; }
}

/* === Section heads — stack the meta below the title on small screens === */
@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 36px;
    padding-bottom: 22px;
  }
  .section-head .meta { text-align: left; max-width: none; font-size: 14px; }
  section { padding: 64px 0; }
}

/* === Hero === */
@media (max-width: 1000px) {
  .hero { padding-top: 96px; }
  .hero-headline h1 .line { display: block; }
}
@media (max-width: 720px) {
  .hero { padding-top: 88px; }
  .hero-grid { padding-bottom: 24px; }
  .hero-headline .sub { margin-top: 24px; font-size: 15px; }
  .hero-headline .actions { margin-top: 24px; gap: 10px; }
  .hero-headline .actions .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-stage { height: 50vh !important; min-height: 360px !important; margin-top: 16px !important; }
  .hero-3d-hint { left: 16px; bottom: 16px; }
  .hero-3d-tag { right: 16px; top: 16px; }
}
@media (max-width: 480px) {
  .hero-stage { height: 44vh !important; min-height: 300px !important; }
  .hero-3d-tag { display: none; }
}

/* === Marquee — smaller text on mobile === */
@media (max-width: 720px) {
  .marquee-item { font-size: 20px; gap: 36px; }
  .marquee-track { gap: 36px; padding: 16px 18px; }
}

/* === Showcase intro spacing on mobile === */
@media (max-width: 900px) {
  .showcase-intro { padding: 64px 0 24px; }
}

/* === Services list — already has 800px rules; tighten further on phones === */
@media (max-width: 540px) {
  .service-row { grid-template-columns: 40px 1fr 32px; gap: 12px; padding: 18px 0; }
  .service-row .num { padding-top: 6px; font-size: 10px; }
  .service-row .name-text { font-size: 20px; }
  .service-row .summary { font-size: 12.5px; }
  .service-row .go { font-size: 18px; padding-top: 2px; }
}

/* === Gallery tabs — stay scrollable if cramped === */
@media (max-width: 540px) {
  .gallery-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .gallery-tab { padding: 12px 14px; font-size: 10px; letter-spacing: 0.16em; white-space: nowrap; flex-shrink: 0; }
  .gallery-tab .tab-count { padding: 2px 6px; font-size: 9px; }
}

/* === Gallery grid — already responsive at 900px; tweak for phones === */
@media (max-width: 540px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .gallery-item.w6, .gallery-item.w4, .gallery-item.w3, .gallery-item.w5, .gallery-item.w7 {
    grid-column: span 2;
  }
  .gallery-item.h2 { grid-row: span 1; }   /* normalize heights, avoid lopsided rows */
}

/* === Video footer CTA — stack on mobile === */
@media (max-width: 720px) {
  .video-footer-cta { padding: 22px 22px; gap: 18px; flex-direction: column; align-items: flex-start; }
  .video-footer-cta .btn { width: 100%; justify-content: center; }
}

/* === Vehicles grid: already 2col at 900, drop to compact on phones === */
@media (max-width: 540px) {
  .vehicles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vehicle-card { padding: 18px 16px; min-height: 150px; }
  .vehicle-card .v-icon { font-size: 28px; }
  .vehicle-card .v-title { font-size: 18px; }
}

/* === Quote block padding === */
@media (max-width: 720px) {
  .quote-block { padding: 36px 22px; }
  .quote-block .q-mark { font-size: 100px; top: -12px; left: 12px; }
}

/* === Contact info: shrink label column, reduce row padding === */
@media (max-width: 720px) {
  .contact { gap: 32px; }
  .contact-info .row {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .contact-info .row .v { font-size: 18px; word-break: break-word; overflow-wrap: anywhere; }
  .contact-info .row .v .small { display: block; margin-left: 0; margin-top: 4px; }
}
@media (max-width: 480px) {
  .contact-info .row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .contact-info .row .v { font-size: 17px; }
  /* Contact right card */
  .contact > div:last-child > div:first-child { padding: 22px !important; }
  .contact > div:last-child > div:first-child > div:nth-child(2) { font-size: 26px !important; }
  .contact > div:last-child > div:first-child .btn { width: 100%; justify-content: center; }
}

/* === Giant footer wordmark — clamp so it never causes overflow === */
@media (max-width: 720px) {
  .giant-mark { font-size: clamp(56px, 18vw, 120px); margin-top: 36px; margin-bottom: -8px; }
}

/* === Footer === */
@media (max-width: 540px) {
  footer { padding: 36px 0 22px; margin-top: 28px; }
  footer .foot { gap: 16px; align-items: flex-start; flex-direction: column; }
}

/* === Booking modal === */
@media (max-width: 720px) {
  .modal-backdrop { padding: 12px; align-items: flex-start; padding-top: 24px; }
  .modal { max-height: calc(100vh - 24px); }
  .modal-head { padding: 16px 18px; }
  .modal-head .title { font-size: 18px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .modal-foot .btn { flex: 1; justify-content: center; }
  .choice-grid { grid-template-columns: 1fr; }
  .steps { gap: 3px; margin-bottom: 20px; }
}

/* === Lightbox — already has 720px rules, refine for very small === */
@media (max-width: 480px) {
  .lightbox-head { padding: 12px 16px; }
  .lightbox-foot { padding: 14px 16px; }
  .lightbox-foot .vehicle-spec .v { font-size: 17px; }
}

/* === Larger buttons on phones for finger targets (44px min) === */
@media (max-width: 540px) {
  .btn { padding: 13px 18px; min-height: 44px; }
}

/* === Tweaks panel — make sure it doesn't fight content on small screens === */
@media (max-width: 540px) {
  .tweaks-panel, [class*="tweaks-panel"] { max-width: calc(100vw - 24px) !important; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Hero logo card — glossy, animated brand card (replaces the 3D)
   ============================================================ */
.hero-logo-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 80px;                 /* clear the marquee strip below */
  width: clamp(380px, 46vw, 680px);
  display: grid;
  place-items: center;
  padding: 40px clamp(24px, 4vw, 72px);
  z-index: 1;
  pointer-events: none;
}
/* accent glow behind the card (sits outside the clipped card) */
.logo-card-glow {
  position: absolute;
  inset: 10% 6%;
  z-index: 0;
  background: radial-gradient(ellipse 58% 52% at 50% 46%,
    color-mix(in oklch, var(--accent) 30%, transparent),
    transparent 70%);
  filter: blur(40px);
  opacity: calc(var(--in) * 0.9);
  animation: logoCardGlow 6.5s ease-in-out infinite;
  pointer-events: none;
}
.logo-card {
  position: relative;
  z-index: 1;
  width: clamp(300px, 34vw, 440px);
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(155deg,
    oklch(34% 0.02 90 / 0.55),
    oklch(16% 0.012 60 / 0.45) 55%,
    oklch(22% 0.015 70 / 0.5));
  box-shadow:
    0 50px 90px -34px oklch(0% 0 0 / 0.85),
    0 1px 0 0 oklch(100% 0 0 / 0.07) inset,
    0 -1px 0 0 oklch(0% 0 0 / 0.4) inset;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  pointer-events: auto;
  /* entry fade — transform is owned by the float animation */
  opacity: calc(0.35 + var(--in) * 0.65);
  transition: opacity 1.2s ease 0.25s;
  animation: logoCardFloat 6.5s ease-in-out infinite;
}
/* gold gradient ring around the card */
.logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(140deg,
    color-mix(in oklch, var(--accent) 75%, transparent),
    transparent 38%, transparent 62%,
    color-mix(in oklch, var(--accent) 45%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.logo-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: saturate(1.06) contrast(1.05) brightness(1.02);
}
/* sweeping diagonal shine across the card */
.logo-card-shine {
  position: absolute;
  top: -10%;
  left: -65%;
  width: 45%;
  height: 120%;
  background: linear-gradient(105deg,
    transparent,
    oklch(100% 0 0 / 0.14) 44%,
    oklch(100% 0 0 / 0.40) 50%,
    oklch(100% 0 0 / 0.14) 56%,
    transparent);
  transform: skewX(-16deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: logoCardShine 6s ease-in-out infinite;
}
@keyframes logoCardFloat {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50%      { transform: translateY(-14px) rotate(0.4deg); }
}
@keyframes logoCardShine {
  0%        { left: -65%; }
  55%, 100% { left: 135%; }
}
@keyframes logoCardGlow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-card, .logo-card-glow { animation: none; }
  .logo-card-shine { display: none; }
}
/* tablet / mobile — stack the card under the headline */
@media (max-width: 1000px) {
  .hero-logo-stage {
    position: static;
    width: auto;
    bottom: auto;
    padding: 8px 0 4px;
  }
  .logo-card-glow { inset: 0 18%; }
  .logo-card { width: min(86%, 360px); margin: 0 auto; }
}
