:root {
  --bg: #07080b;
  --bg-elev: #0d1016;
  --bg-panel: #11151e;
  --bg-cad-sheet: #eceff4;
  --border: rgba(226, 232, 240, 0.11);
  --border-strong: rgba(226, 232, 240, 0.24);
  --text: #eef1f6;
  --text-body: #b2bac8;
  --text-muted: #8590a2;
  --accent: #d92b2b;
  --accent-soft: rgba(217, 43, 43, 0.18);
  --datum-ice: #7fb3e6;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 58px;
  --rail-w: 98px;
  --active-rail-w: var(--rail-w);
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--datum-ice);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Top Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-body);
}

.site-nav a {
  padding: 6px 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav__highlight {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.top-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.top-progress__fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Desktop Timeline Rail */
.timeline-rail {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 120;
  border-right: 1px solid var(--border);
  background: rgba(7, 8, 11, 0.72);
  display: flex;
  align-items: center;
  padding: 20px 10px 20px 14px;
}

.timeline-rail__track {
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(226, 232, 240, 0.12);
}

.timeline-rail__fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: 50% 0;
  transform: scaleY(0.04);
}

.timeline-rail__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  width: 100%;
  height: 100%;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-rail__list a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 0;
  color: var(--text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.timeline-rail__list a:hover {
  color: var(--text);
}

.timeline-rail__list a.is-active {
  color: var(--text);
}

.rail-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.timeline-rail__list a.is-active .rail-year {
  color: var(--accent);
}

.rail-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Story Shell */
.story-shell {
  padding-left: var(--rail-w);
}

.eyebrow,
.chapter__era,
.mono-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chapter__era {
  color: #c9d2e0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chapter__era::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* HERO SECTION */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.hero__pin {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 34px) var(--gutter) 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__vignette {
  display: none;
}

.hero__overlay {
  display: contents;
}

.hero__copy {
  order: 1;
  max-width: 780px;
}

.hero__why {
  order: 2;
  align-self: flex-start;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(17, 21, 30, 0.86) 0%, rgba(13, 16, 22, 0.46) 100%);
}

.hero__why-label {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9ec8f2;
}

.hero__why-text {
  margin: 0;
  max-width: 38ch;
  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 0.94vw, 0.92rem);
  line-height: 1.5;
  color: #e8edf5;
}

.hero__stage {
  order: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero__hud {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
}

.hero__title {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__role {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: #e2e8f2;
}

.hero__subrole {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero__hook {
  margin: 10px 0 0;
  max-width: 64ch;
  font-size: clamp(0.92rem, 1.06vw, 1.02rem);
  line-height: 1.54;
  color: #cbd3e0;
}

.k-frame {
  display: none;
}

.k-frame[data-reduced-keep="true"] {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #2a2d55 0%, #5e6286 100%);
}

.k-frame img {
  width: 100%;
  aspect-ratio: 1356 / 775;
  height: auto;
  object-fit: contain;
  object-position: 50% 50%;
}

.k-frame__reduced-cap {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-body);
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.hero__spec-label {
  color: var(--text);
}

.hero__hud-center {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero__ticks {
  display: none;
  align-items: center;
  gap: 5px;
}

.hero__ticks span {
  width: 14px;
  height: 3px;
  background: rgba(238, 241, 246, 0.22);
  transition: background-color 0.12s ease;
}

.hero__ticks span.is-active {
  background: var(--accent);
}

.hero__readout {
  color: var(--datum-ice);
  text-transform: uppercase;
}

.hero__scroll-cue {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.hero__scroll-line {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

@keyframes heroOverlayFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion .hero {
    background: var(--bg);
    overflow: hidden;
  }

  html.js-motion .hero__pin {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100svh;
    min-height: 600px;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
  }

  html.js-motion .hero__stage {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    background: linear-gradient(180deg, #2a2d55 0%, #393d68 58%, #5e6286 100%);
    filter: saturate(0.85);
    -webkit-mask-image: radial-gradient(ellipse 96% 88% at 50% 47%, #000 54%, rgba(0, 0, 0, 0.72) 80%, transparent 100%);
    mask-image: radial-gradient(ellipse 96% 88% at 50% 47%, #000 54%, rgba(0, 0, 0, 0.72) 80%, transparent 100%);
  }

  html.js-motion .k-frame {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: min(100%, calc((100vw - var(--active-rail-w)) * 0.59));
    opacity: 0;
    pointer-events: none;
    border: none;
    background: transparent;
  }

  html.js-motion .k-frame.is-active {
    opacity: 1;
  }

  html.js-motion .k-frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 91%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 91%, transparent 100%);
  }

  html.js-motion .k-frame__reduced-cap {
    display: none;
  }

  html.js-motion .hero__vignette {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(7, 8, 11, 0.48) 0%, transparent 22%, rgba(7, 8, 11, 0.14) 50%, rgba(7, 8, 11, 0.88) 79%, var(--bg) 95%),
      radial-gradient(ellipse 48% 34% at 14% 14%, rgba(7, 8, 11, 0.62) 0%, rgba(7, 8, 11, 0.24) 60%, transparent 100%),
      radial-gradient(ellipse 70% 54% at 18% 86%, rgba(7, 8, 11, 0.84) 0%, rgba(7, 8, 11, 0.38) 54%, transparent 86%),
      radial-gradient(ellipse 94% 84% at 50% 47%, transparent 44%, rgba(7, 8, 11, 0.66) 85%, var(--bg) 100%);
  }

  html.js-motion .hero__overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 18px) var(--gutter) 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
  }

  html.js-motion .hero__why {
    order: 0;
    margin: 0 0 auto -14px;
    align-self: flex-start;
    padding: 10px 22px 12px 14px;
    border-radius: 10px;
    background: radial-gradient(115% 125% at 16% 26%, rgba(7, 8, 11, 0.78) 0%, rgba(7, 8, 11, 0.54) 64%, rgba(7, 8, 11, 0) 100%);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85);
    animation: heroOverlayFade 0.5s ease-out both;
  }

  html.js-motion .hero__copy {
    order: 0;
    max-width: 670px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.88);
    animation: heroOverlayFade 0.5s ease-out 0.05s both;
  }

  html.js-motion .hero__hud {
    order: 0;
  }

  html.js-motion .hero__ticks {
    display: inline-flex;
  }

  html.js-motion .hero__scroll-cue {
    display: inline-flex;
  }
}

/* CHAPTERS */
.chapter {
  padding: clamp(64px, 8vw, 118px) var(--gutter);
  border-bottom: 1px solid var(--border);
}

.chapter__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.chapter__header {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.chapter__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 24ch;
}

.chapter__grid {
  display: grid;
  gap: clamp(24px, 3.5vw, 48px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.chapter__grid--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.chapter__grid--nikola {
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  align-items: start;
  margin-top: 32px;
}

.chapter__prose p {
  margin: 0 0 18px;
  font-size: clamp(0.98rem, 1.08vw, 1.06rem);
  line-height: 1.7;
  color: var(--text-body);
}

.chapter__prose p:last-child {
  margin-bottom: 0;
}

.chapter__prose--wide {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.chapter__aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Spec Ladder (Chapter 1) */
.spec-ladder {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 20px 22px;
}

.spec-ladder__head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.spec-ladder__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-ladder__steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid rgba(217, 43, 43, 0.55);
}

.step-code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--datum-ice);
}

.spec-ladder__steps strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.spec-ladder__steps span:last-child {
  font-size: 0.86rem;
  color: var(--text-body);
}

/* Plate Cards & Media Wells */
.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.card-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.plate-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plate-card--compact {
  max-width: 520px;
}

.plate-card--feature {
  max-width: 780px;
  margin-bottom: 22px;
}

.plate-card--wide {
  margin-top: 22px;
}

.media-well {
  position: relative;
  width: 100%;
  background: #0b0d13;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-well--16x10 { aspect-ratio: 16 / 10; }
.media-well--16x9 { aspect-ratio: 16 / 9; }
.media-well--4x3 { aspect-ratio: 4 / 3; }
.media-well--21x10 { aspect-ratio: 21 / 10; }
.media-well--21x9 { aspect-ratio: 21 / 9; }

.media-well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.plate-card--cad .media-well,
.media-well--contain {
  background: var(--bg-cad-sheet);
  padding: 10px;
}

.media-well--contain img,
.media-well--light-sheet img {
  object-fit: contain;
}

.media-well--light-sheet {
  background: #f5f7fa;
  padding: 12px;
}

.plate-card__cap {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-elev);
}

.cap-id {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plate-card__cap span:last-child {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

/* Chapter 2: Horizontal Roof Filmstrip */
.filmstrip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filmstrip-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--text-body);
}

.filmstrip-controls {
  display: inline-flex;
  gap: 8px;
}

.ctrl-btn {
  appearance: none;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ctrl-btn:hover {
  background: #1a202e;
  border-color: var(--text);
}

.filmstrip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-elev);
  cursor: grab;
}

.filmstrip:active {
  cursor: grabbing;
}

.filmstrip__card {
  flex: 0 0 clamp(255px, 28vw, 336px);
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.mono-footnote {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Chapter 3: Fisker 12,000+ Counter Rig */
.metric-rig {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border-strong);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-rig__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--datum-ice);
}

.metric-rig__value {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.metric-rig__plus {
  color: var(--accent);
}

.metric-rig__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-body);
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.ext-btn:hover {
  opacity: 0.9;
}

.ext-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.ext-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Chapter 4: Nikola Before/After Slider & Schedule Bar */
.nikola-left-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 540px;
  width: 100%;
}

.compare-block {
  max-width: 540px;
  width: 100%;
}

.patent-plate {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 2px solid var(--datum-ice);
  padding: 18px 20px;
}

.patent-plate__title {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.patent-plate__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.patent-plate__list li {
  border-bottom: 1px solid var(--border);
}

.patent-plate__list li:last-child {
  border-bottom: none;
}

.patent-plate__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  transition: color 0.15s ease;
}

.patent-plate__list a:hover {
  color: var(--datum-ice);
}

.patent-num {
  color: var(--text);
  font-weight: 500;
}

.patent-plate__list a:hover .patent-num {
  color: var(--datum-ice);
}

.patent-year {
  color: var(--datum-ice);
  white-space: nowrap;
}

.compare-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mono-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
}

.mono-val--accent {
  color: var(--datum-ice);
  font-weight: 500;
}

.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-strong);
  background: #0d1016;
  overflow: hidden;
  user-select: none;
}

.compare-slider__after,
.compare-slider__before {
  position: absolute;
  inset: 0;
}

.compare-slider__after img,
.compare-slider__before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.compare-slider__before {
  background: var(--bg-cad-sheet);
  clip-path: inset(0 50% 0 0);
}

.compare-slider__before img {
  object-fit: contain;
  padding: 6px;
}

.compare-tag {
  position: absolute;
  bottom: 10px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(7, 8, 11, 0.85);
  color: var(--text);
  border: 1px solid var(--border-strong);
  pointer-events: none;
}

.compare-tag--left { left: 10px; }
.compare-tag--right { right: 10px; }

.compare-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 3;
}

.compare-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.compare-slider__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.compare-slider__input:focus-visible + .compare-slider__divider,
.compare-slider:focus-within {
  outline: 2px solid var(--datum-ice);
  outline-offset: 2px;
}

.compression-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.schedule-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 20px 22px;
}

.schedule-bars {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.schedule-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}

.schedule-bar {
  height: 100%;
}

.schedule-bar--base {
  width: 100%;
  background: rgba(226, 232, 240, 0.28);
}

.schedule-bar--compressed {
  width: 77.78%;
  background: var(--accent);
  transform-origin: 0 50%;
}

.schedule-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Stat Trio (USSV & Trinova) */
.stat-trio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-box__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.stat-box__num small {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 3px;
}

.stat-box__label {
  font-size: 0.85rem;
  color: var(--text-body);
}

/* Chapter 6: WILL.I.AMG 12-Inch Datum Box */
.datum-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  padding: 22px;
}

.datum-box__top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.datum-box__val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
}

.datum-ruler {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.datum-ruler__origin,
.datum-ruler__shifted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.datum-pin {
  width: 2px;
  height: 24px;
  background: var(--text-muted);
}

.datum-pin--accent {
  background: var(--accent);
}

.datum-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.datum-tag--accent {
  color: var(--accent);
}

.datum-ruler__vector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.datum-ruler__line {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--datum-ice);
  transform-origin: 0 50%;
}

.datum-ruler__line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--datum-ice);
}

.datum-ruler__dim {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--datum-ice);
  text-align: center;
}

.datum-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.datum-specs li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.datum-specs span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.datum-specs strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

/* Chapter 7: Subprograms & Inline Ledger */
.subprogram {
  margin-top: 36px;
}

.subprogram__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.subprogram__meta {
  font-size: 0.86rem;
  color: var(--text-body);
}

.inline-ledger {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inline-ledger__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 16px 18px;
}

.inline-ledger__item p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Chapter 8: Sequence Banner */
.sequence-banner {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--datum-ice);
}

/* Chapter 9: CLIMAX - LAMARC HYPERCAR */
.chapter--climax {
  padding-top: clamp(84px, 11vw, 150px);
  padding-bottom: clamp(84px, 11vw, 150px);
  background:
    radial-gradient(80% 45% at 50% 18%, rgba(217, 43, 43, 0.11), transparent 70%),
    #050608;
}

.chapter__title--climax {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  letter-spacing: -0.025em;
}

.hypercar-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.hypercar-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hypercar-metric__value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hypercar-metric__value small {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  font-weight: 500;
  color: var(--accent);
  margin-left: 6px;
}

.hypercar-metric__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-body);
}

.chapter__prose--climax {
  max-width: 820px;
  margin-bottom: 40px;
}

.plate-card--lamarc-hero {
  max-width: 1120px;
  border-color: var(--border-strong);
}

.media-well--lamarc-hero {
  aspect-ratio: 2.05 / 1;
  background: #14171f;
}

.lamarc-dark-stage {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.lamarc-studio-figure {
  background: #000;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lamarc-studio-well {
  flex: 1 1 auto;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.lamarc-studio-well img {
  width: 100%;
  max-width: 740px;
  height: auto;
  object-fit: contain;
}

.plate-card--night {
  justify-content: space-between;
}

/* Selected Programs Index */
.programs-index {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--border);
  background: #090b10;
}

.programs-index__header {
  margin-bottom: 24px;
}

.programs-index__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.index-list li {
  border-bottom: 1px solid var(--border);
}

.index-list a {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 2fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 6px;
  transition: background-color 0.15s ease;
}

.index-list a:hover {
  background: rgba(255, 255, 255, 0.03);
}

.idx-prog {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}

.idx-role {
  font-size: 0.87rem;
  color: var(--text-body);
}

.idx-jump {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--datum-ice);
  white-space: nowrap;
}

.index-archive {
  margin-top: 28px;
}

/* Chapter 10: How He Works & Spec Sheet */
.motto-card {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  padding: 26px 24px;
}

.motto-card__quote {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.motto-card__author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-sheet {
  margin: 8px 0 0;
  border-top: 1px solid var(--border-strong);
}

.spec-sheet__row {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.spec-sheet dt {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.spec-sheet dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-body);
}

.spec-link {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--datum-ice);
  border-bottom: 1px solid rgba(127, 179, 230, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.spec-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Chapter 11: Close & Contact */
.chapter--close {
  border-bottom: none;
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.portrait-frame {
  border: 1px solid var(--border-strong);
  background: #0b0d12;
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.close-crest-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.scholten-crest {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  clip-path: polygon(5% 9%, 25% 4%, 50% 2.5%, 75% 4%, 95% 9%, 96% 32%, 91% 58%, 79% 79%, 65% 91%, 50% 97.5%, 35% 91%, 21% 79%, 9% 58%, 4% 32%);
}

.close-tagline {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--datum-ice);
}

.close-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.close-statement {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  line-height: 1.68;
  color: var(--text-body);
  max-width: 58ch;
}

.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  padding: 6px 20px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

a.contact-val:hover {
  color: var(--datum-ice);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px var(--gutter) 22px calc(var(--rail-w) + var(--gutter));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1120px) {
  :root {
    --active-rail-w: 0px;
  }

  .timeline-rail {
    display: none;
  }

  .story-shell {
    padding-left: 0;
  }

  .site-footer {
    padding-left: var(--gutter);
  }
}

@media (max-width: 920px) {
  .chapter__grid--split,
  .chapter__grid--nikola,
  .lamarc-dark-stage,
  .close-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid--3col,
  .card-grid--4col,
  .card-grid--workhorse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portrait-frame {
    max-width: 420px;
  }

  .site-nav a:not(.site-nav__highlight):not([href="#programs-index"]):not([href="#ch-11"]) {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 768px) {
  html.js-motion .hero {
    background: var(--bg);
  }

  html.js-motion .hero__pin {
    min-height: 100svh;
    height: auto;
    padding: calc(var(--header-h) + 10px) 0 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    background:
      radial-gradient(135% 36% at 50% 42%, #2f335c 0%, #202342 52%, var(--bg) 82%),
      var(--bg);
  }

  html.js-motion .hero__overlay {
    display: contents;
  }

  html.js-motion .hero__why {
    order: 1;
    position: relative;
    z-index: 3;
    margin: 0;
    width: 100%;
    align-self: stretch;
    padding: 8px var(--gutter) 10px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(7, 8, 11, 0.74) 0%, rgba(7, 8, 11, 0.42) 74%, transparent 100%);
  }

  html.js-motion .hero__why-label {
    font-size: 0.66rem;
    margin-bottom: 3px;
  }

  html.js-motion .hero__why-text {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  html.js-motion .hero__stage {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1356 / 775;
    height: auto;
    margin: auto 0;
    background: transparent;
    -webkit-mask-image: none;
    mask-image: none;
  }

  html.js-motion .k-frame {
    inset: 0;
    height: 100%;
  }

  html.js-motion .k-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 9%, #000 18%, #000 82%, rgba(0, 0, 0, 0.78) 91%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 9%, #000 18%, #000 82%, rgba(0, 0, 0, 0.78) 91%, transparent 100%);
  }

  html.js-motion .hero__vignette {
    background:
      radial-gradient(ellipse 115% 55% at 50% 42%, transparent 54%, rgba(7, 8, 11, 0.62) 92%, var(--bg) 100%);
  }

  html.js-motion .hero__copy {
    order: 3;
    position: relative;
    z-index: 3;
    max-width: none;
    padding: 0 var(--gutter);
  }

  html.js-motion .hero__hud {
    order: 4;
    position: relative;
    z-index: 3;
    margin: 2px var(--gutter) 0;
  }

  html.js-motion .hero__ticks {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 52px;
  }

  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 0.82rem;
  }

  .site-nav {
    gap: 10px;
    font-size: 0.68rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
  }

  .hero__role {
    font-size: 0.92rem;
  }

  .hero__subrole {
    font-size: 0.67rem;
  }

  .hero__hook {
    font-size: 0.88rem;
    line-height: 1.46;
  }

  .hero__hud {
    font-size: 0.66rem;
    padding-top: 9px;
    gap: 6px;
  }

  .card-grid--2col,
  .card-grid--3col,
  .card-grid--4col,
  .card-grid--workhorse,
  .inline-ledger,
  .hypercar-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .plate-card:not(.plate-card--wide):not(.plate-card--lamarc-hero) {
    max-width: 500px;
  }

  .media-well--21x10,
  .media-well--21x9,
  .media-well--lamarc-hero {
    aspect-ratio: 16 / 10;
  }

  .index-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 2px;
  }

  .spec-sheet__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .datum-ruler {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .datum-pin {
    width: 32px;
    height: 2px;
  }
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
