/* ──────────────────────────────────────────────────────────────────
   Blue Car Recovery — operational dark redesign
   Built on the Volley Design System (terminal surface).
   ────────────────────────────────────────────────────────────────── */

:root {
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;

  --t-mono-xs: 11px;
  --t-mono-sm: 11px;
  --t-mono-md: 12px;
  --t-mono-lg: 13px;
  --t-body: 14px;
  --t-body-lg: 16px;
  --t-display-xs: 22px;
  --t-display-sm: 28px;
  --t-display-md: 40px;
  --t-display-lg: 64px;
  --t-display-xl: 96px;

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.55;
  --lh-prose: 1.7;

  --tracking-mono-tag: 0.12em;
  --tracking-mono-eyebrow: 0.06em;

  /* Surfaces — near-black with a slight cool tint */
  --bg:        oklch(0.13  0.012 250);
  --bg-2:      oklch(0.16  0.014 250);
  --surface:   oklch(0.19  0.014 250);
  --surface-2: oklch(0.22  0.014 250);
  --surface-hi:oklch(0.27  0.015 250);

  --line:    oklch(0.32 0.018 250 / 0.7);
  --line-hi: oklch(0.45 0.020 250 / 0.9);
  --line-dim: oklch(0.32 0.018 250 / 0.35);

  --fg:   oklch(0.97 0.005 250);
  --fg-2: oklch(0.78 0.010 250);
  --fg-3: oklch(0.70 0.012 250);
  --fg-4: oklch(0.66 0.012 250);

  /* BCR electric blue — the brand pop */
  --accent:       oklch(0.72 0.20 252);
  --accent-hi:    oklch(0.80 0.22 252);
  --accent-dim:   oklch(0.72 0.20 252 / 0.22);
  --accent-glow:  oklch(0.72 0.20 252 / 0.45);
  --accent-soft:  oklch(0.72 0.20 252 / 0.10);

  --good:    oklch(0.78 0.16 165);
  --warn:    oklch(0.82 0.16 75);
  --good-glow: oklch(0.78 0.16 165 / 0.4);
  --warn-glow: oklch(0.82 0.16 75 / 0.4);
  --danger:  oklch(0.70 0.20 25);

  --radius-sm: 3px;
  --radius:    6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px; --s-9: 96px;

  --max-w: 1280px;
  --gutter: clamp(24px, 4vw, 56px);

  --nav-h: 64px;
}

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; /* gsap handles it */ }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }

::selection { background: var(--accent-dim); color: var(--fg); }

/* Keyboard focus: one outline everywhere (DESIGN.md R4). The second rule out-ranks the
   `outline: none` on .field controls. */
:focus-visible { outline: 2px solid oklch(0.80 0.15 250); outline-offset: 2px; }
.btn:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid oklch(0.80 0.15 250); outline-offset: 2px; }

/* Screen-reader-only text: the word boundary in the service headings, the RDN expansion in the
   status box, and the real text behind a scrambling value (T7b). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Subtle film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Ambient radial highlights */
.app-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.35;
}
.app-shell::before {
  width: 1200px; height: 600px;
  top: -200px; left: -300px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.app-shell::after {
  width: 900px; height: 500px;
  bottom: -200px; right: -200px;
  background: radial-gradient(closest-side, oklch(0.45 0.18 290 / 0.10), transparent 70%);
}

/* ── Container ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms, background 200ms;
}
.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px; /* the logo is 40px tall on phones (T7 tap target) */
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--t-mono-lg);
  letter-spacing: var(--tracking-mono-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 180ms, background 180ms;
}
/* Hairline divider between sections */
.nav__link + .nav__link::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background: var(--line);
}
.nav__link:hover { color: var(--fg); background: var(--surface); }

/* Up to 1080px the links live in the menu (see the T2 block at the end). */
@media (max-width: 1080px) {
  .nav__inner { gap: var(--s-4); }
  .nav__links {
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  /* Keep the bar on one row: mark only, single CTA. */
  .nav__inner { grid-template-columns: auto 1fr; gap: var(--s-3); }
  .nav__cta { justify-self: end; }
  .nav__cta .btn--ghost { display: none; }
  .nav__cta .btn { font-size: var(--t-mono-xs); padding: 8px 12px; }
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px; /* tap target (T7) */
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  background: var(--surface);
  transition: border-color 180ms, background 180ms, transform 180ms;
}
.btn:hover { border-color: var(--line-hi); background: var(--surface-2); }
.btn--primary {
  background: var(--accent);
  color: oklch(0.10 0.01 250);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 24px var(--accent-glow);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface); }
.btn__arrow {
  display: inline-block;
  transition: transform 200ms;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── Section scaffolding ───────────────────────────────────────── */
.section {
  padding-block: clamp(80px, 12vw, 160px);
  position: relative;
}
.section--tight { padding-block: clamp(48px, 8vw, 96px); }
.section--bg2 { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-8);
  align-items: start;
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; gap: var(--s-5); }
}
.section__index {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--tracking-mono-tag);
  text-transform: uppercase;
  color: var(--fg-4);
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}
.section__index .num {
  color: var(--accent);
  font-weight: 600;
}
.section__rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 14px;
  width: 100%;
  max-width: 180px;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, var(--t-display-md));
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 var(--s-4);
  color: var(--fg);
  text-wrap: balance;
}
.section__lede {
  font-family: var(--font-sans);
  font-size: var(--t-body-lg);
  line-height: var(--lh-prose);
  color: var(--fg-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.section__lede a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.section__lede a:hover { color: var(--accent-hi); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--tracking-mono-tag);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100vh, 1100px);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* #hero-canvas had no box of its own: it sat static inside
   .hero__canvas and collapsed to the WebGL canvas's default 2:1
   intrinsic size, so the whole scene rendered into a short strip
   pinned to the top of the hero and was then stretched by the rule
   below. Give it the full hero box. */
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, transparent 42%, var(--bg) 96%),
    linear-gradient(180deg, transparent 68%, var(--bg) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
@media (max-width: 760px) {
  .hero__title, .hero__lede, .page-hero__title, .page-hero__lede {
    text-shadow: 0 2px 20px var(--bg), 0 0 8px var(--bg);
  }
}
.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.hero__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px var(--good);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.85); }
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, var(--t-display-xl));
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--fg);
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
/* splitLines() (scroll-anim.js) wraps each word so it can rise into view.
   The mask is a clip-path, not overflow: an inline-block that clips its
   overflow sits on its bottom edge and inflated every line by ~25%. The
   clip bleeds past the box: above and below so the serif ascenders and
   descenders at line-height 1.02 are not cut off, and to the sides so an
   italic glyph's overhang (the accent's final "d") is not either (T8). */
.word {
  display: inline-block;
  clip-path: inset(-0.15em -0.15em -0.25em -0.05em);
}
.word > span { display: inline-block; }
.hero__title .accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero__lede {
  max-width: 52ch;
  font-size: var(--t-body-lg);
  line-height: var(--lh-prose);
  color: var(--fg-2);
  margin-top: var(--s-5);
  text-wrap: pretty;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: var(--s-8);
  row-gap: var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}
.hero__meta-cell { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero__meta-num .unit { color: var(--accent); font-size: 0.6em; margin-left: 2px; }
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
}

/* Hero corner brackets — operations chrome */
.hero__bracket {
  position: absolute;
  width: 60px; height: 60px;
  border: 1px solid var(--line-hi);
  z-index: 2;
  pointer-events: none;
}
.hero__bracket--tl { top: calc(var(--nav-h) + 16px); left: var(--gutter); border-right: 0; border-bottom: 0; }
.hero__bracket--tr { top: calc(var(--nav-h) + 16px); right: var(--gutter); border-left: 0; border-bottom: 0; }
.hero__bracket--bl { bottom: 16px; left: var(--gutter); border-right: 0; border-top: 0; }
.hero__bracket--br { bottom: 16px; right: var(--gutter); border-left: 0; border-top: 0; }

.hero__telemetry {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  right: var(--gutter);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
}
.hero__telemetry .val { color: var(--fg); font-variant-numeric: tabular-nums; }
.hero__telemetry .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--good);
}
.hero__telemetry .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: pulse 1.6s ease-in-out infinite;
}
/* "Pause motion" (T7b, WCAG 2.2.2): the box's mono idiom, R4 focus ring. Ships hidden until
   motion.js runs; reduced motion has nothing to pause, so it stays hidden there. */
.hero__pause {
  align-self: flex-end;
  margin-top: 6px;
  padding: 6px 10px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--fg-2);
  background: oklch(1 0 0 / 0.05);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-sm);
}
.hero__pause:hover { color: var(--fg); background: oklch(1 0 0 / 0.10); }
.hero__pause[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__pause { display: none; } }
@media (max-width: 900px) {
  .hero__bracket { display: none; }
  /* The box's rows leave with the brackets; the control stays, bottom right, as a 44px tap
     target on the box's dark tint (the light trails run behind the hero's bottom on phones). */
  .hero__telemetry { top: auto; bottom: 16px; padding: 0; border: 0; background: none; backdrop-filter: none; }
  .hero__telemetry > div, .hero__telemetry > .live { display: none; } /* .live's own display rule out-ranks the div selector */
  .hero__pause {
    margin: 0;
    min-height: 44px;
    padding: 0 14px;
    background: color-mix(in oklch, var(--bg) 60%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
/* html.motion-paused (motion.js): every CSS animation holds its frame. */
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }

/* ── SERVICES ──────────────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-2);
}
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.service {
  position: relative;
  padding: var(--s-7);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--bg-2);
  transition: background 200ms;
  overflow: hidden;
}
.service:nth-child(2n) { border-right: 0; }
.service:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) {
  .service { border-right: 0; }
  .service:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity 240ms;
}
.service:hover::before { opacity: 1; }
.service__index {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--tracking-mono-tag);
  text-transform: uppercase;
  color: var(--fg-4);
}
.service__icon {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--surface);
}
.service__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.service__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--fg);
}
.service__title .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 500;
}
.service__body {
  font-size: var(--t-body);
  line-height: var(--lh-prose);
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--s-4);
}
.tag {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
}

/* ── COVERAGE ──────────────────────────────────────────────────── */
.coverage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } }
.coverage__map {
  position: relative;
  aspect-ratio: 900/560;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: inset 0 0 80px oklch(0 0 0 / 0.5);
}
.coverage__map svg { width: 100%; height: 100%; position: relative; z-index: 1; }
/* No-JS fallback: the pre-rendered map (scripts/render-map.mjs) fills the frame. */
.coverage__map noscript img, .coverage__map img.map-fallback { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.coverage__map svg .state {
  /* Visible by default; only hidden while the entrance is armed. */
  fill: oklch(0.27 0.04 250 / 0.82);
  fill: color-mix(in oklch, var(--surface) 70%, var(--accent) 12%);
  stroke: var(--line-hi);
  stroke-width: 0.6;
  opacity: 1;
  transition: opacity 520ms ease-out, fill 520ms ease-out;
}
.coverage__map.is-armed svg .state { opacity: 0; }
.coverage__map.is-armed svg .state.is-in { opacity: 1; }
.coverage__map svg .state:hover {
  fill: var(--accent-dim);
  stroke: var(--accent);
}
.coverage__map svg .state-borders {
  fill: none;
  stroke: var(--line-hi);
  stroke-width: 0.5;
  pointer-events: none;
  opacity: 0.8;
}
/* Hub pings */
.coverage__map svg .hubs { opacity: 0; transition: opacity 600ms ease-out; pointer-events: none; }
.coverage__map.hubs-live svg .hubs { opacity: 1; }
.coverage__map svg .hub__core {
  fill: var(--accent);
  animation: hub-core 3.2s ease-in-out infinite;
}
.coverage__map svg .hub__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  transform-origin: 0 0;
  animation: hub-ring 3.2s ease-out infinite;
}
@keyframes hub-ring {
  0%   { transform: scale(0.6); opacity: 0.9; }
  70%  { transform: scale(4.2); opacity: 0; }
  100% { transform: scale(4.2); opacity: 0; }
}
@keyframes hub-core {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.coverage__map.map-failed::after {
  content: "MAP DATA UNAVAILABLE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-4);
}
.coverage__map .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.5;
}
.coverage__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cov-stat {
  background: var(--bg-2);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cov-stat__num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cov-stat__num .unit { color: var(--accent); font-size: 0.55em; margin-left: 4px; }
.cov-stat__label {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
}
.cov-stat__sub {
  font-size: var(--t-body);
  color: var(--fg-2);
  margin-top: 4px;
}

/* ── PROCESS ───────────────────────────────────────────────────── */
.process__steps {
  display: grid;
  gap: 0;
}
.process__step {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: var(--s-7);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
  position: relative;
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .process__step { grid-template-columns: 60px 1fr; }
  .process__step .process__detail { grid-column: 1 / -1; padding-left: 76px; margin-top: var(--s-3); }
}
.process__num {
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.process__step-content { display: flex; flex-direction: column; gap: var(--s-2); }
.process__step-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: var(--fg);
}
.process__step-meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
  display: flex;
  gap: var(--s-3);
}
.process__step-meta .dot {
  color: var(--accent);
}
.process__detail {
  font-size: var(--t-body);
  line-height: var(--lh-prose);
  color: var(--fg-2);
  margin: 0;
  align-self: center;
}
.process__detail strong { color: var(--fg); font-weight: 600; }

/* ── WHY US ────────────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why__card {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 200ms, transform 200ms;
}
.why__card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.why__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.why__card-num {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--tracking-mono-tag);
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: var(--s-2);
}
.why__card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: var(--fg);
}
.why__card-body {
  font-size: var(--t-body);
  line-height: var(--lh-prose);
  color: var(--fg-2);
  margin: 0;
}

/* ── COMPLIANCE ───────────────────────────────────────────────── */
.compliance {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) { .compliance { grid-template-columns: 1fr; } }
.compliance__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.compliance__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.compliance__item-name {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
}
.compliance__item-name::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.3), 0 0 8px var(--good-glow);
  display: inline-block;
  position: relative;
}
/* A row whose value is still a fact slot is not "held": amber, not green, until the fact arrives (T7) */
.compliance__item:has(.fact-slot) .compliance__item-name::before {
  background: var(--warn);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.3), 0 0 8px var(--warn-glow);
}
.compliance__item-meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
}

.compliance__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}
.compliance__card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.compliance__card-eye {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--tracking-mono-tag);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.compliance__seal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.compliance__seal-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
  background: var(--surface);
  line-height: 1.4;
}
.compliance__seal-cell strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  font-size: var(--t-mono-md);
}/* ── CONTACT ───────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: flex; flex-direction: column; gap: var(--s-5); }
.contact__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.contact__row-label {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-4);
}
.contact__row-value {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg);
}
.contact__row-value a { color: var(--accent); }

.form {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.field { display: grid; gap: 6px; }
.field--row { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 540px) { .field--row { grid-template-columns: 1fr; } }
.field__label {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
}
.field input, .field select, .field textarea {
  font-family: var(--font-mono);
  font-size: var(--t-mono-lg);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.field textarea { min-height: 100px; resize: vertical; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: var(--s-7) var(--s-5);
  margin-top: var(--s-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: var(--s-3); max-width: 30ch; }
.footer__tag {
  font-size: var(--t-body);
  color: var(--fg-3);
  line-height: 1.55;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-4);
  margin-bottom: var(--s-3);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer__list a {
  font-family: var(--font-mono);
  font-size: var(--t-mono-md);
  color: var(--fg-2);
  transition: color 180ms;
}
.footer__list a:hover { color: var(--fg); }

.footer__bottom {
  padding-top: var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-4);
}
.footer__bottom a { color: var(--fg-3); }
.footer__bottom a:hover { color: var(--fg); }

/* ── Marquee ───────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: var(--s-3);
}
.marquee__track {
  display: flex;
  gap: var(--s-7);
  width: max-content;
  will-change: transform;
  animation: marquee 50s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  white-space: nowrap;
}
.marquee__item::before {
  content: "◆";
  color: var(--accent);
  font-size: 8px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__status-dot, .hero__telemetry .live::before { animation: none; }
  .coverage__map svg .hub__ring, .coverage__map svg .hub__core { animation: none; }
}

/* ── Network band ─────────────────────────────────────────────── */
.netband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .netband { grid-template-columns: repeat(2, 1fr); } }
.netband__cell { display: flex; flex-direction: column; gap: 6px; }
.netband__label {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono-tag);
  color: var(--fg-4);
}
.netband__value {
  font-size: var(--t-body);
  color: var(--fg-2);
  line-height: 1.55;
}
.netband__value strong { color: var(--fg); font-weight: 600; }


/* Brand logo (artwork already includes the wordmark) */
.brand-logo {
  display: block;
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 10px oklch(0.6 0.2 252 / 0.35));
}
.brand-logo--footer { height: 72px; }
@media (max-width: 760px) { .brand-logo { height: 40px; } .brand-logo--footer { height: 64px; } }
/* ══ Glass sections over the night-road scene ════════════════════ */
.scene-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease-out;
}
.scene-bg.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scene-bg { transition: none; } }
.app-shell { position: relative; z-index: 1; }

:root {
  --glass:        oklch(0.27 0.018 255 / 0.58);
  --glass-2:      oklch(0.22 0.018 255 / 0.62);
  --glass-edge:   oklch(0.92 0.02 255 / 0.10);
  --glass-hi:     oklch(0.98 0.01 255 / 0.07);
  --glass-radius: 24px;
  --card-inset:   clamp(12px, 3vw, 40px);
}

/* Sections become floating slate cards; the scene shows between them. */
.section,
.section--bg2 {
  background: transparent;
  border-block: 0;
  padding-block: clamp(14px, 2.2vw, 28px);
}
.section--tight { padding-block: clamp(14px, 2.2vw, 28px); }
.section > .wrap,
.footer > .wrap {
  position: relative;
  width: calc(100% - 2 * var(--card-inset));
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4.5vw, 64px);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--glass-edge);
  border-radius: var(--glass-radius);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 1px 0 oklch(0 0 0 / 0.25),
    0 30px 80px -24px oklch(0 0 0 / 0.65);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}
/* Soft sheen along the top edge of each card */
.section > .wrap::before,
.footer > .wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.05), transparent 28%);
}
.section > .wrap > *,
.footer > .wrap > * { position: relative; }

.footer {
  background: transparent;
  border-top: 0;
  margin-top: 0;
  padding-block: clamp(14px, 2.2vw, 28px) clamp(24px, 4vw, 48px);
}

/* Inside a card, surfaces are *lighter* frosted layers (white tint),
   hairlines are soft white, corners are rounder — so nested panels
   read as part of the same glass instead of dark slabs cut into it. */
.section > .wrap, .footer > .wrap {
  --bg:        oklch(1 0 0 / 0.035);
  --bg-2:      oklch(1 0 0 / 0.035);
  --surface:   oklch(1 0 0 / 0.06);
  --surface-2: oklch(1 0 0 / 0.09);
  --line:      oklch(1 0 0 / 0.08);
  --line-hi:   oklch(1 0 0 / 0.16);
  --line-dim:  oklch(1 0 0 / 0.05);
  --radius-sm: 8px;
  --radius:    10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --tile-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05), 0 10px 30px -18px oklch(0 0 0 / 0.6);
}
.services { background: transparent; }
.marquee {
  background: oklch(0.12 0.012 250 / 0.50);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Hero: the scene comes through behind the particle network. */
.hero { border-bottom: 0; }
.hero__veil {
  background:
    radial-gradient(ellipse at 30% 55%, oklch(0.10 0.01 250 / 0.55) 0%, transparent 60%),
    linear-gradient(180deg, oklch(0.08 0.01 250 / 0.25) 0%, transparent 30%, transparent 80%, oklch(0.08 0.01 250 / 0.35) 100%);
}
.hero__canvas { opacity: 0.75; }


/* ══ Refinement: panels, tiles, feature cards, form, buttons ═════ */

/* Hairline-grid blocks become separated soft tiles */
.services {
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.service, .why__card, .process__step, .cov-stat {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  box-shadow: var(--tile-shadow);
  /* GSAP drives `transform` on these for the entrance; a CSS transition
     on the same property made them lag and settle out of line. Hover
     lift uses the independent `translate` property instead. */
  transition: background 220ms, border-color 220ms, translate 220ms, box-shadow 220ms;
}
.service:hover, .why__card:hover {
  background: var(--surface);
  border-color: var(--line-hi) !important;
}
.why__card:hover, .service:hover {
  transform: none;
  translate: 0 -3px;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07), 0 18px 40px -20px oklch(0 0 0 / 0.7);
}
.why { align-items: stretch; }
/* Accent tab sits inside the rounded corner, aligned to the content */
.why__card::before {
  top: 0;
  left: var(--s-6);
  width: 36px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--accent), oklch(0.8 0.15 252 / 0.4));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Feature cards: eye-catching, but lit from the same glass */
.compliance__card {
  border: 1px solid oklch(0.78 0.12 252 / 0.22);
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(0.72 0.20 252 / 0.16), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, oklch(0.72 0.20 252 / 0.07), transparent 60%),
    oklch(1 0 0 / 0.045);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 0 0 1px oklch(0 0 0 / 0.15),
    0 24px 60px -28px oklch(0.55 0.2 252 / 0.45);
  border-radius: var(--radius-lg);
}
.compliance__card::before {
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.8 0.15 252 / 0.9), transparent);
}
.compliance__seal-cell {
  background: oklch(1 0 0 / 0.05);
  border-color: oklch(1 0 0 / 0.09);
  border-radius: 12px;
}

/* Form: frosted panel, soft fields, calm focus */
.form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(1 0 0 / 0.04);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06), 0 24px 60px -30px oklch(0 0 0 / 0.6);
  padding: clamp(20px, 3vw, 32px);
  gap: 18px;
}
.field__label { color: var(--fg-3); letter-spacing: 0.08em; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  background: oklch(1 0 0 / 0.045);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.18);
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-4); }
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: oklch(1 0 0 / 0.16);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: oklch(1 0 0 / 0.065);
  border-color: oklch(0.78 0.15 252 / 0.65);
  box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.12);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9b4c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: #1a2130; color: #e8ecf4; }
.form .btn--primary {
  justify-self: stretch;
  justify-content: center;
  padding: 14px 22px;
  margin-top: 4px;
  font-size: var(--t-mono-md);
}

/* Form states: idle → invalid → sending → sent | error (assets/js/forms.js).
   The button also ships disabled for the JS-off case (T7b). */
.form__submit { display: grid; }
.form .btn--primary[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}
.form .btn--primary[aria-busy="true"] { cursor: progress; }
.form__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}
.form__status:not(:empty) { margin-top: 14px; }
.form[data-state="error"] .form__status { color: var(--danger); }
.form__status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form__done { display: none; }
.form[data-state="sent"] > :not(.form__done) { display: none; }
.form[data-state="sent"] .form__done {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
  outline: none;
}
.form__done-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--t-mono-lg);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--good);
}
.form__done-body {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* Buttons: polished glass + a lit primary, no neon halo */
.btn {
  border-radius: 10px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(1 0 0 / 0.06);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 1px 2px oklch(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 180ms, border-color 180ms, transform 180ms, box-shadow 180ms;
}
.btn:hover {
  background: oklch(1 0 0 / 0.10);
  border-color: oklch(1 0 0 / 0.22);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn--ghost { background: oklch(1 0 0 / 0.035); }
.btn--primary {
  color: oklch(0.16 0.03 255);
  border: 1px solid oklch(0.86 0.12 252 / 0.9);
  background: linear-gradient(180deg, oklch(0.80 0.15 250) 0%, oklch(0.70 0.19 253) 100%);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.45),
    inset 0 -1px 0 oklch(0.45 0.18 255 / 0.5),
    0 1px 2px oklch(0 0 0 / 0.3),
    0 10px 28px -10px oklch(0.65 0.2 252 / 0.65);
}
.btn--primary:hover {
  background: linear-gradient(180deg, oklch(0.84 0.14 250) 0%, oklch(0.74 0.19 253) 100%);
  border-color: oklch(0.90 0.10 252);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.5),
    inset 0 -1px 0 oklch(0.45 0.18 255 / 0.5),
    0 2px 4px oklch(0 0 0 / 0.3),
    0 14px 34px -10px oklch(0.65 0.2 252 / 0.75);
}


/* ══ Floating glass nav ══════════════════════════════════════════ */
.nav {
  inset: 12px 0 auto 0;
  height: auto;
  padding-inline: var(--card-inset);
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav__inner {
  position: relative;
  height: 64px;
  padding-inline: 14px 10px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(60% 140% at 50% -40%, oklch(0.72 0.2 252 / 0.10), transparent 70%),
    linear-gradient(180deg, oklch(0.25 0.02 255 / 0.66), oklch(0.18 0.02 255 / 0.62));
  border: 1px solid oklch(1 0 0 / 0.10);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 1px 0 oklch(0 0 0 / 0.3),
    0 20px 44px -20px oklch(0 0 0 / 0.75);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  transition: background 240ms, box-shadow 240ms;
}
.nav.is-scrolled .nav__inner {
  background:
    radial-gradient(60% 140% at 50% -40%, oklch(0.72 0.2 252 / 0.12), transparent 70%),
    linear-gradient(180deg, oklch(0.23 0.02 255 / 0.82), oklch(0.17 0.02 255 / 0.78));
}
.nav__links { gap: 2px; }
.nav__link {
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--fg-2);
  transition: color 180ms, background 180ms;
}
.nav__link + .nav__link::before { background: oklch(1 0 0 / 0.08); height: 14px; }
.nav__link:hover { color: var(--fg); background: oklch(1 0 0 / 0.07); }
.nav__link.is-active { color: var(--fg); background: oklch(1 0 0 / 0.08); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 3px;
  width: 14px; height: 2px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav__link.is-active + .nav__link::before,
.nav__link:hover + .nav__link::before { opacity: 0; }
.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--accent) 30%, oklch(0.85 0.12 230));
  opacity: 0.8;
  pointer-events: none;
}
.hero { padding-top: calc(var(--nav-h) + 64px); }
@media (max-width: 760px) {
  .nav { inset: 8px 0 auto 0; }
  .nav__inner { height: 58px; border-radius: 16px; padding-inline: 10px 8px; }
}

/* ══ Section cards: depth and rhythm ═════════════════════════════ */
.section > .wrap {
  background:
    radial-gradient(55% 45% at 100% 0%, oklch(0.72 0.20 252 / 0.10), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, oklch(0.70 0.14 40 / 0.05), transparent 70%),
    linear-gradient(180deg, var(--glass), var(--glass-2));
  border-color: transparent;
}
.section:nth-of-type(even) > .wrap {
  background:
    radial-gradient(55% 45% at 0% 0%, oklch(0.72 0.20 252 / 0.10), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, oklch(0.70 0.14 40 / 0.05), transparent 70%),
    linear-gradient(180deg, var(--glass), var(--glass-2));
}
/* Lit edge: brighter on top, fading down, faint blue at the base */
.section > .wrap::after,
.footer > .wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.20), oklch(1 0 0 / 0.06) 35%, oklch(1 0 0 / 0.04) 70%, oklch(0.72 0.2 252 / 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Section label becomes a small glass chip */
.section__index {
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 10px;
}
.section__index > span:not(.section__rule):first-child,
.section__index .num {
  display: inline-grid;
  place-items: center;
  min-width: 30px; height: 24px;
  padding-inline: 8px;
  border-radius: 999px;
  background: oklch(0.72 0.2 252 / 0.14);
  border: 1px solid oklch(0.78 0.15 252 / 0.30);
  color: oklch(0.86 0.12 250);
  box-shadow: 0 0 16px -4px oklch(0.72 0.2 252 / 0.5);
}
.section__index > span:nth-child(2) { color: var(--fg-3); }
.section__rule { margin-top: 0; flex: 1; min-width: 40px; }

/* Service icons: lit tiles */
.service__icon {
  border: 1px solid oklch(0.78 0.15 252 / 0.28);
  border-radius: 14px;
  background:
    radial-gradient(100% 100% at 30% 0%, oklch(0.72 0.2 252 / 0.28), transparent 70%),
    oklch(1 0 0 / 0.05);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), 0 8px 24px -10px oklch(0.6 0.2 252 / 0.6);
}


/* Process steps are tiles now: give them inner padding and air between them */
.process__steps { gap: 12px; }
.process__step {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.2vw, 44px);
  gap: clamp(24px, 3.5vw, 48px);
  grid-template-columns: 72px 1fr 1.2fr;
  align-items: start;
}
.process__num {
  background: linear-gradient(180deg, oklch(0.88 0.10 245), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  /* `color` stays --accent (the gradient's darkest stop): it is the fallback where
     background-clip: text is missing, and what tests/test_contrast.py measures. */
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px oklch(0.72 0.2 252 / 0.35));
}
@media (max-width: 900px) {
  .process__step { grid-template-columns: 52px 1fr; }
  .process__step .process__detail { padding-left: calc(52px + clamp(24px, 3.5vw, 48px)); }
}
@media (max-width: 540px) {
  .process__step .process__detail { padding-left: 0; }
}
.process__step-meta { flex-wrap: wrap; row-gap: 4px; }
.process__step-meta > * { white-space: nowrap; }

/* Fallbacks: no backdrop blur, or the viewer asked for less transparency.
   The :nth-of-type(even) selector is restated because the even-card rule above out-ranks
   `.section > .wrap`, which left every other card see-through and unblurred here. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section > .wrap, .section:nth-of-type(even) > .wrap, .footer > .wrap { background: oklch(0.21 0.018 255 / 0.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .section > .wrap, .section:nth-of-type(even) > .wrap, .footer > .wrap { background: oklch(0.21 0.018 255); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 760px) {
  :root { --glass-radius: 18px; }
  .section > .wrap, .footer > .wrap {
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}

/* ── T2 components: skip link, menu, form feedback ─────── */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.nav__menu { display: contents; }
.nav__quote { display: none; } /* the compact CTA beside Menu: ships hidden, nav.js reveals it, ≤1080px only (T8) */
.nav__toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid oklch(1 0 0 / 0.14); border-radius: 10px; background: oklch(1 0 0 / 0.06); color: var(--fg); font: 500 14px/1 var(--font-sans); }
/* The menu, up to the width where the five links stop fitting beside the CTAs (they fit from ~1000px).
   Progressive: without nav.js (JS off, or the script failed) it is a plain stacked list in the bar's
   own glass, in the page flow. nav.js adds .nav--js, which collapses it behind the Menu button. */
@media (max-width: 1080px) {
  .nav, .nav__inner { overflow: visible; }
  .nav__menu { display: grid; gap: 12px; }
  .nav__menu .nav__links { display: grid; gap: 4px; justify-self: stretch; }
  .nav__menu .nav__link { min-height: 44px; display: flex; align-items: center; }
  .nav__menu .nav__cta .btn { display: flex; align-items: center; } /* .btn already carries min-height: 44px (T8) */
  .nav__menu .nav__link + .nav__link::before { display: none; }
  .nav__menu .nav__cta { display: grid; gap: 8px; justify-self: stretch; }
  .nav__menu .nav__cta .btn { justify-content: center; }
  /* no nav.js: the bar grows with its list and scrolls away with the page */
  .nav:not(.nav--js) { position: relative; inset: auto; margin-top: 12px; }
  .nav:not(.nav--js) .nav__inner { height: auto; grid-template-columns: 1fr; gap: 8px; padding-block: 8px 14px; }
  .nav:not(.nav--js) + main > :first-child { padding-top: 48px; }
  /* nav.js: a Menu button, and a panel in the same glass as .nav__inner (DESIGN.md R6). The fill is
     near-opaque because a backdrop-filter nested inside .nav__inner's own cannot blur the page. */
  .nav--js .nav__toggle { display: inline-flex; align-items: center; margin-left: auto; }
  /* A compact "Quote →" stays reachable beside Menu without opening the panel (critique #2, T8). On
     vendors.html nav.js retargets it, and the panel's primary CTA, to #apply. */
  .nav--js .nav__inner { grid-template-columns: auto 1fr auto; }
  .nav--js .nav__quote { display: inline-flex; justify-self: end; padding: 0 14px; }
  .nav--js .nav__menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 12px; border-radius: 18px;
    background: radial-gradient(60% 140% at 50% -40%, oklch(0.72 0.2 252 / 0.10), transparent 70%), linear-gradient(180deg, oklch(0.25 0.02 255 / 0.99), oklch(0.18 0.02 255 / 0.99));
    border: 1px solid oklch(1 0 0 / 0.10); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 20px 44px -20px oklch(0 0 0 / 0.75);
    -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
  .nav--js.is-open .nav__menu { display: grid; }
  /* .nav__inner no longer clips (the panel hangs below it): keep the line inside the rounded corners */
  .nav__progress { left: 14px; right: 14px; }
}
.nav__link[aria-current] { color: var(--fg); background: oklch(1 0 0 / 0.08); }
.field__opt { text-transform: none; letter-spacing: 0; color: var(--fg-3); }
.field__hint { margin: 0; font-size: 13px; color: var(--fg-3); }
.field__error { margin: 0; font-size: 14px; color: var(--danger); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.form__next { margin: 0; font-size: 14px; color: var(--fg-2); }
.form__next a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form[data-state="invalid"] .form__status { color: var(--danger); }

/* T2: what the shared chrome and page shells need to sit in the existing glass. Functional only. */
html { scroll-padding-top: calc(var(--nav-h) + 24px); } /* focus and #anchors land below the fixed nav */
#main:focus { outline: none; }
.field { align-content: start; } /* an inline error must not push its row-mate's input down */
.wrap > .form { max-width: 760px; } /* a form that is a card's own content (vendors), not a .contact column */
.footer__brand .brand-logo { align-self: flex-start; }
.footer__col-title { margin-top: 0; color: var(--fg-2); } /* where the footer glass sits over the horizon, --fg-4 measured 4.3:1 and --fg-3 4.48:1 at 390px */
.footer__col-title::before { content: "// "; content: "// " / ""; } /* the mono // label stays (D9), silent to screen readers; the markup carries plain words */
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* ── T3: DESIGN.md refinements R5, R7, R8 (R1–R4 are applied in place above) ─────── */
/* R5: footer links are tap targets on phones. The nav CTAs and menu items already are (T2, ≤1080px). */
@media (max-width: 760px) {
  .footer__list a, .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* R7: an unfilled fact is obvious until launch */
.fact-slot { color: var(--warn); outline: 1px dashed var(--warn); outline-offset: 2px; border-radius: 4px; padding: 0 3px; white-space: nowrap; }
/* R8: subpage hero — the hero's veil, serif display and lede over the road, no particle canvas */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + 56px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 55%, oklch(0.10 0.01 250 / 0.55) 0%, transparent 60%),
    linear-gradient(180deg, oklch(0.08 0.01 250 / 0.25) 0%, transparent 30%);
}
/* the wrap's padding includes --card-inset, the card's max-width does not: widen by it so the title lines up with the card content at every width */
.page-hero .wrap { position: relative; max-width: calc(var(--max-w) + 2 * var(--card-inset)); margin-inline: auto; padding-inline: calc(var(--card-inset) + 1px + clamp(20px, 4.5vw, 64px)); } /* inset + the card's 1px border + its padding */
.page-hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 6vw, 72px); line-height: var(--lh-tight); letter-spacing: -0.015em; margin: 0 0 var(--s-4); color: var(--fg); text-wrap: balance; }
.page-hero__lede { max-width: 62ch; font-size: var(--t-body-lg); line-height: var(--lh-prose); color: var(--fg-2); margin: 0; }
/* R8: long-form copy and document tables, inside a section card */
.prose { max-width: 70ch; font-size: var(--t-body-lg); line-height: var(--lh-prose); color: var(--fg-2); }
.prose h2 { font-family: var(--font-serif); font-weight: 500; color: var(--fg); font-size: var(--t-display-xs); margin: var(--s-7) 0 var(--s-3); }
.prose a { color: var(--accent); }
.doc__table { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
/* A table's caption in the mono label idiom (the `//` is CSS, silent to screen readers, like the footer titles) */
.doc__table caption { caption-side: top; text-align: left; font: 500 var(--t-mono-xs)/1.3 var(--font-mono); letter-spacing: var(--tracking-mono-tag); text-transform: uppercase; color: var(--fg-3); padding: 0 0 var(--s-3); }
.doc__table caption::before { content: "// "; content: "// " / ""; }
.doc__table th { text-align: left; font: 500 var(--t-mono-sm)/1.3 var(--font-mono); letter-spacing: var(--tracking-mono-tag); text-transform: uppercase; color: var(--fg-3); padding: 0 0 var(--s-2); border-bottom: 1px solid var(--line); }
.doc__table td { font-family: var(--font-mono); color: var(--fg-2); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
/* A long document table folds behind a disclosure (T8, critique #2): the summary is a mono `//` label
   with a chevron, a 44px target, in the same idiom as the caption it reveals. */
.doc__details { border-top: 1px solid var(--line); }
.doc__details > summary { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; list-style: none; font: 500 var(--t-mono-sm)/1.3 var(--font-mono); letter-spacing: var(--tracking-mono-tag); text-transform: uppercase; color: var(--fg-2); }
.doc__details > summary::-webkit-details-marker { display: none; }
.doc__details > summary::before { content: "// "; content: "// " / ""; color: var(--fg-3); }
.doc__details > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms; }
.doc__details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.doc__details > summary:hover { color: var(--fg); }
.doc__details > .doc__table { margin-top: var(--s-3); }
@media (prefers-reduced-motion: reduce) { .doc__details > summary::after { transition: none; } }

/* ── T7: hardening (tap targets, reflow) ─────────────────────────── */
/* R5, continued: the contact rows' links are tap targets on phones, like the footer's. A fact slot
   longer than a phone line wraps instead of pushing its card wider (the vendors page has two). */
@media (max-width: 760px) {
  .contact__row-value a { display: inline-flex; align-items: center; min-height: 44px; }
  .fact-slot { white-space: normal; }
}
/* WCAG 1.4.10, reflow at 320px: a section card's content is 254px wide there. Below 380px the
   pieces that need more than that stack or shrink; from 390px up nothing here applies. */
@media (max-width: 380px) {
  .service { padding: var(--s-6); }                                  /* "BCR Locksmith" on one line at 26px */
  .process__step { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); } /* the numeral above the title */
  .contact__row-value { font-size: 15px; }                          /* the lender email at 18px mono is 259px */
  .footer__grid { grid-template-columns: 1fr; }                     /* the same email beside the brand column */
}
