/* Doublespeak v11 — Manifesto with Cited Operations.
   Aesthetic target: scholarly editorial broadside (Phaidon × Tufte × Triple Canopy).
   L1 = ONE composition: 3 giant opening lines + 4-paragraph body + numbered margin of 14 citations.
   L2 = in-margin grid expansion (body collapses, margin takes the page).
   Type: Big Caslon throughout; warm parchment palette; terracotta accent. */

:root {
  --paper:        #e9e3d4;        /* warm parchment, olive cast */
  --sheet:        #f3eedd;        /* lighter paper for citation surfaces */
  --ink:          #1f1a14;        /* warm true-black with brown undertone */
  --muted:        #766a55;        /* sepia gray */
  --faint:        #a89c83;        /* faded sepia for hairlines */
  --line:         #c8bda1;        /* hairline rule */
  --line-strong:  #1f1a14;
  --highlight:    #ddd2b4;        /* hover wash */

  --terracotta:   #a83f1c;        /* primary accent — earthy archive red */
  --ochre:        #a8771c;
  --teal:         #1c6266;        /* deep teal — only v11 uses teal */
  --sepia:        #766a55;

  /* Compatibility aliases for inherited main CSS (e.g. cluster-detail) */
  --red:          var(--terracotta);
  --red-soft:     #ecd6cb;
  --amber:        var(--ochre);

  --max:          1640px;
  --pad-x:        clamp(20px, 3.4vw, 56px);

  /* Caslon family — high-contrast literary serif. NOT Inter / Helvetica heavy. */
  --font-display: "Big Caslon", "Adobe Caslon Pro", "Caslon", "Cormorant Garamond", Garamond, "Times New Roman", Times, serif;
  --font-text:    "Adobe Caslon Pro", "Caslon", "Iowan Old Style Text", Charter, Georgia, "Times New Roman", Times, serif;
  --font-sans:    "Avenir Next", "Söhne", "Suisse Int'l", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 56px;     /* room for fixed top bar */
  padding-bottom: 72px;  /* covers default bottom bar (56) + clearance */
}
a { color: inherit; }
button { font: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Bars ===== */

.bar {
  position: fixed; left: 0; right: 0;
  background: var(--sheet);
  z-index: 50;
  display: flex; align-items: center;
}
.bar-top {
  top: 0; height: 56px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 var(--pad-x);
  gap: 24px;
}
.bar-top .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.005em;
}

.bar-nav {
  display: flex; gap: 6px; margin-left: auto;
}
.bar-nav a {
  padding: 8px 12px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.bar-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 720px) {
  .bar-nav { display: none; }
}

.bar-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding-left: 18px; border-left: 1px solid var(--line);
  height: 28px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2f8c4a;
}
.status-dot.is-offline { background: var(--faint); }

.bar-bottom {
  bottom: 0;
  flex-direction: column; align-items: stretch;
  border-top: 1px solid var(--line-strong);
  padding: 8px var(--pad-x);
  gap: 0;
  transition: padding 0.2s ease;
}
.bar-bottom.is-engaged { padding: 12px var(--pad-x) 14px; gap: 8px; }

.bar-bottom-skus {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.bar-bottom.is-engaged .bar-bottom-skus {
  max-height: 32px; opacity: 1;
}
.bar-bottom-skus span { display: inline-flex; align-items: center; gap: 6px; }
.bar-bottom-skus span::before {
  content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}

.bar-bottom-form {
  display: flex; gap: 8px; align-items: stretch;
}
.bar-bottom-form input[type="email"] {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0 14px;
  font: inherit; font-size: 14px;
  color: var(--ink);
  outline: none;
}
.bar-bottom-form input[type="email"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-soft);
}
.lead-submit {
  height: 40px;
  padding: 0 22px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.lead-submit:hover { background: var(--red); border-color: var(--red); }
.lead-qr {
  height: 40px; width: 40px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  cursor: pointer;
}
.lead-qr svg { width: 20px; height: 20px; fill: currentColor; }
.lead-qr:hover { background: var(--ink); color: var(--paper); }

.bar-bottom-msg {
  font-size: 12px; color: var(--muted);
  min-height: 0;
  margin: 0;
  transition: margin-top 0.15s, min-height 0.15s;
}
.bar-bottom-msg:not(:empty) {
  min-height: 16px;
  margin-top: 6px;
}
.bar-bottom-msg.is-error  { color: var(--red); }
.bar-bottom-msg.is-thanks { color: #1f6b35; }

/* ===== Loading state ===== */
.app-loading {
  padding: 200px var(--pad-x);
  text-align: center;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}

/* ===== Section frame ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 120px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
  margin-bottom: 18px;
}
.section-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15; letter-spacing: -0.005em;
  margin: 0 0 24px; max-width: 28ch;
}

/* ===== HERO ===== */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) var(--pad-x) clamp(40px, 5vh, 64px);
  border-bottom: 2px solid var(--ink);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--red);
}
.hero-thesis {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.hero-thesis span {
  display: block;
  text-wrap: balance;
}
.hero-thesis span + span { margin-top: 4px; }
.hero-thesis em {
  color: var(--red);
  font-style: italic;
}
.hero-conclusion {
  margin-top: 36px;
  font-size: clamp(17px, 1.4vw, 22px); line-height: 1.5;
  color: var(--ink);
  max-width: 64ch;
  border-left: 3px solid var(--ink);
  padding-left: 18px;
}
.hero-conclusion strong { font-weight: 600; }

.hero-stats {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.hero-stat {
  border-right: 1px solid var(--line);
  padding: 28px 24px 0 0;
}
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat .v {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em;
  display: block;
  font-feature-settings: "tnum" on, "lnum" on;
}
.hero-stat .l {
  display: block; margin-top: 12px;
  font-size: 14px; line-height: 1.4; color: var(--ink);
  max-width: 28ch;
}
.hero-stat .n {
  display: block; margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .hero-stat:last-child { border-bottom: 0; }
}

/* ===== HOW BUILT ===== */

.how-headline { max-width: 36ch; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.how-step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 22px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.how-step .tag {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; color: var(--red); font-weight: 700;
}
.how-step .title {
  font-family: var(--font-display);
  font-size: 20px; line-height: 1.2;
}
.how-step .body {
  font-size: 14px; line-height: 1.55; color: var(--muted);
}
@media (max-width: 980px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

/* ===== DIFFERENTIATOR ===== */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
}
.diff-col {
  border-right: 1px solid var(--line);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.diff-col:last-child { border-right: 0; }
.diff-col.highlight {
  background: var(--ink);
  color: var(--paper);
}
.diff-col .label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.diff-col.highlight .label { color: #d6cfbf; }
.diff-col .row {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.25;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.diff-col.highlight .row { border-top-color: #3a3833; }
.diff-col .row:nth-child(2) { border-top: 0; }
.diff-footnote {
  margin-top: 18px;
  font-size: 13px; color: var(--muted);
  font-style: italic;
}
@media (max-width: 880px) { .diff-grid { grid-template-columns: 1fr; }
  .diff-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .diff-col:last-child { border-bottom: 0; }
}

/* ===== CLUSTER STACK (the case) ===== */

.ops {
  background: var(--sheet);
}
.ops-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  align-items: end;
}
.ops-intro p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 880px) { .ops-intro { grid-template-columns: 1fr; gap: 16px; } }

.cluster-stack {
  border-top: 2px solid var(--ink);
}
.cluster-row {
  display: grid;
  grid-template-columns: 88px 1fr 320px 56px;
  gap: 32px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line-strong);
  align-items: start;
  cursor: pointer;
  transition: background 0.18s, padding 0.18s;
  position: relative;
}
.cluster-row:hover {
  background: var(--highlight);
  padding-left: 12px;
  padding-right: 12px;
}
.cluster-row:hover .cluster-arrow { color: var(--red); }
.cluster-row .num {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--red);
  font-weight: 600;
  padding-top: 4px;
}
.cluster-row .body {
  display: flex; flex-direction: column; gap: 8px;
}
.cluster-row .name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  margin: 0;
}
.cluster-row .role {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.cluster-row .punch {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.45;
  margin-top: 4px;
  color: var(--ink);
  max-width: 64ch;
}
.cluster-row .fp {
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.cluster-row .fp .fp-row {
  display: flex; justify-content: space-between; gap: 12px;
  letter-spacing: 0.04em;
}
.cluster-row .fp .fp-row b {
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: "tnum" on, "lnum" on;
}
.cluster-row .fp .fp-bar {
  display: flex; gap: 2px; align-items: center;
  height: 10px;
}
.cluster-row .fp .fp-bar i {
  display: block; height: 100%;
  background: var(--ink);
}
.cluster-row .fp .fp-bar i.alt    { background: var(--red); }
.cluster-row .fp .fp-bar i.muted  { background: var(--line-strong); }
.cluster-row .fp .fp-cap {
  font-size: 12px; color: var(--faint);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cluster-row .cluster-arrow {
  align-self: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--muted);
  text-align: right;
  transition: color 0.18s, transform 0.18s;
}
.cluster-row:hover .cluster-arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .cluster-row {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
  .cluster-row .fp { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px dashed var(--line); padding-top: 14px; }
  .cluster-row .cluster-arrow { display: none; }
}

/* ===== WHY NOW ===== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.why-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.why-item .label {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--red); font-weight: 700;
  letter-spacing: 0.1em;
}
.why-item .head {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2;
}
.why-item .body {
  font-size: 14px; line-height: 1.55; color: var(--muted);
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== BUYERS ===== */

.buyers {
  background: var(--ink); color: var(--paper);
  border-bottom: 0;
}
.buyers .section-eyebrow { color: #f0d4d0; }
.buyers ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid #3a3833;
}
.buyers li {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  padding: 24px 28px 28px 0;
  border-right: 1px solid #3a3833;
}
.buyers li:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 880px) {
  .buyers ul { grid-template-columns: 1fr; }
  .buyers li { padding: 18px 0; border-right: 0; border-bottom: 1px solid #3a3833; }
  .buyers li:last-child { border-bottom: 0; }
}

/* ===== ARCHIVE PROOF ===== */

.archive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.archive .archive-numbers {
  display: flex; flex-direction: column; gap: 14px;
  border-left: 4px solid var(--red);
  padding-left: 24px;
}
.archive .big {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
  letter-spacing: -0.02em;
}
.archive .big-sub {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.archive p {
  font-size: 16px; line-height: 1.6; color: var(--ink);
  max-width: 56ch;
}
.archive .archive-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.archive .archive-cta:hover { background: var(--red); border-color: var(--red); }
.archive .archive-cta::after { content: "→"; font-family: var(--font-display); font-size: 20px; line-height: 1; }
@media (max-width: 880px) { .archive { grid-template-columns: 1fr; gap: 32px; } }

/* ===== CONTACT ===== */

.contact-skus {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.contact-sku {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 24px 28px;
}
.contact-sku h3 {
  font-family: var(--font-display);
  font-size: 22px; margin: 0 0 10px;
  line-height: 1.2;
}
.contact-sku p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 880px) { .contact-skus { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad-x) 56px;
  font-size: 12px; line-height: 1.55; color: var(--muted);
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.foot .credit { color: var(--ink); font-weight: 600; }

/* ===== QR popover ===== */
.qr-popover {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: rgba(13, 13, 13, 0.6);
  z-index: 100;
}
.qr-popover[hidden] { display: none; }
.qr-popover-card {
  background: var(--sheet);
  padding: 32px 32px 24px;
  border: 1px solid var(--line-strong);
  max-width: 360px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.qr-popover-card strong {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
}
.qr-canvas {
  width: 220px; height: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; color: var(--faint);
}
.qr-canvas svg { display: block; }
.qr-popover-card p {
  font-size: 13px; color: var(--muted); margin: 0;
}
.qr-close {
  background: var(--ink); color: var(--paper);
  border: 0; padding: 10px 22px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.qr-url-text {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px dashed var(--line);
  max-width: 100%;
}

/* ===== L1 cluster row faded state (during L2 expansion) ===== */
.cluster-row.is-faded {
  opacity: 0.32;
  transition: opacity 0.18s, background 0.15s, padding 0.18s;
}
.cluster-row.is-faded:hover {
  opacity: 1;
  background: var(--highlight);
}
.cluster-row.is-active {
  background: var(--ink);
  color: var(--paper);
  padding-left: 12px; padding-right: 12px;
}
.cluster-row.is-active .role,
.cluster-row.is-active .fp,
.cluster-row.is-active .fp-cap { color: #d6cfbf; }
.cluster-row.is-active .num         { color: #f0a8a4; }
.cluster-row.is-active .punch       { color: var(--paper); }
.cluster-row.is-active .fp .fp-row b { color: var(--paper); }
.cluster-row.is-active .cluster-arrow { color: var(--paper); transform: rotate(90deg); }

/* ===== L2: cluster detail (in-place expansion) ===== */

.cluster-detail {
  background: var(--paper);
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  padding: clamp(48px, 7vh, 96px) var(--pad-x) clamp(48px, 6vh, 80px);
  margin: 0;
  max-width: 100%;
}
.cluster-detail-loading {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
  padding: 80px 0;
}

.cluster-banner {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0;
}
.back-link {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-bottom: 28px;
  transition: color 0.15s, border-color 0.15s;
}
.back-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Inside cluster-detail, keep the back link reachable when the visitor
   has scrolled deep into the stories grid. The link is a direct child of
   .cluster-detail (not nested inside .cluster-banner) so its sticky
   containing block spans the whole section. */
.cluster-back-wrap {
  position: sticky;
  top: 64px;
  z-index: 4;
  max-width: var(--max);
  margin: 0 auto 24px;
  pointer-events: none;
}
.cluster-back-wrap .back-link {
  pointer-events: auto;
  background: var(--paper);
  padding: 6px 12px 6px 0;
  margin: 0;
}
.cluster-banner-top {
  display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cluster-banner .vol { color: var(--red); font-weight: 700; }
.cluster-banner .role-tag { color: var(--ink); }
.cluster-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.cluster-punch {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  margin: 0 0 32px;
  max-width: 60ch;
  border-left: 3px solid var(--red);
  padding-left: 18px;
  color: var(--ink);
}
.cluster-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.cstat {
  border-right: 1px solid var(--line);
  padding: 18px 18px 18px 0;
}
.cstat:last-child { border-right: 0; padding-right: 0; }
.cstat .v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px); line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
  letter-spacing: -0.01em;
}
.cstat .l {
  display: block; margin-top: 8px;
  font-size: 13px; color: var(--muted);
}
@media (max-width: 880px) {
  .cluster-stats { grid-template-columns: repeat(2, 1fr); }
}

/* L2 triad: sub-narratives | volume map | source signature */
.cluster-triad {
  max-width: var(--max);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.triad-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 28px;
  display: flex; flex-direction: column;
  background: var(--sheet);
}
.triad-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .cluster-triad { grid-template-columns: 1fr; }
}

/* sub-narratives list */
.subnarr-list {
  list-style: none; padding: 0; margin: 0;
}
.subnarr-item {
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.subnarr-item:first-child { border-top: 0; }
.subnarr-label {
  font-family: var(--font-display);
  font-size: 16px; line-height: 1.3;
  flex: 1;
}
.subnarr-count {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.subnarr-count b {
  color: var(--ink); font-weight: 700;
  font-feature-settings: "tnum" on, "lnum" on;
}
.subnarr-more {
  padding: 12px 0 4px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--faint); text-transform: uppercase;
}

/* volume map */
.vmap-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 160px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0;
  margin-bottom: 6px;
}
.vmap-bar {
  flex: 1; background: var(--ink); min-height: 1px;
}
.vmap-bar.spike { background: var(--red); }
.vmap-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint); letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.vmap-cap {
  font-size: 12px; color: var(--muted); line-height: 1.45;
  margin-top: auto;
}

/* source signature */
.sig-list { list-style: none; padding: 0; margin: 0 0 16px; }
.sig-row {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.sig-row:first-child { border-top: 0; }
.sig-row-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13px; color: var(--ink);
  margin-bottom: 6px;
}
.sig-row-top b {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on, "lnum" on;
  color: var(--ink); font-weight: 700;
}
.sig-row.alt .sig-row-top b { color: var(--red); }
.sig-row.muted .sig-row-top { color: var(--muted); }
.sig-bar { height: 4px; background: var(--line); }
.sig-bar i { display: block; height: 100%; background: var(--ink); }
.sig-row.alt .sig-bar i { background: var(--red); }
.sig-row.muted .sig-bar i { background: var(--line-strong); }

/* stories grid */
.stories-section {
  max-width: var(--max);
  margin: 0 auto;
}
.stories-head {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  margin-bottom: 24px;
}
.stories-head .section-eyebrow { margin-bottom: 8px; }
.stories-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.2;
  margin: 0;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.story-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 22px;
  background: var(--sheet);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.15s;
}
.story-card:hover { background: var(--highlight); }
.story-card.is-open {
  background: var(--ink); color: var(--paper);
}
.story-card.is-open .story-vol { color: #f0a8a4; }
.story-card.is-open .story-sub,
.story-card.is-open .story-frame,
.story-card.is-open .story-date { color: #d6cfbf; }

.story-vol {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
.story-title {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.25;
  margin: 4px 0 6px;
}
.story-sub {
  font-size: 13px; color: var(--muted); margin: 0;
  line-height: 1.5;
}
.story-foot {
  margin-top: auto; padding-top: 10px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted);
}
.story-foot .story-frame {
  text-transform: uppercase;
  color: var(--red); font-weight: 700;
  text-align: right;
}

/* ===== L3: story drawer ===== */

.drawer {
  position: fixed; inset: 56px 0 88px 0;
  background: rgba(13, 13, 13, 0.45);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}
.drawer-backdrop {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(880px, 65vw);
  background: var(--paper);
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-left: 1px solid var(--ink);
  box-shadow: -8px 0 32px rgba(13, 13, 13, 0.18);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-head {
  position: sticky; top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  z-index: 5;
}
.drawer-crumbs {
  display: flex; gap: 8px; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.drawer-crumbs .sep { color: var(--faint); }
.drawer-close {
  width: 36px; height: 36px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.drawer-close:hover { background: var(--ink); color: var(--paper); }

.drawer-sibs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.drawer-sibs .sib {
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer-sibs .sib:last-child { border-right: 0; }
.drawer-sibs .sib:hover { background: var(--highlight); }
.drawer-sibs .sib.next { text-align: right; }
.drawer-sibs .sib span {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer-sibs .sib strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 15px; line-height: 1.3; color: var(--ink);
}

/* ===== Block renderers ===== */

#drawerContent {
  padding: 0 28px 32px;
}
#drawerContent .block { margin: 36px 0; }
#drawerContent .block .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
  margin-bottom: 12px;
}
#drawerContent .block h1,
#drawerContent .block h2,
#drawerContent .block h3,
#drawerContent .block h4 {
  font-family: var(--font-display); font-weight: 400;
  margin: 0 0 12px;
}
#drawerContent .block .body p { margin: 0 0 10px; line-height: 1.6; }
#drawerContent .block .body strong { font-weight: 600; }
#drawerContent .ref {
  background: var(--highlight);
  padding: 1px 4px;
  border-radius: 1px;
  font-style: normal;
}

.block-masthead {
  border-bottom: 1px solid var(--ink); padding-bottom: 24px; margin-top: 24px !important;
}
.block-masthead .vol {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.block-masthead h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 12px 0 16px;
}
.block-masthead h1 em { color: var(--red); font-style: italic; }
.block-masthead .lede {
  font-size: 16px; line-height: 1.55; color: var(--ink);
}
.block-masthead .meta-lines {
  margin-top: 16px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.block-tldr {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.block-tldr h2 { font-size: 22px; line-height: 1.25; }
.block-tldr .body { font-size: 15px; }

.block-findings { display: grid; gap: 18px; }
.block-findings .item {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.block-findings .item .label {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--red); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.block-findings .item h3 { font-size: 18px; margin: 6px 0 10px; }
.block-findings .item .body { font-size: 14px; color: var(--muted); }

.block-callout {
  padding: 18px 22px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}
.block-callout.tone-info     { border-left-color: #275f9b; background: #e8eff6; }
.block-callout.tone-warning  { border-left-color: var(--amber); background: #fff0df; }
.block-callout.tone-dark     { border-left-color: var(--ink); background: rgba(13, 13, 13, 0.05); }
.block-callout h3 { font-size: 18px; margin: 4px 0 8px; }
.block-callout .body { font-size: 14px; }

.block-compare-quote .compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.block-compare-quote .col {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 18px;
}
.block-compare-quote .lab {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--red);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.block-compare-quote .attrib {
  font-size: 12px; color: var(--muted);
  margin: 4px 0 10px;
}
.block-compare-quote .text { font-size: 14px; line-height: 1.55; }
.block-compare-quote .obs {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}
@media (max-width: 600px) {
  .block-compare-quote .compare-grid { grid-template-columns: 1fr; }
}

.block-comparison-table { font-size: 13px; }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th, .ctable td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.ctable thead th { background: var(--sheet); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.ctable thead th.hi { color: var(--red); }
.ctable thead th small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ctable tbody th { font-family: var(--font-mono); font-weight: 600; background: var(--sheet); }
.ctable td.e-bold      { font-weight: 700; }
.ctable td.e-muted     { color: var(--muted); }
.ctable td.e-highlight { background: var(--highlight); }
.ctable td.e-absent    { color: var(--faint); font-style: italic; }

.block-stat-grid .sg-grid {
  display: grid; gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.block-stat-grid .sg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.block-stat-grid .sg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.block-stat-grid .sg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.block-stat-grid .sg-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.block-stat-grid .sg-v {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
}
.block-stat-grid .sg-l { font-size: 12px; color: var(--ink); margin-top: 6px; }
.block-stat-grid .sg-n { font-size: 12px; color: var(--muted); margin-top: 4px; }

.block-spotlight .cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.block-spotlight .card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 14px;
}
.block-spotlight .card h4 { font-size: 16px; margin: 4px 0 6px; }
.block-spotlight .card .sub { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.block-spotlight .card .body { font-size: 13px; line-height: 1.5; }
.block-spotlight .card .meta { font-size: 12px; color: var(--faint); margin-top: 6px; font-family: var(--font-mono); }

.block-prose .body { font-size: 15px; line-height: 1.6; }
.block-break {
  border: 0; height: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.block-break.style-thin   { border-top: 1px solid var(--line); }
.block-break.style-dashed { border-top: 1px dashed var(--line-strong); }

.block-viz { background: var(--sheet); border: 1px solid var(--line); padding: 16px; }
.block-viz .viz-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.block-viz .viz-sub   { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.block-viz .viz-cap   { font-size: 12px; color: var(--faint); margin-top: 8px; font-family: var(--font-mono); }
.block-viz .viz-placeholder {
  border: 1px dashed var(--line-strong);
  padding: 32px; text-align: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.vbars {
  display: flex; align-items: end; gap: 2px;
  height: 140px;
  border-bottom: 1px solid var(--ink);
}
.vbars .vbar { flex: 1; background: var(--ink); min-height: 1px; }
.vbars .vbar.spike { background: var(--red); }
.vbars-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint); margin-top: 6px;
}
.vbars-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  margin-top: 8px;
}
.vbars-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.vbars-swatch { display: inline-block; width: 10px; height: 10px; background: var(--ink); }
.vbars-swatch.spike { background: var(--red); }
.swimlane-svg { width: 100%; height: auto; display: block; }
.post-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.post-table th, .post-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.post-table thead th {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.post-table .pt-time { font-family: var(--font-mono); white-space: nowrap; color: var(--muted); }
.post-table .pt-acc strong { display: block; font-weight: 600; }
.post-table .pt-acc span { font-size: 12px; color: var(--muted); }
.post-table .pt-text { line-height: 1.45; }
.post-table .pt-eng { font-family: var(--font-mono); white-space: nowrap; color: var(--muted); }
.post-table-more {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* ===== Archive viewer ===== */

.archive-frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) var(--pad-x);
}
.archive-frame .back-link { margin-bottom: 32px; }

.archive-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  height: calc(100vh - 56px - 88px - 200px);
  min-height: 520px;
}
.archive-list {
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.archive-list-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}
.archive-list-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  margin: 8px 0 6px;
}
.archive-list-blurb {
  font-size: 13px; color: var(--muted);
  margin: 0; line-height: 1.5;
}
.archive-weeks {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto;
  flex: 1;
}
.archive-week {
  padding: 14px 20px;
  border-bottom: 1px dashed var(--line);
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-left-color 0.12s;
}
.archive-week:hover { background: var(--highlight); }
.archive-week.is-active {
  background: var(--highlight);
  border-left-color: var(--red);
  padding-left: 16px;  /* compensates for 4px border so text stays aligned */
}
.archive-week.is-active .aw-week { color: var(--red); }
.aw-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
}
.aw-week  { color: var(--red); font-weight: 700; }
.aw-date  { color: var(--muted); }
.aw-headline {
  font-family: var(--font-display);
  font-size: 14px; line-height: 1.35;
  margin: 6px 0 4px;
}
.aw-pages {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase;
}
.archive-empty {
  padding: 24px 20px; font-size: 13px; color: var(--muted); line-height: 1.5;
}

.archive-viewer {
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  position: relative;
  overflow: hidden;
}
.archive-pdf {
  width: 100%; height: 100%; border: 0; display: block;
}
.archive-empty-pane {
  padding: 48px 32px;
  font-size: 14px; line-height: 1.6;
  color: var(--muted);
}
.archive-empty-pane h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; margin: 8px 0 16px; color: var(--ink);
}

@media (max-width: 980px) {
  .archive-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .archive-viewer { min-height: 480px; }
}

/* =====================================================================
   v11 OVERRIDES — Manifesto with Cited Operations (scholarly broadside)
   ===================================================================== */

/* ---- Bars ---- */
.bar-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: 52px;
}
.bar-bottom {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.brand-mark { background: var(--ink); color: var(--paper); font-family: var(--font-display); font-style: italic; font-weight: 700; }
.brand-name {
  color: var(--ink); font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 17px; letter-spacing: 0.005em;
}
.bar-nav { display: none; }
.bar-status {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
}
.status-dot { background: var(--terracotta); }

/* Lead form — restyle to match parchment world */
.bar-bottom-skus {
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.bar-bottom-skus span::before { content: "▸ "; color: var(--terracotta); }
#leadEmail {
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--line-strong);
  font-family: var(--font-sans); font-size: 14px;
}
#leadEmail:focus { border-color: var(--terracotta); }
#leadEmail::placeholder { color: var(--faint); font-style: italic; font-family: var(--font-text); }
.lead-submit {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font: 700 12px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
}
.lead-submit:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lead-qr { border-color: var(--line-strong); color: var(--ink); }
.lead-qr:hover { border-color: var(--terracotta); color: var(--terracotta); }
.bar-bottom-msg { font-family: var(--font-sans); font-size: 11px; color: var(--muted); }

/* ---- Body / paper ---- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-feature-settings: "liga" on, "kern" on, "onum" on;
  /* Subtle paper grain */
  background-image:
    radial-gradient(circle at 22% 28%, rgba(120, 100, 60, 0.025), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(150, 120, 80, 0.02), transparent 50%);
  background-attachment: fixed;
}

.app-loading {
  font-family: var(--font-display); font-style: italic; font-size: 22px;
  color: var(--muted); padding: 80px 32px;
}

#appMain {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== OPENING — masthead + 3 giant lines + thesis + stats ===== */
.manifesto-opening {
  padding: clamp(36px, 5vh, 64px) 0 clamp(48px, 6vh, 80px);
  border-bottom: 3px double var(--line-strong);
  position: relative;
}
.manifesto-mast {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: clamp(28px, 4vh, 48px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vh, 48px);
}
.mast-mark { color: var(--terracotta); font-weight: 700; }
.mast-sep { color: var(--faint); }

.opening-lines {
  display: flex; flex-direction: column; gap: clamp(2px, 0.4vh, 6px);
  max-width: 22ch;
}
.op-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.op-period {
  color: var(--terracotta);
  font-style: normal;
  display: inline-block;
}

.opening-thesis {
  font-family: var(--font-text); font-style: italic;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.45; color: var(--ink);
  max-width: 56ch;
  border-left: 4px solid var(--terracotta);
  padding-left: 22px;
  margin: clamp(36px, 4vh, 56px) 0 clamp(20px, 3vh, 32px);
}
.opening-thesis strong { font-weight: 600; font-style: normal; color: var(--terracotta); }

.opening-stats {
  font-family: var(--font-sans); font-size: clamp(13px, 1.05vw, 15.5px);
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline;
}
.op-stat-v { color: var(--ink); font-weight: 700; font-variant-numeric: oldstyle-nums; font-size: 1.15em; }
.op-stat-l { font-style: italic; }
.op-stat-sep { color: var(--faint); }

/* ===== MANIFESTO GRID — body 60% + margin 30%, with gap. Animates on expand ===== */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 5vw, 96px);
  padding: clamp(40px, 6vh, 80px) 0 clamp(40px, 6vh, 64px);
  align-items: start;
  position: relative;
  transition: grid-template-columns 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* animate gap too */
}
.manifesto-grid.is-expanded {
  grid-template-columns: 0fr 1fr;
  gap: 0;
}
.manifesto-grid.is-expanded .manifesto-body {
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.32s ease;
  visibility: hidden;
  width: 0;
  overflow: hidden;
}
.manifesto-grid:not(.is-expanded) .manifesto-body {
  opacity: 1;
  visibility: visible;
  width: auto;
  transition: opacity 0.32s ease 0.1s;
}

/* ---- BODY argument ---- */
.manifesto-body {
  min-width: 0;
}
.body-eyebrow {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terracotta); font-weight: 700;
  margin-bottom: clamp(16px, 2vh, 24px);
}
.role-section {
  margin-bottom: clamp(28px, 3.5vh, 44px);
  padding-bottom: clamp(28px, 3.5vh, 44px);
  border-bottom: 1px solid var(--line);
}
.role-section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.role-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  align-items: baseline;
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.role-numeral {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-feature-settings: "onum" on;
  text-align: right;
  min-width: 2ch;
}
.role-section.role-lead .role-numeral { color: var(--ochre); }
.role-section.role-grss .role-numeral { color: var(--teal); }
.role-section.role-slnt .role-numeral { color: var(--sepia); }
.role-text {
  text-wrap: balance;
}

/* The role text gets a thin underline in the role's color — encodes the role visually */
.role-section .role-heading::after {
  display: none;
}
.role-section {
  position: relative;
}
.role-section::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 4px; height: clamp(40px, 5vh, 60px);
  background: var(--terracotta);
  transform: translateX(-22px);
}
.role-section.role-lead::before { background: var(--ochre); }
.role-section.role-grss::before { background: var(--teal); }
.role-section.role-slnt::before { background: var(--sepia); }

.role-body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: 38ch;
  text-wrap: pretty;
}

/* Superscript citations within the role-body */
.sup-cite {
  font-family: var(--font-sans);
  font-size: 0.7em;
  vertical-align: super;
  line-height: 1;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 700;
  padding: 0 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-feature-settings: "lnum" on;
}
.sup-cite:hover, .sup-cite.is-highlighted {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  background: rgba(168, 63, 28, 0.08);
}
.sup-cite.is-active-cite {
  color: var(--paper);
  background: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
}
.sup-sep { display: inline; }

/* ---- MARGIN — 14 numbered citations ---- */
.manifesto-margin {
  min-width: 0;
  position: relative;
}
.margin-head {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terracotta); font-weight: 700;
  margin: 0 0 clamp(20px, 2.6vh, 32px);
}
.margin-head-rule {
  display: inline-block; flex: 0 0 28px; height: 2px; background: var(--terracotta);
}
.margin-head-text { white-space: nowrap; }

.citations {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.citation {
  border-top: 1px solid var(--line);
  padding: clamp(14px, 2vh, 22px) 0;
  position: relative;
  transition: opacity 0.3s ease;
}
.citation:last-child { border-bottom: 1px solid var(--line); }
.citation.is-faded { opacity: 0.18; }
.citation.is-highlighted .cite-link { background: rgba(168, 63, 28, 0.06); }
.citation.is-highlighted .cite-num { color: var(--terracotta); }

/* Role left-edge bar (subtle, only color cue per citation in the margin) */
.citation::before {
  content: ""; position: absolute; left: -10px; top: clamp(14px, 2vh, 22px);
  width: 3px; height: clamp(36px, 5vh, 56px);
  background: var(--sepia);
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s;
}
.citation.role-seed::before { background: var(--terracotta); }
.citation.role-lead::before { background: var(--ochre); }
.citation.role-grss::before { background: var(--teal); }
.citation.role-slnt::before { background: var(--sepia); }
.citation.is-active::before { opacity: 1; height: 100%; top: 0; }

.cite-link {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: clamp(14px, 1.4vw, 22px);
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  transition: background 0.15s;
}
.cite-link:hover { background: rgba(168, 63, 28, 0.04); }
.cite-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  color: var(--terracotta);
  text-align: right;
  font-feature-settings: "onum" on;
}
.citation.role-lead .cite-num { color: var(--ochre); }
.citation.role-grss .cite-num { color: var(--teal); }
.citation.role-slnt .cite-num { color: var(--sepia); }

.cite-body {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.cite-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.cite-punch {
  font-family: var(--font-text);
  font-style: italic;
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}
.cite-fingerprint {
  font-family: var(--font-sans);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
  display: flex; flex-wrap: wrap; gap: 2px; align-items: baseline;
}
.cf-cell b { color: var(--ink); font-weight: 700; font-feature-settings: "tnum" on; }
.cf-sep { color: var(--faint); }
.cf-source {
  display: block; width: 100%;
  font-style: italic;
  font-family: var(--font-text);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---- IN-CITATION DETAIL HOST (the L2 reveal) ---- */
.cite-detail-host {
  margin-top: clamp(20px, 3vh, 28px);
  border-top: 3px double var(--line-strong);
  padding-top: clamp(20px, 3vh, 28px);
  animation: cite-detail-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cite-detail-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cite-loading {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--muted);
  padding: 24px 0;
}
.cite-error { color: var(--terracotta); }

.cite-close {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  padding: 7px 14px;
  font: 700 11px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  margin-bottom: clamp(20px, 2.4vh, 32px);
  transition: background 0.15s, color 0.15s;
}
.cite-close:hover { background: var(--terracotta); color: var(--paper); }

/* The cluster-detail content rendered inside the host — keep main's structure but tighten */
.cite-detail-host .cluster-detail {
  background: transparent; border: 0; padding: 0;
}
.cite-detail-host .cluster-back-wrap { display: none; }
.cite-detail-host .cluster-banner {
  border-bottom: 1px solid var(--line);
  padding: 0 0 clamp(20px, 2.5vh, 32px);
  margin-bottom: clamp(20px, 2.5vh, 32px);
}
.cite-detail-host .cluster-banner-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px; margin-bottom: 16px;
}
.cite-detail-host .cluster-banner-top .vol { color: var(--terracotta); font-weight: 700; }
.cite-detail-host .cluster-banner-top .role-tag { color: var(--ochre); font-weight: 700; }
.cite-detail-host .cluster-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 14px; max-width: 22ch;
}
.cite-detail-host .cluster-punch {
  font-family: var(--font-text); font-weight: 400; font-style: italic;
  font-size: clamp(18px, 1.5vw, 24px); line-height: 1.45;
  color: var(--ink);
  border-left: 4px solid var(--terracotta);
  padding-left: 18px;
  margin: 0 0 22px;
  max-width: 60ch;
}
.cite-detail-host .cluster-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.cite-detail-host .cstat .v {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3vw, 44px); line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
  font-feature-settings: "onum" on;
}
.cite-detail-host .cstat .l {
  display: block; margin-top: 6px;
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.cite-detail-host .cluster-triad,
.cite-detail-host .stories-section {
  padding: clamp(20px, 2.6vh, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.cite-detail-host .triad-eyebrow {
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ochre); font-weight: 700;
}

/* ---- Ancillary content below the manifesto (visible if user scrolls past) ---- */
.manifesto-ancillary {
  margin-top: clamp(60px, 8vh, 120px);
  padding-top: clamp(40px, 5vh, 64px);
  border-top: 3px double var(--line-strong);
  opacity: 0.78;
}
.manifesto-ancillary .section-eyebrow { color: var(--terracotta); font-family: var(--font-sans); }
.manifesto-ancillary .section-headline { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); }

/* ---- Story drawer (L3) — sit above grid by z-index 300+ from main ---- */
.drawer { z-index: 300; }
.drawer-panel {
  background: var(--sheet); color: var(--ink);
  border-left: 1px solid var(--line-strong);
}

/* ---- QR popover ---- */
.qr-popover-card { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-strong); font-family: var(--font-text); }
.qr-popover-card strong { font-family: var(--font-display); font-style: italic; font-weight: 700; }
.qr-close { background: var(--ink); color: var(--paper); font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.qr-close:hover { background: var(--terracotta); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: clamp(28px, 4vh, 48px); }
  .manifesto-grid.is-expanded { grid-template-columns: 1fr; }
  .manifesto-grid.is-expanded .manifesto-body { display: none; }
  .role-body { max-width: none; }
  .op-line { font-size: clamp(48px, 11vw, 96px); }
}

/* ============================================================================
   v11 — STRENGTHENING PASS
   Push the palette and typographic furniture away from soft AI-tasteful
   editorial into committed letterpress broadside: deeper parchment,
   saturated oxblood wine accent, ornament rules between sections,
   drop caps, larger margin numerals, double-rule role headings.
============================================================================ */

:root {
  --paper:        #e3d6b3;        /* more pigmented parchment */
  --sheet:        #efe3c1;
  --ink:          #120d07;        /* deeper warm black */
  --muted:        #564a35;        /* darker sepia */
  --faint:        #968a6f;
  --line:         #b9ac88;
  --line-strong:  #120d07;
  --highlight:    #d6c89e;

  --terracotta:   #7a1018;        /* saturated oxblood, not soft terracotta */
  --ochre:        #8a5c0a;        /* deeper mustard */
  --teal:         #0e3a3f;        /* darker teal */
  --sepia:        #2e2616;
}

/* Larger margin numerals — they were italic-small, now read as broadside ordinals */
.citation .cite-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 4vw, 64px) !important;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--terracotta);
}
.citation.role-lead .cite-num { color: var(--ochre); }
.citation.role-grss .cite-num { color: var(--teal); }
.citation.role-slnt .cite-num { color: var(--ink); }

/* Wider, more visible role bookmark on each citation */
.citation::before {
  width: 6px !important;
  opacity: 0.65;
}
.citation.is-active::before { opacity: 1; }

/* Bigger cluster fingerprint stats */
.cite-fingerprint {
  font-family: var(--font-text);
  font-size: 14.5px;
  margin-top: 8px;
  color: var(--muted);
}
.cite-fingerprint .cf-cell b {
  color: var(--ink);
  font-weight: 700;
  font-feature-settings: "tnum" on, "lnum" on;
}
.cite-fingerprint .cf-source {
  display: block;
  margin-top: 4px;
  font-style: italic;
  color: var(--muted);
}

/* Cluster name larger, more letterpress */
.cite-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 26px) !important;
  letter-spacing: -0.012em;
  line-height: 1.15;
}

.cite-punch {
  font-family: var(--font-text);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 17px) !important;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 6px;
}

/* Decorative ornament between role sections (pilcrow flourish) */
.role-section + .role-section::before {
  content: "❦";
  display: block;
  text-align: center;
  font-size: clamp(22px, 2vw, 32px);
  color: var(--terracotta);
  margin: clamp(28px, 4vh, 48px) 0 clamp(16px, 2.4vh, 28px);
  letter-spacing: 0;
}

/* Stronger role headings — double-rule above, drop the ornament padding */
.role-section .role-heading {
  border-top: 4px double var(--ink);
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.role-section.role-seed .role-numeral { color: var(--terracotta); }
.role-section.role-lead .role-numeral { color: var(--ochre); }
.role-section.role-grss .role-numeral { color: var(--teal); }
.role-section.role-slnt .role-numeral { color: var(--ink); }

/* Drop cap on each role section's body */
.role-section .role-body::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(60px, 5.4vw, 96px);
  line-height: 0.86;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--terracotta);
  text-transform: uppercase;
}
.role-section.role-lead .role-body::first-letter { color: var(--ochre); }
.role-section.role-grss .role-body::first-letter { color: var(--teal); }
.role-section.role-slnt .role-body::first-letter { color: var(--ink); }

/* Saturate the masthead strip + body eyebrow */
.body-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  padding: 8px 12px;
  display: inline-block;
  margin-bottom: clamp(20px, 3vh, 36px);
}

/* Stronger top bar — saturated brand, ink rule */
.bar-top { border-bottom: 2px solid var(--ink); }
.bar-bottom { border-top: 2px solid var(--ink); }
.brand-mark { background: var(--terracotta); color: var(--paper); }
.brand-name { font-family: var(--font-display); font-weight: 700; }
.lead-submit { background: var(--terracotta); border-color: var(--terracotta); color: var(--paper); letter-spacing: 0.16em; }
.lead-submit:hover { background: var(--ink); border-color: var(--ink); }
#leadEmail { background: var(--sheet); border: 1px solid var(--ink); }
#leadEmail:focus { border-color: var(--terracotta); box-shadow: 0 0 0 2px rgba(122, 16, 24, 0.15); }
.bar-bottom-skus span::before { color: var(--terracotta); }

/* Citations list separator: ink rule, not hairline */
.citations { border-top: 2px solid var(--ink); }
.citation { border-bottom: 1px solid var(--ink); }
.citation:last-child { border-bottom: 1px solid var(--ink); }

/* Sup citations in the body — bigger, more present */
.sup-cite {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 1px;
}
.sup-cite:hover { color: var(--ink); border-bottom-color: var(--ink); }
.role-section.role-lead .sup-cite { color: var(--ochre); border-bottom-color: var(--ochre); }
.role-section.role-grss .sup-cite { color: var(--teal); border-bottom-color: var(--teal); }
.role-section.role-slnt .sup-cite { color: var(--ink); border-bottom-color: var(--ink); }

/* end v11 */
