:root {
  --ink: #24354a;
  --ink-strong: #16293c;
  --muted: #5f7184;
  --muted-2: #788ba0;
  --line: #d8e7f2;
  --line-strong: #b9d2e3;
  --light: #fafaf8;
  --surface-alt: #f7f5ef;
  --paper: #ffffff;
  --link: #0e78b2;
  --link-hover: #095f91;
  --link-soft: #eaf7f0;
  --warm: #bd5a13;
  --ok: #2da36d;
  --container: 960px;
  --narrow: 820px;
  --sans: "Noto Sans", Arial, sans-serif;
  --display: "Google Sans", "Noto Sans", Arial, sans-serif;
  --serif: "Castoro", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(var(--narrow), calc(100% - 48px)); }
.has-text-centered { text-align: center; }

.top-nav {
  background: var(--paper);
}
.nav-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav-links a {
  color: var(--muted);
  font-size: 13px;
}
.nav-links a:hover { color: var(--link-hover); }

.page-section { padding: 56px 24px; }
.publication-header { padding-top: 72px; padding-bottom: 34px; }
.publication-header .container { width: min(1160px, calc(100% - 48px)); }
.publication-title {
  margin: 0 auto;
  max-width: 1120px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 3.9vw, 46px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.publication-authors {
  margin: 0;
  color: var(--link);
  font-size: 18px;
  line-height: 1.55;
}
.publication-authors a:hover { color: var(--link-hover); }
.author-row {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 29px);
  margin: 2px auto;
  white-space: nowrap;
}
.publication-authors sup, .publication-affiliations sup, .author-notes sup { font-size: .66em; line-height: 0; }
.publication-affiliations {
  margin: 1px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.author-notes { margin: -12px 0 22px; color: var(--muted-2); font-size: 12px; }
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  transition: background-color .15s ease, transform .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-dark { color: var(--paper); background: var(--link); }
.button-dark:hover { color: var(--paper); background: var(--link-hover); }
.button-icon { margin-right: 7px; font-size: 14px; }

.teaser { padding-top: 18px; padding-bottom: 58px; }
.paper-figure { margin: 0 auto; }
.paper-figure img {
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgba(36,53,74,.12);
}
.paper-figure figcaption {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.teaser-figure img { border-radius: 5px; }
.planner-figure { max-width: 610px; margin-top: 36px; }

.task-gallery { padding-top: 28px; padding-bottom: 46px; }
.task-gallery-heading { display: block; margin-bottom: 27px; text-align: center; }
.task-gallery h2 { margin: 0; font-size: clamp(30px, 4vw, 43px); line-height: 1.08; }
.task-gallery h2 em { color: var(--link); font-style: normal; }
.gallery-lead { max-width: 760px; margin: 14px auto 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.gallery-lead .accent-blue, .gallery-lead .accent-gold { font-weight: 600; }
.gallery-lead .accent-blue { color: var(--link); }
.gallery-lead .accent-gold { color: var(--warm); }
.task-wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.task-video-card { position: relative; min-width: 0; aspect-ratio: 1.2; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-alt); cursor: pointer; box-shadow: 0 1px 3px rgba(36,53,74,.08); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.task-video-card:hover, .task-video-card.active { z-index: 1; border-color: var(--link); box-shadow: 0 3px 10px rgba(14,120,178,.2); transform: translateY(-2px); }
.task-video-card video { width: 100%; height: 100%; object-fit: cover; }
.task-video-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.68)); pointer-events: none; }
.task-video-card span { position: absolute; z-index: 1; right: 5px; bottom: 5px; left: 5px; overflow: hidden; color: var(--paper); font-size: 9px; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.narrow h2 { margin-bottom: 22px; }
.narrow p { margin: 0 0 16px; text-align: justify; }
.narrow p:last-child { margin-bottom: 0; }
.section-lead {
  max-width: 790px;
  margin: -5px auto 31px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.table-scroll { overflow-x: auto; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.results-table th, .results-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.results-table thead th {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.results-table { min-width: 980px; }
.results-table th:not(:first-child), .results-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.results-table .best th, .results-table .best td { background: var(--link-soft); }
.results-table .best th { color: var(--link); }
.table-note { margin: 13px 0 0; color: var(--muted-2); font-size: 12px; }
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}
.demo-video-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border-radius: 7px;
  box-shadow: 0 1px 5px rgba(36,53,74,.12);
}
.demo-video-wrap video { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.video-label {
  position: absolute;
  top: 12px;
  left: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--paper);
  background: rgba(36,53,74,.88);
  font-size: 10px;
  letter-spacing: .03em;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.demo-controls { padding: 4px 0; }
.control-group + .control-group { margin-top: 23px; }
.control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.segmented { display: flex; gap: 5px; }
.segmented button {
  flex: 1;
  padding: 8px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 12px;
}
.segmented button.active, .segmented button:hover { color: var(--paper); border-color: var(--ink-strong); background: var(--ink-strong); }
.camera-list { border-top: 1px solid var(--line); }
.camera {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.camera:hover, .camera.active { color: var(--link); }
.camera small { color: var(--muted-2); font-size: 10px; }
.media-caption { margin: 16px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.task-select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 12px; }

.bibtex {
  overflow-x: auto;
  margin: 23px 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--light);
  color: var(--ink);
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}
.paper-note { margin: 0; color: var(--muted-2); font-size: 12px; text-align: center; }
.site-footer { padding: 22px 24px; color: var(--muted-2); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer-inner a { color: var(--muted-2); }
.footer-inner a:hover { color: var(--link-hover); }

@media (max-width: 760px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 12px; justify-content: flex-end; }
  .nav-links a:nth-child(2), .nav-links a:nth-child(4) { display: none; }
  .page-section { padding-top: 44px; padding-bottom: 44px; }
  .publication-header { padding-top: 54px; }
  .desktop-only { display: none; }
  .demo-panel { grid-template-columns: 1fr; }
  .author-row { gap: 9px 15px; white-space: normal; }
  .task-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .container, .narrow { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); }
  .nav-brand { font-size: 14px; }
  .nav-links { display: none; }
  .page-section { padding-left: 16px; padding-right: 16px; }
  .publication-title { font-size: 28px; }
  .publication-authors { font-size: 16px; }
  .publication-authors { line-height: 1.5; }
  .author-row { display: block; margin: 3px auto; }
  .publication-links { gap: 7px; }
  .button { padding-left: 13px; padding-right: 13px; font-size: 12px; }
  h2 { font-size: 28px; }
  .section-lead { font-size: 15px; }
  .task-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .task-video-card span { font-size: 8px; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin-top: 4px; }
  .narrow p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
