/*
 * IDrive Autonomy - index-new.html styles
 * All 18 stylesheets combined in their original cascade order.
 * Relative asset URLs are based on this file's include/css location.
 * Original stylesheets are retained for other pages. Keep this bundle in sync
 * with any future source changes; theme and responsive overrides remain last.
 * Page-specific container spacing is maintained in the responsive section.
 */

/* ========================================================================== 
   01. Fonts
   Source: fonts.css
   ========================================================================== */

/* Developed by DeeKay */
/* Self-hosted Geist + Geist Mono variable fonts (SIL OFL 1.1). */
@font-face {
  font-family: "Geist";
  src: url("../../assets/fonts/geist-variable-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../../assets/fonts/geist-mono-variable-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ========================================================================== 
   02. Tokens
   Source: tokens.css
   ========================================================================== */

:root,
[data-theme="dark"],
/* panels the scripts build, so they cannot carry the attribute: dark in both themes */
:root[data-theme="light"] :is(.rd-in, .rd-core, .s-hw .receipt) {
  /* Surfaces */
  --bg: #05070a;
  --bg-rgb: 5, 7, 10;
  --w-rgb: 255, 255, 255; /* ink for hairlines, glass and washes: white on dark, near-black on light */
  --surface: #0b0f14;
  --surface-2: #10161d;
  --surface-3: #151c25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);

  /* Text */
  --text: #e8edf2;
  --text-rgb: 232, 237, 242;
  --muted: #8a96a3;
  --dim: #3b4652;

  /* Signal colours. #016795 is the brand base: buttons (white text 6.2:1), fills, large shapes and the
     body of glows. It is ~3.2:1 on --bg, so strokes, glows and small text use brighter tints of the
     same hue (~199°). Violet is the secondary (tracked objects, radar, predictions, Stage 2).
     js/lib/palette.js mirrors these for the scenes. */
  --brand: #016795;
  --brand-rgb: 1, 103, 149;
  --accent: #0fa3e6;
  --accent-rgb: 15, 163, 230;
  --accent-text: #58c0ee;
  --accent-text-rgb: 88, 192, 238;
  --accent-pale: #bde7fa;
  --violet: #9d8cff;
  --violet-rgb: 157, 140, 255;
  --amber: #ffb547;
  --amber-rgb: 255, 181, 71;
  --red: #ff4d5e;
  --red-rgb: 255, 77, 94;

  /* Dawn (future / aspirational beats) */
  --dawn-1: #1a1433;
  --dawn-2: #4a2a5e;
  --dawn-3: #c4506a;
  --dawn-4: #ff8a5c;
  --dawn-5: #ffc98b;
  --dawn: linear-gradient(180deg, #0a0c1a 0%, var(--dawn-1) 30%, var(--dawn-2) 55%, var(--dawn-3) 75%, var(--dawn-4) 90%, var(--dawn-5) 100%);

  /* Type */
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale anchored to the original site's hero (h1 44.8px at 1440, 25.6px at 390) and section
     headings (48px at 1440); each clamp is linear between the 390 and 1440 measurements. */
  --fs-hero: clamp(25.6px, calc(18.47px + 1.8286vw), 44.8px);
  --fs-hero-sub: clamp(13.12px, calc(11.337px + 0.4571vw), 17.92px);
  --fs-display: clamp(28px, calc(20px + 2.1vw), 50px);
  --fs-h2: clamp(28px, calc(20.6px + 1.9vw), 48px);
  --fs-h2-sm: clamp(24px, calc(17.9px + 1.55vw), 40px);
  --fs-h3: clamp(19px, calc(16.4px + 0.65vw), 26px);
  --fs-lede: clamp(16px, calc(13.6px + 0.6vw), 19px);
  --fs-body: clamp(17px, 1.2vw, 19px);
  --fs-small: 15px;
  --fs-label: 11px;
  --fs-label-lg: 12px;

  --tracking-display: -0.03em;
  --tracking-h2: -0.025em;
  --tracking-label: 0.16em;

  /* Layout */
  --maxw: 94%;
  --gutter: clamp(20px, 5vw, 80px);
  --container-inset: 3%;
  --nav-h: 68px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-pad: clamp(96px, 14vh, 180px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;

  /* Layers */
  --z-scene: 1;
  --z-content: 5;
  --z-hud: 40;
  --z-nav: 50;
  --z-modal: 100;

  color-scheme: dark;
}

/* Light theme. Same hue family; the brand blue carries the accent (6:1 on --bg), so --accent and
   --accent-text darken instead of brighten. Sections that sit on film or WebGL (hero, pixels to pedals,
   the final CTA, the in-car display) keep data-theme="dark" so their imagery never changes. */
:root[data-theme="light"] {
  --bg: #f3f6f9;
  --bg-rgb: 243, 246, 249;
  --w-rgb: 8, 16, 24;
  --surface: #ffffff;
  --surface-2: #eaeff4;
  --surface-3: #dfe6ed;
  --line: rgba(8, 16, 24, 0.1);
  --line-2: rgba(8, 16, 24, 0.17);
  --line-3: rgba(8, 16, 24, 0.26);

  --text: #0b141c;
  --text-rgb: 11, 20, 28;
  --muted: #4e5b68;
  --dim: #b3bec9;

  --brand: #016795;
  --brand-rgb: 1, 103, 149;
  --accent: #0a7cb0;
  --accent-rgb: 10, 124, 176;
  --accent-text: #015f8a;
  --accent-text-rgb: 1, 95, 138;
  --accent-pale: #0b4663;
  --violet: #5a49d6;
  --violet-rgb: 90, 73, 214;
  --amber: #a85f00;
  --amber-rgb: 168, 95, 0;
  --red: #cf2438;
  --red-rgb: 207, 36, 56;

  color-scheme: light;
}

/* ========================================================================== 
   03. Base
   Source: base.css
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

svg {
  overflow: visible;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
  color: #fff;
}

/* Lenis ------------------------------------------------------------------ */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

/* Focus ------------------------------------------------------------------ */
:focus {
  outline: none;
}

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

/* Programmatic focus targets (sections, headings) never show a ring */
[tabindex="-1"]:focus {
  outline: none;
}

/* SVG telemetry text */
.svg-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-modal) + 1);
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* Typography --------------------------------------------------------------- */
.display {
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: var(--tracking-h2);
  line-height: 1.04;
  text-wrap: balance;
}

.h2--sm {
  font-size: var(--fs-h2-sm);
  line-height: 1.08;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
  text-wrap: pretty;
}

.body {
  font-size: var(--fs-body);
  color: var(--muted);
  text-wrap: pretty;
}

.mono,
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.4;
}

.label--lg {
  font-size: var(--fs-label-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-text);
  line-height: 1.4;
}

/* Marker: a small accent dot (not a rule, so nothing reads as a dash) */
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.eyebrow--muted {
  color: var(--muted);
}

.eyebrow--amber {
  color: var(--amber);
}

.text-accent {
  color: var(--accent-text);
}

.text-muted {
  color: var(--muted);
}

/* SplitText masks: keep descenders (g, y, commas) visible inside line masks */
.line-mask {
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

/* Layout ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
}

.section-pad {
  padding-block: var(--section-pad);
}

.pin {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

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

/* Faint engineering grid behind diagrams */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--w-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--w-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(rgba(var(--w-rgb), 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--w-rgb), 0.018) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 100%);
}

/* Boot: hide elements that the intro animates in, with a CSS timeout fallback */
.is-booting [data-boot] {
  visibility: hidden;
}

/* Reduced motion: no CSS loops either */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* ========================================================================== 
   04. Components
   Source: components.css
   ========================================================================== */

/* Buttons ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-text-rgb), 0.35), 0 0 0 0 rgba(var(--accent-rgb), 0), 0 10px 40px -12px rgba(var(--accent-rgb), 0.6);
}

.btn-primary:hover {
  background: #0177ad;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-text-rgb), 0.55), 0 0 0 4px rgba(var(--accent-rgb), 0.18), 0 14px 50px -12px rgba(var(--accent-rgb), 0.75);
}

.btn-ghost {
  color: var(--text);
  background: rgba(var(--w-rgb), 0.03);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(var(--w-rgb), 0.07);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Chips -------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(var(--w-rgb), 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}

.chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}

.chip strong {
  font-weight: 500;
  color: var(--text);
}

.chip.is-active {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.06);
}

.chip.is-active .chip-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9);
}

.chip--amber {
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(var(--amber-rgb), 0.4);
  background: rgba(var(--amber-rgb), 0.06);
}

.chip--violet {
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb), 0.4);
  background: rgba(var(--violet-rgb), 0.06);
}

/* Live status dot */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: status-pulse 2s var(--ease-out) infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* HUD frame: corner brackets drawn with background layers ------------------ */
.hud-frame {
  position: relative;
}

.hud-frame::before {
  --c: rgba(var(--w-rgb), 0.32);
  --l: 16px;
  --w: 1px;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}

.hud-frame--accent::before {
  --c: rgba(var(--accent-rgb), 0.7);
}

.hud-frame--lg::before {
  --l: 24px;
}

/* Panel surface used by diagrams/cards */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--w-rgb), 0.025), rgba(var(--w-rgb), 0.008));
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
}

/* Telemetry readouts */
.telemetry {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.telemetry dt {
  opacity: 0.8;
}

.telemetry dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* Nav ---------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  transition: transform 0.55s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--bg-rgb), 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}

.nav.is-scrolled::before {
  opacity: 1;
}

/* The bar stays put while scrolling (it used to slide away on scroll down; the script still toggles
   .is-hidden, which now does nothing). */
.nav.is-hidden {
  transform: none;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* The client's "IDrive® AUTONOMY" logo, sized as on the original site (236x36 desktop, 170x26 mobile) */
.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: #fff;
}

.wordmark-logo {
  display: block;
  height: 36px;
  width: auto;
  aspect-ratio: 590 / 90;
  fill: currentColor;
}

@media (max-width: 767.98px) {
  .wordmark-logo {
    height: 26px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(var(--w-rgb), 0.05);
}

/* Over the hero film (top of the page, before the glass state): near-white links, as on the original */
.nav:not(.is-scrolled) .nav-links a {
  color: #f2f5f8;
}

.nav-links a.is-current {
  color: var(--text);
}

.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  align-items: center;
  justify-content: center;
}

.nav-menu-btn span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}

.nav-menu-btn span::before,
.nav-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out);
}

.nav-menu-btn span::before {
  transform: translateY(-5px);
}

.nav-menu-btn span::after {
  transform: translateY(5px);
}

.nav.is-open .nav-menu-btn span {
  background: transparent;
}

.nav.is-open .nav-menu-btn span::before {
  transform: rotate(45deg);
}

.nav.is-open .nav-menu-btn span::after {
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(11, 15, 20, 0.96);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0s 0.3s;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s, transform 0.4s var(--ease-out);
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 17px;
  }

  .nav-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 0 12px;
    font-size: 13.5px;
  }
}

/* Persistent mini HUD (route progress) ------------------------------------- */
.hud-mini {
  position: fixed;
  left: calc(var(--container-inset, 0%) + max(var(--gutter), env(safe-area-inset-left)));
  bottom: 20px;
  z-index: var(--z-hud);
  width: 248px;
  padding: 12px 14px 12px;
  border-radius: 12px;
  background: rgba(var(--bg-rgb), 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  /* steps aside quickly when copy arrives (hud.js), returns gently */
  transition: opacity 0.15s, transform 0.6s var(--ease-out);
}

.hud-mini.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}

.hud-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hud-mini-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.hud-mini-status .status-dot {
  width: 5px;
  height: 5px;
}

.hud-mini-route {
  display: block;
  width: 100%;
  height: 26px;
}

.hud-mini-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 8.5px;
}

@media (max-width: 767.98px) {
  .hud-mini {
    display: none;
  }
}

/* Back to top -------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: max(16px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: var(--z-hud);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(var(--bg-rgb), 0.64);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.6), 0 10px 28px -14px rgba(0, 0, 0, 0.85);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  /* steps aside quickly when copy arrives (toTop.js), returns gently */
  transition: opacity 0.15s, visibility 0s linear 0.15s, transform 0.5s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s, visibility 0s, transform 0.5s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
}

.to-top:hover {
  background-color: rgba(var(--brand-rgb), 0.34);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.95), 0 0 22px rgba(var(--accent-rgb), 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.85);
}

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.95), 0 0 22px rgba(var(--accent-rgb), 0.4);
}

.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.to-top-track {
  fill: none;
  stroke: rgba(var(--w-rgb), 0.08);
  stroke-width: 1.5;
}

.to-top-prog {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke 0.25s;
}

.to-top:hover .to-top-prog,
.to-top:focus-visible .to-top-prog {
  stroke: var(--accent);
}

.to-top-arrow {
  position: relative;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the quick fade that covers the jump back to the top */
.to-top-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease-out;
}

.to-top-veil.is-on {
  opacity: 1;
  transition-duration: 0.18s;
}

/* <main> takes focus after the jump; it is a landing spot, not a control */
main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top.is-visible {
    transform: none;
    transition: opacity 0.01s, visibility 0s;
  }
}

/* Modal -------------------------------------------------------------------- */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}

.modal[open].is-in {
  opacity: 1;
  transform: none;
}

html.has-legacy-modal {
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.has-legacy-modal body {
  overflow: hidden;
}

.modal[data-legacy-form][open] {
  position: fixed;
  inset: 0;
  max-width: calc(100% - 2em - 6px);
  z-index: var(--z-modal);
}

.legacy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) - 1);
}

.modal::backdrop,
.legacy-modal-backdrop {
  background: rgba(2, 3, 5, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}

.modal[open].is-in::backdrop,
.legacy-modal-backdrop.is-in {
  opacity: 1;
}

.modal-inner {
  position: relative;
  padding: 36px 36px 32px;
}

.modal-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.2s, background-color 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(var(--w-rgb), 0.06);
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

.modal-title {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  padding-right: 36px;
  text-wrap: balance;
}

.modal-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-inner {
    padding: 28px 22px 24px;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .req {
  color: var(--accent-text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(var(--w-rgb), 0.035);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 16px;
  color: var(--text);
  transition: box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5d6875;
}

.field input:hover,
.field textarea:hover {
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.85), 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.field [aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.85);
  background: rgba(var(--red-rgb), 0.04);
}

.field [aria-invalid="true"]:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.95), 0 0 0 4px rgba(var(--red-rgb), 0.16);
  background: rgba(var(--red-rgb), 0.05);
}

.field-error {
  min-height: 0;
  font-size: 13.5px;
  color: #ff8a95;
}

.field-error:empty {
  display: none;
}

.form-status {
  font-size: 14px;
  color: #ff8a95;
}

.form-status:empty {
  display: none;
}

.form-submit {
  margin-top: 6px;
  width: 100%;
}

.form-submit[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}

.form-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(3, 17, 14, 0.25);
  border-top-color: #03110e;
  animation: spin 0.7s linear infinite;
}

.form-submit[aria-busy="true"] .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  display: none;
  padding: 26px 0 6px;
  text-align: left;
}

.modal.is-success .form,
.modal.is-success .modal-head-copy {
  display: none;
}

.modal.is-success .form-success {
  display: block;
}

.success-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.success-mark circle {
  fill: rgba(var(--accent-rgb), 0.08);
  stroke: rgba(var(--accent-rgb), 0.5);
}

.success-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.modal.is-success .success-mark path {
  animation: draw-check 0.7s 0.15s var(--ease-out) forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.form-success h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.form-success p {
  margin-top: 8px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal::backdrop,
  .legacy-modal-backdrop {
    transition: none;
  }

  .status-dot {
    animation: none;
  }
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 88px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 15px;
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.footer-col a {
  font-size: 15px;
  color: var(--text);
  opacity: 0.86;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* Boot failure notice (shown by the inline script in index.html, or by <noscript>) ------------- */
.boot-error {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: calc(var(--z-modal) + 1);
  width: min(560px, calc(100vw - 32px));
  padding: 16px 52px 16px 18px;
  transform: translateX(-50%);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, 0.97);
  box-shadow: inset 0 0 0 1px rgba(var(--amber-rgb), 0.5), 0 30px 70px -20px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

.boot-error[hidden] {
  display: none;
}

.boot-error-title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--amber);
}

.boot-error-text {
  margin: 0;
  color: rgba(var(--text-rgb), 0.82);
}

.boot-error-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.boot-error-close:hover {
  color: var(--text);
}

/* ========================================================================== 
   05. Hero
   Source: sections/hero.css
   ========================================================================== */

/* Section: hero */
.s-hero {
  position: relative;
  background: var(--bg);
}

.hero-pin {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 64% 32%, rgba(17, 48, 73, 0.35), transparent 70%),
    var(--bg);
}

.hero-gl,
.hero-video,
.hero-overlay,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The real film, full-bleed like the original site; it sits over the WebGL scene and cross-fades out */
.hero-video {
  object-fit: cover;
  object-position: 50% 50%;
  /* the film's first frame until the film itself is on screen (and if it is slow or fails) */
  background: var(--bg) url("../media/hero-poster.jpg") 50% 50% / cover no-repeat;
}

/* The film's first frame as an image (decoded before the first paint) until the film is on screen */
.hero-poster,
.hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-poster img {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.s-hero.is-live .hero-poster {
  visibility: hidden;
}

/* The WebGL drive and its HUD stay hidden until the film is on screen or the scroll blend begins (hero.js). */
.s-hero:not(.is-live) .hero-gl,
.s-hero:not(.is-live) .hero-overlay,
.s-hero:not(.is-live) .hero-scan,
.s-hero:not(.is-live) .hero-readout {
  visibility: hidden !important;
}

.hero-overlay {
  pointer-events: none;
}

/* Legibility scrim: heavier at the bottom-left where the copy sits */
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0) 14%, rgba(5, 7, 10, 0) 38%, rgba(5, 7, 10, 0.55) 62%, rgba(5, 7, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0) 55%);
}

/* Keeps the nav legible (>= 4.5:1) over bright frames of the film; fades out with it (hero.js) */
.hero-navscrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.42) 0px, rgba(5, 7, 10, 0.34) 52px, rgba(5, 7, 10, 0.12) 110px, rgba(5, 7, 10, 0) 170px);
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 140px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(var(--accent-text-rgb), 0) 0%, rgba(var(--accent-text-rgb), 0.05) 70%, rgba(var(--accent-text-rgb), 0.16) 97%, rgba(var(--accent-text-rgb), 0.9) 99.3%, rgba(var(--accent-text-rgb), 0) 100%);
  mix-blend-mode: screen;
}

.hero-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
}

.hero-frost::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0) 45%, rgba(5, 7, 10, 0.7) 78%, var(--bg) 100%),
    radial-gradient(80% 70% at 50% 40%, rgba(170, 200, 225, 0.03), rgba(190, 215, 235, 0.12) 100%);
}

/* Copy ----------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 5;
  /* max-width: 1640px; */
  padding-bottom: clamp(56px, 9.5vh, 104px);
}

/* Sizes, weight, leading and tracking measured from the original site's hero */
.hero-title {
  margin-top: 16px;
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 30em;
}

.hero-sub {
  margin-top: 18px;
  max-width: 48em;
  font-size: var(--fs-hero-sub);
  line-height: 1.6;
  color: rgba(var(--w-rgb), 0.78);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-ctas .btn {
  height: 50px;
  padding: 0 24px;
  font-size: 14.5px;
}

@media (min-width: 1100px) {
  .hero-sub {
    line-height: 1.78;
  }
}

/* Reduced motion: the film shows its poster; this starts/stops it on request */
.hero-play {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9.5vh, 104px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
  background: rgba(5, 7, 10, 0.6);
  box-shadow: inset 0 0 0 1px rgba(var(--w-rgb), 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-play[hidden] {
  display: none;
}

.hero-play:hover {
  background: rgba(5, 7, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.6);
}

.hero-play-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}

.hero-play .i-pause,
.hero-play.is-playing .i-play {
  display: none;
}

.hero-play.is-playing .i-pause {
  display: inline;
}

/* HUD readout + cue ----------------------------------------------------- */
.hero-readout {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9.5vh, 104px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  background: rgba(5, 7, 10, 0.55);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-readout b {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.06em;
}

.hero-readout-state {
  color: var(--accent-text);
}

.hero-readout-sep {
  opacity: 0.5;
}

.hero-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

/* Vertical track with a running accent: reads as "scroll down", never as a dash */
.hero-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: rgba(var(--w-rgb), 0.18);
}

.hero-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: cue-run 2.2s var(--ease-in-out) infinite;
}

@keyframes cue-run {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Fallback (no WebGL) */
.is-fallback .hero-gl,
.is-fallback .hero-overlay {
  display: none;
}

@media (min-width: 768px) and (max-width: 1580px) and (max-height: 800px) {
  .hero-readout {
    bottom: 100px;
  }
}

/* Mobile --------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero-video {
    background-image: url("../media/hero-poster-mobile.jpg");
  }

  .hero-title {
    margin-top: 12px;
  }

  .hero-sub {
    margin-top: 12px;
  }

  /* stacked, full-width buttons as on the original site's phone layout */
  .hero-ctas {
    flex-direction: column;
    margin-top: 18px;
    gap: 16px;
  }

  .hero-ctas .btn {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-play {
    right: auto;
    left: var(--gutter);
    top: calc(var(--nav-h) + 12px);
    bottom: auto;
    height: 38px;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  .hero-readout {
    right: auto;
    left: var(--gutter);
    top: calc(var(--nav-h) + 12px);
    bottom: auto;
    height: 28px;
    font-size: 10px;
  }

  .hero-cue {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.5) 0%, rgba(5, 7, 10, 0) 16%, rgba(5, 7, 10, 0) 30%, rgba(5, 7, 10, 0.7) 50%, rgba(5, 7, 10, 0.95) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cue i::after {
    animation: none;
    transform: none;
  }
}

/* ========================================================================== 
   06. Problem
   Source: sections/problem.css
   ========================================================================== */

/* Section: problem */
.s-problem {
  position: relative;
  background: var(--bg);
}

/* Frost carried over from the hero, receding as the section pins */
.problem-thaw {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 75vh;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
  background-size: cover;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, rgba(0, 0, 0, 0.55) 40%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, rgba(0, 0, 0, 0.55) 40%, transparent 100%);
}

.problem-pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5.5vw, 96px);
  align-items: center;
  padding-top: 36px;
}

.problem-eyebrow {
  margin-bottom: 28px;
}

.problem-text {
  font-size: clamp(19px, calc(15.3px + 0.95vw), 29px);
  line-height: 1.36;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--text);
  text-wrap: pretty;
}

.problem-visual {
  position: relative;
  justify-self: end;
  height: min(70vh, 620px);
  aspect-ratio: 520 / 560;
  max-width: 100%;
  border-radius: 18px;
  background:
    radial-gradient(90% 60% at 50% 40%, rgba(var(--w-rgb), 0.025), transparent 70%),
    linear-gradient(180deg, rgba(var(--w-rgb), 0.03), rgba(var(--w-rgb), 0.008));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.3s;
}

.problem-svg {
  width: 100%;
  height: 100%;
}

.problem-visual.is-alert {
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.55), 0 0 70px -12px rgba(var(--red-rgb), 0.45);
  animation: problem-alert 0.8s steps(2, jump-none) infinite;
}

.problem-visual.is-alert .pv-alert-frame {
  animation: problem-alert-frame 0.8s steps(2, jump-none) infinite;
}

.problem-svg .pv-alert-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .problem-visual.is-alert .problem-svg .pv-alert-ring {
    animation: problem-wheel-ripple 1.2s ease-out infinite;
  }
}

@keyframes problem-wheel-ripple {
  from { transform: scale(0.7); opacity: 0.85; }
  to { transform: scale(1.1); opacity: 0; }
}

@keyframes problem-alert {
  0% { box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.7), 0 0 80px -10px rgba(var(--red-rgb), 0.55); }
  100% { box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.25), 0 0 40px -20px rgba(var(--red-rgb), 0.2); }
}

@keyframes problem-alert-frame {
  0% { fill: rgba(255, 77, 94, 0.14); }
  100% { fill: rgba(255, 77, 94, 0.03); }
}

/* Reduced-motion: static small multiples instead of the pinned sequence */
.problem-grid-cards {
  display: none;
}

.s-problem.is-static .problem-pin {
  height: auto;
  padding-block: var(--section-pad);
}

.s-problem.is-static .problem-grid {
  grid-template-columns: 1fr;
}

.s-problem.is-static .problem-visual {
  height: auto;
  aspect-ratio: auto;
  justify-self: stretch;
  background: none;
  box-shadow: none;
}

.s-problem.is-static .problem-svg {
  display: none;
}

.s-problem.is-static .problem-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.s-problem.is-static .kw {
  color: var(--amber);
}

.s-problem.is-static .problem-thaw {
  display: none;
}

.problem-card {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(var(--w-rgb), 0.02);
  box-shadow: inset 0 0 0 1px var(--line);
}

.problem-card svg {
  width: 100%;
  height: auto;
}

.problem-card-cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mobile: stacked, shorter pin */
@media (max-width: 767.98px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 56px;
  }

  .problem-eyebrow {
    margin-bottom: 14px;
  }

  .problem-text {
    font-size: min(20px, 2.5vh);
    line-height: 1.36;
  }

  .problem-visual {
    justify-self: center;
    height: 38vh;
    height: 38svh;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .problem-text {
    font-size: clamp(18px, 1.8vw, 26px);
  }
}

/* ========================================================================== 
   07. Capabilities
   Source: sections/capabilities.css
   ========================================================================== */

/* Section: capabilities ("Technology") ------------------------------------------------------------
   Desktop: pinned 7-chapter sequence — chapter rail (left) + one persistent BEV scene (right).
   Mobile / reduced motion: stacked cards, each with its own small scene. */

.s-cap {
  position: relative;
}

.s-cap .cap-title {
  margin-top: 16px;
}

.s-cap .cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.s-cap .cap-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.s-cap .cap-tag {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.s-cap .cap-mini {
  display: none;
}

.s-cap .cap-jump {
  display: none;
}

/* Scene (shared by the stage and the cards) ------------------------------------------------------ */
.s-cap .cap-scene {
  position: absolute;
  inset: 0;
}

.s-cap .bev {
  overflow: hidden;
  contain: strict;
}

.s-cap .bev-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 0 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 9%, #000 27%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 9%, #000 27%, #000 87%, transparent 100%);
}

.s-cap .bev-tilt {
  position: absolute;
  backface-visibility: hidden;
}

.s-cap .bev-svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* HUD overlay */
.s-cap .bev-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-cap .bev-hud-top {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}

.s-cap .bev-ch b {
  font-weight: 500;
  color: var(--accent-text);
}

.s-cap .bev-ch-of {
  margin-left: 0.55em;
  color: var(--muted);
}

.s-cap .bev-ch-sep,
.s-cap .bev-status-sep {
  margin: 0 0.75em;
  color: var(--dim);
}

.s-cap .bev-ch-name {
  display: inline-block;
  color: var(--text);
}

.s-cap .bev-status {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.s-cap .bev-status .status-dot {
  width: 6px;
  height: 6px;
  margin-right: 9px;
}

.s-cap .bev-hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 2.6vw, 40px);
  padding: 34px 22px 18px;
  background: linear-gradient(0deg, rgba(var(--bg-rgb), 0.94) 35%, rgba(var(--bg-rgb), 0));
}

.s-cap .bev-tm {
  display: grid;
  gap: 6px;
}

.s-cap .bev-tm-k {
  font-size: 10px;
  color: var(--muted);
}

.s-cap .bev-tm-v {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--text);
}

.s-cap .bev-tm-v b {
  min-width: 2ch;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.s-cap [data-k="gap"] .bev-tm-v b {
  min-width: 3ch;
}

.s-cap [data-k="off"] .bev-tm-v b {
  min-width: 4ch;
}

.s-cap .bev-tm-v small {
  font-size: 10px;
  color: var(--muted);
}

.s-cap .bev-tm.is-warn .bev-tm-v b {
  color: var(--amber);
}

.s-cap .bev-bars {
  display: inline-flex;
  gap: 2px;
  margin-left: 8px;
  align-self: center;
}

.s-cap .bev-bars i {
  width: 4px;
  height: 10px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.45);
}

.s-cap .bev-bars i:last-child {
  background: rgba(var(--w-rgb), 0.14);
  box-shadow: none;
}

.s-cap .bev-gauge {
  position: relative;
  width: 46px;
  height: 10px;
  margin-left: 8px;
  align-self: center;
  box-shadow: inset 1px 0 0 var(--line-3), inset -1px 0 0 var(--line-3);
}

.s-cap .bev-gauge::before,
.s-cap .bev-gauge::after {
  content: "";
  position: absolute;
  background: var(--line-2);
}

.s-cap .bev-gauge::before {
  left: 0;
  right: 0;
  top: 4.5px;
  height: 1px;
}

.s-cap .bev-gauge::after {
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 1px;
  margin-left: -0.5px;
}

.s-cap .bev-gauge i {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.s-cap .bev-tm.is-warn .bev-gauge i {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(var(--amber-rgb), 0.8);
}

/* Big speed readout, top centre (after the in-car UI) */
.s-cap .bev-speedo {
  position: absolute;
  left: 50%;
  top: -4px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 6px;
  transform: translateX(-50%);
  text-align: center;
}

.s-cap .bev-speedo::before {
  content: "";
  position: absolute;
  inset: -18px -40px -14px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--bg-rgb), 0.85), rgba(var(--bg-rgb), 0));
}

.s-cap .bev-speedo b {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.s-cap .bev-speedo-u {
  font-size: 10px;
  color: var(--muted);
}

.s-cap .bev-speedo small {
  grid-column: 1 / -1;
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.s-cap .bev-speedo small i {
  font-style: normal;
  color: var(--accent-text);
}

/* AI Cruise Control: speed vs distance through the curve */
.s-cap .bev-prof {
  position: absolute;
  left: 22px;
  top: 64px;
  width: min(300px, 44%);
  padding: 12px 14px 12px;
  border-radius: 12px;
  background: rgba(var(--bg-rgb), 0.82);
  box-shadow: inset 0 0 0 1px var(--line-2);
  visibility: hidden;
  opacity: 0;
}

.s-cap .bev-prof-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9.5px;
  color: var(--muted);
}

.s-cap .bev-prof-set {
  color: var(--text);
}

.s-cap .bev-prof-svg {
  display: block;
  width: 100%;
  height: 86px;
  margin: 8px 0 10px;
  overflow: visible;
}

.s-cap .bev-prof-beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.s-cap .bev-prof-beats li {
  position: relative;
  padding-left: 11px;
  transition: color 0.3s;
}

.s-cap .bev-prof-beats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.s-cap .bev-prof-beats li.is-done {
  color: var(--muted);
}

.s-cap .bev-prof-beats li.is-on {
  color: var(--accent-text);
}

/* Driver display (chapter 7): the WebGL road the top-down view swings down into */
.s-cap .bev-gl {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  pointer-events: none;
}

.s-cap .bev-gl canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Driver display (chapter 7): the real in-car UI recording in a slim bezel */
.s-cap .bev-cluster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
}

.s-cap .bev-cl-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.s-cap .bev-cl-video {
  position: absolute;
  overflow: hidden;
  background: #0b0f14;
  opacity: 0;
}

.s-cap .bev-cl-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-cap .bev-cl-video.is-manual {
  pointer-events: auto;
}

.s-cap .bev-cl-cap {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
}

.s-cap .bev-cl-cap .status-dot {
  width: 6px;
  height: 6px;
}

@media (min-width: 768px) and (max-width: 1580px) and (max-height: 800px) {
  .s-cap .bev:not(.bev--compact) .bev-cl-cap {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text);
  }
}

/* Desktop stage: the big readout replaces the speed cell in the bottom row */
.s-cap .bev:not(.bev--compact) .bev-hud-bottom [data-k="speed"] {
  display: none;
}

/* Compact (card) variant: only speed + the chapter's key reading */
.s-cap .bev--compact .bev-hud-top {
  display: none;
}

.s-cap .bev--compact .bev-prof {
  left: 10px;
  top: auto;
  bottom: 10px;
  width: 42%;
  padding: 7px 9px 4px;
}

.s-cap .bev--compact .bev-prof-head {
  font-size: 7.5px;
}

.s-cap .bev--compact .bev-prof-set,
.s-cap .bev--compact .bev-prof-beats {
  display: none;
}

.s-cap .bev--compact .bev-prof-svg {
  height: 40px;
  margin: 5px 0 4px;
}

.s-cap .bev--compact .bev-cl-cap {
  font-size: 8.5px;
}

.s-cap .bev--compact .bev-hud {
  font-size: 9px;
}

.s-cap .bev--compact .bev-hud-bottom {
  top: 0;
  bottom: auto;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 14px 28px;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.9) 35%, rgba(var(--bg-rgb), 0));
}

.s-cap .bev--compact .bev-tm-k {
  font-size: 8.5px;
}

.s-cap .bev--compact .bev-tm-v b {
  font-size: 14px;
}

.s-cap .bev--compact .bev-tm:not([data-k="speed"]) {
  display: none;
}

.s-cap .bev--compact[data-ch="0"] [data-k="off"],
.s-cap .bev--compact[data-ch="1"] [data-k="off"],
.s-cap .bev--compact[data-ch="2"] [data-k="gap"],
.s-cap .bev--compact[data-ch="3"] [data-k="obj"],
.s-cap .bev--compact[data-ch="5"] [data-k="off"] {
  display: grid;
}

/* Desktop: pinned two-column sequence ------------------------------------------------------------ */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .s-cap .cap-pin {
    display: flex;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding: 84px 0 22px;
    overflow: hidden;
  }

  .s-cap .cap-grid {
    display: grid;
    grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
    column-gap: clamp(28px, 3.6vw, 64px);
    height: 100%;
  }

  .s-cap .cap-side {
    align-self: center;
    padding-bottom: 92px; /* the fixed mini-HUD lives bottom-left */
  }

  .s-cap .cap-title {
    font-size: min(var(--fs-h2-sm), 5.2vh);
  }

  .s-cap .cap-list {
    --pad: clamp(6px, 1.15vh, 11px);
    --fs-name: clamp(15.5px, min(1.3vw, 2.2vh), 19px);
    position: relative;
    margin-top: clamp(18px, 3.6vh, 40px);
  }

  .s-cap .cap-item {
    position: relative;
    display: grid;
    grid-template-columns: 26px 34px minmax(0, 1fr);
    padding: var(--pad) 0;
  }

  /* rail: one hairline segment per item; its fill follows the chapter's progress */
  .s-cap .cap-progress {
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-2);
  }

  .s-cap .cap-item:first-child .cap-progress {
    top: calc(var(--pad) + var(--fs-name) * 0.62);
  }

  .s-cap .cap-item:last-child .cap-progress {
    bottom: auto;
    height: calc(var(--pad) + var(--fs-name) * 0.62);
  }

  .s-cap .cap-progress i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
    transform: scaleY(0);
    transform-origin: 50% 0;
  }

  .s-cap .cap-item:last-child .cap-progress i {
    display: none;
  }

  /* tick on the rail */
  .s-cap .cap-item::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: calc(var(--pad) + var(--fs-name) * 0.62 - 3.5px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line-3);
    transition: background-color 0.35s, box-shadow 0.45s var(--ease-out);
  }

  .s-cap .cap-item.is-done::before {
    background: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
  }

  .s-cap .cap-item.is-active::before {
    background: var(--bg);
    box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(var(--accent-rgb), 0.14), 0 0 14px rgba(var(--accent-rgb), 0.7);
  }

  .s-cap .cap-num {
    grid-column: 2;
    grid-row: 1;
    line-height: calc(var(--fs-name) * 1.25);
    transition: color 0.35s;
  }

  .s-cap .cap-text {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.6s var(--ease-out);
  }

  .s-cap .cap-name {
    font-size: var(--fs-name);
    color: rgba(var(--text-rgb), 0.4);
    transition: color 0.35s;
  }

  .s-cap .cap-tag {
    min-height: 0;
    overflow: hidden;
    font-size: clamp(13.5px, min(1.05vw, 1.9vh), 15.5px);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s, transform 0.5s var(--ease-out);
  }

  .s-cap .cap-tag::before {
    content: "";
    display: block;
    height: 3px;
  }

  .s-cap .cap-item.is-done .cap-name {
    color: rgba(var(--text-rgb), 0.62);
  }

  .s-cap .cap-item.is-done .cap-num {
    color: var(--muted);
  }

  .s-cap .cap-item.is-active .cap-name {
    color: var(--text);
  }

  .s-cap .cap-item.is-active .cap-num {
    color: var(--accent-text);
  }

  .s-cap .cap-item.is-active .cap-text {
    grid-template-rows: auto 1fr;
  }

  .s-cap .cap-item.is-active .cap-tag {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
  }

  .s-cap .cap-jump {
    display: block;
    position: absolute;
    z-index: 2;
    inset: 0 -12px 0 -12px;
    border-radius: 10px;
    transition: background-color 0.25s;
  }

  .s-cap .cap-jump:hover {
    background: rgba(var(--w-rgb), 0.025);
  }

  .s-cap .cap-item:hover .cap-name {
    color: rgba(var(--text-rgb), 0.85);
  }

  .s-cap .cap-item.is-active:hover .cap-name {
    color: var(--text);
  }

  /* stage */
  .s-cap .cap-stage {
    position: relative;
    align-self: center;
    height: 100%;
    max-height: 900px;
    min-height: 0;
  }

  .s-cap .cap-frame {
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 50% 72%, rgba(var(--accent-rgb), 0.035), transparent 70%);
  }
}

/* Mobile + reduced motion: stacked cards -------------------------------------------------------- */
@media (max-width: 767.98px), (prefers-reduced-motion: reduce) {
  .s-cap .cap-pin {
    min-height: 0;
    padding-block: var(--section-pad) calc(var(--section-pad) * 0.5);
  }

  .s-cap .cap-stage {
    display: none;
  }

  .s-cap .cap-list {
    display: grid;
    gap: 14px;
    margin-top: 36px;
  }

  .s-cap .cap-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 18px 18px 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(var(--w-rgb), 0.028), rgba(var(--w-rgb), 0.008));
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
  }

  .s-cap .cap-num {
    padding-top: 5px;
    color: var(--accent-text);
  }

  .s-cap .cap-tag {
    margin-top: 3px;
  }

  .s-cap .cap-mini {
    display: block;
    position: relative;
    grid-column: 1 / -1;
    margin-top: 16px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .s-cap .cap-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
  }

  .s-cap .cap-progress i {
    display: block;
    height: 100%;
    background: var(--accent);
    opacity: 0.75;
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-cap .cap-progress {
    display: none;
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .s-cap .cap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
  }

  .s-cap .cap-mini {
    aspect-ratio: 4 / 3;
  }

  .s-cap .cap-item:last-child {
    grid-column: 1 / -1;
  }

  .s-cap .cap-item:last-child .cap-mini {
    aspect-ratio: 21 / 9;
  }
}

/* ========================================================================== 
   08. Canyon
   Source: sections/canyon.css
   ========================================================================== */

/* Section: AI Cruise Control on canyon roads ---------------------------------------------------------
   Real in-car footage in a HUD frame, with the speed the car's display showed graphed underneath.
   Not pinned: the clip loops while the section is in view and the graph follows it. */

.s-canyon {
  position: relative;
  background:
    radial-gradient(60% 50% at 70% 50%, rgba(var(--accent-rgb), 0.05), transparent 70%),
    var(--bg);
}

.s-canyon .canyon-inner {
  padding-block: var(--section-pad);
}

.s-canyon .canyon-title {
  margin-top: 16px;
}

.s-canyon .canyon-text {
  margin-top: 20px;
  max-width: 44ch;
  color: #a3aeb9;
}

/* Media: footage + graph */
.s-canyon .canyon-media {
  display: grid;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

.s-canyon .canyon-frame {
  position: relative;
  aspect-ratio: 1600 / 1042;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0f14;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.s-canyon .canyon-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-canyon .canyon-hud {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s-canyon .canyon-rec {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 7, 10, 0.72);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.s-canyon .canyon-rec .status-dot {
  width: 6px;
  height: 6px;
}

.s-canyon .canyon-graph {
  padding: 12px 16px 10px;
  border-radius: 12px;
  background: rgba(var(--w-rgb), 0.02);
  box-shadow: inset 0 0 0 1px var(--line);
}

.s-canyon .canyon-graph-head,
.s-canyon .canyon-graph-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-canyon .canyon-speed b {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.s-canyon .canyon-graph-svg {
  display: block;
  width: 100%;
  height: 84px;
  margin: 8px 0 6px;
  overflow: visible;
}

.s-canyon .canyon-graph-axis {
  position: relative;
  font-size: 9.5px;
}

.s-canyon .canyon-axis-curve {
  position: absolute;
  transform: translateX(-50%);
  color: var(--amber);
}

/* Desktop / tablet: copy beside the footage */
@media (min-width: 768px) {
  .s-canyon .canyon-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(28px, 4vw, 72px);
    align-items: center;
  }
}

/* Mobile: stacked */
@media (max-width: 767.98px) {
  .s-canyon .canyon-media {
    margin-top: 32px;
  }

  .s-canyon .canyon-hud {
    left: 10px;
    top: 10px;
    font-size: 9px;
  }

  .s-canyon .canyon-rec {
    height: 26px;
    padding: 0 10px;
  }
}

/* ========================================================================== 
   09. Traction
   Source: sections/traction.css
   ========================================================================== */

/* Section: traction (three instrument cards) */
.s-traction {
  position: relative;
}

.s-traction .traction-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 820px;
}

.s-traction .traction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(44px, 7vh, 80px);
}

.s-traction .traction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 22px 24px;
  border-radius: 6px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--accent-rgb), 0.035), transparent 60%),
    linear-gradient(180deg, rgba(var(--w-rgb), 0.03), rgba(var(--w-rgb), 0.008)),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.5s var(--ease-out);
}

.s-traction .traction-card:hover {
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0, 0, 0, 0.95);
}

/* HUD corner brackets (inside .traction-visual, positioned against the card) */
.s-traction .pv-frame {
  --c: rgba(var(--w-rgb), 0.34);
  --l: 12px;
  --w: 1px;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 6px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}

.s-traction .traction-card:hover .pv-frame {
  --c: rgba(var(--accent-rgb), 0.75);
}

.s-traction .pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.s-traction .pv-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.s-traction .pv-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
}

.s-traction .pv-rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  letter-spacing: 0.14em;
}

.s-traction .pv-rec::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.85);
  animation: traction-rec 2.4s steps(1, end) infinite;
}

@keyframes traction-rec {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.2; }
}

/* Visual stage bleeds to the card edges */
.s-traction .pv-stage {
  position: relative;
  margin: 14px -22px 0;
  aspect-ratio: 300 / 120;
  border-block: 1px solid rgba(var(--w-rgb), 0.045);
  background:
    linear-gradient(rgba(var(--w-rgb), 0.03) 1px, transparent 1px) center / 24px 24px,
    linear-gradient(90deg, rgba(var(--w-rgb), 0.03) 1px, transparent 1px) center / 24px 24px;
  overflow: hidden;
}

.s-traction .pv-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 85% at 50% 55%, transparent 40%, var(--surface) 100%);
  opacity: 0.85;
}

.s-traction .pv-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.s-traction .pv-svg {
  z-index: 1;
}

/* Value */
.s-traction .traction-value {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
  font-size: clamp(36px, 3.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--text);
  white-space: nowrap;
}

.s-traction .odo {
  display: inline-flex;
  align-items: flex-end;
  height: 1.08em;
  line-height: 1.08em;
}

.s-traction .odo-col {
  position: relative;
  display: inline-block;
  height: 1.08em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.s-traction .odo-sizer {
  display: block;
  visibility: hidden;
}

.s-traction .odo-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  white-space: pre;
  text-align: center;
  will-change: transform;
}

.s-traction .odo-sym {
  display: inline-block;
  height: 1.08em;
}

.s-traction .odo-plus {
  margin-left: 0.04em;
  color: var(--accent-text);
  font-weight: 500;
}

.s-traction .traction-unit {
  margin-bottom: calc(0.14 * clamp(36px, 3.2vw, 46px));
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.s-traction .traction-label {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 26ch;
}

@media (max-width: 819.98px) {
  .s-traction .traction-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 599.98px) {
  .s-traction .traction-card {
    padding: 16px 20px 22px;
  }

  .s-traction .pv-stage {
    margin-inline: -20px;
  }

  .s-traction .traction-value {
    font-size: 42px;
  }

  .s-traction .traction-unit {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-traction .pv-rec::before {
    animation: none;
  }

  .s-traction .traction-card,
  .s-traction .pv-frame {
    transition: none;
  }
}

/* ========================================================================== 
   10. Drive
   Source: sections/drive.css
   ========================================================================== */

/* Section: drive — "Where We Drive" map */
.s-drive {
  position: relative;
  background: var(--bg);
}

.s-drive .drive-pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.s-drive .drive-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Edge fades into --bg (no seams with neighbouring sections) */
.s-drive .drive-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 15%, rgba(var(--bg-rgb), 0) 84%, var(--bg) 100%);
}

/* Copy scrim */
.s-drive .drive-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.86) 24%, rgba(var(--bg-rgb), 0.45) 40%, rgba(var(--bg-rgb), 0) 54%);
}

.s-drive .dm-svg {
  --u: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Map layers ------------------------------------------------------------- */
.s-drive .dm-land {
  fill: #0b1016;
}

.s-drive .dm-bathy-line {
  fill: none;
  stroke: rgba(var(--violet-rgb), 0.075);
  stroke-width: calc(1px * var(--u));
}

.s-drive .dm-bathy-1 {
  stroke: rgba(var(--violet-rgb), 0.055);
}

.s-drive .dm-bathy-2 {
  stroke: rgba(var(--violet-rgb), 0.05);
}

.s-drive .dm-bathy-3 {
  stroke: rgba(var(--violet-rgb), 0.04);
}

.s-drive .dm-ridge {
  fill: none;
  stroke: rgba(var(--w-rgb), 0.055);
  stroke-width: calc(1px * var(--u));
  stroke-linecap: round;
}

.s-drive .dm-ridge--o {
  stroke: rgba(var(--w-rgb), 0.03);
}

.s-drive .dm-island {
  fill: #0b1016;
  stroke: rgba(232, 237, 242, 0.34);
  stroke-width: calc(1px * var(--u));
  stroke-linejoin: round;
}

.s-drive .dm-coast {
  fill: none;
  stroke: rgba(232, 237, 242, 0.44);
  stroke-width: calc(1.1px * var(--u));
  stroke-linejoin: round;
}

.s-drive .dm-coast-glow {
  fill: none;
  stroke: rgba(var(--violet-rgb), 0.12);
  stroke-width: calc(7px * var(--u));
  stroke-linejoin: round;
}

.s-drive .dm-road {
  fill: none;
  stroke: rgba(232, 237, 242, 0.14);
  stroke-width: calc(1px * var(--u));
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-drive .dm-lat {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.3);
  stroke-width: calc(0.85px * var(--u));
}

.s-drive .dm-lat--major {
  stroke: rgba(var(--accent-rgb), 0.55);
  stroke-width: calc(1.1px * var(--u));
}

.s-drive .dm-sig {
  fill: var(--accent);
  r: calc(1.9px * var(--u));
}

.s-drive .dm-sig--hot {
  fill: #eef5f8;
  r: calc(2.3px * var(--u));
}

.s-drive .dm-sig-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: calc(1px * var(--u));
  r: calc(6px * var(--u));
}

.s-drive .dm-route-ghost {
  fill: none;
  stroke: rgba(232, 237, 242, 0.34);
  stroke-width: calc(1.3px * var(--u));
  stroke-linecap: round;
}

.s-drive .dm-route path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-drive .dm-route-w {
  stroke-opacity: 0.07;
  stroke-width: calc(18px * var(--u));
}

.s-drive .dm-route-m {
  stroke-opacity: 0.22;
  stroke-width: calc(7px * var(--u));
}

.s-drive .dm-route-c {
  stroke-width: calc(2.4px * var(--u));
}

.s-drive .dm-route .dm-route-h {
  stroke: #eef5f8;
  stroke-opacity: 0.85;
  stroke-width: calc(0.8px * var(--u));
}

/* Topanga Canyon (SR-27): a winding canyon route, dashed to set it apart from the 101 */
.s-drive .dm-canyon path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-drive .dm-canyon-w {
  stroke: var(--brand);
  stroke-opacity: 0.5;
  stroke-width: calc(8px * var(--u));
}

.s-drive .dm-canyon-c {
  stroke: var(--accent-text);
  stroke-width: calc(2px * var(--u));
  stroke-dasharray: calc(5px * var(--u)) calc(3px * var(--u));
}

.s-drive .dm-canyon-label text {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.s-drive .dm-odd-box {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.5);
  stroke-width: calc(1.2px * var(--u));
}

/* Px-sized marks (inside groups scaled by 1/k) */
.s-drive .dm-pend {
  fill: var(--bg);
  stroke: rgba(232, 237, 242, 0.5);
  stroke-width: 1.2;
}

.s-drive .dm-wp {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.s-drive .dm-label text {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.s-drive .dm-tick {
  stroke: rgba(232, 237, 242, 0.4);
  stroke-width: 1;
}

.s-drive .dm-ping {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.s-drive .dm-leader {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.55);
  stroke-width: 1;
}

.s-drive .dm-pill {
  fill: #0a1317;
  stroke: rgba(var(--accent-rgb), 0.5);
  stroke-width: 1;
}

/* HUD overlays ----------------------------------------------------------- */
.s-drive .dm-hud {
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.s-drive .dm-readout {
  position: absolute;
  top: 100px;
  right: var(--edge);
  display: grid;
  gap: 9px;
  min-width: 232px;
  padding: 14px 16px 15px;
  border-radius: 10px;
  background: rgba(var(--bg-rgb), 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.s-drive .dm-row {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.s-drive .dm-row--status {
  color: var(--text);
}

.s-drive .dm-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9);
}

.s-drive .dm-coords {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.8;
}

.s-drive .dm-next {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.s-drive .dm-k {
  color: var(--dim);
}

.s-drive .dm-v {
  color: var(--accent-text);
}

.s-drive .dm-legend {
  position: absolute;
  right: var(--edge);
  bottom: 40px;
  display: grid;
  gap: 12px;
  min-width: 232px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(var(--bg-rgb), 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 9.5px;
}

.s-drive .dm-legend-list {
  display: grid;
  gap: 8px;
}

.s-drive .dm-lg {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s-drive .dm-lg i {
  position: relative;
  width: 18px;
  height: 2px;
  flex: none;
}

.s-drive .dm-lg--route i {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
}

.s-drive .dm-lg--road i {
  height: 1px;
  background: rgba(232, 237, 242, 0.35);
}

.s-drive .dm-lg--canyon i {
  background: repeating-linear-gradient(90deg, var(--accent-text) 0 5px, transparent 5px 8px);
  box-shadow: 0 0 6px rgba(var(--brand-rgb), 0.9);
}

.s-drive .dm-lg--sig i {
  height: 1px;
  background: rgba(var(--accent-rgb), 0.35);
}

.s-drive .dm-lg--sig i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.s-drive .dm-legend-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.s-drive .dm-scale {
  display: grid;
  gap: 6px;
}

.s-drive .dm-scale-bar {
  display: block;
  width: 100px;
  height: 5px;
  border: 1px solid rgba(232, 237, 242, 0.45);
  border-top: 0;
  transform-origin: left center;
}

.s-drive .dm-north {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--text);
}

.s-drive .dm-north svg {
  width: 11px;
  height: 15px;
  color: var(--accent-text);
}

/* Copy ---------------------------------------------------------------- */
.s-drive .drive-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 84px;
  padding-bottom: 110px;
  pointer-events: none;
}

.s-drive .drive-copy {
  width: min(500px, 40%);
  pointer-events: auto;
}

.s-drive .drive-title {
  margin-top: 20px;
}

.s-drive .drive-text {
  margin-top: 24px;
  max-width: 42ch;
}

.s-drive .drive-text.drive-text--canyon {
  margin-top: 12px;
}

.s-drive .drive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.s-drive .drive-tags .chip {
  transition: color 0.45s, box-shadow 0.45s, background-color 0.45s;
}

.s-drive .drive-tags .chip-dot {
  transition: background-color 0.45s, box-shadow 0.45s;
}

.s-drive .drive-tags .chip.is-visited {
  color: var(--text);
}

.s-drive .drive-tags .chip.is-visited .chip-dot {
  background: rgba(var(--accent-rgb), 0.55);
}

/* Stacked (narrow desktop / tablet) -------------------------------------- */
@media (max-width: 1099.98px) {
  .s-drive .drive-map::after {
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.96) 0%, rgba(var(--bg-rgb), 0.82) 34%, rgba(var(--bg-rgb), 0) 52%);
  }

  .s-drive .drive-grid {
    align-items: flex-start;
    padding-top: 108px;
    padding-bottom: 0;
  }

  .s-drive .drive-copy {
    width: auto;
    max-width: 660px;
  }

  .s-drive .drive-title {
    font-size: var(--fs-h2-sm);
  }

  .s-drive .drive-text {
    max-width: 56ch;
  }

  .s-drive .dm-readout,
  .s-drive .dm-odd {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1099.98px) and (max-height: 899.98px) {
  .s-drive .dm-legend {
    display: none;
  }
}

/* Mobile: map above the copy, no pin ------------------------------------- */
@media (max-width: 767.98px) {
  .s-drive .drive-pin {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 64px 0 88px;
  }

  .s-drive .drive-map {
    position: relative;
    inset: auto;
    height: min(118vw, 540px);
    flex: none;
  }

  .s-drive .drive-map::before {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 18%, rgba(var(--bg-rgb), 0) 80%, var(--bg) 100%);
  }

  .s-drive .drive-map::after {
    content: none;
  }

  .s-drive .drive-grid {
    height: auto;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .s-drive .drive-copy {
    width: 100%;
  }

  .s-drive .drive-title {
    margin-top: 16px;
  }

  .s-drive .drive-text {
    margin-top: 18px;
  }

  .s-drive .drive-tags {
    gap: 8px;
    margin-top: 24px;
  }

  .s-drive .dm-legend,
  .s-drive .dm-chips,
  .s-drive .dm-odd {
    display: none;
  }

  .s-drive .dm-readout {
    display: grid;
    top: 14px;
    right: var(--gutter);
    bottom: auto;
    left: auto;
    min-width: 0;
    gap: 6px;
    padding: 10px 12px;
    font-size: 9px;
  }

  .s-drive .dm-coords {
    display: none;
  }

  .s-drive .dm-next {
    padding-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-drive .drive-tags .chip,
  .s-drive .drive-tags .chip-dot {
    transition: none;
  }
}

/* ========================================================================== 
   11. How
   Source: sections/how.css
   ========================================================================== */

/* Section: how — Engage / Supervise / Improve flywheel */
.s-how {
  position: relative;
}

.how-pin {
  display: flex;
  align-items: center;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: center;
}

.how-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.how-title {
  margin-top: 18px;
}

.how-steps {
  display: grid;
  gap: clamp(16px, 2.9vh, 32px);
  margin-top: clamp(26px, 4.6vh, 54px);
}

.how-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num body";
  column-gap: 10px;
}

.how-num {
  grid-area: num;
  padding-top: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--accent-text);
  transition: color 0.5s;
}

.how-step .h3 {
  grid-area: title;
}

.how-step .body {
  grid-area: body;
  margin-top: 6px;
  max-width: 44ch;
}

.how-rail,
.how-icon {
  display: none;
}

.how-nocase {
  text-transform: none;
}

/* Scrubbed state (desktop + motion): only the active step is bright */
html[data-mode="desktop"] .how-step {
  opacity: 0.3;
  transition: opacity 0.6s var(--ease-out);
}

html[data-mode="desktop"] .how-step.is-active {
  opacity: 1;
}

html[data-mode="desktop"] .how-step:not(.is-active) .how-num {
  color: var(--muted);
}

html[data-mode="desktop"] .how-rail {
  display: block;
  position: absolute;
  left: 8px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--line-2);
}

.how-rail i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
  transform-origin: 50% 0;
}

/* Flywheel */
.how-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.how-gridbg {
  inset: -12% -8%;
  opacity: 0.8;
}

.how-wheel {
  position: relative;
  width: min(100%, calc(100vh - 136px), 740px);
  width: min(100%, calc(100svh - 136px), 740px);
  aspect-ratio: 1;
}

.how-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (min-width: 768px) {
  .how-pin {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding-top: 84px;
    padding-bottom: 24px;
    overflow: hidden;
  }
}

/* Short desktop viewports: keep the step copy clear of the fixed mini-HUD (bottom-left) */
@media (min-width: 768px) and (max-height: 820px) {
  .how-pin {
    padding-bottom: 40px;
  }

  .how-title {
    margin-top: 14px;
  }

  .how-steps {
    gap: 14px;
    margin-top: 22px;
  }

  .how-step {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .how-step .body {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.45;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
  }

  .how-step .body {
    font-size: 16px;
  }
}

/* Mobile: stacked steps with a small looping icon each */
@media (max-width: 767.98px) {
  .how-pin {
    min-height: 0;
    padding: clamp(88px, 14vh, 128px) 0 clamp(64px, 10vh, 96px);
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-visual {
    display: none;
  }

  .how-steps {
    gap: 30px;
    margin-top: 34px;
  }

  .how-step {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "icon num"
      "icon title"
      "body body";
    column-gap: 18px;
    align-items: end;
  }

  .how-icon {
    display: block;
    grid-area: icon;
    width: 84px;
    height: 84px;
    align-self: center;
  }

  .how-icon-svg {
    width: 100%;
    height: 100%;
  }

  .how-num {
    padding-top: 0;
    align-self: end;
  }

  .how-step .h3 {
    align-self: start;
  }

  .how-step .body {
    margin-top: 14px;
  }
}

/* ========================================================================== 
   12. Research
   Source: sections/research.css
   ========================================================================== */

/* Section: research — foundation-model diagram */
.s-research {
  position: relative;
}

.research-pin {
  display: flex;
}

.research-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 26% 62%, rgba(var(--accent-rgb), 0.045), transparent 70%);
}

.research-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s-research .research-title {
  margin-top: 14px;
  max-width: 15.5em;
  font-size: var(--fs-h2-sm);
}

/* Diagram grid: inputs | core | heads (above the bus) / output (on the bus) / models (below) */
.rd {
  position: relative;
  display: grid;
  grid-template-columns: minmax(124px, 0.64fr) minmax(160px, 0.84fr) minmax(0, 4fr);
  grid-template-rows: minmax(min-content, 1fr) clamp(70px, 11vh, 104px) minmax(min-content, 1fr);
  grid-template-areas:
    "in core heads"
    "in core spine"
    "in core models";
  column-gap: clamp(26px, 3.2vw, 54px);
  margin-top: clamp(18px, 3.2vh, 40px);
}

.rd::before {
  content: "";
  position: absolute;
  inset: -4% -2%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--w-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--w-rgb), 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 40% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 40% 50%, #000 20%, transparent 100%);
}

.rd-wires {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.rd-inputs,
.rd-core,
.rd-heads,
.rd-models,
.rd-out {
  position: relative;
  z-index: 1;
}

/* Inputs */
.rd-inputs {
  grid-area: in;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rd-col-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.rd-in {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #06090c;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.rd-in.hud-frame::before {
  --l: 9px;
  --c: rgba(var(--w-rgb), 0.45);
}

.rd-cam {
  aspect-ratio: 16 / 9;
}

.rd-imu {
  height: clamp(36px, 5.4vh, 50px);
}

.rd-cam-canvas,
.rd-imu-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rd-in-tag {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 1px 4px #000;
}

.rd-in-rec {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
}

/* Core */
.rd-core {
  grid-area: core;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1.08;
  padding: 18px;
  border-radius: 22px;
  text-align: center;
  background: radial-gradient(circle at 50% 46%, #0c171e, var(--bg) 72%);
  box-shadow: inset 0 0 0 1px var(--line-2);
  isolation: isolate;
}

.rd-core-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.rd-core-glow,
.rd-core-flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rd-core-glow {
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.14), transparent 64%);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45), 0 0 70px -18px rgba(var(--accent-rgb), 0.45);
}

.rd-core-flash {
  background: radial-gradient(circle, rgba(222, 237, 244, 0.32), rgba(var(--accent-rgb), 0.1) 52%, transparent 76%);
  box-shadow: 0 0 90px -6px rgba(var(--accent-rgb), 0.6);
  opacity: 0;
}

.rd-core-frame {
  position: absolute;
  inset: 9px;
}

.rd-core-svg {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
}

.rd-core-title {
  max-width: 7em;
  font-size: clamp(17px, 0.95vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.rd-core-sub {
  max-width: 12em;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Cards (heads + models) */
.rd-heads,
.rd-models {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.rd-heads {
  grid-area: heads;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rd-models {
  grid-area: models;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rd-node {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 11px 13px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(var(--w-rgb), 0.03), rgba(var(--w-rgb), 0.008)), var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.rd-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(var(--accent-rgb), 0.06), transparent 62%);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 24px 60px -34px rgba(var(--accent-rgb), 0.55);
}

.rd-mini {
  position: relative;
  flex: 1 1 auto;
  min-height: 54px;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.28);
  background-image:
    linear-gradient(rgba(var(--w-rgb), 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--w-rgb), 0.025) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(var(--w-rgb), 0.05);
}

.rd-mini-svg,
.rd-mini-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rd-mini-svg {
  padding: 4px 6px;
}

.rd-nocase {
  text-transform: none;
}

.rd-title {
  margin-top: 10px;
  font-size: clamp(15px, 1.12vw, 17px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rd-desc {
  margin-top: 4px;
  font-size: clamp(14px, 0.98vw, 15px);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

/* Output (sits on the bus) */
.rd-out {
  grid-area: spine;
  align-self: center;
  justify-self: end;
}

.rd-out .rd-col-label {
  position: absolute;
  bottom: 100%;
  left: 2px;
  margin-bottom: 7px;
}

.rd-out-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.rd-out-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.6), 0 0 36px -8px rgba(var(--accent-rgb), 0.55);
}

.rd-out-wheel {
  position: relative;
  width: 22px;
  height: 22px;
}

.rd-out-text {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rd-out-bar {
  position: relative;
  width: 34px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(var(--w-rgb), 0.1);
}

.rd-out-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.72);
  transform-origin: 0 50%;
}

/* Desktop / tablet: pinned stage */
@media (min-width: 768px) {
  .research-pin {
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    padding: 88px 0 22px;
    overflow: hidden;
  }

  .research-inner {
    height: 100%;
  }

  .rd {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 760px;
  }

  .rd-heads,
  .rd-models {
    grid-template-rows: minmax(54px, 1fr) auto auto;
    row-gap: 0;
  }

  .rd-node {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .rd-out .rd-col-label {
    left: auto;
    right: 14px;
  }
}

@media (min-width: 768px) and (max-height: 800px) {
  .research-pin {
    padding-top: 82px;
  }

  .rd {
    grid-template-rows: minmax(min-content, 1fr) 72px minmax(min-content, 1fr);
    margin-top: 16px;
  }

  .rd-out-body {
    height: 36px;
  }

  .rd-out .rd-col-label {
    margin-bottom: 3px;
    font-size: 9.5px;
  }

  .rd-node {
    padding: 9px 11px 10px;
  }

  .rd-title {
    margin-top: 7px;
  }

  .rd-desc {
    margin-top: 2px;
    line-height: 1.36;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .rd {
    grid-template-columns: minmax(100px, 0.6fr) minmax(140px, 0.8fr) minmax(0, 4fr);
    column-gap: 22px;
  }

  .rd-heads,
  .rd-models {
    column-gap: 10px;
  }

  .rd-node {
    padding: 9px 10px 10px;
  }

  .rd-desc {
    font-size: 14px;
  }
}

/* Mobile: stacked inputs → core → heads → models → output */
@media (max-width: 767.98px) {
  .research-pin {
    min-height: 0;
    padding: clamp(80px, 12vh, 112px) 0 clamp(64px, 10vh, 96px);
  }

  .s-research .research-title {
    font-size: var(--fs-h2-sm);
  }

  .rd {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }

  .rd::before,
  .rd-wires {
    display: none;
  }

  .rd-inputs {
    order: 0;
    align-self: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .rd-inputs .rd-col-label,
  .rd-imu {
    grid-column: 1 / -1;
  }

  .rd-core {
    order: 1;
    max-width: none;
    aspect-ratio: auto;
    min-height: 176px;
  }

  .rd-heads {
    order: 2;
  }

  .rd-models {
    order: 3;
  }

  .rd-heads,
  .rd-models {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd-mini {
    flex: none;
    aspect-ratio: 2 / 1;
  }

  .rd-models .rd-mini {
    aspect-ratio: 2.6 / 1;
  }

  .rd-out {
    order: 4;
    align-self: flex-start;
    margin-top: 26px;
  }
}

/* ========================================================================== 
   13. Roadmap
   Source: sections/roadmap.css
   ========================================================================== */

/* Section: roadmap ------------------------------------------------------------
   Default (no JS / mobile / reduced motion) = stacked stages.
   [data-mode="desktop"] = pinned horizontal drive (night -> twilight -> dawn). */

.s-roadmap {
  --rm-road-h: clamp(140px, 22vh, 260px);
  --rm-top: clamp(88px, 11vh, 120px);
  --rm-head-h: calc(17px + 14px + var(--fs-h2-sm) * 1.02 + 30px);
  --rm-pad-x: calc(var(--container-inset) + var(--gutter));
  position: relative;
  /* The atmospheric background is hidden in mobile and reduced-motion layouts. */
  background: var(--bg);
}

.roadmap-title {
  margin-top: 14px;
}

/* Stage copy ----------------------------------------------------------------- */
.s-roadmap .stage-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.s-roadmap .stage-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.s-roadmap .stage-num {
  font-family: var(--font-mono);
  font-size: var(--fs-label-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.s-roadmap .stage-title {
  margin-top: 20px;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.s-roadmap .stage-title .line {
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.s-roadmap .stage-lede {
  margin-top: 12px;
  max-width: 32ch;
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.s-roadmap .stage-features {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.s-roadmap .stage-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--text);
}

.s-roadmap .stage-cta {
  margin-top: 28px;
}

.rm-bullet {
  flex: none;
  width: 18px;
  height: 18px;
}

.rm-bullet--check .rm-bullet-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
}

.rm-bullet--check .rm-bullet-tick {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rm-bullet--dev .rm-bullet-ring {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.3;
  stroke-dasharray: 2.2 2.4;
}

.rm-bullet--dev .rm-bullet-dot {
  fill: var(--violet);
}

.rm-bullet--future .rm-bullet-ring {
  fill: rgba(255, 201, 139, 0.08);
  stroke: var(--dawn-5);
  stroke-width: 1.3;
}

.rm-bullet--future .rm-bullet-dot {
  fill: var(--dawn-4);
}

/* Stage 03 sits under a dawn sky: warm the secondary text so it stays legible */
.stage[data-stage="3"] .stage-lede {
  color: rgba(255, 232, 220, 0.8);
}

.stage[data-stage="3"] .stage-num {
  color: rgba(255, 222, 205, 0.72);
}

.stage[data-stage="3"] .chip {
  color: var(--dawn-5);
  background: rgba(255, 201, 139, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 139, 0.42);
}

.stage[data-stage="3"] .chip .chip-dot {
  background: var(--dawn-4);
  box-shadow: 0 0 10px rgba(255, 138, 92, 0.9);
}

/* Visual cards --------------------------------------------------------------- */
.rm-card {
  position: relative;
  width: 100%;
  aspect-ratio: 13 / 8;
  border-radius: 3px;
}

.rm-card-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rm-card-head {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.rm-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rm-card-tag svg {
  width: 13px;
  height: 13px;
}

.rm-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
}

.rm-card--s1 {
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.94), rgba(8, 11, 15, 0.9));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.rm-card--s1 .rm-card-svg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.rm-card--s1 .rm-card-tag {
  color: var(--accent-text);
}

.rm-halo {
  paint-order: stroke;
  stroke: #0a0e13;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.rm-card--s2 {
  background: rgba(5, 13, 25, 0.86);
  box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb), 0.3), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.rm-card--s2::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(var(--violet-rgb), 0.22);
  border-radius: 2px;
  pointer-events: none;
}

.rm-card--s2 .rm-card-head {
  color: var(--violet);
}

.rm-card--s3 {
  background: linear-gradient(180deg, rgba(12, 9, 24, 0.74), rgba(24, 12, 30, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 201, 139, 0.2), 0 40px 80px -40px rgba(10, 4, 20, 0.8);
}

.rm-card--s3.hud-frame::before {
  --c: rgba(255, 201, 139, 0.75);
}

.rm-card--s3 .rm-card-head {
  color: rgba(255, 214, 170, 0.85);
}

/* Road, car, markers ------------------------------------------------------------ */
.roadmap-road {
  position: relative;
  height: var(--rm-road-h);
  pointer-events: none;
}

.rm-asphalt {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #070a0e 0%, #080b10 29%, #0b1016 31%, #0c1118 62%, #0a0e13 88%, #05070a 100%);
  box-shadow: inset 0 1px 0 rgba(var(--w-rgb), 0.06);
}

.rm-dawnwash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 138, 92, 0.2) 0%, rgba(196, 80, 106, 0.1) 30%, rgba(196, 80, 106, 0.05) 62%, rgba(196, 80, 106, 0) 100%);
}

.rm-line {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
}

.rm-line--far {
  top: 30%;
  height: 1px;
  background: rgba(232, 237, 242, 0.24);
}

.rm-line--dash {
  top: 56%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(232, 237, 242, 0.55) 0 46px, transparent 46px 104px);
}

.rm-line--near {
  top: 90%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55), 0 0 28px rgba(var(--accent-rgb), 0.22);
}

.rm-post,
.rm-here {
  display: none;
}

.rm-car {
  position: absolute;
  left: 0;
  bottom: calc(var(--rm-road-h) * 0.085);
  height: calc(var(--rm-road-h) * 0.875);
  width: calc(var(--rm-road-h) * 3.25);
}

.rm-car-svg {
  width: 100%;
  height: 100%;
}

.rm-atmo,
.rm-progress-wrap {
  display: none;
}

/* ============================================================================
   Stacked layout (mobile, reduced motion, no JS)
   ============================================================================ */
html:not([data-mode="desktop"]) .roadmap-pin {
  padding-top: var(--section-pad);
}

html:not([data-mode="desktop"]) .roadmap-head {
  margin-bottom: clamp(16px, 4vw, 40px);
}

html:not([data-mode="desktop"]) .stage {
  display: grid;
  gap: 36px;
  padding: clamp(40px, 7vw, 72px) var(--rm-pad-x);
}

html:not([data-mode="desktop"]) .stage[data-stage="2"] {
  background: radial-gradient(70% 60% at 70% 55%, rgba(var(--violet-rgb), 0.09), transparent 70%);
}

html:not([data-mode="desktop"]) .stage[data-stage="3"] {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0) 0%, rgba(26, 20, 51, 0.6) 30%, rgba(74, 42, 94, 0.55) 72%, rgba(140, 58, 98, 0.5) 100%);
}

html:not([data-mode="desktop"]) .roadmap-road {
  --rm-road-h: 132px;
  overflow: hidden;
}

html:not([data-mode="desktop"]) .roadmap-road::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 70%;
  height: 46px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 201, 139, 0.45), rgba(255, 138, 92, 0.15) 60%, transparent);
}

html:not([data-mode="desktop"]) .rm-car {
  z-index: 2;
  left: calc(50% - var(--rm-road-h) * 148 / 160);
}

@media (min-width: 768px) {
  html:not([data-mode="desktop"]) .stage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
  }
}

@media (max-width: 767.98px) {
  .s-roadmap .stage-title {
    margin-top: 16px;
    font-size: clamp(24px, 6.4vw, 28px);
  }

  .s-roadmap .stage-features li {
    font-size: 16px;
  }

  .rm-card-head {
    top: 11px;
    left: 13px;
    right: 13px;
    font-size: 9px;
  }
}

/* ============================================================================
   Desktop: pinned horizontal drive
   ============================================================================ */
[data-mode="desktop"] .roadmap-pin {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

[data-mode="desktop"] .roadmap-head {
  position: absolute;
  z-index: 4;
  top: var(--rm-top);
  left: 0;
  right: 0;
  pointer-events: none;
}

[data-mode="desktop"] .rm-progress-wrap {
  position: absolute;
  z-index: 4;
  top: var(--rm-top);
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.rm-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 17px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.rm-prog-node {
  transition: color 0.4s;
}

.rm-prog-node.is-active {
  color: var(--text);
}

.rm-prog-seg {
  position: relative;
  display: block;
  width: clamp(36px, 4.4vw, 72px);
  height: 1px;
  overflow: hidden;
  background: var(--line-2);
}

.rm-prog-seg b {
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

[data-mode="desktop"] .roadmap-viewport {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

[data-mode="desktop"] .roadmap-track {
  position: relative;
  display: flex;
  width: 300%;
  height: 100%;
  will-change: transform;
}

[data-mode="desktop"] .stage {
  /* Percentage padding is relative to the three-screen track. */
  --rm-pad-x: calc(var(--container-inset) / 3 + var(--gutter));
  flex: 0 0 calc(100% / 3);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 4.5vw, 88px);
  align-items: center;
  padding: calc(var(--rm-top) + var(--rm-head-h)) var(--rm-pad-x) calc(var(--rm-road-h) + 22px);
}

[data-mode="desktop"] .stage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

[data-mode="desktop"] .rm-card {
  width: min(100%, calc((100svh - var(--rm-top) - var(--rm-head-h) - var(--rm-road-h) - 46px) * 1.625));
}

[data-mode="desktop"] .roadmap-road {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 100%;
}

[data-mode="desktop"] .rm-car {
  will-change: transform;
}

[data-mode="desktop"] .rm-post {
  position: absolute;
  bottom: 70%;
  display: block;
  height: 25%;
  border-left: 1px solid rgba(232, 237, 242, 0.28);
}

.rm-post span {
  position: absolute;
  top: 0;
  left: -1px;
  padding: 5px 8px 4px;
  border: 1px solid;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-100%);
}

.rm-post--violet span {
  color: var(--violet);
  border-color: rgba(var(--violet-rgb), 0.45);
  background: rgba(var(--violet-rgb), 0.08);
}

.rm-post--dawn span {
  color: var(--dawn-5);
  border-color: rgba(255, 201, 139, 0.45);
  background: rgba(255, 201, 139, 0.08);
}

[data-mode="desktop"] .rm-here {
  position: absolute;
  left: 11.6%;
  bottom: 70%;
  display: block;
  width: calc(var(--rm-road-h) * 1.25);
  transform: translateX(-50%);
}

.rm-here-svg {
  width: 100%;
  height: auto;
}

.rm-here-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: rm-ring 2.4s var(--ease-out) infinite paused;
}

.rm-onscreen .rm-here-ring {
  animation-play-state: running;
}

@keyframes rm-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Atmosphere (fixed inside the pin; colour crossfades + parallax on scroll) */
[data-mode="desktop"] .rm-atmo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.rm-sky {
  position: absolute;
  inset: 0 0 calc(var(--rm-road-h) - 2px) 0;
}

.rm-sky--night {
  background: radial-gradient(120% 55% at 50% 100%, rgba(28, 46, 74, 0.32), rgba(28, 46, 74, 0) 62%), var(--bg);
}

.rm-sky--violet {
  opacity: 0;
  background:
    radial-gradient(85% 55% at 58% 100%, rgba(var(--violet-rgb), 0.24), rgba(var(--violet-rgb), 0) 70%),
    linear-gradient(180deg, #05070a 0%, #07101c 34%, #0c1e35 70%, #173a5f 100%);
}

.rm-sky--dawn {
  opacity: 0;
  background:
    radial-gradient(55% 48% at 76% 100%, rgba(255, 214, 160, 0.5), rgba(255, 201, 139, 0) 70%),
    linear-gradient(180deg, #05070a 0%, #0a0c1a 18%, var(--dawn-1) 38%, var(--dawn-2) 62%, var(--dawn-3) 83%, var(--dawn-4) 95%, var(--dawn-5) 100%);
}

.rm-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 112%;
  bottom: var(--rm-road-h);
}

.rm-sun {
  position: absolute;
  left: 71%;
  bottom: var(--rm-road-h);
  width: 64vh;
  height: 64vh;
  margin: 0 0 -32vh -32vh;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 244, 222, 1) 0 9%, rgba(255, 214, 160, 0.85) 12%, rgba(255, 170, 110, 0.32) 26%, rgba(255, 138, 92, 0.1) 46%, rgba(255, 138, 92, 0) 68%);
}

.rm-hills {
  position: absolute;
  left: 0;
  bottom: calc(var(--rm-road-h) - 2px);
  width: 160%;
}

.rm-hills--far {
  height: clamp(48px, 10vh, 110px);
}

.rm-hills--near {
  height: clamp(30px, 6vh, 70px);
}

.rm-hills--far .rm-ridge-fill {
  fill: #0a0f19;
}

.rm-hills--near .rm-ridge-fill {
  fill: #06090d;
}

.rm-ridge-line {
  fill: none;
  stroke: rgba(var(--w-rgb), 0.08);
  stroke-width: 1;
}

.rm-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.6) 0%, rgba(5, 7, 10, 0.34) 34%, rgba(5, 7, 10, 0) 58%);
}

/* Shorter desktop viewports (e.g. 1280x720): tighten the copy so it clears the road */
@media (max-height: 820px) {
  [data-mode="desktop"] .s-roadmap .stage-title {
    margin-top: 14px;
    font-size: clamp(24px, 2.1vw, 32px);
  }

  [data-mode="desktop"] .s-roadmap .stage-lede {
    margin-top: 8px;
    font-size: 17px;
  }

  [data-mode="desktop"] .s-roadmap .stage-features {
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 22px;
    row-gap: 9px;
    margin-top: 18px;
  }

  [data-mode="desktop"] .s-roadmap .stage-features li {
    font-size: 15px;
  }

  [data-mode="desktop"] .s-roadmap .stage-cta {
    height: 42px;
    margin-top: 20px;
    padding: 0 20px;
    font-size: 15px;
  }
}

/* ========================================================================== 
   14. Pixels
   Source: sections/pixels.css
   ========================================================================== */

/* Section: From pixels to pedals ------------------------------------------------------------------------
   One camera frame through the foundation model, pinned and scrubbed. The WebGL scene fills the stage; the frame's
   place on screen comes from JS as --fl / --ft / --fw / --fh (px), so the copy and the instrument line up with it. */

.s-ptp {
  position: relative;
  background: var(--bg);
}

.ptp-pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.ptp-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ptp-scene canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* keeps the copy readable over tokens drifting across the stage */
.ptp-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.82) 24%, rgba(var(--bg-rgb), 0.38) 34%, rgba(var(--bg-rgb), 0) 46%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.6) 0%, rgba(var(--bg-rgb), 0) 18%, rgba(var(--bg-rgb), 0) 86%, rgba(var(--bg-rgb), 0.5) 100%);
}

/* HUD corner brackets around the camera frame (and the output frame) */
.ptp-bracket {
  position: absolute;
  z-index: 2;
  left: calc(var(--fl, 0px) - 14px);
  top: calc(var(--ft, 0px) - 14px);
  width: calc(var(--fw, 0px) + 28px);
  height: calc(var(--fh, 0px) + 28px);
  transform-origin: center top;
  pointer-events: none;
}

.ptp-bracket::before {
  --c: rgba(var(--accent-rgb), 0.55);
  --l: 20px;
}

/* Copy -------------------------------------------------------------------------------------------------- */
.ptp-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding-top: calc(var(--ft, calc(var(--nav-h) + clamp(28px, 8vh, 84px) + 14px)) - 14px);
  pointer-events: none;
}

.ptp-title {
  margin-top: 16px;
  max-width: 11ch;
}

.ptp-steps {
  width: clamp(216px, 26vw, 300px);
  margin-top: clamp(28px, 6vh, 60px);
  border-top: 1px solid var(--line);
}

.ptp-step {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(10px, 1.5vh, 14px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--muted);
  transition: color 0.5s var(--ease-out);
}

.ptp-num {
  flex: none;
  width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dim);
  transition: color 0.5s var(--ease-out);
}

.ptp-step.is-active {
  color: var(--text);
}

.ptp-step.is-active .ptp-num {
  color: var(--accent-text);
}

/* Steering and speed: the wheel turns a couple of degrees inside the speed arc ------------------------------- */
.ptp-instrument {
  position: absolute;
  z-index: 4;
  right: calc(100% - var(--fl, 0px) - var(--fw, 0px));
  top: calc(var(--ft, 0px) + var(--fh, 0px) + 22px);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.ptp-gauge {
  width: 66px;
  height: 66px;
  overflow: visible;
  color: var(--text);
}

/* a 270° speed arc (75 of 100 units), filled from its start; the wheel inside it */
.ptp-gauge-track,
.ptp-gauge-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(135deg);
  transform-origin: 60px 60px;
}

.ptp-gauge-track {
  stroke: rgba(var(--w-rgb), 0.12);
  stroke-dasharray: 75 100;
}

.ptp-gauge-fill {
  stroke: var(--accent);
  stroke-dasharray: 75 100;
  stroke-dashoffset: 75;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.75));
}

.ptp-wheel {
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.4));
}

.ptp-inst-label {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* No WebGL: the copy stays, the stage stays dark */
.s-ptp.is-fallback .ptp-bracket {
  display: none;
}

@media (min-width: 768px) {
  .ptp-copy .eyebrow {
    max-width: calc(var(--fl, 40vw) - var(--gutter) - 28px);
    white-space: normal;
  }
}

/* Phones: copy above the frame, the current step below it ------------------------------------------------ */
@media (max-width: 767.98px) {
  .ptp-shade {
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--bg-rgb), 0.55) 24%, rgba(var(--bg-rgb), 0) 34%, rgba(var(--bg-rgb), 0) 66%, rgba(var(--bg-rgb), 0.8) 82%);
  }

  .ptp-copy {
    padding-top: calc(var(--nav-h) + 18px);
  }

  .ptp-title {
    max-width: none;
  }

  .ptp-steps {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--ft, 0px) + var(--fh, 0px) + 96px);
    width: auto;
    margin: 0;
    border: 0;
  }

  .ptp-instrument {
    left: 50%;
    top: calc(var(--ft, 0px) + var(--fh, 0px) + 18px);
    transform: translateX(-50%);
  }

  .ptp-gauge {
    width: 58px;
    height: 58px;
  }

  [data-mode="mobile"] .ptp-step {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
    border: 0;
    font-size: 18px;
    color: var(--text);
  }

  [data-mode="mobile"] .ptp-step .ptp-num {
    color: var(--accent-text);
  }

  [data-mode="reduced"] .ptp-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    top: calc(var(--ft, 0px) + var(--fh, 0px) + 92px);
  }

  [data-mode="reduced"] .ptp-step {
    gap: 12px;
    font-size: 15px;
  }
}

/* ========================================================================== 
   15. Hardware
   Source: sections/hardware.css
   ========================================================================== */

/* Section: hardware — "The whole stack, for $1,500" + "Universal Fit" */

.s-hw {
  position: relative;
}

.s-hw .pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Faint engineering atmosphere behind each block, fading into --bg */
.s-hw .pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 68% 52%, rgba(var(--accent-rgb), 0.035), transparent 70%),
    linear-gradient(rgba(var(--w-rgb), 0.028) 1px, transparent 1px) center / 96px 96px,
    linear-gradient(90deg, rgba(var(--w-rgb), 0.028) 1px, transparent 1px) center / 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 66% 52%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 58% at 66% 52%, #000 25%, transparent 100%);
}

.s-hw .hw-grid,
.s-hw .fit-grid {
  position: relative;
  z-index: 1;
}

.s-hw .eyebrow {
  margin-bottom: 18px;
}

.s-hw .hw-title,
.s-hw .fit-title {
  font-size: var(--fs-h2-sm);
}

.s-hw .hw-text {
  margin-top: 18px;
  max-width: 36ch;
}

.s-hw .fit-lede {
  margin-top: 20px;
  color: var(--text);
}

.s-hw .fit-text {
  margin-top: 14px;
  max-width: 36ch;
}

.s-hw .hw-visual,
.s-hw .fit-visual {
  position: relative;
  pointer-events: none;
}

.s-hw .hw-visual svg,
.s-hw .fit-visual svg {
  width: 100%;
  height: 100%;
}

.s-hw .v-mob {
  display: none;
}

/* Receipt ------------------------------------------------------------------ */
.s-hw .receipt {
  --paper: #0a0e13;
  --receipt-price-width: 8rem;
  --receipt-price-gap: 20px;
  position: relative;
  max-width: 400px;
  margin-top: clamp(22px, 3.8vh, 38px);
  padding: 6px 18px 12px;
  font-family: var(--font-mono);
  background: linear-gradient(180deg, rgba(var(--w-rgb), 0.03), rgba(var(--w-rgb), 0.008) 70%), var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* HUD corner brackets framing the slip */
.s-hw .receipt::before {
  --c: rgba(var(--accent-rgb), 0.6);
  --l: 12px;
  --w: 1px;
  content: "";
  position: absolute;
  inset: -12px -10px -16px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}

/* Torn thermal-paper edge */
.s-hw .receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%230b0f14'/%3E%3C/svg%3E") 0 0 / 10px 6px repeat-x;
}

/* Printer mouth the slip feeds out of */
.s-hw .rc-slot {
  position: absolute;
  top: -5px;
  left: -7px;
  right: -7px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, #1b232d, #0d1218);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 16px -8px rgba(0, 0, 0, 0.9);
}

.s-hw .rc-slot::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 4px;
  height: 1px;
  background: #020304;
  box-shadow: 0 1px 0 rgba(var(--w-rgb), 0.07);
}

/* Print-head scan line */
.s-hw .rc-scan {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  z-index: 2;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(var(--accent-rgb), 0.55);
  opacity: 0;
  pointer-events: none;
}

.s-hw .receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 10px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.s-hw .receipt-head span:last-child {
  flex: 0 0 var(--receipt-price-width);
  padding-left: var(--receipt-price-gap);
  color: var(--accent-text);
}

.s-hw .receipt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13.5px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.s-hw .receipt-table th,
.s-hw .receipt-table td {
  padding: 0;
  font-weight: 400;
  vertical-align: middle;
}

.s-hw .receipt-price-col,
.s-hw .receipt-table td {
  width: var(--receipt-price-width);
}

.s-hw .receipt-table td {
  padding-left: var(--receipt-price-gap);
  text-align: left;
}

.s-hw .receipt-line th,
.s-hw .receipt-line td {
  padding-block: clamp(6px, 1.05vh, 10px);
  color: var(--text);
}

.s-hw .receipt-line:first-child th,
.s-hw .receipt-line:first-child td {
  padding-top: clamp(10px, 1.6vh, 14px);
}

.s-hw .receipt-line th {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

/* Dotted leader between item and price (scaled in as the line prints) */
.s-hw .receipt-line th::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 2px;
  margin-left: 10px;
  vertical-align: 0.28em;
  background: radial-gradient(circle at 1px 1px, rgba(var(--w-rgb), 0.32) 0.8px, transparent 1.15px) 0 0 / 6px 2px repeat-x;
  transform: scaleX(var(--lead, 1));
  transform-origin: 0 50%;
}

.s-hw .receipt-line td {
  white-space: nowrap;
}

.s-hw .receipt-total-row th,
.s-hw .receipt-total-row td {
  padding-top: clamp(10px, 1.6vh, 14px);
  border-top: 1px dashed var(--line-2);
}

.s-hw .receipt-total-row th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-hw .receipt-total-row td {
  position: relative;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.s-hw .receipt-total {
  white-space: nowrap;
}

/* Front radar: part of the sensing but not of the price, so it sits after the total, unpriced */
.s-hw .receipt-note-row th,
.s-hw .receipt-note-row td {
  padding-top: clamp(8px, 1.3vh, 12px);
  border-top: 1px dashed var(--line);
  vertical-align: top;
}

.s-hw .receipt-note-row th {
  position: relative;
  padding-left: 16px;
  text-align: left;
  font-size: 13px;
  color: rgba(var(--text-rgb), 0.7);
}

.s-hw .receipt-note-row th::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--violet);
}

.s-hw .receipt-note-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.s-hw .receipt-note-row td {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

/* Odometer overlay (decorative). The real "$1,500" stays in the DOM for assistive tech. */
.s-hw .has-odo .receipt-total {
  color: transparent;
}

.s-hw .rc-odo {
  position: absolute;
  inset: clamp(10px, 1.6vh, 14px) 0 0 var(--receipt-price-gap);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.s-hw .rc-col {
  display: block;
  width: 1ch;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  text-align: center;
}

.s-hw .rc-col--digit {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.s-hw .rc-strip {
  display: block;
  white-space: pre;
  line-height: 1.2em;
}

.s-hw .rc-glow {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 6ch;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(var(--accent-rgb), 0.6);
  transform-origin: 0 50%;
  opacity: 0;
}

/* Desktop: two pinned, full-viewport blocks ---------------------------------- */
@media (min-width: 768px) {
  .s-hw .pin {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding: 84px 0 20px;
  }

  .s-hw .hw-grid,
  .s-hw .fit-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 56px);
    height: 100%;
  }

  /* keep the receipt clear of the fixed mini-HUD (bottom-left) */
  .s-hw .hw-copy {
    padding-bottom: clamp(16px, 9vh, 96px);
  }

  .s-hw .fit-copy {
    padding-bottom: clamp(16px, 6vh, 64px);
  }

  .s-hw .hw-visual,
  .s-hw .fit-visual {
    height: 100%;
    min-height: 0;
  }

  .s-hw .hw-visual svg,
  .s-hw .fit-visual svg {
    position: absolute;
    inset: 0;
  }
}

/* Short desktop viewports (e.g. 1280x720): tighter copy so the receipt clears the mini-HUD */
@media (min-width: 768px) and (max-height: 820px) {
  .s-hw .eyebrow {
    margin-bottom: 12px;
  }

  .s-hw .hw-title {
    font-size: clamp(26px, 2.6vw, 36px);
  }

  .s-hw .hw-text {
    margin-top: 12px;
    font-size: 16px;
  }

  .s-hw .receipt {
    margin-top: 20px;
  }

  .s-hw .receipt-head {
    padding: 10px 0 8px;
  }

  .s-hw .hw-copy {
    padding-bottom: 13vh;
  }
}

/* Mobile: stacked, no pins ---------------------------------------------------- */
@media (max-width: 767.98px) {
  .s-hw .hw-pin {
    padding: clamp(80px, 14vh, 120px) 0 24px;
  }

  .s-hw .fit-pin {
    padding: 56px 0 48px;
  }

  .s-hw .pin::before {
    -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 70%, #000 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 40% at 50% 70%, #000 20%, transparent 100%);
  }

  .s-hw .hw-grid,
  .s-hw .fit-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .s-hw .receipt {
    max-width: none;
    margin-inline: 4px;
  }

  .s-hw .v-desk {
    display: none;
  }

  .s-hw .v-mob {
    display: block;
  }

  .s-hw .hw-visual {
    aspect-ratio: 520 / 700;
  }

  .s-hw .fit-visual {
    aspect-ratio: 520 / 720;
  }
}

/* Reduced motion: static, fully printed receipt with the real total text */
html[data-mode="reduced"] .s-hw .rc-odo {
  display: none;
}

html[data-mode="reduced"] .s-hw .has-odo .receipt-total {
  color: inherit;
}

/* ========================================================================== 
   16. Cta
   Source: sections/cta.css
   ========================================================================== */

/* Section: cta (The Road Ahead) */
.s-cta {
  position: relative;
  background: var(--bg);
}

.cta-pin {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.cta-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-gl,
.cta-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-overlay {
  pointer-events: none;
}

/* Warm wash that rises with the dawn (also the no-WebGL fallback) */
.cta-sky {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 78%, rgba(255, 170, 110, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(10, 12, 26, 0) 40%, rgba(196, 80, 106, 0.05) 75%, rgba(255, 138, 92, 0.04) 100%);
  mix-blend-mode: screen;
}

.is-fallback .cta-sky {
  opacity: 1 !important;
  mix-blend-mode: normal;
  background: var(--dawn);
}

.is-fallback .cta-gl,
.is-fallback .cta-overlay {
  display: none;
}

/* Legibility for the headline over the sky; grounding fade at the bottom */
.cta-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 32%, rgba(5, 7, 10, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.75) 0%, rgba(5, 7, 10, 0) 22%, rgba(5, 7, 10, 0) 80%, rgba(5, 7, 10, 0.85) 100%);
}

.s-cta .btn-ghost {
  background: rgba(5, 7, 10, 0.4);
}

.cta-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(96px, 15vh, 168px);
}

.cta-title {
  margin-top: 22px;
  max-width: 15em;
  font-size: var(--fs-display);
  line-height: 1.05;
}

.cta-title .line-mask {
  justify-content: center;
}

/* the headline only breaks between its three phrases */
.cta-phrase {
  white-space: nowrap;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4.5vh, 44px);
}

@media (max-width: 767.98px) {
  .cta-content {
    padding-top: 108px;
  }

  .cta-title {
    font-size: clamp(28px, 7.4vw, 32px);
  }
}

/* ========================================================================== 
   17. Theme
   Source: theme.css
   ========================================================================== */

/* Theme ---------------------------------------------------------------------
   Tokens live in tokens.css (dark by default, :root[data-theme="light"] for light). This file holds what
   tokens alone can't express: the toggle, the nav over the hero film, and the sections that stay dark in
   both themes (hero, pixels to pedals, final CTA, in-car display, HUD) because they sit on film/WebGL. */

/* A nested data-theme="dark" re-declares the tokens; plain `color` is inherited already resolved, so reset it. */
[data-theme="dark"]:not(:root),
:root[data-theme="light"] :is(.rd-in, .rd-core, .s-hw .receipt) {
  color: var(--text);
  color-scheme: dark;
}

/* Toggle -------------------------------------------------------------------- */
.theme-toggle {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.theme-toggle:hover {
  background: rgba(var(--w-rgb), 0.07);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

/* Show the icon of the theme you would switch to */
.theme-icon--moon {
  opacity: 0;
  transform: rotate(-60deg) scale(0.6);
}

:root[data-theme="light"] .theme-icon--sun {
  opacity: 0;
  transform: rotate(60deg) scale(0.6);
}

:root[data-theme="light"] .theme-icon--moon {
  opacity: 1;
  transform: none;
}

/* Wordmark ------------------------------------------------------------------ */
:root[data-theme="light"] .wordmark {
  color: var(--text);
}

/* Nav ------------------------------------------------------------------------
   Before the glass state the bar floats over the hero film, which is dark in both themes. */
:root[data-theme="light"] .nav:not(.is-scrolled) {
  --text: #e8edf2;
  --text-rgb: 232, 237, 242;
  --w-rgb: 255, 255, 255;
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --muted: #8a96a3;
}

:root[data-theme="light"] .nav:not(.is-scrolled) .wordmark {
  color: #fff;
}

:root[data-theme="light"] .nav:not(.nav--about).is-scrolled .nav-links a:not(.is-current):not(:hover) {
  color: var(--muted);
}

@media (max-width: 960px) {
  .nav .nav-links a,
  .nav:not(.is-scrolled) .nav-links a {
    color: var(--text);
  }

  :root[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: inset 0 0 0 1px rgba(8, 16, 24, 0.17), 0 30px 60px -24px rgba(8, 16, 24, 0.35);
  }

  /* The panel is light even while the bar above it still sits on the dark film */
  :root[data-theme="light"] .nav:not(.nav--about) .nav-links a,
  :root[data-theme="light"] .nav:not(.nav--about) .nav-links a.is-current {
    color: #0b141c;
  }

  :root[data-theme="light"] .nav:not(.nav--about) .nav-links a:hover {
    background: rgba(8, 16, 24, 0.06);
  }
}

/* Phones: the toggle makes a third control, so the bar tightens to keep the menu button on screen */
@media (max-width: 480px) {
  .nav-inner {
    gap: 8px;
  }

  .wordmark-logo {
    height: 22px;
  }

  .nav-actions {
    gap: 6px;
  }

  .theme-toggle,
  .nav-menu-btn {
    width: 36px;
    height: 36px;
  }

  .nav-actions .btn {
    padding: 0 12px;
  }
}

@media (max-width: 380px) {
  .wordmark-logo {
    height: 19px;
  }

  .theme-toggle,
  .nav-menu-btn {
    width: 34px;
    height: 34px;
  }

  .nav-actions .btn {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Drawn scenes (JS canvas/SVG panels) are device screens: dark in both themes, framed on the light page */
:root[data-theme="light"] [data-theme="dark"]:is(.problem-visual, .cap-stage, .how-visual, .rd-mini, .hw-visual, .fit-visual, .stage-visual, .canyon-graph, .cap-mini) {
  background-color: #0b0f14;
  border-radius: var(--radius-lg);
}

:root[data-theme="light"] .hud-mini {
  background: rgba(5, 7, 10, 0.84);
}

/* Instrument cards are dark panels too */
:root[data-theme="light"] .s-traction .traction-card[data-theme="dark"] {
  box-shadow: inset 0 0 0 1px var(--line-2), 0 28px 50px -34px rgba(8, 16, 24, 0.45);
}

/* The problem copy is recoloured by script with fixed dark-theme values (near-white when read, amber
   highlights); a lightness flip that keeps hue turns them into dark ink and a deeper amber. */
:root.js[data-theme="light"] .problem-text {
  filter: invert(1) hue-rotate(180deg);
}

:root[data-theme="light"] .s-problem.is-static .kw {
  color: #ffb547;
}

/* Glass bar: denser on light so it reads over the dark film sections too */
:root[data-theme="light"] .nav:not(.nav--about).is-scrolled::before {
  background: rgba(var(--bg-rgb), 0.86);
}

/* Footer copy of the toggle (every page carries one in the nav and one here) */
.footer-legal {
  align-items: center;
}

.theme-toggle--footer {
  width: 34px;
  height: 34px;
  margin-left: 6px;
}

/* Light theme: a soft tint per section --------------------------------------------------------------
   Each section re-declares --bg / --bg-rgb, so every fade and wash that references them (copy gradients,
   pin edges, glass) blends into that section's tint. --glow is one faint radial lift per section.
   Dark sections (hero, where, pixels to pedals, roadmap, CTA) are untouched. */
:root[data-theme="light"] :is(.s-problem, .s-cap, .s-canyon, .s-traction, .s-how, .s-research, .s-hw, .site-footer) {
  background:
    radial-gradient(60% 45% at 88% 12%, var(--glow), transparent 70%),
    var(--bg);
}

:root[data-theme="light"] .s-problem {
  --bg: #fbf3e6; --bg-rgb: 251, 243, 230;           /* warm cream: the amber "problem" */
  --glow: rgba(255, 181, 71, 0.16);
}

:root[data-theme="light"] .s-cap {
  --bg: #e6f1fa; --bg-rgb: 230, 241, 250;           /* clear sky */
  --glow: rgba(15, 163, 230, 0.14);
}

:root[data-theme="light"] .s-canyon {
  --bg: #ecf3ea; --bg-rgb: 236, 243, 234;           /* canyon sage */
  --glow: rgba(110, 160, 110, 0.14);
}

:root[data-theme="light"] .s-traction {
  --bg: #f9fbfd; --bg-rgb: 249, 251, 253;           /* near white: the dark cards carry the colour */
  --glow: rgba(1, 103, 149, 0.07);
}

:root[data-theme="light"] .s-how {
  --bg: #efecfa; --bg-rgb: 239, 236, 250;           /* soft lavender */
  --glow: rgba(90, 73, 214, 0.12);
}

:root[data-theme="light"] .s-research {
  --bg: #e3f0f3; --bg-rgb: 227, 240, 243;           /* pale cyan */
  --glow: rgba(1, 150, 170, 0.13);
}

:root[data-theme="light"] .s-hw {
  --bg: #f1efeb; --bg-rgb: 241, 239, 235;           /* warm stone: the dark hardware scenes pop */
  --glow: rgba(1, 103, 149, 0.08);
}

:root[data-theme="light"] .site-footer {
  --bg: #e4ebf2; --bg-rgb: 228, 235, 242;
  --glow: rgba(1, 103, 149, 0.08);
}

/* Gradient version: top tint -> deeper tint, on a slight diagonal. --bg stays at the midpoint so the
   fades and glass that reference it blend in. Pinned sections are many screens tall, so their colour
   drifts slowly as you scroll through them. */
:root[data-theme="light"] :is(.s-problem, .s-cap, .s-canyon, .s-traction, .s-how, .s-research, .s-hw, .site-footer) {
  background:
    radial-gradient(60% 40% at 88% 8%, var(--glow), transparent 70%),
    linear-gradient(168deg, var(--g1) 0%, var(--g2) 100%);
}

:root[data-theme="light"] .s-problem  { --g1: #fef7ec; --g2: #f6e6d0; --bg: #faefe0; --bg-rgb: 250, 239, 224; }
:root[data-theme="light"] .s-cap      { --g1: #ecf5fc; --g2: #d8e9f7; --bg: #e2eff9; --bg-rgb: 226, 239, 249; }
:root[data-theme="light"] .s-canyon   { --g1: #f0f6ed; --g2: #dfebd9; --bg: #e8f1e3; --bg-rgb: 232, 241, 227; }
:root[data-theme="light"] .s-traction { --g1: #fcfdfe; --g2: #e6eef6; --bg: #f1f6fa; --bg-rgb: 241, 246, 250; }
:root[data-theme="light"] .s-how      { --g1: #f4f1fd; --g2: #e3def6; --bg: #ece8f9; --bg-rgb: 236, 232, 249; }
:root[data-theme="light"] .s-research { --g1: #e9f4f7; --g2: #d6eaef; --bg: #dfeff3; --bg-rgb: 223, 239, 243; }
:root[data-theme="light"] .s-hw       { --g1: #f5f3ef; --g2: #e6e3dc; --bg: #eeebe5; --bg-rgb: 238, 235, 229; }
:root[data-theme="light"] .site-footer{ --g1: #eaf0f6; --g2: #d6e1ec; --bg: #e0e8f1; --bg-rgb: 224, 232, 241; }

/* ========================================================================== 
   18. Responsive
   Source: responsive.css
   ========================================================================== */

/* Responsive layer ---------------------------------------------------------------------------------
   Load last. Written mobile-first: the base rules are the phone rules, and `min-width` queries add what
   changes on larger screens. It only touches what an audit found at 320 to 1280px (nav fit, touch target
   size, footer, safe areas, tablet tuning). The sections' own layouts live in their files, and the
   scroll-driven scenes switch between "mobile" and "desktop" at 768px inside dist/app.js. */

/* Notches and rounded corners (viewport-fit=cover is set): keep content out of the safe areas */
.container {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Match index.html's final horizontal spacing rules, including its header,
   hero and footer exceptions. Do not change pinned heights or vertical padding. */
.section.s-hero {
  --gutter: clamp(24px, 7vw, 136px);
}

.hero-content {
  max-width: 100%;
}

.site-footer .container {
  --gutter: clamp(20px, 5vw, 80px);
}

@media (max-width: 1580px) {
  :root,
  [data-theme] {
    --gutter: 0px;
  }

  .nav-inner {
    max-width: 100%;
    --gutter: clamp(20px, 3vw, 80px);
  }

  .section.s-hero {
    --gutter: clamp(24px, 3.1vw, 136px);
  }
}

@media (max-width: 1390px) {
  :root,
  [data-theme] {
    --maxw: 100%;
    --gutter: clamp(20px, 4vw, 80px);
    --container-inset: 0%;
  }
}

@media (max-width: 1240px) {
  :root,
  [data-theme] {
    --gutter: clamp(20px, 2vw, 80px);
  }

  .nav-inner {
    --gutter: clamp(20px, 1.7vw, 80px);
  }

  .section.s-hero {
    --gutter: clamp(24px, 2vw, 136px);
  }

  .site-footer .container {
    --gutter: clamp(20px, 2vw, 80px);
  }
}

.site-footer {
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Nav --------------------------------------------------------------------------------------------- */
.nav-inner {
  gap: 6px;
}

.wordmark-logo {
  height: 20px;
}

.nav-actions {
  gap: 6px;
}

/* Touch targets: 40px, up from 34 to 36 */
.theme-toggle,
.nav-menu-btn {
  width: 40px;
  height: 40px;
}

.nav-actions .btn {
  padding: 0 12px;
  font-size: 13.5px;
}

/* The same "Get in Touch" lives in the menu panel, for widths where the bar has no room for it */
.nav-links .nav-cta {
  display: none;
}

.nav-links .nav-cta .btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 379.98px) {
  .theme-toggle,
  .nav-menu-btn {
    width: 38px;
    height: 38px;
  }

  .nav-actions .btn {
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 339.98px) {
  .nav-actions .btn {
    display: none;
  }

  .nav-links .nav-cta {
    display: block;
  }
}

@media (min-width: 481px) {
  .nav-inner {
    gap: 24px;
  }

  .nav-actions {
    gap: 10px;
  }

  .wordmark-logo {
    height: 26px;
  }

  .nav-actions .btn {
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .wordmark-logo {
    height: 36px;
  }
}

/* Dialog close button: 44px */
.modal-close {
  width: 44px;
  height: 44px;
}

/* Footer: links are tall enough to hit with a thumb (phones), compact again on larger screens ------- */
.footer-col ul {
  gap: 0;
  margin-top: 10px;
}

.footer-col a {
  display: inline-block;
  padding: 11px 0;
}

.footer-bottom {
  /* room under the copyright for the cookie-consent button that floats bottom-left */
  padding-bottom: 56px;
}

.footer-legal {
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer-legal a {
  padding: 11px 0;
}

/* Compact links only where there is a mouse; touch tablets keep the large targets */
@media (min-width: 768px) and (hover: hover) {
  .footer-col ul {
    gap: 10px;
    margin-top: 18px;
  }

  .footer-col a {
    padding: 0;
  }

  .footer-legal a {
    padding: 0;
  }
}

@media (min-width: 1100px) {
  .footer-bottom {
    padding-bottom: 0;
  }
}

/* Tablet (768 to 1100): the pinned desktop scenes are narrow here, so give the scene column more room */
@media (min-width: 768px) and (max-width: 1100px) {
  .s-cap .cap-grid {
    grid-template-columns: minmax(210px, 30%) minmax(0, 1fr);
    column-gap: 22px;
  }

  .s-cap .cap-name {
    font-size: 15px;
  }

  .rd-desc {
    font-size: 13px;
    line-height: 1.38;
  }
}

/* Technology scene, narrow stage (tablets): the title, the big speed readout and the status text no
   longer fit on one line, so keep "CH 03 / 07" and "ENGAGED". The name is already lit in the list beside it. */
@media (min-width: 768px) and (max-width: 959.98px) {
  .s-cap .cap-stage .bev-ch-sep,
  .s-cap .cap-stage .bev-ch-name,
  .s-cap .cap-stage .bev-status-sep,
  .s-cap .cap-stage .bev-road {
    display: none;
  }
}

/* About-page header styling, scoped to this homepage; navigation destinations stay unchanged. */
.nav.nav--about {
  height: 70px;
  font-size: 16px;
  line-height: 1.68;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.33) 50%, rgba(237, 221, 83, 0));
}

.nav.nav--about::before {
  z-index: -1;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav--about .nav-inner {
  max-width: 94%;
  padding-inline: clamp(20px, 4vw, 80px);
  gap: 36px;
}

.nav--about .wordmark {
  position: relative;
  min-width: 266px;
  margin-top: -9px;
}

.nav--about .wordmark img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nav--about .logo-dark {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.nav--about .nav-inner > nav {
  margin-left: auto;
}

.nav--about .nav-footer-menu,
.nav--about .nav-idrive {
  display: none;
}

.nav.nav--about .nav-links a {
  display: block;
  margin-top: 3px;
  padding: 7px 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.955rem;
  font-weight: 500;
}

.nav.nav--about .nav-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* The active link is marked by .nav-pill (moved by include/shared/site.js) instead of the bundle's dot. */
.nav--about .nav-links a.is-current::after {
  content: none;
}

.nav--about .nav-pill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #00a8cc;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.nav--about .btn-primary {
  height: auto;
  padding: 9px 20px;
  border: 1px solid #00a8cc;
  background: #00a8cc;
  box-shadow: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.68;
}

.nav.nav--about .btn-primary:hover {
  background: #0090b0;
}

.nav--about.is-scrolled .logo-white {
  opacity: 0;
}

.nav--about.is-scrolled .logo-dark {
  opacity: 1;
}

.nav.nav--about.is-scrolled .nav-links a {
  color: #111;
}

.nav.nav--about.is-scrolled .nav-links a:hover {
  background: rgba(0, 0, 0, 0.06);
}

:root[data-theme="dark"] .nav.nav--about::before {
  background: #0a0a0ceb;
}

:root[data-theme="dark"] .nav--about.is-scrolled .logo-white {
  opacity: 1;
}

:root[data-theme="dark"] .nav--about.is-scrolled .logo-dark {
  opacity: 0;
}

:root[data-theme="dark"] .nav.nav--about.is-scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1291px) {
  .nav.nav--about .nav-links a {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.4px;
  }

  .nav.nav--about .btn-primary {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.4px;
  }
}

@media (max-width: 1580px) {
  .nav--about .nav-inner {
    max-width: 100%;
    padding-inline: clamp(20px, 3vw, 80px);
    gap: 0;
  }

  .nav--about .nav-links {
    gap: 0;
  }

  .nav.nav--about .nav-links a {
    font-size: 0.855rem;
  }

  .nav.nav--about .btn-primary {
    font-size: 0.755rem;
  }
}

@media (min-width: 1211px) and (max-width: 1580px) {
  .nav--about .nav-actions {
    margin-left: 16px;
  }
}

.nav-backdrop {
  display: none;
}

@media (max-width: 1210px) {
  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }

  .nav.nav--about {
    height: 60px;
  }

  .nav--about .nav-actions > .btn {
    display: none;
  }

  .nav--about .nav-menu-btn {
    position: absolute;
    top: -1px;
    right: -1px;
    display: flex;
    width: 55px;
    height: 100%;
    padding: 6px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav--about:is(.is-open, .is-scrolled) .nav-menu-btn {
    background: #2e3248;
  }

  .nav--about .nav-menu-btn span,
  .nav--about .nav-menu-btn span::before,
  .nav--about .nav-menu-btn span::after {
    width: 22px;
    height: 2px;
    background: #fff;
  }

  .nav--about:not(.is-open) .nav-menu-btn span::before {
    transform: translateY(-7px);
  }

  .nav--about:not(.is-open) .nav-menu-btn span::after {
    transform: translateY(7px);
  }

  .nav--about.is-open .nav-menu-btn span {
    background: transparent;
  }

  .nav--about.is-open .nav-menu-btn span::before,
  .nav--about.is-open .nav-menu-btn span::after {
    background: #fefefe9d;
  }

  .nav.nav--about .nav-links {
    position: fixed;
    top: 60px;
    left: auto;
    right: 0;
    width: min(78vw, 320px);
    height: calc(100dvh - 61px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 40px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.38s;
  }

  .nav.nav--about.is-open .nav-links {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .nav.nav--about .nav-links a {
    margin: 0;
    padding: 16px 28px;
    border-bottom: 1px dashed rgb(0 0 0 / 17%);
    border-radius: 0;
    color: #000;
    font-weight: 500;
  }

  .nav.nav--about .nav-links a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.06);
  }

  .nav--about .nav-pill {
    display: none;
  }

  .nav--about .nav-links .nav-cta,
  .nav--about .nav-links .nav-idrive {
    display: block;
    order: -1;
  }

  .nav--about .nav-footer-menu {
    display: block;
  }

  .nav.nav--about .nav-cta .btn {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 14px 28px;
    border: 0;
    border-radius: 0;
    background: #00a8cc;
    color: #031820;
    font-size: 0.855rem;
    font-weight: 600;
    letter-spacing: 0.065em;
  }

  .nav.nav--about .nav-cta .btn:hover {
    background: #00b8d8;
  }

  .nav.nav--about .nav-cta .btn:active {
    background: #0094b5;
  }

  .nav.nav--about .nav-cta .btn:focus-visible {
    outline: 2px solid #031820;
    outline-offset: -4px;
  }

  .nav.nav--about.is-open::before {
    opacity: 1;
    background: #fff;
  }

  .nav--about.is-open .logo-white {
    opacity: 0;
  }

  .nav--about.is-open .logo-dark {
    opacity: 1;
  }

  :root[data-theme="dark"] .nav.nav--about.is-open::before,
  :root[data-theme="dark"] .nav.nav--about .nav-links {
    background: #000;
  }

  :root[data-theme="dark"] .nav--about.is-open .logo-white {
    opacity: 1;
  }

  :root[data-theme="dark"] .nav--about.is-open .logo-dark {
    opacity: 0;
  }

  :root[data-theme="dark"] .nav.nav--about .nav-links a {
    color: #fff;
    border-bottom-color: rgb(255 255 255 / 17%);
  }

  .nav-backdrop {
    position: fixed;
    inset: 60px 0 0;
    z-index: calc(var(--z-nav) - 1);
    display: block;
    background: rgba(2, 5, 16, 0.6);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0s linear 0.38s;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  :root[data-theme="dark"] .nav-backdrop {
    background: #020510de;
  }
}

@media (max-width: 720px) {
  .nav--about .nav-inner {
    padding-inline: 20px;
  }

  .nav--about .wordmark img {
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav.nav--about,
  .nav--about *,
  .nav--about::before,
  .nav--about *::before,
  .nav--about *::after,
  .nav-backdrop {
    transition: none !important;
  }
}

/* About-page footer: retain this page's links and its existing theme controller. */
:root .site-footer.footer--about {
  padding: 72px 0 max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #00070e;
  color: #fff;
  font-size: 16px;
  line-height: 1.68;
}

.footer--about .container {
  max-width: 94%;
  padding-inline: clamp(20px, 5vw, 80px);
}

.footer--about .footer-top {
  position: relative;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}

.footer--about .footer-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.07);
}

.footer--about .wordmark {
  min-width: 266px;
  margin-top: -9px;
}

.footer--about .wordmark img {
  display: block;
  height: 28px;
  width: auto;
}

.footer--about .footer-brand p {
  max-width: none;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.footer--about .footer-col h2 {
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
}

.footer--about .footer-col ul {
  display: block;
  margin: 0;
}

.footer--about .footer-col a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  font-size: 0.862rem;
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
  transition: color 0.15s;
}

.footer--about .footer-col a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer--about .footer-bottom {
  margin-top: 0;
  padding-block: 28px 0;
  border: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

.footer--about .cpwr {
  color: #82868f;
}

.footer--about .footer-legal {
  gap: 24px;
  flex-wrap: nowrap;
}

.footer--about .footer-legal a {
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.15s;
}

.footer--about .footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer--about .footer-theme {
  margin-top: 20px;
}

.footer--about .theme-toggle {
  display: inline-block;
  width: 62px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.footer--about .theme-toggle:hover {
  border-color: rgba(0, 208, 245, 0.45);
}

.footer--about .theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe7b0 0%, #ffd27a 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.footer--about .ti {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: opacity 0.2s ease;
}

.footer--about .ti-sun {
  color: #8a5a00;
  opacity: 1;
}

.footer--about .ti-moon {
  color: #cfeeff;
  opacity: 0;
}

:root[data-theme="dark"] .site-footer.footer--about {
  background: #000;
  border-top-color: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .footer--about .footer-top::after {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .footer--about .footer-brand p {
  color: rgba(255, 255, 255, 0.42);
}

:root[data-theme="dark"] .footer--about :is(.footer-col h2, .cpwr) {
  color: #fff;
}

:root[data-theme="dark"] .footer--about :is(.footer-col a, .footer-legal a) {
  color: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .footer--about .footer-col a:hover {
  color: rgba(255, 255, 255, 0.94);
}

:root[data-theme="dark"] .footer--about .footer-legal a:hover {
  color: rgba(255, 255, 255, 0.78);
}

:root[data-theme="dark"] .footer--about .theme-toggle {
  background: rgba(0, 200, 245, 0.16);
  border-color: rgba(0, 208, 245, 0.4);
}

:root[data-theme="dark"] .footer--about .theme-toggle-knob {
  transform: translateX(32px);
  background: linear-gradient(135deg, #1aa9d6 0%, #0d6f96 100%);
}

:root[data-theme="dark"] .footer--about .ti-sun {
  opacity: 0;
}

:root[data-theme="dark"] .footer--about .ti-moon {
  opacity: 1;
}

@media (max-width: 1390px) {
  .footer--about .container {
    max-width: 100%;
  }
}

@media (max-width: 1240px) {
  .footer--about .container {
    padding-inline: clamp(20px, 2vw, 80px);
  }
}

@media (max-width: 1024px) {
  .footer--about .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer--about .footer-brand {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-column: 1 / -1;
    column-gap: 24px;
    align-items: start;
  }

  .footer--about .wordmark {
    grid-column: 1;
    grid-row: 1;
  }

  .footer--about .footer-brand p {
    grid-column: 1;
    grid-row: 2;
    margin-top: 8px;
  }

  .footer--about .footer-theme {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 0;
    align-self: center;
  }
}

@media (max-width: 800px) {
  .footer--about .footer-col,
  .footer--about .footer-legal {
    display: none;
  }

  .footer--about .footer-bottom {
    justify-content: center;
  }

  .footer--about .cpwr {
    align-self: center;
    text-align: center;
  }
}

@media (max-width: 649px) {
  .footer--about .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .footer--about .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer--about .footer-theme {
    grid-column: 1;
    grid-row: 3;
    margin-top: 16px;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer--about .theme-toggle,
  .footer--about .theme-toggle-knob,
  .footer--about .ti {
    transition: none;
  }
}


/* CAPTCHA VISIBILITY HIDDEN */
.grecaptcha-badge {
  visibility: hidden;
}

/* Contact popup and toasts in the other pages' design (assets/css/all-styles.css). Rules for class names
   this page also uses (.eyebrow, .btn, .field-error, .error-notification) are scoped to the popup. */
.popup-overlay {
  --pp-ink: #0a0f1e;
  --pp-ink-2: #1e2a3a;
  --pp-muted: #4b5a70;
  --pp-faint: #8696ac;
  --pp-bg-2: #f8fafd;
  --pp-bg-3: #f1f5fb;
  --pp-border: #dde5f0;
  --pp-border-2: #c7d4e8;
  --pp-blue: #00a8cc;
  --pp-blue-title-top: #057a93;
  --pp-red: #e8001a;
  --pp-shadow-lg: 0 12px 40px rgba(10, 15, 40, 0.13), 0 4px 12px rgba(10, 15, 40, 0.07);
  --pp-font: "Geist", sans-serif;

  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 9, 28, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
  /* the other pages' body text, which everything in the popup inherits */
  color: var(--pp-ink);
  font-family: var(--pp-font);
  font-size: 16px;
  line-height: 1.68;
}

[data-theme="dark"] .popup-overlay {
  --pp-ink: #e8f1fc;
  --pp-ink-2: #b6cbe0;
  --pp-muted: #8aabcc;
  --pp-faint: #5e7898;
  --pp-bg-2: #10131d;
  --pp-bg-3: #0a0c0f;
  --pp-border: rgba(255, 255, 255, 0.11);
  --pp-border-2: rgba(255, 255, 255, 0.2);
  --pp-blue-title-top: #2ad4f2;
  --pp-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.65), 0 8px 20px rgba(0, 0, 0, 0.45);

  background: rgba(1, 3, 12, 0.86);
}

.popup-overlay.active {
  display: flex;
}

.popup-overlay.active.popup-open {
  opacity: 1;
}

.popup-overlay.hide,
.popup-overlay .hide {
  display: none !important;
}

.popup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--pp-shadow-lg);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.36, 0.64, 1), opacity 0.25s ease;
}

.popup-overlay.popup-open .popup-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .popup-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #06070b;
  box-shadow: 0 0 0 1px rgba(0, 200, 245, 0.07), 0 32px 80px rgba(0, 0, 0, 0.72);
}

.popup-head {
  display: flex;
  align-items: center;
  min-height: 65px;
  padding: 17px 33px;
  border-bottom: 1px solid var(--pp-border);
}

.popup-head .eyebrow {
  font-family: var(--pp-font);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: inherit;
  color: var(--pp-blue-title-top);
}

.popup-head .eyebrow::before {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  box-shadow: none;
}

.popup-close {
  position: absolute;
  top: 13px;
  right: 18px;
  z-index: 20;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--pp-bg-3);
  color: var(--pp-ink-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.popup-close:hover {
  background: var(--pp-border-2);
}

.popup-close svg {
  width: 16px;
  height: 16px;
}

/* "Close" label on hover */
.popup-close::before {
  content: "Close";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(10, 15, 30, 0.88);
  color: #fff;
  font-family: var(--pp-font);
  font-size: 11px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.popup-close::after {
  content: "";
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  z-index: 30;
  border: 4px solid transparent;
  border-bottom-color: rgba(10, 15, 30, 0.88);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.18s ease;
}

.popup-close:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.popup-close:hover::after {
  opacity: 1;
}

@media (hover: none) {
  .popup-close::before,
  .popup-close::after {
    display: none;
  }
}

[data-theme="dark"] .popup-close {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .popup-close:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 40px 40px;
  scrollbar-color: rgba(0, 0, 0, 0.404) transparent;
}

.popup-body::-webkit-scrollbar {
  width: 4px;
}

.popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.popup-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.popup-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .popup-body {
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

[data-theme="dark"] .popup-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .popup-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.popup-title {
  margin-bottom: 10px;
  color: var(--pp-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

[data-theme="dark"] .popup-title {
  background: linear-gradient(140deg, #f0f8ff 0%, #9adff8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-sub {
  margin-bottom: 28px;
  color: var(--pp-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.popup-overlay .error-notification {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1.5px solid;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-family: var(--pp-font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.popup-overlay .error-notification.show {
  display: flex;
}

[data-theme="dark"] .popup-overlay .error-notification {
  border-color: #991b1b;
  background: #450a0a;
  color: #fca5a5;
}

.popup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group--full {
  grid-column: 1 / -1;
}

.field-group label {
  color: var(--pp-ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.req-star {
  margin-left: 1px;
  color: #e53935;
}

.popup-overlay .field-error {
  display: none;
  margin-top: 4px;
  color: #e53935;
  font-size: 0.75rem;
}

.field-group input.error + .field-error,
.field-group textarea.error + .field-error {
  display: block;
}

.field-group input,
.field-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--pp-border);
  border-radius: 10px;
  outline: none;
  background: var(--pp-bg-2);
  color: var(--pp-ink);
  font-family: var(--pp-font);
  font-size: 0.93rem;
  /* this page's reset makes form fields inherit the text line height */
  line-height: normal;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--pp-faint);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--pp-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

.field-group input.error,
.field-group textarea.error {
  border-color: var(--pp-red);
  box-shadow: 0 0 0 3px rgba(232, 0, 26, 0.1);
}

[data-theme="dark"] .field-group input,
[data-theme="dark"] .field-group textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .field-group input::placeholder,
[data-theme="dark"] .field-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .field-group input:focus,
[data-theme="dark"] .field-group textarea:focus {
  border-color: rgba(0, 200, 245, 0.55);
  background: rgba(0, 200, 245, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 200, 245, 0.12);
}

[data-theme="dark"] .field-group input.error,
[data-theme="dark"] .field-group textarea.error {
  border-color: var(--pp-red);
  box-shadow: 0 0 0 3px rgba(232, 0, 26, 0.1);
}

.popup-overlay .popup-submit {
  width: 100%;
  height: auto;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid #0d2347;
  border-radius: 50px;
  background: #0d2347;
  box-shadow: none;
  color: #fff;
  font-family: var(--pp-font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: normal;
  transition: all 0.2s ease;
}

.popup-overlay .popup-submit:hover {
  border-color: #112d58;
  background: #112d58;
  box-shadow: none;
  transform: translateY(-1px);
}

[data-theme="dark"] .popup-overlay .popup-submit {
  border-color: var(--pp-blue);
  background: var(--pp-blue);
  box-shadow: 0 4px 22px rgba(0, 168, 204, 0.45);
}

[data-theme="dark"] .popup-overlay .popup-submit:hover {
  border-color: #0090b0;
  background: #0090b0;
  box-shadow: 0 6px 28px rgba(0, 168, 204, 0.62);
}

.popup-overlay .popup-submit:focus {
  border-color: #112d58 !important;
  background: #112d58 !important;
  box-shadow: 0 0 10px 3px rgba(17, 45, 88, 0.514) !important;
  outline: none !important;
}

/* idrivex.js sets this class while a message is being sent */
.popup-overlay .submitting {
  position: relative;
  color: transparent;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.popup-overlay .submitting::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: submitting-loader 0.7s linear infinite;
}

@keyframes submitting-loader {
  to {
    transform: rotate(360deg);
  }
}

p.recaptcha-terms {
  padding-top: 15px;
  color: rgba(3, 3, 3, 0.61);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

[data-theme="dark"] p.recaptcha-terms {
  color: rgb(255 255 255 / 28%);
}

/* Toast shown after a successful send (and its error variant) */
.popup-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 630px;
  max-width: min(650px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1.5px solid;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: "Geist", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-16px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.popup-toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.popup-toast--success {
  border-color: #e7ef86;
  background: #f8edba;
  color: #202100;
}

.popup-toast--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

[data-theme="dark"] .popup-toast--error {
  border-color: #991b1b;
  background: #450a0a;
  color: #fca5a5;
}

/* Icon, message and dismiss button, shared by the toast and the popup's error notice */
.popup-toast-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 20px;
  height: 20px;
}

.popup-toast-icon svg,
.popup-toast-close svg {
  width: 20px;
  height: 20px;
}

.popup-toast-msg {
  flex: 1;
}

.popup-toast-close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 2px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.popup-toast-close:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .popup-head {
    padding: 17px 20px;
  }

  .popup-toast {
    min-width: 90%;
  }

  .popup-toast .popup-toast-msg {
    font-size: 0.775rem;
  }
}

@media (max-width: 520px) {
  .popup-body {
    padding: 20px 24px 28px;
  }

  .popup-fields {
    grid-template-columns: 1fr;
  }

  .popup-title {
    font-size: 1.35rem;
  }
}

/* Back-to-top button and tooltip in the other pages' design (assets/css/all-styles.css); --footer-lift
   is set by include/shared/site.js so the button stays above the footer. */
.scroll-top {
  position: fixed;
  right: max(32px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(32px, calc(env(safe-area-inset-bottom) + 12px), var(--footer-lift, 0px));
  z-index: var(--z-hud);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, bottom 0.18s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #f0f0f0;
}

.scroll-top::before {
  content: "Back to top";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(10, 15, 30, 0.88);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  border: 5px solid transparent;
  border-left-color: rgba(10, 15, 30, 0.88);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.scroll-top:hover::before,
.scroll-top:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.scroll-top:hover::after,
.scroll-top:focus-visible::after {
  opacity: 1;
}

@media (hover: none), (max-width: 480px) {
  .scroll-top::before,
  .scroll-top::after {
    display: none;
  }
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring__circle {
  fill: none;
  stroke: #000;
  stroke-width: 2.5;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s ease;
}

.scroll-icon {
  width: 20px;
  height: 20px;
}

:root[data-theme="dark"] .scroll-top,
:root[data-theme="dark"] .scroll-top:hover {
  background: #1e1f22;
  color: #eaf1fb;
}

:root[data-theme="dark"] .scroll-top::before {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e1f22;
  color: #e8eeff;
}

:root[data-theme="dark"] .scroll-top::after {
  border-left-color: #1e1f22;
}

:root[data-theme="dark"] .progress-ring__circle {
  stroke: #2ad0ee;
}