@font-face { font-family: 'Source Serif 4'; src: url('assets/fonts/source-serif-4.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }
:root { --paper: #f7f9f9; --ink: #17232e; --muted: #5e6b74; --line: #dce3e7; --accent: #285873; --sans: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 38px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.65 'Source Serif 4', Georgia, serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: var(--sans); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 30; padding: 10px 20px; background: white; }
.skip-link:focus { top: 12px; }

.site-header { position: absolute; top: 0; left: 0; z-index: 5; width: 100%; padding: 28px 42px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-family: var(--sans); }
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: .2px; text-decoration: none; }
.site-header nav { display: flex; gap: 28px; font-size: 14px; }
.site-header nav a { text-decoration: none; opacity: .9; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }
.site-header a:focus-visible, .cover-explore:focus-visible { outline-color: #fff; }
.cover { position: relative; height: min(820px, 92svh); min-height: 580px; background: #102132; color: #fff; overflow: hidden; }
.cover-images { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; gap: 3px; position: absolute; inset: 0; }
.cover-images img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,21,33,.35), rgba(8,21,33,.38) 38%, rgba(8,21,33,.78)); }
.cover-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 76px 24px 100px; text-align: center; }
.cover-wordmark { margin: 0 0 14px; font-size: clamp(72px, 14vw, 172px); font-weight: 500; letter-spacing: -.045em; line-height: 1; text-shadow: 0 5px 36px rgba(0,0,0,.2); }
.cover-subtitle { margin: 12px 0 0; font-size: clamp(19px, 2.1vw, 28px); line-height: 1.45; font-weight: 400; max-width: 760px; text-wrap: balance; color: #f2f6f8; }
.cover-explore { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; font: 14px/1.5 var(--sans); text-decoration: none; color: #f3f6f8; }
.cover-explore span { font-size: 25px; transition: transform .2s; }
.cover-explore:hover span { transform: translateY(4px); }

.reading-layout { display: grid; grid-template-columns: 156px minmax(0, 870px); gap: clamp(44px, 5vw, 86px); justify-content: center; max-width: 1280px; margin: auto; padding: 76px 48px 56px; align-items: start; }
.outline { position: sticky; top: 44px; padding-top: 6px; }
.outline nav { display: grid; gap: 3px; }
.outline a { padding: 9px 0; font: 14px/1.45 var(--sans); text-decoration: none; color: #74818a; }
.outline a:hover, .outline a[aria-current='true'] { color: var(--accent); }
.outline a[aria-current='true'] { font-weight: 600; }
.article { min-width: 0; }
.container { width: 100%; margin: 0; padding: 0; }
.title-block { padding-bottom: 20px; }
h1 { font-weight: 500; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.18; letter-spacing: -.65px; margin: 0 0 24px; text-wrap: balance; }
.authors { display: flex; flex-wrap: wrap; gap: 7px 18px; font: 17px/1.6 var(--sans); margin: 0 0 14px; }
.authors span, .affiliations span { white-space: nowrap; }
.authors sup, .affiliations sup { font-size: 10px; margin-left: 2px; color: var(--accent); }
.affiliations { display: flex; flex-wrap: wrap; gap: 5px 16px; font: 13px/1.6 var(--sans); color: var(--muted); margin-bottom: 17px; }
.affiliations sup { margin: 0 3px 0 0; }
.submission-status { font: 13px/1.6 var(--sans); color: var(--muted); margin-bottom: 24px; }
.hero-description { font-size: 20px; line-height: 1.6; color: #455661; max-width: 800px; margin: 0 0 25px; }
.resource-links { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 8px 15px; border: 1px solid #b9c5cd; border-radius: 6px; font: 14px/1.4 var(--sans); text-decoration: none; background: transparent; }
.pill:hover { background: #e8eef2; border-color: var(--accent); }
.pill.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.primary:hover { background: var(--accent); border-color: var(--accent); }
.pill.pending { color: var(--muted); }
.pill.pending small { font-size: 12px; }
figcaption { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 14px; }

.section { padding-top: 46px; padding-bottom: 26px; }
.section-heading { margin-bottom: 25px; }
h2 { font-size: 35px; font-weight: 400; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 19px; }
.section-intro { margin: 0; color: #465862; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.video-section video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #102132; border-radius: 9px; box-shadow: 0 12px 36px rgba(14,31,45,.1); }
.media-note { font: 13px/1.6 var(--sans); color: var(--muted); margin: 16px 0 0; }
.media-note a { color: var(--accent); }
.paper-figure { margin: 0; }
.paper-figure a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: box-shadow .2s; }
.paper-figure a:hover { box-shadow: 0 10px 32px rgba(32,57,72,.08); cursor: zoom-in; }
.paper-figure img { margin: auto; width: 100%; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.method-steps h3 { font-weight: 500; font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.method-steps p { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0; }
.method-note { padding: 20px 22px; margin-top: 28px; background: #edf2f5; border-radius: 7px; font-size: 17px; }
.method-note p { margin: 6px 0 0; color: #4d606e; }

.results-chart { padding: 24px 26px; margin: 0 0 28px; border: 1px solid #d6e1e8; background: #f0f5f8; border-radius: 9px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.chart-header h3 { font-size: 21px; font-weight: 500; margin: 0; line-height: 1.35; }
.cohort-switch { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid #cfdae2; border-radius: 7px; }
.cohort-switch button { padding: 6px 12px; font-size: 12px; line-height: 1.4; color: #4f6474; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.cohort-switch button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(19,44,61,.12); }
.success-bars { display: grid; gap: 17px; }
.bar-row { display: grid; grid-template-columns: 98px 1fr 55px; align-items: center; gap: 14px; font: 13px/1.4 var(--sans); }
.bar-name { color: #52626e; }
.bar-track { height: 20px; background: #dce5eb; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: var(--value); background: #93a6b3; border-radius: 3px; transition: width .45s ease; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: #586c7a; }
.is-ours .bar-name, .is-ours .bar-value { color: var(--accent); font-weight: 700; }
.is-ours .bar-fill { background: var(--accent); }
.results-chart figcaption { font-size: 14px; margin-top: 24px; }
.table-scroll { overflow-x: auto; border-top: 1px solid #a9b8c3; border-bottom: 1px solid #a9b8c3; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font: 14px/1.6 var(--sans); }
caption { padding: 14px 15px; text-align: left; white-space: normal; font-size: 12px; color: var(--muted); }
th, td { padding: 13px 15px; border-top: 1px solid var(--line); }
thead th { font-size: 12px; color: var(--muted); font-weight: 500; background: #edf1f3; }
tbody th { vertical-align: middle; font-weight: 500; }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.ours td { color: var(--accent); font-weight: 700; background: #e9f0f4; }
.split th, .split td { border-top: 1px solid #a9b8c3; }
.table-note { font-size: 15px; color: var(--muted); margin: 15px 0 28px; }
.result-figure { max-width: 740px; margin: auto; }
.results-context { font-size: 17px; color: #4c5e69; margin: 22px 0 0; }
.reconstruction-heading { font-size: 25px; font-weight: 500; line-height: 1.3; margin: 38px 0 20px; }
.reconstruction-figure a { text-decoration: none; }
.reconstruction-labels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 14px; text-align: center; color: var(--ink); font: 500 clamp(10px, 1.2vw, 13px)/1.4 var(--sans); }
.reconstruction-labels span { overflow-wrap: anywhere; }
.dataset-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 27px 0 30px; }
.dataset-stats > div { text-align: center; padding: 20px 12px 17px; border: 1px solid #d9e2e8; border-radius: 7px; background: #fff8; }
.dataset-stats strong { display: block; font-size: 35px; font-weight: 500; color: var(--accent); line-height: 1.2; }
.dataset-stats span { display: block; font: 12px/1.5 var(--sans); color: var(--muted); margin-top: 8px; }
.dataset-description { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 23px; font-size: 17px; line-height: 1.6; }
.dataset-description p { margin: 0; }

.citation-section { padding-top: 54px; }
.citation-block { padding-top: 32px; border-top: 1px solid var(--line); }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.citation-heading h2 { margin: 0; font-size: 30px; }
.citation-heading button { font-size: 12px; min-height: 34px; border: 1px solid #bfccd5; border-radius: 5px; padding: 6px 11px; background: transparent; color: var(--accent); cursor: pointer; }
.citation-heading button:hover { background: #e7eff4; }
pre { font: 12px/1.8 Menlo, Consolas, monospace; padding: 22px 24px; margin: 22px 0 0; overflow-x: auto; background: #eaf0f4; color: #304858; border-radius: 7px; }
.citation-note, .copy-status { font: 12px/1.6 var(--sans); color: var(--muted); margin: 12px 0 0; }
.copy-status:empty { display: none; }
footer.container { max-width: 1180px; margin: auto; padding: 25px 48px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font: 12px/1.5 var(--sans); color: #72818c; }

#figure-dialog { width: min(1320px, calc(100vw - 40px)); max-width: none; max-height: calc(100svh - 40px); padding: 20px; border: 1px solid #d0dae1; border-radius: 10px; background: #fff; color: var(--ink); }
#figure-dialog::backdrop { background: rgba(7,20,31,.78); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 18px; }
.dialog-heading h2 { font: 15px/1.4 var(--sans); margin: 0; }
.dialog-heading button { border: 1px solid #c5d0d8; border-radius: 5px; padding: 7px 12px; background: #fff; cursor: pointer; color: var(--ink); }
#expanded-figure { margin: auto; max-height: calc(100svh - 130px); width: auto; object-fit: contain; }

@media (max-width: 980px) {
  .reading-layout { display: block; max-width: 870px; padding: 52px 30px 38px; }
  .outline { display: none; }
  h1 { font-size: 38px; }
  .cover { min-height: 560px; height: 86svh; }
  .method-steps { gap: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .site-header { padding: 21px 22px; }
  .site-header nav { gap: 22px; }
  .cover { min-height: 500px; height: 84svh; max-height: 760px; }
  .cover-images { grid-template-columns: 1fr; }
  .cover-images img:not(:first-child) { display: none; }
  .cover-images img:first-child { object-position: 50% 38%; }
  .cover-shade { background: linear-gradient(180deg, rgba(8,21,33,.3), rgba(8,21,33,.42) 40%, rgba(8,21,33,.76)); }
  .cover-title { padding: 70px 18px 90px; }
  .cover-wordmark { font-size: 76px; }
  .cover-subtitle { font-size: 21px; max-width: 340px; }
  .cover-explore { bottom: 27px; font-size: 13px; white-space: nowrap; }
  .reading-layout { padding: 40px 21px 28px; }
  h1 { font-size: 31px; line-height: 1.22; }
  .hero-description { font-size: 18px; }
  .pill { font-size: 13px; padding: 8px 11px; }
  .section { padding-top: 34px; padding-bottom: 20px; }
  h2 { font-size: 30px; }
  .paper-figure a { padding: 12px; }
  .method-steps { grid-template-columns: 1fr; gap: 18px; }
  .method-steps h3 { font-size: 21px; margin-bottom: 5px; }
  .method-note { padding: 18px; }
  .chart-header { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .results-chart { padding: 20px 17px; }
  .bar-row { grid-template-columns: 80px 1fr 48px; gap: 9px; font-size: 12px; }
  .bar-track { height: 18px; }
  th, td { padding: 12px; }
  .dataset-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dataset-description { grid-template-columns: 1fr; gap: 15px; }
  .citation-heading h2 { font-size: 27px; }
  pre { padding: 18px; font-size: 11px; }
  footer.container { padding: 22px; flex-direction: column; gap: 5px; }
  #figure-dialog { padding: 14px; width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-fill, .cover-explore span, .paper-figure a { transition: none; }
}
