:root {
  color-scheme: light dark;

  /* Brand and neutral constants. Theme blocks never change these values. */
  --brand-navy-950: #0f2540;
  --brand-navy-800: #214766;
  --brand-gold-500: #ffc000;
  --brand-gold-600: #d4a017;
  --brand-blue-600: #2f54eb;
  --neutral-white: #ffffff;
  --neutral-paper: #f7f8fa;
  --neutral-50: #f1f3f6;
  --neutral-600: #536174;
  --print-ink: #000000;
  --print-rule: #777777;

  /* Light-theme semantic roles. Dark mode remaps only these roles. */
  --canvas: var(--neutral-50);
  --surface: var(--neutral-white);
  --surface-quiet: var(--neutral-paper);
  --surface-raised: var(--neutral-white);
  --border: #d5dee8;
  --border-strong: #aab8c8;
  --ink: #172335;
  --ink-muted: var(--neutral-600);
  --heading: var(--brand-navy-950);
  --label: var(--brand-navy-800);
  --link: var(--brand-navy-950);
  --accent: var(--brand-gold-500);
  --accent-deep: var(--brand-gold-600);
  --accent-text: #705300;
  --thread: var(--brand-gold-600);
  --thread-muted: #c8d1dc;
  --node-fill: var(--surface);
  --node-stroke: var(--brand-navy-950);
  --focus: var(--brand-blue-600);
  --header-bg: var(--surface);
  --button-bg: var(--brand-navy-950);
  --button-fg: var(--neutral-white);
  --button-hover: var(--brand-navy-800);
  --strong-bg: var(--brand-navy-950);
  --strong-heading: var(--neutral-white);
  --strong-ink: #d8e1eb;
  --strong-rule: #50657d;
  --strong-node: var(--neutral-white);
  --strong-inset: rgb(255 255 255 / 4%);
  --closing-bg: var(--brand-gold-500);
  --closing-fg: var(--brand-navy-950);
  --closing-button-bg: var(--brand-navy-950);
  --closing-button-fg: var(--neutral-white);
  --closing-button-hover: var(--brand-navy-800);
  --focus-on-strong: var(--brand-gold-500);
  --focus-on-accent: var(--brand-navy-950);
  --shadow-soft: 0 1.5rem 4rem rgb(15 37 64 / 12%);
  --shadow-card: 0 0.5rem 1.5rem rgb(15 37 64 / 7%);
  --shadow-card-lifted: 0 1rem 2.5rem rgb(15 37 64 / 11%);
  /* The resolved end of the commitment thread: filled, not ringed. */
  --node-resolved: var(--brand-gold-600);
  --node-resolved-ink: var(--brand-navy-950);
  --node-glow: rgb(212 160 23 / 26%);
  /* Tinted plates that let a section own an area of colour. */
  --plate: #eef1f6;
  --plate-warm: #fdf6e3;
  --plate-warm-edge: #f0dfae;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #080d14;
    --surface: #101824;
    --surface-quiet: #151f2d;
    --surface-raised: #192534;
    --border: #2d3c50;
    --border-strong: #52657c;
    --ink: #e8edf5;
    --ink-muted: #adbbce;
    --heading: #f4f7fb;
    --label: #c9d5e4;
    --link: #f4f7fb;
    --accent: var(--brand-gold-500);
    --accent-deep: #e0ad1b;
    --accent-text: #e9bd4b;
    --thread: #e0ad1b;
    --thread-muted: #3b4d63;
    --node-fill: var(--surface);
    --node-stroke: #e8edf5;
    --focus: #91b1ff;
    --header-bg: #0d1520;
    --button-bg: var(--brand-gold-500);
    --button-fg: #1a1300;
    --button-hover: #ffd24d;
    --strong-bg: #070c13;
    --strong-heading: #f4f7fb;
    --strong-ink: #b9c7d9;
    --strong-rule: #394c64;
    --strong-node: #f4f7fb;
    --strong-inset: rgb(255 255 255 / 5%);
    --closing-bg: var(--brand-gold-500);
    --closing-fg: var(--brand-navy-950);
    --closing-button-bg: var(--brand-navy-950);
    --closing-button-fg: var(--neutral-white);
    --closing-button-hover: var(--brand-navy-800);
    --focus-on-strong: var(--brand-gold-500);
    --focus-on-accent: var(--brand-navy-950);
    --shadow-soft: 0 1.5rem 4rem rgb(0 0 0 / 36%);
    --shadow-card: 0 0.5rem 1.5rem rgb(0 0 0 / 30%);
    --shadow-card-lifted: 0 1rem 2.5rem rgb(0 0 0 / 42%);
    --node-resolved: var(--brand-gold-500);
    --node-resolved-ink: #1a1300;
    --node-glow: rgb(255 192 0 / 22%);
    --plate: #16202e;
    --plate-warm: #221c0c;
    --plate-warm-edge: #4a3c15;
  }
}

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

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
}

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

a {
  color: inherit;
}

a:focus-visible {
  border-radius: var(--radius-sm);
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

@media (forced-colors: active) {
  a:focus-visible {
    outline-color: CanvasText;
  }
}

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

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 740;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-5)));
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header-bg);
  border-bottom: 0.0625rem solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 5.25rem;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

.brand-logo {
  width: 8.25rem;
  height: auto;
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-width: 0;
  margin-left: auto;
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 680;
}

.section-nav a,
.footer-contact {
  text-underline-offset: 0.3em;
  text-decoration-thickness: 0.08em;
}

.section-nav a {
  white-space: nowrap;
}

.header-contact {
  flex: 0 0 auto;
  padding: 0.625rem 0.875rem;
  border: 0.0625rem solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.375rem;
  background: var(--accent);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  min-height: 39rem;
  padding-block: var(--space-7);
}

.hero-copy {
  max-width: 48rem;
}

/*
 * Uppercase letterspacing is rationed. It survives on the hero eyebrow and the
 * three protocol state labels, where it marks a named protocol state. Section
 * headers use the tab below instead: sentence case on a short gold rule.
 */
.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 var(--space-4);
  color: var(--label);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.section-label::before {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 0.1875rem;
  border-radius: 999px;
  background: var(--accent-deep);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: var(--space-5);
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  line-height: 0.98;
}

h2 {
  max-width: 23ch;
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 3.3vw, 2.875rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
  line-height: 1.2;
}

.positioning {
  max-width: 39rem;
  margin-bottom: var(--space-3);
  color: var(--heading);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 680;
  line-height: 1.4;
  text-wrap: pretty;
}

.supporting-copy {
  max-width: 42rem;
  margin-bottom: var(--space-5);
  color: var(--ink-muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.hero-contact,
.closing-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: 0.125rem solid var(--button-bg);
  border-radius: var(--radius-md);
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
}

.contact-address {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.sides-figure {
  position: relative;
  margin: 0;
  padding: var(--space-5) 0 var(--space-5) var(--space-5);
  border-block: 0.0625rem solid var(--border);
}

.sides-figure figcaption {
  max-width: 24ch;
  margin-bottom: var(--space-5);
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.sides-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sides-list li {
  position: relative;
  padding: 0 0 var(--space-5) 2.75rem;
}

.sides-list li::before {
  position: absolute;
  top: 0.25rem;
  left: 0;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border: 0.1875rem solid var(--node-stroke);
  border-radius: 50%;
  background: var(--node-fill);
  content: "";
}

/*
 * The thread joining the two sides: one commitment, seen from both ends.
 *
 * It clears both nodes by the same 0.375rem, matching the breathing room the
 * commitment-sequence connector leaves around its own nodes. The offsets look
 * mismatched but are not: `top` is measured from the ring's outer edge
 * (0.25rem offset + 1rem node = 1.25rem, so 1.625rem leaves the gap), while
 * `bottom` is measured from this item's lower edge and the resolved node sits
 * 0.25rem below it (0.375rem gap - 0.25rem = 0.125rem). Both fixed offsets, so
 * the two gaps stay equal at every width.
 */
.sides-list li:first-child::after {
  position: absolute;
  top: 1.625rem;
  bottom: 0.125rem;
  left: 0.4375rem;
  width: 0.125rem;
  background: var(--thread);
  content: "";
}

.sides-list li:last-child {
  padding-bottom: 0;
}

/*
 * The resolved end of the thread: a filled node with a soft glow, not a ring.
 * A ring reads as a target; a filled node reads as the commitment that landed.
 * The glow is a shadow, so forced-colors drops it and leaves a solid node.
 */
.sides-list li:last-child::before {
  border-color: var(--node-resolved);
  background: var(--node-resolved);
  /* A blurred halo rather than a flat ring, so it fades instead of stepping. */
  box-shadow: 0 0 0 0.125rem var(--node-glow), 0 0 0.875rem 0.125rem var(--node-glow);
}

@media (forced-colors: active) {
  .sides-list li:last-child::before {
    background: CanvasText;
    border-color: CanvasText;
  }

  /*
   * Forced-colors drops backgrounds, which would erase the thread joining the
   * two sides. A border keeps the connection visible.
   */
  .sides-list li:first-child::after {
    border-left: 0.125rem solid CanvasText;
  }
}

/*
 * "Incoming" and "Outgoing" are product surface names, not protocol states, so
 * they read as named directions rather than another letterspaced micro-label.
 */
.side-kicker {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--plate);
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Kept uppercase: these name the three canonical protocol states. */
.sequence-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--label);
  font-size: 0.6875rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sides-list strong {
  display: block;
  max-width: 22ch;
  margin-bottom: 0.35rem;
  color: var(--heading);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.side-detail {
  display: block;
  max-width: 32ch;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/*
 * Pacing: the two anchor sections (mechanism, inside) get the most air, the
 * connective ones less, the closing band least. Uniform padding everywhere is
 * what made every section read at the same volume.
 */
.problem,
.contexts {
  padding-block: var(--space-7);
}

.mechanism,
.inside {
  padding-block: var(--space-8);
}

.closing {
  padding-block: var(--space-7);
}

.problem {
  background: var(--surface-quiet);
}

.problem-grid,
.contexts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: start;
}

.problem-detail {
  padding-top: var(--space-5);
}

.problem-detail > p,
.section-intro > p:last-child,
.contexts-copy > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.fragments {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.fragments li {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-3);
  padding: 0 0.25rem 0.45rem;
  border-bottom: 0.125rem solid var(--thread-muted);
  color: var(--heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.fragments li::after {
  position: absolute;
  right: -0.375rem;
  bottom: -0.3125rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.fragments li:nth-child(2) {
  margin-left: clamp(0rem, 5vw, 4rem);
}

.fragments li:nth-child(3) {
  margin-left: clamp(0rem, 10vw, 8rem);
}

.fragments li:nth-child(4) {
  margin-left: clamp(0rem, 15vw, 12rem);
}

.mechanism {
  background: var(--strong-bg);
  color: var(--strong-ink);
}

.mechanism .section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.mechanism .section-label {
  grid-column: 1 / -1;
  margin-bottom: calc(var(--space-2) * -1);
  color: var(--accent);
}

.mechanism .section-label::before {
  background: var(--accent);
}

.mechanism h2,
.mechanism h3 {
  color: var(--strong-heading);
}

.mechanism .section-intro > p:last-child,
.commitment-sequence p {
  color: var(--strong-ink);
}

.commitment-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: commitment-step;
}

.commitment-sequence li {
  position: relative;
  counter-increment: commitment-step;
  padding: 4rem var(--space-4) 0 0;
}

.commitment-sequence li::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid var(--strong-node);
  border-radius: 50%;
  background: var(--strong-bg);
  color: var(--strong-heading);
  content: counter(commitment-step, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.commitment-sequence li:not(:last-child)::after {
  position: absolute;
  top: 1.1875rem;
  right: 0.375rem;
  left: 2.875rem;
  height: 0.125rem;
  background: var(--strong-rule);
  content: "";
}

/* The thread turns gold once the commitment is held by a named person. */
.commitment-sequence li:nth-child(2)::after {
  background: var(--thread);
}

.commitment-sequence .sequence-label {
  color: var(--accent);
}

.commitment-sequence p {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.protocol-exits {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 0.0625rem solid var(--strong-rule);
}

.exits-intro {
  max-width: 42rem;
  margin-bottom: var(--space-5);
}

.exits-intro h3 {
  color: var(--strong-heading);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
}

.exits-intro p {
  margin-bottom: 0;
  color: var(--strong-ink);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/*
 * The exits are branches off the protocol, not a product inventory, so they
 * stay flat and inset against the dark band — deliberately unlike the raised
 * capability cards, which the two lists previously mirrored exactly.
 */
.exits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.exits-list li {
  padding: var(--space-2) var(--space-3);
  border-left: 0.1875rem solid var(--strong-rule);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--strong-inset);
}

/* The three exits that keep the commitment alive carry the gold edge. */
.exits-list li:nth-child(-n + 4) {
  border-left-color: var(--thread);
}

.exits-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 760;
}

.exits-list span {
  display: block;
  max-width: 36ch;
  color: var(--strong-ink);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.exits-outro {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--strong-heading);
  font-size: 1.0625rem;
  font-weight: 620;
  text-wrap: pretty;
}

/*
 * "What's inside" is the page's second point of weight. It sits on the tinted
 * canvas so the three capability cards read as raised objects on a plate,
 * which is what separates them from the flat exits list doing the other job.
 */
.inside {
  background: var(--canvas);
}

.inside-copy {
  margin-bottom: var(--space-7);
}

.capability-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  align-items: start;
}

/*
 * Each group is still a node on the commitment thread — the marker vocabulary
 * (circle, square, rotated square) is unchanged — but the group is now a card
 * rather than a ruled column.
 */
.capability-group {
  position: relative;
  height: 100%;
  padding: var(--space-5) var(--space-4) var(--space-4);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

/* The third card is the differentiated one: process automation, warm plate. */
.capability-group:nth-child(3) {
  border-color: var(--plate-warm-edge);
  background: var(--plate-warm);
  box-shadow: var(--shadow-card-lifted);
}

.capability-marker {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin-bottom: var(--space-3);
  border: 0.125rem solid var(--node-stroke);
  border-radius: 50%;
  background: var(--node-fill);
}

.capability-group:nth-child(2) .capability-marker {
  border-radius: var(--radius-sm);
}

.capability-group:nth-child(3) .capability-marker {
  border-color: var(--thread);
  border-radius: var(--radius-sm);
  background: var(--thread);
  transform: rotate(45deg);
}

.capability-group h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.capability-tagline {
  max-width: 30ch;
  margin-bottom: var(--space-4);
  color: var(--accent-text);
  font-size: 0.9375rem;
  font-weight: 620;
  line-height: 1.4;
  text-wrap: pretty;
}

.capability-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-group li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.125rem;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.capability-group li + li {
  border-top: 0.0625rem solid var(--border);
}

.capability-group:nth-child(3) li + li {
  border-top-color: var(--plate-warm-edge);
}

.capability-group li::before {
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: 0.375rem;
  height: 0.125rem;
  background: var(--thread);
  content: "";
}

/* The line that ties the three cards together, so it spans rather than rules. */
.spanning-line {
  position: relative;
  max-width: 56rem;
  margin: var(--space-5) 0 0;
  padding: var(--space-4) var(--space-5);
  border-left: 0.25rem solid var(--accent-deep);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--surface-raised);
  color: var(--heading);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 620;
  line-height: 1.4;
  text-wrap: pretty;
}

.contexts {
  background: var(--surface);
  border-top: 0.0625rem solid var(--border);
}

/* Recognition points read as discrete chips, not another ruled ledger. */
.context-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: context;
}

.context-list li {
  position: relative;
  counter-increment: context;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: var(--space-3) var(--space-4);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-quiet);
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 680;
  line-height: 1.3;
  text-wrap: balance;
}

.context-list li::before {
  flex: 0 0 auto;
  color: var(--accent-text);
  content: counter(context, decimal-leading-zero);
  font-size: 0.6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.closing {
  background: var(--closing-bg);
  color: var(--closing-fg);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
}

.closing .section-label,
.closing h2,
.closing p {
  color: var(--closing-fg);
}

/* Gold-on-gold would vanish; the rule takes the band's ink instead. */
.closing .section-label::before {
  background: var(--closing-fg);
}

.closing h2 {
  max-width: 22ch;
}

/* One measure for every paragraph in the band, labels included. */
.closing p {
  max-width: 42rem;
}

/*
 * Body copy only. The section label and the closing note are also <p> here,
 * and a bare `.closing p` font-size outranks their own class rules (0,1,1
 * beats 0,1,0), which silently resized both to 17px: the label no longer
 * matched the other four sections, and the note was not quieter at all.
 */
.closing p:not(.section-label):not(.closing-note) {
  margin-bottom: var(--space-3);
  font-size: 1.0625rem;
}

.closing p:last-child {
  margin-bottom: 0;
}

/*
 * The what-happens-next line. Quieter than the invitation above it, but it
 * carries the load: it is what keeps the early-access framing from reading as
 * a programme already running. Size alone does the stepping down, not opacity.
 * The band is gold, and fading ink against it loses contrast fast.
 */
.closing-note {
  font-size: 0.9375rem;
}

.closing a:focus-visible {
  outline-color: var(--focus-on-accent);
}

.button-on-accent {
  border-color: var(--closing-button-bg);
  background: var(--closing-button-bg);
  color: var(--closing-button-fg);
}

.button-on-accent:hover {
  border-color: var(--closing-button-hover);
  background: var(--closing-button-hover);
}

/*
 * Quiet by design. These two notes exist to be honest about Stage 1 and about
 * support, so they sit after the call to action rather than competing with it.
 */
.assurances {
  padding-block: var(--space-6);
  background: var(--surface);
}

.assurance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) clamp(2rem, 6vw, 5rem);
  margin: 0;
}

.assurance-list dt {
  margin-bottom: 0.35rem;
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 740;
}

.assurance-list dd {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.contact-address-light {
  color: var(--closing-fg);
  font-weight: 620;
}

.site-footer {
  background: var(--surface-quiet);
  border-top: 0.0625rem solid var(--border);
}

.footer-inner {
  min-height: 6rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.footer-inner p {
  margin: 0;
}

.footer-contact {
  color: var(--link);
  font-weight: 680;
  overflow-wrap: anywhere;
}

.not-found-page {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: var(--canvas);
}

.not-found-main {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  padding: var(--space-6) var(--space-4);
}

.not-found-shell {
  width: min(100%, 54rem);
  padding: clamp(2rem, 7vw, 5rem);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.not-found-brand {
  margin-bottom: var(--space-6);
}

.broken-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
  align-items: center;
  margin-bottom: var(--space-6);
}

.broken-thread span {
  position: relative;
  display: block;
  height: 0.125rem;
  background: var(--thread);
}

.broken-thread span:first-child::after,
.broken-thread span:last-child::before {
  position: absolute;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border: 0.125rem solid var(--node-stroke);
  border-radius: 50%;
  background: var(--node-fill);
  content: "";
}

.broken-thread span:first-child::after {
  right: -0.375rem;
  transform: translateY(-50%);
}

.broken-thread span:last-child {
  grid-column: 3;
}

.broken-thread span:last-child::before {
  left: -0.375rem;
  transform: translateY(-50%);
}

.not-found-shell h1 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
}

.not-found-copy {
  max-width: 34rem;
  margin-bottom: var(--space-5);
  color: var(--ink-muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.not-found-footer {
  flex: 0 0 auto;
}

@media (max-width: 60rem) {
  html {
    scroll-padding-top: 1.5rem;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: var(--space-2);
  }

  .section-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    padding-block: 0;
    overflow-x: auto;
    border-top: 0.0625rem solid var(--border);
    scrollbar-width: thin;
  }

  .section-nav a {
    padding-block: 0.625rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    gap: var(--space-6);
  }

  .mechanism .section-intro {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .mechanism .section-label {
    grid-column: auto;
    margin-bottom: 0;
  }

  .problem-grid,
  .contexts-grid {
    gap: var(--space-6);
  }

  .capability-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exits-list {
    grid-template-columns: 1fr;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 43.75rem) {
  .shell {
    width: min(100% - 2rem, 76rem);
  }

  .header-inner {
    min-height: 0;
  }

  .brand-logo {
    width: 7rem;
  }

  .section-nav {
    gap: var(--space-4);
    font-size: 0.8125rem;
  }

  .header-contact {
    padding-inline: 0.75rem;
    font-size: 0.8125rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    min-height: 0;
    padding-block: var(--space-6) var(--space-7);
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.875rem, 8.5vw, 2.5rem);
  }

  .sides-figure {
    padding-left: var(--space-4);
  }

  .problem,
  .inside,
  .contexts,
  .mechanism,
  .closing {
    padding-block: var(--space-7);
  }

  .problem-grid,
  .contexts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .capability-stack {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .problem-detail {
    padding-top: 0;
  }

  .fragments li:nth-child(2),
  .fragments li:nth-child(3),
  .fragments li:nth-child(4) {
    margin-left: 0;
  }

  .commitment-sequence {
    grid-template-columns: 1fr;
    margin-top: var(--space-6);
  }

  .commitment-sequence li {
    min-height: 9rem;
    padding: 0.25rem 0 var(--space-5) 4rem;
  }

  .commitment-sequence li:last-child {
    min-height: 0;
    padding-bottom: 0;
  }

  .commitment-sequence li:not(:last-child)::after {
    top: 2.5rem;
    right: auto;
    bottom: 0;
    left: 1.1875rem;
    width: 0.125rem;
    height: auto;
    background: var(--thread);
  }

  .context-list {
    grid-template-columns: 1fr;
  }

  .context-list li {
    min-height: 0;
  }

  .assurance-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: var(--space-4);
  }

  .not-found-main {
    padding: var(--space-4) var(--space-3);
  }
}

/*
 * Only while the stack is genuinely two columns. At two columns the third
 * group would otherwise orphan into row two beside dead space, so it spans and
 * splits its longer list. Below this band the stack is one column and multicol
 * here would force the track wider than the shell.
 */
@media (min-width: 43.76rem) and (max-width: 60rem) {
  .capability-group:nth-child(3) {
    grid-column: 1 / -1;
  }

  .capability-group:nth-child(3) ul {
    columns: 2;
    column-gap: var(--space-5);
  }

  /* Columned items cannot share row rules; each carries its own. */
  .capability-group:nth-child(3) li {
    border-top: 0.0625rem solid var(--plate-warm-edge);
    break-inside: avoid;
  }
}

@media (max-width: 25rem) {
  .section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    scrollbar-width: auto;
  }

  .hero-contact,
  .closing-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .not-found-shell {
    padding: var(--space-5) var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --canvas: var(--neutral-white);
    --surface: var(--neutral-white);
    --surface-quiet: var(--neutral-white);
    --surface-raised: var(--neutral-white);
    --border: var(--print-rule);
    --border-strong: var(--print-rule);
    --ink: var(--print-ink);
    --ink-muted: var(--print-ink);
    --heading: var(--print-ink);
    --label: var(--print-ink);
    --link: var(--print-ink);
    /* Gold is unreadable on paper; the accent roles carry text, not just rules. */
    --accent: var(--print-ink);
    --accent-text: var(--print-ink);
    --thread: var(--print-ink);
    --thread-muted: var(--print-rule);
    --node-fill: var(--neutral-white);
    --node-stroke: var(--print-ink);
    --button-bg: var(--neutral-white);
    --button-fg: var(--print-ink);
    --strong-bg: var(--neutral-white);
    --strong-heading: var(--print-ink);
    --strong-ink: var(--print-ink);
    --strong-rule: var(--print-rule);
    --strong-node: var(--print-ink);
    --strong-inset: transparent;
    --closing-bg: var(--neutral-white);
    --closing-fg: var(--print-ink);
    --closing-button-bg: var(--neutral-white);
    --closing-button-fg: var(--print-ink);
    /* Elevation, tint, and glow do not survive paper; flatten them to ink. */
    --node-resolved: var(--print-ink);
    --node-resolved-ink: var(--neutral-white);
    --node-glow: transparent;
    --plate: var(--neutral-white);
    --plate-warm: var(--neutral-white);
    --plate-warm-edge: var(--print-rule);
    --shadow-card: none;
    --shadow-card-lifted: none;
    --shadow-soft: none;
  }

  .hero::before,
  .fragments li::after {
    display: none;
  }

  .site-header,
  .hero,
  .problem,
  .mechanism,
  .inside,
  .contexts,
  .closing,
  .site-footer {
    background: none;
    break-inside: avoid;
  }

  .hero-grid {
    min-height: 0;
    padding-block: var(--space-5);
  }

  .button,
  .button-on-accent {
    border-color: var(--print-ink);
    background: none;
    color: var(--print-ink);
  }

  a {
    text-decoration: underline;
  }
}
