/* Homepage stylesheet: the page's former inline <style> block, verbatim, followed
   by the v2 page-scoped design layer (DSE, 2026-09-05).
   Lives in an external same-origin stylesheet on purpose: thedataexperts.mx
   serves `style-src 'self'` with no 'unsafe-inline', so anything left in the
   page's inline <style> block is silently dropped there: 124 of the homepage's
   351 selectors existed only inline and never applied on that distribution.
   This file is linked from the page head, which build.py places BEFORE the
   shared engineering-log.css link, so the cascade for the duplicated rules is
   identical to when the block was inline. The v2 layer at the end is scoped
   under body.home-v2 and wins on specificity regardless of position. */

/* ===== Former inline block ===== */
/* engineering-log.css
   Design system for the hi-fi "Engineering Log" homepage.
   Cool paper · deep navy ink · blue accent · dual light/dark theme · serif display + plex sans/mono.
*/

:root {
  --paper:        #f5f7fa;
  --paper-2:      #eaeff5;
  --paper-edge:   #dde5ef;
  --ink:          #0b1220;
  --ink-2:        #1b2536;
  --ink-soft:     #4a5568;
  --ink-mute:     #5b6b85;
  --rule:         rgba(11,18,32,.12);
  --rule-soft:    rgba(11,18,32,.06);
  --accent:       #0066cc;
  --accent-ink:   #0052a3;
  --accent-soft:  #dceafe;
  --accent-fg:    #ffffff;
  --slate:        #15233b;
  --slate-fg:     #eef3fa;
  --green:        #2f7a4a;
  --teal:         #1f6f7a;

  --serif:  "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans:   "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:   "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* airy density: generous spacing */
  --shell-x:    96px;
  --shell-y:    96px;
  --section-y:  140px;
  --stack-lg:   48px;
  --stack-md:   28px;
  --stack-sm:   14px;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── typography utilities ─────────────────────────────────── */

.serif       { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.serif-it    { font-family: var(--serif); font-weight: 400; font-style: italic; }
.mono        { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot { color: var(--accent); margin: 0 .35em; }

.h-mega {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.h-display {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0;
}
.h-section {
  font-family: var(--serif);
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-card {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.008em;
  margin: 0;
}
.h-small {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.body { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-soft); }
.mark { color: var(--accent); }

/* ── shell + layout ───────────────────────────────────────── */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--shell-x);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section + .section { padding-top: 0; }

.rule         { border-top: 1px solid var(--rule); }
.rule-soft    { border-top: 1px solid var(--rule-soft); }

/* ── top utility bar ──────────────────────────────────────── */

.util {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.util-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--shell-x);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.util-inner span + span { margin-left: 28px; }
.util-inner .live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.util-inner .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 6px;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ── nav ──────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--shell-x);
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink);
}
.brand .glyph {
  width: 28px; height: 28px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0;
}
.brand .slash { color: var(--ink-mute); margin: 0 2px; }
.brand .light { color: var(--ink-soft); font-weight: 400; }

.nav-links {
  display: flex; gap: 32px; justify-content: center;
}
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link .arrow { color: var(--ink-mute); margin-left: 6px; font-family: var(--mono); }

.nav-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
}

/* Mobile nav (hamburger + drawer) is injected by assets/site.js and styled
   in assets/site.css (.nav-toggle / .nav-drawer overlay). No static markup
   or styles here: that previously double-rendered the toggle and the drawer. */

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: .005em;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .glyph { font-family: var(--mono); font-size: 12px; }

.btn-primary {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-fg); }

.btn-ghost { border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── chips, tags, kbd ─────────────────────────────────────── */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
}
.chip.is-accent { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip.is-fed    { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.is-ghost  { background: transparent; }

.tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 var(--section-y);
  border-bottom: 1px solid var(--rule);
}
.hero-band {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.hero h1 {
  margin: 0 0 36px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero h1 .alt {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.66em;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.08em;
}
.hero-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 56ch) auto;
  gap: 64px; align-items: end;
  margin-bottom: 64px;
}
.hero-cta { display: inline-flex; gap: 12px; align-items: center; }
.hero-cta .reply {
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  margin-left: 14px;
}
.hero-cta .reply b { color: var(--ink); font-weight: 500; }

/* visual block: terminal + system map */
.hero-visual {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .hero-visual { grid-template-columns: 1fr; }
}

/* terminal */
.term {
  background: var(--slate);
  color: var(--slate-fg);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  padding: 24px 28px;
  min-height: 420px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.term::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: color-mix(in srgb, var(--slate-fg) 50%, transparent);
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--slate-fg) 10%, transparent);
}
.term-bar .dots { display: inline-flex; gap: 6px; margin-right: 8px; }
.term-bar .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.term-bar .dots i:nth-child(1) { background: #e96c5a; }
.term-bar .dots i:nth-child(2) { background: #e8c468; }
.term-bar .dots i:nth-child(3) { background: #7fb86a; }
.term-bar .path { color: color-mix(in srgb, var(--slate-fg) 80%, transparent); }
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .t    { color: color-mix(in srgb, var(--slate-fg) 40%, transparent); }
.term .ok   { color: #9bbf86; }
.term .info { color: #7ec3ff; }
.term .warn { color: #ffd479; }
.term .err  { color: #ff8a6a; }
.term .dim  { color: color-mix(in srgb, var(--slate-fg) 55%, transparent); }
.term .em   { color: #f3ecd9; }
.term .blink { display: inline-block; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.term-foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--slate-fg) 10%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: color-mix(in srgb, var(--slate-fg) 50%, transparent);
}
.term-foot a { color: color-mix(in srgb, var(--slate-fg) 85%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--slate-fg) 25%, transparent); }

/* system map */
.map {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 28px 28px 24px;
  position: relative;
  min-height: 420px;
  display: flex; flex-direction: column;
}
.map-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px;
}
.map-head .ttl { font-family: var(--serif); font-size: 22px; }
.map-head .lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; }
.map-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.map-cell {
  background: var(--paper);
  padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px;
  min-height: 92px;
  position: relative;
}
.map-cell .k {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .12em; text-transform: uppercase;
}
.map-cell .v { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.map-cell .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }
.map-cell.is-accent {
  background: var(--accent); color: var(--accent-fg);
}
.map-cell.is-accent .k { color: rgba(255,255,255,.7); }
.map-cell.is-accent .meta { color: rgba(255,255,255,.78); }
.map-cell.is-dark {
  background: var(--slate); color: var(--slate-fg);
}
.map-cell.is-dark .k { color: color-mix(in srgb, var(--slate-fg) 55%, transparent); }
.map-cell.is-dark .meta { color: color-mix(in srgb, var(--slate-fg) 60%, transparent); }
.map-foot {
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
}

/* ── proof strip ──────────────────────────────────────────── */

.proof {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.proof-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
}
.proof-cell:last-child { border-right: 0; }
.proof-cell .n { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.proof-cell .l { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.proof-cell .h { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
@media (max-width: 1100px) { .proof { grid-template-columns: repeat(3, 1fr); } .proof-cell:nth-child(3) { border-right: 0; } }

/* ── why-us blocks (real IP, not slideware) ───────────────── */
.proof-blocks {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.proof-block {
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.proof-block:last-child { border-right: 0; }
.proof-block.is-lead { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.proof-block .tag { margin-bottom: 16px; }
.proof-block h3 { margin: 0 0 14px; }
.proof-block .body { max-width: 46ch; margin: 0 0 22px; }
.proof-block .pf-cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) {
  .proof-blocks { grid-template-columns: 1fr; }
  .proof-block { border-right: 0; border-bottom: 1px solid var(--rule); }
  .proof-block:last-child { border-bottom: 0; }
}

/* ── pillar (secure / govern) ─────────────────────────────── */
.pillar-lede { max-width: 64ch; margin: 0 0 40px; }
.pillar-lede .eyebrow { margin-bottom: 16px; }
.pillar-lede h2 { margin: 0 0 16px; }
.pillar-lede h2 em { font-style: italic; color: var(--accent); }

.ladder {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper);
}
.ladder .rung {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.ladder .rung:last-child { border-right: 0; }
.ladder .rung.is-primary { background: var(--accent); color: var(--accent-fg); }
.ladder .rung.is-primary .rung-price,
.ladder .rung.is-primary .rung-note { color: rgba(255,255,255,.82); }
.ladder .rung.is-primary .tag { color: var(--accent-fg); }
.ladder .rung.is-primary .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ladder .rung.is-primary .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ladder .rung .tag { margin-bottom: 12px; }
.ladder .rung h3 { font-family: var(--serif); font-size: 24px; line-height: 1.08; margin: 0 0 10px; }
.ladder .rung .rung-price { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.ladder .rung .rung-note { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.ladder .rung .rung-cta { margin-top: auto; align-self: flex-start; }
.ladder .rung .rung-gated {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
@media (max-width: 1100px) {
  .ladder { grid-template-columns: 1fr; }
  .ladder .rung { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ladder .rung:last-child { border-bottom: 0; }
}

.surfaces {
  margin-top: 48px;
  border-top: 1px solid var(--ink);
}
.surfaces .surfaces-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 20px 0 8px;
}
.surfaces ol { list-style: none; margin: 0; padding: 0; counter-reset: surf; }
.surfaces li {
  counter-increment: surf;
  display: grid; grid-template-columns: 36px 1fr auto; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--rule);
  align-items: baseline;
}
.surfaces li::before {
  content: counter(surf, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.surfaces li .surf-copy { font-size: 15px; color: var(--ink-2); }
.surfaces li .surf-copy b { color: var(--ink); font-weight: 500; }
.surfaces li .surf-map { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); white-space: nowrap; }
.method-line {
  margin-top: 36px; padding: 24px 28px;
  border: 1px solid var(--rule); background: var(--paper-2);
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--ink-2);
}
.method-line b { color: var(--ink); font-weight: 600; }
.pillar-foot { margin-top: 32px; }
@media (max-width: 640px) {
  .surfaces li { grid-template-columns: 28px 1fr; gap: 12px; }
  .surfaces li .surf-map { grid-column: 2; }
}

/* ── section heads ────────────────────────────────────────── */

.sec-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  margin-bottom: var(--stack-lg);
}
.sec-head .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; }
.sec-head .meta b { color: var(--ink); font-weight: 500; }
.sec-head .meta .num {
  font-family: var(--serif); font-size: 18px; letter-spacing: 0; color: var(--accent); display: block; margin-bottom: 6px; text-transform: none;
}
.sec-head .lede { max-width: 64ch; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head h2 em { font-style: italic; color: var(--accent); }

/* ── dual track ───────────────────────────────────────────── */

.tracks {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.track {
  padding: 56px 48px;
  position: relative;
}
.track + .track {
  border-left: 1px solid var(--ink);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.track .label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
}
.track .label .tag { color: var(--accent); }
.track h3 { margin: 0 0 16px; }
.track .body { max-width: 44ch; margin-bottom: 28px; }
.track-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
}
.track-meta div { padding: 12px 0; border-top: 1px solid var(--rule); }
.track-meta b { color: var(--ink); font-weight: 500; display: block; font-size: 13px; margin-bottom: 4px; font-family: var(--sans); }

.track-spine {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 6px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--ink);
}
@media (max-width: 1100px) {
  .tracks { grid-template-columns: 1fr; }
  .track + .track { border-left: 0; border-top: 1px solid var(--ink); }
}

/* 3-up verticals layout */
.tracks.tracks-3 { grid-template-columns: 1fr 1fr 1fr; }
.tracks.tracks-3 .track { padding: 44px 36px; }
.tracks.tracks-3 .track + .track {
  background: var(--paper);
  border-left: 1px solid var(--ink);
}
.tracks.tracks-3 .track .body { max-width: none; margin-bottom: 22px; }
@media (max-width: 1100px) {
  .tracks.tracks-3 { grid-template-columns: 1fr; }
  .tracks.tracks-3 .track + .track { border-left: 0; border-top: 1px solid var(--ink); }
}

/* ── services ─────────────────────────────────────────────── */

.services {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.service {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
}
.service:nth-child(odd)  { border-right: 1px solid var(--rule); padding-right: 56px; }
.service:nth-child(even) { padding-left: 56px; }
.service:nth-last-child(-n+2) { border-bottom: 1px solid var(--ink); }
.service .num {
  font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent);
}
.service h3 { margin: 0 0 14px; }
.service .lede { font-size: 16px; color: var(--ink-2); margin: 0 0 22px; max-width: 48ch; }
.service ul.bullets {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px;
}
.service ul.bullets li {
  display: grid; grid-template-columns: 14px 1fr; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}
.service ul.bullets li::before { content: "-"; color: var(--accent); }
.service .deliv {
  padding: 14px 0 0;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
}
.service .deliv b { color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 13.5px; display: block; margin-bottom: 4px; }
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; padding: 36px 0 !important; }
}

/* ── case study ───────────────────────────────────────────── */

.case {
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.case-media {
  background: linear-gradient(135deg, var(--slate) 0%, color-mix(in srgb, var(--slate) 80%, var(--ink)) 100%);
  color: var(--slate-fg);
  padding: 40px 40px 0;
  position: relative;
  min-height: 460px;
  display: flex; flex-direction: column;
}
.case-media .meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.case-media .meta .chip { background: color-mix(in srgb, var(--slate-fg) 8%, transparent); border-color: color-mix(in srgb, var(--slate-fg) 18%, transparent); color: var(--slate-fg); }
.case-media .meta .chip.is-accent { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.case-media h3 { font-family: var(--serif); font-size: 36px; line-height: 1.05; margin: 0 0 12px; }
.case-media .body { color: color-mix(in srgb, var(--slate-fg) 70%, transparent); }

.case-mock {
  margin-top: auto; margin-bottom: -1px;
  border: 1px solid color-mix(in srgb, var(--slate-fg) 12%, transparent);
  border-bottom: 0;
  background: rgba(255,255,255,.03);
  font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--slate-fg) 70%, transparent);
  padding: 14px 18px 0;
}
.case-mock .row {
  display: grid; grid-template-columns: 90px 1fr 60px;
  gap: 14px; padding: 6px 0; align-items: center;
  border-bottom: 1px dashed color-mix(in srgb, var(--slate-fg) 8%, transparent);
}
.case-mock .row:last-child { border-bottom: 0; }
.case-mock .row .nm { color: var(--slate-fg); }
.case-mock .row .bar {
  height: 6px; background: color-mix(in srgb, var(--slate-fg) 8%, transparent); position: relative; overflow: hidden;
}
.case-mock .row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.case-mock .row .v { text-align: right; color: var(--slate-fg); }
.case-mock .hd { color: color-mix(in srgb, var(--slate-fg) 40%, transparent); padding: 8px 0; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }

.case-body {
  padding: 40px 40px 32px;
  display: flex; flex-direction: column;
}
.case-body .label {
  font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.case-body h4 { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin: 0 0 14px; }
.case-body p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

.case-stats {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.case-stats div { padding: 18px 14px 0; border-right: 1px solid var(--rule); }
.case-stats div:last-child { border-right: 0; }
.case-stats .k { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); letter-spacing: .12em; text-transform: uppercase; }
.case-stats .v { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-top: 6px; }
@media (max-width: 1100px) { .case { grid-template-columns: 1fr; } .case-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── how we work ──────────────────────────────────────────── */

.workflow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stage {
  padding: 40px 32px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.stage:last-child { border-right: 0; }
.stage .wk {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.stage .wk::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.stage h4 { font-family: var(--serif); font-size: 28px; line-height: 1.05; margin: 0 0 12px; }
.stage p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.stage .num {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}
@media (max-width: 1100px) { .workflow { grid-template-columns: 1fr 1fr; } }

/* ── why-DSE trust tiles ──────────────────────────────────── */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.trust-tile {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.trust-tile .wk {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.trust-tile .wk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.trust-tile h4 { font-family: var(--serif); font-size: 24px; line-height: 1.06; margin: 0 0 12px; }
.trust-tile p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 16px; }
.trust-tile .pf-secondary { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) {
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr; border-left: 0; }
  .trust-tile { border-right: 0; }
}

.eng-demoted {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
  max-width: 78ch;
}
.eng-demoted-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border-bottom: 1px solid var(--rule);
}
.eng-demoted-link:hover { border-color: var(--accent); }
.eng-demoted-link .glyph { font-family: var(--mono); font-size: 11px; }

/* ── won't take on ────────────────────────────────────────── */

.refuse {
  background: var(--slate); color: var(--slate-fg);
  padding: 88px 0;
}
.refuse .shell { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.refuse h2 { color: var(--slate-fg); }
.refuse h2 em { color: var(--accent); font-style: italic; }
.refuse .lede { color: color-mix(in srgb, var(--slate-fg) 65%, transparent); }
.refuse ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--slate-fg) 16%, transparent);
}
.refuse li {
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--slate-fg) 8%, transparent);
  display: grid; grid-template-columns: 28px 1fr;
  color: color-mix(in srgb, var(--slate-fg) 85%, transparent);
  font-size: 16px;
}
.refuse li:nth-child(odd)  { padding-right: 24px; border-right: 1px solid color-mix(in srgb, var(--slate-fg) 8%, transparent); }
.refuse li:nth-child(even) { padding-left: 24px; }
.refuse li::before {
  content: "×"; color: var(--accent); font-family: var(--mono); font-size: 18px; line-height: 1;
}
.refuse li s { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); text-decoration-thickness: 1.5px; }
.refuse .kicker {
  margin-top: 28px;
  font-family: var(--serif); font-size: 22px; line-height: 1.25;
  color: color-mix(in srgb, var(--slate-fg) 85%, transparent);
  max-width: 38ch;
}
.refuse .kicker em { color: var(--accent); font-style: italic; }
@media (max-width: 1100px) { .refuse .shell { grid-template-columns: 1fr; } .refuse ul { grid-template-columns: 1fr; } .refuse li { border-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; } }

/* ── writing + oss ────────────────────────────────────────── */

.publish { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.pub-block { border-top: 1px solid var(--ink); padding-top: 28px; }
.pub-block .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.pub-block .h .t { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; }
.pub-block .h .more { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.pub-item {
  padding: 18px 0;
  border-top: 1px dashed var(--rule);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline;
}
.pub-item:first-of-type { border-top: 0; }
.pub-item .t { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--ink); }
.pub-item .t .reading { color: var(--ink-mute); font-family: var(--mono); font-size: 11px; margin-left: 10px; }
.pub-item .d { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); white-space: nowrap; }

.repo-row {
  padding: 14px 0;
  border-top: 1px dashed var(--rule);
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px; align-items: baseline;
  font-family: var(--mono); font-size: 13px;
}
.repo-row:first-of-type { border-top: 0; }
.repo-row .nm { color: var(--ink); }
.repo-row .nm::before { content: "↳ "; color: var(--accent); }
.repo-row .kind { color: var(--ink-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.repo-row .stars { color: var(--ink); }
a.pub-item:hover .t { color: var(--accent); }
a.repo-row:hover .nm { color: var(--accent); }
@media (max-width: 1100px) { .publish { grid-template-columns: 1fr; } }

/* ── footer ───────────────────────────────────────────────── */

.foot {
  background: var(--ink); color: var(--paper);
}
.foot-cta {
  padding: 120px var(--shell-x) 100px;
  max-width: 1440px; margin: 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}
.foot-cta .eyebrow { color: color-mix(in srgb, var(--paper) 55%, transparent); margin-bottom: 22px; }
.foot-cta h2 {
  font-family: var(--serif);
  font-size: clamp(56px, 6.4vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.016em;
  color: var(--paper); margin: 0 0 36px; max-width: 16ch;
}
.foot-cta h2 em { color: var(--accent); font-style: italic; }
.foot-cta .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-cta .btn { color: var(--paper); border-color: var(--paper); }
.foot-cta .btn:hover { background: var(--paper); color: var(--ink); }
.foot-cta .btn-primary { color: var(--accent-fg); border-color: var(--accent); background: var(--accent); }
.foot-cta .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.foot-cta .email {
  margin-left: 12px;
  font-family: var(--mono); font-size: 13px;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}
.foot-cta .email b { color: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); font-weight: 400; }

.foot-grid {
  padding: 64px var(--shell-x);
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px 40px;
  font-family: var(--mono); font-size: 12px;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}
.foot-grid h5 { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 50%, transparent); margin: 0 0 14px; font-weight: 500; }
.foot-grid a { display: block; padding: 5px 0; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.foot-grid a:hover { color: var(--paper); }
.foot-grid .brand-blk { font-family: var(--serif); font-size: 28px; color: var(--paper); margin-bottom: 14px; line-height: 1.1; }
.foot-grid .legal { line-height: 1.6; font-size: 11.5px; }

.foot-bar {
  padding: 22px var(--shell-x);
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--paper) 50%, transparent);
}

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 1100px) {
  :root { --shell-x: 40px; --section-y: 96px; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  /* .nav-toggle is shown at this breakpoint by assets/site.css */
  .hero-lead-row { grid-template-columns: 1fr; gap: 28px; }
  /* Compact-layout CTAs are tap targets from this breakpoint down (nav has
     already collapsed to the hamburger); meet the WCAG 44px minimum. */
  .btn-sm { padding-top: 12px; padding-bottom: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  /* footer drops the 5-column grid to a 3-col link block (brand spans full row) */
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px 32px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
/* drawer is a mobile-only affordance: never render it on desktop,
   even if JS left it open before a viewport resize */
@media (min-width: 1101px) {
  .nav-drawer { display: none !important; }
}

/* ── V3 editorial hero ────────────────────────────────────── */
.hero-v3 {
  padding: 96px 0 var(--section-y);
}
.hero-v3 .hero-band { margin-bottom: 64px; }
.hero-v3 .h-mega.massive {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 18ch;
  color: var(--ink);
}
.hero-v3 .h-mega.massive em { color: var(--accent); font-style: italic; }
.hero-v3 .h-mega.massive .alt {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--ink-soft);
  margin-top: 36px;
  line-height: 1.45;
  max-width: 58ch;
  letter-spacing: -0.003em;
}
.hero-v3 .hero-cta-row {
  display: inline-flex; gap: 14px; align-items: center;
  margin-bottom: 88px;
}
.hero-v3 .hero-cta-row .reply {
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  margin-left: 14px; line-height: 1.4;
}
.hero-v3 .hero-cta-row .reply b { color: var(--ink); font-weight: 500; }

.hero-v3 .hero-footstrip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.hero-v3 .hero-footstrip > div {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--rule);
}
.hero-v3 .hero-footstrip > div:last-child { border-right: 0; padding-right: 0; }
.hero-v3 .hero-footstrip .k {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.hero-v3 .hero-footstrip .v {
  font-family: var(--serif); font-size: 52px; line-height: 1;
  letter-spacing: -0.02em;
}
/* word-based footstrip values (e.g. "mcp-warden", "senior-only") read better
   at a smaller serif size than the big-numeral cells */
.hero-v3 .hero-footstrip .v.is-text { font-size: 30px; line-height: 1.05; }
.hero-v3 .hero-footstrip .v .u { color: var(--ink-soft); font-size: .5em; }
.hero-v3 .hero-footstrip .d {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft);
  letter-spacing: .04em; margin-top: 12px;
}
@media (max-width: 1100px) {
  .hero-v3 .hero-footstrip { grid-template-columns: repeat(3, 1fr); }
  .hero-v3 .hero-footstrip > div:nth-child(3) { border-right: 0; }
  .hero-v3 .hero-footstrip > div { padding-right: 16px; }
}

/* ── Exhibit (terminal + system map, post-hero) ───────────── */
.exhibit {
  padding-top: 88px;
  padding-bottom: 88px;
}
.exhibit-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.exhibit-head .exhibit-more {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border-bottom: 1px solid var(--rule);
}
.exhibit-head .exhibit-more:hover { color: var(--accent-ink); }

/* ── Problem router ("Start here: what's broken?") ───────── */
.pf-router { padding-top: 88px; padding-bottom: 88px; }
.pf-router .pf-head { margin-bottom: 40px; max-width: 64ch; }
.pf-router .pf-head .eyebrow { margin-bottom: 18px; }
.pf-router .pf-head h2 { margin: 0 0 16px; }
.pf-router .pf-head h2 em { font-style: italic; color: var(--accent); }
.pf-router .pf-head .lede { max-width: 60ch; }
.quick-routes {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 0 0 34px;
}
.quick-routes .btn { background: var(--paper); }
.quick-routes .btn-primary { background: var(--accent); }

.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.pf-item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pf-item:nth-child(3n) { border-right: 1px solid var(--ink); }

.pf-tile {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  text-align: left;
  padding: 28px 24px;
  background: var(--paper);
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 23px; line-height: 1.12; letter-spacing: -0.006em;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.pf-tile:hover { background: var(--paper-2); }
.pf-tile .pf-tile-mark {
  font-family: var(--mono); font-size: 13px; color: var(--ink-mute);
  margin-top: 4px; flex: 0 0 auto;
  transition: transform .2s ease, color .18s ease;
}
.pf-tile[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.pf-tile[aria-expanded="true"] .pf-tile-mark { color: var(--accent); transform: rotate(45deg); }
.pf-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.pf-panel {
  border-top: 1px dashed var(--rule);
  background: var(--paper-2);
  padding: 24px;
}
.pf-panel[hidden] { display: none; }
.pf-panel .pf-answer {
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 20px; max-width: 60ch;
}
.pf-panel .pf-links {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--rule);
}
.pf-panel .pf-secondary {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.pf-panel .pf-secondary .k { color: var(--ink-mute); text-transform: uppercase; letter-spacing: .12em; margin-right: 6px; }
.pf-panel .pf-secondary:hover { color: var(--accent); border-color: var(--accent); }
.pf-panel .pf-cta { margin-left: auto; }
@media (max-width: 1100px) {
  .pf-grid { grid-template-columns: 1fr; border-left: 0; }
  .pf-item { border-right: 0 !important; }
  .pf-panel .pf-cta { margin-left: 0; }
  .pf-panel .pf-links { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-tile, .pf-tile .pf-tile-mark, .pf-panel .pf-secondary { transition: none; }
}

/* ── Next-step CTA module (kills dead-ends) ───────────────── */
.next-step {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 48px 48px 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.next-step .ns-copy { max-width: 52ch; }
.next-step .eyebrow { margin-bottom: 16px; }
.next-step h2 { margin: 0 0 12px; }
.next-step h2 em { font-style: italic; color: var(--accent); }
.next-step p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.next-step .ns-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1100px) {
  .next-step { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .next-step .ns-actions { flex-direction: row; flex-wrap: wrap; }
}


  /* ── phone breakpoint (added 2026-05-26) ─────────────────── */
  @media (max-width: 640px) {
    :root { --shell-x: 20px; --section-y: 56px; --shell-y: 56px; --stack-lg: 32px; }

    /* utility bar + nav: tighten, keep gutter. Stack the two mono strings so
       neither wraps mid-phrase against the other (space-between cramps them). */
    .util-inner { padding: 8px var(--shell-x); font-size: 10px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .util-inner span + span { margin-left: 0; }
    .nav-inner { padding: 14px var(--shell-x); gap: 16px; }
    .brand { font-size: 12px; gap: 10px; }
    .brand .glyph { width: 24px; height: 24px; font-size: 12px; }
    .nav-cta .btn { padding: 12px 16px; min-height: 44px; }

    /* display + section type caps so headings never overflow */
    .h-mega    { font-size: clamp(40px, 11vw, 64px); line-height: 0.98; }
    .h-display { font-size: clamp(34px, 9vw, 52px);  line-height: 1.0; }
    .h-section { font-size: clamp(28px, 8vw, 40px);  line-height: 1.05; }
    .h-card    { font-size: 26px; line-height: 1.1; }
    .h-small   { font-size: 19px; }
    .sec-head { grid-template-columns: 1fr; gap: 20px; }
    .sec-head h2 { font-size: clamp(28px, 8vw, 40px); line-height: 1.05; }

    /* terminal + system map: variable height, fewer columns */
    .term { padding: 18px 18px; min-height: auto; font-size: 11.5px; }
    .map  { padding: 22px 18px; min-height: auto; }
    .map-grid { grid-template-columns: repeat(2, 1fr); }

    /* proof strip: 2-col, no dangling right borders */
    .proof { grid-template-columns: 1fr 1fr; }
    .proof-cell { padding: 22px 16px; border-right: 0; }
    .proof-cell:nth-child(odd) { border-right: 1px solid var(--rule); }
    .proof-cell .n { font-size: 40px; }

    /* services ladder: single column, bullets stack */
    .service { padding: 28px 0 !important; grid-template-columns: 1fr; gap: 16px; }
    .service:nth-child(odd)  { padding-right: 0 !important; border-right: 0 !important; }
    .service:nth-child(even) { padding-left: 0 !important; }
    .service .num { font-size: 44px; }
    .service ul.bullets { grid-template-columns: 1fr; gap: 4px 0; }

    /* case study */
    .case-media { padding: 28px 22px 0; min-height: auto; }
    .case-media h3 { font-size: 28px; }
    .case-body { padding: 28px 22px 24px; }
    .case-stats { grid-template-columns: 1fr 1fr; }
    .case-stats div { padding: 16px 12px 0; }

    /* workflow: single column */
    .workflow { grid-template-columns: 1fr; }
    .stage { padding: 26px 20px; border-right: 0; border-bottom: 1px solid var(--rule); }
    .stage:last-child { border-bottom: 0; }
    .stage .num { top: 22px; right: 20px; }

    /* tracks */
    .track { padding: 32px 22px; }
    .track + .track { border-left: 0; border-top: 1px solid var(--ink); }

    /* publishing / repos */
    .publish { grid-template-columns: 1fr; gap: 32px; }
    .pub-item { grid-template-columns: 1fr; gap: 6px; }
    .pub-item .t { font-size: 20px; }
    .repo-row { grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 12px; }

    /* buttons: 44px touch targets, full-width feel */
    .btn { padding: 14px 22px; font-size: 14px; min-height: 44px; }
    .btn-sm { padding: 12px 18px; font-size: 13px; min-height: 44px; }

    /* footer */
    .foot-cta { padding: 64px var(--shell-x) 56px; }
    .foot-cta h2 { font-size: clamp(40px, 11vw, 72px); margin-bottom: 28px; }
    .foot-cta .row { gap: 12px; }
    .foot-cta .email { margin-left: 0; }
    .foot-grid { padding: 40px var(--shell-x); grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .foot-grid .brand-blk { font-size: 22px; }
    .foot-bar { padding: 18px var(--shell-x); flex-direction: column; gap: 8px; align-items: flex-start; }

    /* problem router: single column, tap-friendly tiles */
    .pf-grid { grid-template-columns: 1fr; border-left: 0; }
    .pf-item { border-right: 0 !important; }
    .pf-item:nth-child(3n) { border-right: 0; }
    .pf-tile { padding: 22px 20px; font-size: 20px; gap: 12px; min-height: 44px; }
    .pf-panel { padding: 20px; }
    .pf-panel .pf-links { flex-direction: column; align-items: stretch; gap: 14px; }
    .pf-panel .pf-cta { margin-left: 0; width: 100%; }
    .pf-panel .pf-cta .btn { width: 100%; justify-content: center; min-height: 44px; }
    .pf-router { padding-top: 56px; padding-bottom: 56px; }
    .quick-routes { flex-direction: column; }
    .quick-routes .btn { width: 100%; justify-content: center; }

    /* next-step CTA module: stack heading above full-width buttons */
    .next-step { grid-template-columns: 1fr; gap: 24px; padding: 32px 22px; }
    .next-step .ns-actions { flex-direction: column; gap: 12px; }
    .next-step .ns-actions .btn { width: 100%; justify-content: center; min-height: 44px; }

    .exhibit { padding-top: 56px; padding-bottom: 56px; }
    .exhibit-head { flex-direction: column; align-items: flex-start; gap: 10px; }

    .hero-footstrip { grid-template-columns: 1fr 1fr; }
    .hero-footstrip > div { padding: 22px 16px 22px 0; border-right: 1px solid var(--rule); }
    .hero-footstrip > div:nth-child(2n) { border-right: 0; padding-right: 0; }
    .hero-footstrip .v { font-size: 38px; }

    .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 56px; }
    .hero-cta-row .btn { width: 100%; justify-content: center; min-height: 44px; }
    .hero-cta-row .reply { margin-left: 0; margin-top: 4px; }

  }

  /* FAQ */
  .pillar-faq { max-width: 80ch; }
  .pillar-faq .q { padding: 22px 0; border-top: 1px solid var(--rule); }
  .pillar-faq .q:first-child { border-top: 0; }
  .pillar-faq .q h4 { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin: 0 0 10px; }
  .pillar-faq .q p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
  .pillar-faq .q p strong { color: var(--ink); }


/* ===== Homepage v2 layer ===== */
/* ══════════════════════════════════════════════════════════════════════════
   HOMEPAGE v2: page-scoped design layer.

   Why everything here is scoped to body.home-v2 rather than :root.
   scripts_build/build.py injects the shared stylesheet <link>s AFTER this
   inline <style> block, so engineering-log.css (which redefines the same
   tokens and the same .h-* ladder at equal specificity) wins the cascade on
   source order. Custom properties set on the body element beat :root by inheritance
   distance, and .home-v2 .x beats .x on specificity. This also keeps the
   change to the homepage: no other page carries the class.
   ══════════════════════════════════════════════════════════════════════════ */
body.home-v2 {
  --serif: "Newsreader", "Times New Roman", Times, Georgia, serif;
  --sans:  "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Permanent dark design surfaces. These are art direction, not "dark mode",
     so they hold their value in both themes; only the paper sections flip. */
  --hv2-ink:      #070d18;
  --hv2-ink-2:    #0d1424;
  --hv2-fg:       #e8edf5;
  --hv2-fg-2:     #cdd6e4;
  --hv2-fg-soft:  #9aa6bd;
  --hv2-fg-mute:  #7c889f;
  --hv2-accent:   #4d9fff;
  --hv2-rule:     rgba(232,237,245,.14);
  --hv2-rule-soft:rgba(232,237,245,.07);
}

/* Newsreader sets considerably wider than Instrument Serif at the same px,
   so the whole display ladder comes down to hold its intended line breaks. */
body.home-v2 .h-mega    { font-size: clamp(46px, 5.6vw, 94px); line-height: 1.0; letter-spacing: -0.02em; }
body.home-v2 .h-display { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.04; }
body.home-v2 .h-section { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.06; }
body.home-v2 .h-card    { font-size: 28px; line-height: 1.14; }

/* Mono labels became a sans; they need weight and tracking to keep reading as
   the same institutional label rather than as body copy. */
body.home-v2 .eyebrow,
body.home-v2 .mono { font-weight: 600; letter-spacing: .18em; }
body.home-v2 .lead { font-size: 17px; line-height: 1.62; }

/* ── Hero v2 ─────────────────────────────────────────────────────────────
   The dark bands are art direction, not "dark mode": they hold their values
   in both themes, and only the paper sections below flip with the toggle. */
body.home-v2 .hv2-hero {
  position: relative;
  min-height: clamp(600px, 78vh, 880px);
  display: flex;
  overflow: hidden;
  background: var(--hv2-ink);
  isolation: isolate;
}
body.home-v2 .hv2-media,
body.home-v2 .hv2-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 60%;
}
body.home-v2 .hv2-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,13,24,.93) 0%, rgba(7,13,24,.80) 40%, rgba(7,13,24,.28) 72%, rgba(7,13,24,.40) 100%),
    linear-gradient(180deg, rgba(7,13,24,.72) 0%, rgba(7,13,24,.06) 28%, rgba(7,13,24,.14) 64%, rgba(7,13,24,.68) 100%);
}
body.home-v2 .hv2-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 64px;
  width: 100%;
}
body.home-v2 .hv2-kicker {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hv2-accent);
}
body.home-v2 .hv2-kicker .dot { opacity: .55; margin: 0 .5em; }

body.home-v2 .hv2-h1 { margin: 0 0 28px; max-width: 1180px; }
body.home-v2 .hv2-h1-main {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: pretty;
}
body.home-v2 .hv2-h1-main em { font-style: italic; color: #9ecbff; }
/* The keyword line. Visually subordinate, semantically inside the h1. */
body.home-v2 .hv2-h1-sub {
  display: block;
  margin-top: 20px;
  max-width: 42ch;
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--hv2-fg-soft);
}
body.home-v2 .hv2-lead {
  margin: 0 0 34px;
  max-width: 62ch;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.62;
  color: var(--hv2-fg-2);
}

body.home-v2 .hv2-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* .btn is authored for the light page; restate it for the dark band. */
body.home-v2 .hv2-cta .btn {
  background: transparent;
  color: var(--hv2-fg);
  border: 1px solid var(--hv2-rule);
  min-height: 46px;
}
body.home-v2 .hv2-cta .btn:hover { background: rgba(232,237,245,.10); color: #fff; }
body.home-v2 .hv2-cta .btn-primary {
  background: var(--hv2-fg); color: var(--hv2-ink); border-color: var(--hv2-fg); font-weight: 600;
}
body.home-v2 .hv2-cta .btn-primary:hover { background: #fff; color: var(--hv2-ink); }
body.home-v2 .hv2-cta .btn-ghost { border-color: transparent; }
body.home-v2 .hv2-cta .btn-ghost:hover { border-color: var(--hv2-rule); }

body.home-v2 .hv2-bench {
  margin: 30px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hv2-fg-soft);
}
body.home-v2 .hv2-bench .k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hv2-accent);
  margin-right: 14px;
}

body.home-v2 .hv2-context { padding-top: 72px; padding-bottom: 8px; }

body.home-v2 .hv2-reg { padding-top: 56px; }
body.home-v2 .hv2-reg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 26px;
}
body.home-v2 .hv2-reg-grid > div { border-left: 1px solid var(--rule); padding-left: 20px; }
body.home-v2 .hv2-reg-h {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
body.home-v2 .hv2-reg-grid p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
body.home-v2 .hv2-reg-note {
  margin: 26px 0 0;
  max-width: 76ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}
/* padding-block only: the shorthand would drop .shell's horizontal
   gutter and let the rail run full-bleed. */
body.home-v2 .hv2-rail { padding-block: 56px 0; }

@media (max-width: 900px) {
  body.home-v2 .hv2-reg-grid { grid-template-columns: 1fr; gap: 22px; }
  body.home-v2 .hv2-h1 { max-width: none; }
  body.home-v2 .hv2-cta .btn { min-height: 48px; }
}

/* ── Motion ──────────────────────────────────────────────────────────────
   Hero only, CSS only, fired on load with no scroll dependency, so a crawler
   renders the finished state. The CTA row and the 52 internal links further
   down are deliberately NOT animated: links that a renderer might sample
   mid-animation are not worth the polish. Default state everywhere is the
   finished state, so if this block never applies nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  body.home-v2 .hv2-media img {
    animation: hv2-drift 24s cubic-bezier(.22,.61,.36,1) both, hv2-fade 1600ms ease-out both;
  }
  @keyframes hv2-drift { from { transform: scale(1.055); } to { transform: none; } }
  @keyframes hv2-fade  { from { opacity: 0; } to { opacity: 1; } }

  body.home-v2 .hv2-kicker,
  body.home-v2 .hv2-h1-main,
  body.home-v2 .hv2-h1-sub,
  body.home-v2 .hv2-lead {
    opacity: 0;
    animation: hv2-rise 900ms cubic-bezier(.16,1,.3,1) both;
    will-change: opacity, transform;
  }
  @keyframes hv2-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  body.home-v2 .hv2-kicker   { animation-delay: 200ms; }
  body.home-v2 .hv2-h1-main  { animation-delay: 300ms; }
  body.home-v2 .hv2-h1-sub   { animation-delay: 440ms; }
  body.home-v2 .hv2-lead     { animation-delay: 560ms; }
}
