:root {
  --cream: #efe7d8;
  --cream-2: #f5efe3;
  --card: #fbf8f1;
  --ink: #181a1e;
  --muted: #6c695f;
  --faint: #9a9589;
  --border: #e1d8c7;
  --dark: #121316;
  --dark-card: #1d1f24;
  --dark-border: #2d2f35;
  --dark-text: #f3efe6;
  --dark-muted: #a8a59b;
  --blue: #cfe0e3;
  --blue-deep: #bcd5d9;
  --teal: #4f93a3;
  --orange: #e8590c;
  --maxw: 1120px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.mono { font-family: var(--mono); letter-spacing: 0; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 15px clamp(18px,4vw,40px); transition: background .25s, box-shadow .25s; }
.nav.scrolled { background: rgba(239,231,216,.85); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.cx { width: 30px; height: 30px; margin: 0 0 -4px 1px; }
.cx path { fill: none; stroke-width: 2.7; stroke-linecap: round; }
.cx .x-up { stroke: var(--teal); }
.cx .x-down { stroke: var(--orange); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; font-weight: 500; font-size: 14.5px; border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: transform .14s, background .18s, border-color .18s, color .18s; border: 1px solid transparent; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: #cf4e0a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.nav-cta { padding: 8px 18px; }

/* SECTIONS + BANDS */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(76px,11vh,128px) clamp(22px,5vw,48px); }
.band { width: 100%; }
.band-dark { background: var(--dark); color: var(--dark-text); }
.band-blue { background: var(--blue); }
.band-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(76px,11vh,128px) clamp(22px,5vw,48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); display: inline-block; }
.band-dark .eyebrow { color: var(--dark-text); }
h2 { font-size: clamp(28px,4vw,46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 22px; max-width: 22ch; }
.lead { color: var(--muted); font-size: clamp(16px,1.6vw,18.5px); max-width: 60ch; margin: 0 0 18px; }
.lead.dim { color: var(--faint); }
.lead.center { text-align: center; margin: 42px auto 0; max-width: 64ch; }
.band-dark .lead { color: var(--dark-muted); }
.band-dark h2 { color: var(--dark-text); }
.lead code, code { font-family: var(--mono); font-size: .85em; background: var(--cream-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }

/* HERO */
/* HERO — Vermeer full-bleed, brushed edges, cream haze under the copy */
.hero { position: relative; background: var(--cream); padding-top: 0; }
.frame { position: relative; min-height: clamp(560px, 80vh, 780px); overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: 0; }
.scene img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; display: block; }
.frame::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 74px; z-index: 3;
  background: url('edge-top.svg') top center/100% 100% no-repeat; pointer-events: none; }
.frame::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 74px; z-index: 3;
  background: url('edge-bottom.svg') bottom center/100% 100% no-repeat; pointer-events: none; }
.haze { position: absolute; left: 0; top: 0; bottom: 0; width: min(960px, 97%); z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(239,231,216,1) 0%, rgba(239,231,216,.99) 46%, rgba(239,231,216,.93) 62%, rgba(239,231,216,.5) 78%, rgba(239,231,216,0) 94%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(104px,15vh,164px) clamp(22px,5vw,48px) clamp(64px,10vh,104px); }
.hero-inner .kicker { color: #5c5850; }
.hero h1 { font-size: clamp(44px,6.9vw,84px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 26px 0 0; max-width: 15ch; color: var(--ink);
  text-shadow: 0 1px 0 rgba(239,231,216,.9), 0 2px 26px rgba(239,231,216,.9), 0 2px 3px rgba(239,231,216,.7); }
.hero-sub { color: #262a2f; font-size: clamp(16px,1.7vw,19px); line-height: 1.62; margin: 28px 0 0; max-width: 52ch;
  text-shadow: 0 1px 2px rgba(239,231,216,.95), 0 0 14px rgba(239,231,216,.85); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-credit { margin: 44px 0 0; font-family: var(--mono); font-size: 11.5px; color: #625e55; max-width: 46ch;
  text-shadow: 0 1px 2px rgba(239,231,216,.95), 0 0 10px rgba(239,231,216,.85); }
.hero-credit em { font-style: italic; }
@media (max-width: 720px) {
  .scene img { object-position: 66% 26%; }
  .haze { width: 100%; background: linear-gradient(180deg, rgba(239,231,216,.98) 0%, rgba(239,231,216,.93) 46%, rgba(239,231,216,.72) 78%, rgba(239,231,216,.5) 100%); }
}
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--orange); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px,5vw,56px); align-items: center; }
.hero h1 { font-size: clamp(40px,6.2vw,74px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 600; margin: 0; max-width: 14ch; }
.hero-aside { display: flex; flex-direction: column; align-items: flex-start; }
.hero-sub { color: var(--muted); font-size: clamp(15px,1.5vw,17px); margin: 0 0 22px; max-width: 42ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* CARD */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: clamp(26px,3.5vw,44px); }
.band-blue .card { background: #fff; border-color: #bcd5d9; }

/* GAP FIGURE */
.gap-figure { display: flex; align-items: stretch; margin: 34px 0 26px; max-width: 760px; }
.gf-side { flex: 1; padding: 8px 28px; display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.gf-num { font-size: clamp(42px,6vw,68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.gf-num.accent { color: var(--orange); }
.gf-lbl { color: var(--muted); font-size: 13.5px; max-width: 24ch; }
.gf-div { width: 1px; background: var(--border); }
.fund { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.fund-lbl { color: var(--faint); font-size: 12px; width: 100%; margin-bottom: 2px; }
.fchip { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--border); background: var(--cream-2); border-radius: 8px; padding: 7px 12px; }

/* EVIDENCE (dark band, big numbers) */
.ev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--dark-border); border: 1px solid var(--dark-border); border-radius: 18px; overflow: hidden; margin-top: 40px; }
.ev-card { background: var(--dark-card); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.ev-stat { font-size: clamp(32px,3.8vw,46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--dark-text); }
.ev-stat small { font-size: .4em; color: var(--dark-muted); font-weight: 500; }
.ev-claim { margin: 0; color: var(--dark-text); font-size: 14px; line-height: 1.5; }
.ev-claim em { color: var(--orange); font-style: italic; }
.ev-src { color: var(--dark-muted); font-size: 11.5px; margin-top: auto; font-family: var(--mono); }

/* QUOTES */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.qcard { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: transform .2s; }
.qcard:hover { transform: translateY(-3px); }
.qcard blockquote { margin: 0; font-size: clamp(17px,1.9vw,20px); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.qcard figcaption { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.qcard figcaption span { font-weight: 400; font-size: 12px; color: var(--faint); }

/* MEASUREMENT MIX */
.narrow { max-width: var(--maxw); }
.mix { margin: 34px 0; max-width: 760px; }
.mix-bar { display: flex; height: 54px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.seg { height: 100%; }
.seg.verify { background: var(--orange); }
.seg.steer { background: var(--ink); }
.seg.direct { background: #d9d0bf; }
.seg.accept { background: var(--teal); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 16px; }
.mix-legend span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.mix-legend b { color: var(--ink); font-weight: 600; }
.mix-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.sw-verify { background: var(--orange); } .sw-steer { background: var(--ink); }
.sw-direct { background: #d9d0bf; } .sw-accept { background: var(--teal); }

/* APPROACH (blue band) */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px; }
.step { background: #fff; border: 1px solid #bcd5d9; border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 11px; }
.step-iso { width: 56px; height: 44px; }
.step-n { font-size: 12px; font-weight: 600; color: var(--teal); font-family: var(--mono); }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.principles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.principle { font-family: var(--mono); font-size: 12.5px; color: #36545b; border: 1px solid #bcd5d9; background: rgba(255,255,255,.5); border-radius: 999px; padding: 8px 16px; }

/* OPEN QUESTIONS */
.oq { list-style: none; padding: 0; margin: 40px 0 0; max-width: 800px; }
.oq li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--border); }
.oq li:first-child { border-top: none; padding-top: 0; }
.oq-n { color: var(--orange); font-weight: 600; font-size: 15px; flex-shrink: 0; font-family: var(--mono); }
.oq p { margin: 0; color: var(--ink); font-size: clamp(16px,1.7vw,18.5px); line-height: 1.5; }

/* CTA (dark band) */
.cta { text-align: center; }
.cta h2 { max-width: none; }
.cta-sub { color: var(--dark-muted); max-width: 54ch; margin: 0 auto 30px; font-size: 16px; }
.cta .hero-cta { justify-content: center; }
.band-dark .btn-ghost { color: var(--dark-text); border-color: var(--dark-border); }
.band-dark .btn-ghost:hover { background: var(--dark-text); color: var(--dark); }

/* FOOTER (dark) */
.footer { background: var(--dark); color: var(--dark-muted); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 54px clamp(22px,5vw,48px) 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer .brand { color: var(--dark-text); margin-bottom: 14px; }
.foot-brand p { color: var(--dark-muted); font-size: 14px; max-width: 38ch; margin: 0; }
.foot-cols { display: flex; gap: 56px; justify-content: flex-end; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 4px; }
.foot-col a { color: var(--dark-text); font-size: 14px; opacity: .8; transition: opacity .18s; }
.foot-col a:hover { opacity: 1; }
.foot-base { grid-column: 1/-1; border-top: 1px solid var(--dark-border); padding-top: 24px; margin-top: 8px; color: var(--dark-muted); font-size: 11px; }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1!important; transform: none!important; } }

/* RESEARCH DOCUMENT */
.doc { max-width: 1140px; margin: 0 auto; padding: clamp(104px,14vh,148px) clamp(22px,5vw,48px) 60px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(30px,5vw,76px); align-items: start; }
.doc-toc { position: sticky; top: 92px; display: flex; flex-direction: column; }
.toc-h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.doc-toc a { color: var(--muted); font-size: 13px; line-height: 1.3; padding: 6px 0 6px 13px; margin-left: -1px; border-left: 2px solid var(--border); transition: color .15s, border-color .15s; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.active { color: var(--ink); border-left-color: var(--orange); font-weight: 500; }
.doc-toc a .tnum { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-right: 7px; }
.doc-toc a.active .tnum { color: var(--orange); }

.doc-body { max-width: 730px; min-width: 0; }
.doc-head { padding-bottom: 38px; margin-bottom: 46px; border-bottom: 1px solid var(--border); }
.doc-kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.doc-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--orange); }
.doc-head h1 { font-size: clamp(31px,4.4vw,50px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 16px; }
.doc-sub { font-size: clamp(17px,2vw,21px); color: var(--muted); font-weight: 500; letter-spacing: -0.012em; margin: 0 0 22px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.doc-meta span { white-space: nowrap; }
.doc-abstract { margin: 28px 0 0; padding: 0; background: none; border: none; }
.doc-abstract p { margin: 0; color: var(--muted); font-size: clamp(17px,1.8vw,19px); line-height: 1.6; font-style: italic; }
.doc-abstract strong { font-weight: 600; color: var(--ink); font-style: normal; }

/* inline citations + references */
.cite { color: var(--faint); }
.doc-refs { margin-top: 16px; }
.doc-refs .refs-intro { font-style: italic; color: var(--faint); font-size: 14px; margin: 0 0 22px; }
.doc-refs h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 26px 0 12px; }
.doc-refs ul { list-style: none; padding: 0; margin: 0 0 6px; }
.doc-refs li { font-size: 13.5px; line-height: 1.5; color: var(--muted); padding-left: 20px; text-indent: -20px; margin-bottom: 9px; }
.doc-refs li em { font-style: italic; }
.doc-refs li .flag { color: var(--faint); }

.doc-sec { margin: 0 0 50px; scroll-margin-top: 88px; }
.doc-sec .secnum { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--orange); }
.doc-sec h2 { font-size: clamp(22px,2.7vw,31px); line-height: 1.14; letter-spacing: -0.022em; font-weight: 600; margin: 7px 0 18px; max-width: none; }
.doc-body p { color: #2c2e33; font-size: 16.5px; line-height: 1.68; margin: 0 0 18px; }
.doc-body p em { font-style: italic; }
.doc-body p strong, .doc-body li strong { font-weight: 600; color: var(--ink); }

.doc-list { list-style: none; padding: 0; margin: 0 0 18px; }
.doc-list li { position: relative; padding-left: 22px; margin-bottom: 13px; color: #2c2e33; font-size: 16px; line-height: 1.62; }
.doc-list li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); }

.doc-oq { list-style: none; counter-reset: oq; padding: 0; margin: 6px 0 18px; }
.doc-oq li { counter-increment: oq; position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--border); color: #2c2e33; font-size: 16px; line-height: 1.6; }
.doc-oq li:first-child { border-top: none; }
.doc-oq li::before { content: counter(oq); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--orange); }

.doc-quotes { margin: 22px 0; display: flex; flex-direction: column; gap: 2px; }
.doc-quote { margin: 0; padding: 14px 0 14px 20px; border-left: 2px solid var(--blue-deep); }
.doc-quote p { margin: 0 0 5px; font-size: 18px; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); font-weight: 500; }
.doc-quote cite { font-style: normal; font-size: 13px; color: var(--faint); font-family: var(--mono); }

.doc-foot { margin-top: 18px; padding-top: 32px; border-top: 1px solid var(--border); }
.doc-foot h3 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.doc-foot p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0 0 12px; }
.doc-foot .sig { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 22px; }
.doc-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 30px; font-size: 14px; color: var(--muted); font-weight: 500; }
.doc-back:hover { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .ev-grid, .quote-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { justify-content: flex-start; gap: 48px; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
}
@media (max-width: 520px) { .gap-figure { flex-direction: column; } .gf-div { width: auto; height: 1px; } }

/* JUDGMENT LEDGER — results pictograph (100 sessions, four moves) */
.ledger { margin: 32px 0 30px; max-width: 540px; }
.ledger-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; max-width: 320px; margin: 0 0 20px; }
.ledger-grid .ld { aspect-ratio: 1; border-radius: 50%; background: var(--border); }
.ld.d1 { background: var(--orange); }
.ld.d2 { background: var(--teal); }
.ld.d3 { background: #c4beb0; }
.ld.d4 { background: transparent; box-shadow: inset 0 0 0 1.6px #b6b0a1; }
.ld.d5 { background: #ded6c5; }
.ledger-key { display: grid; gap: 7px; margin: 0 0 14px; }
.lk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.lk em { font-style: italic; color: var(--ink); }
.lk .d { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.lk .d.d1 { background: var(--orange); }
.lk .d.d2 { background: var(--teal); }
.lk .d.d3 { background: #c4beb0; }
.lk .d.d4 { background: transparent; box-shadow: inset 0 0 0 1.6px #b6b0a1; }
.ledger-cap { font-size: 12.5px; color: var(--faint); line-height: 1.55; max-width: 46ch; }

/* VOCABULARY STRIP (research) */
.vocab { margin: 30px 0 4px; padding: 20px 22px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.vocab-h { display: block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.vocab dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.vocab dt { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.vocab dt a { border-bottom: 1px solid var(--blue-deep); transition: border-color .18s; }
.vocab dt a:hover { border-color: var(--orange); }
.vocab dd { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 640px) { .vocab dl { grid-template-columns: 1fr; } }

/* MEMO HEAD (research) */
.memo-head { margin: 20px 0 18px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 6px; font-family: var(--mono); font-size: 13.5px; line-height: 2; color: var(--ink); }
.memo-head span { color: var(--faint); display: inline-block; min-width: 54px; }

