:root {
  --void: #070807;
  --void-raised: #0b0c0a;
  --surface: #10110e;
  --surface-raised: #151611;
  --ink: #f0eee7;
  --ink-soft: #aaa89f;
  --ink-faint: #73736c;
  --line: rgba(240, 238, 231, .12);
  --line-strong: rgba(240, 238, 231, .24);
  --signal: #cbab69;
  --signal-bright: #e0c487;
  --signal-soft: rgba(203, 171, 105, .1);
  --display: "Helvetica Neue", "Avenir Next", Inter, Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --header-h: 5.25rem;
  --shell: min(100% - 3rem, 92rem);
  --reading: 52rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--void);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(203,171,105,.055), transparent 24rem),
    linear-gradient(90deg, transparent 49.96%, rgba(240,238,231,.018) 50%, transparent 50.04%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: .024;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.2) 3px 4px);
  mix-blend-mode: soft-light;
}

::selection { background: var(--signal); color: var(--void); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  top: .75rem;
  left: .75rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: .7rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 1px solid var(--signal);
  background: var(--void);
  color: var(--ink);
}
.shell { width: var(--shell); margin-inline: auto; }
.meta, .eyebrow, .section-index, .status, .kind, .num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow, .kicker, .section-index { color: var(--signal-bright); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto minmax(14rem, 1fr);
  align-items: center;
  gap: 2rem;
  padding: .8rem max(1.5rem, calc((100vw - 92rem) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 7, .88);
  backdrop-filter: blur(18px) saturate(120%);
}
.brand { display: inline-flex; align-items: center; gap: .9rem; width: max-content; }
.brand-mark { width: 2.85rem; height: 1.55rem; object-fit: contain; }
.brand-word {
  display: grid;
  gap: .05rem;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1.25;
}
.brand-word small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.primary-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.75rem); }
.primary-nav a {
  position: relative;
  padding: .8rem 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 520;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .5rem;
  height: 1px;
  background: var(--signal);
  transition: right .3s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: .35rem; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  margin-right: .35rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 520;
  letter-spacing: .1em;
}
.language-switch a {
  padding: .5rem .12rem;
  color: var(--ink-faint);
  transition: color .2s ease;
}
.language-switch a:hover { color: var(--ink); }
.language-switch a[aria-current="page"] { color: var(--signal-bright); }
.language-switch span { opacity: .45; }
.header-action, .menu-button, .overlay-close, .filter-button, .reader-notes button {
  min-height: 2.45rem;
  padding: .55rem .8rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.header-action:hover, .menu-button:hover, .overlay-close:hover, .reader-notes button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--signal-soft);
}
.menu-button { border-color: var(--line); }
.reading-progress { position: fixed; inset: var(--header-h) 0 auto; z-index: 51; height: 1px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--signal); }

/* Hero */
.hero {
  position: relative;
  width: var(--shell);
  min-height: calc(100svh - var(--header-h));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: clamp(4rem, 8vh, 7rem) 0 5rem;
}
.hero-copy { grid-column: 1 / 7; z-index: 2; align-self: center; }
.hero-title {
  max-width: 7ch;
  margin: 1rem 0 1.8rem;
  font-size: clamp(4.25rem, 8.4vw, 8.9rem);
  font-weight: 480;
  letter-spacing: -.075em;
  line-height: .84;
}
.hero-title em { color: var(--signal-bright); font-style: normal; font-weight: 350; }
.hero-title-fr {
  max-width: 11ch;
  font-size: clamp(3.7rem, 7vw, 7.8rem);
}
.hero-title-fr em { white-space: nowrap; }
.hero-question { max-width: 36rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.45vw, 1.35rem); line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .095em;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease, translate .25s ease;
}
.button:hover { border-color: var(--signal); background: var(--signal-soft); translate: 0 -.15rem; }
.button.primary { border-color: var(--signal); background: var(--signal); color: var(--void); font-weight: 700; }
.button.primary:hover { background: var(--signal-bright); }
.engine-panel {
  grid-column: 7 / -1;
  position: relative;
  z-index: 1;
  min-width: 0;
  isolation: isolate;
}
.engine-frame {
  position: relative;
  aspect-ratio: 1 / .88;
  overflow: visible;
  isolation: isolate;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 20%,
    radial-gradient(circle at 50% 50%, rgba(203,171,105,.07), transparent 47%),
    var(--void-raised);
}
.engine-corner {
  position: absolute;
  z-index: 6;
  width: 1.25rem;
  height: 1.25rem;
  opacity: .92;
  pointer-events: none;
}
.corner-nw { top: .8rem; left: .8rem; border-top: 1px solid var(--signal); border-left: 1px solid var(--signal); }
.corner-ne { top: .8rem; right: .8rem; border-top: 1px solid var(--signal); border-right: 1px solid var(--signal); }
.corner-sw { bottom: .8rem; left: .8rem; border-bottom: 1px solid var(--signal); border-left: 1px solid var(--signal); }
.corner-se { right: .8rem; bottom: .8rem; border-right: 1px solid var(--signal); border-bottom: 1px solid var(--signal); }
#coherence-engine {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 190%;
  height: 190%;
  translate: -50% -50%;
  opacity: .96;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, #000 0 54%, rgba(0,0,0,.9) 72%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 0 54%, rgba(0,0,0,.9) 72%, transparent 100%);
}
.engine-mark {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(7.5rem, 14vw, 10.75rem);
  height: auto;
  translate: -50% -50%;
  opacity: .92;
  filter: drop-shadow(0 0 .8rem rgba(203,171,105,.1));
  overflow: visible;
  pointer-events: none;
}
.engine-mark { shape-rendering: geometricPrecision; }
.engine-mark path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.mark-memory path { stroke: var(--signal); stroke-width: .5; stroke-dasharray: .14 .045 .075 .055 .19 .085; opacity: .2; }
.mark-memory path:nth-child(2) { stroke-dashoffset: -.17; opacity: .17; }
.mark-memory path:nth-child(3) { stroke-dashoffset: -.39; opacity: .18; }
.mark-memory path:nth-child(4) { stroke-dashoffset: -.61; opacity: .16; }
.mark-impulse { opacity: 0; transition: opacity .55s ease; }
.mark-vector-ready .mark-impulse { opacity: 1; }
.mark-gradient-stop { stop-color: var(--signal-bright); }
.mark-impulse-piece { stroke-width: .62; stroke-linecap: butt; opacity: 0; }
.mark-impulse-piece.is-active { opacity: 1; }
.mark-impulse-halo { fill: rgba(203,171,105,.12); filter: drop-shadow(0 0 7px rgba(224,196,135,.24)); }
.mark-impulse-dot { fill: var(--ink); filter: drop-shadow(0 0 4px rgba(224,196,135,.55)); }
.engine-label, .engine-readout {
  position: absolute;
  z-index: 5;
  left: 3rem;
  right: 3rem;
  display: grid;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.engine-label { top: 1.05rem; grid-template-columns: 1fr 1fr; }
.engine-readout { bottom: .95rem; grid-template-columns: 1fr 1fr 1fr; }
.telemetry-slot {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 1.35em;
  align-items: center;
  overflow: hidden;
}
.engine-label .telemetry-slot:last-child,
.engine-readout .telemetry-slot:last-child {
  justify-content: flex-end;
  text-align: right;
}
.engine-readout .telemetry-slot:nth-child(2) {
  justify-content: center;
  text-align: center;
}
.telemetry-copy {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity, clip-path;
}
.telemetry-copy::before,
.telemetry-copy::after {
  position: absolute;
  inset: 0;
  content: attr(data-signal-text);
  color: var(--signal-bright);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
.telemetry-copy::before {
  clip-path: inset(0 0 57% 0);
}
.telemetry-copy::after {
  color: var(--ink-muted);
  clip-path: inset(58% 0 0 0);
}
.telemetry-slot::before {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  left: 0;
  width: 24%;
  content: "";
  opacity: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(224,196,135,.18) 0,
    rgba(224,196,135,.18) 1px,
    transparent 1px,
    transparent 3px
  );
  transform: translateX(-130%);
  pointer-events: none;
}
.telemetry-slot::after {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(224,196,135,.95) 46%, transparent);
  box-shadow: 0 0 .45rem rgba(224,196,135,.4);
  pointer-events: none;
}
.telemetry-slot.is-changing .telemetry-copy {
  animation: telemetry-signal-loss .78s linear both;
}
.telemetry-slot.is-changing .telemetry-copy::before {
  animation: telemetry-upper-fragment .78s steps(1, end) both;
}
.telemetry-slot.is-changing .telemetry-copy::after {
  animation: telemetry-lower-fragment .78s steps(1, end) both;
}
.telemetry-slot.is-changing::before {
  animation: telemetry-interference .78s steps(6, end) both;
}
.telemetry-slot.is-changing::after {
  animation: telemetry-resynchronise .78s cubic-bezier(.26,.76,.28,1) both;
}
@keyframes telemetry-signal-loss {
  0%, 8% { opacity: 1; clip-path: inset(0); transform: translateX(0) scaleX(1); }
  9% { opacity: .24; clip-path: inset(0 0 46% 0); transform: translateX(-1px) scaleX(.99); }
  13% { opacity: .94; clip-path: inset(0); transform: translateX(1px) scaleX(1); }
  18% { opacity: .16; clip-path: inset(54% 0 0 0); transform: translateX(0); }
  22% { opacity: .76; clip-path: inset(0 0 40% 0); transform: translateX(-2px); }
  27% { opacity: .08; clip-path: inset(0); transform: translateX(2px) scaleX(.97); }
  33% { opacity: .48; clip-path: inset(32% 0 30% 0); transform: translateX(-1px); }
  39%, 53% { opacity: 0; clip-path: inset(48% 0 48% 0); transform: translateX(0) scaleX(.95); }
  58% { opacity: .18; clip-path: inset(0 0 55% 0); transform: translateX(2px); }
  64% { opacity: .7; clip-path: inset(0 0 27% 0); transform: translateX(-1px); }
  69% { opacity: .26; clip-path: inset(46% 0 0 0); transform: translateX(1px); }
  76% { opacity: .88; clip-path: inset(0); transform: translateX(0); }
  81% { opacity: .46; clip-path: inset(0 0 68% 0); transform: translateX(-1px); }
  88% { opacity: .94; clip-path: inset(0); transform: translateX(0); }
  92% { opacity: .72; clip-path: inset(64% 0 0 0); transform: translateX(1px); }
  100% { opacity: 1; clip-path: inset(0); transform: translateX(0) scaleX(1); }
}
@keyframes telemetry-upper-fragment {
  0%, 8% { opacity: 0; transform: translateX(0); }
  9% { opacity: .7; transform: translateX(3px); }
  14% { opacity: 0; transform: translateX(-1px); }
  18% { opacity: .5; transform: translateX(-3px); }
  23% { opacity: 0; transform: translateX(0); }
  28% { opacity: .62; transform: translateX(2px); }
  35%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes telemetry-lower-fragment {
  0%, 12% { opacity: 0; transform: translateX(0); }
  13% { opacity: .5; transform: translateX(-2px); }
  19% { opacity: 0; transform: translateX(1px); }
  23% { opacity: .68; transform: translateX(4px); }
  29% { opacity: 0; transform: translateX(0); }
  33% { opacity: .46; transform: translateX(-3px); }
  39%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes telemetry-interference {
  0%, 7% { opacity: 0; transform: translateX(-130%); }
  10% { opacity: .5; transform: translateX(15%); }
  17% { opacity: .14; transform: translateX(80%); }
  24% { opacity: .36; transform: translateX(190%); }
  32% { opacity: .08; transform: translateX(280%); }
  40%, 100% { opacity: 0; transform: translateX(380%); }
}
@keyframes telemetry-resynchronise {
  0%, 50% { left: 0; opacity: 0; }
  57% { left: 0; opacity: .94; }
  88% { left: calc(100% - 1px); opacity: .62; }
  100% { left: 100%; opacity: 0; }
}
.engine-readout b { color: var(--signal-bright); font-weight: 500; }
.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 1.2rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-cue::before { content: "↓"; margin-right: .7rem; color: var(--signal); }

/* Shared editorial sections */
.section { padding-block: clamp(6rem, 11vw, 11rem); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(7rem, 2fr) 5fr 3fr; gap: 2rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-head h2 { max-width: 9ch; margin: 0; font-size: clamp(3.2rem, 6vw, 6.6rem); font-weight: 420; letter-spacing: -.06em; line-height: .9; }
.section-head .orders-title { max-width: none; }
.orders-title span { white-space: nowrap; }
.section-head p { margin: .25rem 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.manifesto-band {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 12vw, 12rem) max(1.5rem, calc((100vw - 92rem) / 2));
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, var(--void-raised), var(--void));
}
.manifesto-band blockquote { max-width: 26ch; margin: 0; font-size: clamp(2.4rem, 5vw, 5.25rem); font-weight: 390; letter-spacing: -.045em; line-height: 1.08; }
.manifesto-band blockquote span { color: var(--signal-bright); }

.cycle-stage { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.cycle-core {
  grid-column: 1 / -1;
  min-height: 13rem;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle, var(--signal-soft), transparent 45%);
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 380;
  letter-spacing: -.05em;
  line-height: .88;
  text-align: center;
}
.cycle-node { min-height: 8.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.cycle-node:nth-child(3n + 1) { border-right: 0; }
.cycle-node:hover { background: var(--signal-soft); }
.cycle-node b { color: var(--signal); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; }
.cycle-node span { max-width: 12rem; font-size: .92rem; line-height: 1.4; }

.orders-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.order-card { position: relative; min-height: 20rem; padding: 1.65rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--void); transition: background .3s ease; }
.order-card::after { content: ""; position: absolute; inset: -.5px; border: 1px solid transparent; pointer-events: none; transition: border-color .3s ease; }
.order-card:hover { background: var(--surface); }
.order-card:hover::after { border-color: var(--signal); }
.order-card .arrow { position: absolute; top: 1.4rem; right: 1.4rem; color: var(--signal); }
.order-card h3 { margin: 5rem 0 1rem; font-size: clamp(2rem, 3vw, 3.3rem); font-weight: 420; letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
.order-card p { max-width: 28rem; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.dispatch-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--line); }
.dispatch-card { min-height: 23rem; padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,255,255,.012)); transition: background .25s ease; }
.dispatch-card:first-child { border-left: 1px solid var(--line); }
.dispatch-card:hover { background: var(--signal-soft); }
.dispatch-card h3 { margin: 5.5rem 0 1rem; font-size: clamp(1.65rem, 2.6vw, 3rem); font-weight: 430; letter-spacing: -.04em; line-height: 1.05; }
.dispatch-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.status { color: var(--signal-bright); }
.status.retired { color: var(--ink-faint); }

/* Index and content cards */
.page-hero { display: grid; align-items: center; padding: clamp(4.5rem, 7vw, 7rem) 0 clamp(3.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero-inner { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr; gap: 5rem; align-items: end; }
.page-title { max-width: 13ch; margin: 1rem 0 1.4rem; font-size: clamp(4.2rem, 8vw, 8rem); font-weight: 420; letter-spacing: -.07em; line-height: .88; }
.page-deck { max-width: 42rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.38rem); line-height: 1.55; }
.page-meta-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.page-meta-grid div { min-height: 6rem; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-meta-grid span:first-child { color: var(--ink-faint); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.page-meta-grid span:last-child { font-size: .9rem; }
.book-map, .charter-grid, .lexicon-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.chapter-card, .charter-article, .lexicon-entry, .archive-entry {
  min-height: 19rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--void);
}
.chapter-card { position: relative; transition: background .25s ease; }
.chapter-card:hover { background: var(--signal-soft); }
.chapter-card .chapter-number { color: var(--signal); font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; }
.chapter-card h3, .charter-article h3, .lexicon-term, .archive-entry h3 { margin: 4.5rem 0 .9rem; font-size: clamp(1.55rem, 2.2vw, 2.35rem); font-weight: 430; letter-spacing: -.04em; line-height: 1.05; }
.chapter-card p, .charter-article p, .lexicon-entry p, .archive-entry p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.chapter-card .arrow { position: absolute; top: 1.4rem; right: 1.4rem; color: var(--signal); }
.chapter-card.coda { grid-column: 1 / -1; min-height: 16rem; background: var(--signal-soft); }
.chapter-card.coda h3 { margin-top: 3rem; }
.charter-article .roman { color: var(--signal); font-size: 2.3rem; font-weight: 350; }
.charter-article h3 { margin-top: 3rem; }
.lexicon-term { margin: 1rem 0 .25rem; }
.lexicon-pronunciation { color: var(--signal); font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; }
.archive-entry h3 { margin-top: 3rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-button { border-color: var(--line); }
.filter-button.active { border-color: var(--signal); background: var(--signal-soft); color: var(--ink); }
.commentary-feature { display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--line); }
.commentary-feature > * { padding: clamp(2rem, 5vw, 5rem); }
.commentary-feature > :first-child { border-right: 1px solid var(--line); }
.commentary-feature h2 { margin: 2rem 0 1rem; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 420; letter-spacing: -.055em; line-height: .95; }
.commentary-feature p { color: var(--ink-soft); }
.journal-list { border-top: 1px solid var(--line); }
.journal-entry { display: grid; grid-template-columns: 9rem 1fr auto; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.journal-entry h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 430; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; }
.journal-entry p { max-width: 45rem; margin: .75rem 0 0; color: var(--ink-soft); }

/* Reading system: always nocturnal */
.is-reading { background: var(--void); color: var(--ink); }
.reader-hero { padding: clamp(5rem, 8vw, 8rem) 1.5rem 3.75rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 22%, var(--signal-soft), transparent 24rem); }
.reader-hero-inner { width: var(--shell); margin-inline: auto; }
.reader-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin: 0; color: var(--signal-bright); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.reader-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s ease; }
.reader-breadcrumb a:hover { color: var(--ink); }
.reader-breadcrumb span[aria-current="page"] { color: var(--signal-bright); opacity: .78; }
.reader-breadcrumb span[aria-hidden="true"] { opacity: .55; }
.reader-title { max-width: 13ch; margin: 1rem 0 1.6rem; color: var(--ink); font-size: clamp(3.8rem, 7.2vw, 7.4rem); font-weight: 420; letter-spacing: -.07em; line-height: .9; }
.reader-deck { max-width: 48rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.4rem); line-height: 1.58; }
.reader-meta { display: flex; flex-wrap: wrap; gap: .7rem 2rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.reader-grid { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, var(--reading)) minmax(12rem, 15rem); justify-content: space-between; gap: clamp(2rem, 4vw, 5rem); align-items: start; padding-block: 5rem 8rem; }
.reader-toc, .reader-notes { position: sticky; top: calc(var(--header-h) + 2rem); }
.reader-toc { max-height: calc(100svh - var(--header-h) - 4rem); overflow-y: auto; padding-right: .4rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.reader-toc h2, .reader-notes h2 { margin: 0 0 1rem; color: var(--ink-faint); font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.toc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.toc-list a { display: grid; grid-template-columns: 2rem 1fr; gap: .65rem; padding: .82rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; line-height: 1.42; transition: color .2s ease; }
.toc-list a::before { content: attr(data-index); color: var(--signal); font-family: var(--mono); font-size: .62rem; }
.toc-list a:hover, .toc-list a.active { color: var(--ink); }
.note-card { padding: 1rem 0; border-top: 1px solid var(--line); }
.note-card:last-child { border-bottom: 1px solid var(--line); }
.note-card p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.note-card a { color: var(--ink); }
.reading-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .65rem; }
.reader-notes .reading-controls button { width: 100%; min-height: 2.3rem; padding: .45rem .65rem; border-color: var(--line); font-size: .62rem; }
.reading-controls [data-copy-link] { grid-column: 1 / -1; }
.book-sequence { margin-top: 3.25rem; padding-top: 1.7rem; border-top: 1px solid var(--line-strong); }
.book-sequence h2 { margin-bottom: 1.25rem; }
.chapter-jump-grid { display: grid; grid-template-columns: repeat(5, minmax(2.15rem, 1fr)); gap: .5rem; }
.chapter-jump-grid a { display: grid; min-width: 0; min-height: 2.35rem; place-items: center; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: .62rem; line-height: 1; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.chapter-jump-grid a:hover { border-color: var(--signal); color: var(--ink); background: var(--signal-soft); }
.chapter-jump-grid a[aria-current="page"] { border-color: var(--signal); background: var(--signal); color: var(--void); font-weight: 700; }
.book-overview-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .65rem; padding: .7rem .8rem; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: .62rem; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.book-overview-link span { color: var(--signal); }
.book-overview-link:hover { border-color: var(--signal); background: var(--signal-soft); color: var(--ink); }
.prose { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.82; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.55rem; }
.prose h2 { margin: 5rem 0 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(1.85rem, 3.2vw, 2.8rem); font-weight: 430; letter-spacing: -.045em; line-height: 1.12; }
.prose h3 { color: var(--ink); }
.prose h2 .section-count { display: block; margin-bottom: 1rem; color: var(--signal); font-family: var(--mono); font-size: .61rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.prose .kicker { margin-bottom: 1rem; font-family: var(--mono); font-size: .67rem; letter-spacing: .11em; text-transform: uppercase; }
.prose blockquote { margin: 0 0 4rem; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 1px solid var(--signal); color: var(--ink); font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 380; letter-spacing: -.025em; line-height: 1.35; }
.prose blockquote p { margin: 0; }
.prose a { color: var(--signal-bright); text-decoration: underline; text-decoration-color: rgba(203,171,105,.35); text-underline-offset: .18em; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .55rem; }
.canonical-proposition { position: relative; margin: 2rem 0; padding: 1.25rem 1.5rem 1.25rem 2rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.05rem; font-weight: 520; line-height: 1.55; }
.canonical-proposition::before { content: ""; position: absolute; inset: -.5px auto -.5px -.5px; width: 2px; background: var(--signal); }
.practice-box { margin-top: 5rem; padding: 2rem; border: 1px solid var(--line-strong); background: var(--void-raised); }
.practice-box h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.5rem; }
.practice-box ul { margin-bottom: 0; }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chapter-nav a { min-height: 9rem; padding: 2rem max(1.5rem, calc((100vw - 92rem) / 2)); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); transition: background .25s ease; }
.chapter-nav a:last-child { align-items: flex-end; border-right: 0; text-align: right; }
.chapter-nav a:hover { background: var(--signal-soft); }
.chapter-nav strong { font-size: 1rem; font-weight: 530; }

/* Footer */
.site-footer { padding: clamp(4rem, 8vw, 7rem) max(1.5rem, calc((100vw - 92rem) / 2)) 2rem; border-top: 1px solid var(--line); background: var(--void-raised); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.8fr .6fr; gap: 4rem; }
.footer-statement { max-width: 30rem; margin: 0; color: var(--ink); font-size: clamp(1.45rem, 2.4vw, 2.2rem); font-weight: 390; letter-spacing: -.035em; line-height: 1.28; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-links h2 { margin: 0 0 1rem; color: var(--ink-faint); font-family: var(--mono); font-size: .61rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.footer-links a, .footer-links button { display: block; width: max-content; margin-bottom: .5rem; padding: 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.4; }
.footer-links a:hover, .footer-links button:hover { color: var(--signal-bright); }
.footer-meta { color: var(--ink-faint); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1.9; text-transform: uppercase; }

/* Full-screen corpus controls */
.index-overlay, .search-overlay { position: fixed; inset: 0; z-index: 200; visibility: hidden; opacity: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(14px); transition: opacity .3s ease, visibility .3s ease; }
.index-overlay.open, .search-overlay.open { visibility: visible; opacity: 1; }
.index-panel { width: min(100%, 52rem); height: 100%; margin-left: auto; overflow-y: auto; padding: 1.5rem clamp(1.5rem, 4vw, 4rem) 4rem; background: var(--void-raised); border-left: 1px solid var(--line); translate: 4rem 0; transition: translate .35s ease; }
.index-overlay.open .index-panel { translate: 0; }
.overlay-top { position: sticky; top: -1.5rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 0 3rem; padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--line); background: var(--void-raised); }
.index-group { margin-bottom: 3rem; }
.index-group h2 { margin: 0 0 .8rem; color: var(--ink-faint); font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.index-group a { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; transition: color .2s ease, padding-left .2s ease; }
.index-group a:last-child { border-bottom: 1px solid var(--line); }
.index-group a:hover { padding-left: .35rem; color: var(--ink); }
.index-group .num { color: var(--signal); }
.index-group .kind { color: var(--ink-faint); font-size: .58rem; }
.search-overlay { display: grid; place-items: start center; padding-top: min(17vh, 9rem); }
.search-panel { width: min(calc(100% - 3rem), 47rem); border: 1px solid var(--line-strong); background: var(--void-raised); box-shadow: 0 2rem 6rem rgba(0,0,0,.55); }
.search-input-wrap { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.search-input-wrap span { color: var(--signal); font-family: var(--mono); }
.search-input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-input::placeholder { color: var(--ink-faint); }
.search-results { max-height: 60vh; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.search-result a { display: flex; justify-content: space-between; gap: 2rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.search-result a:hover { background: var(--signal-soft); }
.search-result strong { font-size: .86rem; font-weight: 540; }
.search-result span { color: var(--ink-faint); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.search-empty { padding: 1.5rem; color: var(--ink-faint); }

/* Motion */
.reveal { opacity: 1; translate: 0; }
.js-ready .reveal { opacity: 0; translate: 0 1.5rem; transition: opacity .7s ease, translate .7s ease; }
.js-ready .reveal.visible { opacity: 1; translate: 0; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero-copy { grid-column: 1 / 7; }
  .engine-panel { grid-column: 7 / -1; }
  .section-head { grid-template-columns: 1fr 2fr; }
  .section-head p { grid-column: 2; }
  .reader-grid { grid-template-columns: minmax(0, var(--reading)) minmax(11rem, 14rem); justify-content: stretch; }
  .reader-toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1.7fr; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  :root { --header-h: 4.6rem; --shell: min(100% - 2rem, 92rem); }
  body { font-size: 16.5px; }
  .site-header { gap: 1rem; padding-inline: 1rem; }
  .brand-mark { width: 2.5rem; }
  .brand-word { font-size: .78rem; }
  .brand-word small, .search-label { display: none; }
  .header-action, .menu-button { font-size: .76rem; }
  .language-switch { margin-right: .3rem; font-size: .63rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 5rem 0 3.5rem; }
  .hero-copy, .engine-panel { grid-column: 1; }
  .hero-title { font-size: clamp(4rem, 20vw, 7rem); }
  .hero-title-fr { font-size: clamp(3.25rem, 15vw, 5.8rem); }
  .engine-panel { margin-top: 2.5rem; }
  .engine-frame { aspect-ratio: 1 / .9; }
  #coherence-engine { width: 158%; height: 158%; opacity: .9; }
  .engine-readout { grid-template-columns: 1fr 1fr; }
  .engine-readout span:nth-child(2) { display: none; }
  .scroll-cue { position: static; margin-top: 2.5rem; }
  .manifesto-band { min-height: 52vh; }
  .section-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-head p { grid-column: 1; max-width: 34rem; }
  .cycle-stage, .orders-grid, .book-map, .charter-grid, .lexicon-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .cycle-core { grid-column: 1 / -1; }
  .cycle-node:nth-child(3n + 1) { border-right: 1px solid var(--line); }
  .cycle-node:nth-child(odd) { border-right: 0; }
  .chapter-card.coda { grid-column: 1 / -1; }
  .dispatch-grid { grid-template-columns: 1fr; }
  .dispatch-card, .dispatch-card:first-child { min-height: 16rem; border-left: 1px solid var(--line); }
  .dispatch-card h3 { margin-top: 3.5rem; }
  .page-hero { padding: 4rem 0 3rem; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .page-title { font-size: clamp(3.7rem, 15vw, 6rem); }
  .commentary-feature { grid-template-columns: 1fr; }
  .commentary-feature > :first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .journal-entry { grid-template-columns: 1fr; gap: .7rem; }
  .reader-grid { width: min(100% - 2rem, var(--reading)); grid-template-columns: 1fr; padding-top: 3rem; }
  .reader-notes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
  .reader-notes h2 { grid-column: 1 / -1; }
  .chapter-nav a { padding-inline: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 1rem; }
  .footer-meta { grid-column: auto; }
}

@media (max-width: 540px) {
  .header-tools { gap: 0; }
  .header-action { padding-inline: .45rem; }
  .language-switch { gap: .25rem; margin-right: .2rem; }
  .hero-question { font-size: 1.03rem; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .engine-label, .engine-readout { left: 1.5rem; right: 1.5rem; font-size: .53rem; letter-spacing: .08em; }
  .section { padding-block: 5rem; }
  .section-head h2 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .cycle-stage, .orders-grid, .book-map, .charter-grid, .lexicon-grid, .archive-grid { grid-template-columns: 1fr; }
  .cycle-node, .cycle-node:nth-child(odd), .cycle-node:nth-child(3n + 1) { border-right: 0; }
  .order-card, .chapter-card, .charter-article, .lexicon-entry, .archive-entry { min-height: 17rem; }
  .chapter-card.coda { grid-column: 1; }
  .page-meta-grid { grid-template-columns: 1fr 1fr; }
  .reader-hero { padding-inline: 1rem; padding-top: 5rem; }
  .reader-title { font-size: clamp(3.35rem, 16vw, 5rem); }
  .reader-meta { gap: .55rem 1rem; }
  .prose { font-size: 1rem; line-height: 1.78; }
  .prose h2 { margin-top: 4rem; }
  .practice-box { padding: 1.4rem; }
  .reader-notes { grid-template-columns: 1fr; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter-nav a:last-child { border-bottom: 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .index-panel { padding-inline: 1rem; }
  .index-group a { grid-template-columns: 2rem 1fr; }
  .index-group .kind { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .mark-memory path { stroke-dasharray: none; opacity: .34; }
  .mark-impulse { display: none; }
  .telemetry-slot.is-changing .telemetry-copy { opacity: 1; filter: none; transform: none; }
  .telemetry-slot.is-changing .telemetry-copy::before,
  .telemetry-slot.is-changing .telemetry-copy::after,
  .telemetry-slot.is-changing::before,
  .telemetry-slot.is-changing::after { display: none; }
}
