/* SafiVolt: pages other than the landing page (built by scripts/build-pages.mjs).
   Loaded after styles.css, which holds the tokens, the header, the footer, cards and buttons.
   These pages are white: dark type, green for emphasis, lime only on buttons. */

/* ---------- Shared ---------- */
.page-hero, .car-hero, .contact { position: relative; background: #fff; color: var(--ink); overflow: clip; }
/* a faint wash of the brand colours in two corners, so the white is not flat */
.page-hero-glow, .car-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 56% at 88% 12%, rgba(187, 239, 85, 0.2), rgba(187, 239, 85, 0) 70%),
    radial-gradient(46% 60% at 4% 100%, rgba(52, 115, 44, 0.06), rgba(52, 115, 44, 0) 72%);
}
.page-hero { padding: calc(var(--header-h) + clamp(54px, 10vh, 120px)) 0 clamp(54px, 9vh, 110px); }
.page-hero .wrap, .contact .wrap { position: relative; }
.page-hero h1, .contact h1 {
  margin: clamp(16px, 2.4vh, 28px) 0 0 -0.04em;
  font-size: clamp(52px, 9.4vw, 176px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.84; text-transform: uppercase;
}
.page-hero-wide h1 { font-size: clamp(48px, 8.4vw, 160px); }
.page-hero h1 em, .contact h1 em, .guide h2 em, .about-chapters h2 em, .about-process h2 em, .about-region h2 em, .about-values h2 em, .calculator h2 em, .pw-guides h2 em { color: var(--green); }
.page-lead { margin-top: clamp(22px, 3.6vh, 40px); max-width: 46ch; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.4; color: var(--ink-soft); }
.page-lead-pair {
  margin-top: clamp(26px, 4.4vh, 50px); max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px);
  font-size: clamp(16.5px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-soft);
}
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 4vh, 40px); }
.section-note { max-width: 44ch; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.section-head h2 em { color: var(--green); }
/* large display headings used on the bands of these pages */
.guide h2, .about-chapters h2, .about-process h2, .about-region h2, .about-values h2, .calculator h2, .pw-guides h2 {
  margin-top: 16px; font-size: clamp(36px, 5vw, 86px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; text-transform: uppercase;
}

/* form controls */
.calc label, .contact-form label { display: grid; gap: 8px; font-size: 13.5px; font-weight: 550; }
.calc input, .calc select, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; transition: border-color 0.2s;
}
.contact-form textarea { padding: 14px 16px; min-height: 124px; resize: vertical; }
.calc input:hover, .calc select:hover, .contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: rgba(25, 35, 27, 0.4); }
.calc input:focus-visible, .calc select:focus-visible, .contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 14px; }
.contact-form ::placeholder { color: rgba(89, 102, 83, 0.7); }

/* ---------- Vehicle page ---------- */
.car-hero { padding: calc(var(--header-h) + clamp(14px, 2.6vh, 30px)) 0 clamp(34px, 6vh, 64px); }
.car-hero .wrap { position: relative; }
.car-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13.5px; color: var(--ink-soft); transition: color 0.25s; }
.car-back:hover { color: var(--ink); }
.car-notice { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); background: var(--mist); }
.car-hero-grid { margin-top: clamp(10px, 2vh, 24px); display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.car-hero-copy .kicker { color: var(--green); }
.car-hero-copy h1 { margin: 14px 0 0 -0.04em; font-size: clamp(50px, 7.4vw, 136px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.86; }
.car-hero-copy h1.is-long { font-size: clamp(38px, 4.8vw, 88px); line-height: 0.92; }
.car-tagline { margin-top: 12px; font-size: clamp(22px, 2.3vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--green); }
.car-intro { margin-top: clamp(16px, 2.4vh, 26px); max-width: 44ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; color: var(--ink-soft); }
.car-price { margin-top: clamp(20px, 3vh, 34px); display: grid; gap: 4px; justify-items: start; }
.car-price span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft); }
.car-price strong { font-size: clamp(28px, 2.9vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.car-price a { margin-top: 2px; padding-bottom: 2px; font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px solid rgba(25, 35, 27, 0.3); transition: color 0.25s, border-color 0.25s; }
.car-price a:hover { color: var(--green); border-color: var(--green); }
.car-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3vh, 32px); }
.car-actions .pill { min-height: 52px; padding: 0 22px; font-size: 15px; }
/* the photograph leans a little toward the copy, and follows the pointer */
.car-hero-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10.5; border-radius: 26px; overflow: hidden; background: var(--mist); cursor: zoom-in;
  box-shadow: 0 44px 80px -46px rgba(16, 30, 18, 0.5);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1500px) rotateY(calc(-5deg + var(--ry))) rotateX(var(--rx));
  transition: transform 0.6s var(--ease-out);
}
.car-hero-photo.is-tilting { transition: transform 0.14s linear; }
.car-hero-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.car-hero-photo span {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 13px; font-weight: 550;
}
.car-facts { margin-top: clamp(26px, 4.4vh, 50px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 48px); border-top: 1px solid var(--line); }
.car-facts div { padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.car-facts dd { margin: 0; font-size: clamp(19px, 2.1vw, 32px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.08; }
.car-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* the bar that stays under the header once the hero has gone */
.subnav {
  position: sticky; top: 62px; z-index: 40; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); height: 54px; padding: 0 var(--pad);
  background: var(--mist); color: var(--ink); font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.subnav-name { margin-right: auto; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav-links { display: flex; gap: clamp(14px, 2vw, 30px); }
.subnav-links a { padding: 10px 0; color: var(--ink-soft); transition: color 0.2s; }
.subnav-links a:hover, .subnav-links a.is-on { color: var(--ink); }
.subnav-links a.is-on { box-shadow: 0 2px 0 var(--green); }
.subnav-quote { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 600; color: var(--green); white-space: nowrap; }

.car-family { background: #fff; padding: 22px 0; border-bottom: 1px solid var(--line); }
.car-family-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.car-family-links a { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); transition: border-color 0.25s; }
.car-family-links a:hover { border-color: var(--ink); }
.car-family-links a[aria-current] { background: var(--lime); border-color: var(--lime); }
.car-family-links strong { font-size: 15px; font-weight: 650; }
.car-family-links span { font-size: 12.5px; color: var(--ink-soft); }

.car-gallery, .car-features, .car-notes, .car-specs, .car-next, .car-videos { padding: clamp(60px, 10vh, 120px) 0; }
.car-gallery, .car-notes, .car-next { background: #fff; }
.car-features, .car-specs, .car-videos { background: var(--mist); }
/* anchors land below the header and the bar under it */
.car-gallery, .car-specs, .car-cost { scroll-margin-top: 110px; }

.viewer { margin-top: clamp(24px, 4vh, 44px); display: grid; gap: 12px; }
.viewer-stage { position: relative; aspect-ratio: 16 / 9; max-height: 76vh; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.viewer-stage > img, .viewer-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.viewer-stage > video { background: var(--mist); cursor: grab; touch-action: pan-y; }
.viewer-stage > video.is-dragging { cursor: grabbing; }
.viewer-stage [hidden] { display: none; }
.viewer-step {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 8px 20px rgba(16, 30, 18, 0.16); transition: transform 0.25s var(--ease);
}
.viewer-step:hover { transform: scale(1.06); }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
.viewer-zoom {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 13px; font-weight: 550; box-shadow: 0 8px 20px rgba(16, 30, 18, 0.16);
}
.viewer-count, .viewer-hint {
  position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 8px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; background: rgba(4, 8, 7, 0.62); color: var(--snow);
}
.viewer-hint { left: 50%; transform: translateX(-50%); text-transform: uppercase; white-space: nowrap; }
.viewer-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thumb { flex: none; width: 108px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--mist); border: 2px solid transparent; opacity: 0.7; scroll-snap-align: start; transition: opacity 0.2s, border-color 0.2s; }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed='true'] { border-color: var(--green); opacity: 1; }
.thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.thumb-spin { display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; opacity: 1; }

.car-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.car-feature + .car-feature { margin-top: clamp(40px, 8vh, 100px); }
.car-feature.is-flipped > button { order: 2; }
.car-feature > button { display: block; aspect-ratio: 16 / 10.5; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #fff; }
.car-feature img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.car-feature > button:hover img { transform: scale(1.03); }
.car-feature h2 { font-size: clamp(30px, 3.4vw, 54px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.car-feature p { margin-top: 16px; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

.note-grid { margin-top: clamp(26px, 4vh, 46px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.note { padding: clamp(20px, 2.4vw, 34px); border-radius: var(--radius); background: var(--mist); }
.note h3 { font-size: clamp(19px, 1.6vw, 25px); font-weight: 650; letter-spacing: -0.03em; }
.note p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

.car-specs-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.car-specs-intro { position: sticky; top: 146px; }
.car-specs-intro h2, .car-next h2 { margin-top: 14px; font-size: clamp(38px, 4.6vw, 76px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; }
.car-specs-intro p:not(.kicker) { margin-top: 18px; max-width: 42ch; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.car-specs-intro .text-link { margin-top: 22px; }
.car-sources { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.car-sources a { text-decoration: underline; text-underline-offset: 0.22em; }
.spec-table div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec-table div:last-child { border-bottom: 1px solid var(--line); }
.spec-table dt { font-size: 14.5px; color: var(--ink-soft); }
.spec-table dd { margin: 0; font-size: 15px; font-weight: 550; text-align: right; }

.car-cost { background: #fff; padding: clamp(70px, 11vh, 130px) 0; }
.variant-tabs { margin-top: clamp(26px, 4vh, 44px); display: flex; flex-wrap: wrap; gap: 10px; }
.variant-tabs button {
  display: grid; gap: 4px; justify-items: start; min-width: min(220px, 100%); padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line);
  text-align: left; color: var(--ink-soft); transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.variant-tabs b { font-size: 16px; font-weight: 600; color: var(--ink); }
.variant-tabs span { font-family: var(--mono); font-size: 12px; }
.variant-tabs button:hover { border-color: var(--ink); }
.variant-tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, 0.72); }
.variant-tabs button[aria-selected='true'] b { color: #fff; }
.variant { margin-top: clamp(16px, 2.6vh, 28px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.variant[hidden] { display: none; }
.variant-main, .variant-lines { padding: clamp(22px, 2.6vw, 38px); border-radius: var(--radius); background: var(--mist); }
.variant-main h3 { margin-top: 10px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
.variant-amount { margin-top: 14px; font-size: clamp(32px, 3.8vw, 58px); font-weight: 750; letter-spacing: -0.05em; line-height: 1; }
.variant-usd { margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.variant-incl { margin-top: 16px; max-width: 46ch; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.variant-specs { margin-top: 18px; }
.variant-specs div, .lines div, .port-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.variant-specs dt { font-size: 14px; color: var(--ink-soft); }
.variant-specs dd, .port-list dd { margin: 0; font-size: 14.5px; font-weight: 550; text-align: right; }
.variant-main .pill { margin-top: 22px; }
.variant-lines .kicker { margin-bottom: 8px; }
.lines dt, .port-list dt { font-size: 14.5px; font-weight: 550; }
.lines dt small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.lines dd { margin: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.lines-total { margin-top: 6px; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.lines-total span { font-size: 13.5px; color: var(--ink-soft); }
.lines-total strong { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; white-space: nowrap; }
.car-cost .fine { margin-top: 14px; font-size: 12.5px; line-height: 1.5; }
.port-fees { margin-top: 16px; padding: 0 clamp(18px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); }
.port-fees summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 550; list-style: none; }
.port-fees summary::-webkit-details-marker { display: none; }
.port-fees summary svg { transition: transform 0.3s var(--ease); }
.port-fees[open] summary svg { transform: rotate(45deg); }
.port-fees .fine { margin: 6px 0 20px; }

.car-next { background: var(--mist); }
.next-steps { margin-top: clamp(26px, 4vh, 46px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.next-steps li { padding-top: 18px; border-top: 1px solid var(--ink); }
.next-steps span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--green); }
.next-steps h3 { margin-top: 12px; font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.next-steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }

.car-videos { background: #fff; }
.video-grid { margin-top: clamp(26px, 4vh, 46px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.video button, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video button { position: relative; }
.video button img { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.9; transition: opacity 0.3s, transform 0.8s var(--ease-out); }
.video button:hover img { opacity: 1; transform: scale(1.03); }
.video button span { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); }
.video h3 { margin-top: 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* photographs full screen: the one place that stays dark, so the picture is all there is */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 8, 7, 0.97); color: var(--snow); }
.lightbox::backdrop { background: rgba(4, 8, 7, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox > img { width: 100%; height: 100%; max-width: none; min-height: 0; object-fit: contain; padding: 62px 16px 6px; }
.lightbox-close { position: absolute; right: 14px; top: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--night-line); }
.lightbox-bar { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.lightbox-bar button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--night-line); transition: border-color 0.25s; }
.lightbox-bar button:hover, .lightbox-close:hover { border-color: var(--snow); }
.lightbox :focus-visible { outline-color: var(--lime); }

/* ---------- Listings ---------- */
.catalog { background: #fff; padding: 0 0 clamp(70px, 10vh, 120px); }
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: clamp(22px, 3.4vh, 36px); border-top: 1px solid var(--line); }
.search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 440px; height: 52px; padding: 0 18px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line); color: var(--ink-soft); transition: border-color 0.25s;
}
.search:focus-within { border-color: var(--green); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.catalog-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.catalog .card-grid { margin-top: clamp(24px, 4vh, 44px); }
.catalog .card[hidden] { display: none; }
.catalog-empty { padding: 60px 0 30px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.catalog-empty[hidden] { display: none; }
.catalog-empty h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 650; letter-spacing: -0.04em; }
.catalog-empty p { color: var(--ink-soft); }
.catalog .fine { margin-top: 28px; max-width: 86ch; line-height: 1.5; }

/* The electric cars page opens on a ring of turntables, one car from each make (js/pages/range.js).
   Three layers at different depths: the make's name far back, the ring of cars, and the words
   and buttons in front. On a wide screen the section is held for most of a screen of
   scrolling, and that scroll turns the ring. */
.range { position: relative; background: #fff; color: var(--ink); height: 188vh; }
.range-pin { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: clip; display: flex; align-items: center; }
.range-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(16px, 2.6vw, 54px); align-items: center; padding-top: var(--header-h); }
.range-copy { position: relative; z-index: 2; }
.range-copy h1 { margin: clamp(14px, 2.2vh, 26px) 0 0 -0.04em; font-size: clamp(44px, 6vw, 116px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.86; text-transform: uppercase; }
.range-copy h1 em { color: var(--green); }
.range-copy .page-lead { max-width: 38ch; font-size: clamp(16.5px, 1.3vw, 21px); }
.range-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3.6vh, 36px); }
.range-stage { position: relative; height: min(66vh, 640px); touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; outline: none; }
.range-stage.is-dragging { cursor: grabbing; }
/* far back: the make's name, drawn in outline, drifting against the pointer */
.range-word {
  position: absolute; left: 50%; top: 17%; margin: 0; white-space: nowrap; pointer-events: none;
  font-size: clamp(120px, 19vw, 360px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px #c3d0bb;
  transform: translate3d(calc(-50% + var(--px, 0) * -38px), calc(-50% + var(--py, 0) * -18px), 0) scale(var(--fit, 1));
  transition: transform 0.5s var(--ease-out);
}
.range-word.is-new { animation: range-word 0.7s var(--ease-out) both; }
@keyframes range-word { from { opacity: 0; letter-spacing: 0.02em; } to { opacity: 1; letter-spacing: -0.06em; } }
/* the ring: each car is the first frame of its 360 clip, white studio and all, laid onto the
   white page and faded out toward its edges so that only the car and its turntable remain.
   A car in front hides the ones behind it, and the ring itself fades out at both sides, so a
   car slips away before it reaches the headline. */
.range-ring {
  position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 9px), 0); transition: transform 0.5s var(--ease-out);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 91%, transparent 100%);
}
.range-car {
  position: absolute; left: 50%; top: 50%; width: min(118%, 980px); aspect-ratio: 16 / 9; opacity: 0;
  transform: translate3d(-50%, -50%, 0); will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(ellipse 43% 50% at 50% 54%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 43% 50% at 50% 54%, #000 52%, transparent 100%);
}
.range-car:first-of-type { opacity: 1; } /* without scripts the first car stands alone */
/* A car's picture is far wider than the car, and the pictures lie over one another. Only the
   middle of each picture, where the car stands, answers the pointer: a click lands on the car
   that is seen there, not on the wide picture of the car in front. */
.range-car { pointer-events: none; }
.range-hit { position: absolute; left: 25%; right: 25%; top: 27%; bottom: 21%; pointer-events: auto; cursor: pointer; }
.range-stage.is-dragging .range-hit { cursor: grabbing; }
.range-car img, .range-car video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.range-car video, .range-ring > video { opacity: 0; }
.range-car.is-turning video { opacity: 1; }
.range-car.is-turning img { opacity: 0; }
/* A used car stands in the ring as its own photograph (one real vehicle, no 360 clip): a plate
   with rounded corners, as the photographs on a car page are shown, the plates of its
   neighbours tucked behind it. Nothing is cut out or drawn; it is the photograph as taken. */
.range-car.is-photo {
  top: 43%; width: min(62%, 540px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: clamp(18px, 1.9vw, 30px);
  -webkit-mask-image: none; mask-image: none;
  background: var(--mist); box-shadow: 0 46px 70px -44px rgba(18, 40, 22, 0.7), 0 0 0 1px rgba(25, 35, 27, 0.06);
}
.range-car.is-photo .range-hit { inset: 0; }
/* behind photographs the word stands higher, so more of it shows over the plate */
.range-stage.has-photos .range-word { top: 9%; }
/* A 360 clip that came with the catalog has its own studio and a larger car than the clips made
   here. Its picture is drawn smaller inside its place, and faded at its own edges, so the car
   stands the same size as its neighbours. */
.range-car.is-studio img, .range-car.is-studio video {
  transform: translate3d(0, -3%, 0) scale(0.62);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 60%, transparent 100%);
}
.range-car:focus-visible { outline: none; }
.range-stage:has(.range-car:focus-visible) .range-plate .text-link { outline: 2px solid var(--green); outline-offset: 4px; }
/* in front: what the car is, and the buttons */
.range-plate { position: absolute; left: 0; bottom: 0; z-index: 200; display: grid; justify-items: start; }
.range-make { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.range-name { margin-top: 6px; font-size: clamp(26px, 2.7vw, 46px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.02; }
.range-name.is-new { animation: range-name 0.6s var(--ease-out) both; }
@keyframes range-name { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.range-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14.5px; color: var(--ink-soft); }
.range-meta span + span::before { content: '·'; margin-right: 12px; }
.range-plate .text-link { margin-top: 12px; padding: 6px 0; font-size: 14.5px; color: var(--green-deep); }
.range-nav { position: absolute; right: 0; bottom: 0; z-index: 200; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.range-nav button { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(25, 35, 27, 0.26); color: var(--ink); background: #fff; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.range-nav button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.range-nav button:active { transform: scale(0.94); }
.range-hint {
  position: absolute; left: 50%; bottom: clamp(14px, 2.4vh, 26px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); opacity: calc(1 - var(--p, 0) * 4);
}
.range-hint::before { content: ''; width: 34px; height: 1px; background: currentColor; }
/* no holding without motion: the section is one screen and the ring answers the buttons */
.is-static .range { height: auto; }
.is-static .range-pin { position: relative; }
.is-static .range-hint { display: none; }
@media (max-width: 900px) {
  .range { height: auto; }
  .range-pin { position: relative; display: block; height: auto; min-height: 0; padding: calc(var(--header-h) + clamp(26px, 5vh, 46px)) 0 clamp(30px, 5vh, 50px); }
  .range-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 0; }
  .range-copy h1 { font-size: clamp(46px, 13.4vw, 96px); }
  .range-stage { height: clamp(330px, 50vh, 460px); }
  .range-car { width: 158%; top: 40%; }
  .range-car.is-photo { width: 84%; top: 44%; }
  .range-word { top: 26%; font-size: clamp(120px, 40vw, 300px); -webkit-text-stroke-width: 1.2px; }
  .range-name { font-size: clamp(25px, 7vw, 36px); }
  .range-nav button { width: 46px; height: 46px; }
  .range-hint { display: none; }
}

/* between a phone and a wide screen (a tablet held upright) the car is kept smaller, so the
   make's name still stands clear above it */
@media (min-width: 561px) and (max-width: 900px) {
  .range-copy h1 { font-size: clamp(50px, 8.4vw, 74px); } /* a long headline must leave room for the ring */
  .range-stage { height: clamp(400px, 50vh, 560px); }
  .range-car { width: 116%; top: 50%; }
  .range-car.is-photo { width: 62%; top: 52%; }
  .range-word { top: 17%; font-size: clamp(150px, 30vw, 280px); }
}

/* the make filter of a listing: a drop-down list beside the search box, as on the main site */
.catalog-bar.has-select { justify-content: flex-start; }
.catalog-bar.has-select .catalog-count { margin-left: auto; }
.make-select {
  flex: 0 1 240px; min-width: 170px; height: 52px; padding: 0 46px 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2319231b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 18px;
  font: inherit; font-size: 15.5px; font-weight: 550; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color 0.25s;
}
.make-select:hover { border-color: var(--ink); }
.make-select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Browse by brand, on the electric cars page: one card per make, as on the main site. The
   cards are flip cards like the vehicle cards (styles.css, "3D cards"), only smaller: a logo
   on the front, the make's first models and a button on the back. Their backs are the same
   dark green as every card back on the site (styles.css). */
.brands { background: #fff; padding: 0 0 clamp(56px, 9vh, 110px); }
.brands .wrap { padding-top: clamp(26px, 4vh, 44px); border-top: 1px solid var(--line); }
.brands-lead { margin-top: 16px; max-width: 58ch; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.brands-head .text-link, .catalog-summary .text-link { flex: none; color: var(--green-deep); }
.brand-grid { margin-top: clamp(26px, 4vh, 46px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.25vw, 20px); }
.brand-card .card-front { min-height: 318px; padding: 16px 16px 14px; }
/* the whole front is the button that turns the card */
.brand-card .card-flip { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: auto; padding: 0; border-radius: inherit; background: none; color: inherit; }
.brand-card .card-flip:hover { background: none; color: inherit; }
.brand-card .card-flip:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.brand-card .card-front .card-cap span { color: var(--ink-soft); font-weight: 500; font-size: 10px; letter-spacing: 0.12em; }
.brand-logo {
  position: relative; flex: none; margin-top: 12px; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; border-radius: calc(var(--radius) - 8px);
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f1f4ee 58%, #e3e9de 100%);
  transform: translateZ(40px); box-shadow: 0 18px 26px -22px rgba(18, 40, 22, 0.55);
}
/* logos are shown in one colour, dark on the light plate; a logo drawn in white is turned over.
   The picture is placed inside the plate, so a tall logo cannot stretch it. */
.brand-logo img { position: absolute; left: 13%; top: 20%; width: 74%; height: 60%; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
.brand-logo img.is-inverted { filter: grayscale(1) invert(1); }
.brand-wordmark { padding: 0 10px; font-size: clamp(17px, 1.5vw, 24px); font-weight: 650; letter-spacing: -0.04em; text-align: center; line-height: 1.1; }
.brand-card .card-body { margin-top: 16px; }
.brand-card .card-body h3, .brand-card .card-back h3 { margin-top: 0; font-size: clamp(17px, 1.32vw, 21px); letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; }
.brand-card .card-type { margin-top: 5px; font-size: 13px; line-height: 1.35; }
.brand-foot { margin-top: 14px; padding-top: 12px; font-size: 13px; font-weight: 550; color: var(--green); }
.brand-card.is-selected .card-front { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset, 0 24px 46px -30px rgba(18, 40, 22, 0.32); }
.brand-card.is-selected .card-front .card-cap span { color: var(--green); font-weight: 650; }
.brand-card .card-back { padding: 14px 14px 14px 16px; }
.brand-card .card-back .card-cap { font-size: 10px; }
.brand-card .card-back .card-close { width: 34px; height: 34px; pointer-events: auto; }
.brand-card .card-back h3 { margin-top: 4px; transform: translateZ(22px); }
.brand-models { list-style: none; margin: 8px 0 12px; padding: 0; transform: translateZ(14px); }
.brand-models a {
  position: relative; z-index: 2; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 34px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 13.5px; font-weight: 550; line-height: 1.25; transition: color 0.2s;
}
.brand-models a span { overflow-wrap: anywhere; }
.brand-models a svg { flex: none; color: var(--lime); transition: transform 0.3s var(--ease); }
.brand-models a:hover { color: var(--lime); }
.brand-models a:hover svg { transform: translate(2px, -2px); }
/* (a card face switches pointer events off for its children, styles.css; the button and the
   links switch them back on, and the button needs the longer selector to win over that rule) */
.brand-card .card-back .brand-view { pointer-events: auto; }
.brand-view {
  position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 44px; padding: 9px 14px; border-radius: 14px; background: var(--lime); color: #173c27;
  font-size: 12.5px; font-weight: 650; line-height: 1.25; text-align: left; transform: translateZ(30px); transition: transform 0.3s var(--ease);
}
.brand-view svg { flex: none; }
.brand-view:hover { transform: translateZ(30px) translateY(-2px); }
.brand-card .card-back :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.brand-card.is-selected .card-back { box-shadow: 0 0 0 1px var(--lime) inset, 0 24px 46px -30px rgba(9, 32, 19, 0.6); }
@media (max-width: 1200px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-card .card-front { min-height: 300px; padding: 14px 12px 12px; }
  .brand-card .card-back { padding: 12px; }
  .brand-models a { min-height: 38px; }
}

/* an address that ends in #catalog opens on the list, clear of the fixed header */
#catalog { scroll-margin-top: calc(var(--header-h) - 8px); }
/* the heading over the list says which make is showing */
.catalog-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: clamp(26px, 4vh, 44px); border-top: 1px solid var(--line); }
.catalog-summary h2 { font-size: clamp(32px, 3.6vw, 58px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.02; scroll-margin-top: calc(var(--header-h) + 30px); }
.catalog-summary h2:focus { outline: none; }
.catalog-summary p { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.catalog-summary [hidden] { display: none; }
.catalog-summary + .catalog-bar { border-top: 0; padding-top: clamp(18px, 2.6vh, 28px); }

.guide { background: var(--mist); padding: clamp(70px, 11vh, 140px) 0; }
.guide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 90px); align-items: end; }
.guide-head > p { font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.guide-chapters { margin-top: clamp(34px, 6vh, 70px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.guide-chapters article { padding-top: 18px; border-top: 1px solid var(--ink); }
.guide-chapters h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.025em; }
.guide-chapters p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.guide-checks { margin-top: clamp(34px, 6vh, 70px); padding: clamp(22px, 3vw, 44px); border-radius: var(--radius); background: #fff; }
.guide-checks h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 650; letter-spacing: -0.03em; }
.guide-checks ol { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 48px); }
.guide-checks li { display: grid; gap: 4px; align-content: start; padding: 14px 0; border-top: 1px solid var(--line); }
.guide-checks b { font-size: 15px; font-weight: 600; }
.guide-checks li span { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.guide-checks .pill { margin-top: 22px; }

/* ---------- About ---------- */
.about-story { position: relative; background: #fff; }
.about-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 70px);
  padding: var(--header-h) var(--pad) 46px;
}
.about-view { order: 2; position: relative; margin: 0; height: min(72vh, 640px); border-radius: 26px; overflow: hidden; box-shadow: 0 44px 80px -46px rgba(16, 30, 18, 0.5); }
/* the landscape eases toward the viewer as the three chapters pass */
.about-view img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: 50% 62%; transform: scale(calc(1.02 + var(--sc-p, 0) * 0.12)); will-change: transform; }
.about-view figcaption {
  position: absolute; left: 16px; bottom: 14px; padding: 8px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; background: rgba(4, 8, 7, 0.62); color: var(--snow);
}
.about-chapters { position: relative; height: min(62vh, 480px); }
/* two lines each: sized to the column, not to the page */
.about-chapters h2 { font-size: clamp(32px, 4.1vw, 76px); }
.about-chapters article { position: absolute; inset: 0; display: grid; align-content: center; opacity: 0; }
.about-chapters article:first-child { opacity: 1; }
.about-chapters article > p:last-child { margin-top: 22px; max-width: 40ch; font-size: clamp(16.5px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-soft); }
.about-marks { position: absolute; left: var(--pad); bottom: 34px; display: flex; gap: 8px; }
.about-marks li { width: 34px; height: 3px; border-radius: 2px; background: rgba(25, 35, 27, 0.14); overflow: hidden; }
.about-marks i { display: block; height: 100%; background: var(--green); opacity: 0; }
.about-marks li:first-child i { opacity: 1; }

.about-process { background: var(--mist); padding: clamp(80px, 12vh, 150px) 0; }
.about-process-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.about-process-grid > div > p:last-child { margin-top: 20px; max-width: 40ch; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.about-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--ink); }
.about-steps li:last-child { border-bottom: 1px solid var(--ink); }
.about-steps span { padding-top: 5px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--green); }
.about-steps h3 { font-size: clamp(20px, 1.8vw, 28px); font-weight: 650; letter-spacing: -0.03em; }
.about-steps p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.about-region { position: relative; background: #fff; padding: clamp(90px, 14vh, 180px) 0; }
.about-values { background: var(--mist); padding: clamp(80px, 12vh, 150px) 0; }
.value-grid { margin-top: clamp(30px, 5vh, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.value-grid article { padding: clamp(22px, 2.6vw, 38px); border-radius: var(--radius); background: #fff; }
.value-grid svg { width: 26px; height: 26px; color: var(--green); }
.value-grid h3 { margin-top: 18px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 650; letter-spacing: -0.03em; }
.value-grid p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Charging ---------- */
/* First screen: the words on the left; on the right the home page's 3D model of home charging
   (the stage and its labels are styled in styles.css), which builds itself as the page opens.
   The photograph under it is what a device without 3D shows; it lies flat here (--t: 1), where
   on the home page it tilts in with the scroll. */
.pw-hero { padding: calc(var(--header-h) + clamp(16px, 3.4vh, 44px)) 0 clamp(28px, 5vh, 60px); }
.pw-hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
.page-hero.pw-hero h1 { font-size: clamp(52px, 7.3vw, 138px); }
/* as the screen scrolls away (--out, 0 to 1) the words lift and fade and the model sinks back */
.pw-hero { --out: 0; }
.pw-copy { position: relative; z-index: 1; transform: translate3d(0, calc(var(--out) * -40px), 0); opacity: calc(1 - var(--out) * 0.9); }
/* (the model only slides: a scale would change the size its canvas measures itself by) */
.pw-stage { --t: 1; transform: translate3d(0, calc(var(--out) * 80px), 0); }
/* while the model loads the stage already has its shape, and the photograph stays out of sight */
.pw-stage.is-waiting { aspect-ratio: 1.24; margin: -5% -8% -5% -6%; }
.pw-stage.is-waiting .charging-plate { display: none; }
.pw-stage .charging-plate img { height: auto; }

/* The chargers: the site's flip cards, four in a row, with a tall plate for a tall product. */
.chargers { background: #fff; padding: clamp(40px, 7vh, 90px) 0 clamp(60px, 9vh, 110px); scroll-margin-top: 60px; }
.pw-grid { margin-top: clamp(26px, 4vh, 46px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 24px); }
.pw-grid .card-media { aspect-ratio: 1 / 1.1; }
.pw-grid .card[data-media='product'] .card-media img { padding: 7% 9%; }
.pw-grid .card-body h3 { font-size: clamp(22px, 1.75vw, 30px); }
.chargers > .wrap > .fine { margin-top: 24px; }
@media (max-width: 1180px) {
  .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-grid .card-media { aspect-ratio: 4 / 3.3; }
}
@media (max-width: 640px) { .pw-grid { grid-template-columns: minmax(0, 1fr); } }

/* Two photographs side by side: a cabinet in service (tall) and a car on charge (wide). The
   columns are in the ratio of the two shapes, 3:4 and 4:3, so both plates come out the same
   height. Each plate settles as it arrives (--t, set by the scroll). */
.pw-pair { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.3333fr); gap: clamp(14px, 1.9vw, 30px); align-items: start; }
.pw-plate { --t: 1; }
.pw-plate-photo {
  border-radius: clamp(20px, 2.2vw, 36px); overflow: hidden; background: #dfe6ea;
  transform: perspective(1600px) rotateX(calc((1 - var(--t)) * 9deg)) scale(calc(0.93 + var(--t) * 0.07)); transform-origin: 50% 100%;
  box-shadow: 0 60px 90px -56px rgba(14, 40, 30, 0.6); will-change: transform;
}
.pw-plate-tall .pw-plate-photo { aspect-ratio: 3 / 4; }
.pw-plate-wide .pw-plate-photo { aspect-ratio: 4 / 3; }
.pw-plate-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(calc(1.14 - var(--t) * 0.12)); }
.pw-plate-wide .pw-plate-photo img { object-position: 42% 50%; }
.pw-plate figcaption { margin-top: clamp(14px, 1.4vw, 22px); max-width: 54ch; }
.pw-plate figcaption p:not(.kicker) { margin-top: 8px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.5; color: var(--ink-soft); }

/* The car photograph alone, as one wide plate (the page without the cabinet photograph). */
.pw-band { background: #fff; padding: 0 0 clamp(70px, 11vh, 130px); }
.pw-band-plate {
  --t: 1; position: relative; border-radius: clamp(20px, 2.2vw, 36px); overflow: hidden; background: #0c3a78;
  transform: perspective(1600px) rotateX(calc((1 - var(--t)) * 9deg)) scale(calc(0.93 + var(--t) * 0.07)); transform-origin: 50% 100%;
  box-shadow: 0 60px 90px -56px rgba(14, 40, 30, 0.6); will-change: transform;
}
.pw-band-plate img { width: 100%; height: auto; max-width: none; aspect-ratio: 1120 / 500; object-fit: cover; object-position: 42% 50%; transform: scale(calc(1.14 - var(--t) * 0.12)); }
.pw-band-plate figcaption {
  position: absolute; left: clamp(14px, 2vw, 30px); bottom: clamp(14px, 2vw, 30px); width: min(460px, calc(100% - 28px));
  padding: clamp(16px, 1.6vw, 26px); border-radius: clamp(14px, 1.4vw, 22px);
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 40px -24px rgba(8, 24, 44, 0.6);
}
.pw-band-plate figcaption p:not(.kicker) { margin-top: 10px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; }

.calculator { background: var(--mist); padding: clamp(80px, 12vh, 150px) 0; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
.calculator-grid > div > p:last-child { margin-top: 20px; max-width: 40ch; line-height: 1.5; color: var(--ink-soft); }
.calc { display: grid; gap: 16px; padding: clamp(22px, 3vw, 44px); border-radius: var(--radius); background: #fff; }
.calc output { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc output strong { font-size: clamp(54px, 6vw, 96px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--green); font-variant-numeric: tabular-nums; }
.calc output span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
/* the same battery on each of our chargers: a bar for the time each one takes */
.pw-times { margin-top: clamp(28px, 5vh, 56px); padding: clamp(22px, 3vw, 44px); border-radius: var(--radius); background: #fff; }
.pw-times ol { margin-top: 16px; }
.pw-times li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 6.4em; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 14px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pw-times li:last-child { border-bottom: 1px solid var(--line); }
.pw-times li a { font-size: clamp(18px, 1.6vw, 24px); font-weight: 650; letter-spacing: -0.03em; white-space: nowrap; transition: color 0.2s; }
.pw-times li a:hover { color: var(--green); }
.pw-times-bar { height: 10px; border-radius: 999px; background: var(--mist); }
.pw-times-bar i { display: block; width: calc(var(--w, 0) * 100%); min-width: 10px; height: 100%; border-radius: inherit; background: var(--ink); transition: width 0.7s var(--ease-out), background 0.25s; }
.pw-times li.is-chosen .pw-times-bar i { background: var(--green); }
.pw-times li.is-chosen a { color: var(--green); }
.pw-times li b { text-align: right; font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; white-space: nowrap; }
.pw-times .fine { margin-top: 16px; max-width: 72ch; line-height: 1.5; }
/* the main site's guides about charging: plain rows, the title large, in the manner of the
   category list on the landing page */
.pw-guides { background: #fff; padding: clamp(80px, 12vh, 150px) 0; }
.pw-guides-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.pw-guides ol a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px clamp(16px, 2vw, 32px); padding: 22px 4px;
  border-top: 1px solid var(--ink); transition: color 0.25s, padding 0.4s var(--ease);
}
.pw-guides ol li:last-child a { border-bottom: 1px solid var(--ink); }
.pw-guides ol .kicker { grid-column: 1; }
.pw-guides ol b { grid-column: 1; font-size: clamp(19px, 1.7vw, 27px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.18; }
.pw-guides ol .arrow { grid-column: 2; grid-row: 1 / span 2; }
.pw-guides ol a:hover { color: var(--green); padding-left: 14px; }

/* ---------- Contact ---------- */
.contact { padding: calc(var(--header-h) + clamp(36px, 8vh, 90px)) 0 clamp(70px, 10vh, 120px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.contact h1 { font-size: clamp(50px, 6.2vw, 120px); }
.contact-direct { margin-top: clamp(24px, 4vh, 44px); display: grid; gap: 14px; justify-items: start; }
.contact-direct > a:not(.pill) { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; transition: color 0.2s; }
.contact-direct > a:not(.pill):hover { color: var(--green); }
.contact-direct p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(22px, 3vw, 44px); border-radius: var(--radius); background: var(--mist); }
.contact-form label:nth-of-type(n + 5), .contact-form > .pill, .contact-form > .fine, .contact-draft { grid-column: 1 / -1; }
.contact-form label span { font-weight: 400; color: var(--ink-soft); }
.contact-form > .pill { justify-self: start; }
.contact-draft { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--green); }
.contact-draft[hidden] { display: none; }
.contact-draft h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.contact-draft > p { margin-top: 10px; white-space: pre-line; font-size: 14.5px; line-height: 1.5; }
.contact-send { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .next-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-checks ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px), (max-aspect-ratio: 85 / 100) {
  .page-lead-pair, .car-hero-grid, .car-feature, .car-specs-grid, .variant, .guide-head, .guide-chapters, .about-process-grid, .value-grid,
  .calculator-grid, .pw-guides-grid, .contact-grid, .note-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero h1, .contact h1 { font-size: clamp(46px, 15vw, 110px); }
  .car-hero-copy h1 { font-size: clamp(46px, 14.4vw, 104px); }
  .car-hero-copy h1.is-long { font-size: clamp(34px, 10vw, 70px); }
  .car-hero-photo { transform: none; aspect-ratio: 16 / 11; border-radius: 20px; }
  .car-actions .pill { flex: 1 1 100%; justify-content: center; }
  .car-facts { grid-template-columns: minmax(0, 1fr); }
  .car-facts div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .car-facts div:last-child { border-bottom: 0; }
  .car-facts dd { font-size: 19px; }
  .car-facts dt { text-align: right; }
  .subnav { gap: 14px; }
  .subnav-name { display: none; }
  .subnav-links { margin-right: auto; gap: 16px; }
  .car-feature.is-flipped > button { order: 0; }
  .car-specs-intro { position: static; }
  .viewer-stage { aspect-ratio: 4 / 3; }
  .viewer-step { width: 40px; height: 40px; margin-top: -20px; }
  .viewer-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .viewer-zoom { width: 40px; padding: 0; justify-content: center; }
  .thumb { width: 84px; }
  .variant-tabs button { flex: 1 1 100%; }
  .lines dt small { display: none; }
  .about-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 18px; padding: calc(var(--header-h) + 10px) var(--pad) 54px; }
  .about-view { order: 0; height: 34vh; border-radius: 20px; }
  .about-chapters { height: auto; align-self: stretch; }
  .about-chapters article { align-content: start; }
  .about-marks { bottom: 24px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-form label:nth-of-type(n) { grid-column: 1 / -1; }
}
/* charging: the model moves under the words, as its section does on the home page */
@media (max-width: 900px) {
  .pw-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero.pw-hero h1 { font-size: clamp(46px, 15vw, 110px); }
  .pw-stage.is-waiting { margin: 0 -5%; }
}
@media (max-width: 700px) {
  .pw-pair { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .pw-band-plate img { aspect-ratio: 4 / 3; }
  .pw-band-plate figcaption { position: static; width: auto; border-radius: 0; background: var(--mist); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .pw-times li { grid-template-columns: 4.4em minmax(0, 1fr) 5.6em; gap: 12px; }
}
/* on a phone the bar gets a line of its own, so it keeps a length worth reading */
@media (max-width: 560px) {
  .pw-times li { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .pw-times li a { grid-column: 1; grid-row: 1; }
  .pw-times li b { grid-column: 2; grid-row: 1; }
  .pw-times-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* narrower than any phone (a slim side pane): the two buttons keep to one line each */
@media (max-width: 340px) {
  .pw-copy .pill { padding: 0 18px; gap: 10px; }
}
@media (max-width: 560px) {
  .next-steps, .video-grid, .guide-checks ol { grid-template-columns: minmax(0, 1fr); }
  .spec-table div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .spec-table dd { text-align: left; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .car-hero-photo, .about-view img { transform: none; }
}
