/* Working Papers, drawn.
   Evidence is rebuilt as original figures from verified account data; interpretation sits beside it.
   Type: one family (Archivo). Normal width is Johnny's voice and the figures' values; condensed width is
   labels, axes and source lines.
   Color: a cool light ground. Figures use three tones with one meaning each:
     ink   = the documented current value
     grey  = the comparison or context value
     teal  = the signal: the change, the client's position, or the gap worth pointing at.
   Teal never means "good"; direction is carried by position and sign. Palette validated for CVD separation
   (teal vs grey ΔE ≥ 16, teal vs ink ΔE ≥ 36); every value is direct-labeled, which covers grey's contrast. */
:root {
  --ground: #E2E6E6;
  --raised: #ECEFEF;
  --ink: #111617;
  --ink-2: #445052;
  --ink-3: #5B6769;
  --rule: #BAC3C3;
  --rule-strong: #8C989A;
  --sig: #007FA6;
  --ctx: #97A3A5;
  --wash: rgba(0, 127, 166, .12);
  --on-ink: #F2F5F5;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --narrow: 78%;

  --fs-name: clamp(2.1rem, 1.55rem + 2.4vw, 3.4rem);
  --fs-position: clamp(1.3rem, 1.1rem + .9vw, 1.8rem);
  --fs-h2: clamp(1.55rem, 1.25rem + 1.25vw, 2.2rem);
  --fs-h3: clamp(1.12rem, 1.04rem + .35vw, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-note: .975rem;
  --fs-src: .84rem;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111617;
    --raised: #182022;
    --ink: #E1E7E7;
    --ink-2: #A6B2B3;
    --ink-3: #889495;
    --rule: #2A3436;
    --rule-strong: #4C595B;
    --sig: #1C9AC0;
    --ctx: #55626A;
    --wash: rgba(28, 154, 192, .16);
    --on-ink: #111617;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111617;
  --raised: #182022;
  --ink: #E1E7E7;
  --ink-2: #A6B2B3;
  --ink-3: #889495;
  --rule: #2A3436;
  --rule-strong: #4C595B;
  --sig: #1C9AC0;
  --ctx: #55626A;
  --wash: rgba(28, 154, 192, .16);
  --on-ink: #111617;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; }
.skip:focus { left: 12px; }
.nar { font-stretch: var(--narrow); }
.muted { color: var(--ink-2); }
.prose { display: grid; gap: 1em; max-width: 66ch; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.h2 { font-size: var(--fs-h2); font-weight: 640; line-height: 1.12; letter-spacing: -.018em; }
.h3 { font-size: var(--fs-h3); font-weight: 640; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: .7em 1.15em;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: transparent; color: var(--ink-2); border-color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.topbar.is-scrolled { border-bottom-color: var(--rule); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.wordmark { font-weight: 680; font-size: 1.08rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); font-weight: 500; padding-block: 6px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
@media (max-width: 520px) {
  .nav .nav__contact { display: none; }
  .nav { gap: 16px; }
  .nav a { font-size: .9rem; }
}

/* ---------- Home: opener ---------- */
.opener { padding-block: clamp(36px, 5.5vw, 76px) clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.opener h1 { font-size: var(--fs-name); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.position { font-size: var(--fs-position); line-height: 1.28; font-weight: 420; letter-spacing: -.012em; max-width: 30ch; }
.cred { display: flex; flex-wrap: wrap; gap: 4px 28px; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 640px) {
  .opener { padding-top: 24px; gap: 14px; }
  .cred { display: grid; gap: 2px; font-size: .93rem; line-height: 1.4; }
}

/* =========================================================
   Figure family
   ========================================================= */
.fig { display: grid; gap: 14px; min-width: 0; }
.fig__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-stretch: var(--narrow); font-size: var(--fs-src); color: var(--ink-3); }
.fig__meta::before { content: ""; width: 28px; height: 2px; background: var(--ink); align-self: center; }
.fig__meta b { color: var(--ink); font-weight: 700; }
.fig__src { font-stretch: var(--narrow); font-size: var(--fs-src); line-height: 1.45; color: var(--ink-3); max-width: 80ch; }

/* Typographic lead for a two-value figure: 92,147 → 136,642 */
.lede { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.lede__vals { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); font-weight: 680; letter-spacing: -.025em; line-height: 1.05; }
.lede__vals .from { color: var(--ink-3); font-weight: 500; }
.lede__vals .arr { color: var(--ink-3); font-weight: 400; padding-inline: .15em; }
.lede__delta { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 1.02rem; }
.lede__delta small { font-stretch: var(--narrow); font-weight: 500; color: var(--ink-3); font-size: .86rem; }
.sw { display: inline-block; width: 18px; height: 4px; background: var(--sig); border-radius: 2px; flex: none; }
.sw--dot { width: 10px; height: 10px; border-radius: 50%; }
.sw--ring { width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--ctx); }
.sw--ink { background: var(--ink); }

/* Dumbbell on a zero-based scale: hollow grey = prior, solid ink = current, teal segment = change */
.db { display: grid; gap: 4px; }
.db__name { font-weight: 650; font-size: .98rem; }
.db__plot { position: relative; height: 64px; margin-inline: 6px; }
.db__track { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--rule-strong); }
.db__seg { position: absolute; top: 28px; height: 5px; background: var(--sig); border-radius: 3px; transition: box-shadow .12s ease; }
.db__dot { position: absolute; top: 24px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ground); }
.db__dot--prior { background: var(--ground); box-shadow: inset 0 0 0 2px var(--ctx), 0 0 0 2px var(--ground); }
.db__dot--cur { background: var(--ink); }
.db__lab { position: absolute; transform: translateX(-100%); white-space: nowrap; line-height: 1.2; text-align: right; font-stretch: var(--narrow); font-size: .82rem; }
.db__lab--cur { top: 2px; margin-left: 7px; color: var(--ink); font-weight: 650; }
.db__lab--prior { top: 42px; margin-left: -9px; color: var(--ink-3); }
.db__axis { position: relative; height: 16px; margin-inline: 6px; font-stretch: var(--narrow); font-size: .74rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.db__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.db__axis span:first-child { transform: none; }
.db__axis span:last-child { transform: translateX(-100%); }
.db__axis::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 1px; }

/* Diverging percentage bars around one zero line */
.dv { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); column-gap: 14px; row-gap: 0; }
.dv__group { grid-column: 1 / -1; font-stretch: var(--narrow); font-size: .78rem; color: var(--ink-3); padding-top: 12px; }
.dv__group:first-child { padding-top: 0; }
.dv__label { display: flex; flex-direction: column; justify-content: center; min-height: 40px; line-height: 1.2; }
.dv__label b { font-weight: 650; font-size: .96rem; }
.dv__label span { font-stretch: var(--narrow); font-size: .8rem; color: var(--ink-3); }
.dv__plot { position: relative; min-height: 40px; }
.dv__plot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink-2); }
.dv__bar { position: absolute; top: 50%; height: 11px; margin-top: -5.5px; background: var(--ink); transition: box-shadow .12s ease; }
.dv__bar--pos { left: 50%; border-radius: 0 3px 3px 0; }
.dv__bar--neg { right: 50%; border-radius: 3px 0 0 3px; background: var(--sig); }
.dv__bar--ctx { background: var(--ctx); }
.dv__val { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 650; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Local pack: three position slots per market, review counts on one shared scale */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.pack { display: grid; gap: 8px; min-width: 0; }
.pack__head { display: grid; gap: 0; }
.pack__head b { font-weight: 680; font-size: 1rem; }
.pack__head span { font-stretch: var(--narrow); font-size: .86rem; color: var(--ink-2); }
.pack__cols { display: grid; grid-template-columns: 2.4rem minmax(0, 1.1fr) minmax(0, 1fr) 2.4rem; gap: 0 10px; font-stretch: var(--narrow); font-size: .74rem; color: var(--ink-3); padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.pack__cols span:nth-child(3) { grid-column: 3 / 5; }
.slot { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1.1fr) minmax(0, 1fr) 2.4rem; gap: 0 10px; align-items: center; min-height: 46px; border-bottom: 1px solid var(--rule); transition: background-color .12s ease; }
.slot__pos { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink-3); line-height: 1; padding-left: 10px; }
.slot__name { font-size: .95rem; color: var(--ink-2); line-height: 1.25; min-width: 0; }
.slot__rev { position: relative; height: 22px; }
.slot__bar { position: absolute; left: 0; top: 50%; height: 9px; margin-top: -4.5px; background: var(--ctx); border-radius: 0 3px 3px 0; }
.slot__n { text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.slot--client { background: var(--wash); }
.slot--client::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sig); }
.slot--client .slot__pos { color: var(--ink); }
.slot--client .slot__name { color: var(--ink); font-weight: 650; }
.slot--client .slot__bar { background: var(--ink); }
.slot--client .slot__n { color: var(--ink); font-weight: 650; }
@media (max-width: 760px) { .packs { grid-template-columns: minmax(0, 1fr); } }

/* Big single value + index: 472 */
.hero-val { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 20px; }
.hero-val__n { font-size: clamp(3.4rem, 2.4rem + 4vw, 5.4rem); font-weight: 700; letter-spacing: -.045em; line-height: .9; }
.hero-val__lab { display: grid; gap: 2px; padding-bottom: 6px; }
.hero-val__lab b { font-weight: 650; }
.hero-val__lab span { font-stretch: var(--narrow); color: var(--ink-3); font-size: .9rem; }
.hero-val__delta { font-size: 1.05rem; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; }
.hero-val__delta::before { content: ""; width: 18px; height: 4px; background: var(--sig); border-radius: 2px; align-self: center; }
.hero-val__delta b { color: var(--ink); font-weight: 680; }

/* Coverage strip: which layers of the reporting model the month's data could reach */
.cov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.cov__seg { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cov__bar { height: 14px; border-radius: 2px; transition: box-shadow .12s ease; }
.cov__seg--in .cov__bar { background: var(--ink); }
.cov__seg--out .cov__bar { box-shadow: inset 0 0 0 1.5px var(--ctx); }
.cov__seg--gap .cov__bar { box-shadow: inset 0 0 0 2px var(--sig); }
.cov__name { font-weight: 650; font-size: .86rem; line-height: 1.2; }
.cov__state { font-stretch: var(--narrow); font-size: .78rem; line-height: 1.25; color: var(--ink-3); }
.cov__seg--gap .cov__state { color: var(--ink); font-weight: 650; }
@media (max-width: 520px) {
  .cov { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cov__seg { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .cov__name { font-size: .9rem; }
}
.cov--rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
.cov--rows .cov__seg { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.cov--rows .cov__name { font-size: .95rem; }
.cov--rows .cov__state { font-size: .84rem; text-align: right; }

/* Process rail: a real sequence, with a return path */
.rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 14px; padding-top: 22px; }
.rail::before { content: ""; position: absolute; left: 5px; right: 5px; top: 5px; height: 2px; background: var(--ink); }
.rail li { position: relative; display: grid; gap: 4px; align-content: start; padding-right: 6px; }
.rail li::before { content: ""; position: absolute; left: 0; top: -22px; width: 12px; height: 12px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--ink); }
.rail li:first-child::before { background: var(--ink); }
.rail b { font-weight: 680; font-size: 1rem; line-height: 1.2; }
.rail span { font-stretch: var(--narrow); font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.rail__return { position: relative; margin: 14px 5px 0; height: 30px; border: 1.5px solid var(--ink-3); border-top: 0; }
.rail__return::before { content: ""; position: absolute; left: -6.5px; top: -9px; border: 5.5px solid transparent; border-bottom: 8px solid var(--ink-3); border-top: 0; }
.rail__return span { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: var(--ground); padding: 0 10px; font-stretch: var(--narrow); font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.rail__next { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rail__next b { font-weight: 680; }
.rail__next span { color: var(--ink-2); }
@media (max-width: 760px) {
  .rail { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 0; padding-left: 26px; }
  .rail::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .rail li::before { left: -26px; top: 4px; }
  .rail__return { display: none; }
}

/* Notes beside a figure */
.notes { display: grid; gap: 14px; align-content: start; min-width: 0; }
.note { display: grid; gap: 2px; padding: 6px 10px 6px 12px; border-left: 2px solid var(--rule); font-size: var(--fs-note); line-height: 1.5; transition: background-color .12s ease, border-color .12s ease; }
.note__type { font-stretch: var(--narrow); font-weight: 700; font-size: .86rem; color: var(--ink); }
.note p { color: var(--ink-2); }
.note--action { border-left-color: var(--ink); }
.note.is-lit { background: var(--wash); border-left-color: var(--sig); }
[data-mark].is-lit { box-shadow: 0 0 0 3px var(--wash); }
.slot.is-lit { background: color-mix(in srgb, var(--sig) 20%, transparent); }

/* ---------- Home: signature composition ---------- */
.wp { padding-block: clamp(16px, 2.5vw, 32px) clamp(64px, 8vw, 112px); }
.wp__head { display: grid; gap: 12px; padding-top: clamp(22px, 2.6vw, 30px); border-top: 2px solid var(--ink); margin-bottom: clamp(28px, 3.4vw, 44px); }
.wp__head > * { max-width: 72ch; }
.wp__head .h2 { max-width: 26ch; }
.wp__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 3.4vw, 48px); margin-bottom: 18px; }
.wp__rail li { position: relative; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.wp__rail li:not(:last-child)::after { content: "→"; position: absolute; right: calc(-1 * clamp(28px, 3.4vw, 48px) / 2 - .5em); bottom: -0.78em; color: var(--ink); font-weight: 400; background: var(--ground); padding-inline: 4px; }
.wp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 18px clamp(28px, 3.4vw, 48px); }
.panel { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; gap: 18px; }
.panel__q { font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.panel__body { display: grid; gap: 18px; align-content: start; min-width: 0; }
.panel__read { display: grid; gap: 10px; align-content: start; font-size: .97rem; line-height: 1.5; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--rule); }
.panel__read b { color: var(--ink); font-weight: 700; font-stretch: var(--narrow); }
.panel .packs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.panel .dv { grid-template-columns: minmax(0, 6.6rem) minmax(0, 1fr); }
.focus2 { display: grid; gap: 8px; }
.focus2__h { font-stretch: var(--narrow); font-size: .82rem; color: var(--ink-3); }
.focus2 li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: .95rem; line-height: 1.35; }
.focus2 li::before { content: ""; width: 10px; height: 10px; margin-top: .3em; background: var(--ink); }
.focus2 li span { display: block; font-stretch: var(--narrow); font-size: .84rem; color: var(--ink-3); }
.wp__src { margin-top: clamp(28px, 3.4vw, 44px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font-stretch: var(--narrow); font-size: .84rem; color: var(--ink-3); }
.wp__src a { color: var(--ink-2); font-weight: 600; }
@media (max-width: 1100px) {
  .wp__rail { display: none; }
  .wp__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 52px; }
  .panel { grid-row: auto; grid-template-rows: none; }
  .panel__q::before { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; content: attr(data-kicker); }
}

/* ---------- Home: sections ---------- */
.block { padding-block: clamp(56px, 7vw, 100px); }
.block__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); max-width: 70ch; }
#operate .block__head { margin-bottom: 0; }
.lenses { border-top: 1px solid var(--ink); }
.lens > a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: 6px clamp(18px, 3vw, 40px); padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; }
.lens h3, .lens h4 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.008em; }
.lens > a:hover h3, .lens > a:hover h4 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.lens p { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.lens .exrefs { font-stretch: var(--narrow); font-size: .86rem; color: var(--ink-3); text-align: right; }
.lenses + .actions { margin-top: 28px; }
@media (max-width: 760px) {
  .lens > a { grid-template-columns: minmax(0, 1fr); }
  .lens .exrefs { text-align: left; }
}
.range { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px clamp(28px, 5vw, 72px); }
.range h3 { font-size: 1rem; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.xplist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.xplist b { font-weight: 650; }
.xplist span { color: var(--ink-2); font-stretch: var(--narrow); font-size: .95rem; line-height: 1.45; }
.areas li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.range__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-weight: 600; }
@media (max-width: 820px) {
  .range { grid-template-columns: minmax(0, 1fr); }
  .xplist li { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(48px, 6vw, 80px); background: var(--raised); border-top: 1px solid var(--rule); }
.contact__grid { display: grid; gap: 14px; }
.contact__side { display: grid; gap: 14px; min-width: 0; max-width: 560px; margin-top: 8px; }
.emailbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--rule-strong); background: var(--ground); }
.emailbox code { font-family: var(--font); font-size: 1.02rem; font-weight: 500; user-select: all; overflow-wrap: anywhere; flex: 1 1 200px; }
.copybtn { border: 1px solid var(--rule-strong); background: transparent; border-radius: 2px; padding: .3em .8em; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 34px; }
.copybtn:hover { border-color: var(--ink); }
.footer { padding-block: 24px; background: var(--raised); border-top: 1px solid var(--rule); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .875rem; color: var(--ink-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* ---------- Case study ---------- */
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.cs-head { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 48px); display: grid; gap: 16px; }
.cs-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
.cs-head__src { font-size: 1.05rem; color: var(--ink-2); }
.cs-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px); margin-top: 12px; align-items: start; }
.key { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; font-stretch: var(--narrow); font-size: .9rem; line-height: 1.4; color: var(--ink-2); align-content: start; padding: 16px 18px; background: var(--raised); }
.key dt { font-weight: 700; color: var(--ink); }
.key__hint { grid-column: 1 / -1; color: var(--ink-3); margin-top: 6px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) { .cs-intro { grid-template-columns: minmax(0, 1fr); } }

.cs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.index { padding-top: 32px; }
.index nav { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; }
.index__lens { display: grid; gap: 2px; }
.index__lens > a { font-weight: 680; font-size: .9rem; text-decoration: none; }
.index__lens ol a { display: block; font-stretch: var(--narrow); font-size: .86rem; line-height: 1.3; color: var(--ink-3); text-decoration: none; padding: 3px 0; }
.index a:hover { color: var(--ink); }
.index a.is-active { color: var(--ink); font-weight: 680; }
.cs-main { min-width: 0; }
@media (max-width: 1100px) {
  .cs { grid-template-columns: minmax(0, 1fr); }
  .index { display: none; }
}
.lenssec { padding-block: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); border-top: 2px solid var(--ink); }
.lenssec__head { display: grid; gap: 12px; max-width: 68ch; margin-bottom: clamp(36px, 4vw, 56px); }
.obs { display: grid; gap: 18px; margin-bottom: clamp(56px, 6.5vw, 92px); }
.obs__head { display: grid; gap: 8px; max-width: 66ch; }
.obs__head p { color: var(--ink-2); }
.obs__body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px clamp(24px, 3vw, 44px); align-items: start; }
.obs__body--wide { grid-template-columns: minmax(0, 1fr); }
.obs__body--wide .notes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
@media (max-width: 860px) { .obs__body { grid-template-columns: minmax(0, 1fr); } }
.notes__group { display: grid; gap: 14px; align-content: start; }
.notes__group h4 { font-size: .95rem; font-weight: 700; }

/* Memo: the logic of a client insight memo, set as information design */
.memo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 28px clamp(28px, 4vw, 56px); padding-top: 22px; border-top: 2px solid var(--ink); }
.memo__meta { display: grid; gap: 6px; align-content: start; }
.memo__month { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.memo__client { font-weight: 650; font-size: 1.05rem; }
.memo__by { color: var(--ink-2); font-size: .95rem; line-height: 1.45; margin-top: 6px; }
.memo__label { font-stretch: var(--narrow); font-size: .84rem; color: var(--ink-3); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.memo__body { display: grid; min-width: 0; }
.memo__row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 7fr); gap: 10px clamp(18px, 3vw, 36px); padding: 22px 0; border-bottom: 1px solid var(--rule); }
.memo__row:first-child { padding-top: 0; }
.memo__row:last-child { border-bottom: 0; }
.memo__h { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.memo__c { display: grid; gap: 14px; min-width: 0; }
.memo__c p { font-size: 1.05rem; line-height: 1.55; }
.memo__c p.big { font-size: clamp(1.12rem, 1.02rem + .4vw, 1.3rem); line-height: 1.45; letter-spacing: -.005em; }
.memo__c p b { font-weight: 680; }
.memo__tag { font-stretch: var(--narrow); font-size: .86rem; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.memo__tag b { color: var(--ink); font-weight: 700; }
.memo__next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(18px, 3vw, 36px); }
.memo__next li { display: grid; gap: 4px; padding-top: 10px; border-top: 2px solid var(--ink); }
.memo__next b { font-weight: 680; font-size: 1.05rem; }
.memo__next span { color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
@media (max-width: 860px) {
  .memo { grid-template-columns: minmax(0, 1fr); }
  .memo__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .memo__next { grid-template-columns: minmax(0, 1fr); } }

/* plain-language table */
.plain { border-top: 1px solid var(--ink); }
.plain__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px clamp(18px, 3vw, 36px); padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.plain__row--head { padding: 10px 0; font-stretch: var(--narrow); font-size: .86rem; font-weight: 700; color: var(--ink-3); }
.plain__row > span:first-child:not(.plain__h) { font-stretch: var(--narrow); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plain__row p { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.4; }
@media (max-width: 640px) {
  .plain__row { grid-template-columns: minmax(0, 1fr); }
  .plain__row--head { display: none; }
}
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.split2 h3 { font-size: 1rem; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.split2 li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) { .split2 { grid-template-columns: minmax(0, 1fr); } }
.closer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--rule); }
.closer p { font-size: 1.15rem; max-width: 40ch; }

/* ---------- About ---------- */
.about-head { padding-block: clamp(36px, 6vw, 84px) clamp(32px, 4vw, 56px); display: grid; gap: 22px; }
.about-head h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.028em; max-width: 18ch; }
.about-head .prose { font-size: clamp(1.08rem, 1.02rem + .25vw, 1.2rem); }
.block--rule { border-top: 2px solid var(--ink); }
.xp { border-top: 1px solid var(--ink); }
.xp__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px clamp(24px, 4vw, 56px); padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid var(--rule); }
.xp__who { display: grid; gap: 4px; align-content: start; }
.xp__who h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 680; letter-spacing: -.015em; line-height: 1.15; }
.xp__role { font-weight: 600; }
.xp__where { font-stretch: var(--narrow); font-size: .92rem; color: var(--ink-3); }
.xp__what { display: grid; gap: 14px; align-content: start; color: var(--ink-2); }
.xp__facts { font-weight: 600; color: var(--ink); }
.quote { border-left: 2px solid var(--ink); padding-left: 16px; color: var(--ink); font-size: 1.1rem; line-height: 1.45; }
@media (max-width: 760px) { .xp__item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Resume ---------- */
.resume { padding-block: clamp(28px, 5vw, 64px); }
.sheet { max-width: 880px; margin-inline: auto; background: var(--raised); border: 1px solid var(--rule); padding: clamp(22px, 5vw, 60px); display: grid; gap: clamp(26px, 3.6vw, 38px); }
.sheet__head { display: grid; gap: 8px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.sheet__head h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
.sheet__contact { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; color: var(--ink-2); }
.sheet__contact code { font-family: var(--font); font-weight: 500; color: var(--ink); user-select: all; }
.sheet section { display: grid; gap: 16px; }
.sheet h2 { font-size: 1.05rem; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong); }
.job { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.job:last-child { border-bottom: 0; padding-bottom: 0; }
.job__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: baseline; }
.job__head h3 { font-size: 1.08rem; font-weight: 680; }
.job__head span { font-stretch: var(--narrow); font-size: .9rem; color: var(--ink-3); }
.job__role { font-weight: 500; color: var(--ink-2); }
.job ul { display: grid; gap: 5px; padding-left: 1.1em; list-style: square; color: var(--ink-2); font-size: .98rem; }
.job__link { font-stretch: var(--narrow); font-size: .9rem; color: var(--ink-2); }
.skills { columns: 2 220px; column-gap: 32px; color: var(--ink-2); font-size: .98rem; }
.skills li { padding: 3px 0; break-inside: avoid; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.panel .dv__label, .panel .dv__plot { min-height: 50px; }

/* =========================================================
   Homepage: two bodies of work
   ========================================================= */
.bodies { display: grid; }
.body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px clamp(28px, 4vw, 56px); padding-block: clamp(28px, 3.4vw, 44px); border-top: 2px solid var(--ink); }
.body + .body { border-top-width: 1px; border-top-color: var(--rule-strong); }
.body__meta { display: grid; gap: 4px; align-content: start; }
.body__n { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--ink-3); }
.body__org { font-weight: 680; font-size: 1.05rem; margin-top: 10px; }
.body__type { font-stretch: var(--narrow); font-size: .9rem; color: var(--ink-2); }
.body__main { display: grid; gap: 14px; min-width: 0; align-content: start; }
.body__title { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-weight: 680; letter-spacing: -.02em; line-height: 1.1; }
.body__caps { font-stretch: var(--narrow); font-size: .95rem; color: var(--ink-2); }
.body__teaser { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.35; letter-spacing: -.008em; max-width: 40ch; }
.body__main > p.muted { max-width: 66ch; }
.body--flag .body__n { color: var(--ink); }
.chapline { display: flex; flex-wrap: wrap; gap: 6px 0; font-stretch: var(--narrow); font-size: .92rem; color: var(--ink-2); }
.chapline li + li::before { content: "·"; padding-inline: .55em; color: var(--ink-3); }
.body .lenses { margin-top: 6px; }
@media (max-width: 820px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .body__meta { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: end; }
  .body__n { grid-row: span 2; }
  .body__org { margin-top: 0; }
}

/* =========================================================
   Willamette case study: performance → organizational decision → systems execution
   ========================================================= */
.ws-head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 3.6vw, 44px); display: grid; gap: 16px; }
.ws-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; max-width: 20ch; }
.ws-hook { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 72px); margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--ink); align-items: start; }
.ws-hook__line { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem); font-weight: 600; line-height: 1.22; letter-spacing: -.015em; }
@media (max-width: 860px) { .ws-hook { grid-template-columns: minmax(0, 1fr); } }

.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.chapters a { display: grid; gap: 2px; padding: 14px 16px 14px 0; text-decoration: none; }
.chapters li + li a { padding-left: 16px; border-left: 1px solid var(--rule); }
.chapters b { font-size: .86rem; color: var(--ink-3); font-weight: 700; }
.chapters span { font-weight: 650; line-height: 1.25; }
.chapters a:hover span { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapters li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .chapters li:nth-child(n+3) a { border-top: 1px solid var(--rule); }
}

.chap { padding-block: clamp(52px, 6.5vw, 96px) 8px; display: grid; gap: clamp(26px, 3vw, 38px); }
.chap__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px clamp(18px, 2.6vw, 32px); align-items: start; }
.chap__num { font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: .82; color: var(--ink-3); }
.chap__titles { display: grid; gap: 8px; padding-top: 4px; }
.chap__titles .h2 { max-width: 24ch; }
.chap__idea { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); color: var(--ink-2); max-width: 56ch; }
.chap__claim { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); font-weight: 600; letter-spacing: -.012em; line-height: 1.25; max-width: 34ch; }
.wtext { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(20px, 3vw, 40px); padding-top: 18px; border-top: 1px solid var(--rule); }
.wtext--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wtext div { display: grid; gap: 6px; align-content: start; }
.wtext h4 { font-stretch: var(--narrow); font-size: .88rem; font-weight: 700; color: var(--ink); }
.wtext p { color: var(--ink-2); line-height: 1.55; }
.wtext p b { color: var(--ink); font-weight: 680; }
@media (max-width: 820px) { .wtext, .wtext--2 { grid-template-columns: minmax(0, 1fr); } }

/* Figure W1: two measures, each indexed to its own starting point, moving in opposite directions */
.bal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 4vw, 56px); }
.bal__col { display: grid; gap: 10px; justify-items: center; text-align: center; min-width: 0; }
.bal__kicker { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.bal__big { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem); font-weight: 700; letter-spacing: -.045em; line-height: .9; }
.bal__measure { font-stretch: var(--narrow); color: var(--ink-2); font-size: .95rem; }
.bal__plot { position: relative; width: 100%; height: 200px; margin-top: 8px; }
.bal__base { position: absolute; left: -9999px; right: -9999px; top: 57.143%; height: 1px; background: var(--ink-2); }
.bal__bar { position: absolute; left: 50%; width: 24px; margin-left: -12px; transition: box-shadow .12s ease; }
.bal__bar--down { top: 57.143%; height: 21.429%; background: var(--ink); border-radius: 0 0 4px 4px; }
.bal__bar--up { top: 14.286%; height: 42.857%; background: var(--sig); border-radius: 4px 4px 0 0; }
.bal__end { position: absolute; left: calc(50% + 20px); transform: translateY(-50%); font-variant-numeric: tabular-nums; font-weight: 650; font-size: .92rem; white-space: nowrap; }
.bal__end span { font-stretch: var(--narrow); font-weight: 500; color: var(--ink-3); font-size: .8rem; margin-left: 4px; }
.bal__wrap { position: relative; overflow: hidden; display: grid; gap: 10px; max-width: 680px; }
.bal__basel { font-stretch: var(--narrow); font-size: .8rem; color: var(--ink-3); }
@media (max-width: 520px) { .bal__plot { height: 200px; } .bal__end span { display: none; } }

/* Figure W2: organic reach widening vs paid cost narrowing, each indexed to its own starting point */
.idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(28px, 4vw, 64px); }
.idx__panel { display: grid; gap: 10px; min-width: 0; align-content: start; }
.idx__kicker { font-weight: 700; font-size: .95rem; }
.idx__big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.idx__big b { font-size: clamp(2.4rem, 1.7rem + 3vw, 3.8rem); font-weight: 700; letter-spacing: -.045em; line-height: .95; }
.idx__big span { font-size: 1.05rem; font-weight: 600; }
.idx__sub { font-stretch: var(--narrow); color: var(--ink-2); font-size: .92rem; }
.idx__track { position: relative; height: 64px; margin-top: 6px; }
.idx__track::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--rule); }
.idx__seg { position: absolute; top: 26px; height: 17px; transition: box-shadow .12s ease; }
.idx__seg--base { left: 0; background: var(--ctx); border-radius: 0; }
.idx__seg--ink { left: 0; background: var(--ink); }
.idx__seg--gain { background: var(--sig); border-radius: 0 4px 4px 0; }
.idx__seg--cut { box-shadow: inset 0 0 0 2px var(--sig); border-radius: 0 4px 4px 0; background: transparent; }
.idx__tick { position: absolute; top: 18px; height: 33px; width: 2px; margin-left: -1px; background: var(--ink-2); }
.idx__lab { position: absolute; top: 0; font-stretch: var(--narrow); font-size: .78rem; color: var(--ink-3); white-space: nowrap; transform: translateX(-50%); }
.idx__lab--end { top: auto; bottom: -2px; font-weight: 650; color: var(--ink); font-size: .84rem; }
.idx__how { font-stretch: var(--narrow); font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) { .idx { grid-template-columns: minmax(0, 1fr); } }

/* Figure W3: many channel signals converge into one analysis, one report, one decision */
.conv { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(26px, 3.4vw, 46px); align-items: stretch; }
.conv__stage { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding-top: 12px; border-top: 2px solid var(--ink); }
.conv__stage h4 { font-weight: 700; font-size: 1rem; }
.conv__stage p { color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.conv__inputs { display: grid; gap: 8px; padding-right: 0; }
.conv__inputs li { position: relative; padding: 7px 0; font-size: .95rem; border-bottom: 1px solid var(--rule); }
.conv__inputs li::after { content: ""; position: absolute; right: calc(-1 * clamp(26px, 3.4vw, 46px) / 2); top: 50%; width: calc(clamp(26px, 3.4vw, 46px) / 2); height: 1px; background: var(--ink-3); }
.conv__collector { position: absolute; right: calc(-1 * clamp(26px, 3.4vw, 46px) / 2); top: 58px; bottom: 18px; width: 1px; background: var(--ink-3); }
.conv__stage:not(:last-child)::after { content: "→"; position: absolute; right: calc(-1 * clamp(26px, 3.4vw, 46px) / 2 - .48em); top: -0.82em; background: var(--ground); padding-inline: 3px; color: var(--ink); font-size: 1rem; line-height: 1; }
.conv__qs { display: grid; gap: 6px; }
.conv__qs li { font-size: .95rem; line-height: 1.35; padding-left: 14px; position: relative; }
.conv__qs li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--ink-2); }
.conv__stage--decision { border-top-color: var(--sig); }
.conv__stage--decision h4 { color: var(--ink); }
.conv__stage--decision p { color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) {
  .conv { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .conv__inputs li::after, .conv__collector { display: none; }
  .conv__stage:not(:last-child)::after { content: "↓"; right: auto; left: 0; top: auto; bottom: -26px; }
}

/* Figure W4: systems changing, inside a ring of the people involved */
.sys { position: relative; border: 1.5px solid var(--ink-3); padding: clamp(34px, 4vw, 46px) clamp(16px, 3vw, 36px) clamp(30px, 3.6vw, 42px); margin-top: 12px; }
.sys__who { position: absolute; display: flex; gap: 8px; align-items: baseline; background: var(--ground); padding: 0 10px; font-weight: 650; font-size: .92rem; white-space: nowrap; }
.sys__who span { font-stretch: var(--narrow); font-weight: 500; color: var(--ink-3); font-size: .84rem; }
.sys__who--a { top: -.75em; left: 18px; }
.sys__who--b { top: -.75em; right: 18px; }
.sys__who--c { bottom: -.75em; left: 50%; transform: translateX(-50%); }
.lane { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.4fr) minmax(40px, 1.6fr) minmax(0, 2.8fr) auto; gap: 8px clamp(10px, 1.8vw, 20px); align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.lane:first-child { padding-top: 0; }
.lane:last-child { border-bottom: 0; padding-bottom: 0; }
.lane__name { font-stretch: var(--narrow); font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.lane__from { color: var(--ink-3); font-size: 1rem; }
.lane__arrow { position: relative; height: 2px; background: var(--sig); transition: box-shadow .12s ease; }
.lane__arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--sig); border-right: 0; }
.lane__to { font-weight: 680; font-size: 1.08rem; line-height: 1.25; }
.lane__to small { display: block; font-stretch: var(--narrow); font-weight: 500; font-size: .82rem; color: var(--ink-3); }
.lane__role { font-stretch: var(--narrow); font-size: .84rem; color: var(--ink-2); border: 1px solid var(--rule-strong); padding: 2px 8px; white-space: nowrap; }
@media (max-width: 760px) {
  .sys { padding-top: 64px; }
  .sys__who--a { left: 12px; }
  .sys__who--b { right: auto; left: 12px; top: 1.2em; }
  .lane { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1.3fr); grid-template-areas: "name name name" "from arrow to" "role role role"; }
  .lane__name { grid-area: name; }
  .lane__from { grid-area: from; }
  .lane__arrow { grid-area: arrow; }
  .lane__to { grid-area: to; }
  .lane__role { grid-area: role; justify-self: start; }
}

/* Closing: what the work demonstrates, as a typographic list */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.demo div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.demo dt { font-weight: 700; }
.demo dd { color: var(--ink-2); }
.coda { margin-top: 30px; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); font-weight: 600; letter-spacing: -.012em; line-height: 1.28; max-width: 40ch; }
@media (max-width: 760px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo div { grid-template-columns: minmax(0, 1fr); }
}
.next-case { display: grid; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--ink); }
.next-case a { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); font-weight: 680; text-decoration: none; letter-spacing: -.01em; }
.next-case a:hover { text-decoration: underline; text-underline-offset: .2em; }
.next-case span { font-stretch: var(--narrow); color: var(--ink-3); font-size: .88rem; }

/* =========================================================
   Homepage: lighter third entry (a project note, not a third case study)
   ========================================================= */
.body--note { padding-block: clamp(18px, 2.2vw, 26px); }
.body--note .body__n { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.body--note .body__org { margin-top: 6px; font-size: 1rem; }
.body--note .body__main { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline; }
.body--note .body__title { font-size: clamp(1.12rem, 1.04rem + .35vw, 1.3rem); grid-column: 1; }
.body--note .body__caps, .body--note .body__main > p.muted { grid-column: 1; }
.body--note .note-link { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) {
  .body--note .body__main { grid-template-columns: minmax(0, 1fr); }
  .body--note .note-link { grid-column: 1; grid-row: auto; }
}

/* =========================================================
   Project note: Independent Audience Growth
   Same family, one more register. Expanded width (--wide) carries the headlines, and each model
   runs once as you reach it (replayable). Growth Honcho interprets evidence; Willamette shows
   performance and systems; this page iterates.
   ========================================================= */
.kn { --wide: 116%; }
.kn-head { padding-block: clamp(32px, 5vw, 64px) 0; display: grid; gap: 14px; }
.kn-head__kind { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-stretch: var(--narrow); font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.kn-head__kind::before { content: ""; width: 28px; height: 2px; background: var(--sig); }
.kn-head h1 { font-stretch: var(--wide); font-size: clamp(2.15rem, 1.3rem + 3.5vw, 4.1rem); font-weight: 720; line-height: .98; letter-spacing: -.035em; }
.kn-head__sub { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); line-height: 1.35; letter-spacing: -.01em; max-width: 44ch; }
.kn-hook { margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--ink); }
.kn-hook p { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem); font-weight: 600; line-height: 1.22; letter-spacing: -.015em; max-width: 36ch; }

.kn-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(56px, 6.5vw, 96px); }
.kn-sec--b { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.kn-sec--b .kn-sec__head { order: 2; }
.kn-sec--c { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.4vw, 44px); }
.kn-sec__head { display: grid; gap: 14px; align-content: start; min-width: 0; }
.kn-sec--c .kn-sec__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.kn-sec--c .kn-sec__n { grid-column: 1; grid-row: 1; }
.kn-sec--c .kn-sec__t { grid-column: 1; grid-row: 2; }
.kn-sec--c .kn-sec__claim { grid-column: 2; grid-row: 2; }
.kn-sec--c .kn-sec__idea { grid-column: 2; grid-row: 3; }
.kn-sec__n { display: flex; align-items: center; gap: 10px; font-stretch: var(--narrow); font-weight: 700; font-size: .9rem; color: var(--ink-3); }
.kn-sec__n::after { content: ""; width: 28px; height: 2px; background: var(--ink-3); }
.kn-sec__t { font-stretch: var(--wide); font-size: clamp(1.95rem, 1.3rem + 2.5vw, 3.1rem); font-weight: 720; line-height: 1; letter-spacing: -.032em; }
.kn-sec__idea { font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.kn-sec__claim { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); font-weight: 600; line-height: 1.22; letter-spacing: -.014em; max-width: 30ch; }
.kn-sec .fig { padding-top: 6px; }
@media (max-width: 1000px) {
  .kn-sec, .kn-sec--b { grid-template-columns: minmax(0, 1fr); }
  .kn-sec--b .kn-sec__head { order: 0; }
  .kn-sec--c .kn-sec__head { grid-template-columns: minmax(0, 1fr); }
  .kn-sec--c .kn-sec__head > * { grid-column: auto; grid-row: auto; }
}

.replay { display: none; margin-left: auto; align-items: center; min-height: 30px; padding: 2px 10px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; font-stretch: var(--narrow); font-size: .82rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.replay:hover { border-color: var(--ink); color: var(--ink); }
.motion .replay { display: inline-flex; }

/* Proof: the one audited outcome on the page, set as part of the section head, not as a card */
.kn-sec--b .kn-sec__head { container-type: inline-size; }
.kn-proof { position: relative; display: grid; gap: 6px; margin-top: 6px; padding-top: 18px; border-top: 2px solid var(--ink); }
.kn-proof::before { content: ""; position: absolute; left: 0; top: -2px; width: 28px; height: 2px; background: var(--sig); }
.kn-proof__stat { display: grid; gap: 8px; }
.kn-proof__n { font-stretch: var(--wide); font-weight: 760; font-size: min(7rem, 25cqi); line-height: .84; letter-spacing: -.045em; font-variant-numeric: lining-nums; }
.kn-proof__lab { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.kn-proof__src { font-stretch: var(--narrow); font-size: .92rem; color: var(--ink-3); }
.kn-proof__line { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 1rem; line-height: 1.45; max-width: 38ch; }
@container (min-width: 700px) {
  .kn-proof { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); align-items: end; }
  .kn-proof__stat { grid-column: 1; grid-row: 1; }
  .kn-proof__src { grid-column: 1; grid-row: 2; }
  .kn-proof__line { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
}
.body__proof { color: var(--ink); font-weight: 700; }

/* Figure K1: the same four decisions in opposite orders; the lines cross where the order flips */
.flip { display: grid; grid-template-columns: 8rem repeat(4, minmax(0, 1fr)); grid-template-rows: auto 96px auto; margin-top: 8px; }
.flip__lab { font-stretch: var(--narrow); font-weight: 700; font-size: .88rem; color: var(--ink-3); }
.flip__lab--a { grid-column: 1; grid-row: 1; align-self: start; }
.flip__lab--b { grid-column: 1; grid-row: 3; align-self: start; padding-top: 16px; color: var(--ink); }
.flip__t { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; padding-inline: 4px; text-align: center; }
.flip__t[data-p="1"] { grid-column: 2; --d: 0; }
.flip__t[data-p="2"] { grid-column: 3; --d: 1; }
.flip__t[data-p="3"] { grid-column: 4; --d: 2; }
.flip__t[data-p="4"] { grid-column: 5; --d: 3; }
.flip__t--a { grid-row: 1; padding-bottom: 16px; color: var(--ink-3); font-size: 1rem; line-height: 1.25; }
.flip__t--a small { font-stretch: var(--narrow); font-size: .8rem; }
.flip__t--b { grid-row: 3; padding-top: 16px; }
.flip__t--b b { font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.flip__t--b small { font-stretch: var(--narrow); font-size: .86rem; line-height: 1.3; color: var(--ink-2); }
.flip__t::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; }
.flip__t--a::after { bottom: -5px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--ink-3); }
.flip__t--b::after { top: -5px; background: var(--ink); }
.flip__t--a.flip__t--aud::after { box-shadow: inset 0 0 0 2px var(--sig); }
.flip__t--b.flip__t--aud::after { background: var(--sig); }
.flip__x { grid-column: 2 / 6; grid-row: 2; width: 100%; height: 100%; overflow: visible; }
.flip__x path { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.flip__x .flip__aud { stroke: var(--sig); stroke-width: 2.75; }
.flip__x--v { display: none; }
@media (max-width: 640px) {
  .flip { grid-template-columns: minmax(0, .8fr) 52px minmax(0, 1.45fr); grid-template-rows: auto repeat(4, 1fr); }
  .flip__lab { align-self: end; padding: 0 0 10px; }
  .flip__lab--a { grid-column: 1; grid-row: 1; text-align: right; padding-right: 14px; }
  .flip__lab--b { grid-column: 3; grid-row: 1; padding-top: 0; padding-left: 16px; }
  .flip__t { align-content: center; padding: 10px 0; }
  .flip__t--a[data-p] { grid-column: 1; justify-items: end; text-align: right; padding-right: 14px; }
  .flip__t--b[data-p] { grid-column: 3; justify-items: start; text-align: left; padding-left: 16px; }
  .flip__t[data-p="1"] { grid-row: 2; }
  .flip__t[data-p="2"] { grid-row: 3; }
  .flip__t[data-p="3"] { grid-row: 4; }
  .flip__t[data-p="4"] { grid-row: 5; }
  .flip__t--a::after { left: auto; right: -5px; bottom: auto; top: 50%; margin: -5px 0 0; }
  .flip__t--b::after { left: -5px; top: 50%; margin: -5px 0 0; }
  .flip__x--h { display: none; }
  .flip__x--v { display: block; grid-column: 2; grid-row: 2 / 6; }
}

/* Figure K2: distribution as a widening spiral; stage 5 lands one ring outside stage 1 */
.sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 3.4vw, 48px); align-items: center; }
.sp__svg { width: 100%; max-width: 400px; height: auto; justify-self: center; overflow: visible; }
.sp__path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sp__next { fill: none; stroke: var(--ink-3); stroke-width: 1.75; stroke-dasharray: 5 6; }
.sp__arrow { fill: var(--ink-3); }
.sp__lab { font-family: var(--font); font-stretch: var(--narrow); font-size: 15px; fill: var(--ink-2); }
.sp__dot { fill: var(--sig); opacity: 0; }
.sp__st circle { fill: var(--ground); stroke: var(--ink); stroke-width: 2; transition: stroke-width .12s ease; }
.sp__st text { font-family: var(--font); font-weight: 700; font-size: 15px; fill: var(--ink); }
.sp__st--end circle { fill: var(--sig); stroke: var(--sig); }
.sp__st--end text { fill: var(--on-ink); }
.sp__st.is-lit circle { stroke-width: 4; }
.sp__side { display: grid; gap: 8px; min-width: 0; }
.sp__h { font-stretch: var(--narrow); font-weight: 700; font-size: .86rem; color: var(--ink-3); }
.sp__list { border-top: 1px solid var(--ink); }
.sp__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 11px 6px 11px 0; border-bottom: 1px solid var(--rule); transition: background-color .12s ease; }
.sp__n { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; font-size: .84rem; line-height: 1; }
.sp__item--end .sp__n { background: var(--sig); box-shadow: none; color: var(--on-ink); }
.sp__item b { font-weight: 680; }
.sp__item p { color: var(--ink-2); font-size: .97rem; line-height: 1.4; }
.sp__lever { display: block; margin-top: 3px; font-stretch: var(--narrow); font-size: .86rem; color: var(--ink-3); }
.sp__item.is-lit { background: var(--wash); }
.kn-sec .fig { container-type: inline-size; }
@container (max-width: 640px) {
  .sp { grid-template-columns: minmax(0, 1fr); }
  .sp__svg { max-width: 360px; }
}
@media (max-width: 1180px) {
  .kn-sec--b { grid-template-columns: minmax(0, 1fr); }
  .kn-sec--b .kn-sec__head { order: 0; }
}

/* Figure K3a: what sits between the decision and the audience */
.gap { display: grid; gap: 16px; }
.gap__row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: center; gap: 0 16px; }
.gap__lab { font-stretch: var(--narrow); font-weight: 700; font-size: .88rem; color: var(--ink-3); }
.gap__row--own .gap__lab { color: var(--ink); }
.gap__track { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gap__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink-3); }
.gap__track li { position: relative; padding: 5px 10px; border: 1px solid var(--rule-strong); background: var(--ground); color: var(--ink-2); font-size: .93rem; line-height: 1.25; white-space: nowrap; }
.gap__track li:first-child, .gap__track li:last-child { border-color: var(--ink); color: var(--ink); font-weight: 650; }
.gap__row--own .gap__track::before { height: 3px; margin-top: -1.5px; background: var(--sig); }
@media (max-width: 860px) {
  .gap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .gap__row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; gap: 10px; }
  .gap__track { flex-direction: column; align-items: flex-start; min-height: 260px; }
  .gap__track::before { left: 16px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; margin: 0; }
  .gap__row--own .gap__track::before { width: 3px; height: auto; margin: 0 0 0 -.75px; }
  .gap__track li { white-space: normal; }
}

/* Figure K3b: the owned loop; four kinds of input fan into the observe step */
.lp { display: grid; grid-template-columns: minmax(0, 360px) 76px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; margin-top: clamp(30px, 3.6vw, 48px); }
.lp__svg { grid-column: 1; grid-row: 2; width: 100%; height: auto; overflow: visible; }
.lp__ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.lp__arc { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lp__arc--sig { stroke: var(--sig); stroke-width: 3; }
.lp__head { fill: var(--ink); }
.lp__head--sig { fill: var(--sig); }
.lp__st { fill: var(--ink); }
.lp__st--obs { fill: var(--sig); }
.lp__slab { font-family: var(--font); font-weight: 700; font-size: 15px; fill: var(--ink); }
.lp__alab { font-family: var(--font); font-stretch: var(--narrow); font-size: 13.5px; fill: var(--ink-2); }
.lp__alab--sig, .lp__alab--again { fill: var(--ink); font-weight: 700; }
.lp__fan { grid-column: 2; grid-row: 2; align-self: stretch; width: 100%; height: 100%; overflow: visible; }
.lp__fan path { fill: none; stroke: var(--sig); stroke-width: 1.5; }
.lp__k { grid-column: 3; grid-row: 1; padding: 0 0 8px 16px; font-stretch: var(--narrow); font-weight: 700; font-size: .88rem; color: var(--ink-3); }
.lp__in { grid-column: 3; grid-row: 2; align-self: stretch; display: grid; grid-template-rows: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.lp__in li { position: relative; display: grid; align-content: center; gap: 2px; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--rule); }
.lp__in li::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sig); }
.lp__in b { font-weight: 680; }
.lp__in span { font-stretch: var(--narrow); font-size: .93rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .lp { grid-template-columns: minmax(0, 1fr); }
  .lp__svg { grid-row: 1; max-width: 340px; justify-self: center; }
  .lp__fan { display: none; }
  .lp__k { grid-column: 1; grid-row: 2; padding: 18px 0 8px; }
  .lp__in { grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; column-gap: 18px; border-top: 0; }
  .lp__in li { align-content: start; padding: 10px 0 12px 14px; border-top: 1px solid var(--rule); border-bottom: 0; }
  .lp__in li::before { left: 0; top: 1.05em; margin-top: 0; }
}

/* Closing */
.kn-close { display: grid; gap: 16px; padding-top: clamp(64px, 7.5vw, 108px); }
.kn-close .coda { margin-top: 0; max-width: 30ch; }
.kn-close .lead { max-width: 60ch; }
.kn-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 3.4vw, 44px); border-top: 2px solid var(--ink); }
.kn-map > * { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px 18px 0; text-decoration: none; }
.kn-map > * + * { padding-left: 18px; border-left: 1px solid var(--rule); }
.kn-map span { font-stretch: var(--narrow); font-size: .86rem; color: var(--ink-3); }
.kn-map b { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); font-weight: 680; letter-spacing: -.01em; line-height: 1.2; }
.kn-map a:hover b { text-decoration: underline; text-underline-offset: .2em; }
.kn-map [aria-current]::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--sig); }
@media (max-width: 760px) {
  .kn-map { grid-template-columns: minmax(0, 1fr); }
  .kn-map > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .kn-map [aria-current]::before { right: auto; width: 28px; }
}

/* Motion: each model runs once when it comes into view. Only with JS and no reduced-motion preference;
   otherwise every figure is drawn in full from the start. */
@media screen {
  .motion .flip__x--h { clip-path: inset(0 0 100% 0); }
  .motion .flip__x--v { clip-path: inset(0 100% 0 0); }
  .motion .flip__t--b { opacity: 0; transform: translateY(8px); }
  .motion .flip.is-on .flip__x { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1) .15s; }
  .motion .flip.is-on .flip__t--b { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; transition-delay: calc(1.05s + var(--d) * 110ms); }

  .motion .sp .sp__path { stroke-dashoffset: 1; }
  .motion .sp .sp__st { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
  .motion .sp .sp__next, .motion .sp .sp__arrow, .motion .sp .sp__lab { opacity: 0; }
  .motion .sp.is-on .sp__path { stroke-dashoffset: 0; transition: stroke-dashoffset 3.6s linear; }
  .motion .sp.is-on .sp__dot { opacity: 1; }
  .motion .sp.is-on .sp__st { opacity: 1; transform: none; transition: opacity .25s ease var(--t), transform .45s cubic-bezier(.3, 1.6, .5, 1) var(--t); }
  .motion .sp.is-on .sp__next, .motion .sp.is-on .sp__arrow, .motion .sp.is-on .sp__lab { opacity: 1; transition: opacity .7s ease 3.6s; }

  .motion .lp .lp__arc { stroke-dashoffset: 1; }
  .motion .lp .lp__head, .motion .lp .lp__alab { opacity: 0; }
  .motion .lp .lp__fan { clip-path: inset(0 100% 0 0); }
  .motion .lp .lp__in li { opacity: 0; transform: translateX(-6px); }
  .motion .lp.is-on .lp__arc { stroke-dashoffset: 0; transition: stroke-dashoffset .6s cubic-bezier(.5, 0, .3, 1) var(--t); }
  .motion .lp.is-on .lp__head, .motion .lp.is-on .lp__alab { opacity: 1; transition: opacity .3s ease var(--t); }
  .motion .lp.is-on .lp__fan { clip-path: inset(0 0 0 0); transition: clip-path .5s ease .6s; }
  .motion .lp.is-on .lp__in li { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; transition-delay: calc(.8s + var(--i) * 90ms); }
}

/* =========================================================
   Art: original editorial compositions generated by art.py.
   They carry no data and no facts; they give the work a visual identity and pace the reading.
   Plates are the site's "photographs": a deep slate field with light linework and one teal accent.
   Ground art is ink on the page itself.
   ========================================================= */
:root {
  --plate: #172124; --plate-2: #1F2B2E; --plate-side: #0E1618; --plate-side2: #121B1E;
  --p-hi: #E4EAEA; --p-mid: #8D9C9E; --p-lo: #3A494C; --p-sig: #2CA6CC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --plate: #1C292D; --plate-2: #243337; --plate-side: #121B1D; --plate-side2: #162023; --p-lo: #3D4C4F; }
}
:root[data-theme="dark"] { --plate: #1C292D; --plate-2: #243337; --plate-side: #121B1D; --plate-side2: #162023; --p-lo: #3D4C4F; }

.art { position: relative; overflow: hidden; }
.art--plate { background: var(--plate); }
.art-svg { display: block; width: 100%; height: 100%; }
.art .p-hi { stroke: var(--p-hi); }
.art .p-mid { stroke: var(--p-mid); }
.art .p-lo { stroke: var(--p-lo); }
.art .p-sig { stroke: var(--p-sig); }
.art .pf-hi { fill: var(--p-hi); }
.art .pf-sig { fill: var(--p-sig); }
.art .pf-top { fill: var(--plate-2); }
.art .pf-side { fill: var(--plate-side); }
.art .pf-side2 { fill: var(--plate-side2); }
.art .pf-solid { fill: var(--p-mid); fill-opacity: .3; }
.art .g-ink { stroke: var(--ink); }
.art .g-mid { stroke: var(--ink-3); }
.art .g-lo { stroke: var(--rule-strong); }
.art .g-sig { stroke: var(--sig); }
.art .gf-ink, .art .gf-hi { fill: var(--ink); }
.art .gf-sig { fill: var(--sig); }
.art .gf-lo { fill: var(--rule-strong); }
.art .gf-top { fill: var(--ground); }
.art .gf-side { fill: var(--rule); }
.art .gf-side2 { fill: var(--raised); }
.art .gf-solid { fill: var(--ink-3); fill-opacity: .22; }

/* =========================================================
   Homepage, visual pass: statement + art -> proof -> evidence -> chapters with covers -> operate band
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: min(84vh, 800px); padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); }
.hero__text { position: relative; z-index: 1; display: grid; gap: 22px; padding-block: clamp(40px, 6vw, 96px); }
.hero h1 { font-stretch: 116%; font-size: clamp(2.8rem, 1.5rem + 4.6vw, 5.8rem); font-weight: 740; line-height: .9; letter-spacing: -.045em; }
.hero .position { max-width: 24ch; }
.hero .actions { margin-top: 6px; }
.hero__art { align-self: stretch; min-height: 540px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-left: 0; }
  .hero__text { padding: 28px var(--gutter) 4px; gap: 16px; }
  .hero__art { min-height: 0; aspect-ratio: 5 / 4; -webkit-mask-image: none; mask-image: none; }
}

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 44px); padding-top: 22px; margin-block: clamp(20px, 3vw, 40px) clamp(40px, 5vw, 72px); border-top: 2px solid var(--ink); }
.proof p { display: grid; gap: 10px; align-content: start; }
.proof b { font-stretch: 116%; font-weight: 740; font-size: clamp(2.3rem, 1.5rem + 2.5vw, 3.7rem); line-height: .88; letter-spacing: -.045em; }
.proof span { font-stretch: var(--narrow); font-size: .96rem; line-height: 1.35; color: var(--ink-2); max-width: 26ch; }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.work { padding-top: clamp(64px, 8vw, 120px); }
.work__head { display: grid; gap: 6px; margin-bottom: clamp(24px, 3vw, 40px); }
.chapter { display: grid; gap: 24px clamp(28px, 4.5vw, 72px); padding-bottom: clamp(64px, 8vw, 120px); }
.chapter__art { display: block; aspect-ratio: 3 / 2; }
.chapter--flag .chapter__art { aspect-ratio: 21 / 9; }
.chapter__text { display: grid; gap: 18px; align-content: center; min-width: 0; }
.chapter--flag .chapter__text { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 14px clamp(28px, 4vw, 56px); align-content: start; }
.chapter--left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.chapter--right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.chapter--right .chapter__art { order: 2; }
.chapter__meta { display: grid; gap: 2px; align-content: start; }
.chapter__n { margin-bottom: 10px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--ink-3); }
.chapter--flag .chapter__n { color: var(--ink); }
.chapter__meta b { font-weight: 680; font-size: 1.05rem; }
.chapter__meta span:last-child { font-stretch: var(--narrow); font-size: .9rem; color: var(--ink-2); }
.chapter__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.chapter__title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 680; letter-spacing: -.02em; line-height: 1.08; }
.chapter__caps { font-stretch: var(--narrow); font-size: .95rem; color: var(--ink-2); }
.chapter__line { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.4; max-width: 44ch; }
.chapter .actions { margin-top: 6px; }
.chapter--note .chapter__n { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.chapter--note .chapter__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.chapter--note .note-link { justify-self: start; margin-top: 4px; font-weight: 600; }
@media (max-width: 900px) {
  .chapter--left, .chapter--right, .chapter--flag .chapter__text { grid-template-columns: minmax(0, 1fr); }
  .chapter--right .chapter__art { order: 0; }
  .chapter--flag .chapter__art { aspect-ratio: 3 / 2; }
  .chapter__art { margin-inline: calc(-1 * var(--gutter)); }
  .chapter__meta { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: end; }
  .chapter__n { grid-row: span 2; margin: 0; }
}

.operate__text { display: grid; gap: 12px; }
.operate__text .lead { max-width: 52ch; }
.operate__art { aspect-ratio: 1600 / 560; margin-top: clamp(12px, 2vw, 24px); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
@media (max-width: 760px) { .operate__art { aspect-ratio: 4 / 3; } }
.range2 { display: grid; gap: 14px; padding-block: clamp(56px, 7vw, 100px); }
.range2 .h3 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.range2 .range__links { margin-top: 8px; }

/* Case-study covers and visual interludes */
.cover { margin-top: clamp(6px, 1vw, 12px); }
.cover .art { aspect-ratio: 5 / 2; }
.band { margin-block: clamp(36px, 5vw, 72px) 0; }
.band .art { aspect-ratio: 1600 / 380; }
.band--plate .art { aspect-ratio: 1600 / 420; }
.cs-main > .band { margin-block: 0; }
.cs-main > .band .art { aspect-ratio: 1600 / 460; }
.cs-main > .band--plate .art { aspect-ratio: 1600 / 420; }
@media (max-width: 760px) {
  .cover .art { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); }
  .band .art, .band--plate .art { aspect-ratio: 2 / 1; }
}

/* About: one large visual from the portfolio's identity */
.about-art .art { aspect-ratio: 1400 / 860; max-height: 78vh; width: 100%; }
@media (max-width: 760px) { .about-art .art { aspect-ratio: 1 / 1; } }
.about-xp .xp__item { padding-block: clamp(30px, 4vw, 48px); }

/* Art motion: lines assemble once, layers answer the pointer, a few slow loops while in view.
   Only with JS and no reduced-motion preference; otherwise every artwork is drawn in full. */
.art-layer { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.art-stream, .art-dec, .art-arc, .art-thread { stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-pulse { opacity: 0; transform-box: view-box; }
@media screen {
  .art-motion .art:not(.is-seen) :is(.art-stream, .art-dec, .art-arc, .art-thread) { stroke-dashoffset: 1; }
  .art-motion .art.is-seen .art-stream { transition: stroke-dashoffset 1.5s cubic-bezier(.6, 0, .3, 1); transition-delay: calc(var(--i) * 32ms); }
  .art-motion .art.is-seen .art-dec { transition: stroke-dashoffset 1s cubic-bezier(.5, 0, .2, 1); transition-delay: calc(1.15s + var(--i) * 130ms); }
  .art-motion .art.is-seen .art-arc { transition: stroke-dashoffset 1.6s cubic-bezier(.5, 0, .3, 1); transition-delay: calc(.25s + var(--i) * 140ms); }
  .art-motion .art.is-seen .art-thread { transition: stroke-dashoffset 2.6s cubic-bezier(.5, 0, .3, 1) .2s; }
  .art-motion .art:not(.is-seen) .art-floor { opacity: 0; transform: translateY(calc(-36px - var(--i) * 16px)); }
  .art-motion .art.is-seen .art-floor { transition: opacity .7s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 120ms); }
  .art-motion .art.is-in .art-lift { animation: art-lift 6s ease-in-out 4 alternate; animation-delay: calc(1.4s + var(--i) * -2s); }
  .art-motion .art.is-in .art-pulse { animation: art-pulse 7s cubic-bezier(.2, .6, .3, 1) 3 both; animation-delay: calc(var(--i) * 3.5s); }
  .art-motion .art.is-in .art-drift { animation: art-drift 36s ease-in-out 2 alternate; }
}
@keyframes art-lift { to { transform: translateY(-12px); } }
@keyframes art-pulse { 0% { transform: scale(.25); opacity: 0; } 8% { opacity: .9; } 100% { transform: scale(16); opacity: 0; } }
@keyframes art-drift { to { transform: translate(-12px, 7px); } }

.chap--end { padding-top: clamp(40px, 5vw, 64px); }
.next-case--art { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 18px clamp(20px, 3vw, 40px); margin-top: 0; }
.next-case--art > div { display: grid; gap: 6px; }
.next-case__art { display: block; aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .next-case--art { grid-template-columns: minmax(0, 1fr); } }
.xp__art { display: block; aspect-ratio: 3 / 2; max-width: 280px; margin-top: 16px; }
