/* ============================================================================
 * site.css — JMC dealer website
 * ----------------------------------------------------------------------------
 * Hand-written. No Bootstrap, no template. One stylesheet for the whole site.
 *
 *   1  Tokens              9  Panels (full-viewport)
 *   2  Reset              10  Sections & prose
 *   3  Typography         11  Cards & grids
 *   4  Layout             12  Tabs & accordions
 *   5  Buttons            13  Specs tables
 *   6  Header             14  Colour switcher
 *   7  Mobile menu        15  Forms
 *   8  Footer             16  Utilities & motion
 * ========================================================================== */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

:root {
  --red:        #d32d2f;
  --red-dark:   #b0181a;
  --red-soft:   rgba(211, 45, 47, .10);

  --ink:        #171a20;
  --ink-2:      #5c5e62;
  --ink-3:      #8e9195;
  --line:       #e3e5e8;
  --line-soft:  #eef0f2;

  --bg:         #ffffff;
  --bg-2:       #f4f4f4;
  --bg-3:       #ebedef;
  --night:      #111316;

  --header-h:   68px;

  --measure:    68ch;
  --pad-x:      clamp(20px, 5vw, 64px);
  --sec-y:      clamp(64px, 9vw, 132px);

  --r-btn:      100px;
  --r-md:       10px;
  --r-lg:       18px;

  --ease:       cubic-bezier(.22, .61, .36, 1);
  --dur:        .32s;

  --shadow:     0 1px 2px rgba(23, 26, 32, .05), 0 12px 32px rgba(23, 26, 32, .08);
  --shadow-lg:  0 8px 20px rgba(23, 26, 32, .08), 0 32px 80px rgba(23, 26, 32, .14);
}

/* ── 2. Reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; border: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--red); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { transform: none; }

/* ── 3. Typography ───────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

.t-display { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.034em; line-height: 1.02; }
.t-h1      { font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -0.03em; }
.t-h2      { font-size: clamp(27px, 3vw, 42px);  letter-spacing: -0.026em; }
.t-h3      { font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -0.02em; }
.t-h4      { font-size: 19px; letter-spacing: -0.014em; }

.t-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.t-lead  { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); }
.t-body  { font-size: 16px; color: var(--ink-2); }
.t-small { font-size: 14px; color: var(--ink-2); }
.t-micro { font-size: 12.5px; color: var(--ink-3); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.prose { max-width: var(--measure); color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin: 2em 0 .6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.1em; list-style: disc; }
.prose ol { margin: 0 0 1em; padding-left: 1.3em; list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { color: var(--red); text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ── 4. Layout ───────────────────────────────────────────────────────────── */

.wrap  { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad-x); }
.wrap--narrow { max-width: 880px; }
.wrap--wide   { max-width: 1600px; }

.section { padding-block: var(--sec-y); }
/* Directly under a short hero, pull the first section up so the range shows. */
.hslider + .section { padding-top: clamp(40px, 4.5vw, 68px); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--grey  { background: var(--bg-2); }
.section--dark  { background: var(--night); color: #fff; }
.section--dark .t-lead, .section--dark .t-body, .section--dark p { color: rgba(255, 255, 255, .72); }
.section--dark .t-eyebrow { color: rgba(255, 255, 255, .5); }

.stack > * + * { margin-top: var(--gap, 20px); }
.center { text-align: center; margin-inline: auto; }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head.center { text-align: center; }
.section__head .t-eyebrow { display: block; margin-bottom: 14px; }
.section__head p { margin-top: 16px; }

/* ── 5. Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 240px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: scale(.985); }

.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; border-color: #000; }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Translucent pair used over photography */
.btn--glass-dark {
  background: rgba(23, 26, 32, .78);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--glass-dark:hover { background: rgba(23, 26, 32, .92); }

.btn--glass-light {
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--glass-light:hover { background: #fff; }

.btn--sm { min-width: 0; padding: 10px 20px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* Quiet text link with a moving underline */
.link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 2px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link--red { color: var(--red); }

/* ── 6. Header ───────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.header__inner {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__brand { display: flex; align-items: center; flex: 0 0 auto; }
.header__brand img { height: 30px; width: auto; transition: filter var(--dur) var(--ease); }
.header__brand .brand-name {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.header__nav ul { display: flex; align-items: center; gap: 4px; }
.header__nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.header__nav a:hover,
.header__nav a[aria-current="page"] { background: rgba(23, 26, 32, .07); }

.header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.header__actions .btn { min-width: 0; padding: 8px 18px; font-size: 13.5px; }

/* Over-photography state: white chrome, no plate */
.header--over { color: #fff; }
.header--over .header__brand img { filter: brightness(0) invert(1); }
.header--over .header__nav a:hover,
.header--over .header__nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.header--over .btn--glass-light { background: rgba(255, 255, 255, .78); }

/* Transparent header sitting over a *bright* slide: flip the chrome to ink. */
.header--over.header--ink { color: var(--ink); }
.header--over.header--ink .header__brand img { filter: none; }
.header--over.header--ink .header__nav a:hover,
.header--over.header--ink .header__nav a[aria-current="page"],
.header--over.header--ink .mega-btn:hover,
.header--over.header--ink .mega-btn[aria-current="page"],
.header--over.header--ink .mega-btn[aria-expanded="true"] { background: rgba(23, 26, 32, .08); }
.header--over.header--ink .btn--glass-light { background: rgba(255, 255, 255, .82); color: var(--ink); }

/* Scrolled / solid state */
.header--solid {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(23, 26, 32, .08);
  color: var(--ink);
}
.header--solid .header__brand img { filter: none; }
.header--solid .header__nav a:hover,
.header--solid .header__nav a[aria-current="page"] { background: rgba(23, 26, 32, .07); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.menu-btn span {
  display: block; position: relative;
  width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }

@media (max-width: 1023.98px) {
  .header__nav { display: none; }
  .header__actions .btn--desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .header__nav-spacer { flex: 1 1 auto; }
}

/* ── 7. Mobile menu ──────────────────────────────────────────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px var(--pad-x) 32px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .38s var(--ease), visibility .38s;
  overflow-y: auto;
}
.menu[data-open="true"] { transform: none; visibility: visible; }
.menu__top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.menu__close {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink);
}
.menu nav ul { display: flex; flex-direction: column; }
.menu nav a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 17px;
  font-weight: 600;
}
.menu nav a:hover { background: var(--bg-2); }
.menu__group { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.menu__group .t-eyebrow { display: block; padding: 0 16px 6px; }
.menu__group a { font-size: 15px; font-weight: 500; color: var(--ink-2); padding-block: 11px; }
.menu__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.menu__foot .btn { width: 100%; }

body[data-menu="open"] { overflow: hidden; }

/* ── 8. Footer ───────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 40px 34px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin-bottom: 18px;
}
.footer__nav a { font-weight: 500; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--ink); }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; text-align: center; }
.footer__social { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.footer__social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

/* ── 9. Panels ───────────────────────────────────────────────────────────── */

.panels { scroll-snap-type: y proximity; }

.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}

.panel__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--bg-2);
  /* background-image is set inline per panel so the URL resolves against the
     document, not this stylesheet (relative URLs inside custom properties
     resolve against the sheet that uses them). */
  background-size: cover;
  background-position: var(--pos, center);
  background-repeat: no-repeat;
}

/* Readability scrims — only as strong as they need to be */
.panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .30) 18%, rgba(0, 0, 0, .10) 32%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(to top,    rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 28%);
  pointer-events: none;
}
.panel[data-theme="light"]::before {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .58) 18%, rgba(255, 255, 255, .22) 32%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(to top,    rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, 0) 26%);
}
.panel[data-theme="plain"]::before { background: none; }

.panel__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) var(--pad-x) clamp(28px, 6vh, 56px);
  color: #fff;
}
.panel[data-theme="light"] .panel__inner,
.panel[data-theme="plain"] .panel__inner { color: var(--ink); }

.panel__head { max-width: 780px; }
.panel[data-theme="dark"] .panel__head { text-shadow: 0 1px 22px rgba(0, 0, 0, .38); }
/* Slide titles after the first are <p role="heading">, which would otherwise
   inherit the 1em paragraph margin. */
.panel__head h1,
.panel__head h2,
.panel__head p.t-display { margin: 0 0 8px; }
.panel__sub { font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; opacity: .92; margin: 0; }
.panel__note { margin-top: 10px; font-size: 13px; opacity: .78; }

.panel__foot { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; max-width: 520px; }
.panel__actions .btn { flex: 1 1 220px; }

.panel__scroll {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: inherit; cursor: pointer;
  animation: nudge 2.4s var(--ease) infinite;
}
.panel__scroll svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* Page hero — a shorter panel for interior pages */
.hero {
  position: relative;
  min-height: clamp(340px, 56svh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--night);
  background-size: cover;
  background-position: var(--pos, center);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .22) 45%, rgba(0, 0, 0, .28) 100%);
}
.hero__inner { width: 100%; padding-block: clamp(34px, 6vw, 64px); }
.hero__inner .t-eyebrow { color: rgba(255, 255, 255, .72); display: block; margin-bottom: 12px; }
.hero p { color: rgba(255, 255, 255, .84); max-width: 60ch; margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__actions .btn { min-width: 210px; }

/* Compact page header for text-only pages */
.pagehead {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.pagehead .t-eyebrow { display: block; margin-bottom: 14px; }
.pagehead p { margin-top: 16px; max-width: 62ch; }

/* ── 10. Media rows ──────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media img,
.split__media video {
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.split__body h2 { margin-bottom: 16px; }

.figure-full img { width: 100%; border-radius: var(--r-lg); }

/* ── 11. Cards & grids ───────────────────────────────────────────────────── */

.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 6px; }
.card__body p { font-size: 14.5px; color: var(--ink-2); margin: 10px 0 20px; }
.card__body .link { margin-top: auto; align-self: flex-start; }
.card__price { font-size: 14px; font-weight: 600; color: var(--red); }

/* Feature list with a hairline rule */
.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(140px, 22%) 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt, .facts .k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd, .facts .v { margin: 0; color: var(--ink); }

/* Big stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: clamp(20px, 3vw, 44px); }
.stat__n { font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat__n span { font-size: .45em; font-weight: 500; letter-spacing: -0.01em; margin-left: 4px; color: var(--ink-2); }
.stat__l { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.section--dark .stat__n span, .section--dark .stat__l { color: rgba(255, 255, 255, .66); }

/* ── 12. Tabs & accordion ────────────────────────────────────────────────── */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 3vw, 44px);
}
.tabs__btn {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tabs__btn:hover { border-color: var(--ink-3); color: var(--ink); }
.tabs__btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel[hidden] { display: none; }

.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.014em;
  cursor: pointer;
}
.acc__btn::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur) var(--ease);
}
.acc__btn[aria-expanded="true"]::after { transform: rotate(225deg) translate(-3px, -3px); }
.acc__body { padding-bottom: 24px; color: var(--ink-2); max-width: var(--measure); }
.acc__body[hidden] { display: none; }

/* ── 13. Specs table ─────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--line); }
table.specs { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg); min-width: 620px; }
table.specs caption { text-align: left; padding: 18px 22px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
table.specs th, table.specs td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.specs thead th {
  position: sticky; top: 0;
  background: var(--bg-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
table.specs tbody th { font-weight: 600; color: var(--ink); }
table.specs td { color: var(--ink-2); }
table.specs tbody tr:hover { background: #fafbfb; }
table.specs tr.specs__group th {
  background: var(--bg-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }

/* Price table variant */
table.specs td.price { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.specs td.thumb { width: 118px; }
table.specs td.thumb img { width: 96px; height: auto; }

/* ── 14. Colour switcher ─────────────────────────────────────────────────── */

.swatches { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute; inset: -5px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.colour-stage {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.colour-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.colour-stage img[data-active="true"] { opacity: 1; }
.colour-name { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 600; }

/* ── 15. Forms ───────────────────────────────────────────────────────────── */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.form .f-full { grid-column: 1 / -1; }
@media (max-width: 639.98px) { .form { grid-template-columns: 1fr; } .form .f-full { grid-column: auto; } }

.field label,
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235c5e62' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 26, 32, .07);
}
.field input:user-invalid,
.field select:user-invalid { border-color: var(--red); }

.check { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  appearance: none;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  background: #fff no-repeat center / 11px;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.check input:checked {
  background-color: var(--red);
  border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}
.check label { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form-note,
.form-error {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14.5px;
}
.form-note  { background: #eef7f0; border: 1px solid #cfe6d6; color: #1e5b34; }
.form-error { background: #fdeeee; border: 1px solid #f3cccd; color: #8e2224; }

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow);
}

/* Contact detail column */
.detail { }
.detail h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail p { margin-bottom: 6px; }
.detail a { font-weight: 500; }
.detail a:hover { color: var(--red); }

.map-frame {
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
/* The home page map sits beside the dealer details, so it matches that column. */
.map-frame--home {
  height: 100%;
  min-height: clamp(300px, 34vw, 420px);
  box-shadow: var(--shadow);
}
/* The split's media column has to be a flex box for the iframe to fill it. */
.split__media:has(> .map-frame--home) { display: flex; }

/* ── 16. Utilities & motion ──────────────────────────────────────────────── */

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 26px; }
.hide { display: none !important; }
.red { color: var(--red); }

.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panels { scroll-snap-type: none; }
  .panel__scroll { animation: none; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  :root { --header-h: 58px; }

  /* These are 1920x700 banners. At phone aspect a full-bleed cover crop shows
     only a sliver of the vehicle, so the image becomes a band across the top
     and the copy sits on white underneath. */
  .panel { background: var(--bg); }
  .panel:not([data-theme="plain"]) .panel__media {
    inset: 0 0 auto 0;
    height: 54svh;
    background-position: var(--pos-sm, var(--pos, center));
  }
  .panel:not([data-theme="plain"])::before {
    inset: 0 0 auto 0;
    height: 54svh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, 0) 46%);
  }
  .panel[data-theme="light"]:not([data-theme="plain"])::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, 0) 46%);
  }
  .panel:not([data-theme="plain"]) .panel__inner {
    color: var(--ink);
    justify-content: flex-start;
    padding-top: calc(54svh + 26px);
    padding-bottom: 26px;
  }
  .panel[data-theme="dark"] .panel__head { text-shadow: none; }
  .panel__head { margin-bottom: 26px; }
  .panel__foot { margin-top: auto; }
  .panel__actions { flex-direction: column; max-width: 340px; gap: 10px; }
  .panel__actions .btn { width: 100%; flex: none; }
  .panel__scroll { display: none; }
  .panel .btn--glass-light { background: var(--ink); color: #fff; }
  .panel .btn--glass-dark  { background: var(--ink); color: #fff; }

  .hero__actions .btn { width: 100%; }
  .split--reverse > :first-child { order: 0; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── 17. Mega menu ───────────────────────────────────────────────────────── */

.header__nav .has-mega { position: static; }

.mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.mega-btn::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--dur) var(--ease);
  opacity: .7;
}
.mega-btn:hover,
.mega-btn[aria-expanded="true"] { background: rgba(23, 26, 32, .07); }
.mega-btn[aria-expanded="true"]::after { transform: rotate(225deg) translate(-2px, -2px); }
.header--over .mega-btn:hover,
.header--over .mega-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }

.mega {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 95;
  /* Opaque, and no backdrop-filter: a filtered backdrop creates its own
     blending group, which makes mix-blend-mode on the thumbnails show a box. */
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(23, 26, 32, .10);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.mega__inner {
  max-width: 1600px;
  margin-inline: auto;
  padding: 34px var(--pad-x) 30px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 260px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.mega__models {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1279.98px) {
  .mega__models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mega__model {
  display: block;
  padding: 10px 10px 14px;
  border-radius: var(--r-md);
  transition: background-color .2s var(--ease);
}
.mega__model:hover { background: var(--bg-2); }
.mega__model img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin-bottom: 8px;
  transition: transform .35s var(--ease);
}
.mega__model:hover img { transform: scale(1.05); }
.mega__model .n { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.012em; }
.mega__model .p { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.mega__side { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.mega__side .t-eyebrow { display: block; margin-bottom: 12px; }
.mega__side ul { display: grid; gap: 2px; }
.mega__side ul a {
  display: block;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.mega__side ul a:hover { background: var(--bg-2); color: var(--ink); }
.mega__side .btn { width: 100%; min-width: 0; margin-top: 16px; }

.mega-scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: rgba(23, 26, 32, .28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s;
}
.mega-scrim[data-open="true"] { opacity: 1; visibility: visible; }

@media (max-width: 1023.98px) {
  .mega, .mega-scrim, .mega-btn { display: none; }
}

/* ── 18. Range blocks ────────────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.6vw, 24px);
}
/* Explicit breakpoints rather than auto-fit, so five models never leave a
   single orphan on the last row. */
/* On phones the five tiles become a swipeable row rather than a long stack. */
@media (max-width: 559.98px) {
  .tiles {
    grid-auto-flow: column;
    grid-auto-columns: 76vw;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    padding-bottom: 6px;
    margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .tile:hover { transform: none; box-shadow: none; }
}
@media (min-width: 560px)  { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, var(--bg-3) 0%, var(--bg-2) 62%, var(--bg) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.tile__head { padding: 24px 20px 0; text-align: center; }
.tile__head .n { font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; letter-spacing: -0.022em; }
.tile__head .p { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--red); }
.tile__head .s {
  display: block;
  margin-top: 8px;
  min-height: 2.7em;          /* keeps every tile the same shape */
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-2);
}

.tile__media {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px 2px;
  min-height: 150px;
}
.tile__media img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  /* The product shots sit on white; multiply drops that background into the
     tile's light gradient so cut-outs and boxed shots look the same. */
  mix-blend-mode: multiply;
  transition: transform .5s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.05); }

.tile__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 20px 24px;
}
.tile__actions .btn { width: 100%; min-width: 0; padding: 11px 14px; font-size: 13.5px; }
.tile__actions .link { font-size: 13px; color: var(--ink-2); }
.tile__actions .link:hover { color: var(--red); }

/* The whole card is clickable via the title link, without nesting anchors. */
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__actions { position: relative; z-index: 2; }



.mega-btn[aria-current="page"] { background: rgba(23, 26, 32, .07); }
.header--over .mega-btn[aria-current="page"] { background: rgba(255, 255, 255, .16); }

/* ── 19. Hero slider ─────────────────────────────────────────────────────── */

.hslider {
  position: relative;
  /* Matches the hero on the model pages, and deliberately short of the full
     viewport so the range below is visible without scrolling. */
  min-height: clamp(400px, 56svh, 580px);
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  touch-action: pan-y;
}

/* Every slide is a full panel, stacked and cross-faded. */
.hslider .hslide {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s var(--ease), visibility .85s;
  pointer-events: none;
}
.hslider .hslide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* A very slow drift keeps a still photograph alive without being showy. */
.hslider .hslide .panel__media {
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hslider .hslide.is-active .panel__media { transform: scale(1); }

/* Copy rises in behind the image */
.hslider .hslide .panel__head > *,
.hslider .hslide .panel__actions {
  opacity: 0;
  transform: translateY(16px);
}
.hslider .hslide.is-active .panel__head > *,
.hslider .hslide.is-active .panel__actions {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hslider .hslide.is-active .panel__head > *:nth-child(1) { transition-delay: .12s; }
.hslider .hslide.is-active .panel__head > *:nth-child(2) { transition-delay: .20s; }
.hslider .hslide.is-active .panel__head > *:nth-child(3) { transition-delay: .27s; }
.hslider .hslide.is-active .panel__actions               { transition-delay: .32s; }

/* ── Arrows ── */
.hslider__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(14, 15, 18, .30);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
@supports (backdrop-filter: blur(6px)) { .hslider__arrow { backdrop-filter: blur(8px); } }
.hslider:hover .hslider__arrow,
.hslider__arrow:focus-visible { opacity: 1; }
.hslider__arrow:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.hslider__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hslider__arrow--prev { left: clamp(12px, 2.2vw, 30px); }
.hslider__arrow--next { right: clamp(12px, 2.2vw, 30px); }

/* ── Progress dots ── */
.hslider__dots {
  position: absolute;
  left: auto;
  right: max(var(--pad-x), calc(50% - 660px + var(--pad-x)));
  bottom: clamp(46px, 6vh, 68px);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.hslider__dot {
  position: relative;
  width: 46px;
  height: 3px;
  padding: 14px 0;               /* a 31px tall tap target around a 3px bar */
  border: 0;
  background: none;
  cursor: pointer;
  box-sizing: content-box;
}
.hslider__dot::before,
.hslider__dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
}
.hslider__dot::before { width: 100%; background: rgba(255, 255, 255, .38); }
.hslider__dot::after  { width: 0;    background: #fff; }
.hslider__dot[aria-current="true"]::after { width: 100%; transition: width var(--slide-ms, 6500ms) linear; }
.hslider__dot[aria-current="true"].is-paused::after { transition: none; }
.hslider__dot:hover::before { background: rgba(255, 255, 255, .62); }

/* On light slides the chrome flips to ink */
.hslider .hslide[data-theme="light"] ~ .hslider__dots { }

/* Laid out like the hero on the model pages: copy bottom-left, inside the
   same container width, over a bottom-weighted scrim. */
.hslider .hslide .panel__inner {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  color: #fff;
  padding: calc(var(--header-h) + 20px) var(--pad-x) clamp(46px, 6vh, 68px);
}
.hslider .panel__head { max-width: 660px; }
.hslider .panel__head .t-display {
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -0.03em;
}
.hslider .panel__sub { opacity: .88; }
.hslider .panel__foot { width: auto; align-items: flex-start; margin-top: clamp(18px, 2.6vh, 28px); }
.hslider .panel__actions { justify-content: flex-start; width: auto; max-width: none; gap: 12px; }
.hslider .panel__actions .btn { flex: 0 0 auto; min-width: 200px; }

/* One scrim for every slide, so the copy reads the same whatever the photo. */
.hslider .hslide::before,
.hslider .hslide[data-theme="light"]::before {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .06) 22%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(to top,    rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .34) 26%, rgba(0, 0, 0, 0) 62%);
}
.hslider .hslide .panel__head { text-shadow: 0 1px 20px rgba(0, 0, 0, .38); }
/* The range is already visible below a hero this short, so no scroll cue. */
.hslider .panel__scroll { display: none; }

@media (max-width: 767.98px) {
  .hslider__arrow { display: none; }
  /* On phones the slider keeps the model pages' treatment: one full-bleed
     image with the copy over it, rather than the image-band-then-white stack
     the standalone panels use. */
  .hslider { min-height: clamp(400px, 62svh, 560px); }
  .hslider .hslide .panel__media { inset: 0; height: auto; }
  .hslider .hslide::before {
    inset: 0;
    height: auto;
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, 0) 52%),
      linear-gradient(to top,    rgba(0, 0, 0, .70) 0%, rgba(0, 0, 0, .18) 40%, rgba(0, 0, 0, 0) 62%);
  }
  .hslider .hslide[data-theme="light"]::before {
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .20) 30%, rgba(255, 255, 255, 0) 52%),
      linear-gradient(to top,    rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .28) 40%, rgba(255, 255, 255, 0) 62%);
  }
  .hslider .hslide .panel__inner {
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 58px;
  }
  .hslider .panel__actions { flex-direction: row; max-width: none; gap: 10px; }
  /* Size to the label rather than forcing equal halves, so nothing clips. */
  .hslider .panel__actions .btn {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    padding: 12px 18px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hslider__dots { left: var(--pad-x); right: auto; bottom: 20px; top: auto; }
  .hslider .hslide .btn--glass-light,
  .hslider .hslide .btn--glass-dark { background: rgba(255, 255, 255, .86); color: var(--ink); }
  .hslider__dot { width: 34px; }
  /* The copy sits on white below the image band, so the dots stay on the photo. */
  .hslider[data-chrome="ink"] .hslider__dot::before { background: rgba(255, 255, 255, .45); }
  .hslider[data-chrome="ink"] .hslider__dot::after  { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .hslider .hslide,
  .hslider .hslide .panel__media,
  .hslider .hslide .panel__head > *,
  .hslider .hslide .panel__actions { transition: none !important; transform: none !important; }
  .hslider__dot::after { transition: none !important; }
}

/* ── 20. Image placeholders ──────────────────────────────────────────────── */
/* Used where the brochure shows a shot we don't have a file for yet. Honest
   about being empty rather than substituting an unrelated photo. */

.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: var(--ph-ratio, 16 / 10);
  padding: 22px;
  text-align: center;
  color: var(--ink-3);
  background:
    repeating-linear-gradient(-45deg,
      var(--bg-2) 0 10px,
      var(--bg-3) 10px 20px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.ph::before {
  content: "";
  width: 30px; height: 30px;
  opacity: .5;
  background: currentColor;
  -webkit-mask: var(--ph-icon) center / contain no-repeat;
          mask: var(--ph-icon) center / contain no-repeat;
  --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='m21 16-5-5-5.5 5.5L8 14l-5 5'/%3E%3C/svg%3E");
}
.ph span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  max-width: 26ch;
  line-height: 1.5;
}
.ph--wide  { --ph-ratio: 21 / 9; }
.ph--tall  { --ph-ratio: 4 / 5; }
.ph--square{ --ph-ratio: 1 / 1; }

/* ── 21. Feature grid ────────────────────────────────────────────────────── */

.features { display: grid; gap: clamp(18px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.feature { display: flex; flex-direction: column; }
.feature__media { border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); margin-bottom: 16px; }
.feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature__media .ph { border-radius: var(--r-md); }
.feature h3 { font-size: 16px; letter-spacing: -0.012em; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }

/* A compact icon-less list of equipment, three or four across */
.ticks { display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23d32d2f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m5.5 10.2 3.1 3.1 6-6.2'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .ticks li { color: rgba(255, 255, 255, .78); }
.section--dark .ticks li::before { background-color: rgba(255, 255, 255, .12); }

/* ── 22. Variant spec table ──────────────────────────────────────────────── */

table.specs td.mark { text-align: center; font-size: 15px; color: var(--ink); width: 120px; }
table.specs td.mark[data-v="std"]::after { content: "●"; }
table.specs td.mark[data-v="opt"]::after { content: "○"; }
table.specs td.mark[data-v="na"]::after  { content: "–"; color: var(--ink-3); }
table.specs th[scope="row"] { font-weight: 500; color: var(--ink-2); }
table.specs tr.specs__group th { font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* A many-derivative matrix: tighter cells so eleven columns fit the wrap. */
table.specs--wide { font-size: 13px; min-width: 1140px; }
table.specs--wide th, table.specs--wide td { padding: 9px 12px; }
table.specs--wide td.mark { width: 64px; font-size: 14px; }
table.specs--wide th[scope="row"] { min-width: 250px; }
table.specs--wide thead th { font-size: 12px; padding: 12px 10px; text-align: center; }
table.specs--wide thead th:first-child { text-align: left; }
table.specs--wide thead tr:first-child th { border-bottom: 1px solid var(--line); }

/* A two-column table (one derivative) needs its value column pinned, or the
   label column eats the row and the values wrap to two lines. */
table.specs--2col td { width: 260px; }
table.specs--2col { min-width: 520px; }

@media (max-width: 700px) {
  table.specs { font-size: 13px; min-width: 540px; }
  table.specs--2col { min-width: 440px; }
  table.specs--2col td { width: 200px; }
  table.specs th, table.specs td { padding: 11px 14px; }
  table.specs td.mark { width: 78px; }
}
.legend b { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* ── 23. Dimension callouts ──────────────────────────────────────────────── */

.dims { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.dims > div { padding: 18px 20px; background: var(--bg-2); }
.dims dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dims dd { margin: 6px 0 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.dims dd small { font-size: .6em; font-weight: 500; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }

/* ── 24. Colour swatch row (named, no stage) ─────────────────────────────── */

.paints { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 40px); }
.paint { text-align: center; }
.paint i {
  display: block;
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .10);
}
.paint span { font-size: 13px; color: var(--ink-2); }
