/* Rimal Motor House, concept showroom by OSquare Studio. Mobile first. */
@property --acc { syntax: "<color>"; inherits: true; initial-value: #ff6a1f; }

:root {
  --bg: #060607;
  --bg-2: #0d0d0f;
  --text: #f5f3ee;
  --muted: #a09c94;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.11);
  --acc: #ff6a1f;
  --orange: #e8420a;
  --paper: #f1f0ec;
  --ink: #101012;
  --r-lg: 28px;
  --r-md: 20px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Kufi Arabic", "Geeza Pro", sans-serif;
  --pad: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[lang="ar"] { font-family: var(--arabic); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
h2 { font-weight: 600; font-size: clamp(2rem, 8.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.015em; }
.head p { margin-top: 14px; color: var(--muted); max-width: 44ch; font-size: 1.05rem; }
.head .fine { font-size: 0.85rem; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 600; font-size: 1rem; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s; touch-action: manipulation; }
.btn:active { transform: scale(.96); }
.btn--acc { background: var(--acc); color: #0a0a0a; box-shadow: 0 14px 34px -12px var(--acc); transition: transform .25s var(--ease), box-shadow .25s, background-color .8s; }
.btn--acc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.btn--acc:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn--acc:hover { box-shadow: 0 18px 44px -10px var(--acc); transform: translateY(-2px); }
.btn--glass { background: var(--surface-2); border: 1px solid var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn--glass:hover { background: rgba(255,255,255,.16); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 14px 34px -12px var(--orange); }
.btn--orange:hover { transform: translateY(-2px); background: #ff5a22; }
.round { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--stroke); background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background-color .2s, transform .2s var(--ease), border-color .2s; }
.round:hover { background: var(--surface-2); border-color: rgba(255,255,255,.3); }
.round:active { transform: scale(.92); }
.round[aria-pressed="true"] { color: #ff4d6d; border-color: #ff4d6d; }
.round[aria-pressed="true"] svg path { fill: currentColor; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); border: 1px solid var(--stroke); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }

/* Nav */
.nav { position: fixed; z-index: 30; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.nav.is-stuck { background: rgba(12,12,14,.72); border-color: var(--stroke); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 16px 40px -20px #000; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav__links { display: none; }
.nav__side { display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 0; padding: 10px 12px; font-size: 0.9rem; color: var(--muted); border-radius: 999px; }
.lang:hover { color: var(--text); }

/* Stage */
.stage { position: relative; height: 100svh; min-height: 680px; max-height: 1000px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; padding-top: 70px; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 60% at 50% 105%, #17171a 0%, var(--bg) 60%); }
.stage__glow { position: absolute; z-index: -1; left: 50%; top: 40%; width: min(120vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--acc), transparent 70%); opacity: .2; filter: blur(30px); transition: --acc .9s; pointer-events: none; }
.stage, .btn--acc, .dots button, .slide { transition: --acc .9s; }

.concept { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); font-size: 0.8rem; color: var(--muted); }
.concept i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 var(--orange); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.stage__track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.stage__track::-webkit-scrollbar { display: none; }
.stage__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding: 0 var(--pad); overflow: hidden; }
.slide__visual { position: relative; display: grid; place-items: center; min-height: 0; min-width: 0; }
.slide__ghost { position: absolute; left: 50%; top: 40%; translate: -50% -50%; font-weight: 800; font-size: clamp(9rem, 50vw, 30rem); line-height: .8; letter-spacing: -0.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 30%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 13%, transparent), transparent 80%); -webkit-background-clip: text; background-clip: text; user-select: none; will-change: transform; }
.slide__ring { position: absolute; left: 50%; top: 50%; width: min(92vw, 62vh, 640px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--c); -webkit-mask-image: conic-gradient(#000 0 28%, transparent 46% 82%, #000 100%); mask-image: conic-gradient(#000 0 28%, transparent 46% 82%, #000 100%); opacity: .55; animation: spin 28s linear infinite; }
.slide__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px 3px var(--c); }
@keyframes spin { to { rotate: 360deg; } }
.slide__car { position: relative; width: calc(min(120vw, 150vh, 1100px) * var(--z, 1)); justify-self: center; margin-inline: -50%; height: auto; max-width: none; aspect-ratio: 16 / 10; object-fit: cover; mix-blend-mode: screen; filter: contrast(1.14) brightness(.96); -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 54%, #000 56%, transparent 100%); mask-image: radial-gradient(ellipse 58% 56% at 50% 54%, #000 56%, transparent 100%); pointer-events: none; user-select: none; will-change: transform; }
.slide__info { position: relative; padding-bottom: 14px; will-change: transform, opacity; }
.slide__meta { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--c); font-weight: 500; }
.slide__meta span { color: var(--muted); font-weight: 400; }
.slide__title { margin-top: 2px; font-weight: 600; font-size: clamp(2.5rem, 12vw, 5.4rem); line-height: .98; letter-spacing: -0.045em; }
.slide__price { margin-top: 8px; font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.slide__price small { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.slide__cta { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.slide__cta .btn { flex: 1; --acc: var(--c); background: var(--c); box-shadow: 0 14px 34px -12px var(--c); }
.slide__cta .round { width: 52px; height: 52px; }

.hud { padding: 0 var(--pad) calc(86px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stats > div { padding: 0 10px; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--stroke); }
.stats dt { font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.stats b { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.72rem; color: var(--muted); }
.hud__ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hud__ctrl .round { display: none; }
.dots { display: flex; gap: 6px; }
.dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.28); transition: width .4s var(--ease), background-color .4s; }
.dots button[aria-selected="true"]::before { width: 22px; background: var(--acc); }
.dragcursor { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .stage .slide:first-child .slide__car { animation: carIn 1.4s var(--ease) both; }
  .js .stage .slide:first-child .slide__ghost { animation: ghostIn 1.6s var(--ease) both; }
  .js .stage .slide:first-child .slide__info > * { animation: up .9s var(--ease) both; animation-delay: calc(.35s + var(--n, 0) * .08s); }
  .js .hud, .js .concept { animation: up .9s .7s var(--ease) both; }
  @keyframes carIn { from { transform: translateX(40%) scale(.9); opacity: 0; } }
  @keyframes ghostIn { from { transform: translateX(-12%); opacity: 0; } }
  @keyframes up { from { transform: translateY(22px); opacity: 0; } }
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--stroke); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__in { display: flex; gap: 48px; width: max-content; animation: slide 36s linear infinite; font-size: 1.15rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }
.marquee__in span { display: flex; align-items: center; gap: 48px; }
.marquee__in span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--stroke); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Inventory */
.inventory { padding: 72px 0 80px; }
.filters { display: flex; gap: 8px; margin: 26px calc(var(--pad) * -1) 22px; padding: 4px var(--pad); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); font-weight: 500; transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.pill:active { transform: scale(.95); }
.pill.is-on { background: var(--text); color: var(--ink); border-color: var(--text); }
.grid { display: grid; gap: 18px; }
.car { position: relative; display: block; width: 100%; padding: 0; text-align: left; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: var(--bg-2); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; box-shadow: 0 30px 60px -34px #000; }
.car:hover, .car:focus-visible { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 34px 70px -30px color-mix(in srgb, var(--c) 55%, #000); }
.car__img { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #111; }
.car__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.car:hover .car__img img { transform: scale(1.07); }
.car__tag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(10,10,10,.6); border: 1px solid var(--stroke); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.78rem; }
.car__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; padding: 16px 18px 18px; }
.car__make { font-size: 0.85rem; color: var(--muted); grid-column: 1 / -1; }
.car__model { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; grid-column: 1 / -1; }
.car__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; grid-column: 1 / -1; }
.car__meta span { padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 0.8rem; color: #d2cec6; font-variant-numeric: tabular-nums; }
.car__price { margin-top: 12px; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.car__go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--text); color: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
.car:hover .car__go { transform: rotate(-45deg); background: var(--c); }
.grid__empty { color: var(--muted); padding: 30px 0; }

/* Why (light) */
.why { background: var(--paper); color: var(--ink); padding: 72px 0 84px; border-radius: 36px 36px 0 0; }
.head--dark p { color: #55534e; }
.steps-cards { display: flex; gap: 14px; margin: 30px calc(var(--pad) * -1) 0; padding: 10px var(--pad) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.steps-cards::-webkit-scrollbar { display: none; }
.steps-cards li { flex: 0 0 76%; scroll-snap-align: center; background: #fff; border-radius: var(--r-lg); padding: 24px 22px 28px; box-shadow: 0 30px 50px -30px rgba(20,20,30,.35), 0 2px 6px rgba(20,20,30,.05); transition: transform .5s var(--ease), box-shadow .5s; }
.steps-cards li:hover { transform: translateY(-8px); box-shadow: 0 44px 60px -30px rgba(20,20,30,.4), 0 2px 6px rgba(20,20,30,.05); }
.ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--i); background: color-mix(in srgb, var(--i) 14%, #fff); margin-bottom: 44px; }
.ico svg { width: 26px; height: 26px; }
.steps-cards p { margin-top: 8px; color: #55534e; font-size: 0.96rem; }

/* Finance + enquire */
.finance { background: var(--paper); color: var(--ink); padding: 0 0 84px; }
.finance .head p { color: #55534e; }
.finance__grid, .enquire__grid { display: grid; gap: 28px; }
.calc { display: grid; gap: 20px; padding: 24px 22px; background: var(--ink); color: var(--text); border: 0; box-shadow: 0 40px 70px -34px rgba(20,20,30,.6); }
.calc label, .form label { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.calc output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc select, .calc input[type="range"], .form input, .form select { grid-column: 1 / -1; width: 100%; }
select, .form input { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.06); color: var(--text); font-size: 1rem; transition: border-color .2s, background-color .2s; }
select option { color: #111; }
select:focus, .form input:focus { outline: none; border-color: var(--acc); background: rgba(255,255,255,.1); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: none; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--acc) var(--fill, 0%), rgba(255,255,255,.14) 0); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--acc); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.5), 0 0 0 6px color-mix(in srgb, var(--acc) 25%, transparent); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; }
.calc__result { display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.calc__result span { font-size: 0.9rem; color: var(--muted); }
.calc__result strong { font-size: clamp(2.2rem, 10vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }

.enquire { padding: 80px 0; background: radial-gradient(80% 60% at 80% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%); }
.visit { margin-top: 24px; display: grid; gap: 10px; }
.visit div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 0.95rem; }
.visit dt { color: var(--muted); }
.form { display: grid; gap: 16px; }
.form.card { padding: 24px 22px; }
.form .btn { justify-self: stretch; margin-top: 4px; }
.form .is-invalid { border-color: #ff6b6b; }
.form__status { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border-left: 3px solid var(--acc); font-size: 0.94rem; }
.form__status.is-error { border-left-color: #ff6b6b; }

/* Dealers (OSquare) */
.dealers { background: #020202; padding: 80px 0 60px; border-top: 1px solid var(--stroke); --acc: var(--orange); }
.dealers__by { font-size: 1.05rem; color: #bdbdbd; margin-bottom: 18px; }
.dealers__by b { color: #fff; }
.dealers .head p:last-child { max-width: 56ch; }
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; }
.feature { min-width: 0; }
.feature { padding: 16px 16px 24px; }
.feature h3 { margin-top: 20px; padding: 0 6px; }
.feature p { margin-top: 8px; padding: 0 6px; color: var(--muted); font-size: 0.96rem; }
.mock { height: 230px; padding: 16px; border-radius: 18px; background: #0b0b0c; border: 1px solid #222; font-size: 0.84rem; overflow: hidden; }
.mock__bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #222; font-weight: 600; }
.mock__add { background: var(--orange); padding: 5px 12px; border-radius: 99px; font-weight: 500; font-size: 0.78rem; }
.mock__row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #1a1a1a; color: #ddd; }
.mock__row i { width: 30px; height: 22px; border-radius: 6px; background: var(--c); }
.mock__row em { font-style: normal; font-size: 0.74rem; padding: 2px 10px; border-radius: 99px; border: 1px solid #3a3a3a; color: #8f8f8f; }
.mock__row em.is-live { border-color: #2f7d4f; color: #6fd39a; }
.mock__row em.is-pub { border-color: var(--orange); color: #ff9a73; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.mock--lead { display: grid; grid-template-rows: auto minmax(44px, 1fr) auto; height: auto; min-height: 230px; }
.mock__lead, .mock__crm { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid #2c2c2c; background: #141415; }
.mock__crm { border-color: var(--orange); box-shadow: 0 0 30px -10px var(--orange); }
.mock__lead span, .mock__crm span { color: #bbb; }
.mock__flow { position: relative; width: 2px; margin: 0 auto; background: #2a2a2a; }
.mock__flow i { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px 2px var(--orange); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { from { top: -6px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }
.mock--listing { display: grid; grid-template-columns: 38% 1fr; gap: 14px; }
.mock--listing img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: #1a1a1a; }
.mock__gen { display: grid; align-content: center; gap: 4px; min-width: 0; }
.mock__gen span { color: #a5a5a5; font-size: 0.8rem; }
.mock__gen b[lang="ar"] { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #333; }
.promises { display: grid; gap: 0; margin-top: 36px; border-block: 1px solid var(--stroke); }
.promises li { display: grid; gap: 2px; padding: 20px 0; }
.promises li + li { border-top: 1px solid var(--stroke); }
.promises strong { font-size: 1.1rem; font-weight: 600; }
.promises span { color: var(--muted); font-size: 0.94rem; }
.demo { display: grid; gap: 24px; margin-top: 36px; padding: 26px 22px; background: linear-gradient(140deg, rgba(232,66,10,.22), rgba(255,255,255,.03) 55%); }
.demo h3 { font-size: clamp(1.6rem, 6vw, 2.3rem); letter-spacing: -0.03em; }
.demo p { margin-top: 10px; color: #cfcfcf; max-width: 42ch; }

.foot { background: #020202; color: #7d7d7d; font-size: 0.82rem; padding: 22px 0 calc(100px + env(safe-area-inset-bottom)); }
.foot p + p { margin-top: 6px; }

/* Mobile tab bar */
.tabbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 24px; background: rgba(16,16,18,.78); border: 1px solid var(--stroke); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 20px 50px -14px #000; }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 18px; font-size: 0.7rem; color: var(--muted); transition: color .25s, background-color .25s; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.is-on { color: var(--text); background: var(--surface-2); }

/* Sheet */
.sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: #111113; color: var(--text); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetUp .5s var(--ease); }
.sheet[open]::backdrop { animation: fade .4s; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet__close { position: sticky; top: 14px; margin: 14px 14px -62px auto; z-index: 2; background: rgba(0,0,0,.5); }
.sheet__img { aspect-ratio: 16 / 10; background: #000; }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: 22px var(--pad) 32px; }
.sheet__make { color: var(--muted); }
.sheet h2 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
.sheet__price { font-size: 1.2rem; font-weight: 600; margin: 8px 0 12px; }
.sheet__body > p:not([class]) { color: #cfcbc3; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 24px; }
.specs div { padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.specs dt { font-size: 0.76rem; color: var(--muted); }
.specs dd { font-weight: 500; font-size: 0.95rem; }
.sheet .btn { width: 100%; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 0.94rem; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: up .4s var(--ease); }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ===== v3: swipe cues, brand filter, gallery, charts ===== */
/* Stage controls: arrows on every screen, story-style progress, counter */
.hud__ctrl { justify-content: space-between; }
.hud__ctrl .round { display: grid; width: 42px; height: 42px; }
.dots { gap: 2px; }
.dots button { width: auto; height: 32px; padding: 0 3px; }
.dots button::before { width: 10px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.25); transition: width .45s var(--ease); }
.dots button[aria-selected="true"]::before { width: 36px; background: linear-gradient(90deg, var(--acc) calc(var(--p, 0) * 100%), rgba(255,255,255,.25) 0); }
.counter { min-width: 56px; text-align: center; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter b { color: var(--text); font-size: 1.05rem; font-weight: 600; }
.stage__track.is-free { scroll-snap-type: none; }

.swipehint { position: absolute; z-index: 4; left: 50%; top: 30%; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: #111; font-weight: 600; font-size: .92rem; white-space: nowrap; box-shadow: 0 18px 40px -10px rgba(0,0,0,.75); pointer-events: none; opacity: 0; scale: .8; transition: opacity .4s, scale .5s var(--ease); }
.swipehint.is-on { opacity: 1; scale: 1; }
.swipehint svg { animation: hand 1.5s var(--ease) infinite; }
@keyframes hand { 0%, 100% { transform: translateX(7px) rotate(10deg); } 50% { transform: translateX(-9px) rotate(-8deg); } }

/* Horizontal scrollers: edge fade, progress bar, grab cursor */
.hs { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.hs:not(.hs--start) { --fl: 36px; }
.hs:not(.hs--end) { --fr: 56px; }
.hs-bar { position: relative; width: 96px; height: 3px; margin: 12px auto 0; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.hs-bar[hidden] { display: none; }
.hs-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--text); }
.why .hs-bar { background: rgba(16,16,18,.12); }
.why .hs-bar i { background: var(--ink); }
.is-grabbing { cursor: grabbing !important; user-select: none; }
.is-grabbing * { pointer-events: none; }

/* Brand rail */
.brands { display: flex; gap: 10px; margin: 26px calc(var(--pad) * -1) 0; padding: 6px var(--pad) 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
.brands::-webkit-scrollbar { display: none; }
.brand-tile { flex: none; width: 84px; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; scroll-snap-align: start; color: var(--muted); font-size: .82rem; font-weight: 500; line-height: 1.2; text-align: center; transition: color .25s; }
.brand-tile__img { position: relative; display: grid; width: 76px; height: 76px; border-radius: 24px; overflow: hidden; border: 1px solid var(--stroke); background: radial-gradient(circle at 50% 30%, #222, var(--bg-2)); box-shadow: 0 14px 30px -18px #000; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.brand-tile__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.35; filter: saturate(.7) brightness(.75); transition: scale .6s var(--ease), filter .4s; }
.brand-tile__img svg { width: 28px; height: 28px; margin: auto; color: var(--text); }
.brand-tile__n { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; font-variant-numeric: tabular-nums; }
.brand-tile:hover .brand-tile__img { transform: translateY(-3px); }
.brand-tile:active .brand-tile__img { transform: scale(.93); }
.brand-tile[aria-pressed="true"] { color: var(--text); }
.brand-tile[aria-pressed="true"] .brand-tile__img { border-color: transparent; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tile, var(--text)), 0 18px 34px -14px var(--tile, #000); }
.brand-tile[aria-pressed="true"] .brand-tile__img img { scale: 1.55; filter: none; }
.filters { margin-top: 14px; }
.pill__n { margin-left: 7px; opacity: .55; font-variant-numeric: tabular-nums; }
.pill:disabled { opacity: .3; cursor: not-allowed; }
.results { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.results b { color: var(--text); font-variant-numeric: tabular-nums; }
.clear { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Inventory card deal meter */
.car__deal { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: #6fd39a; font-size: .8rem; }
.car__deal i { position: relative; width: 40px; height: 4px; border-radius: 99px; background: rgba(111,211,154,.2); overflow: hidden; }
.car__deal i::after { content: ""; position: absolute; inset: 0; width: calc(var(--g) * 100%); border-radius: 99px; background: #6fd39a; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .5s; }
.car.is-in .car__deal i::after { transform: none; }

/* Why: counters */
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; border-radius: var(--r-lg); overflow: hidden; background: rgba(16,16,18,.08); box-shadow: 0 30px 50px -36px rgba(20,20,30,.4); }
.counters div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 18px 20px; background: #fff; }
.counters dd { font-size: clamp(2.1rem, 10vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.counters dt { font-size: .86rem; color: #55534e; }

/* Finance split */
.split { display: grid; gap: 12px; }
.split__bar { display: flex; gap: 3px; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); }
.split__bar i { width: 0; transition: width 1s var(--ease); }
.s-down { background: #8a867e; }
.s-loan { background: var(--acc); }
.s-int { background: repeating-linear-gradient(135deg, var(--acc) 0 4px, color-mix(in srgb, var(--acc) 35%, #000) 4px 8px); }
.split__legend { display: grid; gap: 6px; color: var(--muted); font-size: .86rem; }
.split__legend li { display: flex; align-items: center; gap: 8px; }
.split__legend i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.split__legend b { margin-left: auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Dealer analytics mock and Lighthouse ring */
.mock__up { color: #6fd39a; font-size: .8rem; font-weight: 600; }
.chart { display: flex; align-items: stretch; gap: 8px; height: 156px; margin-top: 14px; }
.chart div { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 6px; text-align: center; color: #8f8f8f; font-size: .7rem; }
.chart i { align-self: end; height: calc(var(--h) * 100%); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--orange), color-mix(in srgb, var(--orange) 25%, #000)); transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease) calc(var(--i) * 90ms + .3s); }
.chart div:nth-child(6) i { box-shadow: 0 0 22px -4px var(--orange); }
.is-in .chart i { transform: none; }
.promises li.has-ring { grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.ring { position: relative; grid-row: span 2; width: 56px; height: 56px; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 5; }
.ring .r-bg { stroke: rgba(255,255,255,.1); }
.ring .r-fg { stroke: #2fbf71; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease) .3s; }
.is-in .ring .r-fg { stroke-dasharray: 98 100; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; color: #6fd39a; font-size: .95rem; font-weight: 600; }

/* Sheet: gallery */
.gallery { position: relative; min-width: 0; background: #000; }
.gallery__track { display: flex; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gallery__count { position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .8rem; font-variant-numeric: tabular-nums; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.45); box-shadow: 0 1px 4px rgba(0,0,0,.5); transition: width .4s var(--ease), background-color .3s; }
.gallery__dots i.is-on { width: 22px; background: #fff; }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; display: none; background: rgba(0,0,0,.45); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__thumbs { display: none; }

/* Sheet: body sections */
.sheet__in.is-swap { animation: swap .55s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(16px); } }
.sheet__desc { margin-top: 14px; color: #cfcbc3; }
.sheet__body h3 { margin-bottom: 14px; font-size: 1.05rem; }
.perf, .market, .similar { margin-top: 28px; }

.deal { margin-top: 14px; padding: 14px 16px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); font-size: .9rem; }
.deal b { color: #6fd39a; font-weight: 600; }
.deal__scale { position: relative; height: 8px; margin: 12px 0 6px; border-radius: 99px; background: linear-gradient(90deg, #2fbf71, #d6c23a 50%, #e8553a); }
.deal__pin { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2), 0 4px 10px rgba(0,0,0,.5); transition: left 1.6s cubic-bezier(.34, 1.4, .55, 1) .3s; }
.is-anim .deal__pin { left: calc(var(--pos) * 100%); }
.deal__lbl { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }

.perf__grid { display: grid; grid-template-columns: minmax(130px, 42%) 1fr; gap: 14px 18px; align-items: center; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); }
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 10; stroke-linecap: round; }
.gauge__fill { fill: none; stroke: var(--acc); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 100; filter: drop-shadow(0 0 6px var(--acc)); transition: stroke-dasharray 1.7s var(--ease) .15s; }
.is-anim .gauge__fill { stroke-dasharray: var(--arc) 100; }
.gauge__tick { stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.gauge__tick--major { stroke: rgba(255,255,255,.75); stroke-width: 2.5; }
.gauge__lbl { fill: var(--muted); font: 11px var(--font); text-anchor: middle; }
.gauge__needle { transform-origin: 100px 100px; transform: rotate(-135deg); transition: transform 1.9s cubic-bezier(.34, 1.45, .55, 1) .15s; }
.is-anim .gauge__needle { transform: rotate(var(--deg)); }
.gauge__needle path { fill: var(--text); }
.gauge__hub { fill: var(--bg); stroke: var(--text); stroke-width: 3; }
.gauge__val { fill: var(--text); font: 600 26px var(--font); letter-spacing: -1px; text-anchor: middle; }
.gauge__unit { fill: var(--muted); font: 10px var(--font); text-anchor: middle; }
.bars { display: grid; gap: 16px; }
.bar__top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .84rem; }
.bar__top b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar__track { position: relative; height: 8px; margin-top: 7px; border-radius: 99px; background: rgba(255,255,255,.1); }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 45%, transparent), var(--acc)); box-shadow: 0 0 14px -3px var(--acc); transition: width 1.5s var(--ease) var(--delay, .3s); }
.is-anim .bar__fill { width: calc(var(--v) * 100%); }
.bar__avg { position: absolute; top: -4px; bottom: -4px; left: calc(var(--avg) * 100%); width: 2px; border-radius: 2px; background: #fff; opacity: .85; }
.perf__note { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.perf__note i { width: 2px; height: 12px; background: #fff; }

.chart-line { padding: 14px 14px 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); }
.chart-line svg { width: 100%; height: auto; overflow: visible; }
.cl__grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.cl__area { opacity: 0; transition: opacity 1s .9s; }
.cl__line { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s var(--ease) .2s; }
.cl__you { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0; transition: opacity .6s 1.6s; }
.cl__dot { fill: var(--acc); stroke: #111113; stroke-width: 3; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .5s cubic-bezier(.34, 1.6, .55, 1) 1.9s; }
.cl__tag { opacity: 0; transition: opacity .5s 1.8s; }
.cl__tag rect { fill: #fff; }
.cl__tag text { fill: #111; font: 600 10px var(--font); }
.cl__txt { fill: var(--muted); font: 10px var(--font); }
.is-anim .cl__line { stroke-dashoffset: 0; }
.is-anim .cl__area, .is-anim .cl__you, .is-anim .cl__tag { opacity: 1; }
.is-anim .cl__dot { scale: 1; }
.market__sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; color: var(--muted); font-size: .84rem; }
.market__sum b { color: var(--text); font-weight: 600; }

.similar__track { display: flex; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.similar__track::-webkit-scrollbar { display: none; }
.sim { flex: 0 0 66%; max-width: 250px; padding: 0; overflow: hidden; scroll-snap-align: start; text-align: left; border-radius: 20px; border: 1px solid var(--stroke); background: var(--bg-2); transition: transform .35s var(--ease), border-color .3s; }
.sim:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.sim img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #1a1a1d; }
.sim > span { display: block; padding: 0 14px; }
.sim__why { margin-top: 10px; color: var(--c); font-size: .74rem; font-weight: 500; }
.sim__model { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.sim__price { margin: 4px 0 14px; color: #d8d4cc; font-size: .9rem; font-variant-numeric: tabular-nums; }

.sheet__bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px calc(var(--pad) * -1) -32px; padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--stroke); background: rgba(17,17,19,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sheet__bar span { display: block; color: var(--muted); font-size: .78rem; }
.sheet__bar strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sheet .sheet__bar .btn { width: auto; flex: none; }

@media (hover: hover) and (pointer: fine) {
  .hs, .gallery__track { cursor: grab; }
}

/* Tablet */
@media (min-width: 700px) {
  :root { --pad: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .steps-cards li { flex-basis: 40%; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .promises li { padding: 24px 22px 24px 0; }
  .promises li + li { border-top: 0; border-left: 1px solid var(--stroke); padding-left: 22px; }
  .slide__cta .btn { flex: none; }
  .form .btn { justify-self: start; }
  .sheet { width: min(1040px, calc(100vw - 48px)); margin: auto; border-radius: 28px; }
  .sheet[open] { animation: pop .45s var(--ease); }
  @keyframes pop { from { transform: translateY(30px) scale(.96); opacity: 0; } }
  .sheet__in { display: grid; grid-template-columns: 1.1fr 1fr; }
  .sheet__img { aspect-ratio: auto; min-height: 100%; }
  .sheet__body { padding: 40px 36px; }
}

/* Desktop */
@media (min-width: 1000px) {
  :root { --pad: 56px; }
  body { font-size: 17px; }
  .nav { top: 18px; left: 50%; right: auto; translate: -50% 0; width: min(1240px, calc(100vw - 48px)); padding: 10px 10px 10px 22px; }
  .nav__links { display: flex; gap: 6px; }
  .nav__links a { padding: 10px 16px; border-radius: 999px; font-size: 0.96rem; color: #d6d2ca; transition: background-color .2s, color .2s; }
  .nav__links a:hover { background: var(--surface-2); color: #fff; }
  .tabbar { display: none; }
  .foot { padding-bottom: 30px; }
  .toast { bottom: 28px; }

  .stage { padding-top: 96px; min-height: 720px; }
  .concept { position: absolute; top: 104px; right: var(--pad); z-index: 2; }
  .stage__glow { left: 64%; top: 52%; }
  .slide { grid-template-rows: none; grid-template-columns: minmax(340px, 34%) minmax(0, 1fr); align-items: center; overflow: visible; padding: 0 var(--pad); max-width: 100%; }
  .slide__visual { grid-column: 2; grid-row: 1; height: 100%; }
  .slide__info { grid-column: 1; grid-row: 1; padding: 0; z-index: 2; }
  .slide__ghost { left: 42%; font-size: clamp(16rem, 34vw, 34rem); }
  .slide__car { width: calc(min(64vw, 118vh, 1180px) * var(--z, 1)); }
  .slide__ring { width: min(48vw, 70vh, 700px); }
  .slide__title { font-size: clamp(3.4rem, 6vw, 6.4rem); }
  .slide__price { font-size: 1.6rem; margin-top: 16px; }
  .slide__cta { margin-top: 28px; }
  .hud { grid-template-columns: minmax(0, 620px) auto; justify-content: space-between; align-items: center; padding: 0 var(--pad) 34px; }
  .stats { padding: 16px 10px; }
  .stats > div { padding: 0 18px; }
  .stats dt { font-size: 0.8rem; }
  .stats b { font-size: 1.8rem; }
  .stats span { font-size: 0.85rem; }
  .hud__ctrl .round { display: grid; }

  .inventory { padding: 120px 0; }
  .filters { margin: 36px 0 30px; padding: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .why { padding: 120px 0 130px; border-radius: 56px 56px 0 0; }
  .steps-cards { margin: 50px 0 0; padding: 0 0 90px; overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .steps-cards li:nth-child(2) { translate: 0 30px; }
  .steps-cards li:nth-child(3) { translate: 0 60px; }
  .steps-cards li:nth-child(4) { translate: 0 90px; }
  .finance { padding-bottom: 130px; }
  .finance__grid, .enquire__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .calc, .form.card { padding: 36px; }
  .enquire { padding: 130px 0; }
  .dealers { padding: 130px 0 80px; }
  .features { gap: 22px; margin-top: 56px; }
  .demo { grid-template-columns: 1fr 1fr; gap: 60px; padding: 48px; margin-top: 56px; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1000px) {
  .stage__track { cursor: none; }
  .dragcursor { display: grid; place-items: center; position: absolute; z-index: 5; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-weight: 600; font-size: 0.9rem; pointer-events: none; opacity: 0; scale: .4; transition: opacity .25s, scale .35s var(--ease); will-change: transform; }
  .dragcursor.is-on { opacity: 1; scale: 1; }
  .dragcursor.is-down { scale: .8; }
  .slide__info a, .slide__info button { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===== v3 larger screens ===== */
@media (min-width: 700px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters { grid-template-columns: repeat(4, 1fr); }
  .sheet__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .gallery { position: sticky; top: 0; height: min(92dvh, 880px); }
  .gallery__track { height: 100%; aspect-ratio: auto; }
  .gallery__nav { display: grid; }
  .gallery__dots { display: none; }
  .gallery__thumbs { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
  .gallery__thumbs button { width: 64px; height: 44px; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid transparent; opacity: .6; transition: opacity .25s, border-color .25s, transform .25s var(--ease); }
  .gallery__thumbs button:hover { opacity: .9; }
  .gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; transform: translateY(-3px); }
  .gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .sim { flex-basis: 46%; }
  .similar__track { margin: 0 -36px; padding: 2px 36px 4px; scroll-padding-inline: 36px; }
  .sheet__bar { margin: 28px -36px -40px; padding: 16px 36px; }
}
@media (min-width: 1000px) {
  .swipehint { display: none; }
  .hud__ctrl .round { width: 48px; height: 48px; }
  .hud__ctrl { gap: 14px; justify-content: flex-end; }
  .brands { margin: 36px 0 0; padding: 6px 4px 4px; scroll-padding-inline: 0; }
  .brand-tile { width: 96px; }
  .brand-tile__img { width: 88px; height: 88px; border-radius: 28px; }
  .counters { margin-top: 48px; }
  .counters div { padding: 26px 26px 28px; }
}

/* ===== v3.1: sheet loading, reveal and reset ===== */
.sheet.is-closing { animation: sheetDown .32s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fadeOut .32s forwards; }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { 0%, 100% { transform: rotate(-120deg); } 50% { transform: rotate(120deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes imgIn { from { opacity: 0; transform: scale(1.06); } }

/* Gallery loader: a little rev counter while the photos come in */
.gallery__loader { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: .82rem; letter-spacing: .02em; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%), linear-gradient(100deg, #0c0c0e 30%, #17171a 50%, #0c0c0e 70%) 0 0 / 200% 100%; }
.is-loading .gallery__loader { opacity: 1; animation: shimmer 1.6s linear infinite; }
.ld__track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6; }
.ld__arc { fill: none; stroke: var(--acc); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 22 78; transform-origin: 60px 60px; animation: spin 1.1s linear infinite; filter: drop-shadow(0 0 6px var(--acc)); }
.ld__needle { transform-origin: 60px 60px; animation: sweep 1.6s cubic-bezier(.5, 0, .5, 1) infinite; }
.ld__needle path { fill: var(--text); }
.ld__hub { fill: #111113; stroke: var(--text); stroke-width: 2; }
.gallery__slide { background: #0c0c0e; }
.gallery__slide img { opacity: 0; transition: opacity .5s var(--ease); }
.gallery__slide img.is-ok { opacity: 1; animation: imgIn .9s var(--ease); }
.is-loading .gallery__count, .is-loading .gallery__dots, .is-loading .gallery__thumbs, .is-loading .gallery__nav { opacity: 0; }
.gallery__count, .gallery__dots, .gallery__thumbs, .gallery__nav { transition: opacity .4s var(--ease) .15s; }

/* Body skeleton: text turns into shimmering bars, blocks get a shimmer cover */
.sheet__body :is(#dlg-make, #dlg-title, #dlg-desc, #dlg-price) { transition: color .35s; border-radius: 8px; }
.is-loading .sheet__body :is(#dlg-make, #dlg-title, #dlg-desc, #dlg-price) { color: transparent; background: linear-gradient(100deg, #1c1c1f 30%, #2a2a2e 50%, #1c1c1f 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.is-loading #dlg-make { width: 40%; }
.is-loading #dlg-title { width: 70%; }
:is(.deal, .perf__grid, #market, .specs > div, .sim) { position: relative; }
:is(.deal, .perf__grid, #market, .specs > div, .sim)::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); background: linear-gradient(100deg, #1a1a1d 30%, #26262a 50%, #1a1a1d 70%) 0 0 / 200% 100%; }
#market { border-radius: 22px; }
.is-loading :is(.deal, .perf__grid, #market, .specs > div, .sim)::after { opacity: 1; animation: shimmer 1.4s linear infinite; }
.is-loading .sheet__bar .btn { opacity: .4; pointer-events: none; }

/* Once loaded, sections rise in one after another */
.sheet__in.is-ready .sheet__body > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.sheet__in.is-ready .sheet__body > .sheet__bar { animation: none; }
.sim img { opacity: 0; transition: opacity .5s; }
.sim img.is-ok { opacity: 1; }

/* Used while resetting so animated parts snap back without playing in reverse */
.sheet__in.no-motion, .sheet__in.no-motion * { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sheet.is-closing { animation: none; }
  .is-loading .gallery__loader { opacity: 1; }
}
@media (min-width: 700px) {
  .sheet.is-closing { animation: popOut .28s var(--ease) forwards; }
  @keyframes popOut { to { transform: translateY(24px) scale(.97); opacity: 0; } }
}
