/* ============================================================
   STRATEGIC INTEGRATION — A WORKING FRAMEWORK
   Branded against factsmgt.com — Sofia Pro / FatFrank palette,
   FACTS deep blue + accent. Mulish substitutes for Sofia Pro
   (Adobe Fonts) when not licensed.
   ============================================================ */

:root {
  /* Surface — dark editorial. Cool navy primary, warm-tone inner panels for contrast.
     Ordering, deepest → brightest: --paper-deep < --paper < --paper-soft < --paper-warm < --paper-pure */
  --paper:        #1f2937;        /* sheet base — §01, §04, §06, §07 */
  --paper-warm:   #243140;        /* warm-shifted, slight lift — §02, §05, chips at rest */
  --paper-deep:   #182230;        /* deepest, asides/quotes */
  --paper-pure:   #2a3548;        /* brightest lift — §03 sheet, hover/active states */
  --paper-soft:   #232f3e;        /* soft mid — toolbars */
  --paper-cool:   #2a3548;        /* alias of --paper-pure */

  /* Inner panel — warm-dark surface used inside demo / query panels */
  --panel:        #14110d;        /* deepest panel bg */
  --panel-soft:   #1f1c17;        /* softer panel */
  --panel-rule:   #2a261e;        /* panel hairline */

  /* Text — light on dark */
  --ink:          #f1f5f9;        /* primary text */
  --ink-soft:     #c5cdd8;        /* secondary text */
  --ink-faint:    #8893a3;        /* muted text */

  /* Rules — dark mid-tones */
  --rule:         #2e3b4d;
  --rule-fine:    #28344a;
  --rule-cool:    #2a3548;

  /* Display + accent — replaces FACTS navy/amber. */
  --navy:         #f7fafc;        /* display headings (was navy primary). Light on dark. */
  --navy-bright:  #d97847;        /* hover/link emphasis maps to accent */
  --navy-tint:    #1a2540;        /* dark slate-navy for active-state bg */
  --amber:        #d97847;        /* terracotta — new accent, replaces FACTS orange */
  --amber-tint:   #3d2817;        /* warm-brown active-state bg */
  --crimson:      #c13a3a;
  --emerald:      #4eb087;        /* lifted to read on dark */
  --emerald-tint: #0d3326;
  --plum:         #a07cf5;        /* lifted purple for dark bg */
  --plum-tint:    #241b3a;

  /* Demo-specific (preserve internal demo cohesion) */
  --bg:         var(--panel);
  --bg-soft:    var(--panel-soft);
  --bg-darker:  var(--panel-soft);   /* lifted slightly on dark — toolbar/hover */
  --border:     var(--panel-rule);
  --border-strong: #3d3623;
  --text:       #e8eef5;
  --text-muted: #9aa6b5;
  --text-soft:  #7a8593;
  --accent:     var(--amber);
  --accent-light: var(--amber-tint);
  --agent:      var(--plum);
  --agent-bg:   var(--plum-tint);
  --human:      var(--emerald);
  --human-bg:   var(--emerald-tint);
  --system:     var(--amber);
  --system-bg:  var(--amber-tint);
  --factual:    #ef5a5a;
  --factual-bg: #3a1818;
  --tone:       #5e92e0;
  --tone-bg:    #142540;
  --addition:   var(--emerald);
  --addition-bg: var(--emerald-tint);
  --deletion:   #8893a3;
  --deletion-bg: #2a3140;

  /* Typography — FACTS uses Sofia Pro + FatFrank (Adobe Fonts).
     Mulish is the closest open-source equivalent to Sofia Pro. */
  --font-display: 'Mulish', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-sans:    'Mulish', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius:    8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
  background: linear-gradient(180deg, #1a2230 0%, #243140 100%);
  padding: 48px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.cover-rule {
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--ink);
}

.cover-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 8% 0;
}

.cover-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 96px;
}

.cover-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.028em;
  color: var(--navy);
  margin-bottom: 28px;
}

.cover-title em {
  font-style: italic;
  font-weight: 900;
  color: var(--amber);
}

.cover-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink-soft);
  margin-bottom: 48px;
  font-variation-settings: "opsz" 18;
  max-width: 720px;
  line-height: 1.35;
}

.cover-byline {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 80px;
}

.byline-sep { color: var(--ink-faint); }

.cover-toc {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
}

.cover-toc a {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-fine);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.cover-toc a:hover {
  padding-left: 12px;
  color: var(--navy);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-variation-settings: "opsz" 22;
  line-height: 1.2;
}

.toc-rule {
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ink-faint) 0 1px, transparent 1px 4px);
  align-self: center;
  min-width: 40px;
}

.toc-page {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   COMPRESSION NOTE — prefatory passage between cover and § 01
   ============================================================ */
.compression {
  background: var(--paper-warm);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.compression-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 8%;
}

.compression-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.compression-rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--amber);
}

.compression-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.compression-body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: "opsz" 22;
  max-width: 780px;
}

.compression-body em {
  font-style: italic;
  font-weight: 600;
  color: var(--amber);
}

/* ============================================================
   SHEET — SECTION SCAFFOLD WITH MARGINALIA
   ============================================================ */
.sheet {
  background: var(--paper);
  padding: 96px 0 112px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.sheet-margin {
  position: absolute;
  top: 96px;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 120px;
}

.margin-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-weight: 500;
}

.margin-rule {
  width: 32px;
  height: 1px;
  background: var(--ink);
}

.margin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}

.sheet-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8%;
  padding-left: calc(8% + 160px);
}

.sheet-body--wide {
  max-width: 1280px;
  padding-left: calc(8% + 160px);
  padding-right: 6%;
}

.display-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 28px;
  max-width: 920px;
}

.display-h2 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 800;
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 64px;
  max-width: 720px;
  font-variation-settings: "opsz" 22;
}

.lede em { font-style: italic; }
.lede--quiet {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 48px;
}

/* ============================================================
   § 01 — 90-DAY PLAN
   ============================================================ */
.sheet--plan { background: var(--paper); }

.streams-strip {
  margin: 36px 0 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--ink);
}

.streams-strip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.streams-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

.streams-strip-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 16;
}

.streams-strip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

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

.strip-stream-trigger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px 16px 16px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  position: relative;
  transition:
    background 0.32s cubic-bezier(.2,.7,.2,1),
    border-color 0.32s cubic-bezier(.2,.7,.2,1),
    transform 0.4s cubic-bezier(.2,.7,.2,1);
}

.strip-stream-trigger::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1);
}

.strip-stream-trigger:hover {
  border-color: var(--ink-soft);
  background: var(--paper-pure);
  transform: translateY(-1px);
}

.strip-stream-trigger:hover::after {
  transform: scaleX(0.4);
}

.strip-stream-trigger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.strip-stream-trigger[aria-expanded="true"] {
  background: var(--paper-pure);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.strip-stream-trigger[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.strip-stream-trigger[aria-expanded="true"] .strip-stream-num {
  color: var(--amber);
}

.strip-stream-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 0.32s cubic-bezier(.2,.7,.2,1);
}

.strip-stream-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: "opsz" 20;
  margin-top: 2px;
}

.strip-stream-yield {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.4;
  font-variation-settings: "opsz" 14;
}

/* ---------- Streams drawer (folio insert) ---------- */

.streams-drawer {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  border: 1px solid transparent;
  border-top: none;
  background: var(--paper-pure);
  overflow: hidden;
  transition:
    grid-template-rows 0.46s cubic-bezier(.2,.7,.2,1),
    margin-top 0.46s cubic-bezier(.2,.7,.2,1),
    border-color 0.32s ease 0.05s;
}

.streams-drawer[data-active]:not([data-active=""]) {
  grid-template-rows: 1fr;
  margin-top: 18px;
  border-color: var(--ink);
}

.drawer-inner {
  min-height: 0;
  overflow: hidden;
}

.drawer-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 0;
  flex-wrap: wrap;
}

.drawer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.drawer-close {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease;
}

.drawer-close-glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
}

.drawer-close:hover { color: var(--amber); }
.drawer-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.drawer-stage {
  position: relative;
  padding: 8px 28px 36px;
}

.drawer-panel {
  display: none;
  grid-template-columns: 184px 1fr;
  gap: 44px;
  padding-top: 24px;
}

.drawer-panel.is-active {
  display: grid;
}

.drawer-marker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  padding-right: 28px;
  border-right: 1px solid var(--rule);
}

.drawer-numeral {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 124px;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--amber);
  font-variation-settings: "opsz" 72;
}

.drawer-numeral-suffix {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: 6px;
}

.drawer-body {
  max-width: 640px;
  padding-top: 4px;
}

.drawer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 10px;
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 26px;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}

.drawer-section {
  margin-bottom: 22px;
}

.drawer-section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 6px;
}

.drawer-prose {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.drawer-prose em { font-style: italic; font-weight: 500; color: var(--ink); }

.drawer-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--amber);
  padding-left: 20px;
  margin: 22px 0;
  font-variation-settings: "opsz" 26;
}

/* ---------- Drawer reveal: staggered content ---------- */

@keyframes drawerStagger {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.drawer-panel.is-active .drawer-marker {
  animation: drawerStagger 0.5s 0.18s both cubic-bezier(.2,.7,.2,1);
}
.drawer-panel.is-active .drawer-eyebrow {
  animation: drawerStagger 0.5s 0.24s both cubic-bezier(.2,.7,.2,1);
}
.drawer-panel.is-active .drawer-title {
  animation: drawerStagger 0.5s 0.30s both cubic-bezier(.2,.7,.2,1);
}
.drawer-panel.is-active .drawer-section:nth-of-type(1) {
  animation: drawerStagger 0.5s 0.36s both cubic-bezier(.2,.7,.2,1);
}
.drawer-panel.is-active .drawer-quote {
  animation: drawerStagger 0.5s 0.42s both cubic-bezier(.2,.7,.2,1);
}
.drawer-panel.is-active .drawer-section:nth-of-type(2) {
  animation: drawerStagger 0.5s 0.46s both cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  .strip-stream-trigger,
  .strip-stream-trigger::after,
  .streams-drawer,
  .strip-stream-num,
  .drawer-panel.is-active * {
    animation: none !important;
    transition: none !important;
  }
}

.streams-strip-feed {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.32s ease;
}

.streams-strip[data-drawer-open="true"] .streams-strip-feed {
  opacity: 0.45;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 32px 0 80px;
  padding-top: 32px;
}

.timeline-rule {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.phase {
  position: relative;
  padding-top: 0;
}

.phase-marker {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 96px;
  margin-bottom: 32px;
  border-bottom: 1px solid transparent;
  position: relative;
}

.phase-marker::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  transform: translateY(-50%);
}

.phase-marker--accent::before {
  background: var(--amber);
  border-color: var(--amber);
}

.phase-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 132px;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

.phase-marker--accent .phase-num { color: var(--amber); }

.phase-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: flex-end;
  padding-bottom: 24px;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 8px;
}

.phase-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 30;
  min-height: 2.4em;
}

.phase-title em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 500;
}

.phase-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.phase-weeks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.phase-weeks li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.phase-weeks li:last-child {
  border-bottom: 1px solid var(--rule);
}

.week-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
}

.week-text {
  font-size: 14.25px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.phase-artifact {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: auto;
}

.artifact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

.phase-artifact p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

/* ============================================================
   § 02 — METHODOLOGY
   ============================================================ */
.sheet--method { background: var(--paper-warm); }

.streams {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-bottom: 48px;
}

.stream {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.stream-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-weight: 600;
  padding-top: 4px;
}

.stream-content { max-width: 720px; }

.stream-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 26;
}

.stream-method {
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.6;
}

.stream-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--amber);
  padding-left: 20px;
  margin: 16px 0;
  font-variation-settings: "opsz" 24;
}

.stream-yield {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.stream-yield em { font-style: italic; color: var(--ink); }

.convergence {
  margin: 48px auto;
  text-align: center;
  max-width: 720px;
}

.convergence-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
}

.convergence-output {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
}

.convergence-arrow-down {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 14px;
}

.dimensions { margin-top: 24px; }

.dimensions-header { margin-bottom: 32px; }

.dimensions-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 30;
}

.dimensions-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.55;
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.dim {
  background: var(--paper-warm);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.dim-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.dim-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 20;
  line-height: 1.2;
}

.dim p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.wald {
  margin-top: 80px;
  padding: 48px;
  background: var(--paper-deep);
  border-left: 4px solid var(--amber);
  position: relative;
}

.wald-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 24px;
}

.wald-body {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 20;
  max-width: 820px;
}

.wald-body em { font-style: italic; font-weight: 500; }

.wald-attribution {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ============================================================
   § 03 — DEMO (PRESERVED with new typography wrapping)
   ============================================================ */
.sheet--demo { background: var(--paper-pure); }

.demo-frame {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  margin: 32px 0 48px;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-darker);
  font-size: 13px;
  font-family: var(--font-sans);
}

.demo-status {
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.demo-status.is-running { color: var(--accent); }
.demo-status.is-complete { color: var(--human); }

.demo-replay {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.demo-replay:hover { background: var(--bg-darker); }

.demo-commentary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}

.commentary-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
  animation: commentaryPulse 2.4s ease-in-out infinite;
}

@keyframes commentaryPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(180, 83, 9, 0.04); }
}

.commentary-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 18;
  transition: opacity 0.32s ease;
}

.commentary-text.is-fading { opacity: 0; }

.pane.is-spotlight {
  box-shadow: inset 0 0 0 2px rgba(180, 83, 9, 0.55), 0 0 0 1px rgba(180, 83, 9, 0.18);
}

.demo-pane-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  height: 600px;
}

.pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.pane:last-child { border-right: none; }

.pane-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-sans);
}

.thread-channel { font-weight: 600; color: var(--text); }
.thread-purpose { font-weight: 400; color: var(--text-soft); font-size: 12px; }

.pane--channels { background: var(--bg-soft); }

.channel-list {
  list-style: none;
  padding: 8px 0;
  overflow-y: auto;
}

.channel-list li {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-sans);
}

.channel-list li.is-active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.channel-list li.has-activity::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}

.ch-prefix { color: var(--text-soft); font-weight: 400; }

.thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  animation: messageIn 0.35s ease-out;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.message--agent .message-avatar { background: var(--agent-bg); color: var(--agent); }
.message--human .message-avatar { background: var(--human-bg); color: var(--human); }
.message--system .message-avatar { background: var(--system-bg); color: var(--system); }

.message-body { flex: 1; min-width: 0; }

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-family: var(--font-sans);
}

.message-author { font-weight: 600; color: var(--text); }

.message-badge {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.message--agent .message-badge { background: var(--agent-bg); color: var(--agent); }
.message--human .message-badge { background: var(--human-bg); color: var(--human); }
.message--system .message-badge { background: var(--system-bg); color: var(--system); }

.message-time {
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.message-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  font-family: var(--font-sans);
}

.message-content strong { font-weight: 600; }

.message-routing {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.message--draft .message-content {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--bg-soft);
}

.pane--activity { background: var(--bg-soft); }

.activity {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  animation: messageIn 0.35s ease-out;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.activity-agent {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
}

.activity-state {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.activity-state--running { background: var(--accent-light); color: var(--accent); }
.activity-state--complete { background: var(--human-bg); color: var(--human); }

.activity-detail {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.5;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.demo-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}

.demo-meta-item {
  padding-right: 24px;
  border-right: 1px solid var(--rule-fine);
}

.demo-meta-item:last-child { border-right: none; }

.meta-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 56;
}

.meta-num sup {
  font-size: 22px;
  font-weight: 400;
  vertical-align: super;
  margin-left: 2px;
  color: var(--ink-soft);
}

.meta-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  display: block;
  max-width: 220px;
}

/* ============================================================
   § 03 — PLATFORM CODA (single italic outro after demo-meta)
   ============================================================ */
.platform-coda {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-fine);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 22;
  max-width: 720px;
}

.platform-coda em {
  color: var(--ink);
  font-weight: 500;
}

/* — orphan rules below kept harmless after platform block reduction; safe to delete in cleanup pass — */
.platform {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--rule-cool);
}

.platform-header {
  margin-bottom: 36px;
  max-width: 760px;
}

.platform-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
}

.platform-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 32;
}

.platform-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.platform-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.platform-source-label,
.platform-arrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.platform-substrate {
  width: 100%;
  max-width: 920px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.substrate-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border-right: 1px solid var(--accent);
  padding-right: 22px;
  white-space: nowrap;
}

.substrate-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  flex: 1;
}

.substrate-items span {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
}

.platform-surfaces {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.surface {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.surface--current {
  border-color: var(--accent);
  background: var(--accent-light);
}

.surface--future {
  border-style: dashed;
  background: transparent;
  border-color: var(--border-strong);
}

.surface-state {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 6px;
}

.surface--current .surface-state { color: var(--accent); }
.surface--future .surface-state { color: var(--amber); }

.surface-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variation-settings: "opsz" 26;
  color: var(--ink);
}

.surface--current .surface-name { color: var(--accent); }
.surface--future .surface-name { color: var(--ink-soft); }

.surface-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 8px;
}

/* ============================================================
   § 04 — DIAGNOSTIC SURFACE
   ============================================================ */
.sheet--surface .lede em { color: var(--ink); }

.surface-frame {
  background: #14110d;
  border: 1px solid #2a261e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0 32px;
}

.surface-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #1f1c17;
  border-bottom: 1px solid #2a261e;
}

.surface-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.surface-warn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--amber);
  background: rgba(180, 83, 9, 0.16);
  padding: 4px 10px;
  border-radius: 3px;
}

.surface-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 520px;
}

.surface-queries {
  border-right: 1px solid #2a261e;
  background: #14110d;
}

.queries-header {
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid #2a261e;
}

.query {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 16px 22px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2a261e;
  text-align: left;
  cursor: pointer;
  color: var(--paper);
  transition: background 0.2s;
  font-family: var(--font-sans);
}

.query:hover { background: #1f1c17; }

.query.is-active {
  background: rgba(180, 83, 9, 0.12);
  border-left: 3px solid var(--amber);
  padding-left: 19px;
}

.query-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-weight: 600;
}

.query-label {
  font-size: 14px;
  line-height: 1.35;
  color: var(--paper);
}

.query-stream {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: #2a261e;
  padding: 2px 6px;
  border-radius: 3px;
}

.surface-result {
  padding: 32px 36px;
  background: #1a1813;
  overflow: auto;
}

.result-fade {
  animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header { margin-bottom: 24px; }

.result-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--paper);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 28;
}

.result-source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.result-body { display: flex; flex-direction: column; gap: 20px; }

.chart-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  gap: 14px;
  align-items: center;
  font-family: var(--font-sans);
}

.chart-label {
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.chart-track {
  height: 24px;
  background: #2a261e;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber) 0%, #b85b25 100%);
  border-radius: 2px;
  width: var(--w);
  animation: barIn 0.6s ease-out;
}

.chart-fill--struct { background: linear-gradient(90deg, var(--crimson) 0%, #8a2424 100%); }
.chart-fill--proc { background: linear-gradient(90deg, var(--amber) 0%, #b85b25 100%); }
.chart-fill--info { background: linear-gradient(90deg, #5e92e0 0%, #3a6db3 100%); }

@keyframes barIn {
  from { width: 0; }
  to { width: var(--w); }
}

.chart-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.result-callout {
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(180, 83, 9, 0.1);
  border-left: 3px solid var(--amber);
}

.result-callout-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.result-callout-body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--paper);
  font-variation-settings: "opsz" 18;
}

.result-list {
  list-style: none;
  border-top: 1px solid #2a261e;
}

.result-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #2a261e;
  align-items: baseline;
}

.result-list-name {
  font-size: 14px;
  color: var(--paper);
  font-family: var(--font-sans);
}

.result-list-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: right;
}

.kpi-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.kpi {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.kpi-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-variation-settings: "opsz" 72;
}

.kpi-num--accent { color: var(--amber); }

.kpi-num small {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink-faint);
}

.kpi-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.kpi-breakdown {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2a261e;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kpi-breakdown-item {
  font-family: var(--font-sans);
}

.kpi-bd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.kpi-bd-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--paper);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 22;
}

.surface-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 32px;
  max-width: 820px;
  font-variation-settings: "opsz" 22;
}

.surface-claim em { color: var(--amber); font-style: italic; font-weight: 500; }

/* ============================================================
   § 05 — RESEARCH INSTRUMENT
   ============================================================ */
.sheet--instrument { background: var(--paper-warm); }

.metric-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin: 32px 0 80px;
  padding: 40px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.metric { padding: 0; }

.metric-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.metric--anti .metric-tag { color: var(--ink-faint); }
.metric--pro .metric-tag { color: var(--amber); }

.metric-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 44;
}

.metric--anti .metric-name { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.metric--pro .metric-name { color: var(--ink); }

.metric-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}

.metric-verdict {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.metric--anti .metric-verdict { color: var(--ink-faint); }
.metric--pro .metric-verdict { color: var(--amber); }

.metric-arrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  color: var(--ink-faint);
  line-height: 1;
}

.categories { margin-bottom: 80px; }

.categories-header { margin-bottom: 32px; }

.categories-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 36;
}

.categories-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 760px;
  line-height: 1.55;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.cat {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.cat-bar {
  width: 100%;
  height: 6px;
  background: var(--rule-fine);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.cat-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--ink-soft);
  width: var(--fill);
  animation: barInSlow 1s ease-out;
}

.cat--struct .cat-bar-fill { background: var(--crimson); }

@keyframes barInSlow {
  from { width: 0; }
  to { width: var(--fill); }
}

.cat-pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 14px;
  font-variation-settings: "opsz" 72;
}

.cat--struct .cat-pct { color: var(--crimson); }

.cat-pct small {
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-soft);
}

.cat-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 22;
}

.cat-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.cat-desc em { font-style: italic; color: var(--ink); font-weight: 500; }

.cat-intervention {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-fine);
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font-sans);
}

.intervention-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-right: 8px;
}

.cat-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 16px;
  text-align: right;
}

.bridge {
  margin: 80px 0 0;
  padding: 56px 0 0;
  border-top: 1px solid var(--ink);
}

.bridge-header { margin-bottom: 40px; max-width: 820px; }

.bridge-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
}

.bridge-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}

.bridge-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.bridge-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bridge-block {
  padding-left: 18px;
  border-left: 2px solid var(--rule);
}

.bridge-block--problem { border-left-color: var(--ink-faint); }
.bridge-block--answer { border-left-color: var(--amber); }

.bridge-block-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 12px;
}

.bridge-block--answer .bridge-block-tag { color: var(--amber); }

.bridge-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.bridge-block p em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.bridge-block--answer p em { color: var(--amber); }

.bridge-diagram {
  padding: 0;
  display: flex;
  justify-content: center;
}

.bridge-diagram svg { width: 100%; height: auto; max-width: 360px; }

.mw-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
}

.mw-label-strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  fill: var(--ink);
}

.mw-label-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
  text-transform: uppercase;
}

.mw-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

/* ============================================================
   § 06 — THE CYCLE, COMPRESSED
   ============================================================ */
.sheet--cycle { background: var(--paper); }

.cycle-frame {
  margin: 32px 0 8px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.cycle-svg-wrap {
  width: 100%;
  overflow-x: auto;
}

.cycle-svg-wrap svg {
  width: 100%;
  height: auto;
  min-width: 760px;
  display: block;
}

.cycle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: var(--ink-soft);
  font-weight: 500;
}

.cycle-label--bold { fill: var(--amber); font-weight: 600; }

.cycle-label-faint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--ink-faint);
}

.cycle-label-bold {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--amber);
  font-weight: 600;
}

.cycle-lane-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--ink-faint);
  font-weight: 500;
}

.cycle-lane-label--bold { fill: var(--amber); font-weight: 600; }

.cycle-lane-track {
  fill: var(--rule-fine);
  opacity: 0.55;
}

.cycle-lane-track--bold {
  fill: var(--amber-tint);
  opacity: 0.6;
}

.cycle-stage {
  stroke-width: 1;
}

.cycle-stage--ops { fill: #1f1c17; stroke: #594d3a; }
.cycle-stage--prod { fill: #26221a; stroke: #6b5d49; }
.cycle-stage--eng { fill: #2d281d; stroke: #7c6c55; }

.cycle-stage--comp {
  fill: var(--amber);
  stroke: #8a4a1c;
  stroke-width: 1;
}

.cycle-stage--graduate {
  fill: var(--paper-warm);
  stroke: var(--ink);
}

.cycle-stage-text {
  font-family: var(--font-sans);
  font-size: 12px;
  fill: var(--ink);
  font-weight: 500;
}

.cycle-stage-text--bold {
  font-family: var(--font-sans);
  font-size: 13px;
  fill: var(--paper);
  font-weight: 600;
}

.cycle-day-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--amber);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.cycle-arrow {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}

.cycle-arrow-bold {
  stroke: var(--amber);
  stroke-width: 2;
}

.cycle-handoff-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--ink-faint);
  font-style: italic;
}

.cycle-separator {
  stroke: var(--rule);
  stroke-width: 1;
}

.cycle-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
}

.cycle-caption--bold {
  fill: var(--ink);
  font-weight: 600;
}

.cycle-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 48px;
  max-width: 820px;
  font-variation-settings: "opsz" 22;
}

.cycle-claim em { color: var(--amber); font-weight: 500; font-style: italic; }

.cycle-grad {
  margin-top: 32px;
  padding: 26px 32px;
  background: var(--paper-deep);
  border-left: 3px solid var(--amber);
}

.cycle-grad-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 12px;
}

.cycle-grad-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.cycle-grad-body em { font-style: italic; color: var(--ink); font-weight: 500; }

/* ============================================================
   § 07 — CLOSING
   ============================================================ */
.sheet--closing {
  background: var(--paper);
  padding-bottom: 96px;
}

.closing-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 820px;
  font-variation-settings: "opsz" 22;
}

.closing-rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 56px 0 48px;
  width: 64px;
}

.closing-final {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.closing-final em {
  font-style: italic;
  color: var(--amber);
}

/* ============================================================
   COLOPHON
   ============================================================ */
.colophon {
  background: var(--paper);
  padding: 32px 8% 64px;
  border-top: 1px solid var(--rule);
}

.colophon-rule {
  height: 1px;
  background: var(--ink);
  width: 100px;
  margin-bottom: 24px;
}

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.colophon-set {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  font-variation-settings: "opsz" 14;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .sheet-margin { position: static; flex-direction: row; align-items: center; padding: 0 8% 24px; width: auto; }
  .margin-rule { width: 24px; }
  .sheet-body, .sheet-body--wide { padding-left: 8%; padding-right: 8%; }

  .timeline { grid-template-columns: 1fr; gap: 64px; }
  .timeline-rule { display: none; }
  .phase-marker { height: auto; margin-bottom: 18px; }
  .phase-marker::before { display: none; }
  .streams-strip-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .drawer-panel { grid-template-columns: 1fr; gap: 24px; padding-top: 18px; }
  .drawer-marker { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 16px; flex-direction: row; align-items: baseline; gap: 16px; }
  .drawer-numeral { font-size: 88px; }
  .drawer-stage { padding: 8px 20px 28px; }
  .drawer-toolbar { padding: 16px 20px 0; }
  .drawer-title { font-size: 28px; }

  .dim-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .surface-grid { grid-template-columns: 1fr; }
  .surface-queries { border-right: none; border-bottom: 1px solid #2a261e; }
  .demo-pane-grid { grid-template-columns: 1fr; height: auto; }
  .pane { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .demo-meta-item:nth-child(2n) { border-right: none; }
  .platform-substrate { flex-direction: column; align-items: flex-start; gap: 14px; }
  .substrate-tag { border-right: none; border-bottom: 1px solid var(--accent); padding-right: 0; padding-bottom: 12px; width: 100%; }
  .platform-surfaces { grid-template-columns: 1fr; }
  .metric-pair { grid-template-columns: 1fr; gap: 24px; }
  .metric-arrow { transform: rotate(90deg); align-self: center; }
  .bridge-grid { grid-template-columns: 1fr; gap: 40px; }
  .kpi-block { grid-template-columns: 1fr; gap: 20px; }
  .kpi-num { font-size: 64px; }
  .cover-toc a { grid-template-columns: 40px 1fr auto; }
  .toc-rule { display: none; }
}
