/* Car Specs Pro landing: phase 1. One screen, no scroll, static. */
/* Resting values only (0 = pointer centred). app.js moves .wall, .rig and .hero by writing
   their `transform` directly: changing a custom property makes Chrome repaint the element,
   while a new transform on a GPU layer is free. */
@property --mx { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --my { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --ink: #f5f5f3;
  --ink-2: #c4c4c0;
  --ink-3: #9a9a96;
  --red-1: #ff5244;
  --red-2: #e3231a;
  --red-3: #a8100a;
  --red-edge: #6e0804;
  --bezel: #17181a;
  --panel-bg: #e9e9e5;
  /* softer than the old (.72, 0, .22, 1): its peak speed was ~2.7x the average, so any dropped
     frame mid-slide showed as a visible jump. This one peaks lower and lands gently. */
  --ease-slide: cubic-bezier(.45, 0, .2, 1);
  --mx: 0; /* pointer, -1..1, set by app.js */
  --my: 0;
  --vh: 1vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0c0c0d;
  -webkit-font-smoothing: antialiased;
}
@supports (height: 100dvh) { :root { --vh: 1dvh; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; height: calc(var(--vh) * 100); background: #0c0c0d; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- scene */
.scene { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; perspective-origin: 50% 40%; }

.wall {
  position: absolute; inset: -4%;
  background-color: #4a4946;
  background-image:
    radial-gradient(ellipse 55% 45% at 58% 8%, rgba(255, 244, 222, .28), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 30%, rgba(0, 0, 0, .55) 100%),
    /* formwork tie holes */
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .38) 0 3px, rgba(255, 255, 255, .06) 3.5px 4.5px, transparent 5px),
    /* formwork panel seams */
    linear-gradient(90deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.4 .9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: auto, auto, 180px 120px, 360px 240px, 360px 240px, 360px 360px, 900px 900px;
  background-position: 0 0, 0 0, 90px 60px, 0 0, 0 0, 0 0, 0 0;
  background-blend-mode: normal, normal, normal, normal, normal, overlay, multiply;
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -4px), 0);
  will-change: transform;
}
.floor {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 9%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 40%),
    linear-gradient(180deg, #2a2927, #141413);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .05);
}

/* the rig holds lamps + billboard and is the 3D-tilted object */
.rig {
  position: absolute;
  left: 4vw; right: 3.5vw; top: 11.5%; bottom: 13.5%;
  transform-style: preserve-3d;
  transform-origin: 80% 50%;
  transform: rotateY(calc(-9deg + var(--mx) * 2.5deg)) rotateX(calc(var(--my) * -1.6deg));
  will-change: transform; /* app.js already eases the pointer; no CSS transition on top */
}

.lamps { position: absolute; left: 0; right: 0; top: -48px; height: 48px; display: flex; justify-content: space-around; padding: 0 12%; pointer-events: none; }
.lamps i { position: relative; width: 70px; height: 14px; margin-top: 6px; border-radius: 3px 3px 8px 8px; background: linear-gradient(#3a3b3e, #111); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.lamps i::before { content: ""; position: absolute; left: 50%; top: -40px; width: 4px; height: 40px; margin-left: -2px; background: #1b1c1e; }
.lamps i::after { /* light cone */
  content: ""; position: absolute; left: 50%; top: 12px; width: 520px; height: 360px; margin-left: -260px;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 246, 228, .30), rgba(255, 246, 228, .08) 45%, transparent 75%);
  /* plain alpha: for white light at low opacity this looks the same as screen blending,
     without making the GPU re-blend the moving billboard under it every frame */
}

.board {
  position: absolute; inset: 0; margin: 0;
  padding: 14px 14px 40px;
  background: linear-gradient(180deg, #232427, var(--bezel) 30%, #0d0d0e);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 2px 0 #050505,
    0 40px 80px -20px rgba(0, 0, 0, .85),
    0 18px 30px rgba(0, 0, 0, .45);
}
.screen {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 3px;
  background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6);
  isolation: isolate;
}
.glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(ellipse 60% 40% at 55% 0, rgba(255, 248, 232, .16), transparent 70%);
  /* no mix-blend-mode: a blended layer over the sliding panels forced an offscreen
     re-render of the whole screen on every frame; plain alpha gives the same light */
}

/* panels slide left, one after the other.
   is-next: the coming panel waits fully painted UNDER the active one (z-index 0), so its
   photo is decoded and its layer rastered before it moves; app.js then parks it on the
   right (is-entering) for one frame and slides. Only moving panels get their own layer. */
.panel {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
}
.panel.is-active, .panel.is-leaving, .panel.is-entering, .panel.is-next { visibility: visible; will-change: transform; }
.panel.is-active, .panel.is-leaving, .panel.is-entering { z-index: 1; }
.panel.is-active, .panel.is-next { transform: translate3d(0, 0, 0); }
.panel.is-leaving { transform: translate3d(-100%, 0, 0); }
.panel.anim { transition: transform 1.3s var(--ease-slide); }

.tag {
  position: absolute; z-index: 3; right: 18px; top: 16px; margin: 0;
  padding: 8px 14px; border-radius: 999px;
  font: 500 14px/1.2 "Inter Tight", Inter, sans-serif; letter-spacing: -.005em;
  background: rgba(12, 12, 13, .8); color: var(--ink);
  /* no backdrop-filter: blurring the sliding cards behind it cost a full blur pass per frame */
}
.tag b { font-weight: 700; }

/* ----------------------------------------------------- 01 brands: cards */
.panel-brands { background: radial-gradient(ellipse 90% 80% at 60% 30%, #f3f3f0, #dcdcd7); }
.cards {
  position: absolute; inset: 8% 5% 8% 5%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 3), minmax(0, 1fr));
  gap: clamp(10px, 2vw, 26px);
  align-items: center; justify-items: center; align-content: center;
}
.card { width: var(--card, 100%); height: var(--card, auto); aspect-ratio: 1; perspective: 700px; } /* --card set by app.js */
.card-in {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(.6, 0, .25, 1);
}
.card .face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 12%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 22px -8px rgba(0, 0, 0, .28);
}
.card .face img { width: 70%; height: 70%; object-fit: contain; }
.card .back { transform: rotateY(180deg); }
.card .face::after { /* sheen while turning */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(0, 0, 0, .08) 50%, transparent 65%);
  opacity: 0; transition: opacity .5s;
}
.card.turning .face::after { opacity: 1; }

/* ------------------------------------------- 02.. car slides (featured) */
.panel-featured { background: #060607; }
.feat-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%;
  transform: scale(calc(1.04 * var(--zoom, 1))) translateX(var(--shift, 0%));
}
/* The car photo settles once as its slide comes in (1.12 -> 1.02 in 2.4 s, the same move the old
   16 s drift made) and then stands still. The endless drift kept the whole billboard redrawing
   60 times a second for every second of every car slide; now the GPU rests between slides. */
.panel-featured.is-active .feat-img, .panel-featured.is-leaving .feat-img {
  transform: scale(calc(1.02 * var(--zoom, 1))) translateX(var(--shift, 0%));
  transition: transform 2.4s cubic-bezier(.25, .7, .2, 1);
}
.panel-featured.is-next .feat-img, .panel-featured.is-entering .feat-img { transform: scale(calc(1.12 * var(--zoom, 1))) translateX(calc(var(--shift, 0%) + 2%)); } /* where the settle starts */
.panel-featured.is-active .feat-img, .panel-featured.is-leaving .feat-img, .panel-featured.is-next .feat-img, .panel-featured.is-entering .feat-img { will-change: transform; }
.panel-featured::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(270deg, rgba(6, 6, 7, .85) 0%, rgba(6, 6, 7, .4) 34%, transparent 60%);
}
.feat-card {
  position: absolute; z-index: 2; right: 4%; top: 50%; transform: translateY(-50%);
  width: min(380px, 34%);
  display: flex; flex-direction: column; gap: 26px;
}
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.feat-name { margin: 6px 0 0; font: 400 clamp(26px, 2.8vw, 42px)/1.02 "Inter Tight", sans-serif; letter-spacing: -.03em; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.stats div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.stats dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 2px 0 0; font: 400 clamp(22px, 2.2vw, 34px)/1.1 "Inter Tight", sans-serif; letter-spacing: -.02em; }
.stats small { font: 400 13px Inter, sans-serif; color: var(--ink-3); letter-spacing: 0; }

/* --------------------------------------------------- board bottom UI */
.board-ui { position: absolute; left: 14px; right: 14px; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: flex-end; }
.dots { display: flex; gap: 6px; }
.dot {
  position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.dot b { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; border-radius: 2px; background: var(--red-2); }
.dot.is-done b { width: 100%; transform: scaleX(1); background: rgba(255, 255, 255, .5); }
.dot b { width: 100%; transform: scaleX(0); transform-origin: 0 50%; }
.dot.is-on b { animation: prog var(--dur, 10s) linear both; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.board-ui .led { margin-right: auto; display: flex; align-items: center; gap: 8px; font: 500 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

/* scrim for text legibility */
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 9, .95) 0%, rgba(8, 8, 9, .86) 30%, rgba(8, 8, 9, .5) 46%, rgba(8, 8, 9, .12) 60%, transparent 70%),
    linear-gradient(0deg, rgba(8, 8, 9, .7) 0%, transparent 30%);
}

/* ----------------------------------------------------------- header */
.top {
  position: absolute; z-index: 10; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) max(24px, 4vw) 0;
  height: calc(11.5% - 6px);
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .32em; text-decoration: none;
  font: 600 26px/1 "Inter Tight", sans-serif; letter-spacing: -.02em; color: var(--ink);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}

/* the 3D red Pro box */
.pro {
  position: relative; display: inline-grid; place-items: center;
  padding: .2em .36em .22em;
  font: 700 .8em/1 "Inter Tight", sans-serif; letter-spacing: 0;
  color: #fff;
  border-radius: .18em;
  background: linear-gradient(180deg, var(--red-1) 0%, var(--red-2) 52%, var(--red-3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    inset 1px 0 0 rgba(255, 255, 255, .15),
    inset -1px 0 0 rgba(0, 0, 0, .15),
    0 1px 0 #8c0c06, 0 2px 0 #7d0a05, 0 3px 0 var(--red-edge), 0 4px 0 #5a0603,
    0 6px 6px rgba(0, 0, 0, .35), 0 10px 18px rgba(0, 0, 0, .35);
  transform: perspective(240px) rotateX(14deg) translateY(-2px);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.pro::before { /* gloss */
  content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 46%;
  border-radius: .14em .14em .5em .5em / .14em .14em .2em .2em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06));
}
.pro span { position: relative; }
.brand:hover .pro { transform: perspective(240px) rotateX(4deg) translateY(-4px); }

.contact {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: 15px; text-decoration: none; color: #d6d6d2;
}
.contact:hover { color: #fff; }

/* ------------------------------------------------------------- hero */
.hero {
  position: absolute; z-index: 10;
  left: max(24px, 5.5vw); bottom: 15%;
  width: min(640px, 48vw);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), 0);
  will-change: transform;
}
.title {
  margin: 0;
  font: 500 min(6.2vw, 11.5 * var(--vh), 88px)/.98 "Inter Tight", sans-serif;
  letter-spacing: -.04em;
  /* no endless hover float: it redrew the title area every frame, forever */
  /* The endless hover makes .title a GPU layer, and some browsers (Safari) cut text-shadow at
     a layer's box. Room for the whole shadow, cancelled by negative margins: same layout. */
  padding: .4em .6em .7em .4em; margin: -.4em -.6em -.7em -.4em;
}
.title .line { display: block; padding: .04em .1em .1em 0; margin-bottom: -.08em; }
/* No overflow: hidden on .line: it cut the soft text-shadow off at the line box, leaving hard
   rectangular edges. The rise mask is a clip-path on the span instead, only while it rises,
   and when the animation ends the clip is gone and the shadow fades out freely. The span also
   gets padding (cancelled by negative margins) so its own box holds the whole shadow too. */
.title .line > span {
  display: inline-block;
  padding: .3em .6em .6em .4em; margin: -.3em -.6em -.6em -.4em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 14px 30px rgba(0, 0, 0, .6);
  animation: rise 1.1s cubic-bezier(.2, .7, .1, 1) backwards; /* backwards: no clip-path left after it */
}
.title .line:nth-child(2) > span { animation-delay: .12s; }
.lede {
  margin: min(24px, 2.6 * var(--vh)) 0 0; max-width: 470px;
  font-size: min(18px, 2.3 * var(--vh)); line-height: 1.6; color: var(--ink-2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
  animation: fade 1s ease .35s both;
}
@keyframes rise {
  /* 1.08em = the old 110% of the unpadded line; the mask's bottom starts at the line's bottom */
  from { transform: translateY(1.08em) rotate(2deg); clip-path: inset(-1em -1em 1.58em -1em); }
  to { transform: none; clip-path: inset(-1em -1em -2em -1em); }
}
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.stores {
  display: flex; gap: 14px; margin-top: min(34px, 3.8 * var(--vh));
  perspective: 600px;
}
.store {
  position: relative; display: block; flex: 0 1 auto;
  height: min(54px, 6.4 * var(--vh));
  border-radius: 12px;
  /* the badges float three times after they land, then rest (an endless bob kept the GPU busy) */
  animation: fly-in .9s cubic-bezier(.2, .8, .2, 1) backwards, bob 4.2s ease-in-out 3;
  animation-delay: calc(.55s + var(--i) * .12s), calc(1.5s + var(--i) * .7s);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.store:nth-child(1) { --i: 0; }
.store:nth-child(2) { --i: 1; }
.store:nth-child(3) { --i: 2; }
.store img {
  position: relative; z-index: 1; height: 100%; width: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 14px 24px -10px rgba(0, 0, 0, .9);
  transition: box-shadow .3s;
}
.store::after { /* floating shadow on the "ground" */
  /* a soft radial gradient instead of filter: blur(6px): the blur was re-run by the GPU
     on every frame of the endless bob animation, for each of the 3 badges */
  content: ""; position: absolute; left: calc(12% - 14px); right: calc(12% - 14px); bottom: -29px; height: 36px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, .08) 75%, transparent);
  animation: shadow 4.2s ease-in-out 3; animation-delay: calc(1.5s + var(--i) * .7s);
}
.store:hover, .store:focus-visible { animation-play-state: paused; transform: translateY(-6px) rotateX(10deg) scale(1.03); }
.store:hover img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 18px 30px -10px rgba(0, 0, 0, .9); }
@keyframes fly-in { from { opacity: 0; transform: translateY(40px) rotateX(-35deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82) translateY(7px); opacity: .55; } }

/* ------------------------------------------------------------ footer */
.foot {
  position: absolute; z-index: 10; left: max(24px, 5.5vw); bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; gap: 18px; font-size: 12px; color: #8d8d89;
}
.foot a { text-decoration: none; color: #8d8d89; }
.foot a:hover { color: #fff; }

/* ======================================================== portrait/mobile */
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .top { height: 64px; padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 22px; }
  /* The billboard takes whatever height the hero text leaves: app.js measures the space
     from the hero's top to the bottom of the screen into --below on <body> (fallback 300px). */
  .rig {
    left: 12px; right: 12px; top: 68px; bottom: calc(var(--below, 300px) + 14px);
    transform: none; will-change: auto; /* flat on phones: a tilt pushes the board into the header */
  }
  .lamps { display: none; }
  .board { padding: 8px 8px 30px; }
  .board-ui { height: 30px; left: 8px; right: 8px; }
  .board-ui .led { display: none; }
  .dots { margin: 0 auto; }
  .tag { right: 10px; top: 10px; font-size: 12px; }
  .cards { inset: 15% 5% 7%; gap: 12px; }
  .feat-img { object-position: 30% 50%; transform: scale(1.04); }
  .panel-featured.is-active .feat-img, .panel-featured.is-leaving .feat-img { transform: scale(1.02); } /* no per-car shift on phones */
  .panel-featured.is-next .feat-img, .panel-featured.is-entering .feat-img { transform: scale(1.12) translateX(2%); }
  .panel-featured::before { background: linear-gradient(0deg, rgba(6, 6, 7, .92) 0%, rgba(6, 6, 7, .5) 40%, transparent 62%); }
  .feat-card { left: 12px; right: 12px; top: auto; bottom: 10px; transform: none; width: auto; gap: 8px; }
  .feat-card .eyebrow { display: none; }
  .feat-name { font-size: 20px; margin: 0; }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stats div { padding-top: 6px; }
  .stats dt { font-size: 9px; letter-spacing: .08em; }
  .stats dd { font-size: 17px; }
  .stats small { display: block; font-size: 10px; }

  /* darken only the band behind the hero text, never the billboard above it */
  .scrim { top: auto; height: calc(var(--below, 300px) + 14px); background: linear-gradient(0deg, rgba(8, 8, 9, .96) 0%, rgba(8, 8, 9, .9) 70%, transparent 100%); }

  .hero {
    left: 16px; right: 16px; width: auto; transform: none;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 30px);
  }
  .title { font-size: min(10.4vw, 5.4 * var(--vh), 48px); animation: none; }
  .lede { font-size: min(15px, 3.9vw, 2.1 * var(--vh)); margin-top: min(12px, 1.6 * var(--vh)); line-height: 1.45; }
  /* three equal badges in one calm row: no bobbing, same box even if an image fails */
  .stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: min(18px, 2.2 * var(--vh)); max-width: 520px; align-items: center; }
  .store { height: auto; border-radius: 8px; animation: fly-in .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.55s + var(--i) * .12s); }
  .store img { display: block; width: 100%; height: auto; aspect-ratio: 576 / 174; object-fit: contain; border-radius: 8px; background: #000; }
  .store::after { display: none; }
  .foot { left: 16px; right: 16px; justify-content: center; }
}

/* landscape phones: very short screens */
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  .rig { top: 15%; bottom: 8%; }
  .lamps { display: none; }
  .top { min-height: 0; height: 15%; padding-top: 8px; }
  .brand { font-size: 20px; }
  .hero { bottom: 12%; }
  .foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .panel.anim, .panel-featured .feat-img { transition-duration: .01ms !important; }
  .card-in { transition: none; }
}

/* ===================================== car spec block: technical data sheet */
/* Every spec on its own row (label left, value right). The extra specs (class "x", from
   CARS[].extra / featExtra in the JS) are shown here; data-k orders them. Static type and
   layout only: no blur, blend or backdrop filters. */
.panel-featured::before { background: linear-gradient(270deg, rgba(6, 6, 7, .92) 0%, rgba(6, 6, 7, .7) 32%, transparent 58%); }
.feat-card { width: min(420px, 36%); gap: 18px; }
.feat-name { font-size: clamp(28px, 2.9vw, 44px); }
.stats { display: flex; flex-direction: column; gap: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: clamp(6px, .75vw, 11px) 0; border-top-color: rgba(255, 255, 255, .14); }
.stats dt { font-size: 11px; }
.stats dd { margin: 0; font: 500 clamp(15px, 1.35vw, 21px)/1.1 "Inter Tight", sans-serif; letter-spacing: -.01em; text-align: right; font-variant-numeric: tabular-nums; }
.stats small { font-size: 12px; }
.stats [data-k="power"] { order: 1; } .stats [data-k="torque"] { order: 2; }
.stats [data-k="accel"] { order: 3; } .stats [data-k="top"] { order: 4; }
.stats [data-k="engine"] { order: 5; } .stats [data-k="disp"] { order: 6; }
.stats [data-k="eco"] { order: 7; } .stats [data-k="drive"] { order: 8; }
.stats [data-k="gear"] { order: 9; } .stats [data-k="weight"] { order: 10; }
.stats [data-k="power"] dd { color: var(--red-1); }

@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .panel-featured::before { background: linear-gradient(0deg, rgba(6, 6, 7, .94) 0%, rgba(6, 6, 7, .6) 42%, transparent 66%); }
  .feat-card { width: auto; gap: 8px; }
  .feat-name { font-size: 20px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; border-bottom: 0; }
  .stats div { padding: 5px 0; }
  .stats [data-k="eco"], .stats [data-k="disp"], .stats [data-k="gear"], .stats [data-k="weight"] { display: none; }
  .stats dt { font-size: 9px; }
  .stats dd { font-size: 14px; }
  .stats small { display: inline; font-size: 10px; }
}
