:root {
  color-scheme: light;
  --ink: #152239;
  --muted: #52647a;
  --accent: #086d90;
  --accent-dark: #065674;
  --tint: #edf7fb;
  --rule: #dbe5ee;
  --canvas: #f7fafc;
  --paper: #fff;
  --anchor-offset: 82px;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(32, 55, 82, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--anchor-offset); }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
[hidden] { display: none !important; }

.siteWidth { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.headerInner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.siteBrand { color: var(--ink); font-weight: 780; letter-spacing: -.025em; text-decoration: none; }
.headerLink { font-size: .88rem; font-weight: 720; text-decoration: none; }
.headerLink:hover { text-decoration: underline; }
.projectHeader .siteBrand { flex: none; color: var(--accent-dark); }
.sectionLinks {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
}
.skipLink { position: fixed; top: 8px; left: 12px; z-index: 6; padding: 10px; background: var(--paper); transform: translateY(-160%); }
.skipLink:focus { transform: none; }

.projectLayout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.projectSidebar { position: sticky; top: calc(var(--anchor-offset) + 14px); align-self: start; padding-top: 22px; }
.projectSidebar h2 { margin: 0 0 8px 12px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.projectSidebar h2 a { display: inline-block; padding-block: 4px; text-decoration-color: #a5ccd9; }
.projectSidebar h2 a:hover { text-decoration-color: currentColor; }
.projectList { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.projectList a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  font-size: .92rem;
  text-decoration: none;
}
.projectList span { color: var(--muted); font-size: .75rem; }
.projectList a:hover, .projectList [aria-current] { border-color: #cee5ee; background: var(--tint); }
.projectList [aria-current] strong { color: var(--accent-dark); }

.projectMain { min-width: 0; }
.hero { padding: clamp(38px, 6vw, 78px) 0 38px; text-align: center; }
.hero h1, .indexHero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.15rem, 4.3vw, 4rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.047em;
  text-wrap: balance;
}
.hero h1, .hero .summary { margin-inline: auto; }
.hero :is(.authors, .actions) { justify-content: center; }
.venue, .sectionHeading > p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.authors { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; font-size: .94rem; font-weight: 650; }
.authors a { text-decoration-color: #a5ccd9; }
.authors a:hover { text-decoration-color: currentColor; }
.affiliation { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.summary { max-width: 70ch; margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.hero .summary { font-size: clamp(1rem, 2vw, 1.12rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: .87rem;
  font-weight: 720;
  text-decoration: none;
}
.button:hover { border-color: #afd7e5; background: var(--tint); color: var(--accent-dark); }
.button.primary { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.button.primary:hover { border-color: var(--ink); background: var(--ink); }
.codeStatus { flex-basis: 100%; color: var(--muted); font-size: .8rem; }

.yearFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--canvas);
}
.sectionLinks a, .yearFilter {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .84rem;
  font-weight: 720;
  text-decoration: none;
}
.sectionLinks a { flex: none; white-space: nowrap; }
.sectionLinks a:hover, .yearFilter:hover, .yearFilter[aria-pressed="true"] {
  border-color: #cde4ed;
  background: var(--tint);
  color: var(--accent-dark);
}
.yearFilter { cursor: pointer; }

.section { padding: clamp(40px, 6vw, 68px) 0; border-bottom: 1px solid var(--rule); }
.projectMain > .section:last-child { border-bottom: 0; }
.sectionHeading { margin-bottom: 18px; }
.sectionHeading h2 { margin: 0; font-size: clamp(1.65rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.036em; }
.sectionText, .conclusionText { max-width: 78ch; margin: 0 0 24px; color: var(--muted); line-height: 1.75; }
.conclusionText { margin-bottom: 0; }
.note, .tableCaption { margin: 12px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.videoFrame, .animationFrame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #081523;
  box-shadow: var(--shadow);
}
.videoFrame iframe, .animationFrame iframe { display: block; width: 100%; height: 100%; border: 0; }
.figure { margin: 24px 0 0; padding: clamp(12px, 2.4vw, 22px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 14px; color: var(--muted); font-size: .89rem; line-height: 1.65; }
.figure figcaption strong { color: var(--ink); }
.posterFigure { width: min(100%, 760px); padding: 8px; background: var(--canvas); }
.posterFigure a { display: block; }
.posterFigure img { border-radius: 6px; }

.tableWrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
.tableWrap table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .82rem; font-variant-numeric: tabular-nums; }
.tableWrap :is(th, td) { padding: 10px 11px; border-bottom: 1px solid var(--rule); }
.tableWrap thead th { background: var(--canvas); color: var(--muted); font-size: .76rem; font-weight: 750; }
.tableWrap tbody:last-child tr:last-child > :is(th, td) { border-bottom: 0; }
.tableWrap :is(.highlight-bg, .ours) { background: var(--tint); }
.tableWrap .ours { color: var(--accent-dark); font-weight: 750; }
.citationSection pre { overflow-x: auto; margin: 16px 0 0; padding: 17px 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--canvas); font: .82rem/1.65 Consolas, "Liberation Mono", monospace; }

.featureGrid, .datasetGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 24px; }
.featureGrid article, .datasetGrid article { padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--canvas); }
.featureGrid h3, .datasetGrid h3 { margin: 0 0 7px; font-size: 1rem; }
.featureGrid p, .datasetGrid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.datasetExtra { display: inline-block; margin-top: 9px; font-size: .85rem; font-weight: 650; }

.indexMain { min-height: 70vh; max-width: 1100px; padding-bottom: 70px; }
.indexHero { padding: clamp(40px, 6vw, 76px) 0 26px; }
.yearFilters { width: fit-content; }
.publicationCards { display: grid; gap: 16px; margin-top: 16px; }
.publicationCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 30%);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.publicationCard h2 { margin: 0; max-width: 36ch; font-size: clamp(1.2rem, 2.7vw, 1.7rem); line-height: 1.22; letter-spacing: -.025em; }
.publicationCard h2 a { color: var(--ink); text-decoration: none; }
.publicationCard h2 a:hover { color: var(--accent-dark); text-decoration: underline; }
.publicationCard .authors { margin-top: 10px; }
.publicationCard .summary { margin-top: 12px; }
.cardTeaser { display: grid; place-items: center; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--canvas); }
.cardTeaser img { display: block; width: 100%; max-height: 192px; object-fit: contain; }

.siteFooter { border-top: 1px solid var(--rule); background: var(--canvas); }
.footerInner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 84px; padding-block: 16px; }
.footerInner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .89rem; font-weight: 680; }

@media (max-width: 960px) {
  :root { --anchor-offset: 110px; }
  .projectHeader { display: grid; gap: 0; padding-top: 9px; padding-bottom: 3px; }
  .projectHeader .siteBrand { width: fit-content; }
  .sectionLinks { margin-inline: -4px; }
}

@media (max-width: 850px) {
  .siteWidth { width: calc(100% - 40px); }
  .projectLayout { gap: 22px; grid-template-columns: 135px minmax(0, 1fr); }
  .publicationCard { grid-template-columns: minmax(0, 1fr) minmax(165px, 27%); }
}

@media (max-width: 650px) {
  .siteWidth { width: calc(100% - 32px); }
  .headerInner { min-height: 55px; }
  .projectLayout { display: block; }
  .projectSidebar { position: static; padding-top: 16px; }
  .projectSidebar h2 { margin: 0 0 4px; }
  .projectList { display: flex; flex-wrap: wrap; }
  .projectList a { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; padding: 6px 9px; }
  .hero { padding-top: 30px; padding-bottom: 25px; }
  .sectionLinks a { padding: 6px 8px; }
  .publicationCard { grid-template-columns: 1fr; gap: 16px; }
  .cardTeaser img { max-height: 148px; }
  .footerInner { align-items: flex-start; flex-direction: column; }
}
