/* Kshemin Labs: conspicuity tape on painted steel, anchored on the shield's blue and amber */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/raleway-600-logo.woff2") format("woff2"); unicode-range: U+41-42, U+45, U+48-49, U+4B-4E, U+53; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/barlow-condensed-800.woff2") format("woff2"); }

/* ---------- Tokens: day (painted steel, amber tape, shield blue) ---------- */
:root {
  --ground: #F1F3F4;
  --surface: #FFFFFF;
  --steel: #E2E7EA;
  --ink: #0B1620;
  --ink-2: #44525E;
  --ink-3: #5F6C77;
  --rule: rgba(11, 22, 32, .14);
  --rule-strong: #0B1620;

  --blue: #0189DB;         /* brand: shield blue */
  --blue-deep: #0A6FB5;    /* brand: deep blue, text-safe on light */
  --cyan: #2EC5D8;         /* brand: shield border */
  --amber: #FDB812;        /* brand: amber, tape and CTA */
  --amber-ink: #7A5200;
  --red: #C9221A;          /* safety alerts only */
  --red-ink: #B01E17;

  --tape: #FDB812;
  --tape-dim: #FDB812;
  --tape-seam: #0B1620;
  --tape-edge: #0B1620;
  --prism: rgba(11, 22, 32, .09);

  --hardware: #13202B;
  --hardware-edge: #2A3A47;
  --screen: #070D12;
  --screen-ink: #EAF0F3;
  --screen-red: #FF3B2F;

  --cta-bg: #FDB812;
  --cta-ink: #0B1620;
  --btn-bg: #0B1620;
  --btn-ink: #F1F3F4;
  --btn-border: #0B1620;
  --focus: #0A6FB5;
  --accent-text: #0A6FB5;

  --font-text: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", ui-sans-serif, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 68px;
  --section-y: clamp(72px, 10vw, 144px);

  color-scheme: light dark;
}

/* ---------- Tokens: night (brand ink under headlights) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #08121A;
    --surface: #0E1C27;
    --steel: #0C1822;
    --ink: #EAF0F3;
    --ink-2: #A7B4BE;
    --ink-3: #8696A3;
    --rule: rgba(234, 240, 243, .14);
    --rule-strong: #EAF0F3;

    --red: #FF5A4E;
    --red-ink: #FF7A70;
    --amber-ink: #FDB812;

    --tape: #FDB812;
    --tape-dim: #3D3110;
    --tape-seam: #08121A;
    --tape-edge: #020609;
    --prism: rgba(0, 0, 0, .14);

    --hardware: #13212D;
    --hardware-edge: #2C3E4C;

    --btn-bg: #EAF0F3;
    --btn-ink: #08121A;
    --btn-border: #FDB812;
    --focus: #2EC5D8;
    --accent-text: #2EC5D8;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--ink-3) var(--ground);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, .98rem + .25vw, 1.1875rem);
  line-height: 1.55;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
::selection { background: var(--amber); color: #0B1620; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.h2, .hero-title, .statement, .demo-title, .manifest-title, .board-title, .h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(3.1rem, 1.2rem + 8vw, 8.25rem);
  line-height: .86;
  letter-spacing: -.012em;
  max-width: 11.5em;
}
.h2 {
  font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem);
  line-height: .9;
  letter-spacing: -.008em;
  max-width: 18ch;
}
.h3 {
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: .02em;
}
p { max-width: 68ch; }
.section-lede, .lede { color: var(--ink-2); }
.lede { color: var(--ink); font-size: 1.08em; }
.lede-short { display: none; }
.lede-sub { color: var(--ink-2); margin-top: .6em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.2) blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 44px; width: auto; overflow: visible; }
.brand-logo text { font-family: "Raleway", "Barlow", sans-serif; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .05em; text-decoration: none; color: var(--ink-2);
  padding-block: 6px; border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  background: var(--cta-bg); color: var(--cta-ink);
  border: 2px solid var(--btn-border);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .05em; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 1.05rem; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: transparent; border: 0; border-left: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1rem; letter-spacing: .05em; color: var(--ink); cursor: pointer;
  transition: background-color .18s var(--ease);
}
.copy-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:hover { background: var(--steel); }

/* ---------- Tape (signature) ---------- */
.tape {
  --seg: 180px;
  position: relative; height: 44px;
  border-block: 2px solid var(--tape-edge);
  background:
    repeating-linear-gradient(45deg, var(--prism) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, var(--prism) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, var(--tape-dim) 0 calc(var(--seg) - 5px), var(--tape-seam) calc(var(--seg) - 5px) var(--seg));
}
.tape::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, var(--prism) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, var(--prism) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, var(--tape) 0 calc(var(--seg) - 5px), var(--tape-seam) calc(var(--seg) - 5px) var(--seg));
  clip-path: inset(0 0 0 0);
}
/* sheen: the moment light hits the prisms */
.tape::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,.55) 48%, transparent 56% 100%);
  background-size: 250% 100%; background-position: 120% 0;
  mix-blend-mode: soft-light; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js .tape::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
  .js .tape.is-lit::after { clip-path: inset(0 0 0 0); }
  .js .tape.is-lit::before { animation: sheen 1.4s var(--ease) .15s 1 both; }
}
@keyframes sheen {
  0% { opacity: 1; background-position: 120% 0; }
  100% { opacity: 0; background-position: -30% 0; }
}
.tape-divider { height: 28px; --seg: 140px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 52px); }
.hero-stage {
  --gap: clamp(24px, 4vw, 64px);
  --dev-w: calc((min(100vw, var(--maxw)) - 2 * var(--gutter) - var(--gap)) * 6.4 / 12);
  --band-h: 52px;
  --overhang: calc(var(--dev-w) * .177 - var(--band-h) / 2);
  position: relative; margin-top: clamp(28px, 4vw, 52px);
  padding-bottom: calc(var(--overhang) + 44px);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr);
  gap: var(--gap); align-items: end;
}
.hero-copy { padding-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 28px; }
.email-chip {
  display: inline-flex; align-items: stretch;
  border: 2px solid var(--ink); background: var(--surface);
  min-height: 54px;
}
.email-text {
  display: inline-flex; align-items: center; padding: 0 14px;
  font-weight: 500; font-variant-numeric: tabular-nums; user-select: all;
  -webkit-user-select: all;
}
.email-chip .copy-btn { border-left: 2px solid var(--ink); }

.device-fig { position: relative; margin-bottom: calc(-1 * (var(--dev-w) * .177 + var(--band-h) / 2)); }
.device { width: 100%; height: auto; overflow: visible; }
.device-mount rect, .device-mount circle { fill: var(--hardware); stroke: var(--hardware-edge); stroke-width: 2; }
.device-body { fill: var(--hardware); }
.device-edge { fill: none; stroke: var(--hardware-edge); stroke-width: 2; }
.lens-ring { fill: #0B0D0E; stroke: #3A4045; stroke-width: 6; }
.lens-glass { fill: #111820; stroke: #23303A; stroke-width: 2; }
.lens-iris { fill: #070A0D; }
.lens-glint { fill: rgba(255,255,255,.35); }
.ir circle { fill: #3B1C1E; stroke: #55282A; stroke-width: 1.5; }
.screen { fill: var(--screen); }
.screen-frame { fill: none; stroke: var(--screen-red); stroke-width: 4; }
.scr-title { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: .01em; fill: var(--screen-red); }
.scr-meta { font-family: var(--font-text); font-weight: 500; font-size: 19px; fill: var(--screen-ink); }
.scr-num { font-family: var(--font-display); font-weight: 600; font-size: 24px; fill: var(--screen-ink); font-variant-numeric: tabular-nums; }
.scr-small { font-family: var(--font-text); font-weight: 500; font-size: 15px; fill: #B9BEC2; }
.eye-closed path { fill: none; stroke: var(--screen-red); stroke-width: 4; stroke-linecap: round; }
.wave-bars rect { fill: var(--screen-red); transform-box: fill-box; transform-origin: center; }
.grille circle { fill: #0B0D0E; }
.sound path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; }
.device-fig figcaption { position: absolute; right: 0; top: calc(100% + 10px); font-size: .85rem; color: var(--ink-3); text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  .screen-frame { animation: frame 1.2s steps(1, end) infinite; }
  .sound path { animation: ripple 1.2s var(--ease) infinite; }
  .sound path:nth-child(2) { animation-delay: .15s; }
  .sound path:nth-child(3) { animation-delay: .3s; }
  .wave-bars rect { animation: bar .6s var(--ease) infinite alternate; }
  .wave-bars rect:nth-child(2n) { animation-delay: -.2s; }
  .wave-bars rect:nth-child(3n) { animation-delay: -.4s; }
}
@keyframes frame { 0%, 60% { stroke-opacity: 1; } 61%, 100% { stroke-opacity: .25; } }
@keyframes ripple { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.tape-hero { position: relative; z-index: 1; height: var(--band-h); }

.manifest {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px;
  align-items: start; padding-block: 28px 8px; border-top: 2px solid var(--rule-strong);
  margin-top: 8px;
}
.manifest-title { font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: .02em; padding-top: 2px; }
.manifest-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.manifest-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 0 16px;
  border-left: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2); line-height: 1.4;
}
.manifest-list b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.manifest-list li:first-child { border-left: 0; padding-left: 0; }
.manifest-list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.manifest-list .m-stay { border: 2px solid var(--ink); padding: 10px 12px; margin-left: 16px; margin-top: -12px; background: var(--surface); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.section-head .section-lede { padding-bottom: .4em; }

/* How it works */
.how { padding-top: clamp(80px, 9vw, 128px); }
.route {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 72px); counter-reset: stop;
}
.route::before {
  content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 0;
  border-top: 3px dashed var(--ink-3);
}
.stop { position: relative; }
.stop-art {
  position: relative; width: 120px; height: 80px; background: var(--ground);
  margin-bottom: 20px;
}
.stop-art svg { width: 120px; height: 80px; }
.a-body { fill: var(--hardware); stroke: var(--hardware-edge); stroke-width: 2; }
.a-lens { fill: #0B0D0E; stroke: #3A4045; stroke-width: 3; }
.a-screen { fill: var(--screen-red); }
.a-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a-alert { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.a-route { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; }
.a-pin { fill: var(--amber); }
.stop .h3 { margin-bottom: 10px; }
.stop p { color: var(--ink-2); }

/* Driver safety boards */
.safety, .evidence, .engine { border-top: 2px solid var(--rule-strong); }
.boards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.board-title { font-weight: 600; font-size: 1.15rem; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 12px; }
.board { width: 100%; border-collapse: collapse; background: var(--surface); border: 2px solid var(--rule-strong); }
.board th, .board td { text-align: left; vertical-align: top; padding: 14px 14px; border-bottom: 1px solid var(--rule); }
.board thead th {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: .95rem; color: var(--ink-2); border-bottom: 2px solid var(--rule-strong); padding-block: 10px;
}
.board tbody th { font-weight: 600; position: relative; padding-left: 30px; width: 38%; }
.board tbody td { color: var(--ink-2); font-size: .97rem; line-height: 1.4; }
.board tbody td:last-child { width: 1%; white-space: nowrap; }
.board tbody tr:last-child > * { border-bottom: 0; }
.board tbody tr { transition: background-color .18s var(--ease); }
.board tbody tr:hover { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.seg { position: absolute; left: 12px; top: 17px; width: 8px; height: 18px; }
.r-alert .seg { background: var(--red); }
.r-warn .seg { background: var(--amber); }
.r-soon .seg { border: 1.5px dashed var(--ink-3); }
.r-soon th, .r-soon td { color: var(--ink-3); }

.tag {
  display: inline-block; padding: 3px 8px 2px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: .92rem; letter-spacing: .05em; line-height: 1.2; white-space: nowrap;
}
.tag-alert { background: var(--red); color: #fff; }
.tag-warn { background: var(--amber); color: #0B1620; }
.tag-soon { border: 1.5px dashed var(--ink-3); color: var(--ink-2); }
.tag-plain { background: var(--ink); color: var(--ground); }
@media (prefers-color-scheme: dark) { .tag-alert { color: #0B1620; } }

/* Fleet console */
.tape-divider { margin: 0; }
.console {
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--surface); border: 2px solid var(--rule-strong);
}
.console-bar {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  border-bottom: 1px solid var(--rule); font-size: .9rem; color: var(--ink-2);
}
.cb-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .04em; color: var(--ink); }
.cb-chips { display: inline-flex; gap: 4px; margin-left: auto; }
.chip { padding: 3px 10px; border: 1px solid var(--rule); font-weight: 500; }
.chip.is-on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.cb-refresh { display: inline-flex; align-items: center; gap: 6px; }
.cb-refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.console-body { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); }
.vehicles { border-right: 1px solid var(--rule); }
.v {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: 12px; padding: 12px 16px 12px 28px; border-bottom: 1px solid var(--rule); position: relative;
}
.v::before { content: ""; position: absolute; left: 12px; top: 15px; width: 6px; height: 16px; background: var(--ink-3); }
.v-name { font-weight: 600; }
.v-status { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; align-self: center; }
.v-detail { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v-alert { background: color-mix(in srgb, var(--red) 9%, var(--surface)); }
.v-alert::before { background: var(--red); }
.v-alert .v-status { color: var(--red-ink); }
.v-moving::before { background: var(--blue); }
.v-moving .v-status { color: var(--accent-text); }
.v-idle::before { background: var(--amber); }
.v-idle .v-status { color: var(--amber-ink); }
.v-offline::before { background: transparent; border: 1.5px dashed var(--ink-3); }
.v-offline .v-status, .v-offline .v-name { color: var(--ink-3); }

.map-wrap { background: var(--steel); min-width: 0; }
.map { width: 100%; height: auto; }
.m-roads-minor path { fill: none; stroke: var(--rule); stroke-width: 2; }
.m-roads-major path { fill: none; stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: 8; stroke-linecap: round; }
.m-route-base { fill: none; stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 9; }
.m-route { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.m-start circle { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.m-end rect { fill: var(--ink); }
.m-pin rect { stroke: var(--surface); stroke-width: 2; }
.m-pin path { stroke: #0B1620; stroke-width: 2.5; stroke-linecap: round; }
.m-pin-warn rect { fill: var(--amber); }
.m-pin-alert rect { fill: var(--red); }
.m-pin-alert path { stroke: #fff; }
.m-pin { transition: transform .3s var(--ease); }
.m-other path { fill: var(--blue-deep); }
.m-other text { font-family: var(--font-text); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.m-car-ring { fill: color-mix(in srgb, var(--blue) 20%, transparent); stroke: var(--blue); stroke-width: 2; }
.m-car-dot { fill: var(--blue); }

.playback {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 16px; border-top: 1px solid var(--rule);
}
.play-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-ink); border: 0; cursor: pointer;
}
.play-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.play-btn .i-play { fill: currentColor; stroke-width: 1.5; }
.play-btn .i-play { display: none; }
.play-btn[data-paused="true"] .i-pause { display: none; }
.play-btn[data-paused="true"] .i-play { display: block; }

.scrub { position: relative; height: 44px; display: flex; align-items: center; }
.scrub input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; position: relative; z-index: 1;
}
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--rule); }
.scrub input[type="range"]::-moz-range-track { height: 6px; background: var(--rule); }
.scrub input[type="range"]::-moz-range-progress { height: 6px; background: var(--ink); }
.scrub input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 26px; margin-top: -10px; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink);
}
.scrub input[type="range"]::-moz-range-thumb { width: 14px; height: 22px; background: var(--ink); border: 3px solid var(--surface); border-radius: 0; box-shadow: 0 0 0 1px var(--ink); }
.scrub input[type="range"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.scrub-ticks { position: absolute; left: 9px; right: 9px; top: 50%; height: 0; pointer-events: none; z-index: 2; }
.scrub-ticks i { position: absolute; top: -9px; width: 6px; height: 18px; margin-left: -3px; }
.t-warn { background: var(--amber); }
.t-alert { background: var(--red); }
.readout { display: flex; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-speed { min-width: 6.2ch; text-align: right; }

.trip-events { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.trip-events li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 12px 16px 12px 30px; position: relative;
  transition: background-color .3s var(--ease);
}
.trip-events li + li { border-left: 1px solid var(--rule); }
.trip-events li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 6px; height: 16px; }
.te-warn::before { background: var(--amber); }
.te-alert::before { background: var(--red); }
.te-time { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.te-name { font-weight: 600; }
.te-where { grid-column: 2; font-size: .9rem; color: var(--ink-2); }
.trip-events li.is-hit { background: color-mix(in srgb, var(--amber) 18%, var(--surface)); }
.trip-events li.te-alert.is-hit { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.console-note { padding: 8px 16px 12px; font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--rule); max-width: none; }

.also { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.also .board-title { color: var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; line-height: 1; padding-top: 12px; }
.board-also tbody th { padding-left: 16px; width: 30%; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
/* The no-wrap rule above is for tag cells in the detection tables; descriptions here must wrap. */
.board-also tbody td:last-child { width: auto; white-space: normal; }
@media (max-width: 720px) {
  .also { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .board-also tbody th { width: 38%; font-size: 1rem; }
}

/* Evidence */
.evidence-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.ev-card { background: var(--surface); border: 2px solid var(--rule-strong); }
.ev-frame { position: relative; background: #111416; }
.driver { width: 100%; height: auto; }
.d-bg { fill: #14181B; }
.d-seat { fill: #1D2226; stroke: #2C3337; stroke-width: 2; }
.d-body { fill: #2A3034; }
.d-head { fill: #3A4246; }
.d-eye, .d-mouth { fill: none; stroke: #0E1112; stroke-width: 4; stroke-linecap: round; }
.d-pupil { fill: #0E1112; }
.d-wheel { fill: none; stroke: #0A0C0D; stroke-width: 16; stroke-linecap: round; }
.d-box path { fill: none; stroke: var(--screen-red); stroke-width: 4; stroke-linecap: square; }
.d-label rect { fill: var(--screen-red); }
.d-label text { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .06em; fill: #0B1620; }
.clip-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.clip-bar svg { width: 18px; height: 18px; fill: var(--ink); }
.clip-track { position: relative; flex: 1; height: 6px; background: var(--rule); }
.clip-mark { position: absolute; left: 46%; top: -6px; width: 6px; height: 18px; background: var(--red); }
.clip-head { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; background: var(--ink); }
.clip-label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; color: var(--ink-2); }
.ev-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px 14px; border-top: 1px solid var(--rule); }
.ev-meta { font-size: .95rem; color: var(--ink-2); }
.live-chip {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 3px; background: #EAF0F3; color: #0B1620;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
}
.live-chip i { width: 8px; height: 8px; background: #0B1620; border-radius: 50%; }
.ev-note { margin-top: 16px; font-size: .9rem; color: var(--ink-3); }

/* Engine */
.engine-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 56px); }
.engine .section-head { align-items: end; }
.cluster { background: var(--hardware); color: #EAF0F3; padding: clamp(18px, 2.5vw, 28px); }
.gauges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g { padding: 6px 18px 8px; border-left: 1px solid rgba(236,237,232,.16); }
.g:first-child { border-left: 0; padding-left: 4px; }
.g dt { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: .95rem; color: #A9AFB4; display: flex; align-items: center; gap: 6px; }
.g dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.6rem); line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.g dd small { font-size: max(.85rem, .38em); font-weight: 600; margin-left: .2em; letter-spacing: .04em; color: #A9AFB4; }
.g-fault dt { color: #FFB81C; }
.g-fault dt svg { width: 22px; height: 16px; fill: #FFB81C; flex: none; }
.g-fault dd { color: #FFB81C; }
.cluster figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(236,237,232,.16); font-size: .85rem; color: #A9AFB4; }

/* Privacy */
.privacy { padding-block: clamp(80px, 11vw, 160px) clamp(96px, 13vw, 184px); }
.statement {
  font-weight: 800; font-size: clamp(2.6rem, 1.2rem + 6vw, 7rem); line-height: .88; letter-spacing: -.01em; max-width: 13ch;
}
.statement .dim { color: var(--ink-3); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 8vw, 120px); }
.p-item { border-top: 2px solid var(--rule-strong); padding-top: 18px; }
.p-item .h3 { margin-bottom: 10px; }
.p-item p { color: var(--ink-2); }
.offline { width: 100%; max-width: 320px; margin-top: 20px; }
.o-on { stroke: var(--ink); stroke-width: 3; }
.o-off { stroke: var(--ink-3); stroke-width: 3; stroke-dasharray: 4 6; }
.o-q rect { fill: var(--amber); }
.o-sync { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.offline text { font-family: var(--font-text); font-size: 13px; font-weight: 500; fill: var(--ink-2); }

/* Demo: the amber of the original artwork */
.demo {
  position: relative; color: #0B1620; padding-bottom: clamp(72px, 10vw, 136px);
  background-color: #FDB812;
  background-image: url("/img/amber-grain.svg");
  background-size: 480px 480px;
}
.demo-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); padding-top: clamp(64px, 9vw, 120px); align-items: end; }
.demo-title { font-weight: 800; font-size: clamp(3rem, 1.4rem + 7vw, 8rem); line-height: .86; letter-spacing: -.01em; }
.demo-body p { color: #1E2A33; }
.demo-email { margin-top: 24px; }
.email-big {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 1rem + 2.6vw, 2.8rem); line-height: 1.1;
  color: #0B1620; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.demo .btn { background: #0B1620; color: #FDB812; border-color: #0B1620; }
.demo .btn:hover { background: transparent; color: #0B1620; }
.copy-btn-lg { min-height: 54px; padding: 0 18px; border: 2px solid #0B1620; color: #0B1620; font-size: 1.15rem; }
.copy-btn-lg:hover { background: rgba(11,22,32,.08); }
.demo :focus-visible { outline-color: #0B1620; }
.demo .tape { --tape: #0B1620; --tape-dim: #0B1620; --tape-seam: #FDB812; --tape-edge: #0B1620; --prism: rgba(255,255,255,.07); height: 20px; --seg: 120px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; font-size: .95rem; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner p { max-width: none; }
.footer-inner p:last-child { margin-left: auto; }
.brand-foot .brand-logo { height: 36px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px);
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .manifest { grid-template-columns: 1fr; gap: 16px; }
  .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .g:nth-child(4) { border-left: 0; padding-left: 4px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage {
    --dev-w: calc(min(100vw, var(--maxw)) - 2 * var(--gutter)); --band-h: 40px;
    display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; margin-top: 24px;
  }
  .hero-grid { display: contents; }
  .device-fig { grid-row: 1; grid-column: 1; z-index: 2; margin: 0 var(--gutter) 34px; }
  .tape-hero { grid-row: 1; grid-column: 1; align-self: start; margin-top: calc(var(--dev-w) * .214 - var(--band-h) / 2); }
  .hero-copy { grid-row: 2; padding: 4px var(--gutter) 8px; }
  .lede-long { display: none; }
  .lede-short { display: inline; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .boards { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .console-body { grid-template-columns: 1fr; }
  .vehicles { border-right: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .v { border-right: 1px solid var(--rule); }
  .privacy-grid { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .manifest-list { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .manifest-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .manifest-list .m-stay { margin: 0; }
  .route { grid-template-columns: 1fr; gap: 36px; }
  .route::before { top: 0; bottom: 0; left: 59px; right: auto; border-top: 0; border-left: 3px dashed var(--ink-3); }
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board th, .board td { display: block; width: auto !important; }
  .board tbody tr { padding: 12px 14px 14px 30px; position: relative; border-bottom: 1px solid var(--rule); }
  .board tbody tr:last-child { border-bottom: 0; }
  .board tbody th, .board tbody td { padding: 0; border: 0; }
  .board tbody th { padding-left: 0; position: static; }
  .board tbody td { margin-top: 4px; }
  .board tbody td:last-child { margin-top: 8px; }
  .seg { left: 12px; top: 15px; }
  .playback { grid-template-columns: auto minmax(0, 1fr); }
  .readout { grid-column: 1 / -1; justify-content: space-between; }
  .trip-events { grid-template-columns: 1fr; }
  .trip-events li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .cb-refresh { display: none; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g:nth-child(4) { border-left: 1px solid rgba(236,237,232,.16); padding-left: 18px; }
  .g:nth-child(odd) { border-left: 0; padding-left: 4px; }
  .footer-inner p:last-child { margin-left: 0; }
}
@media (max-width: 520px) {
  .manifest-list { grid-template-columns: 1fr; }
  .manifest-list li { border-left: 0 !important; padding-left: 0 !important; }
  .manifest-list .m-stay { border: 2px solid var(--ink) !important; padding: 10px 12px !important; }
  .cta-row .btn { flex: 1 1 100%; }
  .email-chip { flex: 1 1 100%; }
  .email-text { flex: 1; font-size: .95rem; padding: 0 12px; }
  .copy-btn .copy-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .copy-btn-lg .copy-label { position: static; width: auto; height: auto; clip: auto; }
  .tape { --seg: 130px; }
  .brand-logo { height: 34px; }
  .btn-small { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.hero-title .accent { color: var(--accent-text); }
@media (max-width: 520px) { .m-other { display: none; } }
