/* ============================================================
   11th Hour Ventures — The Startup Provisioning Company
   styles.css · concept build C1

   THE IDEA: read the mark literally. The frame is your company, the
   open corner is the gap, the red tile is what we provision. Every
   large visual on the site is that sentence drawn at a different scale:
   the hero canvas assembles it, the diagnostic sheet finds it, the
   approach drawing builds it, the About clock times it.

   Grammar: an engineered document. Numbered sheets ("03 / 07",
   renumbered by script.js), hairline rules, a title block in the
   footer. Radius is 2px by intent; no gradients; the accent is
   emphasis only. Orbitron for headings, Roboto for everything else.

   Sections of this file:
     0. Tokens (light) + dark overrides + scoped surfaces
     1. Reset / base
     2. Utilities: container, mark, links, labels, chips, tags
     3. Header, nav, jump button, theme toggle, scroll meter
     4. Sheet grammar: sections, bands, sheet heads, statement
     5. Home hero: canvas, display type, HUD, lexicon
     6. Home 01: the diagnostic
     7. Home 02: the approach drawing
     8. Home 03: what we provision
     9. Home 04: track record readouts
    10. Home 05: case files
    11. Home 06: the lab
    12. Forms and contact
    13. Inner pages: hero, on-this-page list
    14. Services: matrix, flow, modes, pipeline
    15. About: blocks, the clock, the system, principles, partners
    16. FAQ
    17. Build routes compared
    18. Case studies
    19. Figures (GIFs and video)
    20. Dialogs and the jump palette
    21. Footer and title block
    22. Reveal-on-scroll
    23. Responsive
    24. Motion preferences, view transitions, print
   ============================================================ */

/* ---------- 0. Tokens ---------- */
:root {
  /* Theme values. The working tokens below point at these, so a scoped
     surface (a dark band, a paper sheet on it) can swap them locally. */
  --t-accent: #8B0000;      /* deep red: emphasis only, never a wash */
  --t-text: #0B0B0B;
  --t-muted: #4a4a4a;
  --t-line: #e2e2e2;
  --t-bg-soft: #f6f6f6;
  --t-logo-ink: #111111;

  --accent: var(--t-accent);
  --structure: #2F2F2F;   /* rules, fills, dark panels */
  --text: var(--t-text);
  --bg: #ffffff;
  --bg-soft: var(--t-bg-soft);
  --surface: #ffffff;
  --line: var(--t-line);
  --muted: var(--t-muted);

  /* Derived / theme-coupled */
  --veil: rgba(255, 255, 255, 0.9);
  --hud-veil: rgba(255, 255, 255, 0.5);   /* the hero's HUD strip: the stream shows through */
  --halo: rgba(255, 255, 255, 0.92);
  --on-structure: #ffffff;
  --on-structure-muted: #d3d3d3;
  --line-on-structure: rgba(255, 255, 255, 0.16);
  --accent-on-structure: #ec8a94;   /* accent text on --structure: clears AA in both themes */
  --sheet: #fafafa;
  --logo-ink: var(--t-logo-ink);
  --logo-red: #e21d24;
  --scrim: rgba(11, 11, 11, 0.55);
  --grid: rgba(11, 11, 11, 0.055);  /* drafting grid hairlines */
  --paper: rgba(255, 255, 255, 0.66);     /* Home sections: sheets laid over the live lattice */
  --paper-alt: rgba(246, 246, 246, 0.72);
  --structure-veil: rgba(47, 47, 47, 0.95);

  --font-head: "Orbitron", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;

  --maxw: 1180px;
  --gap: 24px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

:root[data-theme="dark"] {
  --t-accent: #e0606e;      /* brightened so small accent text clears WCAG AA */
  --t-text: #eef0f3;
  --t-muted: #aab0bb;
  --t-line: #2a2e36;
  --t-bg-soft: #15171c;
  --t-logo-ink: #eef0f3;

  --structure: #2a2e36;
  --bg: #101216;
  --surface: #181b21;

  --veil: rgba(16, 18, 22, 0.9);
  --hud-veil: rgba(16, 18, 22, 0.5);
  --halo: rgba(8, 9, 11, 0.8);
  --on-structure: #eef0f3;
  --on-structure-muted: #b9bec8;
  --line-on-structure: rgba(255, 255, 255, 0.12);
  --scrim: rgba(0, 0, 0, 0.7);
  --grid: rgba(238, 240, 243, 0.045);
  --paper: rgba(16, 18, 22, 0.68);
  --paper-alt: rgba(21, 23, 28, 0.74);
  --structure-veil: rgba(42, 46, 54, 0.95);
  color-scheme: dark;
}

/* A dark band (--structure) in either theme: the working tokens flip. */
.section--dark, .site-footer {
  --text: var(--on-structure);
  --muted: var(--on-structure-muted);
  --line: var(--line-on-structure);
  --logo-ink: var(--on-structure);
  --accent: var(--accent-on-structure);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --grid: rgba(255, 255, 255, 0.05);
  --halo: transparent;
  background: var(--structure);
  color: var(--text);
}
/* Paper laid on a dark band: back to the theme's own values. */
.paper {
  --text: var(--t-text);
  --muted: var(--t-muted);
  --line: var(--t-line);
  --logo-ink: var(--t-logo-ink);
  --accent: var(--t-accent);
  --bg-soft: var(--t-bg-soft);
  background: var(--surface);
  color: var(--text);
}

/* ---------- 1. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--font-head); }
[hidden] { display: none !important; }
::selection { background: var(--text); color: var(--bg); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 11px 18px; border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- 2. Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* The open-corner mark in CSS: red tile top-left, a gap, then the outline
   traced by a bordered pseudo-element with its corner clipped away. */
.mark {
  --mark-size: 14px;
  --mark-stroke: 2px;
  --mark-tile: 36%;
  --mark-cut: 52%;
  position: relative;
  display: inline-block;
  width: var(--mark-size);
  height: var(--mark-size);
  vertical-align: middle;
  flex: 0 0 auto;
}
.mark::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: var(--mark-tile); height: var(--mark-tile);
  background: var(--logo-red);
}
.mark::after {
  content: ""; position: absolute; inset: 0;
  border: var(--mark-stroke) solid currentColor;
  clip-path: polygon(var(--mark-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--mark-cut), var(--mark-cut) var(--mark-cut));
}

/* Small engineering labels (Orbitron, spaced) */
.label, .eyebrow, .pv-label, .hero-entry-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text); }
.eyebrow .mark { color: var(--text); }
.eyebrow-sep { color: var(--muted); }

/* Text links with a travelling arrow. :hover and :focus-visible stay separate rules. */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); cursor: pointer; background: none; border: 0; padding: 0;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow:hover { gap: 14px; }
.link-arrow:focus-visible { gap: 14px; }
.link-arrow[disabled] { opacity: 0.4; cursor: not-allowed; gap: 8px; }

.text-link { color: var(--text); border-bottom: 1px solid var(--accent); transition: color 0.18s var(--ease), border-color 0.18s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:focus-visible { color: var(--accent); }

/* Flow chips: one inline row of steps (Screen › Place) */
.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flow-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.flow-chips li span { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.flow-chips li:not(:last-child)::after { content: "\203A"; color: var(--accent); font-weight: 700; font-size: 0.9rem; }

/* Tags (status) */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted);
}
.tag::before { content: ""; width: 6px; height: 6px; border: 1.5px solid currentColor; }
.tag--live { color: var(--text); border-color: var(--text); }
.tag--live::before { background: var(--logo-red); border-color: var(--logo-red); animation: live 2.4s steps(2, jump-none) infinite; }
@keyframes live { 50% { opacity: 0.25; } }

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  view-transition-name: site-header;
}
/* The frosted veil sits on a pseudo-element: a backdrop-filter on the header
   itself would trap the fixed mobile menu inside the header's box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--veil);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 40px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* The current section, like the title strip of a drawing, marked with the red tile. */
.nav-sheet {
  display: flex; align-items: center; gap: 10px;
  padding-left: 18px; border-left: 1px solid var(--line);
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; min-width: 0; overflow: hidden;
  flex: 0 1 auto; max-width: 250px;
}
.nav-sheet::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--logo-red); }
.nav-sheet-label { overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s var(--ease); }
.nav-sheet.is-swapping .nav-sheet-label { opacity: 0; }

.nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.logo-btn) {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.nav-links a:not(.logo-btn):hover { color: var(--text); }
.nav-links a:not(.logo-btn):focus-visible { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--text);
}
.nav-links-cta { display: none; }

.nav-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-tools .logo-btn, .nav-links a { white-space: nowrap; }
.nav { flex: 0 0 auto; }
.jump {
  display: none; align-items: center; gap: 8px; white-space: nowrap; flex: 0 0 auto;
  height: 40px; padding: 0 10px 0 9px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer;
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.js .jump { display: inline-flex; }
.jump svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.jump-kbd { font-size: 0.6rem; padding: 2px 5px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.jump:hover { color: var(--text); border-color: var(--text); }
.jump:focus-visible { color: var(--text); border-color: var(--text); }

.theme-toggle, .nav-toggle {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--text);
  transition: border-color 0.18s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .ico-moon { fill: currentColor; stroke: none; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.nav-toggle { display: none; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 0.25s var(--ease); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span + span { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { transform: rotate(-45deg); }

/* Scroll meter: a hairline under the header with the red tile riding it. */
.scroll-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 0.3s var(--ease); }
.site-header.is-scrolled .scroll-meter { opacity: 1; }
.scroll-meter-tile {
  position: absolute; left: 0; top: -3px; width: 7px; height: 7px; background: var(--logo-red);
  transform: translateX(calc(var(--progress, 0) * (100vw - 7px)));
  will-change: transform;
}

/* ---------- 4. Sheet grammar ---------- */
main { display: block; }
.section { position: relative; padding: clamp(84px, 11vw, 148px) 0; overflow-x: clip; }  /* clip, not hidden: sticky children keep working */
.section--soft { background: var(--bg-soft); }
.section--grid {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sheet-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.sheet-index { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.sheet-index .mark { color: var(--text); }
.sheet-num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; color: var(--text); white-space: nowrap;
}
.sheet-num small { font-size: 0.86em; margin-left: 0.5em; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; }
.sheet-rule { flex: 1 1 auto; height: 1px; background: var(--line); min-width: 40px; }
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.section-sub { margin-top: 22px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); line-height: 1.7; color: var(--muted); max-width: 66ch; }
.section-sub + .section-sub { margin-top: 14px; }
.sheet-head--wide { max-width: none; }

/* A thesis line set large, hung on the mark */
.statement {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 2.4vw, 28px); align-items: start;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.7rem); line-height: 1.14; letter-spacing: 0.01em;
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.statement p + .statement-sub { margin-top: 18px; }
.statement-sub {
  max-width: 62ch; font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.65; color: var(--muted); text-wrap: pretty;
}
.statement .mark { --mark-size: clamp(22px, 3vw, 36px); --mark-stroke: 3px; color: var(--text); margin-top: 0.14em; }

.over-grid { text-shadow: 0 0 10px var(--halo), 0 0 10px var(--halo); }

/* ---------- 5. Home hero ---------- */
/* The field is fixed behind the whole Home page. Sections sit on translucent
   paper above it, so the lattice reads as texture behind the copy. */
.hero-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-canvas { position: absolute; top: 0; left: 0; display: block; }
.home main, .home .site-footer { position: relative; z-index: 1; }
.home .section { background: var(--paper); }
.home .section--soft { background: var(--paper-alt); }
.home .section--dark { background: var(--structure-veil); }

/* The hero is centred. Its foot is the seam with 01: the HUD strip runs along it
   and "Talk to us" sits on it, half in each section. The hero stacks above 01 so
   the button's lower half stays on top. */
.hero--home {
  --hud-h: 76px;
  position: relative; z-index: 2;
  min-height: max(640px, calc(100svh - 48px));   /* the seam, and all of Talk to us, show in the first view */
  padding: calc(var(--nav-h) + clamp(24px, 5vh, 56px)) 0 calc(var(--hud-h) + clamp(28px, 4vh, 48px));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-stack {
  position: relative; z-index: 4;   /* above the HUD strip, so the open definition covers it */
  display: grid; justify-items: center; gap: clamp(22px, 3.6vh, 36px);
  text-align: center;
}
.hero-copy { display: grid; justify-items: center; width: 100%; container-type: inline-size; }
.hero-copy > *, .hero-entry p, .hero-cta-lead { text-shadow: 0 0 12px var(--halo), 0 0 12px var(--halo); }
.hero-eyebrow { justify-content: center; margin-bottom: clamp(16px, 2.6vh, 24px); }

/* The company line is the headline. Each line is sized to its words, so the
   field can work in the open ground either side of it. */
.display {
  font-size: clamp(2.2rem, 7.4cqi, 5.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  margin: 0;
}
.display-line { display: block; width: fit-content; margin: 0 auto; }
/* The full stop is the red tile: the sentence closes the way the mark does. */
.display-stop { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.07em; background: var(--logo-red); vertical-align: baseline; }
.hero-tagline {
  margin-top: clamp(18px, 2.8vh, 28px);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem); letter-spacing: 0.08em; line-height: 1.2;
}
.lead { font-size: clamp(1.04rem, 1.3vw, 1.18rem); line-height: 1.66; color: var(--text); max-width: 52ch; }
.hero-copy .lead { max-width: 60ch; margin-top: clamp(12px, 2vh, 18px); }

.hero-entry { display: grid; justify-items: center; gap: 12px; text-align: center; }
.hero-entry-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-entry .logo-btn { background: var(--bg); border-radius: 12px; }
.hero-cta-lead, .hero-entry-label { font-family: var(--font-head); font-weight: 600; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Talk to us, on the seam. Its label sits just above it, inside the HUD strip. */
.hero-cta { position: absolute; left: 50%; bottom: 0; z-index: 3; transform: translate(-50%, 50%); }
.hero-cta-lead { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; }
#heroCta { background: var(--bg); border-radius: 12px; }

/* The definition: a drop-down. The toggle reads as a dictionary cross-reference
   under the headline; the plate drops over the copy and prints left to right. */
.lex { position: relative; z-index: 4; width: fit-content; margin: clamp(16px, 2.4vh, 24px) auto 0; }
.lex-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  cursor: pointer; list-style: none; user-select: none;
  transition: border-color 0.18s var(--ease);
}
.lex-toggle::-webkit-details-marker { display: none; }
.lex-toggle::marker { content: ""; }
.lex-toggle:hover, .lex[open] .lex-toggle { border-color: var(--text); }
.lex-toggle-kicker { font-family: var(--font-head); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-right: 12px; border-right: 1px solid var(--line); }
.lex-toggle-word { font-family: var(--font-head); font-weight: 800; font-size: 0.98rem; letter-spacing: 0.02em; color: var(--text); }
.lex-toggle-word i { font-style: normal; color: var(--logo-red); }
.lex-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--ease); }
.lex[open] .lex-chev { transform: translateY(2px) rotate(-135deg); }
/* Desktop: the plate opens to the right of the copy (script.js places it). */
.lex--fly .lex-plate { translate: none; }
.lex--fly .lex-word { font-size: clamp(1.5rem, 1.9vw, 2rem); }
.lex--fly[open] .lex-plate { animation-name: lex-fly; animation-duration: 0.5s; }
@keyframes lex-fly { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.lex-plate {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(640px, calc(100vw - 32px));
  isolation: isolate; text-align: left;
  background: var(--surface);
  padding: clamp(24px, 2.2vw, 30px) clamp(20px, 2.4vw, 32px) clamp(18px, 1.8vw, 24px);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.35);
}
/* The plate wears the mark: red tile, a gap, then the frame. */
.lex-plate::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; background: var(--logo-red); z-index: 2; }
.lex-plate::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--text); pointer-events: none;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px, 30px 30px);
}
.lex-word {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-head); font-weight: 900; text-transform: none;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: 0.01em; color: var(--text);
}
.lex-word dfn { font-style: normal; }
.lex-dot { color: var(--logo-red); }
.lex-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 1.04rem; color: var(--muted); }
.lex-pos { font-style: italic; padding-left: 10px; border-left: 1px solid var(--line); }
.lex-senses { display: grid; gap: 12px; margin-top: clamp(14px, 1.6vw, 18px); padding-top: clamp(14px, 1.6vw, 18px); border-top: 1px dashed var(--line); }
.lex-senses li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.lex-n {
  width: 22px; height: 22px; display: grid; place-items: center; margin-top: 2px;
  border: 1.5px solid var(--text); font-family: var(--font-head); font-size: 0.66rem; font-weight: 700;
}
.lex-ours .lex-n { background: var(--logo-red); border-color: var(--logo-red); color: var(--on-structure); }
.lex-def { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.lex-ours .lex-def { font-size: clamp(1.04rem, 1.2vw, 1.14rem); color: var(--text); }
.lex-def em { font-style: italic; color: var(--accent); }
.lex-usage { margin-top: clamp(14px, 1.6vw, 18px); padding-left: 14px; border-left: 2px solid var(--logo-red); font-style: italic; font-size: 1.02rem; }
/* The Blueprint and Audit forms on desktop: the plate's look, in the plate's place. */
.hero-panel {
  position: absolute; z-index: 5; text-align: left; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  padding: clamp(26px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) clamp(20px, 2vw, 26px);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.35);
}
.hero-panel[hidden] { display: none; }
.hero-panel::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; background: var(--logo-red); z-index: 2; }
.hero-panel::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--text); pointer-events: none;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px, 30px 30px);
}
.hero-panel .modal-close { top: 14px; right: 14px; }
.hero-panel .modal-lead { margin: 10px 0 18px; font-size: 0.96rem; line-height: 1.6; }
.hero-panel .form { grid-template-columns: 1fr; gap: 14px; }
.hero-panel.is-in { animation: lex-fly 0.5s var(--ease) both; }

/* Opening prints the entry: a red line crosses the plate and the words follow it. */
.lex-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--logo-red); opacity: 0; z-index: 3; pointer-events: none; }
.lex[open] .lex-plate { animation: lex-drop 0.28s var(--ease) both; }
.lex[open] .lex-body { animation: lex-print 0.95s 0.12s cubic-bezier(0.5, 0, 0.3, 1) both; }
.lex[open] .lex-scan { animation: lex-scan 0.95s 0.12s cubic-bezier(0.5, 0, 0.3, 1) both; }
@keyframes lex-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes lex-print { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px 0 -4px 0); } }
@keyframes lex-scan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Desktop: opening the definition slides the copy and its buttons to the left
   (script.js sets --lex-shift) and the plate opens in the space on the right. */
@media (min-width: 1200px) {
  .hero-copy, .hero-entry { transition: transform 0.5s var(--ease); }
  .hero--home.lex-open .hero-copy, .hero--home.lex-open .hero-entry { transform: translateX(var(--lex-shift, 0px)); }
  .lex-chev { transform: translateX(-2px) rotate(-45deg); }
  .lex[open] .lex-chev { transform: translateX(2px) rotate(135deg); }
}

/* HUD: what the field is doing, in words, along the foot of the hero. It runs
   edge to edge so both ends clear the button in the middle. */
.hero-hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: var(--hud-h); border-top: 1px solid var(--line);
  background: var(--hud-veil);
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.hero-hud .hud-inner > * { text-shadow: 0 0 10px var(--halo), 0 0 10px var(--halo); }
.hud-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(16px, 3vw, 40px); }
.hud-steps { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; max-width: calc(50% - 150px); overflow: hidden; }
.hud-steps li { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; transition: color 0.3s var(--ease); --sq: transparent; --sq-line: var(--muted); }
.hud-steps li + li::before { content: ""; width: clamp(10px, 1.6vw, 28px); height: 1px; background: var(--line); margin: 0 12px 0 3px; }
.hud-steps li.is-done { color: var(--text); --sq: var(--text); --sq-line: var(--text); }
.hud-steps li.is-now { color: var(--text); --sq: var(--logo-red); --sq-line: var(--logo-red); }
.hud-sq { width: 7px; height: 7px; border: 1.5px solid var(--sq-line); background: var(--sq); flex: 0 0 auto; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.hud-steps li.is-now .hud-sq { animation: live 1.2s steps(2, jump-none) infinite; }
.hud-status { display: inline-flex; align-items: center; gap: 12px; color: var(--text); white-space: nowrap; max-width: calc(50% - 150px); }
.hud-pct { padding-left: 12px; border-left: 1px solid var(--line); min-width: 5.2ch; text-align: right; }
.hud-scroll { display: inline-flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); }
/* A slot with the red tile travelling down it: unmistakably "scroll". */
.hud-scroll-track { position: relative; width: 11px; height: 30px; border: 1px solid var(--muted); }
.hud-scroll-track i { position: absolute; left: 2px; top: 2px; width: 5px; height: 5px; background: var(--logo-red); animation: slot 1.9s var(--ease) infinite; }
@keyframes slot { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 72% { transform: translateY(19px); opacity: 1; } 100% { transform: translateY(19px); opacity: 0; } }

/* ---------- 6. Home 01: the diagnostic ---------- */
.dx {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.dx-controls { display: grid; gap: 34px; }
.dx-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.dx-legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.dx-q-num { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--accent); padding: 4px 7px; border: 1px solid var(--line); }
.dx-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dx-options--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dx-opt--wide { grid-column: 1 / -1; }   /* SME: not a funding stage, so it spans the row */
.dx-opt { position: relative; display: block; cursor: pointer; }
.dx-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dx-opt-box {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.dx-options--compact .dx-opt-box { padding: 14px 16px 14px 18px; }
/* Selected: the box takes the open-corner frame and the red tile. */
.dx-opt-box::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px;
  background: var(--logo-red); transform: scale(0); transform-origin: top left;
  transition: transform 0.25s var(--ease-out);
}
.dx-opt-box::after {
  content: ""; position: absolute; inset: -1px; border: 2px solid var(--text); border-radius: var(--radius);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px, 16px 16px);
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.dx-opt-label { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.dx-opt-hint { font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.dx-opt:hover .dx-opt-box { border-color: var(--muted); }
.dx-opt input:focus-visible + .dx-opt-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.dx-opt input:checked + .dx-opt-box { border-color: transparent; background: transparent; }
.dx-opt input:checked + .dx-opt-box::before { transform: scale(1); }
.dx-opt input:checked + .dx-opt-box::after { opacity: 1; }

/* The sheet: paper on the dark band, with a second sheet behind it. */
.dx-sheet {
  position: relative;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  isolation: isolate;
}
.dx-sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(10px, 10px); border: 1px solid var(--line-on-structure); border-radius: var(--radius);
}
.dx-sheet-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.dx-sheet-head .mark { color: var(--text); }
.dx-sheet-title { font-size: 0.8rem; letter-spacing: 0.2em; }
.dx-sheet-meta {
  margin-left: auto; display: flex; gap: 14px;
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); white-space: nowrap;
}
.dx-print { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--logo-red); opacity: 0; pointer-events: none; }
.dx-sheet.is-printing .dx-print { animation: print 0.7s var(--ease) both; }
@keyframes print { 0% { opacity: 1; top: 64px; } 90% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 2px); } }
.dx-rows { display: grid; }
.dx-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.dx-row dt { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.dx-row dd { font-size: 0.96rem; line-height: 1.6; color: var(--text); min-height: 1.6em; }
.dx-row dd ul { display: grid; gap: 6px; }
.dx-row dd li { position: relative; padding-left: 18px; }
.dx-row dd li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border: 1.5px solid var(--accent); }
.dx-stage-val, .dx-rx-val { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.dx-stage-val { font-size: 1rem; }
.dx-row--rx dd { font-size: 0.94rem; }
.dx-rx-val { display: block; font-size: clamp(0.98rem, 1.4vw, 1.12rem); line-height: 1.35; margin-bottom: 6px; }
.dx-rx-val a { border-bottom: 2px solid var(--logo-red); }
.dx-rx-val a:hover { color: var(--accent); }
.dx-rx-note { color: var(--muted); display: block; }
.dx-empty {
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); opacity: 0.75;
  display: inline-flex; align-items: center; gap: 10px;
}
.dx-empty::after { content: ""; width: 7px; height: 12px; background: var(--muted); animation: caret 1.1s steps(2, jump-none) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dx-sheet-foot { display: grid; gap: 16px; margin-top: 22px; }
.dx-next:empty { display: none; }
.dx-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 18px; border-top: 2px solid var(--text); }
.dx-next-why { font-size: 0.9rem; color: var(--muted); flex: 1 1 220px; }
.dx-attach { justify-self: start; }
.dx-note { font-size: 0.8rem; color: var(--muted); line-height: 1.55; padding-top: 14px; border-top: 1px solid var(--line); }
.dx-fill { animation: fill 0.5s var(--ease) both; }
@keyframes fill { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* The library: hidden with JS (the sheet presents it), cards without. */
.js .dx-library { display: none; }
.no-js .dx { display: none; }
.dx-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dx-entry { padding: 22px; border: 1px solid var(--line); background: var(--bg-soft); display: grid; gap: 12px; align-content: start; }
.dx-entry-title { font-size: 0.9rem; letter-spacing: 0.08em; }
.dx-entry-text { color: var(--muted); font-size: 0.92rem; }
.dx-entry-needs { display: grid; gap: 4px; font-size: 0.9rem; }
.dx-entry-rx { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- 7. Home 02: the approach drawing ---------- */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.approach-visual { position: relative; }
.approach-fig { position: sticky; top: calc(var(--nav-h) + 7vh); margin: 0; }
.ad { width: 100%; height: auto; overflow: visible; }
.approach-cap {
  display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.approach-cap-step { color: var(--text); font-variant-numeric: tabular-nums; }
.approach-cap-name { margin-left: auto; color: var(--accent); }

.approach-steps { display: grid; }
.approach-step {
  min-height: 64vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 24px 0;
  opacity: 0.22;
  transition: opacity 0.5s var(--ease);
}
.approach-step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 12vh; }
.approach-step:last-child { min-height: 56vh; }
.approach-step.is-active { opacity: 1; }
.approach-num { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent); }
.approach-name { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 900; line-height: 0.95; }
.approach-text { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; max-width: 26ch; color: var(--text); }

/* Drawing parts. State comes from data-step on the figure. */
.ad-grid path { fill: none; stroke: var(--grid); stroke-width: 1; transition: opacity 0.8s var(--ease); }
.ad text { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--muted); }
.ad-asis { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 9; transition: opacity 0.6s var(--ease); }
.ad-scan { opacity: 0; transition: opacity 0.4s var(--ease); }
.ad-scan line { stroke: var(--logo-red); stroke-width: 1.5; }
.ad-gapmark rect { fill: none; stroke: var(--logo-red); stroke-width: 2; stroke-dasharray: 8 6; }
.ad-gapmark .ad-leader { fill: none; stroke: var(--logo-red); stroke-width: 1.5; }
.ad-gapmark text { fill: var(--accent); font-size: 12px; }
.ad-gapmark { opacity: 0; transition: opacity 0.5s var(--ease) 0.7s; }
.ad-reticle { transform: translate(300px, 330px); opacity: 0; transition: transform 1.1s var(--ease-out), opacity 0.5s var(--ease); }
.ad-reticle circle, .ad-reticle path { fill: none; stroke: var(--text); stroke-width: 1.5; }
.ad-dims { opacity: 0; transition: opacity 0.6s var(--ease); }
.ad-dims .ad-ext, .ad-dims .ad-dim { fill: none; stroke: var(--muted); stroke-width: 1; }
.ad-dims .ad-tick { fill: none; stroke: var(--text); stroke-width: 1.5; }
.ad-dims .ad-dim { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.ad-plan { fill: none; stroke: var(--logo-red); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0; transition: opacity 0.5s var(--ease); }
.ad-frame { fill: none; stroke: var(--logo-ink); stroke-width: 24; stroke-linecap: butt; stroke-linejoin: miter; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.ad-tile { fill: var(--logo-red); transform-box: fill-box; transform-origin: 0 0; transform: scale(0); transition: transform 0.6s var(--ease-out) 0.9s; }
.ad-owned { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease) 0.2s, transform 0.5s var(--ease) 0.2s; }
.ad-owned path { fill: none; stroke: var(--accent); stroke-width: 3; }
.ad-owned text { fill: var(--text); font-size: 13px; }

[data-step="1"] .ad-scan { opacity: 1; }
[data-step="1"] .ad-scan line { animation: ad-scan 2.6s var(--ease) infinite; }
@keyframes ad-scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(288px); opacity: 0; } }
[data-step="1"] .ad-reticle { transform: translate(154px, 154px); opacity: 1; }
[data-step="1"] .ad-gapmark, [data-step="2"] .ad-gapmark { opacity: 1; }
[data-step="2"] .ad-gapmark { transition-delay: 0s; }
[data-step="2"] .ad-dims, [data-step="3"] .ad-dims { opacity: 1; }
[data-step="2"] .ad-dims .ad-dim, [data-step="3"] .ad-dims .ad-dim { stroke-dashoffset: 0; }
[data-step="3"] .ad-dims { opacity: 0.45; }
[data-step="2"] .ad-plan { opacity: 1; }
[data-step="3"] .ad-asis, [data-step="4"] .ad-asis { opacity: 0; }
[data-step="3"] .ad-frame, [data-step="4"] .ad-frame { stroke-dashoffset: 0; }
[data-step="3"] .ad-tile, [data-step="4"] .ad-tile { transform: scale(1); }
[data-step="4"] .ad-owned { opacity: 1; transform: none; }
[data-step="4"] .ad-grid path { opacity: 0.5; }

/* ---------- 8. Home 03: what we provision ---------- */
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.pv {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3.2vw, 44px);
}
.pv::before { content: ""; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px; background: var(--logo-red); }
.pv-head { display: grid; gap: 12px; margin-bottom: 18px; }
.pv-code { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; color: var(--muted); }
.pv-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.1; }
.pv-title a { background-image: linear-gradient(var(--text), var(--text)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s var(--ease); }
.pv-title a:hover { background-size: 100% 2px; }
.pv-title a:focus-visible { background-size: 100% 2px; }
.pv-text { color: var(--muted); }
.pv-roles { display: grid; margin-top: 22px; border-top: 1px solid var(--line); }
.pv-role { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pv-role dt { font-family: var(--font-head); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.08em; color: var(--accent); }
.pv-role dd { font-size: 0.95rem; }
.pv-label { display: flex; align-items: center; gap: 12px; margin: 30px 0 4px; }
.pv-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pv-ways { display: grid; }
.pv-way { display: grid; gap: 10px; justify-items: start; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.pv-way:last-child { border-bottom: 0; padding-bottom: 0; }
.pv-way-title { font-size: 0.92rem; letter-spacing: 0.08em; }
.pv-way p { font-size: 0.95rem; color: var(--muted); }
.pv-way .logo-btn { margin-top: 4px; }
.pv-foot { margin-top: auto; padding-top: 22px; }
.pv-more { margin-top: 32px; color: var(--muted); max-width: 70ch; }

/* ---------- 9. Home 04: proof (unit charts) ---------- */
/* Every figure is also drawn: one square per unit, filled when seen. */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.proof-head { display: flex; align-items: center; gap: 12px; font-size: 0.74rem; letter-spacing: 0.16em; margin-bottom: 6px; }
.proof-head .mark { color: var(--text); }
.proof-list { display: grid; }
.proof-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num label" "units units";
  align-items: end; column-gap: 18px; row-gap: 14px;
  padding: 22px 0 24px; border-top: 1px solid var(--line);
}
.proof-num {
  grid-area: num; font-family: var(--font-head); font-weight: 800; line-height: 0.9; color: var(--text);
  font-size: clamp(2rem, 3.6vw, 3rem); min-width: 2.6ch; font-variant-numeric: tabular-nums;
}
.proof-item--lead .proof-num { font-size: clamp(3.2rem, 6.6vw, 5.8rem); }
.proof-label { grid-area: label; color: var(--muted); padding-bottom: 0.3em; }
.units { grid-area: units; display: flex; flex-wrap: wrap; gap: 4px; --sz: 12px; }
.units i {
  width: var(--sz); height: var(--sz); border: 1.5px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  transition-delay: calc(var(--i, 0) * var(--step, 30ms));
}
.units.is-on i { background: var(--text); border-color: var(--text); }
.units i.more { border-style: dashed; border-color: var(--muted); background: transparent !important; position: relative; }
.units i.more::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; line-height: 1; color: var(--muted); }
.units i.off { border-color: var(--logo-red); }
.units.is-on i.off { background: transparent; border-color: var(--logo-red); }
.units--dense { gap: 2px; --sz: 7px; }
.units--dense i { border-width: 1px; }
.units--pct { display: grid; grid-template-columns: repeat(20, var(--sz)); gap: 3px; --sz: 9px; }
.units--pct i { border-width: 1px; }
/* Point at a figure: its squares light red. */
.proof-item:hover .units.is-on i:not(.more):not(.off) { background: var(--logo-red); border-color: var(--logo-red); transition-delay: 0s; }
.proof-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.proof-note .mark { --mark-size: 11px; color: var(--muted); }

/* ---------- 10. Home 05: the case-file viewer ---------- */
.cv { border-top: 2px solid var(--text); --cv-dur: 11s; }
.cv-bar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.cv-tabs { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cv-tab {
  position: relative; display: grid; gap: 6px; align-content: start; text-align: left;
  padding: 18px 20px 22px; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.cv-tab:first-child { padding-left: 0; }
.cv-tab-n { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.cv-tab-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(0.92rem, 1.7vw, 1.3rem); letter-spacing: 0.04em; text-transform: uppercase; }
/* Anonymised cases: the product category sits under the engagement name. */
.cv-tab-cat { font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.cv-tab:hover { color: var(--text); }
.cv-tab:focus-visible { color: var(--text); outline-offset: -2px; }
.cv-tab[aria-selected="true"] { color: var(--text); }
.cv-tab[aria-selected="true"] .cv-tab-n { color: var(--accent); }
.cv-tab-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; }
.cv-tab-prog i { display: block; width: 100%; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.cv-tab[aria-selected="true"] .cv-tab-prog i { transform: scaleX(1); }
.cv.is-auto .cv-tab[aria-selected="true"] .cv-tab-prog i { animation: cv-prog var(--cv-dur) linear both; }
.cv.is-auto.is-paused .cv-tab[aria-selected="true"] .cv-tab-prog i { animation-play-state: paused; }
@keyframes cv-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cv-play {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 0 20px;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.cv-play:hover { color: var(--text); }
.cv-play-ico { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cv-play[aria-pressed="true"] .cv-play-ico { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.cv-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-top: clamp(28px, 4vw, 48px);
}
.cv-panel.is-entering { animation: cv-in 0.6s var(--ease-out) both; }
@keyframes cv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.no-js .cv-bar { display: none; }
.no-js .cv-panel + .cv-panel { margin-top: 40px; border-top: 1px solid var(--line); }
.cv-cat { font-family: var(--font-head); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.cv-client { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 900; line-height: 0.98; }
.cv-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 24px; }
.cv-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 0.9; }
.cv-num--word { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cv-num-label { font-family: var(--font-head); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); max-width: 18ch; }
.cv-story { display: grid; gap: 14px; position: relative; padding-left: 26px; margin-bottom: 26px; }
.cv-story::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.cv-story li { position: relative; color: var(--muted); transition: opacity 0.5s var(--ease), color 0.5s var(--ease); }
.cv-story li::before { content: ""; position: absolute; left: -26px; top: 0.5em; width: 9px; height: 9px; background: var(--bg); border: 1.5px solid var(--muted); transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
[data-stage="1"] .cv-story li:nth-child(n+2), [data-stage="2"] .cv-story li:nth-child(n+3) { opacity: 0.28; }
[data-stage="1"] .cv-story li:nth-child(1), [data-stage="2"] .cv-story li:nth-child(2), [data-stage="3"] .cv-story li:last-child { color: var(--text); }
[data-stage="1"] .cv-story li:nth-child(1)::before, [data-stage="2"] .cv-story li:nth-child(2)::before, [data-stage="3"] .cv-story li:last-child::before { background: var(--logo-red); border-color: var(--logo-red); }

/* Instruments: each case drawn as a small live readout. State from data-stage. */
.inst { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px 14px; }
.inst::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--logo-red); }
.inst-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px 16px; border-bottom: 1px solid var(--line); }
.inst-title, .inst-cols, .inst-count, .inst-sub { font-family: var(--font-head); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.inst-cols { display: inline-flex; gap: 6px; }
.inst-cols span + span::before { content: "\2192\00a0"; color: var(--accent); }
.inst-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.inst-row:last-child { border-bottom: 0; }
.inst-k { font-size: 0.9rem; color: var(--muted); }
/* Hosting-cost meter: 100 shrinks to 8 */
.inst-row--meter { grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; }
.meter-bar { position: relative; height: 16px; border: 1.5px solid var(--text); }
.meter-fill { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(100% - 4px); background: var(--text); transition: width 1.8s var(--ease-out); }
[data-stage="3"] .meter-fill { width: calc(8% - 4px); }
.meter-cut {
  position: absolute; top: 0; bottom: 0; left: 8%; right: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent);
  opacity: 0; transition: opacity 0.5s var(--ease) 1.2s;
}
[data-stage="3"] .meter-cut { opacity: 1; }
.inst-read { display: grid; justify-items: end; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; min-width: 4ch; }
.inst-read > span { grid-area: 1 / 1; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.inst-read small { font-size: 0.5rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.read-b { opacity: 0; transform: translateY(6px); color: var(--accent); }
[data-stage="3"] .read-a { opacity: 0; transform: translateY(-6px); }
[data-stage="3"] .read-b { opacity: 1; transform: none; }
/* Split-flap values: before flips over to after */
.flap { position: relative; display: inline-grid; min-width: 10ch; height: 28px; perspective: 420px; font-family: var(--font-head); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; }
.flap-a, .flap-b {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 0 10px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.55s var(--ease), opacity 0.3s var(--ease);
}
.flap-b { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotateX(-90deg); opacity: 0; }
[data-stage="2"] [data-at="2"] .flap-a, [data-stage="3"] [data-at="2"] .flap-a, [data-stage="3"] [data-at="3"] .flap-a { transform: rotateX(90deg); opacity: 0; }
[data-stage="2"] [data-at="2"] .flap-b, [data-stage="3"] [data-at="2"] .flap-b, [data-stage="3"] [data-at="3"] .flap-b { transform: none; opacity: 1; }
.inst-row:nth-child(4) .flap > span { transition-delay: 0.12s; }
.inst-row:nth-child(5) .flap > span { transition-delay: 0.24s; }
.inst-row:nth-child(6) .flap > span { transition-delay: 0.36s; }
/* Case 02: eight open vulnerabilities close one by one */
.inst-count > span { transition: opacity 0.3s var(--ease); }
.vc-closed { display: none; color: var(--text); }
[data-stage="2"] .vc-open, [data-stage="3"] .vc-open { display: none; }
[data-stage="2"] .vc-closed, [data-stage="3"] .vc-closed { display: inline; }
.vc-open { color: var(--accent); }
.vulns { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; padding: 14px 0 12px; border-bottom: 1px dashed var(--line); }
.vulns li { display: grid; gap: 6px; justify-items: center; }
.vulns i { position: relative; width: 100%; max-width: 34px; aspect-ratio: 1; border: 2px solid var(--logo-red); transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.vulns i::after { content: ""; position: absolute; left: 34%; top: 16%; width: 28%; height: 48%; border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(45deg) scale(0); transition: transform 0.3s var(--ease-out); }
.vulns span { font-family: var(--font-head); font-size: 0.5rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
[data-stage="1"] .vulns i { animation: live 1.1s steps(2, jump-none) infinite; }
[data-stage="2"] .vulns i, [data-stage="3"] .vulns i { background: var(--text); border-color: var(--text); transition-delay: calc(var(--i, 0) * 160ms); }
[data-stage="2"] .vulns i::after, [data-stage="3"] .vulns i::after { transform: rotate(45deg) scale(1); transition-delay: calc(var(--i, 0) * 160ms + 120ms); }
.vulns li:nth-child(2) i { --i: 1; } .vulns li:nth-child(3) i { --i: 2; } .vulns li:nth-child(4) i { --i: 3; }
.vulns li:nth-child(5) i { --i: 4; } .vulns li:nth-child(6) i { --i: 5; } .vulns li:nth-child(7) i { --i: 6; } .vulns li:nth-child(8) i { --i: 7; }
/* Case 03: a running timeline with a live "now" */
.tl { padding: 16px 0 6px; }
.tl-track { position: relative; display: block; height: 10px; border-bottom: 1.5px solid var(--text); overflow: hidden; }
.tl-ticks { position: absolute; top: 0; bottom: 0; left: 0; right: -24px; background-image: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 12px); opacity: 0.6; animation: ticks 1.6s linear infinite; }
@keyframes ticks { to { transform: translateX(-12px); } }
.tl-nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -7px; }
.tl-nodes li { display: grid; gap: 8px; justify-items: start; font-family: var(--font-head); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tl-nodes i { width: 12px; height: 12px; border: 2px solid var(--muted); background: var(--surface); transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.tl-nodes li[data-at="1"] i { background: var(--text); border-color: var(--text); }
.tl-nodes li[data-at="1"] { color: var(--text); }
.tl-now i { border-color: var(--logo-red); }
[data-stage="2"] .tl-now i, [data-stage="3"] .tl-now i { background: var(--logo-red); animation: now 1.6s var(--ease) infinite; }
[data-stage="2"] .tl-now, [data-stage="3"] .tl-now { color: var(--accent); }
@keyframes now { 0% { box-shadow: 0 0 0 0 var(--logo-red); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.inst-sub { margin: 16px 0 8px; }
.streams { display: grid; gap: 6px; padding-bottom: 6px; }
.streams li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); font-family: var(--font-head); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.streams i { width: 8px; height: 8px; border: 1.5px solid currentColor; }
[data-stage="2"] .streams li, [data-stage="3"] .streams li { animation: stream 4.2s var(--ease) infinite; }
[data-stage="2"] .streams li i, [data-stage="3"] .streams li i { animation: stream-sq 4.2s var(--ease) infinite; }
.streams li:nth-child(2), .streams li:nth-child(2) i { animation-delay: 1.4s !important; }
.streams li:nth-child(3), .streams li:nth-child(3) i { animation-delay: 2.8s !important; }
@keyframes stream { 0%, 100% { color: var(--muted); border-color: var(--line); } 10%, 32% { color: var(--text); border-color: var(--text); } 42% { color: var(--muted); border-color: var(--line); } }
@keyframes stream-sq { 0%, 100% { background: transparent; border-color: currentColor; } 10%, 32% { background: var(--logo-red); border-color: var(--logo-red); } 42% { background: transparent; } }

/* Case-study page pieces */
.case-head { display: grid; gap: 10px; align-content: start; }
.case-inner > .case-head { grid-area: head; }
.case-idx { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.case-client { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; }
.case-cat { font-size: 0.92rem; color: var(--muted); }
.case-inner > .case-link { grid-area: link; align-self: end; }
.case-inner > .case-story { grid-area: story; }
.case-story { display: grid; gap: 14px; position: relative; padding-left: 26px; }
.case-story::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.case-story li { position: relative; color: var(--muted); font-size: 0.98rem; }
.case-story li::before { content: ""; position: absolute; left: -26px; top: 0.5em; width: 9px; height: 9px; background: var(--bg); border: 1.5px solid var(--muted); }
.case-story li:last-child { color: var(--text); }
.case-story li:last-child::before { background: var(--logo-red); border-color: var(--logo-red); }
.case-inner > .case-figure { grid-area: figure; }
.case-figure { display: grid; gap: 8px; justify-items: end; text-align: right; align-content: start; }
.case-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.92; letter-spacing: 0; }
.case-num--word { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.case-num-label { font-family: var(--font-head); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); max-width: 18ch; }

/* ---------- 11. Home 06: the lab ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.lab-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.lab-card--feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.lab-copy { display: grid; gap: 12px; justify-items: start; }
.lab-title { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 900; }
.lab-tagline { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lab-body { color: var(--muted); max-width: 60ch; }
.lab-card:not(.lab-card--feature) {
  background: transparent; border-style: dashed;
}
.lab-card:not(.lab-card--feature)::after {
  content: ""; position: absolute; right: 24px; bottom: 24px; width: 64px; height: 64px;
  border: 2px dashed var(--line);
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 0 100%, 0 52%, 52% 52%);
}

/* ---------- 12. Forms and contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.contact-aside { display: grid; gap: 26px; }
.contact-lead { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.3; font-weight: 300; }
.contact-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-kicker .mark { color: var(--text); }
.contact-direct { display: grid; border-top: 1px solid var(--line); }
.contact-direct li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-direct-label { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: none; padding-right: 40px; cursor: pointer; }
.field--select { position: relative; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); pointer-events: none;
}
.honeypot { position: absolute !important; left: -9999px; opacity: 0; width: 1px; height: 1px; }
.form-foot { display: grid; gap: 10px; margin-top: 6px; }
.form-hint { font-size: 0.82rem; color: var(--muted); }
.form-status { font-size: 0.92rem; min-height: 1.4em; color: var(--text); }
.form-status.is-ok { color: var(--text); font-weight: 600; }
.form-status.is-ok::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--logo-red); margin-right: 10px; vertical-align: 1px; }
.form-status a { color: var(--accent); border-bottom: 1px solid currentColor; }

.dx-attached {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--text); border-radius: var(--radius); background: var(--bg-soft);
  font-size: 0.9rem;
}
.dx-attached .mark { color: var(--text); }
.dx-attached-text { flex: 1 1 auto; min-width: 0; }
.dx-attached-remove { background: none; border: 0; padding: 4px; cursor: pointer; font-family: var(--font-head); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dx-attached-remove:hover { color: var(--text); }

/* ---------- 13. Inner pages ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 10vw, 120px)) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-title {
  font-size: clamp(2.4rem, 7vw, 5.6rem); font-weight: 900; line-height: 0.95; letter-spacing: 0;
  text-wrap: balance;
}
.page-title-sub { display: block; margin-top: 14px; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: 0.06em; color: var(--muted); line-height: 1.2; }
.page-hero .lead { margin-top: 28px; }
.page-hero .lead + .lead { margin-top: 14px; }
.page-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.page-hero-actions .logo-btn { background: var(--bg); border-radius: 12px; }

.toc { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; position: relative; }
.toc::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--logo-red); }
.toc-head { margin-bottom: 12px; }
.toc ol { counter-reset: toc; display: grid; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 0; font-size: 0.92rem; transition: color 0.18s var(--ease), padding 0.18s var(--ease); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); padding-top: 3px; }
.toc a:hover { color: var(--accent); padding-left: 4px; }
.toc a:focus-visible { color: var(--accent); }

.subhead { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; letter-spacing: 0.16em; margin: 48px 0 20px; }
.subhead .mark { color: var(--text); }
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 24px 28px; margin-top: 36px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--text); border-radius: var(--radius);
}
.callout .mark { --mark-size: 22px; --mark-stroke: 3px; color: var(--text); margin-top: 3px; }
.callout p { font-size: 1.06rem; font-weight: 500; max-width: 70ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.entry-grid, .mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry-card, .mode-card { position: relative; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.entry-card::before, .mode-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--logo-red); }
.entry-kicker { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.entry-title, .mode-title { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; }
.entry-card p, .mode-card p { color: var(--muted); }
.entry-card .logo-btn { margin-top: auto; }
.note-line { margin-top: 24px; color: var(--muted); max-width: 72ch; padding-left: 18px; border-left: 2px solid var(--line); }

/* ---------- 14. Services ---------- */
/* Matrix: Blueprint vs Audit. On phones a switch picks the column. */
.matrix-switch { display: none; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.matrix thead th {
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid var(--text); padding-top: 0;
}
.matrix thead th small { display: block; margin-top: 6px; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; }
.matrix tbody th { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; width: 24%; color: var(--text); }
.matrix tbody td { color: var(--muted); width: 38%; }
.matrix tbody tr { transition: background 0.2s var(--ease); }
.matrix tbody tr:hover { background: var(--bg-soft); }
.matrix tbody tr:hover td { color: var(--text); }
.matrix-mid { border-left: 1px dashed var(--line); }

/* Fractional flow: a spine that fills as you read. */
.flow { position: relative; display: grid; gap: 0; padding-left: clamp(40px, 6vw, 88px); }
.flow::before { content: ""; position: absolute; left: clamp(13px, 2vw, 28px); top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.flow-progress { position: absolute; left: clamp(13px, 2vw, 28px); top: 10px; width: 2px; height: calc((100% - 20px) * var(--flow, 0)); background: var(--text); }
.flow-row { position: relative; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 12px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.flow-row:first-child { padding-top: 0; }
.flow-row::before {
  content: ""; position: absolute; left: calc(-1 * clamp(40px, 6vw, 88px) + clamp(13px, 2vw, 28px) - 6px); top: 36px;
  width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--muted); transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flow-row:first-child::before { top: 6px; }
.flow-row.is-lit::before { background: var(--logo-red); border-color: var(--logo-red); }
.flow-name { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 900; display: flex; gap: 16px; align-items: baseline; }
.flow-name small { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; }
.flow-text { color: var(--muted); font-size: 1.02rem; }

/* Recruitment pipeline: five stages, read left to right. */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text); counter-reset: stage; }
.pipe-stage { position: relative; padding: 22px 18px 26px; border-right: 1px solid var(--line); counter-increment: stage; }
.pipe-stage:last-child { border-right: 0; }
.pipe-stage::before { content: ""; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--text); }
.pipe-stage:hover::before { background: var(--logo-red); border-color: var(--logo-red); }
.pipe-name { display: flex; align-items: baseline; gap: 10px; font-size: 0.92rem; letter-spacing: 0.1em; margin: 10px 0 18px; }
.pipe-name::before { content: counter(stage, decimal-leading-zero); font-size: 0.6rem; color: var(--accent); letter-spacing: 0.16em; }
.pipe-steps { display: grid; gap: 16px; }
.pipe-step h4 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.pipe-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ---------- 15. About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-block { padding: 28px; border-top: 2px solid var(--text); display: grid; gap: 12px; align-content: start; }
.about-sub { font-size: 0.86rem; letter-spacing: 0.14em; display: flex; gap: 12px; align-items: center; }
.about-sub .mark { color: var(--text); }
.about-block p { color: var(--muted); font-size: 1.04rem; }

/* The clock: scroll runs the eleventh hour from 11:00 towards 12:00. */
.hour {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
}
.hour-face { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.hour-svg { width: 100%; height: auto; overflow: visible; }
.hour-svg .h-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.hour-svg .h-tick { stroke: var(--muted); stroke-width: 1.5; }
.hour-svg .h-tick--5 { stroke: var(--text); stroke-width: 3; }
.hour-svg .h-sector { fill: none; stroke: var(--logo-red); stroke-width: 12; opacity: 0.2; }
.hour-svg .h-sweep { fill: none; stroke: var(--logo-red); stroke-width: 12; }
.hour-svg .h-num { font-family: var(--font-head); font-weight: 700; font-size: 20px; fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.hour-svg .h-num--11 { fill: var(--accent); }
.hour-svg .h-hand { stroke: var(--text); stroke-linecap: butt; }
.hour-svg .h-hand--h { stroke-width: 9; }
.hour-svg .h-hand--m { stroke-width: 4; }
.hour-svg .h-hub-tile { fill: var(--logo-red); }
.hour-svg .h-hub-ink { fill: none; stroke: var(--text); stroke-width: 3; }
.hour-read {
  display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.hour-read small { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.hour-read.is-late { color: var(--accent); }
.hour-copy h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 900; margin-bottom: 18px; }
.hour-copy p { font-size: clamp(1.04rem, 1.4vw, 1.18rem); color: var(--muted); }
.hour-copy p + p { margin-top: 14px; }

/* The system: gap -> service, twice, with the coupling between. */
.gaps { display: grid; gap: 0; border-top: 2px solid var(--text); }
.gap-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.gap-problem { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.gap-problem .mark { color: var(--muted); margin-top: 6px; }
.gap-arrow { position: relative; height: 2px; background: var(--text); }
.gap-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--text); border-right: 2px solid var(--text); transform: rotate(45deg); }
.gap-answer { font-size: 1.04rem; color: var(--muted); }
.gap-answer a { font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); display: block; margin-bottom: 4px; }
.gap-answer a:hover { color: var(--accent); }
.gap-between { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); text-align: center; }
.system-close { margin-top: 32px; font-size: 1.1rem; max-width: 70ch; }
.guarantee {
  margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: center;
}
.guarantee .mark { --mark-size: clamp(40px, 6vw, 72px); --mark-stroke: 5px; color: var(--text); }
.guarantee p { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 3.2rem); line-height: 1.05; text-wrap: balance; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text); counter-reset: pr; }
.principle { padding: 28px 22px 32px 0; counter-increment: pr; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 22px; }
.principle:last-child { border-right: 0; }
.principle::before { content: "P." counter(pr, decimal-leading-zero); display: block; font-family: var(--font-head); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 18px; }
.principle h3 { font-size: 1.02rem; letter-spacing: 0.06em; margin-bottom: 12px; }
.principle p { color: var(--muted); font-size: 0.95rem; }

.partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose p { color: var(--muted); font-size: 1.04rem; }
.prose p + p { margin-top: 14px; }
.partners-lead { margin-top: 26px; font-weight: 500; }
.disciplines { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.disciplines li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.discipline-name { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.discipline-roles { color: var(--muted); font-size: 0.9rem; }
.partners-close { margin-top: 22px; color: var(--muted); }
.partners-foot { margin-top: 28px; }
.about-logo { justify-self: end; width: min(100%, 300px); }
.about-logo img { width: 100%; height: auto; }

/* ---------- 16. FAQ ---------- */
.faq-page { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px)); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 26px; }
.faq-aside .page-title { font-size: clamp(3rem, 9vw, 7rem); }
.faq-aside-box { display: grid; gap: 16px; justify-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.faq-aside-box p { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.faq-count { font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.faq-list { border-top: 2px solid var(--text); counter-reset: q; }
.faq-item { border-bottom: 1px solid var(--line); counter-increment: q; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 28px; gap: 12px; align-items: start;
  padding: 26px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q." counter(q, decimal-leading-zero); font-family: var(--font-head); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); padding-top: 6px; }
.faq-item[open] summary::before { color: var(--accent); }
.faq-q { font-size: clamp(1rem, 1.6vw, 1.22rem); letter-spacing: 0.03em; line-height: 1.3; transition: color 0.18s var(--ease); }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-icon { position: relative; width: 22px; height: 22px; margin-top: 2px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 40px 30px 64px; display: grid; gap: 14px; color: var(--muted); overflow: hidden; }
.faq-a p { max-width: 68ch; }
.faq-a .text-link { color: var(--text); }

/* ---------- 17. Build routes compared ---------- */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text); }
.route { position: relative; display: grid; grid-template-rows: auto auto 1fr; padding: 0 22px 28px; border-right: 1px solid var(--line); }
.route:first-child { padding-left: 0; }
.route:last-child { border-right: 0; padding-right: 0; }
.route-head { padding: 22px 0 18px; min-height: 108px; display: grid; gap: 8px; align-content: start; }
.route-name { font-size: 1.05rem; letter-spacing: 0.06em; }
.route-name small { display: block; margin-top: 6px; font-size: 0.58rem; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; }
.route-ceiling { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter i { flex: 1; height: 10px; border: 1.5px solid var(--text); }
.meter i.on { background: var(--text); }
.route--ours .meter i.on { background: var(--logo-red); border-color: var(--logo-red); }
.route-facts { display: grid; align-content: start; }
.route-fact { padding: 16px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.route-fact:last-child { border-bottom: 0; }
.route-fact dt { font-family: var(--font-head); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.route-fact dd { font-size: 0.95rem; }
.route--ours { background: var(--bg-soft); padding-left: 22px; padding-right: 22px; }
.route--ours::before { content: ""; position: absolute; top: -2px; left: 0; width: 14px; height: 14px; background: var(--logo-red); }
.route-ours-tag { font-family: var(--font-head); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.routes-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.routes-close p { font-size: 1.1rem; max-width: 52ch; }

/* ---------- 18. Case studies ---------- */
.cs-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-card { position: relative; display: grid; gap: 22px; align-content: space-between; min-height: 300px; padding: 28px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.cs-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--logo-red); }
.cs-card:hover { border-color: var(--text); transform: translateY(-3px); }
.cs-card:focus-visible { border-color: var(--text); }
.cs-card .case-num { font-size: clamp(2.6rem, 5vw, 4rem); }
.cs-card .case-figure { justify-items: start; text-align: left; }
.cs-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cs-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px dashed var(--line); margin-bottom: 36px; color: var(--muted); }
.cs-file object { width: 100%; height: 80vh; border: 1px solid var(--line); }
.cs-file img { width: 100%; height: auto; border: 1px solid var(--line); }
.cs-file .link-arrow { margin-top: 14px; }
.cs-side { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 24px; padding-top: 22px; border-top: 2px solid var(--text); }
.cs-side .case-figure { justify-items: start; text-align: left; }
.cs-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cs-article .case-story { font-size: 1.08rem; }
.cs-article .case-story li { font-size: 1.08rem; }

.cs-inst { margin: 0 0 32px; }

/* ---------- 18b. Runway calculator ---------- */
.band-key { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 20px 22px 8px; }
.band-key::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--logo-red); }
.band-key-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 0 12px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.band-key-head .mark { color: var(--text); }
.band-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.band-row:last-child { border-bottom: 0; }
.band-row dt { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.band-row dt small { display: block; margin-top: 5px; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.band-row dd { font-family: var(--font-head); font-size: 1rem; font-weight: 800; white-space: nowrap; }

.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.calc-noscript { margin-bottom: 24px; color: var(--muted); }
.calc-inputs { display: grid; gap: 28px; }
.calc-step { border: 0; margin: 0; padding: 0 0 26px; min-width: 0; border-bottom: 1px solid var(--line); }
.calc-step:last-child { border-bottom: 0; }
.calc-field { display: grid; gap: 10px; margin-top: 20px; }
.calc-field > label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 0.96rem; }
.calc-field > label small, .assume-grid label small { font-family: var(--font-head); font-size: 0.54rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.calc-out { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.calc-money { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg-soft); transition: border-color 0.18s var(--ease); }
.calc-money:focus-within { border-color: var(--text); }
.calc-money span { padding-left: 14px; font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.calc-money input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); font: 600 1.14rem var(--font-body); padding: 12px 14px 12px 8px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.calc-money input:focus { outline: none; }
.calc-money--pct span { padding: 0 14px 0 0; }
.calc-money--pct input { padding-left: 14px; }
.calc-money input::-webkit-outer-spin-button, .calc-money input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Range: a hairline track that fills in ink, and the red tile as the thumb. */
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.calc-range:focus { outline: none; }
.calc-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--text), var(--text)) 0 0 / var(--fill) 100% no-repeat, var(--line); }
.calc-range::-moz-range-track { height: 2px; background: var(--line); }
.calc-range::-moz-range-progress { height: 2px; background: var(--text); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--logo-red); border: 0; border-radius: 0; }
.calc-range::-moz-range-thumb { width: 18px; height: 18px; background: var(--logo-red); border: 0; border-radius: 0; }
.calc-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--text); outline-offset: 3px; }
.calc-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--text); outline-offset: 3px; }
.calc-scale { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 0.54rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.calc-derived { margin-top: 20px; padding: 14px 16px; background: var(--bg-soft); border-left: 3px solid var(--logo-red); font-size: 0.96rem; }
.calc-derived b { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.02em; }
.team { display: grid; margin-top: 6px; }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.team-name { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.team-name small { display: block; margin-top: 5px; font-size: 0.54rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); flex: 0 0 auto; }
.stepper button { width: 40px; height: 42px; background: none; border: 0; cursor: pointer; color: var(--text); font-size: 1.15rem; line-height: 1; }
.stepper button:hover { background: var(--bg-soft); }
.stepper input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; color: var(--text); font: 800 1.05rem var(--font-head); -moz-appearance: textfield; appearance: textfield; }
.calc-assume summary { list-style: none; cursor: pointer; margin: 0; }
.calc-assume summary::-webkit-details-marker { display: none; }
.calc-assume-hint { margin-left: auto; font-size: 0.56rem; letter-spacing: 0.2em; color: var(--accent); }
.calc-assume-hint::after { content: " +"; }
.calc-assume[open] .calc-assume-hint::after { content: " \2212"; }
.calc-assume-intro { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.assume-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px 16px; align-items: center; margin-top: 16px; }
.assume-grid label { display: grid; gap: 4px; font-size: 0.92rem; }

.calc-sheet { position: sticky; top: calc(var(--nav-h) + 20px); padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 34px); isolation: isolate; }
.calc-sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(10px, 10px); border: 1px solid var(--line-on-structure); }
.bs-block { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.bs-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.bs-label small { font-size: 1em; letter-spacing: 0.14em; }
.burn, .months { display: grid; gap: 10px; margin-top: 14px; }
.burn-row, .months-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.burn-k, .months-k { font-family: var(--font-head); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.burn-bar { position: relative; height: 16px; border: 1.5px solid var(--text); }
.burn-bar i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(var(--w, 0) * (100% - 4px)); background: var(--text); transition: width 0.6s var(--ease-out); }
.burn-row--off .burn-bar { border-color: var(--logo-red); }
.burn-row--off .burn-bar i { background: var(--logo-red); }
.burn-v, .months-v { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; text-align: right; min-width: 7.5ch; font-variant-numeric: tabular-nums; }
.bs-line { margin-top: 14px; font-size: 0.96rem; }
.bs-line b { font-weight: 700; }
.bs-line--big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }
.bs-line--big em { font-style: normal; color: var(--accent); }
.months-sq { display: flex; flex-wrap: wrap; gap: 3px; min-height: 9px; }
.months-sq i { width: 9px; height: 9px; background: var(--text); }
.months-sq i.part { opacity: 0.35; }
.months-sq i.extra { background: var(--logo-red); }
.months-sq i.cap { background: transparent; border: 1px dashed var(--muted); }
.checks { display: grid; margin-top: 10px; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.check-k { font-size: 0.92rem; color: var(--muted); }
.check-v { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.check-v::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; flex: 0 0 auto; }
.is-fit .check-v::before { background: var(--text); border-color: var(--text); }
.is-over .check-v { color: var(--accent); }
.bs-block--feature { border-bottom: 0; }
.bs-statement { margin-top: 10px; font-family: var(--font-head); font-weight: 800; font-size: clamp(0.98rem, 1.5vw, 1.16rem); line-height: 1.32; letter-spacing: 0.03em; text-transform: uppercase; }
.bs-statement em { font-style: normal; color: var(--accent); }
.exchange { display: grid; margin-top: 14px; }
.exchange li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ex-from { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ex-from small { display: block; margin-top: 4px; font-size: 0.86em; color: var(--muted); letter-spacing: 0.04em; }
.ex-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.88rem; }
.ex-opt { display: inline-flex; align-items: center; gap: 6px; }
.ex-opt b { font-family: var(--font-head); font-weight: 800; }
.ex-or { font-family: var(--font-head); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ex-sq { display: inline-flex; gap: 2px; }
.ex-sq i { width: 8px; height: 8px; border: 1.5px solid var(--text); }
.ex-sq--senior i { background: var(--logo-red); border-color: var(--logo-red); }
.ex-sq--mid i { background: var(--text); }
.form--capture { max-width: 860px; }
.calc-sheet.is-printing::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--logo-red); animation: print 0.6s var(--ease) both; }

.calc-teaser {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 28px;
  margin-top: 32px; padding: 22px 26px;
}
.calc-teaser::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; background: var(--logo-red); }
.calc-teaser-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.calc-teaser-k .mark { color: var(--text); }
.calc-teaser-t { color: var(--muted); }
.calc-teaser:hover .link-arrow { gap: 14px; }
.calc-teaser:focus-visible .link-arrow { gap: 14px; }

.page-steps { counter-reset: none; display: grid; border-top: 2px solid var(--text); background: var(--surface); }
.page-steps li { display: grid; grid-template-columns: 44px 1fr; align-items: center; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.page-steps-n { font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); padding-left: 16px; }
.page-hero-aside { display: flex; justify-content: flex-end; align-items: flex-end; }
.page-hero-aside .logo-btn { background: var(--bg); border-radius: 12px; }

/* ---------- 19. Figures ---------- */
.fig { margin: 0; width: 100%; }
.fig-plate { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fig-media { width: 100%; height: auto; display: block; }
.fig figcaption { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.fig-idx { font-family: var(--font-head); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.fig-text { flex: 1 1 auto; }
.fig-text:empty { display: none; }
.fig-toggle {
  margin-left: auto; flex: 0 0 auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; cursor: pointer;
  font-family: var(--font-head); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.fig-toggle:hover { border-color: var(--text); }
.fig-toggle--play { background: var(--text); color: var(--bg); border-color: var(--text); }
.fig--wide { margin-top: 40px; }

/* ---------- 20. Dialogs and the jump palette ---------- */
.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--text); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.modal::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.32s var(--ease-out) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-inner { position: relative; padding: clamp(26px, 4vw, 40px); }
.modal-inner::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; background: var(--logo-red); }
.modal-kicker { padding-right: 48px; font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.modal-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; padding-right: 40px; }
.modal-lead { margin: 14px 0 24px; color: var(--muted); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--text);
}
.modal-close:hover { border-color: var(--text); }
.modal .form { grid-template-columns: 1fr; }
.modal-dx { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 18px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.86rem; }
.modal-dx .mark { color: var(--text); }

/* The booking popup: the booking page framed in a dialog. */
.modal--booking {
  width: min(1000px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 40px)); max-height: none;
  overflow: hidden; display: none; grid-template-rows: auto minmax(0, 1fr);
}
.modal--booking[open] { display: grid; }
.booking-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.booking-head::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; background: var(--logo-red); }
.booking-head .mark { color: var(--text); }
.booking-title { font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.booking-out { margin-left: auto; font-family: var(--font-head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.booking-out:hover { color: var(--text); }
.booking-head .modal-close { position: static; flex: 0 0 auto; }
.booking-frame { position: relative; background: #fff; }
.booking-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.booking-frame.is-loaded .booking-loading { display: none; }
.booking-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6b6b6b; }
@media (max-width: 540px) {
  .modal--booking { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; }
  .booking-out { display: none; }
  .booking-head .modal-close { margin-left: auto; }
}

.palette {
  width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 10vh auto auto;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.palette::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.palette[open] { display: flex; flex-direction: column; animation: modal-in 0.22s var(--ease-out) both; }
.palette-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-head .mark { color: var(--text); }
.palette-input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 1.08rem; padding: 8px 0;
}
.palette-input:focus { outline: none; }
.palette-input::placeholder { color: var(--muted); }
.palette-esc { font-family: var(--font-head); font-size: 0.55rem; letter-spacing: 0.14em; padding: 3px 6px; border: 1px solid var(--line); color: var(--muted); }
.palette-list { overflow: auto; padding: 8px; flex: 1 1 auto; }
.palette-group { font-family: var(--font-head); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.palette-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius); cursor: pointer;
  font-size: 0.95rem; color: var(--text);
}
.palette-item-sq { width: 8px; height: 8px; border: 1.5px solid var(--muted); flex: 0 0 auto; }
.palette-item-meta { margin-left: auto; font-family: var(--font-head); font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.palette-item[aria-selected="true"] { background: var(--bg-soft); }
.palette-item[aria-selected="true"] .palette-item-sq { background: var(--logo-red); border-color: var(--logo-red); }
.palette-empty { padding: 24px 12px; color: var(--muted); font-size: 0.92rem; }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.palette-foot kbd { padding: 2px 5px; border: 1px solid var(--line); margin-right: 6px; }

/* ---------- 21. Footer ---------- */
.site-footer { position: relative; padding: clamp(64px, 9vw, 112px) 0 28px; }
.footer-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kicker kicker" "title btn"; gap: 18px 40px; align-items: end;
  padding-bottom: clamp(48px, 7vw, 88px); margin-bottom: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line);
}
.footer-cta-kicker { grid-area: kicker; display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer-cta-kicker .mark { color: var(--text); }
.footer-cta-title { grid-area: title; font-size: clamp(2rem, 6vw, 4.8rem); font-weight: 900; line-height: 0.98; text-wrap: balance; }
.footer-cta .logo-btn { grid-area: btn; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .brand-logo { height: 72px; width: auto; display: block; }
.footer-tagline { color: var(--muted); font-size: 0.92rem; max-width: 26ch; }
.footer-head { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.94rem; color: var(--text); transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col a:focus-visible { color: var(--accent); }
.footer-col a[aria-current="page"] { color: var(--accent); }

.title-block { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 80px); border: 1px solid var(--line); }
.tb-cell { padding: 12px 16px 13px; border-right: 1px solid var(--line); display: grid; gap: 7px; align-content: start; min-width: 0; }
.tb-cell:last-child { border-right: 0; }
.tb-cell dt { font-family: var(--font-head); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.tb-cell dd { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-of { margin: 0 0.55em; font-size: 0.78em; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 9px; border: 1px solid var(--line);
  font-family: var(--font-head); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  transition: border-color 0.18s var(--ease);
}
.footer-social a:hover { border-color: var(--text); }
.footer-social a:focus-visible { border-color: var(--text); }
.social-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.footer-consent { margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-consent:hover { color: var(--text); }

/* Analytics consent: a small card, bottom left, until the visitor chooses. */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(420px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start;
  padding: 18px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  animation: modal-in 0.35s var(--ease-out) both;
}
.consent .mark { color: var(--text); margin-top: 3px; }
.consent-text { font-size: 0.92rem; line-height: 1.55; }
.consent-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.consent .logo-btn { background: var(--surface); border-radius: 12px; }

/* Without JavaScript: no HUD (nothing drives it), every approach step at full
   strength, and no menu button that cannot open (the footer has every link). */
.no-js .hero-hud { display: none; }
.no-js .approach-step { opacity: 1; }
.no-js .nav-toggle { display: none !important; }

/* ---------- 22. Reveal-on-scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Sheet heads print themselves: the number lands, the rule draws, the title wipes in. */
.js .sheet-head.reveal-head .sheet-num { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .sheet-head.reveal-head .sheet-rule { transform: scaleX(0); transform-origin: left center; transition: transform 1.2s var(--ease-out) 0.15s; }
.js .sheet-head.reveal-head .section-title { clip-path: inset(-0.25em 100% -0.25em 0); transition: clip-path 1.1s var(--ease-out) 0.1s; }
.js .sheet-head.reveal-head .section-sub { opacity: 0; transition: opacity 0.8s var(--ease) 0.5s; }
.js .sheet-head.reveal-head.is-in .sheet-num { opacity: 1; transform: none; }
.js .sheet-head.reveal-head.is-in .sheet-rule { transform: none; }
.js .sheet-head.reveal-head.is-in .section-title { clip-path: inset(-0.25em 0 -0.25em 0); }
.js .sheet-head.reveal-head.is-in .section-sub { opacity: 1; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1240px) {
  .nav-sheet { max-width: 190px; padding-left: 14px; }
  .jump-label { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-sheet { display: none; }
}
@media (max-width: 1080px) {
  .jump-kbd { display: none; }
  .jump { width: 40px; height: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 980px) {
  .proof { grid-template-columns: 1fr; }
  .cv-panel { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-sheet { position: relative; top: 0; }
  .dx { grid-template-columns: 1fr; }
  .pv-grid { grid-template-columns: 1fr; }
  .lab { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .about-logo { display: none; }
  .hour { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(3) { padding-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
  .partners { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route:nth-child(2) { border-right: 0; padding-right: 0; }
  .route:nth-child(3) { padding-left: 0; }
  .route:nth-child(n+3) { border-top: 1px solid var(--line); }
  .route--ours:nth-child(n) { padding-left: 22px; padding-right: 22px; }
  .pipeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--text); }
  .pipe-stage { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0 22px 26px; }
  .pipe-stage::before { top: 26px; left: -7px; }
  .pipe-name { margin-top: 0; }
  .cs-index { grid-template-columns: 1fr; }
  .cs-card { min-height: 0; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-side { position: static; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav-toggle { display: inline-grid; }
  .nav { margin-left: 0; }
  .nav-tools { margin-left: auto; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px clamp(16px, 4vw, 32px) 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a:not(.logo-btn) {
    display: flex; align-items: baseline; gap: 16px; padding: 22px 0;
    font-size: clamp(1.5rem, 7vw, 2.4rem); font-weight: 800; letter-spacing: 0.04em; color: var(--text);
  }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-links-cta { display: block; border-bottom: 0 !important; padding-top: 28px; }
  .nav-links-cta .logo-btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .hero--home { --hud-h: 64px; align-items: flex-start; min-height: 0; }
  .display { font-size: clamp(2rem, 10.4cqi, 3.4rem); }
  /* On phones the definition opens in place and pushes the copy down. */
  .lex-plate { position: relative; top: auto; left: auto; translate: none; margin-top: 12px; padding: 26px 18px 16px; text-align: left; }
  .lex-word { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hud-scroll, .hud-status #heroStatus { display: none; }
  .hud-steps li + li::before { width: 6px; margin: 0 6px 0 2px; }
  .hud-steps li:not(.is-now) .hud-name { display: none; }
  .hero-hud { font-size: 0.5rem; letter-spacing: 0.12em; }
  .hud-pct { border-left: 0; padding-left: 0; }
  .cv-bar { overflow-x: auto; scrollbar-width: none; }
  .cv-tabs { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .cv-play { padding-left: 14px; }
  .proof-item--lead .proof-num { font-size: clamp(2.8rem, 14vw, 4rem); }
  .units--pct { grid-template-columns: repeat(10, var(--sz)); }
  .exchange li { grid-template-columns: 1fr; gap: 8px; }
  .assume-grid { grid-template-columns: 1fr; gap: 6px; }
  .assume-grid .calc-money { margin-bottom: 8px; }
  .calc-teaser { grid-template-columns: 1fr; }
  .page-hero-aside { justify-content: flex-start; }

  .dx-options { grid-template-columns: 1fr; }
  .dx-options--compact { grid-template-columns: 1fr 1fr; }
  .dx-row { grid-template-columns: 1fr; gap: 6px; }
  .dx-sheet::before { transform: translate(6px, 6px); }

  .approach { grid-template-columns: 1fr; gap: 0; }
  .approach-visual {
    position: sticky; top: var(--nav-h); z-index: 3;
    background: var(--bg); padding: 12px 0 10px; border-bottom: 1px solid var(--line);
  }
  .approach-fig { position: static; display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
  .approach-cap { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .approach-cap-name { margin-left: 0; font-size: 0.8rem; }
  .ad text { display: none; }
  .approach-step, .approach-step:first-child, .approach-step:last-child { min-height: 46vh; padding: 40px 0; justify-content: center; }

  .case-figure { justify-items: start; text-align: left; }

  .form { grid-template-columns: 1fr; }
  .entry-grid, .mode-grid, .about-grid { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; }
  .gap-row { grid-template-columns: 1fr; gap: 14px; }
  .gap-arrow { width: 48px; transform: rotate(90deg); transform-origin: left center; margin: 10px 0 20px 6px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .routes { grid-template-columns: 1fr; }
  .route, .route:first-child, .route:last-child, .route:nth-child(n) { padding: 0 0 22px; border-right: 0; border-top: 1px solid var(--line); }
  .route:first-child { border-top: 0; }
  .route--ours:nth-child(n) { padding: 0 16px 22px; }
  .route-head { min-height: 0; }
  /* Matrix: a switch shows one column at a time. */
  .matrix-switch { display: inline-flex; border: 1px solid var(--text); border-radius: var(--radius); margin-bottom: 18px; }
  .matrix-switch button { background: none; border: 0; padding: 10px 14px; cursor: pointer; font-family: var(--font-head); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
  .matrix-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100% !important; }
  .matrix tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .matrix th, .matrix td { border: 0; padding: 4px 0; }
  .matrix td::before { content: attr(data-label); display: block; font-family: var(--font-head); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 6px 0 2px; }
  .js .matrix[data-show="blueprint"] td:nth-of-type(2), .js .matrix[data-show="audit"] td:nth-of-type(1) { display: none; }
  .js .matrix td::before { display: none; }
  .matrix-mid { border-left: 0; }
  .faq-a { padding: 0 0 26px 0; }
  .faq-item summary { grid-template-columns: minmax(0, 1fr) 24px; }
  .faq-item summary::before { grid-column: 1 / -1; padding-top: 0; }
  .footer-cta { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "btn"; }
  .footer-cta .logo-btn { justify-self: start; }
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .tb-cell--wide { grid-column: 1 / -1; }
  .tb-cell:nth-child(2), .tb-cell:nth-child(4) { border-right: 1px solid var(--line); }
  .tb-cell:nth-child(4), .tb-cell:nth-child(5) { border-bottom: 0; }
  .guarantee { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .nav-tools .nav-cta { display: none; }
  .js .nav-tools .jump { display: none; }
  .hero-entry, .hero-entry-actions { width: 100%; }
  .hero-entry-actions .logo-btn { flex: 1 1 100%; }
  .hero-cta .logo-btn--lg { min-width: 200px; padding-left: 28px; padding-right: 28px; }
  .hud-steps .hud-name { display: none; }
  .dx-options--compact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .burn-row, .months-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .lab-card:not(.lab-card--feature)::after { display: none; }
  .fig figcaption { flex-wrap: wrap; }
}

/* Short desktop screens: keep the seam and Talk to us in the first view. */
@media (min-width: 761px) and (max-height: 820px) {
  .hero--home { --hud-h: 64px; padding-top: calc(var(--nav-h) + 20px); padding-bottom: calc(var(--hud-h) + 20px); }
  .display { font-size: clamp(2rem, 5cqi, 3.8rem); }
  .hero-copy .lead { max-width: 74ch; font-size: 1rem; }
  .hero-stack { gap: 18px; }
  .hero-tagline { margin-top: 16px; }
  .lex { margin-top: 14px; }
  .lex-senses { gap: 10px; }
  .hero-eyebrow { margin-bottom: 14px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hud-steps li + li::before { width: 8px; margin: 0 8px 0 2px; }
  .hud-steps li:not(.is-now) .hud-name { display: none; }
  .hud-scroll { display: none; }
}

/* ---------- 24. Motion preferences, view transitions, print ---------- */
/* Page to page: the new sheet wipes in over the old, like the scan. The header stays. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-wipe 0.55s var(--ease-out) both; }
@keyframes vt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lex[open] .lex-plate, .lex[open] .lex-body { animation: none !important; clip-path: none; opacity: 1; transform: none; }
  .lex-scan { display: none; }
  .hud-scroll-track i, .tag--live::before, .dx-empty::after, .tl-ticks, .streams li, .streams li i, .vulns i, .tl-now i, .hud-steps li.is-now .hud-sq { animation: none !important; }
  .js .sheet-head.reveal-head .sheet-num, .js .sheet-head.reveal-head .section-sub { opacity: 1; transform: none; }
  .js .sheet-head.reveal-head .sheet-rule { transform: none; }
  .js .sheet-head.reveal-head .section-title { clip-path: none; }
  ::view-transition-new(root) { animation: none; }
  [data-step="1"] .ad-scan { opacity: 0; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .hero-field, .hero-hud, .jump, .nav-toggle, .theme-toggle, .footer-cta, .dx-controls { display: none !important; }
  .section--dark, .site-footer { background: none; --text: #000; --muted: #333; --line: #ccc; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
