/* SafiVolt landing page: 3D remake
   Sections: tokens, base, header, menu, hero, manifesto, cards, lineup, mobility,
   charging, journey, journal, closing, footer, motion preferences. */

/* ---------- Fonts (Geist, the same family the live site uses) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #19231b;
  --ink-soft: #596653;
  --paper: #ffffff;
  --mist: #f2f5ef;
  --line: #d8dfd4;
  --green: #34732c;
  --green-deep: #1f5120;
  --lime: #bbef55;
  --lime-ink: #101210;
  --night: #040807;
  --night-2: #0a1611;
  --night-line: rgba(214, 240, 222, 0.14);
  --snow: #f1f6ee;
  --snow-soft: rgba(233, 244, 235, 0.68);

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --pad: clamp(20px, 4.4vw, 72px);
  --radius: clamp(18px, 1.6vw, 26px);
  --sheet-radius: clamp(26px, 3.4vw, 52px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- scroll-craft engine: themed from this page's palette ---------- */
:root {
  --sc-canvas: #fff; --sc-surface: var(--mist); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--lime); --sc-accent-ink: var(--lime-ink);
  --sc-font-display: var(--font); --sc-font-text: var(--font);
}
html { scroll-behavior: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* the engine's reset sets these three on body; the rest of this page keeps its own setting */
  letter-spacing: normal;
  text-rendering: auto;
  font-synthesis-weight: auto;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[data-tone='light'] :focus-visible, [data-tone='lime'] :focus-visible { outline-color: var(--green); }

.wrap { width: min(100% - 2 * var(--pad), 1560px); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink); font-weight: 600; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.kicker {
  font-family: var(--mono);
  font-size: clamp(11px, 0.78vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
[data-tone='dark'] .kicker { color: var(--snow-soft); }
[data-tone='lime'] .kicker { color: rgba(16, 18, 16, 0.72); }
.fine { font-size: 13.5px; color: var(--ink-soft); }

.arrow { flex: none; transition: transform 0.35s var(--ease); }
a:hover > .arrow, a:focus-visible > .arrow, button:hover > .arrow { transform: translate(3px, -3px); }

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  font-size: 15.5px; font-weight: 550; letter-spacing: -0.005em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
}
.pill:hover { transform: translateY(-2px); }
.pill-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 34px -12px rgba(187, 239, 85, 0.75); }
.pill-lime:hover { box-shadow: 0 18px 44px -12px rgba(187, 239, 85, 0.9); }
.pill-ink { background: var(--lime-ink); color: #fff; }
.pill-ghost { border: 1px solid rgba(233, 244, 235, 0.42); color: var(--snow); background: rgba(10, 22, 17, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill-ghost:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
[data-tone='light'] .pill-ghost { border-color: rgba(25, 35, 27, 0.28); color: var(--ink); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-tone='light'] .pill-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 10px 0; font-size: 15.5px; font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: gap 0.35s var(--ease), color 0.25s;
}
.text-link:hover { gap: 30px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(38px, 4.6vw, 76px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; }
.section-head .kicker { margin-bottom: 14px; }

/* light sheets slide over the dark stages with rounded shoulders */
.sheet { position: relative; z-index: 2; border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; margin-top: calc(-1 * var(--sheet-radius)); }
/* Hand-off after the pinned 3D stage: the next sheet starts one screen early, so it slides up
   over the stage while the stage is still pinned and sinks back (see --exit below). */
.journey + .sheet { margin-top: -100vh; margin-top: -100svh; box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.45); }
.journey-stage {
  --exit: 0;
  transform-origin: 50% 36%;
  transform: scale(calc(1 - var(--exit) * 0.085));
  border-radius: calc(var(--exit) * 44px);
}
.journey-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: #020403; opacity: calc(var(--exit) * 0.6);
}

/* scroll reveal (class added by JS when the element enters the viewport) */
.reveal { opacity: 0; transform: translate3d(0, 46px, 0); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) calc(var(--i, 0) * 80ms), transform 1.1s var(--ease-out) calc(var(--i, 0) * 80ms); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: #fff; color: var(--green);
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.loader-mark circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: loader-ring 1.4s var(--ease) forwards; }
.loader-mark path { opacity: 0; animation: loader-bolt 0.5s ease 0.5s forwards; }
.loader-bar { width: 132px; height: 2px; background: rgba(52, 115, 44, 0.16); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; width: 40%; background: var(--green); animation: loader-slide 1.1s ease-in-out infinite; }
.is-ready .loader { opacity: 0; visibility: hidden; }
@keyframes loader-ring { to { stroke-dashoffset: 0; } }
@keyframes loader-bolt { to { opacity: 1; } }
@keyframes loader-slide { from { transform: translateX(-110%); } to { transform: translateX(360%); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  color: var(--snow);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, height 0.35s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-compact { height: 62px; }
.site-header[data-tone='light'] {
  color: var(--ink); background: rgba(255, 255, 255, 0.82); border-bottom-color: rgba(25, 35, 27, 0.08);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
}
.site-header[data-tone='lime'] { color: var(--lime-ink); }
/* once the page has moved, the bar gets a dark frosted backing, so text passing under it does not run into the menu */
.site-header[data-tone='dark'].is-compact {
  background: rgba(4, 8, 7, 0.72); border-bottom-color: rgba(214, 240, 222, 0.07);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand svg { height: 38px; width: auto; }
.brand-safi { fill: currentColor; }
.brand-disc { fill: transparent; transition: fill 0.35s ease; }
.site-header[data-tone='light'] .brand-disc { fill: #fff; }

.nav-primary { display: none; align-items: center; gap: clamp(14px, 1.9vw, 34px); font-size: 14.5px; font-weight: 500; }
.nav-primary > a, .nav-group > button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; opacity: 0.86; transition: opacity 0.2s; }
.nav-primary > a:hover, .nav-group > button:hover, .nav-primary > a[aria-current='page'] { opacity: 1; }
.nav-primary > a::after, .nav-group > button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-primary > a:hover::after, .nav-primary > a[aria-current='page']::after, .nav-group > button:hover::after { transform: scaleX(1); }
.nav-group { position: relative; }
.nav-group > button svg { transition: transform 0.3s var(--ease); }
.nav-group.is-open > button svg { transform: rotate(180deg); }
.nav-flyout {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 320px; padding: 8px;
  background: #fff; color: var(--ink); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(8, 20, 12, 0.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(0.98); transform-origin: top center;
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.25s;
}
.nav-group.is-open .nav-flyout { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.nav-flyout a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; transition: background 0.2s; }
.nav-flyout a:hover, .nav-flyout a:focus-visible { background: var(--mist); }
.nav-flyout span { font-weight: 600; font-size: 15px; }
.nav-flyout small { font-size: 13px; color: var(--ink-soft); }

.header-actions { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); margin-left: auto; }
.header-contact {
  display: none; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid currentColor; font-size: 14.5px; font-weight: 550;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.header-contact:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.menu-button { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 4px; font-size: 15px; font-weight: 500; }
.menu-icon { display: grid; gap: 6px; width: 22px; }
.menu-icon i { display: block; height: 1.6px; background: currentColor; transition: transform 0.35s var(--ease); transform-origin: left; }
.menu-button:hover .menu-icon i:last-child { transform: scaleX(0.6); }

@media (min-width: 720px) { .header-contact { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav-primary { display: flex; margin-left: auto; }
  .nav-primary + .header-actions { margin-left: 0; }
}

/* ---------- Full-screen menu ---------- */
.site-menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--night); color: var(--snow); overflow: auto;
}
.site-menu::backdrop { background: rgba(4, 8, 7, 0.6); }
.site-menu[open] { animation: menu-in 0.5s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.menu-inner { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 22px var(--pad) 34px; perspective: 1400px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-close { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--night-line); transition: background 0.25s, color 0.25s, transform 0.4s var(--ease); }
.menu-close:hover { background: var(--lime); color: var(--lime-ink); transform: rotate(90deg); }
.menu-links { display: grid; align-content: center; gap: 2px; transform-style: preserve-3d; }
.menu-links a {
  display: flex; align-items: baseline; gap: clamp(16px, 2.4vw, 40px); padding: clamp(4px, 0.9vh, 10px) 0;
  border-bottom: 1px solid var(--night-line);
  transform-origin: left center;
  transition: transform 0.45s var(--ease), color 0.25s;
}
.site-menu[open] .menu-links a { animation: menu-row 0.8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes menu-row { from { opacity: 0; transform: translate3d(0, 34px, -120px) rotateX(-38deg); } to { opacity: 1; transform: none; } }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--lime); transform: translate3d(18px, 0, 40px); }
.menu-number { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--snow-soft); min-width: 2.4em; }
.menu-word { font-size: clamp(34px, 6.2vh, 78px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.04; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--snow-soft); }
.menu-foot a { color: var(--lime); letter-spacing: 0.04em; }

/* ---------- Lead: headline left, film window right (scroll-craft scrub act) ----------
   The engine pins .lead-stage, scrubs the clip and runs the cues. js/film.js lays the film out
   at its open size and moves it with transform and clip-path only: at rest it is zoomed in and
   cut down to a tilted card on the right; as the scroll goes on it flattens and opens. */
.lead { position: relative; background: #fff; color: var(--ink); }
.lead-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 46%, #f1f6ea 0%, #fff 62%);
}
/* back plane: soft light behind the window, drifting slower than the page */
.lead-glow {
  position: absolute; inset: -12% -6%; pointer-events: none;
  background:
    radial-gradient(34% 38% at 70% 50%, rgba(187, 239, 85, 0.26), rgba(187, 239, 85, 0) 70%),
    radial-gradient(46% 52% at 80% 42%, rgba(52, 115, 44, 0.07), rgba(52, 115, 44, 0) 72%);
}

/* mid plane: the film window. Until the script has laid it out, it is simply the card on the right. */
.film {
  position: absolute; z-index: 2; overflow: hidden; background: #c9ced1;
  left: 43%; top: calc(var(--header-h) + 22px); width: calc(57% - var(--pad)); height: calc(100% - var(--header-h) - 118px);
  border-radius: 26px; transform-origin: 50% 50%;
}
.film.is-laid { border-radius: 0; will-change: transform, clip-path; }
.film .film-open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.film .film-open[hidden] { display: none; }

/* front plane: numbered pins on the parts, the model name on the card, the note under the open film */
.film-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.film-pins li {
  position: absolute; left: calc(var(--x) - 14px); top: calc(var(--y) - 14px); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; opacity: 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--lime-ink);
  background: var(--lime); box-shadow: 0 8px 18px rgba(4, 8, 7, 0.5);
}
.film-pins li::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--lime); animation: pin-ring 2.6s ease-out infinite; }
@keyframes pin-ring { from { transform: scale(0.8); opacity: 0.85; } to { transform: scale(1.9); opacity: 0; } }
.film-chip {
  position: absolute; z-index: 3; margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--lime-ink); background: rgba(241, 246, 238, 0.92);
  opacity: calc(1 - var(--open, 0) * 2.4); pointer-events: none;
}
.film-chip[hidden] { display: none; }
.film-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.film-note {
  position: absolute; z-index: 3; margin: 0; pointer-events: none; text-align: right;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  opacity: var(--settled, 0);
}

/* text plane: the two copy blocks share the left column and trade places as the scroll goes on.
   The inner .lead-copy is the engine's cue (it sets opacity, a small rise and pointer-events),
   so the outer column does the positioning. */
.lead-col { position: absolute; z-index: 3; left: var(--pad); top: var(--header-h); bottom: 96px; display: flex; align-items: center; pointer-events: none; }
.lead-col-a { width: min(36vw, 560px); }
.lead-col-b { width: clamp(280px, 23vw, 360px); }
.lead-copy { width: 100%; }
#lead-copy-b { opacity: 0; }
.lead-copy .kicker { margin-bottom: clamp(16px, 2.6vh, 32px); }
#lead-copy-a .kicker { color: var(--green); }
.lead-copy h1, .lead-copy h2 { font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; text-transform: uppercase; margin-left: -0.045em; }
.lead-copy h1 { font-size: clamp(64px, 10.6vw, 204px); }
.lead-copy h2 { font-size: clamp(52px, 6.3vw, 120px); }
.lead-copy em { color: var(--green); }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 4.6vh, 54px); }
.lead-actions .pill { min-height: 52px; padding: 0 22px; font-size: 15px; }
.lead-model {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.lead-model[hidden] { display: none; }
.lead-model a { color: var(--ink); border-bottom: 1px solid rgba(25, 35, 27, 0.35); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.lead-model a:hover { color: var(--green); border-color: var(--green); }
#lead-copy-b .pill { margin-top: clamp(18px, 3vh, 32px); min-height: 50px; padding: 0 20px; font-size: 14.5px; }

.callouts { display: grid; margin-top: clamp(18px, 3vh, 34px); }
.callouts li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; opacity: 0;
  padding: clamp(9px, 1.4vh, 14px) 0; border-top: 1px solid var(--line);
}
.callout-index { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--green); padding-top: 4px; }
.callouts h3 { font-size: clamp(16px, 1.25vw, 20px); font-weight: 600; letter-spacing: -0.02em; }
.callouts p { font-size: clamp(13px, 0.95vw, 15px); color: var(--ink-soft); line-height: 1.42; margin-top: 2px; }

/* along the bottom: where this is, and a line that runs the length of the act */
.lead-hud {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(18px, 3.4vh, 36px); pointer-events: none;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 90px);
}
.hud-place { font-size: 13.5px; font-weight: 650; letter-spacing: 0.06em; line-height: 1.2; }
.hud-place small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-soft); }
.route { position: relative; height: 38px; --p: 0; }
.route-line { position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(25, 35, 27, 0.16); }
.route-line i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--green); }
.route-stop {
  position: absolute; top: 0; left: calc(var(--at) * 100%); transform: translateX(calc(var(--at) * -100%));
  padding-top: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; white-space: nowrap;
  color: rgba(25, 35, 27, 0.45); transition: color 0.4s ease;
}
.route-stop::before {
  content: ''; position: absolute; top: 1px; left: calc(var(--at) * 100%); width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(25, 35, 27, 0.4); transition: background 0.4s, border-color 0.4s;
}
.route-stop.is-on { color: var(--ink); }
.route-stop.is-on::before { background: var(--green); border-color: var(--green); }

#lead-root + .sheet { box-shadow: 0 -18px 50px rgba(16, 30, 18, 0.07); }
@media (prefers-reduced-motion: reduce) {
  /* The film holds still here, so there are only two states to see: one screen of scroll is
     enough. The engine sets the height inline from data-sc-span and measures it back, hence !important. */
  .lead { height: 220vh !important; }
}
/* phones: headline and buttons on top, the card under them; open, the film spans the screen
   under the header and the named parts follow below it */
@media (max-width: 820px), (max-aspect-ratio: 85 / 100) {
  .lead-stage { background: radial-gradient(120% 60% at 50% 64%, #f1f6ea 0%, #fff 70%); }
  .film { left: var(--pad); top: 47%; width: calc(100% - 2 * var(--pad)); height: calc(53% - 18px); }
  .lead-col { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--header-h) + 14px); bottom: auto; display: block; }
  .lead-col-b { top: var(--b-top, 47%); }
  .lead-copy .kicker { margin-bottom: 12px; }
  .lead-copy h1 { font-size: clamp(56px, 21vw, 128px); }
  .lead-copy h2 { font-size: clamp(36px, 10.6vw, 64px); line-height: 0.9; }
  .lead-copy h2 br { display: none; }
  .lead-actions { margin-top: 18px; gap: 8px; }
  .lead-actions .pill { flex: 1 1 100%; justify-content: center; min-height: 46px; }
  .lead-model { margin-top: 12px; font-size: 10.5px; }
  .callouts { margin-top: 12px; }
  .callouts li { padding: 8px 0; gap: 12px; }
  .callouts p { display: none; }
  #lead-copy-b .pill { margin-top: 14px; width: 100%; justify-content: center; min-height: 46px; }
  .lead-hud { display: none; }
  .film-note { text-align: left; font-size: 9.5px; }
  .film-pins li { left: calc(var(--x) - 11px); top: calc(var(--y) - 11px); width: 22px; height: 22px; font-size: 9px; }
  .film-pins li::after { inset: -4px; }
}

/* ---------- Floating quote button ---------- */
.quote-fab {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2.4vh, 28px); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink); font-size: 15px; font-weight: 600;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16, 18, 16, 0.08);
  /* parked below the screen, and out of the tab order while it is there */
  transform: translateY(160%); visibility: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.3s, visibility 0s linear 0.5s;
}
.quote-fab.is-on { transform: none; visibility: visible; transition: transform 0.5s var(--ease), box-shadow 0.3s, visibility 0s; }
.quote-fab:hover { box-shadow: 0 22px 46px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(16, 18, 16, 0.12); }
@media (max-width: 560px) {
  .quote-fab { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .quote-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Manifesto ---------- */
.manifesto { background: #fff; padding: clamp(110px, 19vh, 230px) 0 clamp(90px, 15vh, 190px); overflow: clip; }
.manifesto-title {
  margin-top: clamp(22px, 3.4vh, 44px);
  font-size: clamp(34px, 12.2vw, 236px); font-weight: 800; letter-spacing: -0.062em; line-height: 0.84; text-transform: uppercase;
  white-space: nowrap;
  perspective: 1100px; perspective-origin: 50% 60%;
}
.fold-line { display: block; --t: 0; }
.fold-line > span {
  display: inline-block; transform-origin: 50% 100%; backface-visibility: hidden;
  transform: translate3d(calc((1 - var(--t)) * var(--from, -16vw)), 0, 0) rotateX(calc((1 - var(--t)) * -82deg));
  opacity: calc(0.08 + 0.92 * var(--t));
  will-change: transform, opacity;
}
.fold-line:nth-child(2) { text-align: right; color: var(--green); --from: 16vw; }
.manifesto-body { margin: clamp(44px, 8vh, 96px) 0 0 auto; width: min(100%, 520px); display: grid; gap: 28px; justify-items: start; }
.manifesto-body p { font-size: clamp(18px, 1.55vw, 25px); line-height: 1.36; letter-spacing: -0.012em; }

/* ---------- 3D cards ---------- */
.card { position: relative; perspective: 1500px; --rx: 0deg; --ry: 0deg; --flip: 0deg; --mx: 50%; --my: 0%; --glare: 0; --lift: 0; }
/* Two nested turntables: the outer one leans toward the pointer, the inner one turns the card
   over. Keeping them apart lets the lean follow the mouse quickly while the turn stays slow. */
.card-inner {
  position: relative; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(calc(var(--lift) * 18px));
  transition: transform 0.75s var(--ease-out);
}
.card.is-tilting .card-inner { transition: transform 0.14s linear; }
.card-turn {
  position: relative; height: 100%; transform-style: preserve-3d;
  transform: rotateY(var(--flip));
  transition: transform 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.card.is-flipped { --flip: 180deg; }
.card-face { border-radius: var(--radius); transform-style: preserve-3d; }
/* every raised layer is its own plane in 3D, so each one hides its own reverse side */
.card-face, .card-face > *, .card-back::after { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-front {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: clamp(16px, 1.3vw, 22px);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 calc(24px + var(--lift) * 26px) calc(46px + var(--lift) * 40px) -30px rgba(18, 40, 22, calc(0.32 + var(--lift) * 0.22));
  transition: box-shadow 0.5s var(--ease);
}
.card-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-cap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); transform: translateZ(14px); }
.card-cap span:first-child { color: var(--ink); font-weight: 600; }
.card-media {
  position: relative; margin-top: 14px; aspect-ratio: 16 / 10.4; border-radius: calc(var(--radius) - 6px); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f1f4ee 58%, #e3e9de 100%);
  transform: translateZ(46px);
  box-shadow: 0 22px 32px -26px rgba(18, 40, 22, 0.6);
}
.card-media img {
  width: 100%; height: 100%;
  transform: translate3d(calc(var(--tx, 0) * -16px), calc(var(--ty, 0) * -12px), 0) scale(1.07);
  transition: transform 0.9s var(--ease-out);
}
.card.is-tilting .card-media img { transition: transform 0.14s linear; }
.card[data-media='scene'] .card-media img { object-fit: cover; }
.card[data-media='product'] .card-media img { object-fit: contain; padding: 5% 7%; mix-blend-mode: multiply; }
.card-media.is-missing { display: grid; place-items: center; }
.card-media.is-missing::after { content: attr(data-name); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.card-media.is-missing img { display: none; }
.card-body { flex: 1; margin-top: 20px; transform: translateZ(26px); }
.card-type { font-size: 13.5px; color: var(--ink-soft); }
.card-body h3 { margin-top: 4px; font-size: clamp(24px, 2.05vw, 34px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.06; }
.card-text { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.card-foot {
  position: relative; margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateZ(18px);
}
.card-foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
/* the raised layers sit in front of the stretched link in 3D, so let clicks fall through them */
.card-face > :not(.card-hit) { pointer-events: none; }
.card-front .card-flip, .card-back .card-close, .card-back .pill { pointer-events: auto; }
.card-price { font-size: 15.5px; font-weight: 550; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.card-flip {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 550;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.card-flip svg { transition: transform 0.6s var(--ease); }
.card-flip:hover { background: var(--lime); color: var(--lime-ink); }
.card-flip:hover svg { transform: rotate(180deg); }
.card-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 52%);
  opacity: var(--glare); mix-blend-mode: soft-light; transition: opacity 0.4s ease;
}

/* The reverse side: the dark green specification sheet of the live site's cards, with lime for
   its small heading and its button. (It was lime until 14 November 2026, when Mikael asked for
   the live site's dark green, first on the cars page and then on every page.) */
.card-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(18px, 1.5vw, 26px);
  transform: rotateY(180deg);
  background: #173c27; color: #fff;
  box-shadow: 0 calc(24px + var(--lift) * 26px) calc(46px + var(--lift) * 40px) -30px rgba(9, 32, 19, calc(0.6 + var(--lift) * 0.2));
}
/* a soft sheen under the pointer; mirrored because this side faces the other way */
.card-back::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(480px circle at calc(100% - var(--mx)) var(--my), rgba(187, 239, 85, 0.2), rgba(187, 239, 85, 0) 56%);
  opacity: var(--glare); transition: opacity 0.4s ease;
}
.card-back .card-cap { align-items: center; letter-spacing: 0.09em; }
.card-back .card-cap, .card-back .card-cap span { color: var(--lime); }
.card-close { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); color: #fff; transition: background 0.25s, color 0.25s, transform 0.4s var(--ease); }
.card-close:hover { background: #fff; color: #173c27; transform: rotate(90deg); }
.card-back :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.card-back h3 { margin-top: clamp(8px, 1vw, 16px); font-size: clamp(22px, 1.9vw, 30px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.06; transform: translateZ(26px); }
.card-back dl { margin-top: clamp(6px, 0.8vw, 13px); transform: translateZ(14px); }
.card-back dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: clamp(6px, 0.62vw, 10px) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 13.5px; line-height: 1.3; }
.card-back dt { flex: none; color: rgba(255, 255, 255, 0.72); }
.card-back dd { text-align: right; font-weight: 550; }
.card-back .fine { margin: 10px 0; color: rgba(255, 255, 255, 0.66); font-size: 12px; }
.card-back .pill { position: relative; z-index: 2; margin-top: auto; width: 100%; justify-content: space-between; min-height: 46px; padding: 0 20px; font-size: 14px; transform: translateZ(30px); }
.card-back .pill:hover { transform: translateZ(30px) translateY(-2px); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.9vw, 30px); }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Lineup ---------- */
.lineup { background: #fff; padding: clamp(80px, 12vh, 150px) 0 clamp(70px, 10vh, 130px); }
.lineup .card-grid { margin-top: clamp(34px, 5vh, 64px); }
.lineup .fine { margin-top: 26px; }
.category-index { margin-top: clamp(40px, 6vh, 70px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 40px); perspective: 900px; }
.category-index a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px;
  border-top: 1px solid var(--ink); font-size: clamp(20px, 1.9vw, 30px); font-weight: 550; letter-spacing: -0.03em;
  transform-origin: 50% 0; transition: transform 0.5s var(--ease), color 0.25s, padding 0.4s var(--ease);
}
.category-index a:hover { color: var(--green); padding-left: 14px; transform: rotateX(-8deg); }
@media (max-width: 720px) { .category-index { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 360 showroom ---------- */
.showroom { background: var(--mist); padding: clamp(80px, 12vh, 150px) 0; }
.showroom .section-head h2 em { color: var(--green); }
.showroom-lead { max-width: 28ch; font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-soft); line-height: 1.4; }
.showroom .fine { margin-top: 22px; }
.spin { margin-top: clamp(30px, 5vh, 56px); display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: clamp(16px, 2vw, 34px); align-items: stretch; }
.spin-stage {
  position: relative; aspect-ratio: 1280 / 722; border-radius: clamp(20px, 2.2vw, 34px); overflow: hidden;
  background: #eceef1; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none;
  box-shadow: 0 60px 90px -60px rgba(18, 40, 22, 0.6), 0 0 0 1px rgba(25, 35, 27, 0.06);
}
.spin-stage.is-dragging { cursor: grabbing; }
.spin-stage video, .spin-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.spin-poster { transition: opacity 0.5s ease; }
.spin-stage.is-ready .spin-poster { opacity: 0; }
.spin-badge {
  position: absolute; left: clamp(12px, 1.4vw, 22px); top: clamp(12px, 1.4vw, 22px);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink);
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(25, 35, 27, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.spin-badge svg { color: var(--green); animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(24deg); } }
.spin-loading {
  position: absolute; left: 50%; bottom: clamp(12px, 1.6vw, 22px); transform: translateX(-50%); padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.82); transition: opacity 0.4s ease;
}
.spin-stage.is-ready .spin-loading { opacity: 0; }
/* a small angle dial, drawn in perspective so it reads as lying on the floor */
.spin-dial { position: absolute; right: clamp(12px, 1.6vw, 24px); bottom: clamp(4px, 0.8vw, 12px); display: flex; align-items: center; gap: 4px; pointer-events: none; }
.dial-ring {
  width: clamp(64px, 6.4vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background:
    conic-gradient(from -9deg, var(--green) 0 18deg, transparent 18deg),
    repeating-conic-gradient(from -0.7deg, rgba(25, 35, 27, 0.6) 0 1.4deg, transparent 1.4deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 74% 97%, transparent 99%);
  mask: radial-gradient(closest-side, transparent 72%, #000 74% 97%, transparent 99%);
  transform: perspective(420px) rotateX(62deg) rotateZ(var(--a, 0deg));
}
.dial-read { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink); min-width: 4ch; }
/* the stage takes its height from its own shape; the info panel beside it stretches to match */
.spin-stage { align-self: start; }
.spin-info {
  display: flex; flex-direction: column; gap: 4px; padding: clamp(18px, 1.9vw, 30px); border-radius: var(--radius); min-width: 0;
  background: radial-gradient(130% 90% at 90% 0%, #1d3a23 0%, #0d1811 55%, #070c09 100%); color: var(--snow);
}
.spin-info .kicker { color: var(--lime); }
.spin-info h3 { margin-top: 6px; font-size: clamp(28px, 2.7vw, 46px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.02; }
.spin-type { font-size: 14.5px; color: var(--snow-soft); }
.spin-price { margin-top: auto; padding-top: 18px; font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.spin-info .pill { margin-top: 14px; align-self: flex-start; min-height: 48px; font-size: 14.5px; padding: 0 20px; }
/* model picker: one row under the stage */
.spin-models { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.spin-model {
  display: grid; gap: 1px; align-content: center; padding: 10px 13px; border-radius: 14px; text-align: left; min-width: 0;
  background: #fff; border: 1px solid var(--line);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.spin-model:hover { transform: translateY(-2px); border-color: var(--ink); }
.spin-model small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.spin-model b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spin-model[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); }
.spin-model[aria-pressed='true'] small { color: rgba(16, 18, 16, 0.7); }
@media (max-width: 1180px) {
  .spin-models { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .spin { grid-template-columns: minmax(0, 1fr); }
  .spin-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* on phones the models become one row of chips that scrolls sideways */
  .spin-models { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; scrollbar-width: none; }
  .spin-models::-webkit-scrollbar { display: none; }
  .spin-model { flex: none; min-width: 132px; }
  .spin-badge { font-size: 10px; padding: 7px 11px; }
}

/* ---------- Charging ---------- */
.charging { background: var(--mist); padding: clamp(90px, 15vh, 190px) 0; overflow: clip; }
.charging-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.charging-copy h2 { margin-top: 20px; font-size: clamp(46px, 6.2vw, 116px); font-weight: 800; letter-spacing: -0.058em; line-height: 0.86; }
.charging-copy h2 em { color: var(--green); }
.charging-copy > p:not(.kicker) { margin-top: 28px; font-size: clamp(17px, 1.3vw, 21px); color: var(--ink-soft); max-width: 34ch; line-height: 1.42; }
.charging-copy .pill { margin-top: 34px; }
.charging-stage { position: relative; perspective: 1400px; --t: 0; --px: 0; --py: 0; }
.charging-plate {
  position: relative; border-radius: clamp(20px, 2.2vw, 36px); overflow: hidden; background: #dfe6ea;
  transform: rotateY(calc((1 - var(--t)) * -24deg + var(--py) * 5deg)) rotateX(calc((1 - var(--t)) * 12deg + var(--px) * -4deg)) translate3d(calc((1 - var(--t)) * 9%), 0, 0);
  transform-origin: 0% 60%;
  box-shadow: calc(-30px + var(--py) * -16px) 60px 90px -50px rgba(14, 40, 30, 0.55), 0 0 0 1px rgba(25, 35, 27, 0.06);
  will-change: transform;
}
.charging-plate img { width: 100%; aspect-ratio: 1120 / 720; object-fit: cover; object-position: 30% 50%; transform: scale(calc(1.16 - var(--t) * 0.12)); }
.plate-glow { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 34%); opacity: calc(1 - var(--t) * 0.7); pointer-events: none; }
.depth-chip {
  position: absolute; z-index: 2; padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono); font-size: clamp(10.5px, 0.82vw, 13px); letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.86); color: var(--ink); border: 1px solid rgba(25, 35, 27, 0.1);
  box-shadow: 0 24px 40px -22px rgba(14, 40, 30, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: calc(var(--t) * 1.4 - 0.4);
  transform: translate3d(calc(var(--py) * var(--depth) * -1px), calc(var(--px) * var(--depth) * -1px + (1 - var(--t)) * 40px), 0);
}
.chip-1 { left: -3%; top: 12%; --depth: 22; }
.chip-2 { right: -2%; top: 44%; --depth: 38; background: var(--lime); border-color: transparent; }
.chip-3 { left: 12%; bottom: -4%; --depth: 30; background: var(--ink); color: #fff; }
/* live 3D model of home charging: replaces the photo plate and its chips once it has loaded */
.charging-canvas, .charging-labels { display: none; }
.charging-stage.is-live { aspect-ratio: 1.24; margin: -5% -8% -5% -6%; perspective: none; }
.charging-stage.is-live .charging-plate, .charging-stage.is-live .depth-chip { display: none; }
.charging-stage.is-live .charging-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.charging-stage.is-live .charging-labels { display: block; position: absolute; inset: 0; pointer-events: none; }
.charge-label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.5s ease; will-change: transform; }
.charge-label.is-on { opacity: 1; }
.charge-label::after { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(187, 239, 85, 0.6); }
.charge-stem { position: absolute; left: -0.5px; bottom: 5px; width: 1px; height: 24px; background: rgba(25, 35, 27, 0.5); transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.5s var(--ease); }
.charge-label.is-on .charge-stem { transform: none; }
.charge-label b {
  position: absolute; left: 0; bottom: 28px; display: inline-flex; align-items: center; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: clamp(10px, 0.78vw, 12.5px); font-weight: 500; letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 1px solid rgba(25, 35, 27, 0.1);
  box-shadow: 0 18px 30px -18px rgba(14, 40, 30, 0.55);
  transform: translate(var(--shift, -50%), 10px); transition: transform 0.6s var(--ease);
}
.charge-label.is-on b { transform: translate(var(--shift, -50%), 0); }
/* the charger and the car stand close together, so their chips lean away from each other */
.charge-label[data-key='charger'] b { --shift: -20%; }
.charge-label[data-key='car'] b { --shift: -82%; background: var(--lime); border-color: transparent; }
.charge-bars { display: inline-flex; gap: 3px; margin-left: 9px; }
.charge-bars i { width: 4px; height: 11px; border-radius: 1px; background: var(--ink); opacity: 0.2; animation: charge-bar 1.8s infinite; }
.charge-bars i:nth-child(2) { animation-delay: 0.22s; }
.charge-bars i:nth-child(3) { animation-delay: 0.44s; }
.charge-bars i:nth-child(4) { animation-delay: 0.66s; }
@keyframes charge-bar { 0%, 100% { opacity: 0.2; } 35%, 75% { opacity: 1; } }
.is-static .charge-bars i { animation: none; opacity: 1; }
@media (max-width: 900px) {
  .charging-layout { grid-template-columns: minmax(0, 1fr); }
  .chip-1 { left: 2%; } .chip-2 { right: 2%; }
  .charging-stage.is-live { margin: 0 -5%; }
}
/* on phones the model is small, so its chips shrink with it */
@media (max-width: 560px) {
  .charge-label b { padding: 6px 10px; font-size: 9px; letter-spacing: 0.12em; bottom: 22px; }
  .charge-stem { height: 18px; }
  .charge-bars i { width: 3px; height: 9px; }
}

/* ---------- Journey (globe) ---------- */
/* four short steps: shorter than the lead, like the 3D story above */
.journey { position: relative; height: 350vh; background: var(--night); color: var(--snow); }
.journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 8, 7, 0.86) 0%, rgba(4, 8, 7, 0.4) 36%, rgba(4, 8, 7, 0) 60%), linear-gradient(0deg, rgba(4, 8, 7, 0.7), rgba(4, 8, 7, 0) 22%);
}
.journey-copy { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(520px, 44vw); }
.journey-copy h2 { margin-top: 18px; font-size: clamp(44px, 5.6vw, 104px); font-weight: 800; letter-spacing: -0.058em; line-height: 0.86; }
.journey-copy h2 em { color: var(--lime); }
.steps { position: relative; margin-top: clamp(26px, 4.6vh, 54px); display: grid; gap: 0; --q: 0; }
.steps::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--night-line); }
.steps::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--q) * 100%); background: var(--lime); box-shadow: 0 0 12px rgba(187, 239, 85, 0.9); }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: clamp(10px, 1.7vh, 18px) 0 clamp(10px, 1.7vh, 18px) 26px;
  opacity: 0.34; transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.steps li > span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; padding-top: 5px; color: var(--snow-soft); transition: color 0.4s; }
.steps h3 { font-size: clamp(19px, 1.6vw, 26px); font-weight: 600; letter-spacing: -0.025em; }
.steps p { display: grid; grid-template-rows: 0fr; font-size: clamp(14px, 1.02vw, 16px); color: var(--snow-soft); line-height: 1.44; transition: grid-template-rows 0.6s var(--ease), margin 0.6s var(--ease); max-width: 42ch; }
.steps p > span { overflow: hidden; }
.steps li.is-active { opacity: 1; transform: translateX(6px); }
.steps li.is-active > span { color: var(--lime); }
.steps li.is-active p { grid-template-rows: 1fr; margin-top: 6px; }
.steps li.is-done { opacity: 0.62; }
.journey-caption { margin-top: clamp(20px, 3.4vh, 40px); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--snow-soft); line-height: 1.7; }
.journey-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.city-label {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: clamp(10px, 0.8vw, 12.5px); font-weight: 500; letter-spacing: 0.14em; color: var(--snow);
  background: rgba(4, 8, 7, 0.78); border: 1px solid rgba(187, 239, 85, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.5s ease; will-change: transform;
}
.city-label.is-on { opacity: 1; }
/* the region name sits above its patch of the globe on a short stem */
.city-label.is-region { color: var(--lime-ink); background: var(--lime); border-color: transparent; font-weight: 600; }
.city-label.is-region::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--lime); }
/* without WebGL the journey is a plain list on the dark background */
.no-webgl .journey, .journey.is-plain { height: auto; }
.no-webgl .journey + .sheet, .journey.is-plain + .sheet { margin-top: calc(-1 * var(--sheet-radius)); box-shadow: none; }
.no-webgl .journey-stage, .is-plain .journey-stage { position: relative; height: auto; padding: clamp(90px, 14vh, 170px) 0; }
.no-webgl .journey-canvas, .no-webgl .journey-labels, .is-plain .journey-canvas, .is-plain .journey-labels { display: none; }
.no-webgl .journey-copy, .is-plain .journey-copy { position: relative; top: auto; bottom: auto; transform: none; }
.no-webgl .steps li, .is-plain .steps li { opacity: 1; }
.no-webgl .steps p, .is-plain .steps p { grid-template-rows: 1fr; margin-top: 6px; }

/* ---------- Journal ---------- */
.journal { background: #fff; padding: clamp(90px, 14vh, 170px) 0 clamp(80px, 12vh, 150px); }
.journal .section-head h2 { font-size: clamp(42px, 5.6vw, 100px); font-weight: 800; letter-spacing: -0.058em; line-height: 0.88; text-transform: uppercase; }
.story-grid { margin-top: clamp(36px, 6vh, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 36px); }
.story { display: grid; gap: 16px; align-content: start; perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.story-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mist);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.7s var(--ease-out), box-shadow 0.5s var(--ease);
  box-shadow: 0 30px 50px -40px rgba(18, 40, 22, 0.5);
}
.story.is-tilting .story-media { transition: transform 0.14s linear, box-shadow 0.5s var(--ease); }
.story:hover .story-media { box-shadow: 0 46px 70px -42px rgba(18, 40, 22, 0.7); }
.story-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(calc(var(--tx, 0) * -14px), calc(var(--ty, 0) * -10px), 0) scale(1.06);
  transition: transform 0.9s var(--ease-out);
}
.story.is-tilting .story-media img { transition: transform 0.14s linear; }
.story[data-fit='contain'] .story-media img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.story[data-fit='dark'] .story-media { background: radial-gradient(120% 100% at 50% 100%, #1b3a24, #0a130d); }
.story[data-fit='dark'] .story-media img { object-fit: contain; padding: 6%; }
.story-go { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); transform: scale(0.4) rotate(-45deg); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.3s; }
.story:hover .story-go, .story:focus-visible .story-go { transform: none; opacity: 1; }
.story h3 { font-size: clamp(20px, 1.7vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.16; }
@media (max-width: 900px) { .story-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing ---------- */
.closing { position: relative; background: var(--lime); color: var(--lime-ink); padding: clamp(100px, 17vh, 220px) 0 clamp(70px, 11vh, 140px); overflow: clip; }
.closing-link { display: block; margin-top: clamp(20px, 3vh, 40px); perspective: 1200px; --rx: 0deg; --ry: 0deg; --t: 0; }
.deep {
  display: block; position: relative; width: fit-content;
  font-size: clamp(60px, 15.4vw, 300px); font-weight: 800; letter-spacing: -0.065em; line-height: 0.82; text-transform: uppercase;
  transform-origin: 50% 80%;
  transform: rotateX(calc(var(--rx) + (1 - var(--t)) * 42deg)) rotateY(var(--ry)) translate3d(0, calc((1 - var(--t)) * 26%), 0);
  transition: transform 0.7s var(--ease-out);
  /* stacked shadows give the letters a solid, extruded side */
  text-shadow:
    0.005em 0.005em 0 #86b830, 0.01em 0.01em 0 #84b62f, 0.015em 0.015em 0 #82b32e, 0.02em 0.02em 0 #7fb02c,
    0.025em 0.025em 0 #7dad2b, 0.03em 0.03em 0 #7aaa29, 0.035em 0.035em 0 #78a728, 0.04em 0.04em 0 #75a426,
    0.045em 0.045em 0 #73a125, 0.05em 0.05em 0 #709e23, 0.055em 0.055em 0 #6e9b22, 0.06em 0.06em 0 #6b9820,
    0.12em 0.16em 0.2em rgba(40, 70, 10, 0.35);
}
.closing-link.is-tilting .deep { transition: transform 0.14s linear; }
.deep-alt { color: var(--green-deep); margin-left: auto; }
.closing-link:hover .deep { transform: rotateX(var(--rx)) rotateY(var(--ry)) translate3d(-4px, -4px, 0); }
.closing-foot { margin-top: clamp(40px, 7vh, 90px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.closing-foot p { font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--snow-soft); padding: clamp(46px, 7vh, 80px) 0 clamp(30px, 4vh, 46px); font-size: 14.5px; }
.footer-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px clamp(30px, 6vw, 110px); align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--snow); opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--lime); }
.footer-place { text-align: right; line-height: 1.6; }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--night-line); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; }
@media (max-width: 860px) {
  .footer-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-place { text-align: left; }
}

.noscript-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; padding: 14px 18px; border-radius: 14px; background: var(--lime); color: var(--lime-ink); font-size: 14.5px; }
.noscript-note a { text-decoration: underline; }

/* ---------- Small screens ---------- */
@media (max-width: 820px), (max-aspect-ratio: 85 / 100) {
  :root { --header-h: 66px; }
  .journey-stage::after { background: linear-gradient(180deg, rgba(4, 8, 7, 0.9) 0%, rgba(4, 8, 7, 0.2) 38%, rgba(4, 8, 7, 0) 52%), linear-gradient(0deg, rgba(4, 8, 7, 0.94) 0%, rgba(4, 8, 7, 0.6) 26%, rgba(4, 8, 7, 0) 46%); }
  .journey-copy { top: calc(var(--header-h) + 2vh); bottom: 26px; transform: none; width: calc(100% - 2 * var(--pad)); display: flex; flex-direction: column; }
  .journey-copy h2 { font-size: clamp(40px, 12.4vw, 86px); }
  .steps { margin-top: auto; }
  .steps li { padding: 7px 0 7px 20px; }
  .steps li:not(.is-active) h3 { font-size: 15px; }
  .journey-caption { display: none; }
}
/* the city names need room: tighter on medium screens */
@media (max-width: 1040px) {
  .route-stop { letter-spacing: 0.1em; }
}
/* very narrow screens and split panes: smaller mark, icon-only menu button */
@media (max-width: 420px) {
  .brand svg { height: 32px; }
  .site-header { gap: 12px; }
}
@media (max-width: 340px) {
  .menu-button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lead-copy h1 { font-size: clamp(46px, 21vw, 128px); }
}

/* ---------- Motion preferences ---------- */
/* Reduced motion: the globe stage becomes one still frame in normal page flow. The extra
   padding keeps the next sheet's rounded shoulders from covering the stage's last line. */
.is-static .journey { height: auto; padding-bottom: var(--sheet-radius); }
.is-static .journey + .sheet { margin-top: calc(-1 * var(--sheet-radius)); box-shadow: none; }
.is-static .journey-stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.is-static .journey-copy { position: relative; top: auto; bottom: auto; transform: none; margin-left: var(--pad); }
.is-static .steps li { opacity: 1; }
.is-static .steps p { grid-template-rows: 1fr; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) {
  /* no transitions at all (rather than very short ones), so every change lands in the same frame it is made */
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .fold-line > span { transform: none; opacity: 1; }
  .deep { transform: none; }
  .charging-plate { transform: none; }
  .depth-chip { opacity: 1; transform: none; }
  .charge-bars i { opacity: 1; }
}
