:root {
  --canvas: #f0f0f0;
  --ink: #111311;
  --muted: #686b68;
  --line: #ced1ce;
  --signal: #20c866;
  --text-display: clamp(4rem, 8.6vw, 7.5rem);
  --text-title: clamp(2.75rem, 5vw, 4.5rem);
  --text-subhead: 1.5rem;
  --text-body: 1.125rem;
  --text-label: 0.8125rem;
  --page-pad: clamp(1.5rem, 4vw, 4rem);
  --section-space: clamp(7rem, 13vw, 11rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-size: var(--text-body); font-weight: 400; font-kerning: normal; margin: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
.scroll-progress { background: var(--signal); height: 3px; left: 0; position: fixed; right: 0; top: 0; transform: scaleX(0); transform-origin: left; z-index: 20; }
.site-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; font-size: var(--text-label); font-weight: 500; height: 64px; justify-content: space-between; left: 0; padding: 0 var(--page-pad); position: absolute; right: 0; top: 0; }
.site-header nav { display: flex; gap: 24px; }
.site-header a { align-items: center; display: inline-flex; min-height: 44px; }
.site-header a:hover, .text-link:hover { color: var(--signal); }
.wordmark { letter-spacing: -0.02em; }
.label, .section-mark, figcaption, cite { font-size: var(--text-label); font-style: normal; font-weight: 500; }
.article-hero { display: grid; grid-template-columns: repeat(12, 1fr); min-height: 100svh; padding: calc(64px + var(--page-pad)) var(--page-pad) var(--page-pad); }
.article-hero > .label { grid-column: 1 / 6; }
.article-hero h1 { align-self: center; font-size: var(--text-display); font-weight: 500; grid-column: 1 / 12; letter-spacing: -0.065em; line-height: 0.88; margin: 0; max-width: 12ch; }
.subtitle { align-self: end; font-size: var(--text-subhead); grid-column: 1 / 6; line-height: 1.25; margin: 0; }
.article-meta { align-self: end; border-top: 1px solid var(--ink); display: grid; font-size: var(--text-label); gap: 24px; grid-column: 7 / 13; grid-template-columns: 2fr 1fr; line-height: 1.5; padding-top: 16px; }
.article-meta p { margin: 0; }
.article-meta span { color: var(--muted); display: block; margin-bottom: 4px; }
.article-grid { display: grid; gap: 24px; grid-template-columns: repeat(12, 1fr); padding: var(--section-space) var(--page-pad); }
.abstract { border-top: 1px solid var(--line); }
.section-mark { color: var(--muted); grid-column: 1 / 3; }
.article-copy { grid-column: 4 / 9; max-width: 68ch; }
.article-copy p { line-height: 1.68; margin: 0; }
.article-copy p + p { margin-top: 1.5em; }
.article-copy h2 { font-size: var(--text-title); font-weight: 500; letter-spacing: -0.05em; line-height: 0.98; margin: 0 0 48px; text-wrap: balance; }
.article-copy h3 { font-size: var(--text-subhead); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin: 64px 0 16px; }
.lead { font-size: var(--text-subhead); grid-column: 4 / 11; max-width: 58ch; }
.lead p { line-height: 1.5; }
.article-section, .methods { border-top: 1px solid var(--line); }
.margin-stat { align-self: start; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 16px; grid-column: 10 / 13; padding-top: 16px; }
.margin-stat strong { color: var(--signal); font-size: var(--text-title); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; white-space: nowrap; }
.margin-stat span { font-size: var(--text-label); line-height: 1.4; max-width: 15rem; }
.pull-quote { border-top: 1px solid var(--line); display: grid; gap: 48px; grid-template-columns: repeat(12, 1fr); margin: 0; padding: var(--section-space) var(--page-pad); }
.pull-quote p { font-size: var(--text-title); font-weight: 500; grid-column: 2 / 12; letter-spacing: -0.045em; line-height: 1.02; margin: 0; text-wrap: balance; }
.pull-quote cite { grid-column: 2 / 6; }
.pull-quote-green { background: var(--signal); border: 0; }
.article-figure { grid-column: 4 / 13; margin: 72px 0 0; }
.article-figure svg { display: block; height: auto; width: 100%; }
.article-figure figcaption { border-top: 1px solid var(--ink); line-height: 1.45; margin-top: 16px; padding-top: 12px; }
.matrix, .cluster-bars { fill: var(--signal); }
.draw-line { fill: none; stroke: var(--ink); stroke-dasharray: 1200; stroke-dashoffset: 0; stroke-linecap: round; stroke-width: 3; }
.plot-dot { fill: var(--signal); opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; }
.axis { stroke: var(--line); stroke-width: 1; }
.cluster-bars rect { transform: scaleY(1); transform-box: fill-box; transform-origin: bottom; }
.article-figure text { fill: var(--muted); font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-size: 13px; font-weight: 500; }
.timing-figure { display: grid; gap: 48px; }
.bar-row { align-items: end; display: grid; gap: 24px; grid-template-columns: 2fr 8fr; }
.bar-row > div { display: flex; flex-direction: column; gap: 8px; }
.bar-row strong { font-size: var(--text-title); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.bar-row span { font-size: var(--text-label); font-weight: 500; }
.bar-row i { background: var(--signal); height: clamp(4rem, 7vw, 6rem); transform: scaleX(1); transform-origin: left; width: var(--fill); }
.bar-row + .bar-row i { background: var(--line); }
.bar-row.is-muted i { background: var(--line); }
.process-figure ol { border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.process-figure li { align-items: baseline; border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 1fr 8fr; padding: 24px 0; }
.process-figure li span { color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.process-figure li strong { font-size: var(--text-subhead); font-weight: 500; line-height: 1.15; }
.choice-field { display: grid; gap: clamp(6px, 1vw, 12px); grid-template-columns: repeat(12, 1fr); }
.choice-field i { aspect-ratio: 1; background: var(--line); border-radius: 50%; display: block; transform: scale(1); }
.choice-field i.is-selected { background: var(--signal); }
.motion-ready figure[data-reveal] .choice-field i { transform: scale(0); }
.motion-ready figure[data-reveal].is-visible .choice-field i { transform: scale(1); transition: transform 520ms var(--ease); }
.motion-ready figure[data-reveal].is-visible .choice-field i:nth-child(3n) { transition-delay: 70ms; }
.motion-ready figure[data-reveal].is-visible .choice-field i:nth-child(5n) { transition-delay: 120ms; }
.methods { background: var(--ink); color: var(--canvas); }
.methods .section-mark { color: var(--signal); }
.methods .text-link { display: inline-block; font-size: var(--text-label); font-weight: 500; margin-top: 48px; }
footer { display: grid; font-size: var(--text-label); gap: 48px 24px; grid-template-columns: 5fr 4fr 3fr; line-height: 1.5; padding: 96px var(--page-pad) 48px; }
footer strong { display: block; font-weight: 500; margin-bottom: 12px; }
footer p { color: var(--muted); margin: 0; max-width: 40ch; }
footer > a { justify-self: end; }
footer > a:hover { color: var(--signal); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.research-index { min-height: 100vh; }
.index-hero { display: grid; gap: 32px; grid-template-columns: repeat(12, 1fr); padding: calc(64px + var(--section-space)) var(--page-pad) var(--section-space); }
.index-hero .label { grid-column: 1 / 4; }
.index-hero h1 { font-size: var(--text-display); font-weight: 500; grid-column: 1 / 10; letter-spacing: -0.065em; line-height: 0.9; margin: 0; }
.index-hero > p:last-child { grid-column: 8 / 13; line-height: 1.5; margin: 0; }
.research-list { border-top: 1px solid var(--line); }
.research-entry a { display: grid; gap: 24px; grid-template-columns: 2fr 6fr 4fr; padding: 48px var(--page-pad); transition: background 180ms var(--ease); }
.research-entry + .research-entry { border-top: 1px solid var(--line); }
.research-entry a:hover { background: var(--signal); }
.research-entry span { font-size: var(--text-label); font-weight: 500; }
.research-entry h2 { font-size: var(--text-subhead); font-weight: 500; line-height: 1.1; margin: 0; }
.research-entry p { font-size: var(--text-label); line-height: 1.5; margin: 0; }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.motion-ready figure[data-reveal] .draw-line { stroke-dashoffset: 1200; }
.motion-ready figure[data-reveal].is-visible .draw-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease) 120ms; }
.motion-ready figure[data-reveal] .plot-dot { opacity: 0; transform: scale(0); }
.motion-ready figure[data-reveal].is-visible .plot-dot { opacity: 1; transform: scale(1); transition: opacity 300ms var(--ease) 360ms, transform 500ms var(--ease) 360ms; }
.motion-ready figure[data-reveal] .cluster-bars rect { transform: scaleY(0); }
.motion-ready figure[data-reveal].is-visible .cluster-bars rect { transform: scaleY(1); transition: transform 700ms var(--ease); }
.motion-ready figure[data-reveal].is-visible .cluster-bars rect:nth-child(2n) { transition-delay: 80ms; }
.motion-ready figure[data-reveal].is-visible .cluster-bars rect:nth-child(3n) { transition-delay: 140ms; }
.motion-ready figure[data-reveal] .bar-row i { transform: scaleX(0); }
.motion-ready figure[data-reveal].is-visible .bar-row i { transform: scaleX(1); transition: transform 950ms var(--ease) 100ms; }
@media (max-width: 760px) {
  :root { --text-body: 1rem; --text-subhead: 1.25rem; }
  .article-hero { padding-top: 96px; }
  .article-hero > .label { grid-column: 1 / 11; }
  .article-hero h1, .subtitle { grid-column: 1 / 13; }
  .article-meta { gap: 16px; grid-column: 1 / 13; grid-template-columns: 1fr; margin-top: 32px; }
  .article-grid { gap: 48px 16px; }
  .section-mark, .article-copy, .lead, .margin-stat, .article-figure { grid-column: 1 / 13; }
  .margin-stat { margin-top: 16px; }
  .pull-quote p { grid-column: 1 / 13; }
  .pull-quote cite { grid-column: 1 / 8; }
  .pull-quote { column-gap: 16px; }
  .article-figure { margin-top: 32px; }
  .bar-row { align-items: start; grid-template-columns: 1fr; }
  .process-figure li { grid-template-columns: 2fr 10fr; }
  .bar-row i { height: 64px; }
  footer { grid-template-columns: 1fr; }
  footer > a { justify-self: start; }
  .index-hero .label, .index-hero h1, .index-hero > p:last-child { grid-column: 1 / 13; }
  .research-entry a { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  .motion-ready figure[data-reveal] .draw-line { stroke-dashoffset: 0; }
  .motion-ready figure[data-reveal] .plot-dot { opacity: 1; transform: none; }
  .motion-ready figure[data-reveal] .cluster-bars rect, .motion-ready figure[data-reveal] .bar-row i { transform: none; }
}
