/* YUSI — B "Decision Architecture" · production stylesheet v1.0 (2026-10-18)
   Mobile-first. Frozen brand inputs: lockup file (unchanged), cobalt #2457FF, ink #111318, "See Further."
   UI tokens (not brand changes): navy #0B132B, cobalt tints, greys. */

@font-face { font-family: "Inter Variable"; src: url("/fonts/yusi-inter-var.woff2") format("woff2-variations"), url("/fonts/yusi-inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/yusi-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --cobalt: #2457FF;          /* frozen core colour */
  --ink: #111318;             /* frozen kit wordmark colour, used as UI ink */
  --navy: #0B132B;            /* candidate UI token */
  --cobalt-08: #EEF2FF;       /* candidate tints of cobalt */
  --cobalt-16: #DCE5FF;
  --cobalt-32: #B9CAFF;
  --stone: #F2F3F5;           /* candidate neutral ground */
  --rule: #D5D8DF;
  --mute: #4A5060;            /* 8.2:1 on white */
  --white: #FFFFFF;
  --demo: #8A4B00; --demo-bg: #FFF4DF;

  --sans: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
  --bar: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 8px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-optical-sizing: auto; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.on-dark :focus-visible, .band :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus-visible { top: 8px; }

.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.demo-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; white-space: nowrap; flex: none; background: var(--demo-bg); color: var(--demo); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }

/* ---------- notice strip (unused on production pages) ---------- */
.strip { background: var(--demo-bg); color: var(--demo); font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; line-height: 1.3; padding: 4px var(--pad-r) 4px var(--pad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad-r) 0 var(--pad); background: rgba(255,255,255,.94); border-bottom: 2px solid var(--ink); }
@supports (backdrop-filter: blur(10px)) { .bar { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); } }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 26px; width: auto; }                  /* lockup ~76px wide; whole lockup always visible */
.bar nav { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 12px; margin-right: -12px; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.menu-btn .lines { position: relative; width: 22px; height: 12px; }
.menu-btn .lines::before, .menu-btn .lines::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .24s var(--ease), top .24s var(--ease); }
.menu-btn .lines::before { top: 0; }
.menu-btn .lines::after { top: 10px; }
.menu-btn[aria-expanded="true"] .lines::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .lines::after { top: 5px; transform: rotate(-45deg); }

/* ---------- menu overlay ---------- */
.menu { position: fixed; left: 0; right: 0; bottom: 0; top: var(--bar); z-index: 25; background: var(--white); padding: 8px var(--pad-r) calc(24px + env(safe-area-inset-bottom)) var(--pad); display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s; }
.menu.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu ol { counter-reset: m; }
.menu li { counter-increment: m; border-bottom: 2px solid var(--ink); }
.menu li a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px; padding: 18px 0 16px; color: var(--ink); text-decoration: none; }
.menu li a::before { content: counter(m, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--cobalt); }
.menu li a span { font-size: 34px; font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.menu li a em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.menu .menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 6px; }
.menu .menu-foot a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.menu .menu-foot p { color: var(--mute); font-size: 14px; }
body.locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: 20px var(--pad-r) 24px var(--pad); }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.kicker i { width: 10px; height: 10px; background: var(--cobalt); display: block; }
.hero h1 { margin-top: 12px; font-size: clamp(31px, 8.6vw, 40px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 800; text-wrap: balance; }
.hero h1 b { color: var(--cobalt); font-weight: inherit; }
.hero .lede { margin-top: 12px; font-size: 15.5px; line-height: 1.45; color: var(--mute); max-width: 36em; }

/* the decision architecture instrument */
.arch { margin-top: 18px; border: 2px solid var(--ink); position: relative; }
.arch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; background: var(--ink); color: var(--white); }
.arch-head .label { white-space: nowrap; font-size: 11px; }
.hint { color: var(--mute); font-size: 10.5px; letter-spacing: 0.06em; }
.arch-head .label { color: var(--white); }
.arch-head .demo-tag { background: var(--demo-bg); }
.tiers { position: relative; }
.tiers::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--rule); }
.tiers .spine { position: absolute; left: 21px; top: 0; width: 2px; height: var(--spine, 25%); background: var(--cobalt); transition: height .5s var(--ease); }
.tier { position: relative; display: grid; grid-template-columns: 44px 1fr; padding: 9px 12px 9px 0; border-top: 2px solid var(--ink); }
.tier:first-child { border-top: 0; }
.tier .node { position: relative; z-index: 1; justify-self: center; margin-top: 2px; width: 14px; height: 14px; background: var(--white); border: 2px solid var(--ink); transition: background .3s var(--ease), border-color .3s var(--ease); }
.tier.lit .node { background: var(--cobalt); border-color: var(--cobalt); }
.tier .t-label { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.tier .t-label b { font-family: var(--mono); font-weight: 500; color: var(--cobalt); }
.tier .t-body { margin-top: 3px; font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; }
.chips { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chip { position: relative; min-height: 44px; padding: 0 8px; border: 2px solid var(--ink); background: var(--white); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 6px; transition: background .22s var(--ease), color .22s var(--ease); }
.chip .c-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.chip .c-state { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border: 1.5px solid currentColor; }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.chip[aria-pressed="true"] .c-state { background: var(--white); border-color: var(--white); }
.meter { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.meter span { height: 20px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--mute); background: var(--white); transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease); }
.meter span.on { background: var(--ink); color: var(--white); }
.meter span.on:nth-child(1) { transition-delay: 0s; }
.meter span.on:nth-child(2) { transition-delay: .08s; }
.meter span.on:nth-child(3) { transition-delay: .16s; }
.tier.decision { background: var(--navy); color: var(--white); border-top-color: var(--ink); }
.tier.decision .t-label, .tier.decision .t-label b { color: var(--white); }
.tier.decision .node { border-color: var(--white); background: var(--navy); }
.tier.decision.lit .node { background: var(--cobalt); border-color: var(--cobalt); }
.tier.decision .t-body { font-size: 18px; letter-spacing: -0.02em; }
.tier .why { margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--mute); }
.tier.decision .why { color: #C9D0E2; }
.swap { transition: opacity .2s var(--ease); }
.swap.fading { opacity: 0; }
.arch-foot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--mute); }

.actions { display: grid; grid-template-columns: 1fr auto; border-top: 2px solid var(--ink); }
.caveat { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.btn-solid { background: var(--cobalt); color: var(--white); }
.btn-solid:hover { background: #1C47D6; }
.btn-line { color: var(--ink); background: var(--white); border-left: 2px solid var(--ink); }
.btn-line:hover { background: var(--cobalt-08); }
.btn .arr { font-family: var(--mono); font-weight: 500; }

/* ---------- section scaffolding ---------- */
.sec { padding: 40px var(--pad-r) 40px var(--pad); }
.sec-head { display: grid; gap: 10px; margin-bottom: 20px; }
.sec-head .label { color: var(--cobalt); }
.sec-head h2 { font-size: 30px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.sec-head p { color: var(--mute); font-size: 15.5px; line-height: 1.45; }

/* method — the four stages as building blocks, cobalt intensity rises toward the decision */
.stack { display: grid; gap: 6px; }
.stage { position: relative; padding: 18px 16px 18px; border: 2px solid var(--ink); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; align-items: start; }
.stage .num { grid-row: span 3; font-size: 52px; line-height: .82; font-weight: 800; letter-spacing: -0.05em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.stage h3 { font-size: 21px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 780; }
.stage p { font-size: 15px; line-height: 1.45; color: var(--mute); }
.stage .out { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; line-height: 1.45; color: var(--ink); padding-top: 6px; border-top: 2px solid currentColor; }
.stage:nth-child(2) { background: var(--cobalt-08); }
.stage:nth-child(3) { background: var(--cobalt-16); }
.stage:nth-child(4) { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.stage:nth-child(4) .num { color: var(--white); }
.stage:nth-child(4) p { color: #E6ECFF; }
.stage:nth-child(4) .out { color: var(--white); }

/* domains — modular tiles */
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dom { border: 2px solid var(--ink); padding: 14px 14px 16px; display: grid; align-content: space-between; gap: 18px; min-height: 148px; background: var(--white); }
.dom:first-child { grid-column: 1 / -1; min-height: 132px; background: var(--stone); }
.dom h3 { font-size: 26px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.dom p { font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.dom .label { color: var(--cobalt); }

/* research — decision records */
.records { display: grid; gap: 10px; }
.record { border: 2px solid var(--ink); background: var(--white); }
.record a.r-link { display: block; color: inherit; text-decoration: none; }
.r-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 2px solid var(--ink); }
.r-top .label { color: var(--ink); }
.r-q { padding: 12px 12px 4px; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin-top: 12px; }
.r-grid > div { padding: 10px 12px 12px; display: grid; gap: 6px; align-content: start; }
.r-grid > div + div { border-left: 2px solid var(--ink); }
.r-grid .label { color: var(--mute); font-size: 10.5px; }
.r-grid .v { font-size: 14px; line-height: 1.35; font-weight: 600; }
.mini-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.mini-meter i { height: 10px; border: 2px solid var(--ink); }
.mini-meter i.on { background: var(--ink); }
.r-go { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 12px; border-top: 2px solid var(--ink); font-weight: 700; color: var(--cobalt); }
.record a.r-link:hover .r-go { background: var(--cobalt-08); }

/* standard band */
.band { background: var(--cobalt); color: var(--white); padding: 44px var(--pad-r) 44px var(--pad); }
.band .label { color: var(--white); }
.band .big { margin-top: 14px; font-size: 40px; line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
.band .big span { display: block; }
.band .big span:last-child { color: var(--navy); }
.band p.note { margin-top: 18px; font-size: 15.5px; line-height: 1.45; color: #E6ECFF; max-width: 34em; }

/* contact + footer */
.contact { border-top: 2px solid var(--ink); }
.contact .mail { margin-top: 4px; display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 16px; border: 2px solid var(--ink); font-size: 18px; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.contact .mail:hover { background: var(--cobalt-08); }
.foot { border-top: 2px solid var(--ink); padding: 28px var(--pad-r) calc(28px + env(safe-area-inset-bottom)) var(--pad); display: grid; gap: 18px; }
.foot .brand img { height: 30px; }
.foot .line { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.foot ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.foot ul a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot .legal { font-size: 13px; line-height: 1.5; color: var(--mute); }

/* ---------- reveal on scroll (only when JS + motion allowed) ---------- */
.motion .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }

/* ---------- brief reading view ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.read { padding: 8px var(--pad-r) 40px var(--pad); }
.read h1 { margin-top: 10px; font-size: 32px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.read .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.rec { margin-top: 18px; border: 2px solid var(--ink); }
.rec > div { display: grid; grid-template-columns: 30px 1fr; gap: 0; border-top: 2px solid var(--ink); }
.rec > div:first-child { border-top: 0; }
.rec .n { font-family: var(--mono); font-size: 11px; color: var(--cobalt); padding: 12px 0 0 10px; }
.rec .c { padding: 10px 12px 12px 0; display: grid; gap: 4px; }
.rec .c .label { color: var(--mute); font-size: 10.5px; }
.rec .c p { font-size: 16px; line-height: 1.4; font-weight: 600; }
.rec > div.view { background: var(--cobalt); color: var(--white); }
.rec > div.view .n, .rec > div.view .label { color: #DCE5FF; }
.read h2 { margin-top: 30px; font-size: 22px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 780; display: flex; align-items: baseline; gap: 10px; }
.read h2 b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--cobalt); }
.read .body p { margin-top: 12px; font-size: 17.5px; line-height: 1.6; color: #22262F; }
.claim { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.ev { margin-top: 12px; display: grid; gap: 6px; }
.ev li { border: 2px solid var(--ink); padding: 10px 12px; display: grid; gap: 4px; }
.ev li b { font-size: 15px; letter-spacing: -0.01em; }
.ev li span { font-size: 14px; line-height: 1.4; color: var(--mute); }
.opt { margin-top: 12px; display: grid; gap: 6px; }
.opt li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--ink); padding: 10px 12px; font-size: 15px; font-weight: 600; }
.opt li.pick { background: var(--navy); color: var(--white); border-color: var(--navy); }
.opt li em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.src { margin-top: 12px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.src li { display: grid; grid-template-columns: 26px 1fr; }
.src li b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

/* ---------- tablet / desktop ---------- */
@media (min-width: 768px) {
  :root { --pad: 40px; --pad-r: 40px; --bar: 64px; }
  .bar nav { display: flex; gap: 6px; }
  .bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
  .bar nav a b { color: var(--cobalt); font-weight: 500; margin-right: 6px; }
  .bar nav a:hover { background: var(--cobalt-08); }
  .menu-btn, .menu { display: none; }
  .brand img { height: 30px; }
  .sec-head h2 { font-size: 44px; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dom:first-child { grid-column: auto; min-height: 148px; }
  .records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .big { font-size: 64px; }
  .read { max-width: 760px; margin: 0 auto; }
}
@media (min-width: 1100px) {
  :root { --pad: max(56px, calc((100vw - 1328px) / 2)); --pad-r: max(56px, calc((100vw - 1328px) / 2)); }
  .hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 64px; }
  .hero .kicker { grid-row: 1; } .hero h1 { grid-row: 2; } .hero .lede { grid-row: 3; }
  .hero h1 { font-size: 76px; line-height: .98; }
  .hero .lede { font-size: 19px; margin-top: 22px; }
  .hero .arch { margin-top: 0; grid-row: 1 / span 4; grid-column: 2; }
  .hero .caveat { grid-column: 2; grid-row: 5; }
  .tier .t-body { font-size: 16px; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; column-gap: 56px; margin-bottom: 32px; }
  .sec-head .label { grid-column: 1 / -1; }
  .stack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stage { grid-template-columns: 1fr; min-height: 340px; align-content: start; }
  .stage .num { grid-row: auto; font-size: 88px; margin-bottom: 18px; }
  .stage .out { margin-top: auto; }
  .band .big { font-size: 96px; }
  .foot { grid-template-columns: 2fr 2fr 3fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   v1.0 site components (inner pages, navigation, content blocks)
   ========================================================================== */

/* nav: 5 items, current page marked */
.bar nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cobalt); }
.menu li a[aria-current="page"] span { color: var(--cobalt); }
.menu li a span { font-size: 30px; }
.menu li a { padding: 15px 0 13px; }

/* page header for inner pages */
.ph { padding: 18px var(--pad-r) 30px var(--pad); border-bottom: 2px solid var(--ink); }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.crumb a { color: var(--ink); text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.crumb a:hover { color: var(--cobalt); }
.ph h1 { margin-top: 4px; font-size: clamp(34px, 9.6vw, 44px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 800; text-wrap: balance; }
.ph h1 b { color: var(--cobalt); font-weight: inherit; }
.ph .lede { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--mute); max-width: 38em; }
.ph .kicker { margin-top: 2px; }

/* running text */
.prose { display: grid; gap: 14px; max-width: 40em; }
.prose p { font-size: 17px; line-height: 1.6; color: #22262F; }
.prose p strong { color: var(--ink); }
.sec.tight { padding-top: 8px; }
.sec + .sec.ruled, .ruled { border-top: 2px solid var(--ink); }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 16px; font-weight: 700; color: var(--cobalt); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more .arr { font-family: var(--mono); font-weight: 500; }

/* capability rows */
.caps { border-bottom: 2px solid var(--ink); }
.cap { display: grid; grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; padding: 18px 0 20px; border-top: 2px solid var(--ink); }
.cap .n { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--cobalt); padding-top: 7px; }
.cap h3 { font-size: 23px; line-height: 1.1; letter-spacing: -0.028em; font-weight: 800; }
.cap p { grid-column: 2; font-size: 15.5px; line-height: 1.5; color: var(--mute); }
.cap .tags { grid-column: 2; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; line-height: 1.5; color: var(--ink); }

/* domain tiles as links */
a.dom { color: var(--ink); text-decoration: none; transition: background .2s var(--ease); }
a.dom:hover { background: var(--cobalt-08); }
a.dom:first-child:hover { background: var(--cobalt-08); }
.dom .go { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); }

/* numbered steps */
.steps { counter-reset: s; display: grid; gap: 0; border-bottom: 2px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 16px 0 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); width: 28px; height: 28px; display: grid; place-items: center; background: var(--cobalt); color: var(--white); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.steps h3 { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 780; }
.steps p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--mute); }

/* plain bordered list (evidence, principles) */
.ev.plain li { border-color: var(--ink); }
.ev li em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); }

/* question list */
.qs { display: grid; gap: 6px; }
.qs li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; padding: 14px 14px 14px 10px; border: 2px solid var(--ink); background: var(--white); font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -0.015em; }
.qs li::before { content: "?"; font-family: var(--mono); font-weight: 500; color: var(--cobalt); font-size: 16px; }

/* topic rows */
.topics { border-bottom: 2px solid var(--ink); }
.topics li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 14px 0 16px; border-top: 2px solid var(--ink); }
.topics li b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--cobalt); padding-top: 4px; }
.topics h3 { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 780; }
.topics p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--mute); }

/* two-up blocks on domain pages */
.split { display: grid; gap: 28px; }
.split h2.sub, h2.sub { font-size: 24px; line-height: 1.1; letter-spacing: -0.028em; font-weight: 800; margin-bottom: 14px; }

/* formats (Brief / Report / Outlook) */
.formats { display: grid; gap: 8px; }
.fmt { border: 2px solid var(--ink); padding: 16px 16px 18px; display: grid; gap: 10px; align-content: start; background: var(--white); }
.fmt:nth-child(2) { background: var(--cobalt-08); }
.fmt:nth-child(3) { background: var(--cobalt-16); }
.fmt .label { color: var(--cobalt); }
.fmt h3 { font-size: 26px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.fmt p { font-size: 15px; line-height: 1.5; color: var(--mute); }
.fmt dl { margin: 4px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.fmt dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.fmt dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.fmt dd { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; }

/* publishing status */
.status { border: 2px solid var(--cobalt); padding: 14px 16px; display: grid; gap: 6px; }
.status .label { color: var(--cobalt); }
.status p { font-size: 15.5px; line-height: 1.5; }

/* decision record anatomy (reuses .rec) */
.rec.anat .c p { font-weight: 500; font-size: 15px; color: var(--mute); }
.rec.anat .c strong { display: block; font-size: 17px; font-weight: 750; color: var(--ink); letter-spacing: -0.01em; }
.rec.anat > div.view .c p { color: #E6ECFF; }
.rec.anat > div.view .c strong { color: var(--white); }

/* confidence scale */
.scale { display: grid; gap: 0; border: 2px solid var(--ink); }
.scale > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 14px 14px 16px; border-top: 2px solid var(--ink); }
.scale > div:first-child { border-top: 0; }
.scale .mini-meter { margin-top: 4px; }
.scale h3 { font-size: 18px; line-height: 1.2; font-weight: 780; letter-spacing: -0.02em; }
.scale p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--mute); }

/* fact / inference / judgement labels */
.claims { display: grid; gap: 6px; }
.claims li { border: 2px solid var(--ink); padding: 12px 14px; display: grid; gap: 4px; }
.claims li .claim { margin: 0; }
.claims li p { font-size: 15px; line-height: 1.5; color: var(--mute); }

/* method page stages */
.mstage { padding: 34px var(--pad-r) 36px var(--pad); border-top: 2px solid var(--ink); display: grid; gap: 16px; }
.mstage .top { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: end; }
.mstage .num { font-size: 64px; line-height: .8; font-weight: 800; letter-spacing: -0.05em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.mstage h2 { font-size: 30px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.mstage .tag { font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -0.015em; max-width: 34em; }
.mstage ul.do { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.mstage ul.do li { padding: 11px 0 12px 22px; border-bottom: 1px solid var(--rule); position: relative; font-size: 15.5px; line-height: 1.5; color: #22262F; }
.mstage ul.do li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; background: var(--cobalt); }
.mstage .out { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; padding: 10px 12px; background: var(--ink); color: var(--white); justify-self: start; }
.mstage.final { background: var(--cobalt); color: var(--white); border-top-color: var(--cobalt); }
.mstage.final .num { color: var(--white); }
.mstage.final ul.do { border-top-color: var(--white); }
.mstage.final ul.do li { color: #F0F3FF; border-bottom-color: rgba(255,255,255,.35); }
.mstage.final ul.do li::before { background: var(--white); }
.mstage.final .out { background: var(--navy); }

/* key facts */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 2px solid var(--ink); }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 650; }
.facts dd a { color: var(--ink); text-underline-offset: 3px; }

/* principles */
.princ { display: grid; gap: 6px; }
.princ li { border: 2px solid var(--ink); padding: 14px 16px 16px; display: grid; gap: 4px; }
.princ h3 { font-size: 20px; line-height: 1.15; letter-spacing: -0.022em; font-weight: 800; }
.princ p { font-size: 15px; line-height: 1.5; color: var(--mute); }

/* closing call to action */
.cta-band { background: var(--navy); color: var(--white); padding: 40px var(--pad-r) 44px var(--pad); display: grid; gap: 14px; }
.cta-band .label { color: var(--cobalt-32); }
.cta-band h2 { font-size: 30px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; max-width: 18em; }
.cta-band p { font-size: 15.5px; line-height: 1.5; color: #C9D0E2; max-width: 34em; }
.cta-band .btn { justify-self: start; margin-top: 6px; min-width: min(100%, 320px); }
.cta-band :focus-visible { outline-color: var(--white); }

/* contact page */
.mail-big { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; background: var(--cobalt); color: var(--white); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.mail-big:hover { background: #1C47D6; }
.mail-big .arr { font-family: var(--mono); font-weight: 500; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.copy-btn { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--white); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { background: var(--cobalt-08); }
.types { display: grid; gap: 6px; }
.types li { border: 2px solid var(--ink); padding: 14px 16px; display: grid; gap: 4px; }
.types h3 { font-size: 19px; font-weight: 780; letter-spacing: -0.02em; }
.types p { font-size: 15px; line-height: 1.5; color: var(--mute); }
.types code { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--stone); padding: 1px 6px; }

/* external links row */
.ext { display: flex; flex-wrap: wrap; gap: 6px; }
.ext a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 650; }
.ext a:hover { background: var(--cobalt-08); }
.ext a .arr { font-family: var(--mono); color: var(--cobalt); }

/* footer v1 */
.foot nav ul, .foot ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.foot .fcol .label { color: var(--mute); margin-bottom: 4px; }
.foot .legal a { color: var(--mute); }

/* ---------- breakpoints ---------- */
@media (min-width: 768px) and (max-width: 1099px) {
  .bar nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { display: flex; }
}
@media (min-width: 768px) {
  .ph { padding-top: 28px; padding-bottom: 44px; }
  .ph h1 { font-size: 56px; }
  .ph .lede { font-size: 19px; }
  .cap { grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr); column-gap: 24px; }
  .cap h3 { grid-column: 2; }
  .cap p { grid-column: 3; grid-row: 1; }
  .cap .tags { grid-column: 3; }
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .princ, .types, .claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: 220px minmax(0, 1fr); align-items: baseline; }
  .mstage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
  .mstage .top, .mstage .tag { grid-column: 1; }
  .mstage ul.do, .mstage .out { grid-column: 2; }
  .mstage ul.do { grid-row: 1 / span 3; }
  .mstage .num { font-size: 96px; }
  .mstage h2 { font-size: 40px; }
  .cta-band h2 { font-size: 44px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 1100px) {
  .bar nav { display: flex; }
  .menu-btn, .menu { display: none; }
  .ph h1 { font-size: 76px; max-width: 14em; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .princ { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot { grid-template-columns: 3fr 2fr 2fr 3fr; }
}

/* approach: the chain Q → E → I → D */
.chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 20px var(--pad-r) 28px var(--pad); }
.chain li { border: 2px solid var(--ink); padding: 10px 12px 12px; display: grid; gap: 4px; }
.chain li b { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--cobalt); }
.chain li span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.chain li:nth-child(2) { background: var(--cobalt-08); }
.chain li:nth-child(3) { background: var(--cobalt-16); }
.chain li:nth-child(4) { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.chain li:nth-child(4) b { color: var(--white); }
@media (min-width: 768px) { .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); } .chain li b { font-size: 48px; } }
