:root {
  --bg-color: #f7f8f5;
  --text-color: #101413;
  --secondary-text: #4c5550;
  --border-color: #d9dfd8;
  --panel-color: #ffffff;
  --accent-color: #20483a;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  background: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { width: min(78rem, calc(100% - clamp(2rem, 6vw, 6rem))); margin-inline: auto; }
.narrow { max-width: 72ch; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--secondary-text);
  outline-offset: 5px;
}
img { display: block; width: 100%; height: auto; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #000; border-radius: 8px; }
figure { margin: 0; }
p { margin: 0 0 20px; }
strong { font-weight: 700; }
h1, h2 { font-weight: 750; }
h2 {
  font-size: var(--type-section);
  letter-spacing: -.048em;
  line-height: 1.1;
  margin: 0 0 1.65rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: .5rem;
}
h3 { font-size: var(--type-subhead); line-height: 1.35; font-weight: 700; margin: 0 0 12px; }
.lead { font-size: var(--type-lead); line-height: 1.5; color: var(--secondary-text); }
.note, figcaption { font-size: var(--type-support); color: var(--secondary-text); line-height: 1.6; }
.note, figcaption { margin-top: 16px; }
.section { padding-block: 3rem; }
.band { background: transparent; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 20; background: var(--panel-color); padding: 12px; }
.skip-link:focus { top: 8px; }

.site-header { border-bottom: 1px solid var(--border-color); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 1.15rem; }
.wordmark { font-weight: 700; white-space: nowrap; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem clamp(.9rem, 2.5vw, 1.9rem); }
.nav-links a, .text-link, footer > a:last-child {
  font-size: var(--type-body);
  font-weight: 630;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.nav-links a:hover, .text-link:hover, footer > a:last-child:hover { border-color: var(--text-color); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-bottom: 1px solid var(--border-color); padding: 2px 0; background: none; color: var(--text-color); font-size: var(--type-body); text-decoration: none; }
.button:hover { border-color: var(--text-color); }

.project-hero { padding-block: clamp(2.25rem, 4vw, 3.5rem) 1rem; text-align: left; }
.project-hero h1 {
  margin: 0 0 1.35rem;
  font-size: var(--type-title);
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: initial;
}
.project-hero h1 span {
  display: block;
  margin-top: .37em;
  font-size: var(--type-section);
  letter-spacing: -.039em;
  line-height: 1.12;
  white-space: normal;
}
.project-authors, .project-affiliations { justify-content: flex-start; margin-inline: 0; }
.project-authors { max-width: 115ch; font-size: var(--type-body); }
.project-affiliations { max-width: 115ch; font-size: var(--type-support); }
.project-resources {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  max-width: none;
  gap: .5rem;
  margin: 1.4rem 0 .65rem;
}
.project-resources .resource-chip {
  gap: .8rem;
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: .62rem .9rem;
  background: var(--panel-color);
  color: var(--text-color);
  font-size: var(--type-body);
  font-weight: 660;
}
.project-resources li:first-child .resource-chip { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.project-resources a.resource-chip:hover { background: #edf0ea; }
.project-resources li:first-child a.resource-chip:hover { background: #173b2f; }
.project-jump-links { justify-content: flex-start; margin: 0; font-size: var(--type-body); }
.project-preview { width: 100%; max-width: none; margin: clamp(1.4rem, 3vw, 2.2rem) 0 0; }
.project-preview > a { padding: clamp(.25rem, 1.2vw, .65rem); border-radius: 10px; }

.intro > p { max-width: 720px; }
.highlights { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 36px; }
.highlights strong { display: block; font-size: var(--type-section); font-weight: 730; line-height: 1; margin-bottom: 12px; letter-spacing: -.04em; }
.highlights strong span { font-size: var(--type-support); color: var(--secondary-text); }
.highlights p { font-size: var(--type-support); color: var(--secondary-text); margin: 0; }

.dataset-counts { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding-block: 24px; margin-block: 28px; border-block: 1px solid var(--border-color); }
.dataset-counts strong { display: block; font-size: var(--type-section); font-weight: 730; line-height: 1.1; letter-spacing: -.045em; }
.dataset-counts span { display: block; font-size: var(--type-support); color: var(--secondary-text); margin-top: 6px; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.media-split { align-items: center; margin-top: 36px; }
.side-copy p { color: var(--secondary-text); }
.paper-figure { margin-top: 32px; }
.paper-figure img { border-radius: 6px; background: #fff; }
.comparison { margin-top: 40px; }
.comparison > div:first-child { max-width: 660px; }
.comparison p { color: var(--secondary-text); }
.three-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; margin-top: 32px; }
.three-columns > div { padding-top: 16px; border-top: 1px solid var(--border-color); }
.three-columns p { color: var(--secondary-text); }
.three-columns .metric { color: var(--text-color); font-size: var(--type-support); }
.wide-loop { margin-top: 32px; }
.method-figure { background: #fff; padding: 16px 8px; border-radius: 8px; }
.method-steps { margin-top: 28px; }

.tab-buttons { display: flex; gap: 24px; margin-top: 28px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.tab-buttons button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 10px 0; color: var(--secondary-text); font-size: var(--type-body); }
.tab-buttons button[aria-selected=true] { color: var(--text-color); border-color: var(--text-color); font-weight: 600; }
.table-scroll { width: 100%; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; font-size: var(--type-support); white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border-color); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { color: var(--secondary-text); font-weight: 600; border-bottom-color: var(--secondary-text); vertical-align: bottom; }
thead th span { display: block; }
tbody th { font-weight: 400; }
tbody tr.ours { background: var(--panel-color); }
tbody tr.ours th, tbody tr.ours td { font-weight: 600; }
tbody tr.ours th:first-child { padding-left: 8px; }
table small { display: block; font-size: var(--type-support); font-weight: 400; color: var(--secondary-text); }
.subsection { margin-top: 48px; }
.section-subtitle { font-size: var(--type-subhead); font-weight: 720; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 20px; }
.subsection > p { color: var(--secondary-text); }
details { margin-top: 28px; padding: 16px 0; border-block: 1px solid var(--border-color); }
summary { cursor: pointer; font-size: var(--type-body); font-weight: 500; }
details[open] summary { margin-bottom: 24px; }
.bar-chart { padding-top: 4px; }
.bar-row { display: grid; grid-template-columns: 142px minmax(0,1fr) 3.4rem; gap: 10px; align-items: center; margin-bottom: 18px; font-size: var(--type-support); line-height: 1.3; }
.bar-track { height: 12px; background: var(--border-color); }
.bar-fill { height: 100%; background: #B6AA98; }
.bar-row.ours { font-weight: 600; }
.bar-row.ours .bar-fill { background: var(--text-color); }
.bar-value { font-variant-numeric: tabular-nums; text-align: right; }

.muted { color: var(--secondary-text); }
.demo-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px 24px; margin-top: 32px; }
.demo-grid figcaption { font-size: var(--type-support); font-weight: 650; color: var(--text-color); margin-top: 10px; }
.motion-button { margin-top: 24px; }
.full-video { margin-top: 28px; }
footer { margin-top: 32px; padding-block: 32px 64px; border-top: 1px solid var(--border-color); color: var(--secondary-text); font-size: var(--type-support); }
.load-error { padding: 16px; border-left: 2px solid var(--secondary-text); background: var(--panel-color); }

@media (max-width: 800px) {
  .split { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .highlights { gap: 24px; }
  .three-columns { gap: 20px; }
}
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; }
  .section { padding-block: 2rem; }
  h2 { margin-bottom: 1.5rem; }
  .highlights { grid-template-columns: 1fr; gap: 24px; }
  .highlights > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
  .highlights strong { margin: 0; }
  .dataset-counts { grid-template-columns: 1fr 1fr; }
  .three-columns { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .three-columns p { margin-bottom: 10px; }
  .demo-grid { grid-template-columns: minmax(0,1fr); }
  .bar-row { grid-template-columns: 136px minmax(0,1fr) 3.4rem; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
