:root {
  --ink: #171b22;
  --muted: #5e6875;
  --paper: #f6f7f4;
  --white: #ffffff;
  --line: #d7dce1;
  --blue: #1f5f8b;
  --green: #287a52;
  --green-dark: #175338;
  --rust: #b84525;
  --gold: #d2a52b;
  --radius: 6px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 19px;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: #e9edf0; text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  height: 72svh;
  min-height: 520px;
  max-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background-image: url("assets/hero-conference-hall.png");
  background-size: cover;
  background-position: center 52%;
  color: var(--white);
}
.hero-scrim { position: absolute; inset: 0; background: rgba(10, 14, 20, 0.48); }
.hero-content {
  position: relative;
  width: min(var(--content), calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 64px;
  max-width: var(--content);
}
.eyebrow {
  margin: 0 0 10px;
  color: #d7ebe0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.eyebrow.dark { color: var(--green-dark); }
.hero h1 {
  margin: 0;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}
.hero-copy { max-width: 720px; margin: 20px 0 0; font-size: 21px; line-height: 1.43; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.hero-actions, .paper-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: #e6ebee; }

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
}
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--green-dark); }
.button-ghost { border-color: rgba(255, 255, 255, 0.72); color: var(--white); background: rgba(23, 27, 34, 0.34); }
.button-ghost:hover { background: rgba(23, 27, 34, 0.7); }
.button-light { background: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-outline { border-color: var(--ink); color: var(--ink); }

.section-inner { width: min(var(--content), calc(100% - 56px)); margin: 0 auto; }
.section-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-band { background: var(--ink); color: var(--white); }
.metric-grid { min-height: 118px; display: grid; grid-template-columns: repeat(5, 1fr); }
.metric-grid > div { padding: 24px 18px; border-left: 1px solid #39414a; display: flex; flex-direction: column; justify-content: center; }
.metric-grid > div:last-child { border-right: 1px solid #39414a; }
.metric-grid strong { font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.metric-grid span { margin-top: 8px; color: #bec6cd; font-size: 12px; line-height: 1.35; }

.summary-section, .results-section, .datasets-section, .reproduce-section, .paper-section { padding-top: 92px; padding-bottom: 92px; }
.method-section, .visual-evidence { padding: 92px 0; }
.section-heading { max-width: 760px; }
.section-heading.wide { max-width: 900px; }
.section-heading h2, .construction-grid h2, .limitations-grid h2, .paper-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.17;
  letter-spacing: 0;
}
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.summary-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; margin-top: 42px; align-items: start; }
.lead { margin: 0; font-family: Georgia, serif; font-size: 24px; line-height: 1.5; }
.claim-box { padding: 22px 0 22px 24px; border-left: 4px solid var(--rust); }
.claim-box p { margin: 10px 0 0; color: var(--muted); }
.status-label { display: inline-block; color: var(--green-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.figure-wide { margin: 44px 0 0; }
.figure-button { width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.figure-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
figure { margin: 0; }
figcaption { margin-top: 11px; color: var(--muted); font-size: 13px; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-steps article { padding: 24px 22px 28px; border-right: 1px solid var(--line); }
.method-steps article:first-child { border-left: 1px solid var(--line); }
.method-steps span { color: var(--rust); font-size: 12px; font-weight: 800; }
.method-steps h3 { margin: 8px 0 6px; font-size: 17px; }
.method-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; align-items: start; }
.figure-pair figure { background: var(--white); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); }
.evidence-pair figure { background: var(--white); }

.results-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border: 1px solid var(--line); }
.result-number { padding: 22px; border-right: 1px solid var(--line); display: grid; }
.result-number:last-child { border-right: 0; }
.result-number span { color: var(--green-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.result-number strong { margin-top: 5px; font-family: Georgia, serif; font-size: 34px; line-height: 1.1; }
.result-number small { margin-top: 4px; color: var(--muted); }
.tab-shell { margin-top: 34px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 13px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 750; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }
.tab-panel { padding: 34px 0 0; }
.tab-panel:not([hidden]) { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 52px; align-items: center; }
.tab-panel[hidden] { display: none; }
.track-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 26px; }
.track-copy p { color: var(--muted); }
.text-link { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.public-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 28px; align-items: center; }
.baseline-table-wrap { grid-column: 1 / -1; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.table-note, .dataset-footnote { color: var(--muted); font-size: 13px; }

.construction-band { padding: 78px 0; background: var(--green-dark); color: var(--white); }
.construction-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.construction-grid p:not(.eyebrow) { color: #d6e8dd; }
.construction-metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,0.28); }
.construction-metrics div { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.28); }
.construction-metrics div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.28); }
.construction-metrics dt { color: #bdd7c7; font-size: 12px; }
.construction-metrics dd { margin: 4px 0 0; font-family: Georgia, serif; font-size: 25px; }
.construction-metrics small { display: block; font-family: Inter, sans-serif; color: #bdd7c7; font-size: 11px; }

.dataset-list { margin-top: 46px; border-top: 1px solid var(--line); }
.dataset-item { display: grid; grid-template-columns: 0.7fr 0.8fr 1.2fr 0.65fr; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.dataset-item h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; }
.dataset-item p { margin: 0; color: var(--muted); font-size: 14px; }
.dataset-kicker { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.availability { width: max-content; padding: 3px 7px; border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.availability.open { color: #164e34; background: #dcefe4; }
.availability.licensed { color: #78350f; background: #f7e9bf; }
.dataset-item dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dataset-item dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.dataset-item dd { margin: 2px 0 0; font-weight: 800; }
.dataset-item .text-link { font-size: 13px; }

.reproduce-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; margin-top: 42px; }
.command-panel { background: #11151b; color: #e8edf1; border-radius: var(--radius); overflow: hidden; }
.command-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #333b45; color: #aeb8c2; font-size: 12px; }
pre { margin: 0; overflow-x: auto; }
.command-panel pre { padding: 22px; font-size: 13px; line-height: 1.8; }
.copy-button { padding: 6px 10px; border: 1px solid #687481; border-radius: 3px; background: transparent; color: inherit; cursor: pointer; font-size: 12px; }
.copy-button:hover { background: rgba(255,255,255,0.08); }
.copy-button.dark { color: var(--ink); border-color: #7d8791; }
.resource-list { border-top: 1px solid var(--line); }
.resource-list a { display: flex; flex-direction: column; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.resource-list a:hover strong { color: var(--blue); }
.resource-list span { color: var(--muted); font-size: 13px; }

.limitations-band { padding: 74px 0; background: #20262e; color: var(--white); }
.limitations-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 72px; }
.limitations-grid ul { margin: 0; padding-left: 20px; }
.limitations-grid li { margin-bottom: 10px; color: #d3d9de; }

.paper-section { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: start; }
.paper-section > *, .construction-grid > *, .reproduce-grid > * { min-width: 0; }
.paper-copy > p:not(.eyebrow) { color: var(--muted); }
.citation-panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.citation-panel pre { margin: 14px 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

.site-footer { padding: 38px 0; background: var(--ink); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-inner p { margin: 3px 0 0; color: #aeb8c2; font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #dfe5e9; font-size: 13px; }

.figure-dialog { width: min(96vw, 1500px); max-height: 94vh; padding: 44px 16px 16px; border: 1px solid #555f69; border-radius: var(--radius); background: var(--white); }
.figure-dialog::backdrop { background: rgba(9, 12, 16, 0.82); }
.figure-dialog img { max-height: calc(94vh - 62px); margin: auto; object-fit: contain; }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid > div:nth-child(4), .metric-grid > div:nth-child(5) { border-top: 1px solid #39414a; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-steps article:nth-child(2) { border-right: 0; }
  .method-steps article:nth-child(3), .method-steps article:nth-child(4) { border-top: 1px solid var(--line); }
  .tab-panel:not([hidden]), .construction-grid, .reproduce-grid, .paper-section { grid-template-columns: 1fr; }
  .public-grid { grid-template-columns: 1fr 1fr; }
  .public-grid .track-copy { grid-column: 1 / -1; }
  .dataset-item { grid-template-columns: 0.55fr 0.8fr 1.25fr; }
  .dataset-item > .text-link { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 18px; }
  .nav-toggle { display: block; padding: 7px 10px; border: 1px solid #66717c; border-radius: 3px; color: var(--white); background: transparent; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 14px 18px 20px; background: var(--ink); border-top: 1px solid #39414a; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid #303740; }
  .section-inner, .hero-content { width: min(100% - 32px, var(--content)); }
  .hero { height: 76svh; min-height: 520px; max-height: 620px; background-position: 41% center; }
  .hero-content { padding-bottom: 40px; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 330px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid > div { min-height: 96px; padding: 18px 14px; border-top: 1px solid #39414a; }
  .metric-grid > div:first-child, .metric-grid > div:nth-child(2) { border-top: 0; }
  .metric-grid strong { font-size: 26px; }
  .summary-section, .results-section, .datasets-section, .reproduce-section, .paper-section { padding-top: 68px; padding-bottom: 68px; }
  .method-section, .visual-evidence { padding: 68px 0; }
  .section-heading h2, .construction-grid h2, .limitations-grid h2, .paper-copy h2 { font-size: 31px; }
  .summary-grid, .figure-pair, .limitations-grid { grid-template-columns: 1fr; gap: 30px; }
  .lead { font-size: 21px; }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps article { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .method-steps article:first-child { border-top: 0; }
  .results-overview { grid-template-columns: repeat(2, 1fr); }
  .result-number:nth-child(2) { border-right: 0; }
  .result-number:nth-child(3), .result-number:nth-child(4) { border-top: 1px solid var(--line); }
  .public-grid, .construction-metrics { grid-template-columns: 1fr; }
  .construction-band, .limitations-band { padding: 62px 0; }
  .construction-grid { gap: 38px; }
  .construction-metrics div:nth-child(odd) { border-right: 0; }
  .dataset-item { grid-template-columns: 1fr; gap: 14px; }
  .dataset-item > .text-link { grid-column: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
