/* Shared public-site typography and layouts. Navigation is in menu.css. */
:root {
  --paper: #f7f5f1; --paper-2: #efebe4; --ink: #16181a; --ink-2: #454a4f; --ink-3: #5f656c;
  --rule: #ddd8ce; --rule-2: #cbc4b7; --accent: #1d5c45; --accent-ink: #f4f9f6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 80rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131513; --paper-2: #191c1a; --ink: #ecebe6; --ink-2: #b6b8b3; --ink-3: #a1a69f;
    --rule: #2c302d; --rule-2: #3a3f3b; --accent: #7fc4a3; --accent-ink: #10130f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 2.5rem; }
.narrow { max-width: 47rem; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 4.7vw, 4.35rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.4rem; margin-bottom: .7rem; }
p { margin: 0 0 1.2rem; }
.label { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.5rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 40rem; margin: 1.6rem 0 0; }
.btn { display: inline-block; font-size: .88rem; font-weight: 500; text-decoration: none; padding: .75rem 1.1rem; border-radius: 3px; border: 1px solid transparent; transition: background-color .15s, color .15s; white-space: nowrap; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { border-color: var(--rule-2); color: var(--ink-2); }
.btn-quiet:hover { border-color: var(--ink-2); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.text-link { display: inline-block; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule-2); padding: .4rem 0; font-size: .95rem; }
.text-link span { margin-left: .7rem; }
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.25rem; text-decoration: none; margin-right: auto; white-space: nowrap; }
.mark { font-size: 1.5rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transform: translateY(2px); }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { font-size: .88rem; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .4em; }
.head-cta { padding: .55rem 1rem; font-size: .85rem; }
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
.hero-copy { padding: 1rem 0 2rem; }
.hero-note { color: var(--ink-3); font-size: .84rem; margin-top: 1.8rem; }
.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band-alt, .closing { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band h2 { max-width: 35rem; }
.workflow-grid { list-style: none; padding: 0; margin: 2.8rem 0 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.workflow-grid li { border-top: 1px solid var(--rule-2); padding-top: 1.5rem; }
.workflow-grid .label { display: block; margin-bottom: 1rem; }
.workflow-grid p { font-size: .95rem; color: var(--ink-2); max-width: 23rem; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.editorial-grid > div > p:not(.label) { color: var(--ink-2); max-width: 35rem; }
.closing { padding: 4rem 0; }
.closing-row { display: flex; gap: 2rem; justify-content: space-between; align-items: center; }
.closing p:not(.label) { max-width: 35rem; color: var(--ink-2); margin: 0; }
.closing .label { margin-bottom: 1rem; }
.site-foot { padding: 3rem 0 2.5rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-mark { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 .4rem; }
.foot-note { color: var(--ink-3); font-size: .84rem; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; max-width: 39rem; font-size: .85rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-legal { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.foot-legal p { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); margin: 0; }
/* The illustration has its own caption; the canvas carries no research data. */
.pose-story { margin: 0; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; background: var(--paper-2); min-width: 0; }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--rule); }
.story-top .label { margin: 0; font-size: .62rem; }
.story-index { font: .65rem var(--mono); color: var(--accent); white-space: nowrap; }
.story-viewport { position: relative; height: clamp(17rem, 28vw, 23rem); }
.story-fallback, #pose-canvas { width: 100%; height: 100%; display: block; }
.story-fallback { object-fit: contain; }
#pose-canvas { position: absolute; inset: 0; visibility: hidden; }
.story-ready #pose-canvas { visibility: visible; }
.story-ready .story-fallback { visibility: hidden; }
.story-annotation { position: absolute; inset: auto 1.3rem .8rem; display: flex; justify-content: space-between; gap: 1rem; font: .58rem var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.story-description { padding: 1.2rem 1.3rem .5rem; border-top: 1px solid var(--rule); min-height: 7.5rem; }
.story-description h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.story-description p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.story-controls { display: flex; align-items: center; gap: .7rem; padding: .8rem 1.3rem; }
.story-play { padding: .35rem .5rem; min-width: 4rem; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--paper); color: var(--ink); font: .7rem var(--mono); }
.story-time { font: .58rem var(--mono); white-space: nowrap; color: var(--ink-3); }
.pose-story figcaption { padding: .9rem 1.3rem; border-top: 1px solid var(--rule); font-size: .68rem; color: var(--ink-3); line-height: 1.5; }
/* Supporting pages */
.page-intro { padding: clamp(3.5rem, 8vw, 6rem) 0 3.5rem; border-bottom: 1px solid var(--rule); }
.page-intro h1 { max-width: 57rem; }
.page-intro .lede { max-width: 43rem; }
.article-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.contents { align-self: start; position: sticky; top: 7rem; }
.contents .label { margin-bottom: 1rem; }
.contents nav { display: grid; gap: .8rem; }
.contents a { font-size: .87rem; color: var(--ink-2); text-decoration: none; }
.article-body { max-width: 48rem; }
.article-section { margin-bottom: 3.5rem; }
.article-section + .article-section { padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.article-section > p { color: var(--ink-2); }
.surface-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.surface-list li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.surface-list p, .evidence-rows p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.reading-list { padding-left: 1.3rem; color: var(--ink-2); }
.reading-list li { margin-bottom: 1rem; padding-left: .3rem; }
.reading-list strong { font-weight: 600; color: var(--ink); }
.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-size: 1rem; }
.faq p { margin: 1rem 0 0; color: var(--ink-2); font-size: .95rem; }
.method-measures { margin: 1.8rem 0; }
.method-measures > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1.3rem; padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.method-measures dt { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.method-measures dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.reference { font-size: .86rem; border-left: 2px solid var(--accent); padding-left: 1.2rem; margin-top: 1.8rem; }
.evidence-rows { display: grid; gap: 1.8rem; margin-top: 1.8rem; }
.evidence-rows article { border-left: 2px solid var(--rule-2); padding-left: 1.4rem; }
.evidence-rows .label { margin-bottom: .7rem; color: var(--accent); font-size: .65rem; }
@media (max-width: 70rem) { .hero-grid { gap: 2rem; } .hero h1 { font-size: clamp(2.6rem, 4.2vw, 3.5rem); } }
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { max-width: 42rem; }
  .hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
  .pose-story { max-width: 45rem; width: 100%; }
  .story-viewport { height: clamp(18rem, 46vw, 26rem); }
  .editorial-grid { gap: 2.5rem; }
  .article-layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 46rem) {
  body { font-size: 16px; }
  .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .workflow-grid, .editorial-grid, .surface-list { grid-template-columns: 1fr; gap: 1.8rem; }
  .workflow-grid p { max-width: none; }
  .closing-row { flex-direction: column; align-items: flex-start; }
  .article-layout { display: block; padding-top: 2rem; }
  .contents { position: static; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
  .contents nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
  .method-measures > div { grid-template-columns: 1fr; gap: .5rem; }
  .story-time { display: none; }
  .story-description { min-height: 8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.evidence-rows .figure { font: 1.5rem/1.2 var(--serif); color: var(--ink); margin: .6rem 0 .8rem; }

/* Progress tiles on the Evidence page: a headline number, one sentence and one bar; the figures sit in a details block. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.6rem 0 0; }
.tile { position: relative; margin: 0; border: 1px solid var(--rule); background: var(--paper-2); padding: 1.3rem 1.4rem 1.1rem; }
.tile .label { margin-bottom: .7rem; }
.tile-number { margin: 0; font: 400 2.9rem/1.05 var(--serif); letter-spacing: -.01em; }
.tile-text { margin: .55rem 0 1.1rem; color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.tile-bar { position: relative; height: 10px; border-radius: 5px; background: var(--rule); margin-bottom: 1.7rem; }
.tile-ghost, .tile-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; }
.tile-ghost { width: 0; background: var(--rule-2); }
.tile-fall .tile-ghost { width: var(--before); }
.tile-fill { width: var(--after); background: var(--accent); transition: width 1.2s cubic-bezier(.2, .7, .2, 1) .15s; }
.tiles-ready .tile:not(.is-in) .tile-fill { width: 0; }
.tile-mark { position: absolute; top: -4px; left: var(--before); width: 2px; height: 18px; margin-left: -1px; background: var(--ink-3); }
.tile-note { position: absolute; top: 17px; left: var(--before); transform: translateX(-50%); font: .62rem var(--mono); color: var(--ink-3); white-space: nowrap; }
.tile-spark { display: block; width: 100%; height: 60px; margin-bottom: .6rem; overflow: visible; }
.tile-spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s ease-out .15s; }
.tiles-ready .tile:not(.is-in) .tile-spark path { stroke-dashoffset: 1; }
.tile-spark circle { fill: var(--accent); transition: opacity .3s 1.5s; }
.tiles-ready .tile:not(.is-in) .tile-spark circle { opacity: 0; }
.tile details { margin-top: .2rem; font-size: .78rem; }
.tile summary { cursor: pointer; font: .62rem var(--mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.tile table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.tile th, .tile td { padding: .35rem 0; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; color: var(--ink-3); }
.tile th { font: .6rem var(--mono); }
.tile td:not(:first-child), .tile th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; padding-left: 1rem; }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } .tile-number { font-size: 2.4rem; } }
