/* RSC public site — Modernist design system.
   Drop-in replacement for style.css. Same class names, same markup:
   only the visual system changed (Archivo, mono-red on light ground,
   zero radius, 2px rules). Tokens below map the site's roles onto the
   Modernist token set. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;800&display=swap');

:root,
html[data-theme="light"] {
  color-scheme: light;

  /* Modernist roles */
  --ds-bg: #f3f2f2;
  --ds-text: #201e1d;
  --ds-accent: #ec3013;
  --ds-neutral-100: #f8f4f4;
  --ds-neutral-200: #eae7e7;
  --ds-neutral-300: #d7d3d3;
  --ds-neutral-400: #bab6b6;
  --ds-neutral-500: #9b9797;
  --ds-neutral-700: #605d5d;
  --ds-neutral-800: #444141;
  --ds-accent-400: #ff9783;
  --ds-accent-600: #dd2b0f;
  --ds-accent-700: #ae1800;

  /* Site roles, resolved from the system */
  --paper: var(--ds-bg);
  --paper-deep: var(--ds-neutral-200);
  --surface: var(--ds-neutral-100);
  --ink: var(--ds-text);
  --ink-soft: var(--ds-neutral-800);
  --muted: var(--ds-neutral-700);
  --rule: color-mix(in srgb, var(--ds-text) 40%, transparent);
  --rule-soft: var(--ds-neutral-300);
  --rule-strong: var(--ds-text);
  --wire: var(--ds-accent);
  --wire-strong: var(--ds-accent-600);
  --wire-deep: var(--ds-accent-700);
  --on-wire: var(--ds-bg);
  --night: var(--ds-text);
  --on-night: var(--ds-bg);
  --night-muted: var(--ds-neutral-400);
  --live: var(--ds-text);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "Archivo", system-ui, sans-serif;
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius: 0px;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --max-width: 94rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #201e1d;
  --paper-deep: #2d2b2b;
  --surface: #2d2b2b;
  --ink: #f3f2f2;
  --ink-soft: #d7d3d3;
  --muted: #bab6b6;
  --rule: color-mix(in srgb, #f3f2f2 40%, transparent);
  --rule-soft: #444141;
  --rule-strong: #f3f2f2;
  --wire: #ff563c;
  --wire-strong: #ff9783;
  --wire-deep: #ffc4b8;
  --on-wire: #201e1d;
  --night: #f3f2f2;
  --on-night: #201e1d;
  --night-muted: #605d5d;
  --live: #f3f2f2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #201e1d;
    --paper-deep: #2d2b2b;
    --surface: #2d2b2b;
    --ink: #f3f2f2;
    --ink-soft: #d7d3d3;
    --muted: #bab6b6;
    --rule: color-mix(in srgb, #f3f2f2 40%, transparent);
    --rule-soft: #444141;
    --rule-strong: #f3f2f2;
    --wire: #ff563c;
    --wire-strong: #ff9783;
    --wire-deep: #ffc4b8;
    --on-wire: #201e1d;
    --night: #f3f2f2;
    --on-night: #201e1d;
    --night-muted: #605d5d;
    --live: #f3f2f2;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--wire) 30%, transparent);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--wire-strong);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wire);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--font-code);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--wire);
  color: var(--on-wire);
  font-weight: 800;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

/* ── header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 74px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: stretch;
  min-width: 18rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0 1rem;
  background: var(--wire);
  color: var(--on-wire);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-name {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-right: 2px solid var(--rule);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.35rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: color-mix(in srgb, var(--wire) 10%, transparent);
  color: var(--wire-deep);
}

.site-nav a:active {
  background: color-mix(in srgb, var(--wire) 18%, transparent);
}

.header-controls {
  display: none;
  align-items: stretch;
}

html.js .header-controls {
  display: flex;
}

.control {
  min-width: 54px;
  min-height: 44px;
  padding: 0 0.85rem;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.control:hover {
  background: var(--wire);
  color: var(--on-wire);
}

.control:active {
  background: var(--wire-strong);
  color: var(--on-wire);
}

.control-theme {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.theme-symbol {
  color: var(--wire);
  font-size: 1.1rem;
}

.control:hover .theme-symbol {
  color: inherit;
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: calc(100vh - 74px);
  max-width: var(--max-width);
  margin: 0 auto;
  border-right: 2px solid var(--rule);
  border-left: 2px solid var(--rule);
}

.hero-copy {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 5.5rem);
  border-right: 2px solid var(--rule);
}

.kicker,
.section-index,
.figure-number,
.path-number,
.manifesto-label {
  color: var(--wire-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.signal-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  background: var(--wire);
  border-radius: var(--radius);
}

.hero h1 {
  max-width: 9em;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 5.6vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 2.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.action {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.action-primary {
  background: var(--wire);
  border-color: var(--wire);
  color: var(--on-wire);
}

.action-primary:hover {
  background: var(--wire-strong);
  border-color: var(--wire-strong);
  color: var(--on-wire);
}

.action-primary:active {
  background: var(--wire-deep);
  border-color: var(--wire-deep);
}

.action-index {
  color: var(--on-wire);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.release-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.release-label {
  align-self: start;
  padding: 0.22rem 0.5rem;
  background: color-mix(in srgb, var(--wire) 14%, transparent);
  border: 2px solid var(--wire);
  border-radius: var(--radius);
  color: var(--wire-deep);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── figure 01 ────────────────────────────────────────────── */

.wire-demo {
  grid-column: 6 / -1;
  min-width: 0;
  margin: 0;
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--surface);
}

.wire-demo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.figure-number {
  flex: 0 0 auto;
}

.federation-figure {
  align-self: stretch;
}

.federation-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.federation-act {
  min-width: 0;
}

.thread-act {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 2px solid var(--rule);
}

.act-heading {
  min-height: 7rem;
  margin-bottom: 1.4rem;
}

.act-heading h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.act-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.act-number {
  margin-bottom: 0.9rem;
  color: var(--wire-deep);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.federation-route {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.federation-route::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: 2px;
  background: var(--wire);
  content: "";
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 2.05rem minmax(0, 1fr);
  gap: 0.7rem;
  min-width: 0;
  opacity: 0.68;
  transform: translateY(0.25rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.route-stop.is-active {
  opacity: 1;
  transform: translateY(0);
}

.route-index {
  z-index: 1;
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--wire);
  border-radius: var(--radius);
  color: var(--wire-deep);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease;
}

.route-stop.is-active .route-index {
  background: var(--wire);
  color: var(--on-wire);
}

.route-stop > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--ink);
}

.route-stop-remote > div {
  border-left-color: var(--wire);
}

.route-stop strong {
  font-size: 0.76rem;
  font-weight: 800;
}

.route-stop span:not(.route-index) {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.route-stop code {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-trace {
  margin: 1rem 0 0 2.75rem;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.6rem;
  line-height: 1.45;
}

.thread-spine {
  position: relative;
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding-left: 1.25rem;
}

.thread-spine::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0;
  width: 2px;
  background: var(--rule);
  content: "";
}

.thread-node {
  --thread-depth: 0rem;
  position: relative;
  min-width: 0;
  margin-left: var(--thread-depth);
  padding: 0.72rem 0.78rem;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--ink);
  font-size: 0.7rem;
  line-height: 1.4;
}

.thread-node::before {
  position: absolute;
  top: 1rem;
  left: calc(-1.25rem - var(--thread-depth));
  width: calc(1.25rem + var(--thread-depth));
  height: 2px;
  background: var(--rule);
  content: "";
}

.thread-node-remote {
  border-left-color: var(--wire);
}

.thread-depth-1 {
  --thread-depth: clamp(0.75rem, 1.4vw, 1.25rem);
}

.thread-depth-2 {
  --thread-depth: clamp(1.5rem, 2.8vw, 2.5rem);
}

.thread-node header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.thread-node header > div {
  display: grid;
  min-width: 0;
}

.thread-node header strong,
.thread-node header div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-node header strong {
  font-size: 0.74rem;
  font-weight: 800;
}

.thread-node header div span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.thread-node > p {
  margin: 0.55rem 0 0;
}

.thread-avatar {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
}

.thread-node-remote .thread-avatar {
  background: var(--wire);
  color: var(--on-wire);
}

.thread-origin {
  padding: 0.12rem 0.28rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.thread-node-remote .thread-origin {
  background: color-mix(in srgb, var(--wire) 14%, transparent);
  border: 1px solid var(--wire);
  color: var(--wire-deep);
}

.federation-conclusion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  margin: 2rem 0 0;
  padding: 1.2rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.federation-conclusion strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.federation-conclusion span {
  color: var(--muted);
  font-size: 0.78rem;
}

.federation-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  margin-top: 1rem;
  border: 2px solid var(--ink);
}

.protocol-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.protocol-facts > span::first-line {
  color: var(--wire-deep);
}

.protocol-facts code {
  color: var(--ink);
  font-family: var(--font-code);
  letter-spacing: 0;
}

.figure-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--wire);
  color: var(--on-wire);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.figure-proof:hover {
  background: var(--wire-strong);
  color: var(--on-wire);
}

.figure-proof:active {
  background: var(--wire-deep);
}

.figure-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.figure-note::before {
  color: var(--wire-deep);
  content: "↳";
}

.figure-note a {
  color: var(--ink);
  font-weight: 800;
}

.figure-note a:hover {
  color: var(--wire-deep);
}

/* ── sections ─────────────────────────────────────────────── */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-space) var(--page-gutter);
  border-right: 2px solid var(--rule);
  border-left: 2px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading .section-index {
  grid-column: 1 / span 3;
}

.section-heading h2 {
  grid-column: 4 / span 6;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-heading > p:last-child {
  grid-column: 10 / -1;
  align-self: end;
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading.compact h2 {
  grid-column: 4 / -1;
}

.travel-section {
  background: var(--paper);
}

/* ── network map (figure 02) ──────────────────────────────── */

.travel-network {
  position: relative;
  min-height: 52rem;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--ink);
  isolation: isolate;
}

.travel-network::before,
.travel-network::after {
  position: absolute;
  z-index: -3;
  content: "";
  pointer-events: none;
}

.travel-network::before {
  inset: 4.5rem 0 4.1rem;
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
}

.travel-network::after {
  top: 4.5rem;
  right: 0;
  bottom: 4.1rem;
  left: 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}

.network-map-title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  margin: 0;
  padding: 0 1.25rem;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.network-map-count {
  color: var(--muted);
  font-weight: 600;
}

.network-legend {
  position: absolute;
  top: 5.5rem;
  left: 1.25rem;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  border: 2px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.network-legend > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.network-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
}

.legend-instance {
  border: 2px solid var(--ink);
}

.legend-resource {
  background: var(--ink);
}

.legend-route {
  background: var(--wire);
}

.network-positioned {
  position: absolute;
  top: var(--top);
  left: var(--left);
}

.network-edge {
  z-index: -1;
  width: var(--width);
  height: 1px;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  transform: rotate(var(--angle));
  transform-origin: left center;
}

.network-edge-dashed {
  height: 0;
  background: transparent;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
}

.network-edge-selected {
  z-index: 1;
  height: 3px;
  background: var(--wire);
  opacity: 1;
}

.network-instance-node,
.network-resource-node {
  transform: translate(-50%, -50%);
}

.network-instance-node {
  z-index: 5;
  display: grid;
  min-width: 10rem;
  gap: 0.22rem;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.network-instance-node strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.network-instance-node small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.network-selected-node {
  min-width: 13.5rem;
  background: var(--paper);
  border: 2px solid var(--wire);
}

.network-step {
  color: var(--wire-deep);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.network-instance-muted {
  z-index: 3;
  border-color: var(--rule);
  color: var(--muted);
}

.network-resource-node {
  z-index: 4;
  display: grid;
  min-width: 7.2rem;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.network-resource-node::before {
  position: absolute;
  top: 50%;
  left: -0.34rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ink);
  border: 2px solid var(--paper);
  content: "";
  transform: translateY(-50%);
}

.network-resource-node b {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.network-resource-node small {
  color: var(--muted);
  font-size: 0.6rem;
}

.network-instance-marker {
  z-index: 2;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent);
}

.network-resource-speck {
  z-index: 2;
  width: 0.42rem;
  height: 0.42rem;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

.network-packet {
  z-index: 7;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--wire);
  border: 2px solid var(--paper);
  animation: network-packet-travel 3.8s ease-in-out infinite;
}

@keyframes network-packet-travel {
  0%,
  100% {
    transform: translate(-1rem, 0);
  }
  50% {
    transform: translate(1.5rem, -1rem);
  }
}

.network-protocol {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.1rem;
  margin: 0;
  padding: 0 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-protocol strong {
  color: var(--wire-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ── credits names ───────────────────────────────────────── */

.credit-names {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  scrollbar-width: thin;
  white-space: nowrap;
}

/* ── two ways in ─────────────────────────────────────────── */

.paths-section {
  background: var(--surface);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.path-panel {
  display: flex;
  min-height: 35rem;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.path-panel + .path-panel {
  border-left: 2px solid var(--ink);
}

.path-panel h3 {
  max-width: 13em;
  margin: 2rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.path-panel > p:not(.path-number) {
  max-width: 35rem;
  color: var(--muted);
}

.path-panel ul {
  display: grid;
  gap: 0;
  margin: auto 0 2.5rem;
  padding: 0;
  border-top: 2px solid var(--rule);
  list-style: none;
}

.path-panel li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.path-actions {
  display: grid;
  gap: 0.65rem;
}

.path-link,
.text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}

.path-link {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.path-link-secondary {
  padding-top: 0.65rem;
  border-top: 2px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.path-link:hover,
.text-link:hover {
  color: var(--wire-deep);
}

/* ── state of the work ───────────────────────────────────── */

.working-section {
  background: var(--paper-deep);
}

.capability-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.capability-ledger article {
  min-height: 25rem;
  padding: 1.25rem;
  border-right: 2px solid var(--rule);
}

.capability-ledger article:last-child {
  border-right: 0;
}

.ledger-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius);
}

.status-live {
  color: var(--live);
}

.status-live .status-mark {
  background: var(--live);
}

.status-next {
  color: var(--wire-deep);
}

.status-next .status-mark {
  border: 2px solid var(--wire);
}

.capability-ledger h3 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.capability-ledger article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ledger-future {
  background: var(--paper);
  border-top: 4px solid var(--wire);
}

/* ── manifesto: the poster statement ─────────────────────── */

.manifesto-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  padding: var(--section-space) var(--page-gutter);
  background: var(--wire);
  color: var(--on-wire);
}

.manifesto-label {
  grid-column: 1 / span 3;
  color: var(--on-wire);
}

.manifesto-section blockquote {
  grid-column: 4 / -1;
  margin-bottom: clamp(4rem, 9vw, 8rem);
}

.manifesto-section blockquote p {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.manifesto-copy {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  color: color-mix(in srgb, var(--on-wire) 88%, transparent);
}

.manifesto-copy p {
  margin-bottom: 0;
}

/* ── run it ──────────────────────────────────────────────── */

.run-section {
  background: var(--surface);
}

.run-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 6rem);
}

.terminal {
  align-self: start;
  background: var(--night);
  color: var(--on-night);
  border: 2px solid var(--night);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid color-mix(in srgb, var(--on-night) 30%, transparent);
  color: var(--night-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal pre {
  margin: 0;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3vw, 3rem);
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  line-height: 2.1;
}

.prompt {
  color: var(--wire-strong);
}

.terminal-result {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 2px solid color-mix(in srgb, var(--on-night) 30%, transparent);
  color: var(--night-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.terminal-result .signal-dot {
  background: var(--wire-strong);
}

.run-notes {
  display: grid;
}

.run-notes > div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--rule);
}

.note-index {
  color: var(--wire-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.run-notes p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.run-notes strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.run-notes .text-link {
  align-self: end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

/* ── credits ─────────────────────────────────────────────── */

.credits-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-space) var(--page-gutter);
  border-right: 2px solid var(--rule);
  border-left: 2px solid var(--rule);
}

.credits-section h2 {
  max-width: 14em;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.credits-section > p:not(.section-index) {
  max-width: 50rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── final fork ──────────────────────────────────────────── */

.final-fork {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-bottom: 0;
}

.fork-intro {
  padding: clamp(2rem, 4vw, 4rem);
}

.fork-intro h2 {
  max-width: 9em;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.final-fork .action {
  grid-template-columns: 2.4rem 1fr auto;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 4rem);
  align-items: start;
  border: 0;
  border-left: 2px solid var(--paper);
}

.final-fork .action > span:nth-child(2) {
  display: grid;
  gap: 0.75rem;
}

.final-fork .action strong {
  max-width: 10em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.final-fork .action small {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.public-instance-panel {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(4.5rem, auto)) auto;
  min-width: 0;
  padding: 1rem;
  background: var(--ink);
  border-left: 2px solid var(--paper);
  color: var(--paper);
}

.public-instance-heading {
  display: grid;
  gap: 0.2rem;
  padding: 0.25rem 0.25rem 0.85rem;
}

.public-instance-heading .action-index {
  color: var(--wire-strong);
}

.public-instance-heading strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.public-instance-panel .action {
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  min-height: 4.5rem;
  padding: 0.75rem;
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--paper) 32%, transparent);
  color: var(--paper);
}

.public-instance-panel .action:hover {
  background: var(--wire);
  border-color: var(--wire);
  color: var(--on-wire);
}

.public-instance-panel .action:active {
  background: var(--wire-strong);
  border-color: var(--wire-strong);
}

.public-instance-panel .action + .action {
  border-top: 0;
}

.public-instance-panel .action > span:nth-child(2) {
  gap: 0.2rem;
}

.public-instance-panel .action strong {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.instance-signal {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--wire-strong);
  border-radius: var(--radius);
}

.public-instance-panel .action:hover .instance-signal {
  background: var(--on-wire);
}

.public-instance-panel .instance-status {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-instance-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.75rem 0.25rem 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.public-instance-submit:hover {
  color: var(--wire-strong);
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 2rem;
  padding: 2rem var(--page-gutter);
  background: var(--night);
  color: var(--on-night);
  border-top: 2px solid var(--night);
}

.site-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer .brand-mark {
  min-width: auto;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 1.2rem;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--night-muted);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  min-height: 44px;
  color: var(--night-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--on-night);
}

.footer-mark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: right;
}

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

@media (max-width: 68rem) {
  .site-nav a {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .wire-demo {
    grid-column: 7 / -1;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .thread-node header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .thread-node header .thread-origin {
    grid-column: 2;
    justify-self: start;
  }

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

  .capability-ledger article:nth-child(2) {
    border-right: 0;
  }

  .capability-ledger article:nth-child(-n + 2) {
    border-bottom: 2px solid var(--rule);
  }

  .final-fork {
    grid-template-columns: 1fr 1fr;
  }

  .fork-intro {
    grid-column: 1 / -1;
    border-bottom: 2px solid var(--ink);
  }
}

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

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    display: none;
  }

  .brand-mark {
    min-width: 4.5rem;
    min-height: 54px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    overflow-x: auto;
    border-top: 2px solid var(--rule);
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 1 0 auto;
    justify-content: center;
    border-right: 2px solid var(--rule);
    border-left: 0;
  }

  .hero {
    display: block;
  }

  .hero-copy {
    padding: clamp(4rem, 14vw, 6rem) var(--page-gutter);
    border-right: 0;
    border-bottom: 2px solid var(--rule);
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .wire-demo {
    padding: 3rem var(--page-gutter) 4rem;
  }

  .wire-demo figcaption {
    display: grid;
  }

  .federation-explainer {
    grid-template-columns: 1fr;
  }

  .thread-node header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .thread-act {
    padding-top: 2rem;
    padding-left: 0;
    border-top: 2px solid var(--rule);
    border-left: 0;
  }

  .act-heading {
    min-height: 0;
  }

  .federation-conclusion {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .federation-footer {
    grid-template-columns: 1fr;
  }

  .figure-proof {
    min-height: 48px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .section-index {
    margin-bottom: 2.25rem;
  }

  .section-heading h2 {
    margin-bottom: 1.5rem;
  }

  .travel-network {
    min-height: 78rem;
  }

  .network-map-title {
    align-items: flex-start;
    min-height: 5.2rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
  }

  .travel-network::after {
    top: 5.2rem;
  }

  .network-legend {
    top: 6rem;
    right: 0.75rem;
    left: 0.75rem;
    justify-content: space-between;
  }

  .network-positioned {
    top: var(--mobile-top);
    left: var(--mobile-left);
  }

  .network-edge {
    width: var(--mobile-width);
    transform: rotate(var(--mobile-angle));
  }

  .network-instance-node {
    min-width: 8.5rem;
    padding: 0.62rem 0.7rem;
  }

  .network-selected-node {
    min-width: min(13rem, calc(100vw - 4rem));
  }

  .network-instance-muted {
    min-width: 7.6rem;
  }

  .network-resource-node {
    min-width: 6.2rem;
    padding: 0.38rem 0.45rem;
  }

  .network-protocol {
    align-items: flex-start;
    min-height: 5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
  }

  .path-grid,
  .capability-ledger,
  .run-grid,
  .manifesto-copy,
  .final-fork {
    grid-template-columns: 1fr;
  }

  .path-panel {
    min-height: 32rem;
  }

  .path-panel + .path-panel {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .capability-ledger article,
  .capability-ledger article:nth-child(2) {
    min-height: 20rem;
    border-right: 0;
    border-bottom: 2px solid var(--rule);
  }

  .ledger-status {
    margin-bottom: 4rem;
  }

  .manifesto-section {
    display: block;
  }

  .manifesto-section blockquote {
    margin: 3rem 0 4rem;
  }

  .manifesto-section blockquote p {
    font-size: clamp(2.6rem, 13vw, 5rem);
  }

  .run-notes {
    margin-top: 3rem;
  }

  .final-fork .fork-intro,
  .final-fork .action {
    grid-column: 1;
  }

  .final-fork .action {
    min-height: 14rem;
    border-top: 2px solid var(--paper);
    border-left: 0;
  }

  .public-instance-panel {
    border-top: 2px solid var(--paper);
    border-left: 0;
  }

  .public-instance-panel .action {
    min-height: 4.75rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-mark {
    text-align: left;
  }
}

@media (max-width: 30rem) {
  .control-theme {
    min-width: 50px;
  }

  .hero-copy,
  .wire-demo,
  .section,
  .credits-section,
  .manifesto-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .action {
    grid-template-columns: 1.8rem 1fr auto;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .thread-depth-1 {
    --thread-depth: 0.65rem;
  }

  .thread-depth-2 {
    --thread-depth: 1.3rem;
  }

  .thread-node header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .thread-node header .thread-origin {
    grid-column: 2;
    justify-self: start;
  }

  .protocol-facts {
    display: grid;
    gap: 0.45rem;
  }

  .path-panel {
    padding: 2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .route-stop {
    opacity: 1;
    transform: none;
  }

  .network-packet {
    display: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .header-controls,
  .hero-actions,
  .final-fork {
    display: none;
  }

  body,
  .wire-demo,
  .section,
  .paths-section,
  .working-section,
  .run-section,
  .credits-section {
    background: #ffffff;
    color: #000000;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-copy,
  .wire-demo {
    padding: 2rem;
    border: 0;
  }

  a {
    text-decoration: underline;
  }
}
