/* =========================================================
   Noah Armstrong / Direction A: "Field Manual"
   Paper, ink, one survey red.
   Type: Barlow Condensed (display, highway-signage DNA),
         Source Serif 4 (body), Barlow Semi Condensed (labels).
   ========================================================= */

/* =========================================================
   TOKENS
   Public contract (the Ask widget styles itself with only these):
     --paper --paper-2 --paper-3 --ink --graphite --muted --rule --rule-strong
     --red --red-deep --red-on-ink --ok   and the --f-* font tokens.
   --red is the palette's accent (red, orange or amber) in a shade that is safe
   for small text on --paper and --paper-2 in the same zone. --red-deep is a step
   stronger. --red-on-ink is the accent for use on a dark surface. Bright decorative
   accent: --acc (fills, glows); text on an --acc fill: --on-acc.
   ========================================================= */

:root {
  --f-display: "Barlow Condensed", "Barlow Condensed FB", "Barlow Condensed FB R", sans-serif;
  --f-label: "Barlow Semi Condensed", "Barlow Semi FB", "Barlow Semi FB R", sans-serif;
  --f-body: "Source Serif 4", "Source Serif FB", "Source Serif FB Noto", "Source Serif FB Times", serif;
  --track: .08em;

  --fs-h1: clamp(3.9rem, 2.2rem + 4.6vw, 5.6rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);
  --fs-h3: 1.4375rem;
  --fs-intro: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-label: .875rem;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --sect: clamp(72px, 9vw, 136px);
  --nav-h: 60px;
}

/* =========================================================
   PALETTES   <html data-palette="survey|blueprint|highway">
   Each palette defines a LIGHT zone set (--L-*) and a DARK zone set (--D-*).
   A zone maps one of them onto the public tokens; components only ever read
   the public tokens, so one rule recolors everything.
   Survey is the default (no-JS, 404, print). Chosen before first paint by the
   inline script in <head>: saved pick, then audience mode (towns = highway),
   then local time (07:00 to 18:59 survey, else blueprint).
   ========================================================= */

/* survey: concrete, graphite navy, laser red */
:root {
  --page-bg: #14202B; --theme: #F1F3F4;
  --L-paper-rgb: 241,243,244; --L-ink-rgb: 20,32,43; --L-acc-rgb: 227,6,19;
  --L-paper-2: #E3E7E9; --L-paper-3: #D2D9DC;
  --L-graphite: #3D4B58; --L-muted: #505D6A;
  --L-rule: #C8CFD4; --L-rule-strong: #738392;
  --L-red: #B90818; --L-red-deep: #A30715; --L-on-acc: #FFFFFF; --L-ok: #187149; --L-fig: #FAFBFB;
  --D-paper-rgb: 20,32,43; --D-ink-rgb: 241,243,244; --D-acc-rgb: 255,68,82;
  --D-paper-2: #0E1822; --D-paper-3: #1D2E3E;
  --D-graphite: #BDC8D2; --D-muted: #93A3B2;
  --D-rule: #2B3E50; --D-rule-strong: #5A7084;
  --D-red: #FF5A66; --D-on-acc: #14202B; --D-ok: #59D69A; --D-fig: #0E1822;
}
/* blueprint: cyanotype blue, paper-white linework, safety orange */
html[data-palette="blueprint"] {
  --page-bg: #0F3263; --theme: #0F3263;
  --L-paper-rgb: 232,240,248; --L-ink-rgb: 10,38,71; --L-acc-rgb: 255,107,26;
  --L-paper-2: #D9E6F3; --L-paper-3: #C6D8EC;
  --L-graphite: #2B4A72; --L-muted: #3E5B83;
  --L-rule: #B3C7DE; --L-rule-strong: #6482AC;
  --L-red: #A33500; --L-red-deep: #8F2E00; --L-on-acc: #0A2647; --L-ok: #0D7046; --L-fig: #F4F8FC;
  --D-paper-rgb: 15,50,99; --D-ink-rgb: 243,247,252; --D-acc-rgb: 255,107,26;
  --D-paper-2: #0B2A55; --D-paper-3: #143F77;
  --D-graphite: #C4D4EA; --D-muted: #9FB8D9;
  --D-rule: #2D5189; --D-rule-strong: #5C80B2;
  --D-red: #FF8A46; --D-on-acc: #0A2647; --D-ok: #6FE3B0; --D-fig: #0A2748;
}
/* highway: sign green, white type, reflective amber */
html[data-palette="highway"] {
  --page-bg: #0B5E3C; --theme: #0B5E3C;
  --L-paper-rgb: 244,246,243; --L-ink-rgb: 10,31,22; --L-acc-rgb: 255,184,28;
  --L-paper-2: #E6EBE6; --L-paper-3: #D5DDD6;
  --L-graphite: #37463E; --L-muted: #4F5F56;
  --L-rule: #C8D1CA; --L-rule-strong: #79877E;
  --L-red: #895000; --L-red-deep: #744300; --L-on-acc: #0A1F16; --L-ok: #0B6B43; --L-fig: #FBFCFA;
  --D-paper-rgb: 11,94,60; --D-ink-rgb: 247,250,248; --D-acc-rgb: 255,184,28;
  --D-paper-2: #094D32; --D-paper-3: #0E6D46;
  --D-graphite: #D3E6DB; --D-muted: #C2DDCE;
  --D-rule: #2E7F5C; --D-rule-strong: #71B091;
  --D-red: #FFD165; --D-on-acc: #0A1F16; --D-ok: #8BEAB4; --D-fig: #07402A;
}
/* print is always the survey light set */
@media print {
  html[data-palette] {
    --page-bg: #fff;
    --L-paper-rgb: 241,243,244; --L-ink-rgb: 20,32,43; --L-acc-rgb: 227,6,19;
    --L-paper-2: #E3E7E9; --L-paper-3: #D2D9DC; --L-graphite: #3D4B58; --L-muted: #505D6A;
    --L-rule: #C8CFD4; --L-rule-strong: #738392;
    --L-red: #B90818; --L-red-deep: #A30715; --L-on-acc: #FFFFFF; --L-ok: #187149; --L-fig: #FAFBFB;
  }
}

/* LIGHT zone (default) */
:root, .zone-l {
  --paper-rgb: var(--L-paper-rgb); --paper: rgb(var(--L-paper-rgb));
  --ink-rgb: var(--L-ink-rgb);     --ink: rgb(var(--L-ink-rgb));
  --acc-rgb: var(--L-acc-rgb);     --acc: rgb(var(--L-acc-rgb));
  --paper-2: var(--L-paper-2); --paper-3: var(--L-paper-3);
  --graphite: var(--L-graphite); --muted: var(--L-muted);
  --rule: var(--L-rule); --rule-strong: var(--L-rule-strong);
  --red: var(--L-red); --red-deep: var(--L-red-deep); --red-on-ink: var(--D-red);
  --on-acc: var(--L-on-acc); --ok: var(--L-ok); --fig: var(--L-fig);
  /* device hardware (the phone in Fig. 2) */
  --dev: var(--ink); --dev-screen: color-mix(in srgb, var(--ink) 84%, var(--paper));
  --dev-line: var(--rule-strong); --dev-fg: var(--paper);
  --dev-fg2: color-mix(in srgb, var(--paper) 72%, var(--ink));
  --fb-filter: none; --fb-blend: multiply;   /* no-JS point-cloud image */
}

/* DARK zone: the Approach band in every palette, plus the bands each palette
   chooses. Screen only: print always uses the light set. */
@media screen {
  .zone-d, .section--ink,
  html[data-palette="blueprint"] :is(.nav, .rev, .hero, .proof, .contact, .foot, .schematic, .scan__view),
  html[data-palette="highway"] :is(.nav, .rev, .hero, .contact, .foot, .schematic, .scan__view),
  html:not([data-palette="blueprint"]):not([data-palette="highway"]) :is(.contact, .foot) {
    --paper-rgb: var(--D-paper-rgb); --paper: rgb(var(--D-paper-rgb));
    --ink-rgb: var(--D-ink-rgb);     --ink: rgb(var(--D-ink-rgb));
    --acc-rgb: var(--D-acc-rgb);     --acc: rgb(var(--D-acc-rgb));
    --paper-2: var(--D-paper-2); --paper-3: var(--D-paper-3);
    --graphite: var(--D-graphite); --muted: var(--D-muted);
    --rule: var(--D-rule); --rule-strong: var(--D-rule-strong);
    --red: var(--D-red); --red-deep: var(--D-red); --red-on-ink: var(--D-red);
    --on-acc: var(--D-on-acc); --ok: var(--D-ok); --fig: var(--D-fig);
    --dev: color-mix(in srgb, #000 52%, var(--D-fig));
    --dev-screen: color-mix(in srgb, #fff 9%, var(--dev));
    --dev-line: var(--D-rule-strong); --dev-fg: rgb(var(--D-ink-rgb));
    --dev-fg2: color-mix(in srgb, rgb(var(--D-ink-rgb)) 70%, var(--dev));
    --fb-filter: invert(1) hue-rotate(180deg); --fb-blend: screen;
  }
}

/* ---------- fonts: self-hosted latin subsets (OFL, see fonts/) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-semi-condensed-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-semi-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/source-serif-4-400-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-italic-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Metric-matched fallbacks: same advance widths and line boxes as the web fonts,
   so the swap does not reflow. Ratios measured on the site's own hero strings. */
@font-face { font-family: "Barlow Condensed FB"; font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold");
  size-adjust: 76.1%; ascent-override: 131.4%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed FB R"; font-weight: 700;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 80.8%; ascent-override: 123.8%; descent-override: 24.8%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Semi FB"; font-weight: 500 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold");
  size-adjust: 76.9%; ascent-override: 130%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Semi FB R"; font-weight: 500 600;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 83.4%; ascent-override: 119.9%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif FB"; font-style: normal; font-weight: 400 600;
  src: local("Georgia"), local("Gelasio"), local("Gelasio-Regular");
  size-adjust: 107.3%; ascent-override: 96.5%; descent-override: 31.2%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif FB Times"; font-style: normal; font-weight: 400 600;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("LiberationSerif"), local("Tinos"), local("Tinos-Regular");
  size-adjust: 117.7%; ascent-override: 88%; descent-override: 28.5%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif FB Noto"; font-style: normal; font-weight: 400 600;
  src: local("Noto Serif"), local("NotoSerif"), local("NotoSerif-Regular");
  size-adjust: 99.5%; ascent-override: 104.1%; descent-override: 33.7%; line-gap-override: 0%; }

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

html {
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
table { border-collapse: collapse; }
code {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 1em;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--acc); color: var(--on-acc); }

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

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

/* label voice: tracked uppercase Barlow Semi Condensed */
.label, .label-h, .fig, .sheet__no, .sheet__meta, .status, .proof__title, .proof__l,
.spec dt, .span__end, .span__label, .legend li, .access thead th, .delta dt, .tags li,
.blk__head b, .blk__state, .blk__rows dt, .blk__hash, .io dt,
.ways dt, .titleblock dt, .foot__base, .quote figcaption,
.scan__tag, .week__k, .nav__toggle, .skip {
  font-family: var(--f-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track);
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-label);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared type ---------- */

.h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  line-height: .96;
  font-weight: 700;
  letter-spacing: -.004em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.875rem); }

.h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .004em;
}

.intro {
  font-size: var(--fs-intro);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.label-h {
  font-size: var(--fs-label);
  color: var(--muted);
}

.fig {
  font-weight: 600;
  color: var(--red);
  margin-right: .7em;
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--acc);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color .15s ease;
}
.link:hover { color: var(--red); }
/* inline link inside a tight row: larger hit area, no layout change */
.link--card { display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  font-family: var(--f-label);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--paper:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }

/* ---------- status chip (static) ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
}
.status--sm {
  gap: 7px;
  min-height: 0;
  padding: 2px 8px 2px 7px;
  font-size: .75rem;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: .1em;
}
.status__dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 24%, transparent);
}
.status--sm .status__dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 24%, transparent); }
.status--review .status__dot { background: transparent; border: 2px solid var(--red); box-shadow: none; }
.status--ro .status__dot { background: transparent; border: 1.5px solid var(--ink); box-shadow: none; }
/* green ring: approved, not yet live. The solid green dot stays reserved for "In production". */
.status--approved .status__dot { background: transparent; border: 2px solid var(--ok); box-shadow: none; }

/* =========================================================
   NAV
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(var(--paper-rgb), .95);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.nav__mark::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--acc);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2);
}
.nav__links { display: flex; gap: clamp(4px, 1.6vw, 22px); }
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--f-label);
  font-size: .9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--graphite);
  transition: color .15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 8px;
  height: 2px;
  background: var(--acc);
}
.nav__toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .no-js .nav { position: static; }
  .no-js .nav__inner { flex-wrap: wrap; padding-bottom: 6px; }
  .no-js .nav__links { flex-wrap: wrap; gap: 0 4px; margin-left: -6px; }

  .js .nav__toggle { display: inline-flex; align-items: center; gap: 10px; }
  .js .nav__toggle::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
  }
  .js .nav__toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
  .js .nav__links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .js .nav__links.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
  .js .nav__links li + li { border-top: 1px solid var(--rule); }
  .js .nav__links a {
    display: flex;
    min-height: 54px;
    padding: 0;
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
  }
  .js .nav__links a[aria-current="true"]::after { display: none; }
  .js .nav__links a[aria-current="true"]::before {
    content: "";
    width: 8px; height: 8px; margin-right: 10px;
    background: var(--acc); border-radius: 50%;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding-top: 0;
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero > .wrap { position: relative; z-index: 1; }
.no-js .hero { padding-top: clamp(16px, 1.8vw, 24px); }

/* top row: the ruler, with the audience control sitting on its end */
.hero__top {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 24px);
  min-height: 44px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}
.hero__top .hero__ruler { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.no-js .hero__top { min-height: 0; }
.no-js .modectl { display: none; }

.hero__ruler {
  height: 18px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) 0 100% / 1px 18px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 80px) 0 100% / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) 0 100% / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(var(--ink-rgb),.55) 0 1px, transparent 1px 8px) 0 100% / 100% 5px no-repeat;
  transform-origin: left center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 64px);
}

.hero__title {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  line-height: .88;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 11ch;
  text-wrap: balance;
}


.hero__lede {
  max-width: 38rem;
  font-size: var(--fs-intro);
  line-height: 1.45;
  margin-top: clamp(18px, 2.2vw, 26px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 32px);
}

/* dimension line: 2015 to 2026 */
.span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "a line b";
  align-items: end;
  column-gap: 14px;
  max-width: 40rem;
  margin-top: 22px;
}
.span__end {
  display: flex;
  flex-direction: column;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--graphite);
}
.span__end b {
  font-family: var(--f-display);
  font-size: 1.875rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.span__end--a { grid-area: a; }
.span__end--b { grid-area: b; text-align: right; align-items: flex-end; }
.span__end--b b { color: var(--red); }
.span__line {
  grid-area: line;
  position: relative;
  height: 40px;
  margin-bottom: 1px;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.span__beam, .span__laser {
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
}
.span__laser {
  height: 2px;
  bottom: 8.5px;
  background: linear-gradient(90deg, rgba(var(--acc-rgb),0), rgba(var(--acc-rgb),.85) 70%, var(--acc));
  opacity: 0;
}
.span__beam::before,
.span__beam::after {
  content: "";
  position: absolute;
  top: -4px;
  border: 4.5px solid transparent;
}
.span__beam::before { left: 0; border-left: 0; border-right: 9px solid var(--ink); }
.span__beam::after { right: 0; border-right: 0; border-left: 9px solid var(--ink); }
.span__label {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  padding: 0 8px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.span__run {
  position: absolute;
  left: 0; right: 20px; bottom: 9px;
  height: 0;
}
.span__dot {
  position: absolute;
  right: -4.5px; top: -4.5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .22);
}

@media (max-width: 420px) {
  .span {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a b" "line line";
    row-gap: 6px;
  }
  .span__line { height: 34px; }
  .span__label { bottom: 13px; }
}

/* ---------- hero side: point-cloud figure + ID card ---------- */

.hero__side { display: flex; flex-direction: column; gap: 28px; }
.idcard { order: -1; }

.scan { position: relative; }
.scan__stage { position: relative; }
.scan__view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--ink);
  background:
    linear-gradient(rgba(var(--ink-rgb),.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(var(--ink-rgb),.06) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--fig);
}
.scan__canvas, .scan__fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.scan__fallback { object-fit: contain; filter: var(--fb-filter); mix-blend-mode: var(--fb-blend); }
.js .scan__canvas { opacity: 0; transition: opacity .4s ease; }
.js .scan.is-ready .scan__canvas { opacity: 1; }
.scan__tag {
  position: absolute;
  top: 10px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.scan__tag--tl { left: 12px; }
.scan__tag--tl::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--acc);
  vertical-align: .08em;
}
.scan__tag--tr { right: 12px; min-width: 11em; text-align: right; }
.scan figcaption, .flow figcaption, .vid__fig figcaption, .everest__photo figcaption {
  margin-top: 10px;
  font-family: var(--f-body);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  color: var(--graphite);
}
.scan figcaption .fig, .flow figcaption .fig, .vid__fig figcaption .fig, .everest__photo figcaption .fig { font-size: .8125rem; }

/* crosshair readout (desktop pointer only, set by JS) */
.scan__xh, .scan__ring, .scan__pick {
  position: absolute;
  left: 0; top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  will-change: transform;
}
.scan__xh--x { width: 100%; height: 1px; background: rgba(var(--acc-rgb),.6); }
.scan__xh--y { width: 1px; height: 100%; background: rgba(var(--acc-rgb),.6); }
.scan__ring {
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 1.5px solid var(--acc);
  border-radius: 50%;
}
.scan__pick {
  margin: 14px 0 0 14px;
  padding: 3px 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-label);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .06em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.scan.is-aiming .scan__xh,
.scan.is-aiming .scan__ring,
.scan.is-aiming .scan__pick { opacity: 1; }

.idcard {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  grid-template-areas: "photo a" "b b";
  gap: 0 18px;
  align-items: start;
}
.portrait {
  grid-area: photo;
  position: relative;
  aspect-ratio: 4 / 5;
  background: #2a2d31;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.crop {
  position: absolute;
  z-index: 1;
  width: 14px; height: 14px;
  border: 0 solid var(--ink);
  pointer-events: none;
}
.crop--tl { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.crop--br { bottom: -7px; right: -7px; border-width: 0 1px 1px 0; }

.spec--hero-a { grid-area: a; }
.spec--hero-b { grid-area: b; margin-top: 18px; }

.spec div {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px 0 9px;
  border-top: 1px solid var(--rule);
}
.spec div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt {
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
}
.spec dd {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}
.spec--hero div:first-child { border-top: 1.5px solid var(--ink); }
.spec--hero dd .status { margin-top: 5px; display: flex; width: max-content; }
.spec--hero-a div:last-child { border-bottom: 0; }

@media (max-width: 559px) {
  .idcard { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 0 16px; }
  .spec--hero div { grid-template-columns: 1fr; padding: 6px 0 7px; }
  .spec--hero-b div { grid-template-columns: 5.25rem 1fr; gap: 10px; align-items: baseline; padding: 7px 0 8px; }
  .spec--hero dd { font-size: .9375rem; line-height: 1.3; }
  .spec--hero dd .status { margin-top: 4px; }
}

@media (min-width: 560px) {
  .idcard {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    grid-template-areas: "photo a" "photo b";
    gap: 0 28px;
  }
  .spec--hero-b { margin-top: 0; }
  .spec--hero-b div:first-child { border-top: 1px solid var(--rule); }
  .spec--hero div { grid-template-columns: 6rem 1fr; gap: 12px; align-items: baseline; }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(40px, 4.5vw, 80px);
    align-items: start;
  }
  .hero { padding-bottom: 56px; }
  .hero__side { padding-top: 6px; gap: 20px; }
  .idcard { order: 0; }
  .hero__title { max-width: none; }
  .hero__ruler { margin-bottom: 22px; }
  .hero__top { margin-bottom: 22px; }
  .span, .hero__lede { margin-top: 16px; }
  .hero__cta { margin-top: 20px; }
  .idcard {
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
    grid-template-areas: "photo a" "photo b";
    gap: 0 20px;
  }
  .spec--hero div { grid-template-columns: 4.6rem 1fr; gap: 10px; padding: 6px 0 7px; }
  .spec--hero dd { font-size: .9375rem; }
  .spec--hero-b div:first-child { border-top: 1px solid var(--rule); }
  .span__end b { font-size: 2.125rem; }
}

/* =========================================================
   PROOF STRIP
   ========================================================= */

.proof {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.proof__title {
  text-wrap: balance;
  padding: 14px 0 0;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.5;
  color: var(--graphite);
}
.proof__list { display: grid; grid-template-columns: 1fr; margin-top: 6px; }
.proof__list li {
  display: grid;
  grid-template-columns: 7.4rem 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0 15px;
  border-top: 1px solid var(--rule);
}
.proof__n {
  font-family: var(--f-display);
  font-size: 3rem;
  line-height: .92;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.proof__n .lt { color: var(--red); margin-right: .04em; }
.proof__n .u { font-size: .62em; margin-left: .03em; }
.proof__l {
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--graphite);
  max-width: 14rem;
  text-wrap: balance;
}
.proof__hours { grid-template-areas: "n l" "w w"; }
.proof__hours .proof__n { grid-area: n; }
.proof__hours .proof__l { grid-area: l; }

/* 40-hour week: 5 days x 8 hours */
.week { grid-area: w; display: grid; gap: 6px; margin-top: 4px; }
.week__grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-flow: row;
  gap: 3px;
  max-width: 15rem;
}
.week__grid i {
  display: block;
  height: 9px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  position: relative;
}
.week__grid i::after {
  content: "";
  position: absolute;
  inset: -1px;
  transform-origin: left center;
}
.week__grid i.h::after { background: var(--ink); }
.week__grid i.r::after { background: repeating-linear-gradient(135deg, var(--red) 0 2px, transparent 2px 4px); border: 1px solid var(--red); }
.week__k { font-size: .75rem; font-weight: 600; color: var(--muted); }

@media (min-width: 900px) {
  .proof__list { grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr; margin-top: 12px; }
  .proof__list li {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 10px;
    padding: 18px 20px 26px;
    border-top: 0;
    border-left: 1px solid var(--rule);
    align-content: start;
  }
  .proof__hours .proof__n, .proof__hours .proof__l, .week { grid-area: auto; }
  .proof__list li:first-child { border-left: 0; padding-left: 0; }
  .proof__list li::before {
    content: "";
    position: absolute;
    left: -1px; top: 0;
    width: 1px; height: 14px;
    background: var(--ink);
  }
  .proof__list li:first-child::before { display: none; }
  .proof__n { font-size: clamp(3.2rem, 1.4rem + 3.4vw, 5.2rem); }
  .proof__l { font-size: .875rem; }
  .week__grid { max-width: none; }
}

/* =========================================================
   SECTIONS / SHEET HEADERS
   ========================================================= */

.hero, .proof, .section, .foot { background: var(--paper); color: var(--ink); }
.section { padding: var(--sect) 0; }
.section--panel { background: var(--paper-2); }

.sheet {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.sheet::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 9px;
  border-top: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 64px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(var(--ink-rgb),.5) 0 1px, transparent 1px 16px) 0 0 / 100% 5px no-repeat;
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2,.7,.1,1);
}
.sheet__no {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--graphite);
}
.sheet__no span { color: var(--red); margin-right: 2px; }
.sheet__meta { font-size: .9375rem; font-weight: 600; color: var(--graphite); }
.section--panel .fig,
.section--panel .sheet__no span { color: var(--red-deep); }

.lead-grid {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.lead-grid__body { display: grid; gap: 16px; max-width: 38rem; }
.lead-grid__body p:not(.intro) { color: var(--graphite); }
.h2__product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .3em;
  font-size: .5em;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
}
.h2__product::before {
  content: "";
  width: .5em; height: .5em;
  background: var(--acc);
  transform: rotate(45deg);
}

@media (min-width: 960px) {
  .lead-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
  .lead-grid__body { padding-top: 8px; }
}

/* =========================================================
   SCHEMATIC
   ========================================================= */

.schematic {
  position: relative;
  color: var(--ink);
  padding: clamp(14px, 2.4vw, 32px);
  border: 1px solid var(--ink);
  background:
    linear-gradient(rgba(var(--ink-rgb),.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(var(--ink-rgb),.06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--fig);
}
.schematic::before,
.schematic::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: solid var(--acc);
}
.schematic::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.schematic::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
@media (max-width: 359px) { .schematic { padding: 10px; } }

.schematic__svg { width: 100%; height: auto; overflow: visible; }
.schematic__svg--wide { display: none; }
.schematic__svg--tall { max-width: 520px; margin-inline: auto; }
@media (min-width: 1000px) {
  .schematic__svg--wide { display: block; }
  .schematic__svg--tall { display: none; }
}

.schematic__notes {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.schematic figcaption .fig { font-size: .8125rem; }
.schematic figcaption {
  max-width: 64ch;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--graphite);
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.legend__key { flex: none; width: 30px; height: 0; border-top: 1.5px solid var(--ink); }
.legend__key--red { border-top: 2.5px solid var(--red); }
.legend__key--act { border-top: 1.5px dashed var(--graphite); }
@media (min-width: 1000px) {
  .schematic__notes { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: start; }
  .legend { flex-direction: column; order: 2; }
}

/* SVG text (viewBox units). Wide viewBox 1040, tall 320. */
.schematic svg text { font-family: var(--f-label); fill: var(--ink); }
.s-name { font-family: var(--f-display) !important; font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.s-name--dim { fill: var(--graphite) !important; }
.s-name--red { fill: var(--red) !important; }
.s-sub { font-family: var(--f-body) !important; font-size: 14.5px; fill: var(--graphite) !important; }
.s-mono { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; fill: var(--graphite) !important; }
.s-mono--ink { fill: var(--ink) !important; }
.s-mono--red { fill: var(--red) !important; }
.s-mono--inv { fill: var(--dev-fg) !important; }
.s-phonetxt { font-size: 13.5px; font-weight: 500; fill: var(--dev-fg2) !important; }
.s-ref { font-size: 14px; font-weight: 600; letter-spacing: .04em; fill: var(--red) !important; }
.s-btn { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; fill: var(--on-acc) !important; }
.s-btn--inv { fill: var(--dev-fg) !important; }

.schematic__svg--tall .s-name { font-size: 20px; }
.schematic__svg--tall .s-sub { font-size: 15.5px; }
.schematic__svg--tall .s-mono { font-size: 14px; }
.schematic__svg--tall .s-phonetxt { font-size: 13.75px; }

.s-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.s-box--key { stroke-width: 2; }
.s-box--dash { stroke-dasharray: 5 4; fill: transparent; }
.s-bound { fill: rgba(var(--paper-rgb),.55); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.s-wire { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.s-trunk { stroke: var(--ink); stroke-width: 2.5; }
.s-node { fill: var(--ink); }
.s-port { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.s-port--red { stroke: var(--red); }
.s-write { fill: none; stroke: var(--red); stroke-width: 2.5; }
.s-contact { fill: var(--paper); stroke: var(--red); stroke-width: 2; }
.s-lever { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; }
.s-act { stroke: var(--graphite); stroke-width: 1.25; stroke-dasharray: 3 3; }
.s-act-on { stroke: var(--red); stroke-width: 2; stroke-dasharray: 3 3; opacity: 0; }
.s-yes { fill: var(--red) !important; opacity: 0; }
.s-hair { stroke: var(--rule); stroke-width: 1; }
.s-phone { fill: var(--dev); stroke: var(--dev-line); stroke-width: 1.25; }
.s-screen { fill: var(--dev-screen); }
.s-ok { fill: var(--acc); }
.s-ok-hl { fill: #FFFFFF; opacity: 0; }
.s-no { fill: transparent; stroke: var(--dev-line); stroke-width: 1.25; }
.mk-ink { fill: var(--ink); }
.mk-red { fill: var(--red); }
.s-routes path { fill: none; stroke: none; }
.s-pulse { fill: var(--ink); }
.s-pulse--red { fill: var(--red); }
.s-pulse-halo { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .45; }
.s-pulse-halo--ink { stroke: var(--ink); opacity: .3; }

/* switch rotates closed around the left contact */
.s-lever { transform-box: view-box; transition: transform .45s cubic-bezier(.5,0,.2,1); }
.schematic__svg--wide .s-lever { transform-origin: 700px 220px; }
.schematic__svg--tall .s-lever { transform-origin: 160px 716px; }
.schematic__svg--wide.is-closed .s-lever { transform: rotate(22.7deg); }
.schematic__svg--tall.is-closed .s-lever { transform: rotate(20deg); }
.is-closed .s-act-on, .is-closed .s-yes { opacity: 1; }
.s-act-on, .s-yes { transition: opacity .25s ease; }
.is-tapped .s-ok-hl { opacity: .35; }
.s-ok-hl { transition: opacity .15s ease; }

/* =========================================================
   CASE STUDY DETAILS
   ========================================================= */

.case {
  display: grid;
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1.5px solid var(--ink);
}
.case__block { padding: 22px 0 28px; border-bottom: 1px solid var(--rule); }
.case__block .h3 { margin-bottom: 14px; }
.case__block > p { color: var(--graphite); max-width: 52ch; }

.access { width: 100%; }
.access thead { display: none; }
.access tr {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "who chip" "how how";
  gap: 6px 16px;
  padding: 14px 0 15px;
  border-top: 1px solid var(--rule);
}
.access tbody tr:first-child { border-top: 1.5px solid var(--ink); }
.access th[scope="row"] {
  grid-area: who;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: .005em;
}
.access td:nth-child(2) { grid-area: chip; justify-self: end; }
.access td:nth-child(3) { grid-area: how; color: var(--graphite); max-width: 52ch; }
.case__block > p.guard__rule { color: var(--ink); }
.guard__rule {
  margin-top: 18px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--acc);
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .005em;
  max-width: 34ch;
}

@media (min-width: 640px) {
  .access thead { display: table-header-group; }
  .access tr { display: table-row; padding: 0; border-top: 0; }
  .access th, .access td {
    padding: 13px 16px 14px 0;
    border-top: 1px solid var(--rule);
    text-align: left;
    vertical-align: baseline;
  }
  .access thead th {
    padding-top: 0;
    padding-bottom: 8px;
    border-top: 0;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted);
  }
  .access tbody tr:first-child th,
  .access tbody tr:first-child td { border-top: 1.5px solid var(--ink); }
  .access th[scope="row"] { width: 34%; }
  .access td:nth-child(2) { width: 1%; white-space: nowrap; }
  .access td:last-child { padding-right: 0; }
  .access tbody tr:last-child th,
  .access tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
  .guard__rule { margin-top: 22px; }
}

.delta div { display: grid; gap: 4px; padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.delta div:first-child { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.delta dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.delta dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.delta__was {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--acc);
  text-decoration-thickness: 1.5px;
}
.delta__now {
  font-family: var(--f-display);
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 700;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  background: rgba(var(--ink-rgb), .05);
}

@media (min-width: 960px) {
  .case {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
    border-bottom: 1px solid var(--rule);
  }
  .case__block { border-bottom: 0; padding: 28px 0 36px; }
  .case__guard { grid-column: 1 / span 8; }
  .case__results { grid-column: 9 / span 4; }
  .case__kb { grid-column: 1 / span 4; border-top: 1px solid var(--rule); }
  .case__auto { grid-column: 5 / span 4; border-top: 1px solid var(--rule); }
  .case__stack { grid-column: 9 / span 4; border-top: 1px solid var(--rule); }
  .case__results, .case__auto, .case__stack { position: relative; }
  .case__results::before, .case__auto::before, .case__stack::before {
    content: "";
    position: absolute;
    top: 28px; bottom: 36px;
    left: calc(clamp(24px, 3vw, 48px) / -2);
    width: 1px;
    background: var(--rule);
  }
}

.quote { margin-top: clamp(56px, 8vw, 112px); display: grid; gap: 18px; max-width: 62rem; }
.quote blockquote p {
  font-family: var(--f-body);
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 3.1rem);
  line-height: 1.16;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.quote blockquote p::before { content: "\201C"; color: var(--red); margin-left: -.45em; padding-right: .04em; }
.quote blockquote p::after { content: "\201D"; color: var(--red); }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--graphite);
}
.quote figcaption::before { content: ""; width: 40px; height: 1.5px; background: var(--ink); }
@media (max-width: 600px) { .quote blockquote p::before { margin-left: 0; } }

/* =========================================================
   MILEPOST
   ========================================================= */

.mp { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) { .mp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.mp + .mp { margin-top: clamp(56px, 7vw, 96px); }
.mp__kicker { margin-bottom: 14px; }

/* ---------- Fig. 3: the real wall station, as a step-through ----------
   Base (no JS): a horizontal scroll-snap strip inside the tablet, with the
   step rail as plain anchor links. JS adds .is-live and crossfades. */

.flow { container-type: inline-size; }
.flow__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  min-height: 44px;
  margin-bottom: 14px;
}
.flow__lede { flex: 1 1 14rem; font-size: 1.0625rem; line-height: 1.4; text-wrap: balance; }

.flow__ctl { display: none; }
.js .flow__ctl {
  display: inline-flex;
  visibility: hidden;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  font: 600 .875rem/1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.flow.is-live .flow__ctl { visibility: visible; }
.flow.is-manual .flow__ctl { display: none; }
.flow__ctl:hover { background: var(--ink); color: var(--paper); }
.flow__ico { flex: none; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.flow__ctl[data-state="paused"] .flow__ico { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.tablet { position: relative; padding: 22px 8px 18px; }
.tablet__mount {
  position: absolute;
  inset: 0 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 11px, var(--paper-3) 0 4.5px, var(--rule-strong) 4.5px 5.5px, transparent 6px),
    radial-gradient(circle at 50% calc(100% - 10px), var(--paper-3) 0 4.5px, var(--rule-strong) 4.5px 5.5px, transparent 6px),
    repeating-linear-gradient(135deg, rgba(var(--ink-rgb),.07) 0 1px, transparent 1px 7px);
}
.tablet__body {
  position: relative;
  padding: clamp(8px, 2.6cqi, 18px);
  border-radius: clamp(13px, 3.4cqi, 24px);
  background: linear-gradient(180deg, #3A3E44 0%, #2A2D32 18%, #24272B 82%, #1D1F23 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 0 rgba(0,0,0,.4),
    0 1px 0 rgba(255,255,255,.6),
    0 22px 36px -18px rgba(25,27,30,.55),
    0 6px 12px -6px rgba(25,27,30,.35);
}
.screw {
  position: absolute;
  width: clamp(5px, 1.4cqi, 9px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8A8F96, #3B3F45 70%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
}
.screw::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; top: calc(50% - .5px);
  height: 1px;
  background: rgba(0,0,0,.55);
  transform: rotate(35deg);
}
.screw--tl { top: clamp(1.5px, .6cqi, 4px); left: clamp(1.5px, .6cqi, 4px); }
.screw--tr { top: clamp(1.5px, .6cqi, 4px); right: clamp(1.5px, .6cqi, 4px); }
.screw--bl { bottom: clamp(1.5px, .6cqi, 4px); left: clamp(1.5px, .6cqi, 4px); }
.screw--br { bottom: clamp(1.5px, .6cqi, 4px); right: clamp(1.5px, .6cqi, 4px); }
.tablet__cam {
  position: absolute;
  top: clamp(2px, .75cqi, 5.5px); left: 50%;
  width: clamp(3.5px, 1cqi, 6px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #0E0F11;
  box-shadow: 0 0 0 1.5px #33373C;
}
.tablet__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background: #1D2837;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7);
}
.flow__track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.flow__track::-webkit-scrollbar { display: none; }
.flow__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.flow__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* JS upgrade: stacked crossfade */
.flow.is-live .flow__track { display: block; overflow: hidden; scroll-snap-type: none; }
.flow.is-live .flow__slide { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity .5s ease; }
.flow.is-live .flow__slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.flow.is-live .flow__slide.is-active { opacity: 1; z-index: 2; }

/* step rail */
.flow__steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0 6px;
  margin-top: 20px;
}
@container (max-width: 639px) {
  .flow__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; }
}
.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 2px 6px 0;
  border: 0;
  border-top: 1.5px solid var(--rule-strong);
  border-radius: 0;
  background: none;
  color: var(--graphite);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease;
}
.flow__step::before,
.flow__step::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1.5px;
  height: 3px;
}
.flow__step::before { background: var(--ink); opacity: 0; }
.flow__step::after { background: var(--acc); transform: scaleX(0); transform-origin: left center; }
.flow__n {
  font-family: var(--f-display);
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition: color .15s ease;
}
.flow__l {
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.flow__step:hover { color: var(--ink); border-top-color: var(--ink); }
.flow__step[aria-current="step"] { color: var(--ink); }
.flow__step[aria-current="step"]::before { opacity: 1; }
.flow__step[aria-current="step"] .flow__n { color: var(--red-deep); }
.flow__steps li:last-child .flow__step { --dur: 4.8s; }
.flow.is-auto .flow__step[aria-current="step"]::after { animation: mp-fill var(--dur, 2.6s) linear forwards; }
.flow.is-auto.is-paused .flow__step[aria-current="step"]::after { animation-play-state: paused; }
@keyframes mp-fill { to { transform: scaleX(1); } }

.flow figcaption { margin-top: 22px; }

/* ---------- Fig. 4: the one-minute video ---------- */

.vid__frame {
  position: relative;
  padding: clamp(6px, 1.2vw, 12px);
  border: 1px solid var(--ink);
  background: var(--fig);
}
.vid__frame::before,
.vid__frame::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: solid var(--acc);
  pointer-events: none;
}
.vid__frame::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.vid__frame::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.vid__frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0F1722;
}
.vid__frame video p { padding: 16px; color: #C9CBCE; }
.vid__frame video a { color: #fff; }
.vid__fig figcaption { margin-top: 14px; }
.vid__t { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; color: var(--ink); }
.vid__d { display: block; margin-top: 4px; }
.vid__dur {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--f-label);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.transcript { margin-top: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.transcript summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  font-family: var(--f-label);
  font-size: .9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-right: 4px;
  cursor: pointer;
  list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.transcript[open] summary { border-bottom: 1px solid var(--rule); }
.transcript[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.transcript summary:hover { color: var(--red-deep); }
.transcript ol { counter-reset: tl; padding: 6px 0 12px; }
.transcript li {
  counter-increment: tl;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding: 7px 0;
  color: var(--graphite);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.transcript li::before {
  content: counter(tl, decimal-leading-zero);
  padding-top: .2em;
  font-family: var(--f-label);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}
.vid__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}

/* ---------- what it does today ---------- */

.spec.spec--does div { grid-template-columns: 1fr; gap: 3px; align-items: start; padding: 13px 0 14px; }
.spec.spec--does dt {
  font-family: var(--f-display);
  font-size: 1.3125rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .004em;
  text-transform: none;
  color: var(--ink);
}
.spec.spec--does dd { font-size: var(--fs-small); line-height: 1.55; font-weight: 400; color: var(--graphite); }

@media (min-width: 1000px) {
  .mp--video .mp__rules { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* two rules */
.mp__rules { display: grid; gap: 0; }
.rule-card { position: relative; padding: 20px 0 22px; border-top: 1.5px solid var(--ink); }
.rule-card:last-child { border-bottom: 1px solid var(--rule); }
.rule-card h4 {
  font-family: var(--f-display);
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  line-height: 1.04;
  font-weight: 700;
  margin-bottom: 10px;
  text-wrap: balance;
}
.rule-card p { color: var(--graphite); max-width: 44ch; }

/* audit chain */
.chain { margin-top: clamp(56px, 7vw, 96px); padding-top: 16px; border-top: 1px solid var(--ink); }
.chain__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.chain__title { font-family: var(--f-body); font-size: .9375rem; line-height: 1.5; color: var(--graphite); }
.chain__title .fig { font-size: .8125rem; }
.chain__btn {
  min-height: 44px;
  padding: 0 16px;
  font: 600 .9375rem/1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chain__btn:hover { background: var(--ink); color: var(--paper); }
.chain.is-tampered .chain__btn { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

.chain__list { display: grid; gap: 28px; }
.blk {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  transition: border-color .25s ease, opacity .5s ease, transform .5s cubic-bezier(.2,.7,.1,1);
}
.blk + .blk::before {
  content: "";
  position: absolute;
  left: 32px; top: -29px;
  width: 0; height: 28px;
  border-left: 2px solid var(--ink);
  transform-origin: top center;
  transition: transform .35s ease;
}
.blk + .blk::after {
  content: "";
  position: absolute;
  left: 27px; top: -10px;
  border: 6px solid transparent;
  border-top: 8px solid var(--ink);
  border-bottom: 0;
  transition: opacity .2s ease .25s;
}
.blk__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.blk__head b { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.blk__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.6;
}
.blk__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.blk__rows { padding: 8px 14px 10px; }
.blk__rows div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 8px; padding: 3px 0; font-size: 1rem; }
.blk__rows dt { font-size: .78rem; font-weight: 600; color: var(--muted); padding-top: .2em; }
.blk__rows dd { transition: color .2s ease; font-variant-numeric: tabular-nums; }
.blk__hash {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 9px 14px 10px;
  border-top: 1px dashed var(--rule-strong);
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.blk__hash code { display: inline-block; color: var(--ink); font-size: 1rem; margin-left: 6px; text-transform: none; white-space: nowrap; transition: color .2s ease; }

.chain__status { margin-top: 22px; max-width: 62ch; font-size: var(--fs-small); color: var(--graphite); }

@media (max-width: 599px) { .blk__src { display: none !important; } }

@media (min-width: 900px) {
  .chain__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
  .blk + .blk::before {
    left: -57px; top: 50%;
    width: 55px; height: 0;
    border-left: 0;
    border-top: 2px solid var(--ink);
    transform-origin: left center;
  }
  .blk + .blk::after {
    left: -10px; top: calc(50% - 5px);
    border: 6px solid transparent;
    border-left: 8px solid var(--ink);
    border-right: 0;
  }
}

.chain.is-tampered [data-blk="412"] [data-time] { color: var(--red-deep); font-weight: 600; }
.chain.is-tampered [data-blk="412"] [data-hash] { color: var(--red-deep); }
.chain.is-tampered [data-blk="412"] .blk__state { border-color: var(--red-deep); color: var(--red-deep); }
.chain.is-tampered [data-blk="412"] .blk__state::before { background: transparent; border: 1.5px solid var(--red-deep); }
.chain.is-tampered [data-blk="413"] { border-color: var(--red); }
.chain.is-tampered [data-blk="413"] [data-prev] { color: var(--red-deep); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.chain.is-tampered [data-blk="413"] [data-state] { border-color: var(--red-deep); background: var(--red-deep); color: #fff; }
.chain.is-tampered [data-blk="413"] [data-state]::before { background: #fff; border-radius: 0; transform: rotate(45deg); }
.chain.is-tampered [data-blk="413"]::before { border-color: var(--red); border-style: dashed; }
.chain.is-tampered [data-blk="413"]::after { border-top-color: var(--red); }
@media (min-width: 900px) {
  .chain.is-tampered [data-blk="413"]::after { border-top-color: transparent; border-left-color: var(--red); }
}
.chain.is-tampered .chain__status { color: var(--red-deep); font-weight: 600; }

.mp-notes { display: grid; gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.mp-notes__col { padding-top: 16px; border-top: 1px solid var(--ink); }
.mp-notes__col .h3 { margin-bottom: 12px; }
.mp-notes__col > p { color: var(--graphite); max-width: 42ch; }
.roadmap li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px dashed var(--rule-strong); }
.roadmap li:last-child { border-bottom: 0; }
.roadmap li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.1em;
  width: 9px; height: 9px;
  border: 1.5px solid var(--red-deep);
  border-radius: 50%;
}
@media (min-width: 900px) {
  .mp-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
}

/* =========================================================
   BUILDS
   ========================================================= */

.builds { border-top: 1.5px solid var(--ink); }
.build { display: grid; gap: 10px; align-content: start; padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.build .h3 { font-size: 1.625rem; line-height: 1.05; text-wrap: balance; }
.build > p { color: var(--graphite); max-width: 56ch; }
.io {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  align-self: start;
  margin-top: 4px;
  border-left: 1.5px solid var(--ink);
  padding-left: 14px;
}
.io div { display: contents; }
.io dt, .io dd { padding: 2px 0; }
.io dt { font-size: .78rem; font-weight: 600; color: var(--red); padding-top: .35em; }
.io dd { font-size: 1rem; line-height: 1.45; }
.build__quote { margin-top: 8px; padding-left: 16px; border-left: 3px solid var(--acc); }
.build__quote p { font-size: 1.25rem; line-height: 1.4; font-style: italic; max-width: 46ch; }

@media (min-width: 760px) {
  .builds__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
    border-bottom: 1px solid var(--rule);
  }
  .builds__row .build { border-bottom: 0; padding: 28px 0 34px; position: relative; }
  .builds__row .build + .build::before {
    content: "";
    position: absolute;
    top: 28px; bottom: 34px;
    left: calc(clamp(24px, 3vw, 48px) / -2);
    width: 1px;
    background: var(--rule);
  }
}
@media (min-width: 960px) {
  .build--lead {
    grid-template-columns: minmax(0, 3.2fr) minmax(0, 5fr) minmax(0, 3.3fr);
    column-gap: clamp(28px, 3vw, 48px);
    padding: 32px 0 36px;
    align-items: start;
  }
  .build--lead .h3 { grid-column: 1; grid-row: 1 / span 2; font-size: 2.125rem; }
  .build--lead > p { grid-column: 2; grid-row: 1; }
  .build--lead .io { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .build--lead .build__quote { grid-column: 2; grid-row: 2; margin-top: 10px; }
}

/* =========================================================
   APPROACH (inverted sheet)
   ========================================================= */

.section--ink p { color: var(--graphite); }
.section--ink .intro { color: var(--ink); }

.approach { display: grid; gap: 56px; }
.approach__intro { display: grid; gap: 18px; align-content: start; max-width: 36rem; }
.approach__intro .h2 { margin-bottom: 6px; }
.approach__intro .label-h { margin-top: 14px; }
.approach__intro .btn { justify-self: start; margin-top: 14px; }
.note-link {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--acc);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .15s ease;
}
.note-link:hover { color: var(--red); }
.for { display: flex; flex-wrap: wrap; gap: 8px; }
.for li {
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
}

.principles { margin-top: 14px; border-top: 1px solid var(--rule-strong); }
.principles li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.balloon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}
.principles p { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.45; padding-top: 5px; color: var(--graphite); }
.principles strong { color: var(--ink); font-weight: 600; }

@media (min-width: 960px) {
  .approach { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); }
  .principles { margin-top: 18px; }
  .principles li { grid-template-columns: 56px 1fr; padding: 24px 0 26px; }
}

/* =========================================================
   ABOUT
   ========================================================= */

.about { display: grid; gap: 56px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1.5px;
  background: var(--ink);
}
.timeline > li { position: relative; display: grid; gap: 2px; padding: 0 0 26px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -22px; top: .95em;
  width: 14px; height: 1.5px;
  background: var(--ink);
}
.timeline time {
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: 1.875rem;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.timeline p { color: var(--graphite); max-width: 52ch; }
.timeline__now::before { background: var(--acc) !important; width: 18px !important; height: 3px !important; }
.timeline__now time { color: var(--red); }
.timeline__now p { color: var(--ink); }

.about__spec .h3 { margin-bottom: 6px; }
.about__spec .h3 + .spec { margin-top: 14px; }
.spec--table div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0 11px; }
.spec--table div:first-child { border-top: 1.5px solid var(--ink); }
.spec--table dd { font-weight: 400; }

@media (min-width: 600px) {
  .spec--table div { grid-template-columns: 9rem 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 112px); }
  .timeline > li { grid-template-columns: 7.5rem 1fr; gap: 20px; align-items: baseline; padding-bottom: 30px; }
  .about__spec { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
  .timeline > li::before { top: .9em; }
}

/* =========================================================
   ALSO
   ========================================================= */

.also { display: grid; gap: 56px; }
.also article { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.also article > p { color: var(--graphite); max-width: 54ch; }
.also .h2--sm { margin-bottom: 2px; }
.also .link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding: 18px 0;
  margin: 6px 0 8px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logos li:nth-child(1) img { width: 60px; }
.logos li:nth-child(2) img { width: 104px; }
.logos li:nth-child(3) img { width: 100px; }
.logos img { opacity: .82; }
@media (max-width: 420px) { .logos { gap: 16px 22px; } }

.also__box { margin-top: 10px; }
.also__box .label-h { margin-bottom: 14px; }
.spec--buy div:first-child { border-top: 1.5px solid var(--ink); }
.deals { display: grid; gap: 2px; margin-top: 6px; }
.deals p { color: var(--graphite); }
.deals .link { overflow-wrap: anywhere; font-size: 1.125rem; }

@media (min-width: 960px) {
  /* one block, split to match the 5/7 columns of the photo and quote below */
  .also__re {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: repeat(4, auto) 1fr;
    grid-template-areas: "head box" "intro box" "logos box" "deals box" "rest box";
    column-gap: clamp(40px, 5vw, 88px);
  }
  .also__re > .h2 { grid-area: head; }
  .also__re > p { grid-area: intro; }
  .also__re > .logos { grid-area: logos; }
  .also__re > .deals { grid-area: deals; }
  .also__re > .also__box { grid-area: box; margin-top: 0; }
  .spec--buy div { grid-template-columns: 11rem 1fr; }
}

.everest {
  display: grid;
  gap: 32px;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1.5px solid var(--ink);
  align-items: center;
}
.everest__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.everest__quote blockquote p {
  font-family: var(--f-display);
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
  line-height: .98;
  font-weight: 700;
  text-wrap: balance;
}
.everest__quote figcaption {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--acc);
  max-width: 34ch;
  font-size: 1.1875rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--graphite);
}
@media (min-width: 960px) {
  .everest { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); }
}

/* =========================================================
   CONTACT + FOOTER
   ========================================================= */

.contact { padding-bottom: clamp(64px, 8vw, 112px); }
.contact__grid { display: grid; gap: 28px; }
.contact__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 1.6rem + 6vw, 7.25rem);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 12ch;
  text-wrap: balance;
}
.contact__aside { display: grid; gap: 14px; align-content: start; }
.contact__sub { font-size: var(--fs-intro); line-height: 1.45; color: var(--graphite); max-width: 36rem; }
.contact__email {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .005em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--acc);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
  transition: color .15s ease;
}
.contact__email:hover { color: var(--red); }
.contact__more { margin-top: 18px; }
.ways div { display: grid; grid-template-columns: 1fr; padding: 6px 0; border-top: 1px solid var(--rule); }
.ways div:first-child { border-top: 1.5px solid var(--ink); }
.ways div:last-child { border-bottom: 1px solid var(--rule); }
.ways dt { font-size: .78rem; font-weight: 600; color: var(--muted); padding-top: 6px; }
.ways a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.ways a:hover { color: var(--red); text-decoration-color: var(--red); }
@media (min-width: 520px) {
  .ways div { grid-template-columns: 11rem 1fr; gap: 16px; align-items: center; padding: 0; }
  .ways dt { padding-top: 0; }
}
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: end; }
}

.foot { padding-bottom: 28px; }
.titleblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.titleblock div { padding: 10px 12px 12px; border-top: 1px solid var(--ink); }
.titleblock div:nth-child(3) { border-left: 1px solid var(--ink); }
.titleblock .titleblock__name { grid-column: 1 / -1; border-top: 0; }
.titleblock .titleblock__sheet { grid-column: 1 / -1; border-left: 0; padding-bottom: 6px; }
.titleblock__sheet dd { margin: 4px 0 0; }
.no-js .titleblock__sheet { display: none; }
@media (min-width: 760px) {
  .titleblock { grid-template-columns: 2.6fr 1.2fr .7fr; }
  .titleblock div { border-top: 0; border-left: 1px solid var(--ink); }
  .titleblock .titleblock__name { grid-column: auto; border-left: 0; }
  .titleblock .titleblock__sheet { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); }
}
@media (min-width: 1160px) {
  .titleblock { grid-template-columns: 2.2fr 1.1fr .6fr auto; }
  .titleblock .titleblock__sheet { grid-column: auto; border-top: 0; border-left: 1px solid var(--ink); padding-right: 10px; }
}
.titleblock dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.titleblock dd { font-weight: 600; font-size: 1rem; }
.titleblock__name dd { font-family: var(--f-display); font-size: 1.875rem; font-weight: 700; line-height: 1.1; }
.foot__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--graphite);
}
.foot__base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }


/* =========================================================
   SECTION ORDER (audience modes)
   <html data-mode="everything|towns|business|hiring"> is set before first paint.
   CSS order puts the sections right on the first frame; main.js then moves the
   DOM nodes into the same order so reading and tab order match the screen.
   ========================================================= */

main { display: flex; flex-direction: column; }
main > * { min-width: 0; }
.proof { order: 5; }
#work { order: 10; } #milepost { order: 20; } #builds { order: 30; } #approach { order: 40; }
#about { order: 50; } #also { order: 60; } #ask { order: 70; } #contact { order: 80; }
html[data-mode="towns"] #milepost { order: 10; }
html[data-mode="towns"] #approach { order: 20; }
html[data-mode="towns"] .proof { order: 25; }
html[data-mode="towns"] #work { order: 30; }
html[data-mode="towns"] #builds { order: 40; }
html[data-mode="business"] #approach { order: 20; }
html[data-mode="business"] #builds { order: 30; }
html[data-mode="business"] #milepost { order: 40; }
html[data-mode="hiring"] #about { order: 20; }
html[data-mode="hiring"] #builds { order: 30; }
html[data-mode="hiring"] #milepost { order: 40; }
html[data-mode="hiring"] #approach { order: 50; }

/* =========================================================
   SEGMENTED CONTROLS: "Show me" (hero) and "Sheet" (footer)
   Buttons are 44px tall; the drawn frame is 32px inside them.
   ========================================================= */

.seg { display: inline-flex; align-items: center; gap: 12px; }
.seg__k {
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--muted);
  white-space: nowrap;
}
.seg__btns { display: inline-flex; }
.seg button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  font: 600 .8125rem/1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--graphite);
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease;
}
.seg button::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  z-index: -1;
  border: solid var(--ink);
  border-width: 1px 1px 1px 0;
  transition: background-color .15s ease;
}
.seg button:first-child::before { border-left-width: 1px; }
.seg button:hover { color: var(--ink); }
.seg button:hover::before { background: rgba(var(--ink-rgb), .08); }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg button[aria-pressed="true"]::before { background: var(--ink); }
.sw {
  flex: none;
  width: 10px; height: 10px;
  border: 1px solid currentColor;
  background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%);
}
.sw--survey { --sw-a: #F1F3F4; --sw-b: #E30613; }
.sw--blueprint { --sw-a: #0F3263; --sw-b: #FF6B1A; }
.sw--highway { --sw-a: #0B5E3C; --sw-b: #FFB81C; }

@media (max-width: 559px) {
  .hero__top { flex-wrap: wrap; row-gap: 0; align-items: stretch; }
  .modectl { flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .modectl .seg__btns { display: grid; grid-template-columns: repeat(4, auto); }
  .modectl button { padding: 0 4px; }
  .hero__top .hero__ruler { flex: 1 0 100%; align-self: flex-end; margin-top: 4px; }
}
@media (max-width: 379px) {
  .seg button { padding: 0 3px; font-size: .75rem; letter-spacing: .04em; }
}
/* the Sheet control wraps to a 2 x 2 grid of whole frames on a phone */
@media (max-width: 559px) {
  .sheetctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; width: 100%; }
  .sheetctl button { justify-content: flex-start; padding: 0 12px; }
  .sheetctl button::before { border-width: 1px; }
}

/* =========================================================
   LIVE CONDITIONS ("Based" row of the ID card)
   Two lines are always reserved, so the weather arriving never moves the page.
   ========================================================= */

.js .based__where { display: block; }
.js .based__wx {
  display: block;
  min-height: 1.4em;
  font-family: var(--f-body);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--graphite);
}
.js .based__wx.is-in { animation: fade .5s ease both; }

/* =========================================================
   SINCE YOUR LAST VISIT: a revision note under the nav
   ========================================================= */

.rev {
  position: relative;
  z-index: 2;
  color: var(--ink);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
}
.rev__in { display: flex; align-items: center; gap: 2px 20px; padding-block: 4px; padding-right: calc(var(--gutter) + 44px); min-height: 40px; }
.rev__k, .rev time {
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rev__k {
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 20px;
  border-right: 1px solid var(--ink);
  color: var(--graphite);
}
.rev__list { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: .9375rem; line-height: 1.45; }
.rev__list li { padding: 1px 0; }
.rev time { margin-right: 6px; color: var(--red); }
.rev__x {
  position: absolute;
  right: max(0px, calc(var(--gutter) - 14px));
  top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.rev__x span, .rev__x span::before { position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transform: rotate(45deg); }
.rev__x span::before { content: ""; left: 0; top: 0; margin: 0; transform: rotate(90deg); }
.rev__x:hover { color: var(--red); }
@media (max-width: 759px) {
  .rev__in { flex-direction: column; align-items: flex-start; padding-block: 8px; }
  .rev__k { align-self: auto; padding: 0; border-right: 0; }
  .rev__list { flex-direction: column; }
}

/* =========================================================
   HERO CONTOURS (fx.js)
   A USGS-style map, generated once, drawn in on load, then still.
   Lines break around small text the way map labels do (paper-colored halo).
   ========================================================= */

.topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  color: rgb(var(--ink-rgb));
  --ta: .13; --tb: .28;
  -webkit-mask-image: radial-gradient(ellipse 52% 120% at 16% 26%, #000 22%, rgba(0,0,0,.5) 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 52% 120% at 16% 26%, #000 22%, rgba(0,0,0,.5) 55%, transparent 82%);
}
html[data-palette="blueprint"] .topo, html[data-palette="highway"] .topo { --ta: .13; --tb: .26; }
.topo svg { position: absolute; top: 0; left: 0; }
.topo path { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: var(--ta); }
.topo path.ix { stroke-width: 1.7; stroke-opacity: var(--tb); }
@media (max-width: 959px) {
  .topo svg { left: -190px; }
  .topo {
    -webkit-mask-image: radial-gradient(ellipse 150% 560px at 30% 250px, #000 24%, rgba(0,0,0,.5) 55%, transparent 84%);
    mask-image: radial-gradient(ellipse 150% 560px at 30% 250px, #000 24%, rgba(0,0,0,.5) 55%, transparent 84%);
  }
}
.hero__lede, .span__end { text-shadow: 0 0 3px var(--paper), 0 0 8px var(--paper), 0 0 16px var(--paper); }

/* =========================================================
   IDLE LASER (fx.js): sit still on a paragraph and a small line laser powers up at the left edge, fires across
   the viewport and burns a slit through one line of words. Any scroll, key or touch switches it off.
   Overlays only: .idl is fixed and the char sits in document coordinates. The overlay is parented to the section
   under the beam, so it inherits that zone's --acc-rgb, --ink-rgb and --paper-rgb. Never runs under reduced motion or in print.
   ========================================================= */

.idl {
  position: fixed; inset: 0; z-index: 45;
  overflow: hidden; pointer-events: none;
}
.idl .em {                      /* a tiny line-laser body: housing, spirit-level vial, lens */
  position: absolute; left: -8px; top: calc(var(--y) - 7px);
  width: 48px; height: 14px;
  color: rgb(var(--ink-rgb));
  border-radius: 0 3px 3px 0;
  background:
    linear-gradient(rgba(var(--paper-rgb), .5), rgba(var(--paper-rgb), .5)) 14px 6px / 18px 1.5px no-repeat,
    currentColor;
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.2, .9, .3, 1.12);
}
.idl .em::before {
  content: ""; position: absolute; left: 20px; top: -6px; width: 17px; height: 7px;
  border-radius: 4px 4px 0 0;
  background:
    radial-gradient(circle at 6px 4px, rgb(var(--acc-rgb)) 0 1px, transparent 1.3px),
    linear-gradient(rgb(var(--paper-rgb)), rgb(var(--paper-rgb))) 3px 2.5px / 11px 3px no-repeat,
    currentColor;
}
.idl .em::after {
  content: ""; position: absolute; left: 100%; top: 2px; width: 7px; height: 10px;
  border-radius: 0 3px 3px 0;
  background: radial-gradient(circle at 4px 5px, #fff 0 1px, rgb(var(--acc-rgb)) 1.5px 2.9px, transparent 3.3px), currentColor;
}
.idl.is-on .em::after { animation: idl-lens .6s ease-out 1.3s both; }
.idl .tag {
  position: absolute; left: 54px; top: calc(var(--y) - 42px);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 5px;
  font: 600 .8125rem/1 var(--f-label);
  text-transform: uppercase; letter-spacing: var(--track); white-space: nowrap;
  color: rgb(var(--ink-rgb));
  background: rgba(var(--paper-rgb), .96);
  border: 1px solid rgba(var(--ink-rgb), .38);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s ease .24s, transform .3s ease .24s;
}
.idl .tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--acc-rgb)); box-shadow: 0 0 6px 1px rgba(var(--acc-rgb), .8);
  transition: background-color .2s, box-shadow .2s;
}
.idl.is-on .em { transform: none; }
.idl.is-on .tag { opacity: 1; transform: none; }
@media (max-width: 640px) {      /* 16px gutter: tuck the housing so only the lens shows and the first letter stays readable */
  .idl .em { left: -38px; }
  .idl .beam { left: 12px; }
  .idl .tag { left: 24px; }
}
.idl.is-off .tag::before { background: rgba(var(--ink-rgb), .5); box-shadow: none; }
.idl.is-off .tag { opacity: 0; transition: opacity .3s ease .9s; }
.idl.is-off .em { transform: translateX(-100%); transition: transform .38s cubic-bezier(.5, 0, .8, .4) .9s; }
.idl .beam {
  position: absolute; left: 46px; right: 0; top: calc(var(--y) - 12px); height: 24px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 16px); mask: linear-gradient(90deg, transparent, #000 16px);
  background:
    linear-gradient(#fff, #fff) 0 50% / 100% 1px no-repeat,
    linear-gradient(rgb(var(--acc-rgb)), rgb(var(--acc-rgb))) 0 50% / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(var(--acc-rgb), 0), rgba(var(--acc-rgb), .36) 50%, rgba(var(--acc-rgb), 0));
  clip-path: inset(0 100% 0 0);
  transition: clip-path .2s ease-in;
  animation: idl-hum 1.7s ease-in-out infinite;
}
.idl.is-on .beam { clip-path: inset(0); transition: clip-path .35s cubic-bezier(.5, 0, .2, 1) 1.3s; }
.idl .dot {
  position: absolute; right: 1px; top: calc(var(--y) - 8px);
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, rgb(var(--acc-rgb)) 36%, rgba(var(--acc-rgb), .4) 60%, rgba(var(--acc-rgb), 0) 72%);
  transform: scale(0);
  transition: transform .15s ease-in;
}
.idl.is-on .dot { transform: scale(1); transition: transform .24s cubic-bezier(.3, 1.7, .5, 1) 1.6s; }
.idl.is-off .beam { clip-path: inset(0 100% 0 0); transition: clip-path .2s ease-in; }
.idl.is-off .dot { transform: scale(0); transition: transform .1s ease-in; }
@keyframes idl-hum { 0%, 100% { opacity: 1; } 38% { opacity: .88; } 62% { opacity: .97; } }
@keyframes idl-lens { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0); } 25% { box-shadow: 0 0 14px 5px rgba(var(--acc-rgb), .9); } 100% { box-shadow: 0 0 9px 2px rgba(var(--acc-rgb), .5); } }

/* The char (fx.js builds the ragged slit as one SVG path). Growth is a mask that opens outward from where the beam
   bit, plus the slit thickening; the rim flickers; the glow is a stack of drop-shadows. Cooling is a 4s transition
   (.is-cool), healing a 20s opacity fade that follows it. Sparks and smoke are small elements spawned by fx.js. */
.idl-burn {
  position: absolute; z-index: 35; width: calc(var(--w) + 28px); height: 100px; pointer-events: none;
  --nx: calc(14px + var(--w) * var(--n));                                  /* where the beam bit first */
  --rx: calc(max(var(--nx), var(--w) + 28px - var(--nx)) + 90px);          /* how far the cut has to spread */
}
.idl-burn .c {
  position: absolute; inset: 0;
  filter: drop-shadow(0 0 1px rgba(255, 130, 40, .95)) drop-shadow(0 0 3px rgba(255, 70, 10, .6)) drop-shadow(0 0 7px rgba(120, 64, 22, .5));
  transition: filter 4s ease-out, opacity 12s linear 8s;   /* cool, hold the hole for a beat, then heal */
}
.idl-burn svg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100px; overflow: visible;
  transform-origin: 0 72px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent) 0 0 / 0 100% no-repeat;
  mask: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent) 0 0 / 0 100% no-repeat;
  animation: idl-grow var(--d) cubic-bezier(.25, .6, .4, 1) both;
}
.idl-burn path {
  fill: #120a06; stroke: #ff9030; stroke-width: 1.2; stroke-linejoin: round;
  transition: stroke 4s ease-out;
  animation: idl-flick 1.4s ease-in-out infinite;
}
.idl-burn.is-cool .c { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent) drop-shadow(0 0 7px rgba(120, 64, 22, .5)); opacity: 0; }
.idl-burn.is-cool svg { animation-play-state: paused; }
.idl-burn.is-cool path { stroke: #3a1208; animation: none; }
.idl-burn .t { position: absolute; left: 14px; right: 14px; top: 0; height: 100px; overflow: hidden; }   /* two hot cutting fronts, one each way, clipped to the line */
.idl-burn .t::before, .idl-burn .t::after {
  content: ""; position: absolute; left: calc(var(--nx) - 28px); top: 58px; width: 28px; height: 28px;
  background: radial-gradient(rgba(255, 225, 150, .95), rgba(255, 140, 40, .45) 38%, rgba(255, 140, 40, 0) 70%);
  animation: idl-tl var(--d) cubic-bezier(.25, .6, .4, 1) both;
}
.idl-burn .t::after { animation-name: idl-tr; }
.idl-burn .fx { position: absolute; left: 14px; right: 14px; top: 0; height: 100px; transition: opacity 1.8s ease-out; }
.idl-burn .fx i, .idl-burn .fx b { position: absolute; top: 72px; opacity: 0; }
.idl-burn .fx i {
  width: 3px; height: 3px; margin: -1.5px; border-radius: 50%;
  background: #ffe2b0; box-shadow: 0 0 5px 1px #ff9a30;
  animation: idl-sp 1.2s cubic-bezier(.2, .7, .5, 1) calc(var(--d) * .3) infinite;
}
.idl-burn .fx b {
  width: 16px; height: 26px; margin: -18px -8px; border-radius: 50%;
  background: radial-gradient(rgba(140, 128, 116, .24), rgba(140, 128, 116, 0) 70%);
  animation: idl-sm 3s ease-out calc(var(--d) * .4) infinite;
}
.idl-burn .fx i:nth-child(1) { left: 14%; --dx: -18px; --dy: -34px; animation-duration: 1s; }
.idl-burn .fx i:nth-child(2) { left: 38%; --dx: 22px; --dy: -52px; animation-duration: 1.4s; animation-delay: calc(var(--d) * .45 + .5s); }
.idl-burn .fx i:nth-child(3) { left: 61%; --dx: -12px; --dy: -44px; animation-duration: .9s; animation-delay: calc(var(--d) * .6 + 1.1s); }
.idl-burn .fx i:nth-child(4) { left: 83%; --dx: 20px; --dy: -30px; animation-duration: 1.7s; animation-delay: calc(var(--d) * .7 + .2s); }
.idl-burn .fx b:nth-child(5) { left: 22%; --dx: 8px; }
.idl-burn .fx b:nth-child(6) { left: 50%; --dx: -10px; animation-delay: calc(var(--d) * .55 + 1.3s); animation-duration: 3.6s; }
.idl-burn .fx b:nth-child(7) { left: 76%; --dx: 12px; animation-delay: calc(var(--d) * .7 + .6s); animation-duration: 2.7s; }
.idl-burn.is-cool .fx { opacity: 0; }
.idl-burn.is-cool .t { display: none; }
@keyframes idl-grow {
  from { -webkit-mask-size: 0 100%; mask-size: 0 100%; -webkit-mask-position: var(--nx) 0; mask-position: var(--nx) 0; transform: scaleY(.3); }
  to { -webkit-mask-size: calc(var(--rx) * 2) 100%; mask-size: calc(var(--rx) * 2) 100%; -webkit-mask-position: calc(var(--nx) - var(--rx)) 0; mask-position: calc(var(--nx) - var(--rx)) 0; transform: none; }
}
@keyframes idl-tl { 80% { opacity: 1; } to { transform: translateX(calc(40px - var(--rx))); opacity: 0; } }
@keyframes idl-tr { 80% { opacity: 1; } to { transform: translateX(calc(var(--rx) - 40px)); opacity: 0; } }
@keyframes idl-flick { 0%, 100% { stroke-opacity: 1; } 22% { stroke-opacity: .8; } 47% { stroke-opacity: .96; } 71% { stroke-opacity: .72; } }
@keyframes idl-sp { 0% { opacity: 1; } 22% { transform: translate(calc(var(--dx) * .7), var(--dy)); opacity: 1; } 50% { transform: translate(var(--dx), calc(var(--dy) * .2 + 22px)); opacity: 0; } to { transform: translate(var(--dx), calc(var(--dy) * .2 + 22px)); opacity: 0; } }
@keyframes idl-sm { 0% { opacity: 0; transform: scale(.5); } 25% { opacity: 1; } to { opacity: 0; transform: translate(var(--dx), -60px) scale(2.2); } }

/* =========================================================
   MILEPOST ROAD (fx.js): a road down the left gutter at 1024px and up,
   a thin progress strip under the nav below that.
   ========================================================= */

#milepost { position: relative; }
.road {
  position: absolute;
  left: 0;
  width: var(--g, 40px);
  pointer-events: none;
  container-type: inline-size;
}
.road__stick {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  height: min(520px, calc(100vh - var(--nav-h) - 120px));
}
.road__way {
  position: absolute;
  left: 2px; top: 0; bottom: 0;
  width: 11px;
  border: solid var(--rule-strong);
  border-width: 0 1.5px;
  background: repeating-linear-gradient(180deg, var(--rule-strong) 0 7px, transparent 7px 14px) 50% 0 / 1.5px 100% no-repeat;
}
.road__fill {
  position: absolute;
  left: 6.5px; top: 0; bottom: 0;
  width: 2px;
  background: var(--acc);
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.road__car {
  position: absolute;
  left: 7.5px; top: 0;
  width: 9px; height: 15px;
  margin: -7.5px 0 0 -4.5px;
  border-radius: 4px 4px 3px 3px;
  background: var(--acc);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .22), 0 0 12px rgba(var(--acc-rgb), .5);
  will-change: transform;
}
.road__car::after { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 4px; border-radius: 1px; background: rgba(var(--ink-rgb), .55); }
.road__sign {
  position: absolute;
  left: 18px;
  display: grid;
  gap: 1px;
  width: max-content;
  max-width: calc(var(--g) - 18px);
  min-width: 20px;
  margin-top: -14px;
  padding: 3px 6px 4px;
  border-radius: 3px;
  background: transparent;
  color: var(--ok);
  box-shadow: inset 0 0 0 1.5px var(--ok);
  font-family: var(--f-label);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background-color .3s ease, color .3s ease;
}
.road__sign::before { content: ""; position: absolute; left: -5px; top: 13px; width: 5px; height: 2px; background: var(--ok); }
.road__sign.is-past { background: var(--ok); color: #fff; }
.road__sign b { font-family: var(--f-display); font-size: 1.0625rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.road__sign em { font-style: normal; }
@container (max-width: 91px) {
  .road__sign { padding: 3px 5px 4px; }
  .road__sign em { display: none; }
}
.roadbar { position: sticky; top: calc(var(--nav-h) + 1px); height: 0; z-index: 30; pointer-events: none; }
.roadbar__in { position: absolute; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; }
.roadbar__in::before { content: ""; position: absolute; inset: 1px 0; background: repeating-linear-gradient(90deg, var(--rule-strong) 0 6px, transparent 6px 12px); }
.roadbar__fill { position: absolute; inset: 0; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }
.roadbar__car { position: absolute; left: 0; top: -2px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .25); will-change: transform; }
@media (min-width: 1024px) { .roadbar { display: none; } }
@media (max-width: 1023px) { .road { display: none; } }

/* =========================================================
   ASK (mount point; the widget brings its own ask.css)
   ========================================================= */

/* Left: heading, intro, how it works. Right: the widget (the static fallback until ask.js replaces it,
   the same box either way, so mounting it moves nothing). Stacked on phones: heading, intro, widget. */
.ask__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.ask__lead { display: grid; gap: 20px; max-width: 34rem; }
.ask__how {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--graphite);
}
.ask__fallback { margin: 0; color: var(--graphite); }
@media (min-width: 960px) {
  .ask__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); }
  .ask__grid > :last-child { min-height: 380px; }
}

/* palette switch: colors cross-fade for a moment */
html.pal-sw *, html.pal-sw *::before, html.pal-sw *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important;
}

/* =========================================================
   MOTION (enhancement only; all transform/opacity)
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  /* hero contours draw in once (fx.js adds .is-drawing, then removes it) */
  .topo.is-drawing path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    stroke-linecap: butt;
    animation: topo-draw 1.7s cubic-bezier(.4,.1,.2,1) calc(var(--i, 0) * 38ms + .15s) forwards;
  }

  /* hero: the measurement */
  .js .hero__ruler { animation: rule-in 1.1s cubic-bezier(.2,.7,.1,1) both; }
  .js .span__beam { animation: beam 1.25s cubic-bezier(.3,.6,.1,1) .3s both; }
  .js .span__laser { animation: laser 1.25s cubic-bezier(.3,.6,.1,1) .3s both; }
  .js .span__run { animation: run 1.25s cubic-bezier(.3,.6,.1,1) .3s both; }
  .js .span__end--b b, .js .span__label { animation: fade .3s ease 1.7s both; }

  /* section rules draw when they enter */
  .js [data-draw].sheet:not(.in)::before { transform: scaleX(0); }

  /* week grid fills hour by hour */
  .js .week .week__grid i::after {
    transform: scaleX(0);
    transition: transform .22s ease calc(var(--i) * 32ms + .2s);
  }
  .js .week.in .week__grid i::after { transform: none; }

  /* schematic wires */
  .js .schematic .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s cubic-bezier(.4,.1,.2,1);
  }
  .js .schematic.in .draw { stroke-dashoffset: 0; }
  .js .schematic.in .s-spec .draw { transition-delay: .45s; }
  .js .schematic.in .s-write { transition-delay: .9s; }

  /* audit chain links one by one */
  .js .chain:not(.in) .blk { opacity: 0; transform: translateY(10px); }
  .js .chain .blk[data-blk="412"] { transition-delay: .35s; }
  .js .chain .blk[data-blk="413"] { transition-delay: .7s; }
  .js .chain:not(.in) .blk + .blk::before { transform: scale(0); }
  .js .chain:not(.in) .blk + .blk::after { opacity: 0; }
  .js .chain .blk[data-blk="412"]::before { transition-delay: .3s; }
  .js .chain .blk[data-blk="413"]::before { transition-delay: .65s; }
}

@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes beam { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes laser { 0% { transform: scaleX(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes run { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes topo-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .idl, .idl-burn, .roadbar__car { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  @page { margin: 14mm 14mm 16mm; }
  html { font-size: 13px; }
  body { background: #fff; }
  html { background: #fff; }
  .nav, .hero__cta, .chain__btn, .scan, .skip, .foot__base a, .approach__intro .btn, .flow__ctl,
  .modectl, .titleblock__sheet, .rev, .topo, .idl, .idl-burn, .road, .roadbar, .ask { display: none !important; }
  main { display: block; }
  .hero, .section, .foot { background: #fff; }
  .section { padding: 28px 0; }
  .section--panel { background: #fff; }
  .hero { padding-bottom: 20px; }
  /* finished states for everything that animates on screen */
  .chain .blk, .chain .blk::before, .chain .blk::after { opacity: 1 !important; transform: none !important; }
  .schematic .draw { stroke-dashoffset: 0 !important; }
  .week__grid i::after, .sheet::before, .hero__ruler, .span__beam, .span__run { transform: none !important; }
  .span__label, .span__end--b b { opacity: 1 !important; }
  .s-pulse, .s-pulse-halo { display: none !important; }
  .about__spec { position: static !important; }
  /* the dark Approach band prints as ink on paper */
  .section--ink { background: #fff !important; color: var(--ink); }
  .for li { color: var(--ink); border-color: var(--rule-strong); }
  /* the schematic: print the wide drawing, which fits one page width */
  .schematic__svg--wide { display: block !important; }
  .schematic__svg--tall { display: none !important; }
  .schematic { padding: 12px; }
  .proof { background: #fff; }
  .sheet { break-inside: avoid; break-after: avoid; page-break-after: avoid; }
  .sheet + * { break-before: avoid; page-break-before: avoid; }
  #approach, #about, #also, #contact { break-before: page; }
  .approach, .about { display: block; }
  .approach__how { margin-top: 18px; }
  .lead-grid { margin-bottom: 20px; }
  .schematic, .flow, .vid__fig, .chain__list, .access, .everest, .timeline > li, .build, .rule-card { break-inside: avoid; }
  .h2, .h3, .sheet { break-after: avoid; }
  .flow, .vid__fig { max-width: 420px; }
  .everest__photo { max-width: 360px; }
}
