/* =====================================================================
   AJ Recond — editorial design system
   Near-black / off-white, vw-scaled grotesk display type with italic serif
   accents, hairline rules, small square-ish chips. Motion lives in js/layout.js
   (GSAP + ScrollTrigger + SplitText); nothing here hides content
   unless that script has added html.motion.
   (The admin dashboard keeps the previous styles in css/admin-base.css.)
   ===================================================================== */

:root {
  --black: #181713;
  --white: #f1f1f1;
  --paper: #e9e8e4;
  --grey: #646464;
  --grey-2: #9a9893;
  --line: rgba(24, 23, 19, .16);
  --line-inv: rgba(241, 241, 241, .18);
  --accent: #e10600;
  --wa: #25d366;

  --g: clamp(16px, 2vw, 40px);                 /* gutter */
  --r: max(4px, .35vw);                /* chip radius */
  --font: "Inter Tight", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", "Songti SC", "SimSun", serif;
  --ease: cubic-bezier(.84, 0, .16, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font: 400 15px/1.45 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: 1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--black); color: var(--white); }
.is-dark ::selection, .site-footer ::selection { background: var(--white); color: var(--black); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page content sits above the footer so the footer can be revealed underneath it */
main { position: relative; z-index: 1; background: var(--white); }

/* ---------- Type ---------- */
.t-display { font-size: 15vw; line-height: .8; letter-spacing: -.065em; text-transform: uppercase; font-weight: 500; }
.t-xl { font-size: max(2.6rem, 8.5vw); line-height: .84; letter-spacing: -.055em; text-transform: uppercase; font-weight: 500; }
.t-l { font-size: max(2rem, 4.6vw); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; font-weight: 500; }
.t-m { font-size: max(1.6rem, 2.9vw); line-height: 1; letter-spacing: -.045em; font-weight: 400; }
.t-s { font-size: max(1.15rem, 1.45vw); line-height: 1.15; letter-spacing: -.03em; font-weight: 400; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.t-display .serif, .t-xl .serif, .t-l .serif { letter-spacing: -.035em; }
.eyebrow { display: inline-block; font-size: max(11px, .76vw); line-height: 1.3; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--grey); }
.is-dark .muted { color: var(--grey-2); }
.accent { color: var(--accent); }
.ln { display: block; }                               /* one display line */
.ln > span { display: inline-block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--g); }
.section { padding-block: clamp(64px, 6vw, 100px); }
.is-dark { background: var(--black); color: var(--white); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.is-dark .rule { border-color: var(--line-inv); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--g); margin-bottom: max(40px, 4.5vw); }
.sec-head .eyebrow { padding-bottom: .6vw; }
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: max(44px, 3.1vw); padding: 0 max(16px, 1.15vw); border: 1px solid var(--black); border-radius: var(--r);
  background: var(--black); color: var(--white); font: 500 max(13px, .9vw)/1 var(--font); letter-spacing: -.01em;
  text-transform: lowercase; white-space: nowrap; cursor: pointer; transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--black); }
.btn:hover::before { transform: none; }
.btn svg { flex: none; width: 1.05em; height: 1.05em; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }

.btn-light, .is-dark .btn:not(.btn-line):not(.btn-whatsapp) { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light::before, .is-dark .btn:not(.btn-line):not(.btn-whatsapp)::before { background: var(--black); }
.btn-light:hover, .is-dark .btn:not(.btn-line):not(.btn-whatsapp):hover { color: var(--white); }
.is-dark .btn:not(.btn-line):not(.btn-whatsapp):hover { border-color: var(--line-inv); }

.btn-line { background: transparent; color: var(--black); border-color: var(--line); }
.btn-line::before { background: var(--black); }
.btn-line:hover { color: var(--white); border-color: var(--black); }
.is-dark .btn-line { color: var(--white); border-color: var(--line-inv); }
.is-dark .btn-line::before { background: var(--white); }
.is-dark .btn-line:hover { color: var(--black); }

.btn-whatsapp { background: var(--wa); border-color: var(--wa); color: var(--black); }
.btn-whatsapp::before { background: var(--black); }
.btn-whatsapp:hover { color: var(--white); }

.btn-dark, .btn-primary { /* legacy names = default */ }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: max(44px, 3.1vw); height: max(44px, 3.1vw);
  border: 1px solid var(--line); border-radius: var(--r); transition: background .3s, color .3s, border-color .3s;
}
.icon-btn:hover { background: var(--wa); border-color: var(--wa); color: var(--black); }

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.link-u:hover, a:hover > .link-u { background-size: 100% 1px; }

.arrow-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; text-transform: lowercase; }
.arrow-link svg { width: 1em; height: 1em; transition: transform .5s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Always-visible shared header ---------- */
#site-header { height: calc(88px + env(safe-area-inset-top, 0px)); }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  min-height: calc(88px + env(safe-area-inset-top, 0px));
  gap: var(--g); padding: calc(18px + env(safe-area-inset-top, 0px)) var(--g) 18px;
  color: #fff; background: #181713; border-bottom: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 5px 24px rgba(0,0,0,.18);
}
.site-header a, .site-header button { pointer-events: auto; }
.site-header .logo { gap: 8px; flex-shrink: 0; }
.site-header .logo-art { width: clamp(170px, 19vw, 280px); }
.logo { display: inline-flex; flex-direction: column; gap: .15em; line-height: 1; }
.logo-art { display: block; width: clamp(150px, 16vw, 250px); aspect-ratio: 1750 / 140; flex: none; }
/* Native vector lettering stays sharp without cropping or contrast filters. */
.logo-art img { display: block; width: 100%; height: auto; }
.logo-word { font-size: max(19px, 1.65vw); font-weight: 500; letter-spacing: -.06em; text-transform: uppercase; }
.logo-sub { font-family: var(--serif); font-style: italic; font-size: max(13px, .95vw); letter-spacing: -.01em; opacity: .85; }
.nav-list { display: flex; gap: max(5px, .4vw); }
.chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5em; height: 44px;
  padding: 0 max(12px, .9vw); border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); background: transparent; color: #fff; cursor: pointer;
  font: 500 max(14px, .9vw)/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.chip:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.chip.active { background: #fff; color: #181713; border-color: #fff; }
.chip:focus-visible, .site-header .logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.chip .roll { position: relative; display: block; overflow: hidden; height: 1.1em; line-height: 1.1em; }
.chip .roll > span { display: block; transition: transform .55s var(--ease); }
.chip .roll > span + span { position: absolute; top: 100%; left: 0; }
.chip:hover .roll > span { transform: translateY(-100%); }
.chip.active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.menu-btn { display: none; }

/* Fullscreen menu (small screens) */
.menu-panel {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(112px + env(safe-area-inset-top, 0px)) var(--g) calc(var(--g) * 1.5);
  background: var(--black); color: var(--white);
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu-panel { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-panel ol { counter-reset: m; }
.menu-panel li { overflow: hidden; border-bottom: 1px solid var(--line-inv); }
.menu-panel li a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0 6px;
  font-size: 13vw; line-height: .9; letter-spacing: -.06em; text-transform: uppercase;
  transform: translateY(105%); transition: transform .8s var(--ease);
}
.menu-panel li a::before { counter-increment: m; content: "0" counter(m); font-size: 12px; letter-spacing: 0; color: var(--grey-2); }
.menu-open .menu-panel li a { transform: none; transition-delay: calc(.15s + var(--i, 0) * .06s); }
.menu-panel .menu-foot { display: grid; gap: 6px; font-size: 14px; color: var(--grey-2); }
.menu-panel .menu-foot a { color: var(--white); }

/* ---------- Page fade-in (js/layout.js removes pm-wait; the animation is a safety net) ---------- */
html.pm-wait main, html.pm-wait .site-header { opacity: 0; animation: pm-show .3s linear 2s forwards; }
@keyframes pm-show { to { opacity: 1; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; width: 100%; height: calc(100vh - 88px); height: calc(100svh - 88px - env(safe-area-inset-top, 0px));
  max-height: 56.25vw; min-height: 0; overflow: hidden;
  background: var(--black) url("../images/malaysian-showroom-hero.webp") center center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); pointer-events: none; }
.hero-intro { position: absolute; inset: auto 0 0; padding-bottom: clamp(24px, 3vw, 48px); color: #fff; }
.hero-intro .hero-description { max-width: 52ch; margin: 0; font-size: clamp(16px, 1.6vw, 24px); line-height: 1.45; text-wrap: pretty; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(520px, 72svh, 640px); padding: 40px 0 32px;
  background: var(--black); color: var(--white); overflow: hidden;
}
.page-hero .crumbs { margin-bottom: max(24px, 3vw); color: var(--grey-2); }
.page-hero h1 .ln { overflow: hidden; padding-bottom: .03em; }
.page-hero h1 .ln.r { text-align: right; }
.page-hero .ph-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); margin-top: max(28px, 3.5vw); align-items: end; }
.page-hero .ph-foot > :first-child { grid-column: 1 / span 4; }
.page-hero .ph-foot > p { grid-column: 7 / -1; margin: 0; max-width: 46ch; color: var(--grey-2); }
.page-hero .ph-foot > p.hero-description { color: #f1f1ed; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; max-width: 50ch; text-wrap: pretty; }
.vehicle-hero-description { max-width: 66ch; color: #d6d5cf; font-size: 15px; line-height: 1.5; margin: 16px 0 0; }
.page-hero .ph-bg { position: absolute; inset: 0; z-index: 0; opacity: .32; overflow: hidden; }
/* Overscan both edges so +/-10% parallax never exposes the black backdrop. */
.page-hero .ph-bg img { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; object-fit: cover; }
.about-hero .ph-bg, .contact-hero .ph-bg, .stock-hero .ph-bg { opacity: .5; }
.about-hero .ph-bg::after, .contact-hero .ph-bg::after, .stock-hero .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; }
.crumbs { font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.crumbs a:hover { color: var(--white); }
main > .page-hero:first-child + * { position: relative; }

/* ---------- Home: statement ---------- */
.statement .grid12 { row-gap: max(36px, 4vw); }
.statement .lbl { grid-column: 1 / span 3; }
.statement .lbl .eyebrow { display: block; }
.statement .big { grid-column: 4 / -1; margin: 0; font-size: max(1.75rem, 3.35vw); line-height: 1.02; letter-spacing: -.05em; }
.statement .big .serif { letter-spacing: -.03em; }
.statement .sub { grid-column: 7 / span 5; }
.statement .sub p { color: var(--grey); max-width: 52ch; }
.wide-media { position: relative; overflow: hidden; height: max(320px, 46vw); margin-top: max(60px, 7vw); border-radius: var(--r); }
.wide-media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.wide-media figcaption { position: absolute; left: var(--g); bottom: var(--g); color: var(--white); }
.car-frame { margin: clamp(40px, 5vw, 80px) 0 0; }
.car-frame-stage { position: relative; display: grid; place-items: center; }
.car-cutout { position: relative; width: 90%; max-width: 1200px; }
.car-cutout img { display: block; width: 100%; height: auto; }
/* Spinning wheels: centres fitted on the 1200x600 image by rotational symmetry — front (256.73, 401.79), rear (903.25, 404.15).
   Each layer is the wheel cut out at radius 61px (rim + plain tyre), so its edge blends into the still tyre underneath. */
/* Rotation is driven by the scroll timeline in js/layout.js (carFrame), so the wheels only turn while the car drives in. */
.car-wheel { position: absolute; width: 10.1667%; height: 20.3333%; background: center / 100% 100% no-repeat; will-change: transform; }
.car-wheel.front { left: 16.3108%; top: 56.7983%; background-image: url("../images/vellfire-wheel-front.webp"); }
.car-wheel.rear { left: 70.1875%; top: 57.1917%; background-image: url("../images/vellfire-wheel-rear.webp"); }
.car-frame-caption { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px; border-bottom: 1px solid var(--line); padding: 28px 0; }
.car-frame-caption h3 { margin: 12px 0; font: 400 clamp(26px, 2.4vw, 38px)/1.1 var(--serif); letter-spacing: -.025em; }
.car-frame-caption p { max-width: 42ch; color: var(--grey); font-size: 14px; line-height: 1.5; margin: 0; }
.car-frame-caption > a { align-self: center; font-size: 14px; }
@media (max-width: 900px) { .car-frame-caption { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .car-frame-caption > a { grid-column: 1 / -1; } .car-cutout { width: 100%; } }
@media (max-width: 560px) { .car-frame-caption { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: featured stock (sticky image + list) ---------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.feature-media { grid-column: 1 / span 6; position: sticky; top: 112px; height: calc(100vh - 136px); max-height: 760px; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.feature-media a { position: absolute; inset: 0; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease), transform 1.6s var(--ease-out); transform: scale(1.12); }
.feature-media img.on { clip-path: inset(0); transform: scale(1); z-index: 1; }
.feature-media img.was { clip-path: inset(0); z-index: 0; transform: scale(1); }
.feature-media .counter { position: absolute; right: var(--g); bottom: var(--g); z-index: 3; color: var(--white); mix-blend-mode: difference; }
.feature-list { grid-column: 8 / -1; }
.feature-row { display: grid; grid-template-columns: auto 1fr; column-gap: max(14px, 1.4vw); padding: max(22px, 2.2vw) 0; border-top: 1px solid var(--line); color: var(--grey-2); transition: color .5s var(--ease); }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row.active, .feature-row:hover { color: var(--black); }
.feature-row .idx { padding-top: .35em; font-size: max(11px, .76vw); font-weight: 500; }
.feature-row h3 { font-size: max(1.5rem, 2.4vw); line-height: .98; letter-spacing: -.05em; font-weight: 400; }
.feature-row h3 .serif { display: block; font-size: .9em; }
.feature-row .meta { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 14px; font-size: max(12px, .82vw); text-transform: uppercase; }
.feature-row .meta strong { font-weight: 500; }
.feature-row .thumb { display: none; }
.feature-cta { margin-top: max(28px, 3vw); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Home: pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.pillar { display: flex; flex-direction: column; }
.pillar .ph { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: #000; }
.pillar .ph img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.pillar .no { display: flex; justify-content: space-between; margin: 18px 0 max(16px, 1.6vw); padding-top: 12px; border-top: 1px solid var(--line-inv); font-size: max(11px, .76vw); text-transform: uppercase; font-weight: 500; }
.pillar h3 { font-size: max(1.9rem, 3.1vw); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.pillar p { margin: 16px 0 18px; color: var(--grey-2); max-width: 42ch; }
.pillar ul { margin-bottom: 22px; }
.pillar li { padding: 7px 0; border-bottom: 1px solid var(--line-inv); font-size: max(13px, .9vw); }
.pillar .arrow-link { margin-top: auto; }
/* Desktop: the whole "What we do" section fits one screen under the 88px header (checked at 1366x768, 1440x900, 1920x1080).
   Sizes follow the screen height as well as the width; the feature lists become compact tags instead of stacked rows. */
@media (min-width: 901px) {
  #services { padding-block: clamp(32px, 5.5svh, 72px); }
  #services .sec-head { margin-bottom: clamp(18px, 3svh, 36px); }
  #services .sec-head .t-xl { font-size: clamp(44px, min(6.5vw, 8.5svh), 104px); }
  #services .pillar .ph { aspect-ratio: auto; height: clamp(120px, 28svh, 320px); }
  #services .pillar .no { margin: clamp(10px, 1.6svh, 18px) 0 clamp(8px, 1.4svh, 16px); padding-top: 10px; }
  #services .pillar h3 { font-size: clamp(24px, min(2.6vw, 4.4svh), 42px); }
  #services .pillar p { margin: clamp(8px, 1.4svh, 14px) 0 clamp(10px, 1.6svh, 16px); font-size: clamp(14px, .95vw, 16px); line-height: 1.4; }
  #services .pillar ul { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(12px, 2svh, 22px); }
  #services .pillar li { padding: 5px 10px; border: 1px solid var(--line-inv); border-radius: var(--r); font-size: clamp(12px, .8vw, 13px); line-height: 1.3; }
}

/* ---------- Home: promises ---------- */
.hscroll-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); padding-inline: var(--g); }
.hcard { display: flex; flex-direction: column; justify-content: flex-start; gap: max(40px, 5vw); padding-top: 14px; border-top: 1px solid var(--line); }
.hcard.intro { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 20px; align-items: end; margin-bottom: max(40px, 4vw); padding-top: 0; border-top: 0; }
.hcard.intro > div { grid-column: 1 / span 7; }
.hcard.intro p { grid-column: 9 / -1; margin: 0; max-width: 38ch; color: var(--grey); }
.hcard .num { font-size: max(4rem, 8vw); line-height: .8; letter-spacing: -.07em; font-weight: 400; }
.hcard h3 { margin: 0 0 12px; font-size: max(1.4rem, 1.8vw); line-height: 1; letter-spacing: -.045em; font-weight: 400; }
.hcard p { margin: 0; color: var(--grey); max-width: 36ch; }
.hscroll .progress { display: none; }

/* ---------- Big text marquee ---------- */
.big-marquee { overflow: hidden; padding-block: max(48px, 6vw); white-space: nowrap; }
.big-marquee .track { display: inline-flex; align-items: center; gap: .3em; font-size: 15vw; line-height: .85; letter-spacing: -.065em; text-transform: uppercase; font-weight: 500; will-change: transform; }
.big-marquee .dot { display: inline-block; width: .16em; height: .16em; margin: 0 .1em; border-radius: 50%; background: var(--accent); transform: translateY(-.08em); }

/* ---------- Brand logos marquee ---------- */
.brand-strip { padding-block: max(36px, 3.6vw); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-label { margin: 0 var(--g) max(22px, 2vw); }
.brand-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { display: flex; width: max-content; animation: pm-marquee 48s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-group { display: flex; align-items: center; gap: max(48px, 5vw); padding-right: max(48px, 5vw); }
.brand-item { display: grid; place-items: center; }
.brand-logo {
  display: block; width: max(54px, 4.2vw); height: max(40px, 3vw); background: var(--black); opacity: .75;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background .3s, opacity .3s;
}
.brand-logo.wide { width: max(110px, 8vw); }
.brand-item:hover .brand-logo { background: var(--brand); opacity: 1; }
@keyframes pm-marquee { to { transform: translateX(-50%); } }

/* ---------- CTA block ---------- */
.cta-block .grid12 { row-gap: 32px; align-items: end; }
.cta-block h2 { grid-column: 1 / span 7; }
.cta-block .cta-side { grid-column: 8 / -1; }
.cta-side p { color: var(--grey); }
.is-dark .cta-side p { color: var(--grey-2); }
.cta-form { display: flex; align-items: center; gap: 10px; margin: 22px 0 16px; padding-bottom: 10px; border-bottom: 1px solid currentColor; }
.cta-form-icon { flex: none; color: var(--wa); }
.cta-form input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: inherit; font: 400 max(16px, 1.2vw) var(--font); letter-spacing: -.02em; outline: none; }
.cta-form input::placeholder { color: var(--grey-2); }
.cta-form button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--black); color: var(--white); font: 500 13px var(--font); text-transform: lowercase; cursor: pointer; }
.is-dark .cta-form button { background: var(--white); color: var(--black); }
.cta-note { font-size: 13px; color: var(--grey); }
.cta-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.is-dark .cta-note a { color: var(--white); }

/* ---------- Footer (revealed from under the page on large screens) ---------- */
#site-footer { display: contents; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer { position: relative; z-index: 0; background: var(--black); color: var(--white); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 48px; padding: max(72px, 7vw) var(--g) max(40px, 4vw); }
.footer-talk { grid-column: 1 / span 6; }
.footer-talk a.t-xl { display: inline-block; margin: 18px 0 26px; }
.footer-talk a.t-xl .serif { transition: color .4s; }
.footer-talk a.t-xl:hover .serif { color: var(--accent); }
.footer-cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.footer-cols h4 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-inv); color: var(--grey-2); font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; }
.footer-cols li { margin-bottom: 8px; font-size: max(13.5px, .92vw); line-height: 1.35; }
.footer-cols li.dim { color: var(--grey-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--g); border-top: 1px solid var(--line-inv); font-size: 12px; color: var(--grey-2); }
.footer-bottom a { color: var(--white); }
.footer-mark {
  display: flex; justify-content: space-between; padding: 0 calc(var(--g) * .6); overflow: hidden;
  font-size: 17.5vw; line-height: .76; letter-spacing: -.055em; text-transform: uppercase; font-weight: 500; user-select: none;
}
.footer-mark span { display: inline-block; }
.footer-mark .logo-art { width: 100%; margin-block: max(24px, 3vw); }
@media (min-width: 1000px) and (min-height: 720px) {
  .site-footer { position: relative; }
}

.whatsapp-fab {
  position: fixed; right: var(--g); bottom: var(--g); z-index: 90; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: var(--black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .5s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08) rotate(-8deg); }

/* ---------- Stock cards (Discover, similar cars) ---------- */
.stock-toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: var(--g); align-items: end; }
.stock-toolbar label, .field label { display: block; margin-bottom: 4px; color: var(--grey); font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.search-wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.search-wrap svg { flex: none; color: var(--grey); }
.btn-reset { height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: 500 13px var(--font); text-transform: lowercase; color: var(--grey); }
.btn-reset:hover { color: var(--black); }
.stock-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: max(36px, 3.5vw) 0 max(20px, 2vw); padding-top: 14px; border-top: 1px solid var(--line); font-size: max(12px, .82vw); text-transform: uppercase; font-weight: 500; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: none; cursor: pointer; font: 500 12px var(--font); text-transform: lowercase; }
.view-toggle button.on { background: var(--black); border-color: var(--black); color: var(--white); }

.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(48px, 4.5vw) var(--g); }
.stock-card { display: flex; flex-direction: column; min-width: 0; }
.stock-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--paper); }
.stock-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease-out); }
.stock-card:hover .stock-photo img { transform: scale(1.06); }
.stock-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 6px 8px; border-radius: var(--r);
  background: var(--white); color: var(--black); font-size: 11px; font-weight: 500; line-height: 1; text-transform: uppercase;
}
.stock-tag.reserved { left: auto; right: 10px; background: var(--accent); color: #fff; }
.stock-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: var(--r); background: rgba(24, 23, 19, .7); color: #fff; font-size: 11px; font-weight: 500; }
.stock-body { display: flex; flex: 1; flex-direction: column; padding-top: 16px; }
.stock-title { margin-bottom: 14px; font-size: max(1.2rem, 1.55vw); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.stock-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.stock-specs > div { min-width: 0; padding: 8px 8px 0 0; }
.stock-specs > div.wide { display: none; }
.stock-specs dt { color: var(--grey); font-size: 10.5px; font-weight: 500; text-transform: uppercase; }
.stock-specs dd { margin: 2px 0 0; overflow: hidden; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.stock-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.stock-price { font-size: max(1.3rem, 1.6vw); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.stock-price small { display: block; margin-top: 6px; color: var(--grey); font-size: 12px; letter-spacing: -.01em; font-weight: 400; }
.stock-actions { display: flex; gap: 6px; }

.stock-grid.is-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.stock-grid.is-list .stock-card { display: grid; grid-template-columns: max(160px, 16vw) minmax(0, 1fr); gap: var(--g); padding: max(16px, 1.4vw) 0; border-bottom: 1px solid var(--line); }
.stock-grid.is-list .stock-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: var(--g); align-items: start; padding-top: 0; }
.stock-grid.is-list .stock-title { font-size: max(1.2rem, 1.9vw); }
.stock-grid.is-list .stock-specs { margin: 0; }
.stock-grid.is-list .stock-foot { flex-direction: column; align-items: flex-end; height: 100%; }
.stock-grid.is-list .stock-price { text-align: right; }

.empty { padding: max(48px, 6vw) 0; text-align: center; color: var(--grey); font-size: max(1.1rem, 1.4vw); letter-spacing: -.03em; }
.empty .btn { margin-top: 16px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: 10px 0 11px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: inherit; font: 400 max(16px, 1.05vw)/1.3 var(--font); letter-spacing: -.02em;
  outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--black); }
.is-dark input:focus, .is-dark select:focus, .is-dark textarea:focus { border-bottom-color: var(--white); }
select {
  padding-right: 24px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center no-repeat;
}
textarea { resize: vertical; min-height: 120px; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); }
.notice { padding: 12px 14px; border-left: 2px solid var(--wa); background: rgba(37, 211, 102, .08); font-size: 14px; }

/* ---------- Panels, tabs, tables, results (vehicle + tools) ---------- */
.panel { padding-top: 16px; border-top: 1px solid var(--line); }
.panel + .panel { margin-top: max(32px, 3vw); }
.panel h3 { margin-bottom: 18px; font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--grey); }
.checklist li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); font-size: max(14px, .95vw); }
.checklist li::before { content: "+"; position: absolute; left: 0; top: 9px; font-size: 18px; line-height: 1; color: var(--grey); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: max(14px, .95vw); }
.spec-table td:first-child { width: 40%; color: var(--grey); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: max(32px, 3vw); }
.tab { height: max(36px, 2.5vw); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: none; cursor: pointer; font: 500 max(13px, .88vw) var(--font); text-transform: lowercase; transition: background .3s, color .3s, border-color .3s; }
.tab:hover { border-color: var(--black); }
.tab.active { background: var(--black); border-color: var(--black); color: var(--white); }
.result { padding: max(24px, 2.4vw); border-radius: var(--r); background: var(--black); color: var(--white); }
.result > div:first-child { color: var(--grey-2); font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; }
.result .big { margin: 10px 0 22px; font-size: max(2.6rem, 5.4vw); line-height: .85; letter-spacing: -.06em; font-weight: 500; }
.result .rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-inv); font-size: 14px; }
.result .rows > div span:first-child { color: var(--grey-2); }

/* ---------- Vehicle page ---------- */
.detail-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 48px; align-items: start; }
.detail-layout > :first-child { grid-column: 1 / span 8; }
.detail-layout > aside { grid-column: 9 / -1; position: sticky; top: 112px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 56px; }
.contact-info { grid-column: 1 / span 5; }
.contact-form { grid-column: 7 / -1; }
.info-row { display: grid; grid-template-columns: max(110px, 9vw) 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row dt { color: var(--grey); font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; }
.info-row dd { margin: 0; font-size: max(1.05rem, 1.35vw); line-height: 1.2; letter-spacing: -.035em; }
.info-row dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.map-wrap { position: relative; margin-top: max(64px, 7vw); overflow: hidden; border-radius: var(--r); }
.map-frame { display: block; width: 100%; height: max(360px, 40vw); border: 0; filter: grayscale(1) contrast(1.05); transition: filter .8s; }
.map-wrap:hover .map-frame { filter: none; }

/* ---------- About page ---------- */
.ab-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.ab-points li { padding-top: 14px; border-top: 1px solid var(--line); }
.ab-points .n { display: block; margin-bottom: max(40px, 4vw); color: var(--grey); font-size: max(11px, .76vw); font-weight: 500; }
.ab-points strong { display: block; margin-bottom: 10px; font-size: max(1.2rem, 1.55vw); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.ab-points span:not(.n) { color: var(--grey); font-size: 14px; }
.ab-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: end; }
.ab-gallery figure { margin: 0; }
.ab-gallery .ph { position: relative; overflow: hidden; border-radius: var(--r); }
.ab-gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.ab-gallery figure:nth-child(1) { grid-column: 1 / span 7; }
.ab-gallery figure:nth-child(1) .ph { aspect-ratio: 4 / 3; }
.ab-gallery figure:nth-child(2) { grid-column: 9 / -1; }
.ab-gallery figure:nth-child(2) .ph { aspect-ratio: 3 / 4; }
.ab-gallery figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: max(12px, .82vw); text-transform: uppercase; font-weight: 500; }
.ab-gallery figcaption span { color: var(--grey); }
.ab-story .grid12 { row-gap: 36px; }
.ab-story .lbl { grid-column: 1 / span 3; }
.ab-story .body { grid-column: 5 / -1; }
.ab-story .body p { font-size: max(1.1rem, 1.5vw); line-height: 1.25; letter-spacing: -.035em; }
.ab-story .body p + p { color: var(--grey); }
.ab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: max(36px, 4vw); }
.ab-stats > div { padding-top: 12px; border-top: 1px solid var(--line); }
.ab-stats strong { display: block; font-size: max(3rem, 7vw); line-height: .85; letter-spacing: -.07em; font-weight: 400; }
.ab-stats span { color: var(--grey); font-size: max(11px, .76vw); font-weight: 500; text-transform: uppercase; }
.svc-list { counter-reset: s; }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 18px; padding: max(28px, 3vw) 0; border-top: 1px solid var(--line-inv); scroll-margin-top: 100px; }
.svc:last-child { border-bottom: 1px solid var(--line-inv); }
.svc .no { grid-column: 1 / span 1; color: var(--grey-2); font-size: max(11px, .76vw); font-weight: 500; padding-top: .6em; }
.svc h3 { grid-column: 2 / span 5; font-size: max(2rem, 4.2vw); line-height: .88; letter-spacing: -.055em; text-transform: uppercase; }
.svc .txt { grid-column: 8 / -1; }
.svc .txt p { color: var(--grey-2); }
.svc .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.svc .chips li { padding: 6px 10px; border: 1px solid var(--line-inv); border-radius: var(--r); font-size: 12.5px; }
.visit-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 32px; align-items: end; }
.visit-band h2 { grid-column: 1 / span 7; }
.visit-band .side { grid-column: 8 / -1; }
.visit-band .side p { color: var(--grey); }
.facts { display: grid; gap: 0; margin: 18px 0 24px; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--grey); font-size: 11px; font-weight: 500; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; }

/* ---------- Motion states (only when js/layout.js runs the motion layer) ---------- */
html.motion [data-split], html.motion [data-fade] { will-change: transform; }

/* Desktop proportions: bounded content, readable headings, viewport-aware media. */
@media (min-width: 901px) {
  .t-display { font-size: clamp(80px, 11vw, 176px); }
  .t-xl { font-size: clamp(56px, 6.5vw, 104px); }
  .t-l { font-size: clamp(36px, 4vw, 64px); }
  .t-m { font-size: clamp(26px, 2.5vw, 40px); }
  .t-s { font-size: clamp(18px, 1.45vw, 23px); }
  .grid12 > *, .detail-layout > *, .contact-grid > *,
  .footer-cols > *, .stock-toolbar > *, .tool-grid > * { min-width: 0; }
  .sec-head { flex-wrap: wrap; margin-bottom: clamp(32px, 3vw, 48px); }
  .page-hero { min-height: min(640px, calc(100svh - 88px)); padding-block: 48px 40px; }
  .page-hero .t-display { font-size: min(clamp(64px, 8vw, 112px), 12svh); line-height: .9; }
  .page-hero .ph-foot { margin-top: 28px; }
  .statement .big { font-size: clamp(28px, 3vw, 48px); }
  .wide-media { height: clamp(320px, 34vw, 560px); margin: 48px 0 0; }
  .pillar .ph { aspect-ratio: 16 / 10; }
  .pillar h3 { font-size: clamp(28px, 2.6vw, 42px); }
  .hscroll-track { max-width: 1600px; margin-inline: auto; }
  .hcard { gap: clamp(28px, 3vw, 48px); }
  .hcard .num { font-size: clamp(64px, 6vw, 96px); }
  .site-header { padding-inline: max(var(--g), calc((100vw - 1600px) / 2 + var(--g))); }
  .site-header .logo-art { width: clamp(170px, 17vw, 250px); }
  .footer-top, .footer-bottom, .footer-mark { max-width: 1600px; margin-inline: auto; }
  .footer-top { padding-block: 64px 40px; }
  .footer-mark { padding-inline: var(--g); }
  .footer-cols li, .info-row dd, .facts dd { overflow-wrap: anywhere; }
  .map-frame { height: clamp(360px, 32vw, 520px); }
  .stock-grid.is-list .stock-card { grid-template-columns: clamp(160px, 16vw, 256px) minmax(0, 1fr); }
  .stock-title { font-size: clamp(20px, 1.55vw, 25px); }
  .stock-price { font-size: clamp(21px, 1.6vw, 26px); }
  .stock-grid.is-list .stock-title { font-size: clamp(20px, 1.9vw, 30px); }
  .stock-foot { flex-wrap: wrap; }
  .feature-row h3 { font-size: clamp(24px, 2.4vw, 38px); }
  .info-row { grid-template-columns: clamp(110px, 9vw, 144px) minmax(0, 1fr); }
  .info-row dd { font-size: clamp(17px, 1.35vw, 22px); }
  .ab-story .body p { font-size: clamp(18px, 1.5vw, 24px); }
  .eyebrow, .crumbs { font-size: clamp(11px, .76vw, 13px); }
  .footer-cols li { font-size: clamp(14px, .92vw, 16px); }
  .svc h3 { font-size: clamp(32px, 3.5vw, 56px); }
  .ab-stats strong { font-size: clamp(48px, 6vw, 96px); }
  .result .big { font-size: clamp(42px, 4.4vw, 70px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-grid.is-list .stock-body { grid-template-columns: 1fr; gap: 12px; }
  .stock-grid.is-list .stock-foot { flex-direction: row; align-items: flex-end; }
  .stock-grid.is-list .stock-price { text-align: left; }
}

@media (max-width: 900px) {
  .nav-list .chip.nav-link { display: none; }
  .menu-btn { display: inline-flex; }
  .statement .lbl, .statement .big, .statement .sub { grid-column: 1 / -1; }
  .feature-media { display: none; }
  .feature-list { grid-column: 1 / -1; }
  .feature-row { grid-template-columns: auto 1fr; color: var(--black); }
  .feature-row .thumb { display: block; grid-column: 1 / -1; margin-bottom: 16px; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); }
  .feature-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .pillars { grid-template-columns: 1fr; gap: 64px; }
  .hscroll-track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .hcard.intro > div, .hcard.intro p { grid-column: 1 / -1; }
  .cta-block h2, .cta-block .cta-side { grid-column: 1 / -1; }
  .footer-talk, .footer-cols { grid-column: 1 / -1; }
  .stock-toolbar { grid-template-columns: 1fr 1fr; }
  .stock-toolbar .search-field { grid-column: 1 / -1; }
  .detail-layout > :first-child, .detail-layout > aside { grid-column: 1 / -1; position: static; }
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .ab-points { grid-template-columns: 1fr 1fr; }
  .ab-story .lbl, .ab-story .body { grid-column: 1 / -1; }
  .ab-gallery figure:nth-child(1), .ab-gallery figure:nth-child(2) { grid-column: 1 / -1; }
  .svc .no { grid-column: 1 / -1; }
  .svc h3, .svc .txt { grid-column: 1 / -1; }
  .visit-band h2, .visit-band .side { grid-column: 1 / -1; }
  .page-hero .ph-foot > :first-child, .page-hero .ph-foot > p { grid-column: 1 / -1; }
  .page-hero .ph-foot { row-gap: 18px; }
  .page-hero h1.t-display { font-size: clamp(48px, 10vw, 80px); line-height: .9; }
}

@media (max-width: 640px) {
  .stock-grid { grid-template-columns: 1fr; }
  .stock-grid.is-list .stock-card { grid-template-columns: 110px minmax(0, 1fr); }
  .stock-grid.is-list .stock-specs { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ab-points, .ab-stats, .hscroll-track { grid-template-columns: 1fr; }
  .ab-stats { gap: 22px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .stock-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stock-specs > div:nth-child(n+5) { display: none; }
  .whatsapp-fab { width: 50px; height: 50px; }
}

/* Compact banners for the stock list and all vehicle detail pages. */
.page-hero.inventory-hero { min-height: clamp(320px, 40svh, 400px); padding-block: 32px; }
.inventory-hero .crumbs { margin-bottom: 20px; }
.inventory-hero .ph-foot { margin-top: 20px; }
.page-hero.inventory-hero h1.t-display { font-size: clamp(48px, 5vw, 72px); line-height: .9; }
.page-hero.inventory-hero .v-title { max-width: 28ch; font-size: clamp(32px, 3.5vw, 56px); line-height: 1; }
@media (max-width: 900px) {
  .page-hero.inventory-hero { min-height: 280px; padding-block: 28px; }
  .page-hero.inventory-hero h1.t-display { font-size: clamp(40px, 7vw, 56px); }
  .inventory-hero .ph-foot { row-gap: 12px; }
}

/* Vehicle details: keep the gallery and enquiry panel balanced on desktops. */
.vehicle-page .container { max-width: 1440px; }
.vehicle-detail-section { padding-top: 32px; }
.vehicle-page .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 32px; }
.vehicle-page .detail-gallery { grid-column: 1; min-width: 0; }
.vehicle-page .detail-summary { grid-column: 2; min-width: 0; position: static; top: auto; align-self: stretch; }
.vehicle-page .detail-information { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; min-width: 0; }
.vehicle-page .detail-information > .panel { min-width: 0; margin-top: 0; }
.vehicle-page .spec-table { table-layout: fixed; }
.vehicle-page .spec-table td, .vehicle-page .v-title, .vehicle-page .crumbs { overflow-wrap: anywhere; }
.vehicle-page .detail-actions .btn { white-space: normal; height: auto; min-height: 44px; padding-block: 12px; text-align: center; }
@media (min-width: 901px) {
  .vehicle-page .inventory-hero { min-height: 240px; padding-block: 28px; }
  .vehicle-page .inventory-hero .v-title { max-width: 36ch; font-size: clamp(32px, 3vw, 44px); }
  .vehicle-page .inventory-hero .crumbs { margin-bottom: 16px; }
  .vehicle-page .inventory-hero .ph-foot { margin-top: 16px; }
  .vehicle-page .inventory-hero #heroPrice { font-size: 28px; }
  .vehicle-page .detail-photo { height: clamp(300px, 55svh, 540px); aspect-ratio: auto; }
  .vehicle-page .thumbs button { flex-basis: clamp(76px, 6vw, 96px); }
  .vehicle-page .detail-price { font-size: clamp(32px, 3vw, 44px); line-height: 1; overflow-wrap: anywhere; }
  /* The first-row aside contains the sticky panel, so it stops before details. */
  .vehicle-page .detail-summary > .panel { position: sticky; top: 112px; }
  .vehicle-page .cost-total strong { font-size: 24px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .vehicle-page .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .vehicle-page .detail-information { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .vehicle-page .detail-information #costs { grid-column: 1 / -1; }
  .vehicle-page .cost-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .vehicle-page .detail-layout, .vehicle-page .detail-information { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vehicle-page .detail-gallery, .vehicle-page .detail-summary { grid-column: 1; }
  .vehicle-page .detail-summary { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .brand-track { animation: none; }
}
