/* Generated by build.py from src/css/. Do not edit. */
/* ---- 00-tokens.css ---- */
/* KAIMS: design tokens.
   Every other stylesheet uses these custom properties and never hard-codes a colour.
   Surfaces: [data-surface="navy"] (deep field) and [data-surface="sheet"] (white reading sheet)
   redefine the semantic tokens (--bg, --fg, --fg-muted, --line, --focus, buttons, diagram colours),
   so a component written against semantic tokens works on both. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Barlow-Light.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Barlow-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Barlow-Bold.ttf") format("truetype"); }

:root {
  /* ---- palette (raw) ---- */
  --navy: #002244;            /* brand blue: the deep field */
  --navy-deep: #001a35;       /* footer base, pressed states */
  --navy-raised: #0b3160;     /* surface navy: raised panels on the field */
  --navy-edge: #123a69;       /* hairline on raised navy */
  --white: #ffffff;
  --yellow: #ffc806;          /* brand accent: active layer, primary action, focus only */
  --yellow-hover: #ffd23d;
  --yellow-press: #e6b300;
  --mist: #f3f6fa;            /* cool tint of white for quiet bands on sheets */
  --steel: #8fa3bd;           /* line colour on navy (6.2:1) */
  --steel-soft: #b7c5d8;      /* secondary text on navy (9.1:1) */
  --slate: #4a5d78;           /* secondary text on white (6.7:1) */
  --slate-line: #c9d3e0;      /* hairline on white */
  --slate-line-strong: #8a9bb3;

  /* ---- semantic tokens: default surface is the white sheet ---- */
  --bg: var(--white);
  --bg-alt: var(--mist);
  --fg: var(--navy);
  --fg-muted: var(--slate);
  --line: var(--slate-line);
  --line-strong: var(--slate-line-strong);
  --focus: var(--navy);
  --focus-offset-color: var(--white);
  --link: var(--navy);
  --active-text: var(--navy);          /* label of the active layer */
  --accent: var(--yellow);

  --btn-primary-bg: var(--navy);
  --btn-primary-fg: var(--white);
  --btn-primary-bg-hover: var(--navy-raised);
  --btn-primary-bg-press: var(--navy-deep);
  --btn-outline-border: var(--navy);
  --btn-outline-fg: var(--navy);
  --btn-outline-bg-hover: var(--mist);

  /* diagram (exploded platform) */
  --diag-line: var(--navy);
  --diag-line-soft: rgba(0, 34, 68, 0.38);
  --diag-guide: rgba(0, 34, 68, 0.5);
  --plate-top: var(--white);
  --plate-side-l: #dfe6ef;
  --plate-side-r: #c4d0df;
  --plate-active: var(--yellow);
  --plate-active-ink: var(--navy);
  --plate-active-side-l: #b88f00;
  --plate-active-side-r: #dca900;

  /* ---- type ---- */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* fluid scale: min at 360px, max at 1440px */
  --text-xs: 0.8125rem;                                                   /* 13px: captions, legal */
  --text-sm: 0.9375rem;                                                   /* 15px: dense UI, callouts */
  --text-md: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);                     /* body */
  --text-lg: clamp(1.125rem, 1.04rem + 0.37vw, 1.375rem);                 /* lede */
  --text-xl: clamp(1.375rem, 1.2rem + 0.74vw, 1.875rem);                  /* h4, large quotes */
  --text-2xl: clamp(1.75rem, 1.45rem + 1.3vw, 2.75rem);                   /* h3 */
  --text-3xl: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);                    /* h2 */
  --text-4xl: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);                     /* h1 */
  --text-label: 0.8125rem;                                                 /* 12px tracked capitals */

  --lh-tight: 1.08; --lh-snug: 1.2; --lh-body: 1.55; --lh-ui: 1.4;
  --track-display: -0.02em;
  --track-label: 0.14em;
  --measure: 68ch;
  --measure-narrow: 54ch;

  /* ---- spacing (4px base, deliberately uneven steps) ---- */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem; --s-10: 9rem;
  --section-y: clamp(4.5rem, 3rem + 6.5vw, 9.5rem);   /* vertical rhythm between sections */
  --heading-above: clamp(2.5rem, 2rem + 2vw, 4rem);   /* space above a heading inside a flow */
  --heading-below: var(--s-4);

  /* ---- shape ---- */
  --r-1: 2px; --r-2: 4px;                               /* architectural: no pills, no bubbles */
  --hairline: 1px;

  /* ---- depth (offset + soft blur only) ---- */
  --shadow-1: 0 1px 2px rgba(0, 34, 68, 0.10), 0 6px 16px -6px rgba(0, 34, 68, 0.18);
  --shadow-2: 0 2px 4px rgba(0, 34, 68, 0.10), 0 18px 40px -14px rgba(0, 34, 68, 0.30);

  /* ---- motion ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-1: 140ms; --dur-2: 260ms; --dur-3: 520ms; --dur-4: 1100ms;

  /* ---- layers ---- */
  --z-base: 0; --z-raised: 10; --z-sticky: 100; --z-menu: 110; --z-skip: 200;

  /* ---- layout ---- */
  --container: 80rem;           /* 1280px */
  --container-narrow: 56rem;
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);
  --grid-gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  --nav-h: 4.5rem;              /* 72px */
  --touch: 2.75rem;             /* 44px minimum target */
}
@media (max-width: 59.99rem) { :root { --nav-h: 4rem; } }

/* ---- surfaces ---- */
[data-surface="sheet"] {
  --bg: var(--white);
  --bg-alt: var(--mist);
  --fg: var(--navy);
  --fg-muted: var(--slate);
  --line: var(--slate-line);
  --line-strong: var(--slate-line-strong);
  --focus: var(--navy);
  --focus-offset-color: var(--white);
  --link: var(--navy);
  --active-text: var(--navy);
  --btn-primary-bg: var(--navy);
  --btn-primary-fg: var(--white);
  --btn-primary-bg-hover: var(--navy-raised);
  --btn-primary-bg-press: var(--navy-deep);
  --btn-outline-border: var(--navy);
  --btn-outline-fg: var(--navy);
  --btn-outline-bg-hover: var(--mist);
  --diag-line: var(--navy);
  --diag-line-soft: rgba(0, 34, 68, 0.38);
  --diag-guide: rgba(0, 34, 68, 0.5);
  --plate-top: var(--white);
  --plate-side-l: #dfe6ef;
  --plate-side-r: #c4d0df;
  --plate-active: var(--yellow);
  --plate-active-ink: var(--navy);
  background: var(--bg);
  color: var(--fg);
}
[data-surface="navy"] {
  --bg: var(--navy);
  --bg-alt: var(--navy-raised);
  --fg: var(--white);
  --fg-muted: var(--steel-soft);
  --line: var(--navy-edge);
  --line-strong: var(--steel);
  --focus: var(--yellow);
  --focus-offset-color: var(--navy);
  --link: var(--white);
  --active-text: var(--yellow);
  --btn-primary-bg: var(--yellow);
  --btn-primary-fg: var(--navy);
  --btn-primary-bg-hover: var(--yellow-hover);
  --btn-primary-bg-press: var(--yellow-press);
  --btn-outline-border: var(--steel);
  --btn-outline-fg: var(--white);
  --btn-outline-bg-hover: var(--navy-raised);
  --diag-line: var(--steel);
  --diag-line-soft: rgba(143, 163, 189, 0.42);
  --diag-guide: rgba(143, 163, 189, 0.55);
  --plate-top: #0a2e5a;
  --plate-side-l: #052850;
  --plate-side-r: #031f3f;
  --plate-active: var(--yellow);
  --plate-active-ink: var(--navy);
  background: var(--bg);
  color: var(--fg);
}

/* ---- 10-base.css ---- */
/* Reset, typography, links, buttons, focus, browser surfaces, layout utilities. Uses tokens only. */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--s-5));
  scroll-behavior: smooth;
  color-scheme: light;
  scrollbar-color: var(--slate-line-strong) var(--mist);
  scrollbar-width: thin;
  caret-color: var(--navy);
  background: var(--navy);   /* overscroll shows the field, not white */
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;          /* never overflow-x:hidden: it would break position:sticky */
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--fg);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: var(--hairline) solid var(--line); margin: var(--s-6) 0; }
[hidden] { display: none !important; }

/* yellow is a signal on navy only: sheets select and type in navy */
::selection { background: var(--navy); color: var(--white); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--slate-line-strong); border: 3px solid var(--mist); border-radius: var(--r-2); }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }
[data-surface="navy"] { scrollbar-color: var(--steel) var(--navy-deep); }
[data-surface="navy"] ::selection { background: var(--yellow); color: var(--navy); }
input, textarea { caret-color: var(--navy); accent-color: var(--navy); }
[data-surface="navy"] { caret-color: var(--yellow); }
[data-surface="navy"] input, [data-surface="navy"] textarea { caret-color: var(--yellow); accent-color: var(--yellow); }

/* ---- typography ---- */
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-semibold); text-wrap: balance; letter-spacing: var(--track-display); color: var(--fg); }
h1 { font-size: var(--text-4xl); line-height: var(--lh-tight); }
h2 { font-size: var(--text-3xl); line-height: var(--lh-snug); }
h3 { font-size: var(--text-2xl); line-height: var(--lh-snug); letter-spacing: -0.015em; }
h4 { font-size: var(--text-xl); line-height: var(--lh-snug); letter-spacing: -0.01em; font-weight: var(--fw-medium); }
p { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: var(--fw-semibold); }
small, .text-small { font-size: var(--text-sm); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--fg-muted); max-width: var(--measure-narrow); }
.muted { color: var(--fg-muted); }
/* tracked capitals: callouts and small labels only, never above a heading */
.label {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: var(--lh-ui);
}
/* heading rhythm inside a flow: more above than below */
.flow > * + * { margin-top: var(--s-4); }
.flow > * + :is(h2, h3, h4) { margin-top: var(--heading-above); }
.flow > :is(h2, h3, h4) + * { margin-top: var(--heading-below); }
.prose { max-width: var(--measure); }
.prose :is(ul, ol) { padding-left: 1.25em; margin: 0 0 var(--s-4); }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--fg-muted); }
code, kbd, samp { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; }

/* ---- links ---- */
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--dur-1) var(--ease-out-quart); }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
a.link-plain, .btn, .site-nav a, .site-footer a.link-plain { text-decoration: none; }

/* ---- focus: yellow on navy, navy on sheet ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-1);
  box-shadow: 0 0 0 5px var(--focus-offset-color);
}
[data-surface="navy"] :focus-visible, [data-surface="navy"]:focus-visible { box-shadow: none; }
.skip-link {
  position: fixed; left: var(--s-4); top: var(--s-3); z-index: var(--z-skip);
  padding: var(--s-3) var(--s-5); background: var(--yellow); color: var(--navy); font-weight: var(--fw-semibold);
  border-radius: var(--r-2); text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: none; }

/* ---- buttons ----
   .btn is the base. Pair it with .btn--primary or .btn--outline. Colours come from the surface tokens,
   so the same class is yellow-on-navy on a navy field and navy-on-white on a sheet. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--touch); padding: 0.7rem 1.4rem;
  font-family: var(--font); font-size: var(--text-md); font-weight: var(--fw-semibold); line-height: 1.2; letter-spacing: 0.005em;
  border: 1.5px solid transparent; border-radius: var(--r-2);
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out-quart), border-color var(--dur-1) var(--ease-out-quart), color var(--dur-1) var(--ease-out-quart), transform var(--dur-2) var(--ease-out-expo);
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; transition: transform var(--dur-2) var(--ease-out-expo); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn--primary:hover { background: var(--btn-primary-bg-hover); }
.btn--primary:active { background: var(--btn-primary-bg-press); }
.btn--outline { background: transparent; color: var(--btn-outline-fg); border-color: var(--btn-outline-border); }
.btn--outline:hover { background: var(--btn-outline-bg-hover); border-color: currentColor; }
.btn--sm { min-height: var(--touch); padding: 0.5rem 1.1rem; font-size: var(--text-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }
/* text action with an arrow, for secondary routes inside a section */
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); font-weight: var(--fw-semibold); text-decoration: none; border-bottom: 1.5px solid var(--line-strong); }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow svg { width: 1.25rem; height: 1.25rem; transition: transform var(--dur-2) var(--ease-out-expo); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- layout utilities ----
   Section convention:  <section id="x" class="section" data-surface="navy|sheet" aria-labelledby="x-title">
                          <div class="container"> ... </div></section>
   .container is max 80rem with a fluid gutter; .container--narrow is 56rem.
   .grid-12 is a 12-column grid; place children with .col-5, .col-7 etc. (full width below 60rem). */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-6); }
.grid-12 > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 60rem) {
  .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; }
  .col-start-2 { grid-column-start: 2; } .col-start-6 { grid-column-start: 6; } .col-start-7 { grid-column-start: 7; } .col-start-8 { grid-column-start: 8; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.rule { border: 0; border-top: var(--hairline) solid var(--line); margin: 0; }

/* ---- reveal helper (assets/site.js). Content is visible by default.
   The helper nudges below-the-fold elements by transform only, then lets them settle. ---- */
.js [data-reveal].is-pending { transform: translate3d(0, 1.25rem, 0); }
.js [data-reveal] { transition: transform var(--dur-3) var(--ease-out-expo); transition-delay: calc(var(--reveal-i, 0) * 70ms); }

/* ---- reduced motion: static equivalent everywhere ---- */
@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: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal].is-pending { transform: none; }
}
@media print { .site-header, .site-footer { display: none; } }

/* ---- 15-wordmark.css ---- */
/* KAIMS wordmark: K·AI·MS, the KMS with AI inside.
   K and MS carry the surface's ink; AI is Signal Yellow. Navy surfaces only (yellow is never text on white).
   The letters are one word: no gaps, the yellow alone separates AI from the KMS around it. */

.wordmark {
  display: inline-flex; align-items: baseline;
  font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.01em;
  color: var(--white); white-space: nowrap;
  font-kerning: normal;
}
.wordmark > span { display: inline-block; }
.wordmark__ai { color: var(--yellow); }
[data-surface="navy"] .wordmark__ai::selection, .wordmark__ai::selection { color: var(--navy); }

/* header lockup: KAIMS | Prime Force */
.wordmark--nav { font-size: 1.875rem; letter-spacing: -0.005em; }

/* hero: the product name at logo scale, with its descriptor beside it */
.hero__brand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin: 0 0 var(--s-6); }
.wordmark--hero { font-size: clamp(3.25rem, 1.6rem + 4.4vw, 5.5rem); letter-spacing: -0.03em; }
.hero__descriptor {
  padding-left: var(--s-5); border-left: var(--hairline) solid var(--steel);
  font-size: var(--text-md); font-weight: var(--fw-medium); line-height: 1.3; color: var(--steel-soft);
  max-width: 14ch;
}
.hero__ai { color: var(--yellow); }

/* The one authored moment: the KMS opens and AI drops in between K and MS, like a plate slotting into the stack.
   The resting state is the full word; script measures AI and only then adds the motion (see 10-hero.html). */
.wordmark.is-assembling .wordmark__ms { transform: translateX(calc(var(--ai-w, 0.9em) * -1)); }
.wordmark.is-assembling .wordmark__ai { opacity: 0; transform: translateY(-0.55em); }
.wordmark.is-assembled .wordmark__ms {
  transition: transform 900ms var(--ease-out-expo) 350ms;
}
.wordmark.is-assembled .wordmark__ai {
  transition: opacity 450ms var(--ease-out-quart) 520ms, transform 900ms var(--ease-out-expo) 520ms;
}

/* footer: the wordmark leads, Prime Force signs below */
.site-footer__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); margin: 0; }
.wordmark--footer { font-size: 2.5rem; letter-spacing: -0.02em; }
.site-footer__descriptor { font-size: var(--text-md); font-weight: var(--fw-medium); color: var(--fg-muted); }
.site-footer__by { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-4) 0 var(--s-6); font-size: var(--text-sm); color: var(--fg-muted); }
.site-footer__by img { width: 120px; height: auto; }

@media (max-width: 59.99rem) {
  .hero__brand { margin-bottom: var(--s-5); }
  .hero__descriptor { padding-left: var(--s-4); }
}

/* ---- 20-chrome.css ---- */
/* Site chrome: sticky header, primary nav with mobile menu, footer. */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--navy);
  border-bottom: var(--hairline) solid transparent;
  transition: border-color var(--dur-2) var(--ease-out-quart), box-shadow var(--dur-2) var(--ease-out-quart);
}
.site-header.is-stuck { border-bottom-color: var(--navy-edge); box-shadow: 0 10px 24px -14px rgba(0, 10, 25, 0.55); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--nav-h); }
/* lockup: the KAIMS wordmark leads (home); the official Prime Force logo signs it after a hairline (prime-force.com) */
.site-header__brand { display: inline-flex; align-items: center; gap: var(--s-4); flex: none; }
.site-header__logo { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: none; color: var(--white); }
.site-header__pf-link { padding-left: var(--s-4); border-left: var(--hairline) solid var(--navy-edge); }
.site-header__pf { display: block; width: 120px; height: auto; }
@media (max-width: 23.5rem) { .site-header__pf { width: 100px; } .site-header__brand { gap: var(--s-3); } .site-header__pf-link { padding-left: var(--s-3); } }

/* Prime Force logo links (header and footer): a full touch target, a quiet dim on hover, the yellow focus ring on navy */
a.pf-link { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: none; transition: opacity var(--dur-2) var(--ease-out-quart); }
a.pf-link:hover { opacity: 0.78; }

.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.site-nav__list { display: flex; align-items: center; gap: clamp(var(--s-3), 1.6vw, var(--s-5)); list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--touch);
  padding-inline: var(--s-1);
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--white); letter-spacing: 0.005em; white-space: nowrap;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: var(--s-1); right: var(--s-1); bottom: 0.55rem; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out-expo);
}
.site-nav__list a:hover::after { transform: scaleX(0.35); }
.site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__cta { flex: none; }

.nav-toggle {
  display: none; width: var(--touch); height: var(--touch); margin-right: calc(var(--s-2) * -1);
  align-items: center; justify-content: center; background: transparent; color: var(--white);
  border: 1.5px solid var(--navy-edge); border-radius: var(--r-2);
}
.nav-toggle svg path { transition: transform var(--dur-3) var(--ease-out-expo); transform-origin: 12px 12px; transform-box: view-box; }
.nav-toggle[aria-expanded="true"] .nav-toggle__a { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__b { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 74.99rem) {
  .site-nav__list { gap: 0; }
  .site-nav__list a { font-size: 0.875rem; padding-inline: 0.5rem; }
  .site-nav__list a::after { left: 0.5rem; right: 0.5rem; }
  .site-nav { gap: var(--s-3); }
}
@media (max-width: 59.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    padding: var(--s-3) var(--gutter) var(--s-6);
    background: var(--navy); border-bottom: var(--hairline) solid var(--navy-edge);
    box-shadow: 0 24px 40px -20px rgba(0, 10, 25, 0.7);
    opacity: 0; visibility: hidden; transform: translate3d(0, -0.75rem, 0);
    transition: opacity var(--dur-2) var(--ease-out-quart), transform var(--dur-3) var(--ease-out-expo), visibility 0s linear var(--dur-3);
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__list a { width: 100%; min-height: 3.5rem; font-size: var(--text-xl); font-weight: var(--fw-medium); border-bottom: var(--hairline) solid var(--navy-edge); padding-inline: 0; }
  .js .site-nav__list a::after { left: 0; right: auto; width: 2.5rem; bottom: -1px; }
  .js .site-nav__cta { margin-top: var(--s-6); align-self: stretch; min-height: 3.25rem; font-size: var(--text-md); }
  /* no JS: the links wrap beneath the logo, nothing is hidden */
  html:not(.js) .site-header__bar { flex-wrap: wrap; padding-block: var(--s-2); }
  html:not(.js) .site-nav { flex-wrap: wrap; width: 100%; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
}

/* ---- footer ---- */
.site-footer { background: var(--navy); color: var(--fg); padding-block: var(--s-9) var(--s-6); border-top: var(--hairline) solid var(--navy-edge); }
.site-footer__brand img { width: 180px; height: 20px; }
.site-footer__tag { margin: var(--s-5) 0 var(--s-5); max-width: 36ch; color: var(--fg-muted); font-size: var(--text-md); }
.site-footer__title { margin: 0 0 var(--s-3); color: var(--fg-muted); font-size: var(--text-md); letter-spacing: 0; font-weight: var(--fw-semibold); line-height: var(--lh-ui); }
.site-footer__group ul { list-style: none; margin: 0; padding: 0; }
.site-footer__group a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--white); text-decoration: none; font-weight: var(--fw-medium); }
.site-footer__group a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-top: var(--s-8); padding-top: var(--s-5); border-top: var(--hairline) solid var(--navy-edge); }
.site-footer__base p { margin: 0; font-size: var(--text-sm); color: var(--fg-muted); max-width: 62ch; }
.site-footer__legal { color: var(--fg) !important; font-weight: var(--fw-medium); }
.site-footer__fine ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); list-style: none; margin: 0; padding: 0; }
.site-footer__fine a, .site-footer__fine span { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--text-sm); color: var(--fg-muted); }
.site-footer__fine a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.site-footer__fine a:hover { color: var(--white); text-decoration-color: var(--yellow); }
.site-footer__base { align-items: center; }
/* the two link groups each span three columns (a bare .col-start-7 would shrink the first to one column) */
@media (min-width: 60rem) {
  .site-footer__top .site-footer__group { grid-column: span 3; }
  .site-footer__top .site-footer__group.col-start-7 { grid-column: 7 / span 3; }
}

/* ---- 25-stack.css ---- */
/* PFStack diagram styles (assets/stack.js). Colours come from the diagram tokens of the surface it sits on. */

.pfs { position: relative; width: 100%; color: var(--fg); font-family: var(--font); }
.pfs__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; shape-rendering: geometricPrecision; }

.pfs-side-l { fill: var(--plate-side-l); }
.pfs-side-r { fill: var(--plate-side-r); }
.pfs-top { fill: var(--plate-top); }
.pfs-act-side-l { fill: var(--plate-active-side-l); }
.pfs-act-side-r { fill: var(--plate-active-side-r); }
.pfs-act-top { fill: var(--plate-active); }
.pfs-edge, .pfs-detail, .pfs-leader, .pfs-guide { fill: none; stroke-width: 1; stroke-linejoin: round; stroke-linecap: butt; }
.pfs-edge { stroke: var(--diag-line); }
.pfs-edge--ink { stroke: var(--plate-active-ink); }
.pfs-detail { stroke: var(--diag-line-soft); }
.pfs-detail--ink { stroke: var(--plate-active-ink); stroke-opacity: 0.55; }
.pfs-node { fill: var(--diag-line); stroke: none; }
.pfs-nodes.is-active .pfs-node { fill: var(--plate-active-ink); }
.pfs-leader { stroke: var(--diag-line); stroke-dasharray: 1; }
.pfs-leader.is-active { stroke: var(--active-text); }
.pfs-dot { fill: var(--diag-line); }
.pfs-dot.is-active { fill: var(--active-text); }
.pfs-guide { stroke: var(--diag-guide); stroke-dasharray: 2 4; }

.pfs-label { position: absolute; top: 0; left: 0; will-change: transform; pointer-events: none; }
.pfs-label > * { pointer-events: auto; }
.pfs-name {
  margin: 0; padding: 0; background: none; border: 0; text-align: left;
  font-size: var(--text-label); font-weight: var(--fw-semibold); letter-spacing: var(--track-label); text-transform: uppercase;
  line-height: 16px; color: var(--fg); transition: color var(--dur-2) var(--ease-out-quart);
}
.pfs-name.is-active { color: var(--active-text); }
.pfs-name--btn { cursor: pointer; min-height: var(--touch); display: block; padding-block: 14px 0; margin-block: -14px 0; }
.pfs-name--btn:hover { color: var(--active-text); }
.pfs-desc { margin: 4px 0 0; max-width: 34ch; font-size: var(--text-sm); line-height: 1.4; color: var(--fg-muted); }
.pfs-callouts { position: absolute; left: 0; right: 0; margin: 0; padding: 0; list-style: none; }
.pfs-callout { margin: 0 0 10px; max-width: 46ch; font-size: var(--text-sm); line-height: 21px; color: var(--fg); will-change: transform, opacity; }
.pfs-callout:last-child { margin-bottom: 0; }
.pfs-callout__title { font-weight: var(--fw-semibold); }
.pfs--narrow .pfs-name { letter-spacing: 0.1em; }
.pfs--narrow .pfs-desc { font-size: var(--text-sm); line-height: 1.35; }

/* ---- 30-hero.css ---- */
/* First viewport: navy field, headline left (5/12), exploded platform right (7/12). */

.hero {
  display: flex; align-items: center;
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(2rem, 1rem + 3.5vw, 4.5rem) clamp(2.5rem, 1rem + 4vw, 5rem);
  overflow-x: clip;
}
.hero > .container { width: 100%; }
.hero__grid { align-items: center; row-gap: var(--s-7); }
.hero__title { font-size: clamp(2.25rem, 0.6rem + 3.37vw, 3.625rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: var(--fw-semibold); text-wrap: balance; max-width: 15ch; }
.hero__lede { margin-top: var(--s-5); max-width: 34rem; font-size: var(--text-lg); line-height: 1.5; color: var(--fg-muted); }
.hero__actions { margin-top: var(--s-7); }
.hero__actions .btn { min-height: 3.25rem; padding-inline: 1.6rem; }

.hero__stack { position: relative; }
.hero-stack { position: relative; min-height: 22rem; }

/* fallback (no JavaScript): plates only, with the labels as a plain list below */
.hero-static__svg { width: 100%; height: auto; max-width: 24rem; margin-inline: auto; }
.hero-static__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); font-size: var(--text-sm); color: var(--fg-muted); }
.hero-static__list .label { display: block; color: var(--fg); }
.js .hero-static__list { display: none; }

@media (max-width: 74.99rem) {
  .hero__actions { gap: var(--s-3) 0.75rem; }
  .hero__actions .btn { padding-inline: 1.1rem; }
}
@media (max-width: 59.99rem) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero__title { max-width: 18ch; }
  .hero { padding-top: var(--s-6); }
  .hero__grid { row-gap: var(--s-6); }
  .hero__lede { margin-top: var(--s-4); font-size: var(--text-md); }
  .hero__actions { margin-top: var(--s-5); }
  .hero__actions .btn { min-height: 3rem; }
  .hero__actions .btn { flex: 1 1 14rem; }
}

/* every plate is treated the same: a small yellow node ends each leader line, the hero's one accent */
.hero .pfs-dot, .hero .pfs-dot.is-active { fill: var(--yellow); }
.hero .btn:hover svg.btn__down { transform: translateY(3px); }
/* yellow accents, equal on every plate: the inner pattern, its nodes and the leader lines */
.hero .pfs-detail { stroke: var(--yellow); stroke-opacity: 0.55; }
.hero .pfs-node { fill: var(--yellow); }
.hero .pfs-leader { stroke: var(--yellow); stroke-opacity: 0.8; }

/* ---- 35-problem.css ---- */
/* Problem: six places knowledge is stuck today, wired through one plate to what changes on one platform.
   Desktop: three columns. Dashed wires run from each pain into the plate, solid wires run out to its fix,
   and the rows share one height so the wires meet their rows. Phones: each pain sits above its fix.
   Static markup only: no script, not pinned. */

.problem__head { display: grid; gap: var(--s-4) var(--s-7); align-items: end; }
.problem__title { max-width: 16ch; }
.problem__lede { max-width: 34ch; color: var(--fg-muted); }

.problem__board { margin-top: var(--s-8); }
.problem__rows { list-style: none; margin: 0; padding: 0; }
.problem__pain, .problem__fix { margin: 0; position: relative; text-wrap: pretty; }
.problem__pain { font-size: var(--text-sm); line-height: 1.5; color: var(--fg-muted); text-wrap: balance; }
.problem__fix { font-size: var(--text-md); line-height: 1.45; font-weight: var(--fw-semibold); color: var(--fg); }
.problem__colhead { margin: 0; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--fg); }
.problem__colhead--pain { color: var(--fg-muted); }

/* the plate and the wires */
.problem__hub { position: relative; }
.problem__plate { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.problem__core { fill: var(--yellow); stroke: var(--navy); stroke-width: 1.5; }
.problem__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.problem__wires path { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1; }
.problem__in path { stroke: var(--diag-line-soft); stroke-dasharray: 3 4; }
.problem__out path { stroke: var(--diag-line); }

/* the end nodes: hollow where knowledge is stuck, solid where it lands */
.problem__pain::after, .problem__fix::before {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
}
.problem__pain::after { background: var(--bg); border: 1px solid var(--diag-line-soft); }
.problem__fix::before { background: var(--diag-line); }

@media (min-width: 64rem) {
  .problem__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .problem__lede { justify-self: end; }

  .problem__board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 26vw, 24rem) minmax(0, 1fr);
    grid-template-rows: auto repeat(6, minmax(5.5rem, 1fr));
    column-gap: 0;
  }
  .problem__rows, .problem__row { display: contents; }
  .problem__colhead { grid-row: 1; padding-bottom: var(--s-4); }
  .problem__colhead--pain { grid-column: 1; text-align: right; padding-right: var(--s-6); }
  .problem__colhead--fix { grid-column: 3; padding-left: var(--s-6); }

  .problem__pain, .problem__fix {
    grid-row: var(--r); align-self: stretch; display: flex; align-items: center;
    border-top: var(--hairline) solid var(--line);
  }
  .problem__row:last-child .problem__pain, .problem__row:last-child .problem__fix { border-bottom: var(--hairline) solid var(--line); }
  .problem__pain { grid-column: 1; justify-content: flex-end; text-align: right; padding: var(--s-4) var(--s-6) var(--s-4) 0; }
  .problem__fix { grid-column: 3; padding: var(--s-4) 0 var(--s-4) var(--s-6); }
  .problem__pain::after { right: -3.5px; }
  .problem__fix::before { left: -3.5px; }

  .problem__hub { grid-column: 2; grid-row: 2 / -1; display: grid; place-items: center; }
  .problem__plate { width: 78%; }
}

@media (max-width: 63.99rem) {
  .problem__colhead, .problem__wires { display: none; }
  .problem__hub { max-width: 18rem; margin: 0 auto var(--s-7); }
  .problem__row { position: relative; padding: var(--s-5) 0 var(--s-5) var(--s-6); border-top: var(--hairline) solid var(--line); }
  .problem__row:last-child { border-bottom: var(--hairline) solid var(--line); }
  .problem__fix { margin-top: var(--s-3); }
  .problem__pain::after, .problem__fix::before { left: calc(var(--s-6) * -1); top: 0.75em; }
  /* a short wire from the hollow node down to the solid one */
  .problem__pain::before {
    content: ""; position: absolute; left: calc(var(--s-6) * -1 + 3px); top: 0.75em;
    bottom: calc((var(--s-3) + 0.75em) * -1); width: 1px; background: var(--diag-line-soft);
  }
}

/* ---- 40-platform.css ---- */
/* Pinned chapters: "One platform, four layers" (src/sections/30-platform.html) and the chapter inside
   "Under the hood" (80-hood.html). Both are driven by assets/chapter.js and generated by tools/gen_platform.py.

   Default (no JavaScript, phones, short windows, reduced motion): every step is self-contained and stacked:
   a small static diagram that lifts its layer, a heading, one paragraph and the "In detail" specifics.
   Pinned (.is-pinned, set by chapter.js on wide, tall screens): one sticky stage holds the text panel and the
   exploded stack side by side, vertically centred together. The steps sit on top of each other in the panel and
   only the active one is visible. An invisible runway of one quarter-viewport marker per layer supplies the scroll,
   so one scroll is one layer. */

.platform { padding-block: var(--section-y) calc(var(--section-y) * 0.9); }
.chapter-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.chapter__head { max-width: 42rem; margin-bottom: var(--s-8); }
.chapter__head .lede { margin-top: var(--s-4); }
.chapter__stack, .chapter__runway, .chapter__rail { display: none; }

.chapter-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.chapter-step {
  display: flex; flex-direction: column; gap: var(--s-6);
  padding-block: var(--s-8);
  border-top: var(--hairline) solid var(--line);
}
.chapter-step:first-child { border-top: 0; padding-top: 0; }
.chapter-step:last-child { padding-bottom: 0; }
.chapter-step__fig { order: -1; margin: 0; }
.chapter-step__body { min-width: 0; max-width: 36rem; }
.chapter-step__title {
  font-size: clamp(1.5rem, 1.15rem + 1.45vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 18em;
}
.chapter-step__maps { margin: var(--s-3) 0 0; font-weight: var(--fw-semibold); color: var(--fg); }
.chapter-step__text { margin-top: var(--s-4); color: var(--fg-muted); }
.chapter-step__maps + .chapter-step__text { margin-top: var(--s-2); }
/* the diagram's callouts. Pinned, they are drawn beside the plates (and the list is visually hidden);
   stacked (phones, short windows, no JS, reduced motion) the same specifics are listed under "In detail" */
.chapter-step__body .chapter-step__marks {
  list-style: none; margin: var(--s-5) 0 0; padding: 0;
  font-size: var(--text-sm); line-height: 1.45; color: var(--fg-muted);
}
.chapter-step__body .chapter-step__marks::before {
  content: "In detail"; display: block; margin-bottom: var(--s-2);
  font-weight: var(--fw-semibold); color: var(--fg);
}
.chapter-step__marks li { position: relative; padding-left: 1.25rem; }
.chapter-step__marks li + li { margin-top: var(--s-2); }
/* a short leader line, the diagram's callout mark */
.chapter-step__marks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.75rem; height: 1px; background: var(--fg-muted); }

/* ---- small static diagram ---- */
.chapter-mini { width: 100%; max-width: 26rem; height: auto; overflow: visible; }
.chapter-mini--plain { max-width: 8.5rem; }
.mp-sl { fill: var(--mp-sl); }
.mp-sr { fill: var(--mp-sr); }
.mp-t { fill: var(--mp-t); }
.mp-d, .mp-e { fill: none; stroke-width: 1; stroke-linejoin: round; }
.mp-d { stroke: var(--mp-d); }
.mp-e { stroke: var(--mp-e); }
.mp-n { fill: var(--mp-n); }
.chapter-mini__plate {
  --mp-sl: var(--plate-side-l); --mp-sr: var(--plate-side-r); --mp-t: var(--plate-top);
  --mp-e: var(--diag-line); --mp-d: var(--diag-line-soft); --mp-n: var(--diag-line);
}
.chapter-mini__row--on .chapter-mini__plate {
  --mp-sl: var(--plate-active-side-l); --mp-sr: var(--plate-active-side-r); --mp-t: var(--plate-active);
  --mp-e: var(--plate-active-ink); --mp-d: rgba(0, 34, 68, 0.55); --mp-n: var(--plate-active-ink);
}
.chapter-mini__row { transition: transform var(--dur-4) var(--ease-out-expo); }
.chapter-mini__row--on { transform: translateY(-8px); }
.chapter-step__fig.is-pre .chapter-mini__row--on { transform: none; }
.chapter-mini__leader { fill: none; stroke: var(--diag-line); stroke-width: 1; }
.chapter-mini__row--on .chapter-mini__leader { stroke: var(--active-text); }
.chapter-mini__name {
  font-family: var(--font); font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: var(--track-label);
  text-transform: uppercase; fill: var(--fg-muted);
}
.chapter-mini__row--on .chapter-mini__name { fill: var(--active-text); }

/* ---- wide, not pinned (JavaScript off or reduced motion): diagram left, text right ---- */
@media (min-width: 62rem) {
  .chapter-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--grid-gap); align-items: start; }
  .chapter-step__fig { grid-column: 1; grid-row: 1; order: 0; position: sticky; top: calc(var(--nav-h) + var(--s-6)); }
  .chapter-step__body { grid-column: 2; grid-row: 1; }
}

/* ---- pinned: one sticky stage; the runway supplies the scroll, one marker per layer ---- */
/* touch: native scrolling, settling on a layer. A mouse wheel is not snapped by CSS (every notch would be pulled back to the
   same layer); chapter.js glides between layers for fine pointers instead. */
@media (pointer: coarse) { html.has-chapter { scroll-snap-type: y proximity; } }
@media (min-width: 62rem) and (min-height: 40rem) {
  .chapter.is-pinned .chapter__grid { display: grid; }
  .chapter.is-pinned .chapter__runway { display: block; grid-area: 1 / 1; pointer-events: none; }
  .chapter__marker { height: 25vh; height: 25svh; scroll-snap-align: start; scroll-margin-top: calc(var(--s-5) * -1); }
  /* the last marker also carries the stage's own height, so the last layer stays pinned for 0.15 of a screen */
  .chapter__marker:last-child { height: calc(115vh - var(--nav-h)); height: calc(115svh - var(--nav-h)); }
  .chapter.is-pinned .chapter__stage {
    grid-area: 1 / 1; align-self: start; position: relative;
    position: sticky; top: var(--nav-h);
    height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr);
    column-gap: var(--grid-gap); align-items: center;
    padding-block: var(--s-5);
  }
  .chapter.is-pinned .chapter__stack { display: block; grid-column: 2; grid-row: 1; height: 100%; max-height: 50rem; }
  /* the steps are layered in one panel; only the shown one is visible, so its heading never leaves the screen */
  .chapter.is-pinned .chapter-steps { grid-column: 1; grid-row: 1; align-self: stretch; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  /* chapter.js sets each step's margin-top so its heading sits on the level of its layer's name; at the top until then */
  .chapter.is-pinned .chapter-step {
    grid-area: 1 / 1; align-self: start; display: block; padding: 0; border: 0;
    opacity: 0; transform: translateY(0.75rem); pointer-events: none;
    transition: opacity var(--dur-1) var(--ease-out-quart), transform var(--dur-2) var(--ease-out-expo);
  }
  .chapter.is-pinned .chapter-step.is-shown {
    opacity: 1; transform: none; pointer-events: auto;
    transition: opacity var(--dur-2) var(--ease-out-quart) 120ms, transform var(--dur-3) var(--ease-out-expo) 120ms;
  }
  .chapter.is-pinned .chapter-step__fig { display: none; }
  .chapter.is-pinned .chapter-step__title { font-size: clamp(1.625rem, 0.7rem + 2.9vh, 2.375rem); }
  .chapter.is-pinned .chapter-step__body { max-width: 30rem; }
  /* the callouts live in the diagram; the same list stays available to assistive technology */
  .chapter.is-pinned .chapter-step__body .chapter-step__marks {
    display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0; list-style: none;
  }
  .chapter.is-pinned .chapter-step__marks::before { content: none; }

  /* progress rail: one segment per layer; the lit one is the layer on screen */
  .chapter.is-pinned .chapter__rail { display: flex; position: absolute; left: -0.5rem; bottom: var(--s-3); }
  .chapter__tick { position: relative; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; }
  .chapter__tick::before, .chapter__tick::after {
    content: ""; position: absolute; left: 0.5rem; right: 0.5rem; top: calc(50% - 1px); height: 2px;
    transform-origin: left center;
  }
  .chapter__tick::before { background: var(--diag-line); opacity: 0.45; transition: opacity var(--dur-2) var(--ease-out-quart); }
  .chapter__tick::after { background: var(--active-text); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out-expo); }
  .chapter__tick:hover::before { opacity: 1; }
  .chapter__tick.is-on::after { transform: scaleX(1); }
}

/* ---- phones ---- */
@media (max-width: 59.99rem) {
  .chapter__head { margin-bottom: var(--s-7); }
  .chapter-step { padding-block: var(--s-7); gap: var(--s-5); }
  .chapter-mini { max-width: 22rem; }
  .chapter-mini--plain { max-width: 7.5rem; }
}

/* no one-word last lines in lists and callouts */
.chapter li, .chapter .pfs-callout { text-wrap: pretty; }

/* ---- 50-flow.css ---- */
/* Flow: five plates on one line, drawn in the stack's language. The line passes under each plate corner to corner.
   Wide screens run left to right; below 70rem the line turns into a vertical spine. */

.flow__intro { max-width: var(--measure-narrow); }
.flow__intro .lede { margin-top: var(--s-4); }

ol.flow__steps {
  --plate-w: 10.5rem;
  list-style: none; margin: var(--s-8) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.flow__step { position: relative; padding-right: var(--s-5); }
.flow__plate { position: relative; z-index: 1; display: block; width: var(--plate-w); height: auto; overflow: visible; margin-left: calc(var(--plate-w) * -6 / 132); }

/* the pipeline: a 1px line at the height of the plate's left and right corners, plus a small arrow */
.flow__step::before {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0;
  top: calc(var(--plate-w) * 34 / 132); height: 1px; background: var(--diag-line);
  transform-origin: left center;
}
.flow__step::after {
  content: ""; position: absolute; z-index: 0; right: var(--s-3);
  top: calc(var(--plate-w) * 34 / 132 - 4px); width: 8px; height: 8px;
  border-top: 1.5px solid var(--diag-line); border-right: 1.5px solid var(--diag-line); transform: rotate(45deg);
}

.flow__text { margin-top: var(--s-5); }
.flow__name { font-size: clamp(1.25rem, 1.05rem + 0.45vw, 1.5rem); font-weight: var(--fw-semibold); letter-spacing: -0.01em; line-height: 1.2; }
.flow__text p { margin-top: var(--s-3); font-size: var(--text-md); line-height: 1.55; color: var(--fg-muted); max-width: 30ch; }

/* the AI inside each step: what it does, and the effort it takes away. Navy ink on the sheet (no yellow off navy). */
.flow__ai { margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--hairline) solid var(--line-strong); max-width: 30ch; }
.flow__text .flow__ai p { max-width: none; font-size: var(--text-sm); line-height: 1.5; }
.flow__text .flow__ai-does { margin-top: 0; color: var(--fg); }
.flow__ai-tag {
  display: inline-block; margin-right: 0.3em; padding: 0.05em 0.4em; border: 1.5px solid var(--fg); border-radius: var(--r-1);
  font-size: var(--text-xs); font-weight: var(--fw-bold); line-height: 1.3; letter-spacing: 0.02em; vertical-align: 0.08em;
}
.flow__text .flow__ai-saves { margin-top: var(--s-2); color: var(--fg-muted); }
.flow__ai-saves strong { font-weight: var(--fw-semibold); color: var(--fg); }

/* the last step ends the pipeline: no connector leaves it, on the line or on the spine */
.flow__step:last-child::before, .flow__step:last-child::after { display: none; }

/* the connectors are static: they read as part of the diagram, so nothing redraws on entry */

@media (max-width: 69.99rem) {
  ol.flow__steps { --plate-w: 6.5rem; grid-template-columns: minmax(0, 1fr); margin-top: var(--s-7); }
  .flow__step { display: grid; grid-template-columns: var(--plate-w) minmax(0, 1fr); column-gap: var(--s-5); align-items: start; padding: 0 0 var(--s-7); }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__plate { margin-left: 0; }
  .flow__text { margin-top: 0; }
  .flow__text p { max-width: 52ch; }
  .flow__ai { max-width: 52ch; }
  .flow__step::before {
    left: calc(var(--plate-w) / 2); right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: center top;
  }
  .flow__step:first-child::before { left: calc(var(--plate-w) / 2); top: calc(var(--plate-w) * 7 / 132); }
  .flow__step::after {
    right: auto; left: calc(var(--plate-w) / 2 - 4px); top: auto; bottom: calc(var(--s-7) / 2 - 4px);
    transform: rotate(135deg);
  }
}

/* ---- 52-gateway.css ---- */
/* AI Gateway: the governance chapter on the navy field. One path drawn as five nodes, six commitments as a
   ruled list, and a comparison set as a specification table that turns into labelled blocks on phones.
   No yellow apart from the AI in the wordmark (The AI Signal Exception). */

.gateway__head { align-items: start; row-gap: var(--s-6); }
.gateway__lede { margin-top: var(--s-5); max-width: 40rem; }
@media (min-width: 60rem) { ul.gateway-facts { grid-column: 8 / -1; } }

/* shared statement pattern: bold title, muted sentence, hairline above */
ul.gateway-facts, ul.gateway-points { list-style: none; margin: 0; padding: 0; }
.gateway-facts li, .gateway-points li { border-top: var(--hairline) solid var(--line); padding-block: var(--s-4); }
.gateway-facts strong, .gateway-points strong { display: block; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--fg); margin-bottom: var(--s-1); }
.gateway-facts span, .gateway-points span { display: block; font-size: var(--text-sm); line-height: 1.5; color: var(--fg-muted); max-width: 40rem; }

.gateway-block { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.gateway-block__title { font-size: var(--text-2xl); max-width: 36rem; text-wrap: balance; }
ul.gateway-points { margin-top: var(--s-6); display: grid; gap: 0 var(--grid-gap); }
@media (min-width: 48rem) { ul.gateway-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { ul.gateway-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gateway-points li { padding-block: var(--s-5); } }

/* the one path: five nodes every model call has to pass, with the optional review loop drawn above */
.spot-pipe { margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0; position: relative; }

.spot-pipe__record {
  display: flex; align-items: center; gap: var(--s-3);
  margin: 0 0 var(--s-5); max-width: none;
  font-size: var(--text-sm); line-height: 1.35; color: var(--fg-muted);
}
.spot-pipe__record::before, .spot-pipe__record::after { content: ""; flex: 1 1 1.5rem; height: 0.5rem; border-top: var(--hairline) solid var(--line-strong); }
.spot-pipe__record::before { border-left: var(--hairline) solid var(--line-strong); }
.spot-pipe__record::after { border-right: var(--hairline) solid var(--line-strong); }
.spot-pipe__record span { flex: 0 1 auto; max-width: 34rem; text-align: center; text-wrap: balance; }

.spot-pipe__loopzone { display: none; }
ol.spot-pipe__steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 0; }

.spot-step { position: relative; padding: 0 0 var(--s-6) calc(3rem + var(--s-4)); min-height: 3rem; }
.spot-step:last-child { padding-bottom: 0; }
.spot-step__node {
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1.5px solid var(--fg); background: var(--bg); color: var(--fg);
  display: grid; place-items: center; z-index: 1;
}
.spot-step__node svg { width: 1.5rem; height: 1.5rem; }
.spot-step--gate .spot-step__node { background: var(--fg); color: var(--bg); }
.spot-step__title { font-size: var(--text-xl); font-weight: var(--fw-semibold); line-height: 1.15; letter-spacing: -0.01em; padding-top: 0.5rem; }
.spot-step__text { margin: var(--s-2) 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--fg-muted); max-width: 30rem; }

/* connector between nodes: vertical on phones */
.spot-step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.5rem - 0.75px); top: calc(3rem + var(--s-2)); bottom: var(--s-2);
  border-left: 1.5px solid var(--line-strong); width: 0;
}
.spot-step:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.5rem - 4.5px); bottom: calc(var(--s-2) + 1px);
  width: 8px; height: 8px; border-right: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong);
  transform: rotate(45deg); transform-origin: center; margin-bottom: 0;
}
.spot-step--optional-next:not(:last-child)::after { border-left-style: dashed; }

@media (min-width: 60rem) {
  .spot-pipe__loopzone { display: block; position: relative; height: 3.5rem; margin-top: var(--s-4); --pitch: calc(20% + var(--s-5) / 5); }
  .spot-pipe__loop {
    position: absolute; bottom: 0; height: 100%;
    left: calc(2 * var(--pitch) + 1.5rem - 0.75px);
    width: calc(2 * var(--pitch) + 1.5px);
    border: 1.5px dashed var(--line-strong); border-bottom: 0;
  }
  .spot-pipe__loop::after { /* arrowhead: onto the model node */
    content: ""; position: absolute; left: -5.25px; bottom: 1px; width: 8px; height: 8px;
    border-right: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong);
    transform: rotate(45deg); transform-origin: center;
  }
  .spot-pipe__loop span {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -52%);
    background: var(--bg); padding-inline: var(--s-3);
    font-size: var(--text-sm); line-height: 1.35; color: var(--fg-muted); white-space: nowrap;
  }

  ol.spot-pipe__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-5); margin-top: 0; }
  .spot-step { padding: calc(3rem + var(--s-4)) 0 0; min-height: 0; }
  .spot-step__node { left: 0; }
  .spot-step__title { padding-top: 0; }
  .spot-step:not(:last-child)::after {
    left: calc(3rem + var(--s-2)); right: calc(var(--s-2) - var(--s-5)); top: calc(1.5rem - 0.75px); bottom: auto;
    border-left: 0; border-top: 1.5px solid var(--line-strong); width: auto; height: 0;
  }
  .spot-step--optional-next:not(:last-child)::after { border-left: 0; border-top-style: dashed; }
  .spot-step:not(:last-child)::before {
    left: auto; bottom: auto; top: calc(1.5rem - 4px); right: calc(var(--s-2) - var(--s-5) + 1px);
    transform: rotate(-45deg);
    border-right: 1.5px solid var(--line-strong); border-bottom: 0; border-top: 0; border-left: 0; border-bottom: 1.5px solid var(--line-strong);
  }
}


/* the comparison: three columns on wide screens, with ours set in full ink and the typical one muted */
.gateway-compare { margin-top: var(--s-6); }
.gateway-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--text-sm); line-height: 1.5; }
.gateway-table th, .gateway-table td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-5) var(--s-4) 0; }
.gateway-table thead th { padding-block: var(--s-3); font-size: var(--text-md); font-weight: var(--fw-semibold); line-height: 1.3; color: var(--fg); border-bottom: 1.5px solid var(--line-strong); vertical-align: bottom; }
.gateway-table thead th:last-child { color: var(--fg-muted); font-weight: var(--fw-medium); }
.gateway-table thead th:first-child { width: 22%; }
.gateway-table tbody tr { border-bottom: var(--hairline) solid var(--line); }
.gateway-table tbody th { font-size: var(--text-md); font-weight: var(--fw-semibold); line-height: 1.35; color: var(--fg); }
.gateway-table td { color: var(--fg); }
.gateway-table td:last-child { color: var(--fg-muted); }
.wordmark--inline { font-size: 1.25em; letter-spacing: -0.005em; vertical-align: -0.04em; margin-right: 0.1em; }
.gateway-note { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--fg-muted); max-width: 44rem; }

@media (max-width: 47.99rem) {
  .gateway-table, .gateway-table tbody, .gateway-table tr, .gateway-table th, .gateway-table td { display: block; width: auto; }
  .gateway-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gateway-table tbody tr { padding-block: var(--s-4); }
  .gateway-table tbody tr:first-child { border-top: 1.5px solid var(--line-strong); }
  .gateway-table tbody th { padding: 0 0 var(--s-2); }
  .gateway-table td { padding: var(--s-2) 0 0; }
  .gateway-table td::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--fg-muted); margin-bottom: 0.15rem; }
  .gateway-table td:first-of-type::before { color: var(--fg); }
}

/* ---- 55-spotlights.css ---- */
/* Spotlights: many organisations on one platform, multiple-language parity.
   Two different compositions, each with a line diagram that explains its mechanism.
   Diagrams are drawn at rest; text is HTML so it wraps and stays legible at phone width. */

.spotlights { padding-block: 0; }
.spotlights__head { padding-top: var(--section-y); }
.spotlights__lede { margin-top: var(--s-5); max-width: 44rem; }

.spot { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.spot--org { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.spot--lang { padding-bottom: var(--section-y); }
.spot--org { background: var(--bg-alt); }
.spot__sum { margin-top: var(--s-4); font-size: var(--text-lg); line-height: 1.5; color: var(--fg-muted); max-width: 34rem; }
.spot strong { color: var(--fg); }

/* shared text pattern: bold title, muted sentence */
ul.spot-facts, ul.spot-list, ul.spot-parity { list-style: none; margin: 0; padding: 0; }
.spot-facts li, .spot-list li, .spot-parity li { display: block; border-top: var(--hairline) solid var(--line-strong); padding-block: var(--s-4); }
.spot-facts li > strong, .spot-list li > strong, .spot-parity li > strong { display: block; font-weight: var(--fw-semibold); margin-bottom: var(--s-1); }
.spot-facts li > span, .spot-list li > span, .spot-parity li > span { display: block; color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 40rem; }
.spot-facts li > strong, .spot-list li > strong, .spot-parity li > strong { font-size: var(--text-md); }

/* ====== 1. Many organisations: the governed foundation plate, split into walled organisation spaces ====== */
.spot--org .spot__grid { align-items: center; row-gap: var(--s-7); }
.spot--org .spot__copy { padding-right: var(--s-3); }
ul.spot-list { margin-top: var(--s-6); }
.spot--org .spot-list li { border-top-color: var(--line-strong); }
@media (min-width: 60rem) {
  .spot--org .spot-orgs { order: -1; }
}
.spot-orgs, .spot-mirror { margin: 0; }

/* plate-and-leader diagrams (shared by sections 2 and 3). Same classes as the trust figure. */
.pl-svg { display: block; width: 100%; height: auto; max-width: 40rem; overflow: visible; }
.pl-svg--narrow { max-width: 21.25rem; }
.pl-svg--wide { display: none; }
@media (min-width: 36rem) { .pl-svg--narrow { display: none; } .pl-svg--wide { display: block; } }
.pl-t { fill: var(--fg); font-family: var(--font); font-size: 14.5px; font-weight: var(--fw-regular); }
.pl-t--head { font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: -0.005em; }
.pl-t--sm { font-size: 13.5px; }
.pl-t--reg { font-weight: var(--fw-regular); font-size: 14.5px; }
.pl-t--muted { fill: var(--fg-muted); }
.pl-cap { fill: var(--fg); font-family: var(--font); font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: var(--track-label); text-transform: uppercase; }
.pl-leader { fill: none; stroke: var(--diag-line); stroke-width: 1; }
.pl-dot { fill: var(--diag-line); }
.pl-probe { fill: none; stroke: var(--diag-line); stroke-width: 1.5; stroke-dasharray: 4 3; }

.spot-orgs__legend {
  display: flex; align-items: flex-start; gap: var(--s-3);
  margin-top: var(--s-5); font-size: var(--text-sm); line-height: 1.5; color: var(--fg-muted); max-width: 36rem;
}
.spot-legend-key { flex: none; width: 1.5rem; height: 0; margin-top: 0.7rem; border-top: 1.5px dashed var(--fg); position: relative; }
.spot-legend-key::after { content: ""; position: absolute; right: 0; top: -7px; height: 12px; border-right: 1.5px solid var(--fg); }

/* ====== 2. Multiple languages: one plate, read from either side ====== */
.spot--lang .spot__grid { align-items: center; row-gap: var(--s-7); }
.spot-pull {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: var(--hairline) solid var(--line-strong);
  font-size: var(--text-xl); line-height: 1.35; font-weight: var(--fw-medium); letter-spacing: -0.01em; color: var(--fg); max-width: 28rem;
}

ul.spot-parity { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 0 var(--grid-gap); }
@media (min-width: 48rem) { ul.spot-parity { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { ul.spot-parity { grid-template-columns: repeat(3, minmax(0, 1fr)); } .spot-parity li { padding-block: var(--s-5); } }

/* ---- 60-trust.css ---- */
/* Trust: a navy field, thin white line icons, facts set as type.
   Four groups with different spans; no equal card grid and no hero-metric row. */

.trust__lede { margin-top: var(--s-5); max-width: 44rem; }

.trust-group { margin-top: clamp(3rem, 2rem + 3.5vw, 5.5rem); padding-top: var(--s-6); border-top: var(--hairline) solid var(--line); }
.trust-group--lead { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.trust-group .grid-12 { row-gap: var(--s-6); }

.trust-group__title { display: flex; align-items: center; gap: var(--s-4); }
.trust-group__title h3 { font-size: var(--text-2xl); }
.trust-icon { flex: none; width: 2rem; height: 2rem; color: var(--fg); }
.trust-group__sum { margin-top: var(--s-4); color: var(--fg-muted); font-size: var(--text-lg); line-height: 1.5; max-width: 30rem; }

/* statements: bold title, muted sentence, separated by hairlines */
ul.trust-points { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.trust-points li { border-top: var(--hairline) solid var(--line); padding-block: var(--s-4); }
.trust-points strong { display: block; font-weight: var(--fw-semibold); color: var(--fg); margin-bottom: var(--s-1); }
.trust-points span { display: block; color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 40rem; }
.trust-group__body ul.trust-points { margin-top: 0; }
.trust-group__body > .trust-data + ul.trust-points { margin-top: var(--s-6); }
@media (min-width: 48rem) {
  ul.trust-points--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  ul.trust-points--cols li { padding-block: var(--s-5); }
}
.trust-note { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--fg-muted); }

/* targets: one labelled data set, set as a specification table (value right-aligned), never a big-number tile */
.trust-targets { margin: 0; border-top: 1.5px solid var(--line-strong); }
.trust-targets__label { margin: 0; padding-block: var(--s-3); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--fg); border-bottom: var(--hairline) solid var(--line); max-width: none; }
.trust-targets dl { margin: 0; padding: 0; }
.trust-targets dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); padding-block: var(--s-3); border-bottom: var(--hairline) solid var(--line); }
.trust-targets dt { font-size: var(--text-sm); line-height: 1.35; color: var(--fg-muted); }
.trust-targets dd { margin: 0; flex: none; font-size: var(--text-lg); font-weight: var(--fw-semibold); line-height: 1.2; font-variant-numeric: tabular-nums lining-nums; color: var(--fg); white-space: nowrap; }
.trust-group__body > .trust-targets + ul.trust-points { margin-top: var(--s-6); }

/* sovereignty diagram: plates and leader lines. The country is the base plate, the tenancy and the AI endpoints
   are raised plates above it, one controlled exit crosses the country edge, the vendor has no line in. */
.trust-sov { margin: 0; }
.pl-svg { display: block; width: 100%; height: auto; max-width: 40rem; overflow: visible; }
.pl-svg--narrow { max-width: 21.25rem; }
.pl-svg--narrow { display: block; }
.pl-svg--wide { display: none; }
@media (min-width: 36rem) { .pl-svg--narrow { display: none; } .pl-svg--wide { display: block; } }
.pl-t { fill: var(--fg); font-family: var(--font); font-size: 14.5px; font-weight: var(--fw-regular); }
.pl-t--head { font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: -0.005em; }
.pl-t--muted { fill: var(--fg-muted); }
.pl-cap { fill: var(--fg); font-family: var(--font); font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: var(--track-label); text-transform: uppercase; }
.pl-leader { fill: none; stroke: var(--diag-line); stroke-width: 1; }
.pl-leader--dots { stroke-dasharray: 1 5; stroke-linecap: round; }
.pl-dot { fill: var(--fg); }
@media (min-width: 60rem) { .trust-group--lead .trust-sov { position: sticky; top: calc(var(--nav-h) + var(--s-6)); } }

/* ---- 70-audiences.css ---- */
/* Audiences: a typographic comparison of three organisation types, then an ARIA role switcher.
   No cards, no icons above headings; hairlines and type scale carry the structure. */

#audiences { padding-bottom: 0; }
.audiences__title { max-width: 20ch; }

/* ---- three organisation types, aligned row by row ---- */
.orgs { margin-top: clamp(3rem, 2rem + 4vw, 6rem); display: grid; gap: var(--s-8); }
.org { min-width: 0; border-top: 2px solid var(--fg); padding-top: var(--s-5); }
.org__figure { margin: 0 0 var(--s-2); }

/* ---- the plate motif: each column is one plate whose pattern says what the column is ---- */
.org__plate { display: block; width: 100%; max-width: 24rem; height: auto; overflow: visible; }
.org-frame { fill: none; stroke: var(--diag-line); stroke-width: 1.5; stroke-linejoin: round; }
.org-tile { fill: var(--plate-side-l); stroke: var(--diag-line-soft); stroke-width: 1; stroke-linejoin: round; }
.org-tile--core { fill: var(--plate-top); stroke: var(--diag-line); }
.org-wire { fill: none; stroke: var(--diag-line); stroke-width: 1; stroke-opacity: 0.7; }
.org-src { fill: var(--plate-top); stroke: var(--diag-line); stroke-width: 1.25; }
.org-ghost { fill: none; stroke: var(--diag-line); stroke-width: 1; stroke-dasharray: 3 3; stroke-linejoin: round; }
.org-dot { fill: var(--diag-line); }
.org-dot--accent { fill: var(--accent); stroke: var(--diag-line); stroke-width: 1; }

/* arrival: only when the script has armed the figure; the drawn state above is always the fallback */
.org__figure.is-armed .org-tile:not(.org-tile--core) { opacity: 0; transform: translate3d(0, -10px, 0); }
.org__figure.is-armed .org-wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
.org__figure.is-armed .org-src, .org__figure.is-armed .org-dot--accent { opacity: 0; }
.org__figure.is-armed .org-lift { opacity: 0; transform: translate3d(0, -14px, 0); }
.org__figure.is-armed .org-frame { stroke-dasharray: 1; stroke-dashoffset: 1; }
.org__figure.is-in .org-tile:not(.org-tile--core), .org__figure.is-in .org-lift { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out-expo), transform var(--dur-4) var(--ease-out-expo); transition-delay: calc(120ms + var(--i, 0) * 60ms); }
.org__figure.is-in .org-wire, .org__figure.is-in .org-frame { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-4) var(--ease-out-expo); transition-delay: calc(120ms + var(--i, 0) * 60ms); }
.org__figure.is-in .org-src { opacity: 1; transition: opacity var(--dur-3) var(--ease-out-quart); transition-delay: calc(var(--i, 0) * 60ms); }
.org__figure.is-in .org-dot--accent { opacity: 1; transition: opacity var(--dur-3) var(--ease-out-quart) 700ms; }
.org__plate .org-tile, .org__plate .org-lift { transform-box: fill-box; }
.org__name { font-size: var(--text-xl); line-height: 1.12; letter-spacing: -0.015em; font-weight: var(--fw-semibold); max-width: 18ch; }
.org__lead { margin: var(--s-4) 0 var(--s-6); font-size: var(--text-md); line-height: 1.55; color: var(--fg-muted); max-width: 40ch; }
.org__points { list-style: none; margin: 0; padding: 0; }
.org__points li { border-top: var(--hairline) solid var(--line); padding-block: var(--s-4); font-size: var(--text-md); line-height: 1.5; max-width: 40ch; }
.org__points li:last-child { padding-bottom: 0; }

@media (min-width: 60rem) {
  .orgs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 1rem + 3vw, 4rem); row-gap: 0; gap: 0 clamp(2rem, 1rem + 3vw, 4rem); }
  @supports (grid-template-rows: subgrid) {
    .org { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .org__points { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
    .org__points li { height: 100%; }
    .org__lead { margin-bottom: var(--s-6); }
  }
}

/* ---- roles ---- */
.roles-band { margin-top: clamp(4.5rem, 3rem + 6vw, 8.5rem); background: var(--bg-alt); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.roles { align-items: start; row-gap: var(--s-6); }
.roles__title { font-size: var(--text-2xl); }
.roles__intro { margin-top: var(--s-4); color: var(--fg-muted); max-width: 30ch; }

/* no JavaScript: every role is visible, in a plain two-column flow */
.roles__panels { display: grid; gap: var(--s-7) var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.role__title { font-size: var(--text-xl); font-weight: var(--fw-semibold); padding-bottom: var(--s-3); border-bottom: 2px solid var(--fg); }
.role__gains { list-style: none; margin: 0; padding: 0; }
.role__gains li { border-top: var(--hairline) solid var(--line); padding-block: var(--s-4); line-height: 1.5; max-width: 44ch; }
.role__gains li:first-child { border-top: 0; }

/* with JavaScript: tabs on the left, one panel on the right */
.roles.is-tabs .roles__panels { display: block; min-height: var(--role-h, 0); }
.role[hidden] { display: none; }
.roles.is-tabs .role__gains { counter-reset: none; }
.roles.is-tabs .role__gains li { font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.75rem); line-height: 1.32; letter-spacing: -0.008em; font-weight: var(--fw-medium); max-width: 40ch; padding-block: var(--s-5); border-top: var(--hairline) solid var(--line-strong); }
.roles.is-tabs .role__gains li:first-child { border-top: 2px solid var(--fg); }
.roles.is-tabs .role:focus-visible { outline-offset: 8px; }

.roles__tabs [role="tablist"] { display: flex; flex-direction: column; margin-top: var(--s-6); border-bottom: var(--hairline) solid var(--line-strong); }
.roles__tab {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 3.5rem; padding: var(--s-3) var(--s-4);
  border: 0; border-top: var(--hairline) solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--fg); text-align: left;
  font-size: var(--text-lg); line-height: 1.25; font-weight: var(--fw-medium); letter-spacing: -0.005em;
  transition: background-color var(--dur-2) var(--ease-out-quart), color var(--dur-2) var(--ease-out-quart);
}
.roles__tab svg { flex: none; width: 1.25rem; height: 1.25rem; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-2) var(--ease-out-quart), transform var(--dur-3) var(--ease-out-expo); }
.roles__tab:hover { background: var(--bg); }
.roles__tab[aria-selected="true"] { background: var(--btn-primary-bg); color: var(--btn-primary-fg); font-weight: var(--fw-semibold); }
.roles__tab[aria-selected="true"] svg { opacity: 1; transform: none; }
.roles__tab:focus-visible { position: relative; z-index: 1; outline-offset: -3px; box-shadow: none; outline-color: var(--focus); }
.roles__tab[aria-selected="true"]:focus-visible { outline-color: var(--yellow); }

@keyframes role-in { from { opacity: 0; transform: translateY(14px); } }
.role.is-entering .role__gains li { animation: role-in var(--dur-3) var(--ease-out-expo) backwards; }
.role.is-entering .role__gains li:nth-child(2) { animation-delay: 70ms; }
.role.is-entering .role__gains li:nth-child(3) { animation-delay: 140ms; }

@media (min-width: 60rem) {
  .roles__nav { position: sticky; top: calc(var(--nav-h) + var(--s-6)); }
}
@media (max-width: 59.99rem) {
  .roles__intro { max-width: var(--measure); }
  /* phones and tablets: wrapping row of 44px tabs */
  .roles__tabs [role="tablist"] { flex-direction: row; flex-wrap: wrap; gap: var(--s-2); border-bottom: 0; margin-top: var(--s-5); }
  .roles__tab { width: auto; min-height: var(--touch); padding: var(--s-2) var(--s-4); font-size: var(--text-md); border: var(--hairline) solid var(--line-strong); border-radius: var(--r-2); background: var(--bg); }
  .roles__tab svg { display: none; }
  .roles__tab[aria-selected="true"] { border-color: var(--btn-primary-bg); }
  .roles__tab:focus-visible { outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .role.is-entering .role__gains li { animation: none; }
  .org__figure.is-armed * { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
}

.org__points li, .org__lead, .role__gains li, .roles__intro { text-wrap: pretty; }

/* ---- 80-hood.css ---- */
/* Under the hood: a second pinned chapter (five technical layers, with real technology names, the only place on
   the page), then the principles and what each component does. The chapter's layout is in 40-platform.css. */

.hood__head { max-width: 44rem; }
.hood__head .lede { margin-top: var(--s-5); max-width: 44rem; }
.hood-chapter { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
/* the diagram: wider callouts than the platform chapter, since components are short names */
.hood .pfs-desc { max-width: 52ch; }
.hood .pfs-callout { max-width: 52ch; }
.hood .pfs-callout__title { font-weight: var(--fw-semibold); }

/* stacked chapter steps: weight-led type, no tracked capitals */
.hood .chapter-step__title { font-size: var(--text-xl); letter-spacing: -0.01em; max-width: none; }
@media (min-width: 62rem) { .hood .chapter:not(.is-pinned) .chapter-step { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }

/* principles and component roles */
.hood__principles, .hood__tech { margin-top: clamp(4rem, 3rem + 5vw, 8rem); }
.hood__principles h3, .hood__tech h3 { font-size: var(--text-2xl); margin-bottom: var(--s-5); }

.hood-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-7); }
.hood-principles li { border-top: var(--hairline) solid var(--line); padding-block: var(--s-4); line-height: 1.5; }
.hood-principles li:last-child { border-bottom: var(--hairline) solid var(--line); }
.hood-principles strong { display: block; font-weight: var(--fw-semibold); font-size: var(--text-lg); line-height: 1.3; margin-bottom: var(--s-1); }
.hood-principles span { display: block; color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 44ch; }
@media (min-width: 48rem) {
  .hood-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hood-principles li:nth-last-child(2):nth-child(odd) { border-bottom: var(--hairline) solid var(--line); }
}

.hood-tech { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-6); }
.tech { border-top: var(--hairline) solid var(--line); padding-block: var(--s-4); }
.tech dt { font-weight: var(--fw-semibold); line-height: 1.3; }
.tech dd { margin: var(--s-1) 0 0; color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 40ch; }
@media (min-width: 48rem) {
  .hood-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 75rem) {
  .hood-tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tech dd, .hood-principles span { text-wrap: pretty; }

/* ---- 87-start.css ---- */
/* Start: how an organisation joins, as a rising staircase of four plates. The rule over each step climbs one riser
   to the next, so the path reads from the first organisation up to the whole group. Drawn in the stack's line language.
   Everything is drawn by default; the line draws in as each step enters the viewport (script adds .is-in). */

.start { --rise: 2.75rem; background: var(--bg-alt); }
.start__intro h2 { max-width: 20ch; }
.start__intro .lede { margin-top: var(--s-4); max-width: 40ch; }

ol.start__steps {
  list-style: none; margin: var(--s-7) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
}
.start__step { position: relative; margin-top: calc((3 - var(--i)) * var(--rise)); padding: var(--s-5) var(--s-5) 0 var(--s-4); }

/* the rule over a step, and the riser that lifts it to the next */
.start__step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--fg); transform-origin: left center; }
.start__step::after { content: ""; position: absolute; right: 0; top: calc(var(--rise) * -1); width: 2px; height: calc(var(--rise) + 2px); background: var(--fg); transform-origin: center bottom; }
.start__step:last-child::after {
  top: -4px; width: 9px; height: 9px; background: none;
  border-top: 2px solid var(--fg); border-right: 2px solid var(--fg); transform: rotate(45deg); transform-origin: center;
  right: 1px;
}

.start__plate { display: block; width: 100%; max-width: 11rem; height: auto; overflow: visible; }
.start__text { margin-top: var(--s-5); }
.start__name { font-size: clamp(1.25rem, 1.05rem + 0.45vw, 1.5rem); font-weight: var(--fw-semibold); letter-spacing: -0.01em; line-height: 1.2; max-width: 18ch; }
.start__text p { margin-top: var(--s-3); font-size: var(--text-md); line-height: 1.55; color: var(--fg-muted); max-width: 30ch; }

@keyframes start-draw-x { from { transform: scaleX(0); } }
@keyframes start-draw-y { from { transform: scaleY(0); } }
@keyframes start-arrow { from { opacity: 0; } }
.start__step.is-in::before { animation: start-draw-x var(--dur-4) var(--ease-out-expo) backwards; animation-delay: calc(var(--i) * 140ms); }
.start__step.is-in:not(:last-child)::after { animation: start-draw-y var(--dur-3) var(--ease-out-expo) backwards; animation-delay: calc(var(--i) * 140ms + 420ms); }
.start__step.is-in:last-child::after { animation: start-arrow var(--dur-3) var(--ease-out-quart) backwards; animation-delay: calc(var(--i) * 140ms + 600ms); }

/* measured, not assumed: the path ends in evidence. Statement left, the three measures as a ruled list right. */
.start__measure { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); padding-top: var(--s-6); border-top: 2px solid var(--fg); row-gap: var(--s-5); align-items: start; }
.start__measure-title { font-size: var(--text-2xl); }
.start__measure-text { margin-top: var(--s-4); font-size: var(--text-lg); line-height: 1.5; color: var(--fg-muted); max-width: 34rem; }
ul.start-measures { list-style: none; margin: 0; padding: 0; }
.start-measures li { border-top: var(--hairline) solid var(--line-strong); padding-block: var(--s-4); }
.start-measures li:first-child { border-top: 0; padding-top: 0; }
.start-measures strong { display: block; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--fg); margin-bottom: var(--s-1); }
.start-measures span { display: block; font-size: var(--text-sm); line-height: 1.5; color: var(--fg-muted); max-width: 40rem; }
@media (min-width: 60rem) { ul.start-measures { grid-column: 7 / -1; } }
@media (max-width: 59.99rem) { .start-measures li:first-child { border-top: var(--hairline) solid var(--line-strong); padding-top: var(--s-4); } }

/* narrow: the staircase flattens to a list, each step under its own rule */
@media (max-width: 59.99rem) {
  ol.start__steps { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-7); }
  .start__step { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--s-5); align-items: start; margin-top: 0; padding: var(--s-5) 0 var(--s-6); }
  .start__step::before { height: 1px; background: var(--line-strong); }
  .start__step:first-child::before { height: 2px; background: var(--fg); }
  .start__step::after, .start__step:last-child::after { display: none; }
  .start__plate { max-width: none; }
  .start__text { margin-top: 0; }
  .start__name { max-width: none; }
  .start__text p { max-width: 52ch; }
}

/* ---- 88-faq.css ---- */
/* FAQ: native details, two independent columns on desktop so opening one never moves the other. */

.faq__cols { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-8); align-items: start; margin-top: var(--s-7); }
.faq__col:first-child { border-top: 2px solid var(--fg); }
@media (min-width: 60rem) {
  .faq__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__col:last-child { border-top: 2px solid var(--fg); }
}

.faq__item { border-bottom: var(--hairline) solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 3.5rem; padding: var(--s-4) var(--s-3); margin-inline: calc(var(--s-3) * -1); cursor: pointer; list-style: none;
  border-radius: var(--r-1); transition: background-color var(--dur-2) var(--ease-out-quart);
}
.faq__item summary:hover { background: var(--bg-alt); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: var(--text-lg); font-weight: var(--fw-medium); letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
.faq__item summary svg { flex: none; width: 1.5rem; height: 1.5rem; transition: transform var(--dur-3) var(--ease-out-expo); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item[open] summary h3 { font-weight: var(--fw-semibold); }
.faq__item p { margin: 0; padding: var(--s-1) var(--s-7) var(--s-5) 0; max-width: 58ch; line-height: 1.6; }

/* ---- 90-closing.css ---- */
/* Closing: the last navy field. The stack that opened the page, assembled into one block. */

.closing { padding-block: calc(var(--section-y) * 1.1); border-bottom: var(--hairline) solid var(--line); }
.closing__grid { align-items: start; row-gap: var(--s-8); }
.closing h2 { font-size: var(--text-4xl); line-height: var(--lh-tight); letter-spacing: -0.025em; max-width: 16ch; }
.closing .lede { margin-top: var(--s-5); max-width: 40ch; }
.closing__actions { margin-top: var(--s-7); }
.closing__actions .btn { min-height: 3.25rem; padding-inline: 1.6rem; }

.closing__art { width: 100%; max-width: 22rem; margin-top: var(--s-8); }
.closing__svg { display: block; width: 100%; height: auto; overflow: visible; }
/* the plates are assembled by default. When the art enters the viewport they settle once from apart into one block. */
@keyframes closing-settle { from { transform: translateY(calc((var(--k) - 3) * 38px)); } }
.closing__art.is-in .closing__lift { animation: closing-settle 1500ms var(--ease-out-expo) backwards; animation-delay: calc((3 - var(--k)) * 70ms); }

/* demo request form: hairline-ruled fields on the navy field, square corners, yellow only on the submit and focus */
.closing__form { scroll-margin-top: calc(var(--nav-h) + var(--s-5)); }
@media (min-width: 60rem) { .closing__form { grid-column: 7 / -1; } }
.demo-form { border-top: 2px solid var(--fg); padding-top: var(--s-5); }
.demo-form__title { font-size: var(--text-2xl); }
.demo-form__note { margin-top: var(--s-2); font-size: var(--text-sm); color: var(--fg-muted); }
.demo-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s-5); }
@media (min-width: 36rem) { .demo-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.demo-field { margin-top: var(--s-5); }
.demo-field label, .demo-topics legend { display: block; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--fg); margin-bottom: var(--s-2); }
.demo-field__opt { font-weight: var(--fw-regular); color: var(--fg-muted); }
.demo-field input, .demo-field textarea {
  display: block; width: 100%; min-height: var(--touch); padding: 0.65rem 0.85rem;
  background: var(--bg-alt); color: var(--fg); border: 1.5px solid var(--line-strong); border-radius: var(--r-2);
  font-size: var(--text-md); line-height: 1.4; transition: border-color var(--dur-2) var(--ease-out-quart);
}
.demo-field textarea { resize: vertical; min-height: 6rem; }
.demo-field input:hover, .demo-field textarea:hover { border-color: var(--fg-muted); }
.demo-field input:focus-visible, .demo-field textarea:focus-visible { border-color: var(--fg); outline-offset: 2px; }
.demo-field input[aria-invalid="true"] { border-color: var(--fg); border-width: 2px; }
.demo-field__error { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--text-sm); line-height: 1.4; color: var(--fg); }
.demo-field__error[hidden] { display: none; }
.demo-field__error svg { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.05rem; }

.demo-topics { margin: var(--s-5) 0 0; padding: 0; border: 0; min-width: 0; }
.demo-topics__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s-5); }
@media (min-width: 36rem) { .demo-topics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-check { display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--touch); padding-block: 0.6rem; font-size: var(--text-sm); line-height: 1.4; color: var(--fg); cursor: pointer; }
.demo-check input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0.05rem 0 0; }

.demo-form__actions { margin-top: var(--s-6); }
.demo-form__actions .btn { min-height: 3.25rem; padding-inline: 1.6rem; }
.demo-form__status { margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--hairline) solid var(--line); font-size: var(--text-sm); line-height: 1.5; color: var(--fg-muted); }
.demo-form__status[hidden] { display: none; }
.demo-form__status strong { color: var(--fg); }
.demo-form__status p + p { margin-top: var(--s-2); }
.demo-form__status a { color: var(--fg); }
.demo-form__copy { margin-top: var(--s-4); }

@media (max-width: 59.99rem) {
  .closing__art { display: none; }
}

