/* =====================================================================
   THE PRECEDENT, The State of Legal AI
   Shared design system. Editorial / print-feature aesthetic.
   ===================================================================== */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --surface: #fffdf8;
  --ink: #16191c;
  --ink-2: #3b4045;
  --muted: #757067;
  --hair: #e0dac9;
  --hair-strong: #cfc6b2;

  --accent: #1f6b4a;        /* signature eucalyptus green */
  --accent-deep: #14513a;
  --accent-soft: rgba(31,107,74,.08);
  --navy: #1c2c4c;
  --brass: #b07d2b;
  --brass-deep: #8a5f17;
  --plum: #6d2741;
  --grey-warm: #c3b7a0;

  --good: #1f7a52;
  --warn: #c98a17;
  --bad: #b23b2e;

  --serif-disp: 'Fraunces', Georgia, serif;
  --serif-body: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 20px;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(90,80,50,.03) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--hair-strong);
  background: rgba(244,241,234,.92);
  backdrop-filter: blur(8px);
}
.masthead-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 13px 28px; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans); gap: 16px;
}
.nameplate {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; letter-spacing: -.01em; font-size: 15px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nameplate .dot { width: 11px; height: 11px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }

/* top-level section nav: hamburger dropdown panel at all screen sizes */
.topnav {
  position: absolute; top: calc(100% + 6px); right: 28px; z-index: 120;
  width: min(250px, calc(100vw - 32px));
  display: none; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 9px;
  padding: 8px; box-shadow: 0 26px 54px -22px rgba(40,30,10,.5);
}
.topnav.open { display: flex; }
.topnav a {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  padding: 11px 14px; border-radius: 6px; white-space: normal; line-height: 1.3;
  transition: background .12s ease, color .12s ease;
}
.topnav a:hover { background: var(--paper-2); color: var(--ink); }
.topnav a.current { color: var(--accent-deep); background: var(--accent-soft); font-weight: 700; }
.topnav .navlabel {
  font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); padding: 13px 14px 5px;
}
.topnav .navnum {
  display: inline-block; width: 15px; color: var(--accent);
  font-weight: 800; font-size: 12px;
}
.topnav a.current .navnum { color: var(--accent-deep); }

.masthead-right { display: flex; align-items: center; gap: 14px; }
.masthead .meta { font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.masthead-fill {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 0%;
  background: var(--accent); z-index: 2; transition: width .08s linear;
}

/* nav toggle (always shown) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 17px; line-height: 1;
  background: var(--surface); border: 1px solid var(--hair-strong);
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer; color: var(--ink);
  transition: border-color .12s ease, color .12s ease;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-deep); }

@media (max-width: 640px) {
  .topnav { right: 16px; left: 16px; width: auto; }
  .masthead .meta { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 76px 28px 30px; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-deep); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.eyebrow::after { content: ""; width: 46px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-family: var(--serif-disp); font-weight: 600;
  font-size: clamp(40px, 7vw, 86px);
  line-height: .99; letter-spacing: -.025em; margin: 0 0 28px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.standfirst {
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.42;
  color: var(--ink-2); max-width: 660px; font-weight: 340; margin: 0 0 34px;
}
.dateline {
  font-family: var(--sans);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  font-size: 13px; color: var(--muted);
  padding-top: 22px; border-top: 1px solid var(--hair-strong);
}
.dateline b { color: var(--ink); font-weight: 600; }
.dateline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--hair-strong); }
.hero-frame {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.6; font-weight: 500;
  color: var(--muted); max-width: 600px; margin: -14px 0 34px;
}
.hero-frame em { font-style: normal; font-weight: 700; color: var(--accent-deep); }

/* ---------- reader map (home contents) ---------- */
.reader-map { margin-top: 10px; }
.map-eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 11px;
}
.map-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.map-title {
  font-family: var(--serif-disp); font-weight: 560; font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08; letter-spacing: -.02em; margin: 15px 0 14px; padding-top: 0;
}
.map-title::before, .map-title::after { content: none; }
.map-lede { font-size: 19px; color: var(--ink-2); margin: 0; }
.map-lede em { font-style: italic; color: var(--accent-deep); font-weight: 500; }

/* ---------- article ---------- */
article { max-width: 720px; margin: 0 auto; padding: 30px 28px 40px; }
section { scroll-margin-top: 80px; }
p { margin: 0 0 24px; }
.lead > p:first-of-type { font-size: 22px; }
.wide { max-width: 720px; margin: 0 auto; }

h2 {
  font-family: var(--serif-disp); font-weight: 560;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -.02em;
  margin: 74px 0 26px; position: relative; padding-top: 40px;
}
h2::before {
  content: attr(data-num); position: absolute; top: 0; left: 0;
  font-family: var(--sans); font-weight: 800; font-size: 13px;
  letter-spacing: .2em; color: var(--accent);
}
h2::after { content: ""; position: absolute; top: 6px; left: 44px; right: 0; height: 1px; background: var(--hair-strong); }

h3.sub {
  font-family: var(--serif-disp); font-weight: 540; font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.015em; margin: 48px 0 18px; line-height: 1.15;
}
.em { font-weight: 600; }
.accent-text { color: var(--accent-deep); font-weight: 600; }

.beat {
  font-family: var(--serif-disp); font-weight: 480;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.22; letter-spacing: -.015em;
  color: var(--ink); margin: 34px 0;
}

blockquote.pull {
  margin: 40px 0; padding: 4px 0 4px 30px; border-left: 4px solid var(--accent);
  font-family: var(--serif-disp); font-style: italic; font-weight: 420;
  font-size: clamp(23px, 3vw, 29px); line-height: 1.3; color: var(--ink);
}

a.src {
  font-family: var(--sans); font-size: 13.5px; color: var(--accent-deep);
  text-decoration: none; border-bottom: 1px solid rgba(31,107,74,.32); word-break: break-word;
}
a.src:hover { border-bottom-color: var(--accent-deep); background: var(--accent-soft); }

/* ---------- breakout / full bleed ---------- */
.breakout { width: min(1040px, 94vw); margin-left: 50%; transform: translateX(-50%); }
.fullbleed { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.breakout.reveal { transform: translateX(-50%) translateY(22px); }
.breakout.reveal.in { transform: translateX(-50%); }
.fullbleed.reveal { transform: translateX(-50%) translateY(22px); }
.fullbleed.reveal.in { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .breakout.reveal, .breakout.reveal.in,
  .fullbleed.reveal, .fullbleed.reveal.in { transform: translateX(-50%); }
}

/* ---------- stat band ---------- */
/* NB: margin-top/bottom only, the `margin` shorthand would reset margin-left:50% from .fullbleed and shove it off-page */
.statband { background: var(--ink); color: var(--paper); margin-top: 44px; margin-bottom: 44px; }
.statband-inner {
  max-width: 1040px; margin: 0 auto; padding: 56px 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.statband .lbl-top { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); grid-column: 1 / -1; margin-bottom: 6px; }
.sb { padding: 8px 18px 8px 0; }
.sb .n { font-family: var(--serif-disp); font-weight: 560; font-size: clamp(42px, 6.4vw, 70px); line-height: .9; letter-spacing: -.03em; }
.sb .n .hl { color: #5cc98f; }
.sb .d { font-family: var(--sans); font-size: 13.5px; color: #c8c0b2; margin-top: 14px; line-height: 1.45; max-width: 260px; }

/* ---------- figure / chart ---------- */
figure {
  margin: 46px 0; background: var(--surface);
  border: 1px solid var(--hair); border-radius: 5px; padding: 0; overflow: hidden;
  box-shadow: 0 1px 0 var(--hair-strong), 0 26px 50px -34px rgba(40,30,10,.5);
}
.fig-head { padding: 24px 28px 16px; border-bottom: 1px solid var(--hair); }
.fig-tag {
  font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.fig-tag .sq { width: 12px; height: 12px; background: var(--accent); display: inline-block; }
.fig-title { font-family: var(--serif-disp); font-weight: 540; font-size: 25px; line-height: 1.16; letter-spacing: -.015em; color: var(--ink); margin: 0 0 8px; }
.fig-sub { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.fig-body { padding: 22px 24px 6px; }
.chart-wrap { position: relative; height: 360px; }
.chart-wrap.tall { height: 440px; }
.dual-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dual-chart-col { min-width: 0; }
.dual-chart-col .chart-wrap { height: 320px; }
.dual-title { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); text-align: center; margin: 0 0 8px; }
figcaption {
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  padding: 16px 28px 22px; border-top: 1px solid var(--hair); line-height: 1.55; background: var(--paper-2);
}
figcaption b { color: var(--ink-2); font-weight: 600; }
.src-line { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 10.5px; color: var(--accent-deep); }

/* ---------- video embed (16:9, matches figure frame) ---------- */
.video-frame { margin-top: 40px; margin-bottom: 8px; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- generic card / diagram ---------- */
.diagram {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 5px;
  padding: 34px 28px; margin-top: 46px; margin-bottom: 46px;
  box-shadow: 0 26px 50px -34px rgba(40,30,10,.5); font-family: var(--sans);
}
.d-tag { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.d-tag .sq { width: 10px; height: 10px; background: var(--accent); }
.note { font-family: var(--sans); font-size: 14px; color: var(--muted); text-align: center; margin: 24px auto 0; max-width: 560px; line-height: 1.55; }

/* ---------- power-centre / feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 36px 0; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 6px;
  padding: 24px 24px 22px; box-shadow: 0 16px 34px -30px rgba(40,30,10,.5);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent); }
.card .k { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; display: block; }
.card h4 { font-family: var(--serif-disp); font-weight: 560; font-size: 22px; margin: 0 0 10px; line-height: 1.12; letter-spacing: -.01em; }
.card p { font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.card.navy::before { background: var(--navy); } .card.navy .k { color: var(--navy); }
.card.brass::before { background: var(--brass); } .card.brass .k { color: var(--brass-deep); }
.card.plum::before { background: var(--plum); } .card.plum .k { color: var(--plum); }

/* ---------- ledger (two-col +/-) ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ledger-col { border-radius: 5px; padding: 22px 22px 12px; }
.ledger-col.cost { background: #fbeeea; border: 1px solid #ecd0c5; }
.ledger-col.benefit { background: #e6f3ee; border: 1px solid #c4e2d4; }
.ledger-col h4 { margin: 0 0 16px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); }
.ledger-col.cost h4 { color: var(--bad); }
.ledger-col.benefit h4 { color: var(--accent-deep); }
.ledger-col ul { margin: 0; padding: 0; list-style: none; }
.ledger-col li { font-family: var(--serif-body); font-size: 17px; padding: 9px 0 9px 26px; position: relative; color: var(--ink); border-bottom: 1px dashed rgba(0,0,0,.08); }
.ledger-col li:last-child { border-bottom: none; }
.ledger-col.cost li::before { content: "–"; position: absolute; left: 4px; color: var(--bad); font-weight: 800; font-family: var(--sans); }
.ledger-col.benefit li::before { content: "+"; position: absolute; left: 4px; color: var(--accent-deep); font-weight: 800; font-family: var(--sans); }

/* ---------- hub diagram ---------- */
.hub { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hub-center {
  background: var(--accent); color: #fff; font-family: var(--serif-disp); font-weight: 560;
  font-size: 24px; padding: 16px 40px; border-radius: 5px;
  box-shadow: 0 14px 30px -14px rgba(31,107,74,.6);
}
.hub-stem { width: 2px; height: 24px; background: var(--hair-strong); }
.hub-ring { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 680px; }
.hub-node { background: var(--paper); border: 1.5px solid var(--hair-strong); border-radius: 5px; padding: 15px 18px; font-size: 15px; font-weight: 700; color: var(--ink); min-width: 160px; text-align: center; font-family: var(--sans); }
.hub-node small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* =====================================================================
   INTERACTIVE COMPONENTS
   ===================================================================== */

/* ---- filterable vendor table ---- */
.table-tool { font-family: var(--sans); }
.tt-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--hair); background: var(--paper-2); }
.tt-controls .lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chipbtn {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1.5px solid var(--hair-strong); padding: 7px 14px;
  border-radius: 999px; cursor: pointer; transition: all .12s ease;
}
.chipbtn:hover { border-color: var(--accent); }
.chipbtn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tt-search { margin-left: auto; }
.tt-search input {
  font-family: var(--sans); font-size: 14px; padding: 8px 14px; width: 200px;
  border: 1.5px solid var(--hair-strong); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.tt-search input:focus { outline: none; border-color: var(--accent); }

.dtable { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.dtable th {
  text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 14px 18px; border-bottom: 2px solid var(--hair-strong); background: var(--surface);
  position: sticky; top: 0; cursor: pointer; user-select: none; white-space: nowrap;
}
.dtable th:hover { color: var(--accent-deep); }
.dtable th .arrow { opacity: .4; font-size: 10px; }
.dtable th.sorted .arrow { opacity: 1; color: var(--accent); }
.dtable td { padding: 15px 18px; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.dtable tbody tr { transition: background .1s ease; }
.dtable tbody tr:hover { background: var(--accent-soft); }
.dtable .vname { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.dtable .badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; margin-top: 6px; white-space: nowrap;
}
.badge.b-incumbent { background: #e7eef7; color: var(--navy); }
.badge.b-specialist { background: var(--accent-soft); color: var(--accent-deep); }
.badge.b-discovery { background: #f3e9d8; color: var(--brass-deep); }
.badge.b-platform { background: #efe2e8; color: var(--plum); }
.tt-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 15px; }
.tt-count { font-family: var(--sans); font-size: 12px; color: var(--muted); padding: 12px 22px; background: var(--paper-2); border-top: 1px solid var(--hair); }

/* ---- tabs (jurisdictions) ---- */
.tabs { font-family: var(--sans); }
.tab-strip { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--hair-strong); padding: 0 18px; }
.tab-btn {
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted);
  background: none; border: none; padding: 16px 18px 14px; cursor: pointer; position: relative;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .12s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--accent-deep); border-bottom-color: var(--accent); }
.tab-flag { margin-right: 7px; }
.tab-panel { padding: 30px 30px 26px; display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h4 { font-family: var(--serif-disp); font-weight: 560; font-size: 26px; margin: 0 0 4px; }
.tab-panel .framework { font-size: 13px; font-weight: 700; color: var(--accent-deep); letter-spacing: .02em; margin-bottom: 18px; text-transform: uppercase; }
.tab-panel p { font-family: var(--serif-body); font-size: 18px; color: var(--ink-2); margin: 0 0 14px; }
.tab-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.tab-meta .m { } .tab-meta .m .ml { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.tab-meta .m .mv { font-family: var(--serif-disp); font-size: 22px; font-weight: 560; color: var(--ink); }

/* ---- risk heatmap ---- */
.heatmap { font-family: var(--sans); }
.heat-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; }
.heat-grid .hcell { padding: 14px 16px; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); font-size: 13.5px; }
.heat-grid .hhead { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 2px solid var(--hair-strong); }
.heat-grid .rlabel { font-weight: 700; color: var(--ink); background: var(--surface); }
.heat-cellv { display: flex; align-items: center; justify-content: center; cursor: default; font-weight: 700; color: #fff; min-height: 52px; transition: transform .1s ease; position: relative; }
.heat-cellv:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.h-low { background: #5b9d7e; } .h-med { background: var(--warn); } .h-high { background: var(--bad); } .h-crit { background: #7a1d14; }
.heat-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px 18px; font-size: 12.5px; color: var(--ink-2); }
.heat-legend .li { display: flex; align-items: center; gap: 7px; }
.heat-legend .sw { width: 14px; height: 14px; border-radius: 3px; }

/* ---- accordion (use cases / SWOT / objections) ---- */
.acc { font-family: var(--sans); }
.acc-item { border: 1px solid var(--hair); border-radius: 6px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.acc-head {
  width: 100%; text-align: left; background: var(--surface); border: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink);
}
.acc-head:hover { background: var(--paper-2); }
.acc-head .acc-meta { display: flex; align-items: center; gap: 12px; }
.acc-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-mature { background: #e6f3ee; color: var(--accent-deep); }
.pill-operational { background: #eef3e6; color: #5a7320; }
.pill-emerging { background: #f3edda; color: var(--brass-deep); }
.pill-experimental { background: #f6e7e3; color: var(--bad); }
.acc-caret { font-size: 14px; color: var(--muted); transition: transform .2s ease; flex: 0 0 auto; }
.acc-item.open .acc-caret { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-item.open .acc-body { max-height: 600px; }
.acc-body-inner { padding: 4px 22px 22px; font-family: var(--serif-body); font-size: 18px; color: var(--ink-2); line-height: 1.6; }

/* ---- SWOT grid ---- */
.swot-pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--hair); background: var(--paper-2); }
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.swot-q { padding: 24px 24px 20px; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.swot-q h5 { font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.swot-q h5::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.swot-q.s h5 { color: var(--accent-deep); } .swot-q.s h5::before { background: var(--accent); }
.swot-q.w h5 { color: var(--bad); } .swot-q.w h5::before { background: var(--bad); }
.swot-q.o h5 { color: var(--navy); } .swot-q.o h5::before { background: var(--navy); }
.swot-q.t h5 { color: var(--brass-deep); } .swot-q.t h5::before { background: var(--brass); }
.swot-q p { font-family: var(--serif-body); font-size: 16.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---- timeline ---- */
.timeline { font-family: var(--sans); position: relative; padding: 8px 0; }
.tl-year { display: grid; grid-template-columns: 110px 1fr; gap: 20px; margin-bottom: 8px; }
.tl-year-label { text-align: right; padding-top: 18px; }
.tl-year-label .y { font-family: var(--serif-disp); font-size: 32px; font-weight: 560; color: var(--accent-deep); line-height: 1; }
.tl-year-label .theme { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: block; }
.tl-events { border-left: 2px solid var(--hair-strong); padding: 14px 0 14px 24px; position: relative; }
.tl-event { position: relative; padding: 10px 0; }
.tl-event::before { content: ""; position: absolute; left: -31px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.tl-event .te-t { font-weight: 700; color: var(--ink); font-size: 15px; }
.tl-event .te-d { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #cfc7b8; margin-top: 64px; }
.footer-inner { max-width: 760px; margin: 0 auto; padding: 56px 28px 70px; font-family: var(--sans); }
footer .f-mark { display: flex; align-items: center; gap: 11px; font-family: var(--serif-disp); font-weight: 560; font-size: 20px; color: #fff; margin-bottom: 14px; }
footer .f-mark .dot { width: 11px; height: 11px; background: var(--accent); transform: rotate(45deg); }
.built-by { margin: 4px 0 26px; }
.built-by a { color: #5cb98a; font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.built-by a:hover { text-decoration: underline; }
.f-nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 30px; }
.f-nav a { color: #d8d0c2; font-size: 13.5px; text-decoration: none; font-weight: 600; }
.f-nav a:hover { color: var(--accent); }
footer h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 0 0 18px; }
footer ol { margin: 0; padding-left: 22px; }
footer li { font-size: 13px; color: #b8b0a2; margin-bottom: 11px; line-height: 1.5; }
footer li em { color: #e7e0d2; font-style: italic; }
footer a { color: #5fd0bd; text-decoration: none; word-break: break-word; }
footer a:hover { text-decoration: underline; }
.disclaimer { font-size: 12.5px; color: #8e8678; margin-top: 30px; line-height: 1.65; border-top: 1px solid #34322c; padding-top: 22px; }

/* ---------- about / credits ---------- */
/* NB: margin-top/bottom only — `margin` shorthand would reset margin-left:50% from .breakout */
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; margin-bottom: 38px; }
.credit-card {
  border-radius: 8px; padding: 38px 28px 30px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  box-shadow: 0 26px 50px -34px rgba(40,30,10,.55);
}
.credit-card.mm { background: #0c0c0c; }
.credit-card.fl { background: #0b1220; }
.credit-card .role { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 24px; }
.credit-logo { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 76px; margin-bottom: 16px; }
.credit-logo .mono { width: 56px; height: 56px; border-radius: 8px; }
.credit-logo .wordmark { max-width: 230px; width: 100%; height: auto; }
.fl-word { font-family: var(--serif-disp); font-size: clamp(28px, 5vw, 38px); font-weight: 560; color: #fff; line-height: 1; letter-spacing: -.01em; }
.fl-word em { font-style: italic; color: #6ea8fe; font-weight: 500; }
.credit-card .desc { font-family: var(--sans); font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.55; margin: 6px 0 0; max-width: 300px; }
.credit-card .clink { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none; margin-top: 18px; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.credit-card .clink:hover { border-bottom-color: #fff; }

.org { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--hair-strong); }
.org .org-badge { width: 64px; height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.org .org-badge.mm { background: #0c0c0c; }
.org .org-badge img { width: 46px; height: 46px; border-radius: 6px; }
.org h4 { font-family: var(--serif-disp); font-weight: 560; font-size: 23px; margin: 0 0 8px; }
.org p { margin: 0; font-size: 18px; }

/* ---------- related-research columns ---------- */
.reading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 32px 0 12px; font-family: var(--sans); }
.reading .rc h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--hair-strong); }
.reading ul { list-style: none; margin: 0; padding: 0; }
.reading li { font-size: 14px; line-height: 1.4; margin-bottom: 15px; color: var(--ink-2); }
.reading li .who { display: block; font-weight: 700; color: var(--ink); font-size: 14px; }
.reading li a.src { font-size: 12.5px; }

/* ---------- perspectives ---------- */
.perspectives { display: flex; flex-direction: column; gap: 28px; margin: 36px 0 12px; }
.pcard { background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 var(--hair-strong), 0 26px 50px -34px rgba(40,30,10,.5); }
.pcard-media { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 28% 38%; display: block; background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.pcard-body { padding: 28px 32px 26px; }
.pcard-tag { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.pcard-tag .sq { width: 10px; height: 10px; background: var(--accent); display: inline-block; }
.pcard-quote { font-family: var(--serif-disp); font-style: italic; font-weight: 440; font-size: clamp(21px, 2.7vw, 27px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin: 0 0 22px; padding-left: 24px; border-left: 4px solid var(--accent); }
.pcard-full { font-family: var(--serif-body); }
.pcard-full p { font-size: 18px; line-height: 1.62; color: var(--ink-2); margin: 0 0 16px; }
.pcard-attr { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); font-family: var(--sans); }
.pcard-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.pcard-who .nm { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.pcard-who .rl { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pcard-who .ln { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.pcard-who .ln:hover { text-decoration: underline; }

.contribute { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 38px 34px; margin: 40px 0 8px; font-family: var(--sans); }
.contribute h3 { font-family: var(--serif-disp); font-weight: 560; font-size: 26px; color: #fff; margin: 0 0 10px; }
.contribute p { font-size: 15px; color: #cfc7b8; line-height: 1.6; margin: 0 0 18px; max-width: 620px; }
.contribute ol { margin: 0 0 22px; padding-left: 20px; color: #d8d0c2; font-size: 14.5px; }
.contribute li { margin-bottom: 7px; }
.contribute .cbtn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.contribute .cbtn:hover { background: #12857560; background: var(--accent-deep); }

/* =====================================================================
   WHO THRIVES — posture spectrum, verdict chips, sorting matrix
   ===================================================================== */

/* ---- posture spectrum (Warehouse -> Maker axis per segment) ---- */
.spectrum { font-family: var(--sans); margin: 30px 0 4px; }
.spectrum-poles { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.spectrum-poles .pole { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; max-width: 47%; }
.spectrum-poles .warehouse { color: var(--bad); }
.spectrum-poles .maker { color: var(--accent-deep); text-align: right; }
.spectrum-poles .pole small { display: block; font-weight: 500; letter-spacing: .01em; text-transform: none; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.spectrum-track {
  position: relative; height: 12px; border-radius: 999px; margin: 34px 0 0;
  border: 1px solid var(--hair-strong);
  background: linear-gradient(90deg, #d99a8c 0%, #e7c19f 42%, #cfe0c4 66%, #8ec5a4 100%);
}
.spectrum-line { position: absolute; top: -7px; bottom: -7px; width: 3px; background: var(--ink); border-radius: 3px; }
.spectrum-line .tag {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hair-strong);
  border-radius: 999px; padding: 4px 11px; box-shadow: 0 6px 16px -10px rgba(40,30,10,.6);
}
.spectrum-line .tag::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--hair-strong); }
.spectrum-scale { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--muted); font-weight: 600; }
.spectrum-cap { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.55; margin: 16px 0 0; }
.spectrum-cap b { color: var(--ink-2); font-weight: 700; }

/* ---- verdict chips (shared vocabulary with the acc pills) ---- */
.verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 2px; }
.vchip { font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 6px 13px 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.vchip::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.vchip.thrive { background: #e6f3ee; color: var(--accent-deep); } .vchip.thrive::before { background: var(--accent); }
.vchip.survive { background: #eef3e6; color: #5a7320; } .vchip.survive::before { background: #7d9b3a; }
.vchip.squeeze { background: #f3edda; color: var(--brass-deep); } .vchip.squeeze::before { background: var(--brass); }
.vchip.exposed { background: #f6e7e3; color: var(--bad); } .vchip.exposed::before { background: var(--bad); }

/* ---- sorting matrix (segment x mechanism, diverging tailwind/headwind) ---- */
.tmatrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tmatrix { font-family: var(--sans); min-width: 680px; display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); }
.tmatrix .tc { padding: 13px 13px; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); font-size: 13px; line-height: 1.3; }
.tmatrix .thead { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 2px solid var(--hair-strong); }
.tmatrix .rlabel { font-weight: 700; color: var(--ink); background: var(--surface); font-size: 13.5px; }
.tmatrix .rlabel small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; margin-top: 3px; letter-spacing: .01em; }
.tmatrix .cellv { display: flex; align-items: center; justify-content: center; min-height: 54px; font-weight: 800; color: #fff; font-size: 17px; cursor: default; position: relative; transition: transform .1s ease; }
.tmatrix .cellv:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.t-pp { background: var(--accent); } .t-p { background: #6ba888; } .t-n { background: #b3a891; } .t-h { background: var(--warn); } .t-hh { background: var(--bad); }
.tmatrix-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px 4px 2px; font-size: 12px; color: var(--ink-2); }
.tmatrix-legend .li { display: flex; align-items: center; gap: 7px; }
.tmatrix-legend .sw { width: 14px; height: 14px; border-radius: 3px; font-size: 10px; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .credits { grid-template-columns: 1fr; }
  .reading { grid-template-columns: 1fr; gap: 22px; }
  .pcard-body { padding: 22px 18px 20px; }
  .contribute { padding: 28px 20px; }
  body { font-size: 19px; }
  .statband-inner { grid-template-columns: 1fr; gap: 30px; }
  .ledger, .dual-chart, .cards, .cards.three, .swot-grid { grid-template-columns: 1fr; }
  .chart-wrap { height: 300px; }
  .fig-body { padding: 16px 12px 4px; }
  .heat-grid { grid-template-columns: 1fr; }
  .heat-grid .hcell { border-right: none; }
  .heat-grid .hhead:not(:first-child) { display: none; }
  .heat-cellv::after { content: attr(data-col) " · "; font-weight: 600; opacity: .85; }
  .tl-year { grid-template-columns: 70px 1fr; gap: 12px; }
  .tl-year-label .y { font-size: 24px; }
  .tt-search { margin-left: 0; width: 100%; }
  .tt-search input { width: 100%; }
  .dtable { font-size: 13px; }
  .dtable td, .dtable th { padding: 12px 12px; }
  .spectrum-poles .pole { font-size: 10px; max-width: 48%; }
  .spectrum-poles .pole small { font-size: 11px; }
}
