/* Scalable Governance — site styles
   World: a continuous change of scale, after the Eames film "Powers of Ten".
   Blue-black ink on white paper; pale grey frames carry the opening, the zoom
   through the three levels and the contact. One ultramarine marks the active
   frame, the active ring and the primary action. */

:root {
  /* Ink, the main text colour: a near-neutral blue-black */
  --navy: oklch(0.21 0.025 265);

  /* Tinted sections ("frames"): the opening, the zoom, the contact */
  --frame: oklch(0.968 0.006 265);
  --frame-raise: oklch(0.995 0 0);
  --frame-line: oklch(0.885 0.012 268);
  --frame-line-strong: oklch(0.72 0.025 268);
  --frame-ink: var(--navy);
  --frame-text: oklch(0.32 0.04 268);
  --frame-muted: oklch(0.47 0.03 268);

  /* Ultramarine, the one action colour */
  --accent: oklch(0.46 0.21 266);
  --accent-hover: oklch(0.39 0.19 266);
  --on-accent: oklch(0.995 0 0);
  --accent-text: oklch(0.44 0.21 266);
  --accent-tint: oklch(0.93 0.035 266);

  /* Paper */
  --paper: oklch(0.995 0 0);
  --paper-2: oklch(0.975 0.006 268);
  --line: oklch(0.90 0.01 268);
  --line-strong: oklch(0.80 0.015 268);
  --ink: var(--navy);
  --text: oklch(0.32 0.04 268);
  --text-2: oklch(0.42 0.03 268);
  --muted: oklch(0.49 0.025 268);

  /* Diagram roles. The old names stay as aliases because inline SVG in the
     pages references them. */
  --blue: oklch(0.36 0.12 266);      /* governance, regulator */
  --violet: oklch(0.50 0.10 222);    /* product, intermediaries (deep cyan) */
  --indigo: var(--navy);             /* regulated target */
  --surface: var(--paper);
  --on-blue: oklch(0.995 0 0);
  --domain-gov: oklch(0.955 0.016 268);
  --domain-human: oklch(0.975 0.004 268);
  --domain-product: oklch(0.955 0.025 222);

  /* Scoped roles */
  --bg-local: var(--paper);
  --fg: var(--ink);
  --fg-body: var(--text);
  --fg-2: var(--text-2);
  --fg-muted: var(--muted);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --focus: var(--navy);
  --link-line: var(--accent);

  /* Type */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: Literata, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 48px;
  --nav-h: 64px;
  --nav-offset: 88px;
}

.frame {
  --bg-local: var(--frame);
  --fg: var(--frame-ink);
  --fg-body: var(--frame-text);
  --fg-2: var(--frame-text);
  --fg-muted: var(--frame-muted);
  --rule: var(--frame-line);
  --rule-strong: var(--frame-line-strong);
  background: var(--frame);
  color: var(--frame-text);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  -webkit-text-size-adjust: 100%;
  accent-color: var(--accent);
  scrollbar-color: var(--line-strong) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  caret-color: var(--accent-text);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-text); text-decoration-color: currentColor; }

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

h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--accent-tint); color: var(--navy); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 15px/1.2 var(--font-display);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Frame corners: the yellow square the film draws around what comes next. */
.frame-mark {
  --mark: var(--accent);
  --mark-len: 18px;
  --mark-w: 2px;
  background:
    linear-gradient(var(--mark) 0 0) top left / var(--mark-len) var(--mark-w),
    linear-gradient(var(--mark) 0 0) top left / var(--mark-w) var(--mark-len),
    linear-gradient(var(--mark) 0 0) top right / var(--mark-len) var(--mark-w),
    linear-gradient(var(--mark) 0 0) top right / var(--mark-w) var(--mark-len),
    linear-gradient(var(--mark) 0 0) bottom left / var(--mark-len) var(--mark-w),
    linear-gradient(var(--mark) 0 0) bottom left / var(--mark-w) var(--mark-len),
    linear-gradient(var(--mark) 0 0) bottom right / var(--mark-len) var(--mark-w),
    linear-gradient(var(--mark) 0 0) bottom right / var(--mark-w) var(--mark-len);
  background-repeat: no-repeat;
}

/* ───────── Nav ───────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(0.995 0 0 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Taller at the top of the page; settles to --nav-h once scrolling starts. */
  height: calc(var(--nav-h) + var(--nav-grow, 28px) * (1 - var(--t, 1)));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--frame-ink);
  text-decoration: none;
}
.brand:hover { background: none; color: var(--frame-ink); }
/* The logo is the one blue mark in the bar: large at the top of the page, shrinking as it scrolls. */
.brand__logo {
  --logo: calc(34px + var(--logo-grow, 22px) * (1 - var(--t, 1)));
  width: var(--logo);
  height: var(--logo);
  flex: none;
  fill: none;
  stroke: var(--accent);
}
/* Fine lines, like the rings on the page; the width stays the same as the logo scales. */
.brand__logo circle, .site-footer__logo circle { stroke-width: 1.75px; vector-effect: non-scaling-stroke; }
.site-footer__logo circle { stroke-width: 1.5px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 700 calc(17px + 3px * (1 - var(--t, 1)))/1.1 var(--font-display); letter-spacing: -0.01em; }
.brand__tagline { font: 400 12.5px/1.3 var(--font-display); color: var(--frame-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font: 500 15px/1 var(--font-display);
  color: var(--frame-text);
  text-decoration: none;
}
.nav-links a:hover { background: var(--paper-2); color: var(--navy); }
.nav-links a[aria-current="page"],
.nav-links__group:has(a[aria-current="page"]) > a { color: var(--accent-text); }
.nav-links__group { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 40px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--frame-muted);
  cursor: pointer;
}
.nav-sub-toggle svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-sub-toggle:hover { color: var(--frame-ink); }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 2;
  display: none;
  min-width: 270px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px oklch(0.23 0.06 268 / 0.12);
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-links__group:hover .nav-sub,
.nav-links__group.is-open .nav-sub { display: block; }
.nav-sub a { display: flex; width: 100%; padding: 0 12px; min-height: 42px; }
.nav-links .nav-links__cta {
  margin-left: 12px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.nav-links .nav-links__cta:hover { background: var(--accent-hover); color: var(--on-accent); }

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  font: 600 14px/1 var(--font-display);
  color: var(--frame-ink);
  background: transparent;
  border: 1.5px solid var(--frame-line-strong);
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--navy); background: var(--navy); color: var(--paper); }

/* ───────── Buttons ───────── */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { color: var(--fg); border-color: var(--rule-strong); background: transparent; }
.btn--secondary:hover { border-color: var(--fg); background: var(--fg); color: var(--bg-local); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--md { min-height: 52px; padding: 0 26px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

/* ───────── Shared type ───────── */
.section-title {
  margin: 0 0 24px;
  font: 700 clamp(30px, 4vw, 52px)/1.05 var(--font-display);
  letter-spacing: -0.028em;
  color: var(--fg);
}
.lead {
  margin: 0;
  max-width: 64ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.lead--dark { color: var(--fg-body); }

/* Claim marks: every statement says whether it is a finding, an argument or an aim. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 13px/1.3 var(--font-display);
  color: var(--fg-2);
}
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border: 1.5px solid currentColor;
}
.status--aim::before { background: var(--accent); border-color: var(--accent); }
.status--aim { color: var(--accent-text); }

/* ───────── Hero: the opening frame ───────── */
.hero { position: relative; overflow: hidden; }
.hero__inner, .why__inner { position: relative; z-index: 2; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 48px 64px;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 120px;
}
.hero h1 {
  margin: 0 0 28px;
  font: 700 clamp(38px, 4.3vw, 62px)/1.03 var(--font-display);
  letter-spacing: -0.032em;
  color: var(--frame-ink);
}
.hero .lead { margin-bottom: 16px; font-size: 18px; }
.hero__text { padding-top: 64px; }
.hero__affiliation { margin: 0 0 36px; font-size: 16px; color: var(--frame-muted); }
.hero__affiliation a { color: var(--frame-text); }

/* The logo's rings rise out of the hero and open behind the argument below it.
   Drawn above both sections' backgrounds and below their content. */
.opening { overflow: clip; }
.why { position: relative; }
.opening__rings {
  --rings-w: min(62vw, 900px);
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(-0.34 * var(--rings-w));
  width: var(--rings-w);
  /* --parallax (px) is set by main.js: the rings trail the scroll, so they read as further back. */
  transform: translate3d(-50%, calc(var(--parallax, 0) * 1px), 0);
  will-change: transform;
  fill: none;
  stroke: var(--frame-line);
  stroke-width: 1.5;
  pointer-events: none;
}
.opening__rings circle { vector-effect: non-scaling-stroke; }
/* All three stay in the line colour here: the blue inner ring would cross the argument's text.
   The zoom section below picks the rings up again with the active one in blue. */

/* Hero chart: five measures of how fast AI is moving (data/acceleration.json). */
.chart-slot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 22px 24px 24px;
}
/* No script or no data: no empty chart frame. */
html:not(.js) .accel, .accel--unavailable { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accel { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; padding: 22px 24px 24px; font-variant-numeric: tabular-nums; }
.accel__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.accel__tab {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--frame-line); background: transparent;
  font: 500 14px/1 var(--font-display); color: var(--frame-muted);
  cursor: pointer; transition: border-color .18s, color .18s;
}
.accel__tab:hover { border-color: var(--frame-line-strong); color: var(--navy); }
.accel__tab[aria-selected="true"] { border-color: var(--accent); color: var(--navy); font-weight: 600; }
.accel__panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.accel__stack { display: grid; min-width: 0; }
.accel__stack > * { grid-area: 1 / 1; visibility: hidden; }
.accel__stack > .is-current { visibility: visible; }
.accel__stat { margin: 4px 0 0; font: 700 clamp(28px, 2.9vw, 40px)/1.08 var(--font-display); letter-spacing: -0.025em; color: var(--navy); text-wrap: balance; }
.accel__plot { position: relative; min-width: 0; }
.accel__plot svg { display: block; width: 100%; overflow: visible; }
.accel .ax text { font: 500 12px var(--font-display); fill: var(--frame-muted); }
.accel .ax .ax__title { font-weight: 600; fill: var(--frame-text); }
.accel .grid line { stroke: var(--frame-line); stroke-width: 1; }
.accel .base { stroke: var(--frame-line-strong); stroke-width: 1; }
.accel .yr { stroke: var(--frame-line-strong); }
.accel .line { fill: none; stroke: var(--navy); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.accel .line--other { stroke: oklch(0.80 0.015 268); stroke-width: 1.5; }
.accel .line--draw { animation: accel-draw .7s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes accel-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.accel .hit-line { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.accel .dot { fill: var(--navy); stroke: var(--frame); stroke-width: 2; }
.accel .val { font: 700 13px var(--font-display); fill: var(--navy); paint-order: stroke; stroke: var(--frame); stroke-width: 4px; stroke-linejoin: round; }
.accel .hit { fill: transparent; cursor: pointer; }
.accel .hit:focus-visible { outline: none; stroke: var(--accent); stroke-width: 2; }
.accel__tip {
  position: absolute; z-index: 2; pointer-events: none;
  min-width: 150px; max-width: 240px; padding: 9px 12px;
  background: var(--navy); color: var(--frame);
  font: 400 13px/1.45 var(--font-display);
  transform: translate(-50%, calc(-100% - 12px));
}
.accel__tip b { display: block; font-weight: 700; font-size: 14px; }
.accel__tip span { display: block; color: oklch(0.85 0.02 268); }
.accel__src { display: flex; align-items: baseline; gap: 12px; min-width: 0; margin: -2px 0 0; font: 400 13px/1.5 var(--font-display); color: var(--frame-muted); }
.accel__src-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.accel__src a, .accel__more a { color: var(--frame-text); }
.accel__more-btn {
  flex: none; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: 600 13px/1.5 var(--font-display); color: var(--accent-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.accel__more-btn:hover { color: var(--navy); }
.accel__more { margin: -4px 0 0; font: 400 13px/1.55 var(--font-display); color: var(--frame-muted); }
.accel__more p { margin: 0 0 4px; overflow-wrap: anywhere; }
.accel__notes { padding-top: 14px; border-top: 1px solid var(--frame-line); }
.accel__note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 28px; align-content: start; }
.accel__note--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.accel__cap { margin: 0; font-size: 15px; line-height: 1.6; color: var(--frame-text); text-wrap: pretty; max-width: 68ch; }
.accel__sizes { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 7px 10px; align-items: center; margin: 0; font: 400 13px/1.3 var(--font-display); color: var(--frame-text); }
.accel__sizes .track { display: block; height: 8px; background: var(--frame-line); }
.accel__sizes .bar { display: block; height: 8px; background: var(--navy); }
.accel__sizes .num { font-weight: 700; color: var(--navy); text-align: right; }
.accel__sizes .cap { grid-column: 1 / -1; color: var(--frame-muted); }
@media (prefers-reduced-motion: reduce) {
  .accel .line--draw { animation: none; }
  .accel__tab { transition: none; }
}

/* ───────── Why it has to scale ───────── */
.why__inner { padding-block: 112px 104px; }
.why .section-title { margin-bottom: 56px; }
/* Three steps on one rule that shifts from ink to the accent; an arrowhead carries each step
   into the next, coloured where it sits on the gradient. */
.beats {
  --beat-gap: 56px;
  --from: var(--ink);
  --to: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--beat-gap);
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.beats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--from), var(--to));
}
.beat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; }
.beat + .beat::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -12px;
  border: 6px solid transparent;
  border-left: 10px solid var(--arrow);
  border-right: 0;
}
.beat:nth-child(2) { --arrow: color-mix(in oklch, var(--from), var(--to) 36%); }
.beat:nth-child(3) { --arrow: color-mix(in oklch, var(--from), var(--to) 70%); }
.beat__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font: 600 16px/1.2 var(--font-display);
  color: var(--ink);
}
/* Step titles read like the subpage summaries: the reading serif at lead size, with the marker. */
.beat__title { margin: 0; font: 400 22px/1.45 var(--font-body); letter-spacing: 0; color: var(--fg); }
.beat p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); max-width: 60ch; }
.why__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
/* The steps and the button share one grid: the third step runs down beside the button,
   so the button follows the first two steps instead of waiting for the longest column. */
@media (min-width: 1081px) {
  .why__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 56px; }
  .why__body .beats { grid-column: 1 / -1; grid-row: 1 / -1; grid-template-columns: subgrid; grid-template-rows: subgrid; margin: 0; }
  .why__body .beat:nth-child(1) { grid-area: 1 / 1; }
  .why__body .beat:nth-child(2) { grid-area: 1 / 2; }
  .why__body .beat:nth-child(3) { grid-column: 3; grid-row: 1 / -1; }
  .why__body .why__actions { grid-column: 1 / 3; grid-row: 2; align-self: start; margin-top: 40px; }
}

/* ───────── The three levels: a zoom out through the rings ───────── */
/* Heading and definition sit in the text column, above the level buttons, beside the rings. */
.levels__intro { margin-bottom: 36px; }
.levels__intro .section-title { margin-bottom: 16px; }
.levels__intro .lead { font-size: 18px; max-width: 48ch; }
.levels:not(.is-scrolly) .levels__stage { padding-top: 112px; }
.levels .lead { color: var(--frame-text); }
.levels__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px 72px;
  padding-bottom: 112px;
}
.levels__nav { display: none; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.levels__btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--frame-line);
  background: transparent;
  color: var(--frame-muted);
  font: 500 15px/1 var(--font-display);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.levels__btn:hover { color: var(--frame-ink); border-color: var(--frame-line-strong); }
.levels__btn[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.levels__list { display: flex; flex-direction: column; gap: 36px; margin: 0; padding: 0; list-style: none; }
.level__name {
  margin: 0 0 12px;
  font: 700 clamp(28px, 3.2vw, 44px)/1.05 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--frame-ink);
}
.level p { margin: 0; max-width: 46ch; font-size: 19px; line-height: 1.6; color: var(--frame-text); }
.level .level__note { margin-top: 16px; font-size: 16px; color: var(--accent-text); }

.levels__view { position: relative; aspect-ratio: 1; padding: 28px; overflow: hidden; }
.levels__rings { display: block; width: 100%; height: 100%; overflow: visible; fill: none; }
.levels__rings .ring {
  stroke: var(--frame-line-strong);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s;
}
.levels__rings .ring.is-active { stroke: var(--accent); stroke-width: 3.5; }
.levels__readout {
  position: absolute;
  left: 22px;
  bottom: 16px;
  padding: 6px;
  background: var(--frame);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 600 14px/1 var(--font-display);
  color: var(--frame-ink);
}
.levels__steps { display: flex; gap: 5px; }
.levels__steps i { width: 8px; height: 8px; border: 1.5px solid var(--frame-line-strong); }
.levels__steps i.is-on { background: var(--accent); border-color: var(--accent); }

/* Scroll-driven mode, switched on by main.js unless motion is reduced. */
.levels.is-scrolly .levels__track { height: 320svh; }
.levels.is-scrolly .levels__stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  padding-block: 32px;
}
/* After the first pass the zoom settles: normal height, buttons and rings switch levels in place. */
.levels:is(.is-scrolly, .is-settled) .levels__nav { display: flex; }
.levels:is(.is-scrolly, .is-settled) .levels__list { display: grid; }
.levels:is(.is-scrolly, .is-settled) .level {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s;
}
.levels:is(.is-scrolly, .is-settled) .level.is-active { opacity: 1; transform: none; filter: none; }
.levels.is-settled .levels__view { cursor: pointer; }
.levels.is-scrolly .levels__view { max-height: calc(100svh - var(--nav-h) - 64px); justify-self: center; width: 100%; max-width: calc(100svh - var(--nav-h) - 64px); cursor: pointer; }

/* ───────── Reveal on first scroll (main.js adds .reveal only with motion allowed) ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* ───────── Research ───────── */
.research > .container { padding-block: 112px; }
.research__intro { margin-bottom: 56px; }

.pubs {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.pubs__list { display: flex; flex-direction: column; background: var(--paper-2); border-right: 1px solid var(--line-strong); }
.pubs__tab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.18s;
}
.pubs__tab:hover { background: oklch(0.935 0.004 255); }
.pubs__tab:focus-visible { outline-offset: -4px; }
.pubs__title { order: -1; font: 700 17px/1.3 var(--font-display); color: var(--ink); }
.pubs__venue { font: 600 14px/1.3 var(--font-display); color: var(--text-2); }
.pubs__kind { font-size: 14px; line-height: 1.4; color: var(--muted); }
.pubs__tab[aria-selected="true"] { background: var(--navy); }
.pubs__tab[aria-selected="true"] .pubs__title { color: var(--paper); }
.pubs__tab[aria-selected="true"] .pubs__venue { color: oklch(0.84 0.08 266); }
.pubs__tab[aria-selected="true"] .pubs__kind { color: oklch(0.82 0.03 268); }

.pubs__details { position: relative; }
.paper { display: flex; flex-direction: column; gap: 14px; padding: 40px 48px 44px; }
.paper + .paper { border-top: 1px solid var(--line); }
.js .paper + .paper { border-top: 0; }
.js .paper[hidden] { display: none; }
.paper p { margin: 0; }
.paper__title { order: -1; margin: 0; font: 700 28px/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.paper__sub { display: block; margin-top: 8px; font: 400 18px/1.45 var(--font-body); letter-spacing: 0; color: var(--text-2); text-wrap: pretty; }
.paper__venue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 15px/1.4 var(--font-display); color: var(--blue); }
.badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 12px/1.2 var(--font-display);
  white-space: nowrap;
}
.paper__authors { font: 600 15px/1.5 var(--font-display); color: var(--text); }
.paper .paper__note { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.paper__abstract { font-size: 16px; line-height: 1.7; color: var(--text); text-wrap: pretty; max-width: 72ch; }
.abstract { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
.paper .abstract__label { font: 600 14px/1.3 var(--font-display); color: var(--muted); }
.js .abstract:not(.is-open) .paper__abstract {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.abstract__toggle {
  display: none;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font: 600 15px/1.2 var(--font-display);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.js .abstract__toggle { display: inline-flex; align-items: center; }
.paper__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.paper__id { font: 500 15px/1.3 var(--font-display); color: var(--muted); }
a.paper__id { color: var(--ink); }

/* ───────── Who we are ───────── */
.people { background: var(--paper-2); border-top: 1px solid var(--line); }
.people__inner { padding-top: 112px; padding-bottom: 120px; }
.people .section-title { margin-bottom: 0; }
.people__grid { display: flex; flex-wrap: wrap; gap: 120px 24px; margin-top: 128px; }
.person {
  /* The cut-out portrait breaks out of the card's top edge, as in a magazine
     profile; the bust sits on the card's bottom edge. */
  --portrait-w: 330px;
  position: relative;
  flex: 1;
  min-width: min(100%, 520px);
  min-height: 270px;
  padding: 32px 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.person__text { position: relative; z-index: 1; padding-right: calc(var(--portrait-w) * 0.76); }
.person__name {
  margin: 0;
  font: 700 clamp(22px, 2vw, 26px)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.person__name::after { content: ""; display: block; width: 36px; height: 3px; margin: 16px 0 14px; background: var(--accent); }
.person__role { margin: 0 0 6px; font: 600 15px/1.3 var(--font-display); color: var(--ink); }
.person__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.person__links { display: flex; flex-wrap: wrap; gap: 2px; margin: 18px 0 0 -11px; padding: 0; list-style: none; }
.person__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text-2);
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}
.person__link:hover { background: var(--paper-2); color: var(--accent-text); }
.person__link svg { width: 22px; height: 22px; }
.person__portrait { position: absolute; right: 0; bottom: 0; width: var(--portrait-w); pointer-events: none; transform-origin: 100% 100%; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
/* Hover: the portrait grows from the shoulders, so the head rises a little further out of the card,
   and the card's edge sharpens to ink. */
@media (hover: hover) {
  .person { transition: border-color 0.3s; }
  .person:hover { border-color: var(--ink); }
  .person:hover .person__portrait { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .person__portrait { transition: none; } .person:hover .person__portrait { transform: none; } }
.person__portrait img { width: 100%; }

/* ───────── Contact ───────── */
.contact__inner { max-width: 1040px; margin: 0 auto; padding: 128px var(--gutter); }
.contact .section-title { margin-bottom: 48px; }
.contact h3 { margin: 0 0 8px; font: 700 19px/1.25 var(--font-display); color: var(--frame-ink); }
.contact__funding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 36px 40px;
  background-color: var(--frame-raise);
}
.contact__funding-text { flex: 1 1 420px; min-width: 0; }
.contact__funding h3 { font-size: 24px; letter-spacing: -0.015em; }
.contact__funding p { margin: 0 0 12px; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--frame-text); }
.contact__more { font: 600 16px/1.3 var(--font-display); }
.contact__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--frame-line);
}
.contact__cols p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--frame-muted); }
.contact .contact-actions { margin-top: 40px; }
.contact-actions--center, .contact-address--center { justify-content: center; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 24px 0 0;
  font-size: 16px;
  color: var(--fg-2);
}
.copy-btn {
  min-height: 36px;
  padding: 0 12px;
  font: 600 13px/1 var(--font-display);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: border-color 0.18s;
}
.copy-btn:hover { border-color: var(--fg); }
.copy-status { font: 500 14px/1.3 var(--font-display); color: var(--fg-muted); }
html:not(.js) .copy-btn { display: none; }

/* ───────── Footer ───────── */
.site-footer-wrap { border-top: 1px solid var(--line); }
.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer__logo { width: 24px; height: 24px; fill: none; stroke: var(--accent); }
.site-footer__name { font: 700 14px/1.2 var(--font-display); color: var(--frame-ink); }
.site-footer__line { margin-left: 8px; font-size: 14px; color: var(--frame-muted); }
.site-footer__copy { margin: 0; font: 500 14px/1.2 var(--font-display); color: var(--frame-muted); }

/* ═════════ Subpages (Mission, Agentic Governance Workflow) ═════════ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page-title > .container { padding-top: calc(var(--nav-h) + 96px); padding-bottom: 80px; }
.page-title h1 {
  margin: 0;
  font: 700 clamp(36px, 4.8vw, 64px)/1.02 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--frame-ink);
}
.page-title__sub { margin: 20px 0 28px; max-width: 52ch; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--frame-text); }
.page-title__sub:last-child { margin-bottom: 0; }
.page-title__jump { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.2 var(--font-display); }
.paper-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.paper-tag {
  flex: none;
  padding: 7px 14px;
  border: 1.5px solid var(--rule-strong);
  font: 600 14px/1.2 var(--font-display);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.18s, background-color 0.18s;
}
a.paper-tag:hover { border-color: var(--accent); color: var(--accent-text); }
.paper-tag--violet { border-style: dashed; }

.article-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 80px;
  padding-top: 80px;
  padding-bottom: 32px;
}
.toc { flex: 0 0 220px; position: sticky; top: calc(var(--nav-h) + 40px); }
.toc__label { margin: 0 0 14px; font: 600 14px/1.3 var(--font-display); color: var(--muted); }
.toc__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.toc__list a {
  position: relative;
  display: block;
  padding: 8px 0 8px 18px;
  border-left: 1px solid var(--line-strong);
  font: 500 15px/1.35 var(--font-display);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.toc__list a:hover { background: none; color: var(--ink); }
.toc__list a.is-active { color: var(--ink); font-weight: 600; }
.toc__list a.is-active::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  background: var(--accent);
}

/* Both subpages: an "On this page" list, then one column that runs to the content's right edge
   (in line with the nav's Contact button); text, leads and figures all share it. */
.article { flex: 1 1 480px; min-width: 0; }
.article__section {
  padding-bottom: 56px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.article__section--last { border-bottom: 0; }
.article__section:has(+ .support) { border-bottom: 0; padding-bottom: 0; }
.article h2 {
  margin: 0 0 24px;
  font: 700 clamp(28px, 3.2vw, 40px)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--fg);
}
.article h3:not(.accordion__heading) { margin: 44px 0 16px; font: 700 22px/1.25 var(--font-display); color: var(--fg); }
.article p { margin: 0 0 20px; font-size: 17px; line-height: 1.75; color: var(--fg-body); text-wrap: pretty; }
.article section > p:last-child, .two-col p:last-child, .split__text p:last-child { margin-bottom: 0; }
.article .article__lead { margin-bottom: 28px; font-size: 21px; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
/* The lead is each section's short summary. A marker stroke in the accent hue sets it apart
   from the body; it sweeps in the first time the lead scrolls into view. */
.marker {
  --marker: oklch(0.87 0.075 266 / 0.75);
  background-image: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.reveal .marker { background-size: 0% 100%; }
.reveal.is-revealed .marker { background-size: 100% 100%; transition: background-size 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.35s; }

/* On wide screens a figure that is shorter than its text stays beside the reader. */
@media (min-width: 861px) {
  .split__figure { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.inline-link { text-decoration-color: var(--accent-text); }

.figure { margin: 36px 0 40px; padding: 32px 28px; background: var(--paper); border: 1px solid var(--line-strong); }
.figure--center { display: flex; justify-content: center; }
.figure__title { margin: 0; font: 700 18px/1.3 var(--font-display); color: var(--ink); }

/* Compliance chain (Mission) */
.chain { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chain li {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 6px;
  text-align: center;
  font: 700 14px/1.2 var(--font-display);
  background: var(--paper-2);
  color: var(--ink);
}
.chain li + li { margin-left: 24px; position: relative; }
.chain li + li::before {
  content: "→";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 18px/1 var(--font-display);
  color: var(--ink);
}
.chain .chain__key { background: var(--navy); color: var(--paper); }

/* Regulatory chain (Mission) */
.reg-chain { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.reg-chain__label { font: 600 13px var(--font-display); fill: var(--muted); }
.reg-chain__box { font: 700 13px var(--font-display); fill: var(--on-blue); }
.reg-chain__cap { font: 12px var(--font-body); fill: var(--muted); }
.reg-chain__feedback { font: 700 12px var(--font-display); letter-spacing: 0.06em; fill: var(--blue); }

/* Goals (Mission) */
.goals { margin: 0; padding: 0; list-style: none; counter-reset: goal; display: flex; flex-direction: column; gap: 16px; }
.goals li { counter-increment: goal; position: relative; padding-left: 42px; font-size: 17px; line-height: 1.75; color: var(--text); }
.goals li::before {
  content: counter(goal);
  position: absolute;
  left: 0;
  top: 3px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--paper);
  font: 700 13px/1 var(--font-display);
}

/* Support this work (Mission) */
.support { padding: 48px 48px 44px; }
.support h2 { color: var(--frame-ink); }
.aims { margin: 0 0 36px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.aims li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.65; color: var(--frame-text); }
.aims li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; background: var(--accent); }
.article .contact-address { margin: 24px 0 0; font-size: 16px; color: var(--fg-2); }

/* Accordion (FAQ) */
.accordion { max-width: 720px; margin-bottom: 40px; border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line-strong); }
.accordion__heading { margin: 0; font-size: inherit; }
.accordion__trigger {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 600 18px/1.3 var(--font-display);
  color: var(--ink);
}
.accordion__trigger:hover { color: var(--text-2); }
.accordion__icon { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--ink); }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--accent); border-color: var(--accent); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s; }
.js .accordion__panel { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.js .accordion__panel.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.accordion__body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding-right: 48px; }
.accordion__body > :last-child { margin-bottom: 24px; }
.accordion--faq { max-width: none; margin-bottom: 0; }
.accordion--faq .accordion__body p,
.accordion--faq .accordion__body ul { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); }
.accordion__body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Glossary terms */
.term { position: relative; }
.term__word {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 2px dotted var(--accent-text);
  padding: 0;
  cursor: help;
}
.term.is-open .term__word { background: var(--accent-tint); }
.term__tip {
  position: absolute;
  left: var(--tip-left, 0px);
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(300px, calc(100vw - 32px));
  padding: 14px 16px;
  background: var(--navy);
  color: oklch(0.94 0.01 268);
  font: 15px/1.5 var(--font-body);
  text-align: left;
  box-shadow: 0 10px 28px oklch(0 0 0 / 0.25);
  display: none;
}
.term.is-open .term__tip { display: block; }
html:not(.js) .term:hover .term__tip,
html:not(.js) .term:focus-within .term__tip { display: block; }

/* Two-column text + figure */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.split__text { flex: 1 1 320px; min-width: 0; }
.split__figure { flex: 1 1 340px; min-width: 0; margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 48px; margin-top: 32px; }

/* Budget slider (Workflow) */
.budget { --split: 62; padding: 32px 28px 28px; }
.budget .figure__title { margin-bottom: 24px; }
.article .budget__caveat { margin: 20px 0 0; font-size: 14px; font-style: italic; line-height: 1.4; color: var(--muted); }
.budget__track { position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.budget__bar { display: flex; height: 44px; border: 2px solid var(--ink); overflow: hidden; }
/* Hatching is the measuring convention here: shaded share of one bar. */
.budget__docs { flex: var(--split); background: repeating-linear-gradient(135deg, oklch(0.86 0.004 255) 0 7px, oklch(0.94 0.003 255) 7px 14px); }
.budget__impl { flex: calc(100 - var(--split)); background: var(--accent); }
.budget__thumb-rail { position: absolute; left: 2px; right: 2px; top: 0; bottom: 0; pointer-events: none; }
.budget__thumb {
  position: absolute;
  left: calc(var(--split) * 1%);
  top: -8px;
  bottom: -8px;
  width: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--navy);
  box-shadow: 0 4px 12px oklch(0.23 0.06 268 / 0.25);
  pointer-events: auto;
  cursor: ew-resize;
}
.budget__thumb svg { width: 12px; height: 12px; fill: var(--paper); }
.budget__labels { display: grid; grid-template-columns: calc(var(--split) * 1% - 0.7%) 1.4% calc(100% - var(--split) * 1% - 0.7%); margin-top: 16px; }
.budget__labels > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.budget__labels > div:first-child { padding-right: 8px; }
.article .budget__name { margin: 0; font: 700 15px/1.2 var(--font-display); color: var(--ink); }
.article .budget__name--impl { color: var(--accent-text); }
.article .budget__desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* GDD cycle (Workflow) */
.gdd { padding: 36px 32px 32px; margin-top: 24px; }
.gdd__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 32px; }
.gdd__head .figure__title { flex: 1 1 240px; }
.gdd__legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.gdd__actor { display: flex; align-items: center; gap: 10px; font: 600 14px var(--font-display); color: var(--ink); }
.gdd__actor svg { width: 34px; height: 36px; flex: none; }
.gdd__actor--gov { color: var(--blue); }
.gdd__actor--code { color: var(--violet); }
.gdd__body { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: start; }
.article .gdd__chain-label { margin: 0 0 16px; padding: 0 4px; font: 600 13px/1.3 var(--font-display); color: var(--muted); }
.gdd__chain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.gdd__chain-list li { display: flex; align-items: center; gap: 10px; }
.gdd__chain-list li + li { margin-top: 28px; position: relative; }
.gdd__chain-list li + li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -21px;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 6 L10 14 L16 6' fill='none' stroke='%23101b37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.gdd__chain-list b { display: block; font: 700 13px/1.15 var(--font-display); color: var(--blue); }
.gdd__chain-list span:last-child { font: 12px/1.35 var(--font-body); color: var(--text-2); }
.node { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); }
.node svg { width: 18px; height: 18px; }

/* Steps sit on a 3-column grid; the domain backgrounds span every row. Two rows of steps carry the
   cycle 1 → 2 → 3 → 4 → 5, with step 3 centred between them on the product side. */
.gdd__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; margin: 0; padding: 0; list-style: none; }
.gdd__domain-bg { grid-row: 1 / -1; }
.gdd__domain-bg--gov { grid-column: 1; background: var(--domain-gov); }
.gdd__domain-bg--human { grid-column: 2; background: var(--domain-human); }
.gdd__domain-bg--product { grid-column: 3; background: var(--domain-product); }
.gdd__domain-label { grid-row: 1; position: relative; padding: 16px 18px 0; font: 700 13px var(--font-display); }
.gdd__domain-label--gov { grid-column: 1; color: var(--blue); }
.gdd__domain-label--human { grid-column: 2; color: var(--ink); }
.gdd__domain-label--product { grid-column: 3; color: var(--violet); }
.step {
  --tone: var(--blue);
  --halo: var(--domain-gov);
  position: relative;
  margin: 26px 10px 0;
  padding: 20px 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--tone);
  align-self: start;
}
.step--1 { grid-column: 1; grid-row: 2; }
.step--2 { grid-column: 2; grid-row: 2; }
.step--3 { grid-column: 3; grid-row: 2 / 4; align-self: center; margin-bottom: 20px; }
.step--4 { grid-column: 2; grid-row: 3; margin-top: 36px; margin-bottom: 20px; }
.step--5 { grid-column: 1; grid-row: 3; margin-top: 36px; margin-bottom: 20px; }
.step--human { --tone: var(--ink); --halo: var(--domain-human); }
.step--product { --tone: var(--violet); --halo: var(--domain-product); }
.step__num {
  position: absolute;
  left: -12px;
  top: -12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: var(--on-blue);
  font: 700 13px/1 var(--font-display);
  box-shadow: 0 0 0 3px var(--halo);
}
.step__actor { position: absolute; right: 10px; top: -14px; width: 34px; height: 36px; }
.step__domain { display: none; }
.step__title { display: block; margin-bottom: 6px; padding-right: 30px; font: 700 15px/1.2 var(--font-display); color: var(--ink); }
.step__text { display: block; font: 13px/1.5 var(--font-body); color: var(--text-2); }
.step__note { display: block; margin-top: 8px; font: 600 13px/1.3 var(--font-display); color: var(--violet); }

/* Two-layer architecture (Workflow) */
.layers { border: 2px solid var(--ink); overflow: hidden; background: var(--paper); }
.layers p { margin: 0; }
.layers__compliance { background: var(--paper-2); padding: 20px 22px 22px; }
.layers__workspace { background: var(--domain-gov); padding: 20px 22px 24px; }
.layers__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.article .layers__name { font: 700 14px var(--font-display); color: var(--ink); }
.article .layers__name--blue { color: var(--blue); }
.article .layers__badge { display: flex; align-items: center; gap: 7px; font: 600 13px var(--font-display); color: var(--ink); }
.article .layers__badge--blue { color: var(--blue); }
.layers__badge svg { width: 21px; height: 22px; flex: none; }
.article .layers__caption { margin-bottom: 16px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.layers__corpus { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.layers__corpus li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font: 700 13px/1.25 var(--font-display); color: var(--ink); }
.layers__corpus li + li { position: relative; margin-left: 20px; }
.layers__corpus li + li::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 11px;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 4 L14 10 L6 16' fill='none' stroke='%23101b37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.layers__boundary { display: flex; flex-direction: column; gap: 5px; padding: 14px 22px; background: var(--paper); border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); }
.article .layers__boundary-title { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 13px/1.2 var(--font-display); color: var(--ink); }
.layers__boundary-title svg { width: 16px; height: 16px; flex: none; }
.article .layers__boundary-text { font-size: 13px; line-height: 1.45; color: var(--text-2); text-align: center; }
.layers__skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; margin: 0; padding: 0; list-style: none; font: 500 12px var(--font-mono); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.layers__skills span { color: var(--blue); }

/* Paper list (Workflow) */
.paper-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.paper-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s;
}
.paper-row:hover { background: var(--paper-2); color: inherit; }
.paper-row .paper-tag { margin-top: 2px; padding: 5px 12px; }
.paper-row__body { flex: 1; min-width: 0; }
.paper-row__title { display: block; margin-bottom: 6px; font: 700 18px/1.3 var(--font-display); color: var(--ink); text-wrap: pretty; }
.paper-row__cite { display: block; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.paper-row__pdf { flex: none; margin-top: 4px; font: 600 15px var(--font-display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { padding-top: 0; }
  .beats { --beat-gap: 48px; grid-template-columns: minmax(0, 1fr); gap: var(--beat-gap); }
  /* Stacked: the rule runs down the left edge, top to bottom. */
  .beats::before { right: auto; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--from), var(--to)); }
  .beat { padding: 0 0 0 28px; }
  .beat + .beat::after { top: -16px; left: -5px; border: 6px solid transparent; border-top: 10px solid var(--arrow); border-bottom: 0; }
}

@media (max-width: 860px) {
  .pubs { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pubs__list { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .pubs__tab:last-child { border-bottom: 0; }

  /* Levels stack: the rings sit above the text. */
  .levels__stage { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* Stacked: heading first, then the rings, then the buttons and the level text. */
  .levels__text { display: contents; }
  .levels__view { order: 1; width: min(100%, 420px); justify-self: center; padding: 18px; }
  .levels__nav, .levels__list { order: 2; }
  .levels__intro { margin-bottom: 0; }
  .levels.is-scrolly .levels__stage { align-content: center; padding-block: 20px; gap: 20px; }
  .levels.is-scrolly .levels__view { width: auto; height: min(42svh, 420px); max-width: 100%; aspect-ratio: 1; }
  .levels.is-scrolly .levels__nav { margin-bottom: 20px; flex-wrap: nowrap; }
  .levels__btn { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 14px; }
  .levels__readout { left: 18px; bottom: 14px; }

  .toc { position: static; flex-basis: 100%; }
  .gdd__body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gdd__chain-list { flex-direction: row; flex-wrap: wrap; gap: 12px 16px; }
  .gdd__chain-list li { flex: 1 1 140px; }
  .gdd__chain-list li + li { margin-top: 0; }
  .gdd__chain-list li + li::before { display: none; }
  .gdd__steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .gdd__domain-bg, .gdd__domain-label { display: none; }
  .step, .step--1, .step--2, .step--3, .step--4, .step--5 { grid-column: 1; grid-row: auto; margin: 0 0 0 12px; }
  .step { background: var(--halo); }
  .step__domain { display: block; margin-bottom: 6px; font: 700 13px var(--font-display); color: var(--tone); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 56px; --nav-offset: 72px; }

  .site-nav__inner { padding: 0 var(--gutter); }
  .brand { gap: 10px; flex: 1 1 auto; }
  .brand__text { overflow: hidden; }
  .site-nav { --nav-grow: 12px; }
  .brand__logo { --logo: calc(30px + 10px * (1 - var(--t, 1))); }
  .brand__name { font-size: 16px; }
  .brand__tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav__bar > nav { margin-left: -16px; }
  .js .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + var(--nav-grow) * (1 - var(--t, 1)));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px oklch(0.23 0.06 268 / 0.12);
  }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { min-height: 48px; padding: 0 4px; font-size: 17px; }
  .nav-links__group { display: block; }
  .nav-sub-toggle { display: none; }
  .nav-sub, .nav-links__group:hover .nav-sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 6px 14px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-sub::before { display: none; }
  .js .nav-links .nav-sub a { min-height: 44px; font-size: 16px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
  .js .nav-links .nav-links__cta { justify-content: center; margin: 12px 0 0; }
  html:not(.js) .nav-toggle { display: none; }

  .hero__inner { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 80px; gap: 40px; }
  .hero .lead, .lead { font-size: 17px; }
  .opening__rings { --rings-w: 130vw; top: calc(-0.22 * var(--rings-w)); }

  .why__inner, .research > .container { padding-block: 72px; }
  .why .section-title { margin-bottom: 40px; }
  .beats { margin-bottom: 56px; }
  .levels:not(.is-scrolly) .levels__stage { padding-top: 72px; }
  .levels__stage { padding-bottom: 72px; }
  .level p { font-size: 17px; }
  .research__intro { margin-bottom: 40px; }
  .paper { padding: 28px 20px 32px; }
  .paper__title { font-size: 23px; }
  .pubs__tab { padding: 16px 18px; }

  .people__inner { padding-top: 72px; padding-bottom: 80px; }
  .people__grid { margin-top: 88px; row-gap: 88px; }
  /* On phones the portrait sits on the card's top edge and fades out below the shoulders. */
  .person { --portrait-w: 168px; padding: 24px 20px 18px; min-height: 0; }
  .person__text { padding-right: 112px; }
  .person__portrait { top: -64px; bottom: auto; right: -6px; }
  .person__portrait img {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
  }
  .person__name { font-size: 21px; overflow-wrap: normal; word-break: normal; hyphens: manual; }

  .contact__inner { padding-block: 80px; }
  .contact__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact__funding { padding: 26px 20px; }
  .btn--lg { width: 100%; }

  .site-footer__line { margin-left: 0; flex-basis: 100%; }

  .page-title > .container { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 56px; }
  .article-layout { padding-top: 48px; gap: 32px; }
  .article .article__lead { font-size: 19px; }
  .article p, .goals li { font-size: 16px; }
  .figure { padding: 24px 16px; }
  .chain { flex-direction: column; align-items: stretch; gap: 0; }
  .chain li + li { margin: 28px 0 0; }
  .chain li + li::before { content: "↓"; left: 50%; top: -24px; transform: translateX(-50%); }
  .budget { padding: 24px 16px 22px; }
  .budget__labels { grid-template-columns: 1fr 12px 1fr; }
  .gdd { padding: 24px 16px; }
  .layers__compliance, .layers__workspace { padding: 18px 16px; }
  .layers__corpus { flex-wrap: wrap; row-gap: 14px; }
  .layers__corpus li { flex: 1 1 40%; }
  .layers__corpus li + li { margin-left: 0; }
  .layers__corpus li + li::before { display: none; }
  .layers__skills { grid-template-columns: minmax(0, 1fr); }
  .accordion__body { padding-right: 0; }
  .support { padding: 32px 20px 28px; }
  .paper-row { flex-wrap: wrap; gap: 10px 16px; }
  .paper-row__body { flex-basis: 100%; order: 3; }
}

@media (max-width: 640px) {
  .accel { padding: 16px 14px 18px; }
  .accel__tabs { display: grid; grid-template-columns: repeat(5, auto); gap: 4px; }
  .accel__tab { min-width: 0; min-height: 40px; padding: 0 4px; font-size: 12px; }
  .accel__note--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .accel { padding-inline: 10px; }
  .accel__tab { font-size: 11.5px; }
}

@media (max-width: 400px) {
  .person__name { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.levels:not(.is-scrolly):not(.is-settled) .levels__readout { display: none; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { background: var(--on-accent); }

/* Skip link keeps white text on hover (the generic a:hover would turn it blue on blue). */
.skip-link:hover { color: var(--on-accent); }
/* Footer legal links */
.site-footer__copy a { color: inherit; text-decoration: none; }
.site-footer__copy a:hover { color: var(--accent-text); text-decoration: underline; }
