:root {
  --navy: #143163;
  --heading: #14274e;
  --ink: #363636;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f5f5f5;
  --ours: #1e81b0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
.container { width: min(calc(100% - 40px), 860px); margin: 0 auto; }
.container.wide { width: min(calc(100% - 40px), 1100px); }
.container.inner { width: 100%; max-width: 860px; }

/* hero */
.hero { text-align: center; padding: 72px 0 24px; }
.title {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
}
.authors { margin: 22px auto 0; max-width: 820px; font-size: 1.15rem; font-weight: 700; line-height: 1.8; }
.authors .row { display: block; }
.author { display: inline-block; margin: 0 .7em; white-space: nowrap; }
.authors a { color: #50549b; text-decoration: none; }
.authors a:hover { color: #9bb4c2; }
.affil { margin: 6px 0 0; font-size: 1.4rem; font-weight: 500; }
.lab-logo { display: inline-block; margin-top: 16px; }
.lab-logo img { display: block; max-height: 60px; width: auto; }
.venue { margin: 14px 0 0; color: var(--navy); font-size: 1.6rem; font-weight: 700; }
.links { margin-top: 22px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 999px;
  background: var(--navy); color: #f5f5f5; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn.disabled { background: #e5e7eb; color: #9ca3af; cursor: default; }
.btn.disabled:hover { opacity: 1; }
.bibtex { background: var(--soft); border-radius: 6px; padding: 18px 22px; overflow-x: auto; }
.bibtex pre { margin: 0; font-family: "Roboto Mono", ui-monospace, Menlo, monospace; font-size: .85rem; line-height: 1.6; }

/* teaser */
.teaser { padding: 24px 0 8px; }
.tldr { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 1.15rem; font-style: italic; }

/* sections */
section.container { padding: 44px 0 8px; }
.sec {
  margin: 0 0 20px; text-align: center;
  color: var(--heading); font-size: 1.85rem; font-weight: 800; line-height: 1.3;
}
.sec small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.text { margin: 0 auto 18px; }
.justify { text-align: justify; }
.figure { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto 22px; }
section.container.wide .inner { margin-left: auto; margin-right: auto; }

/* videos */
.clip { margin: 0; min-width: 0; }
.clip video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; }
.clip.single { max-width: 720px; margin: 0 auto; }
.group { margin-top: 38px; }
.group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.group-head h3 { margin: 0; color: var(--heading); font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.group-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sync {
  flex-shrink: 0; padding: 4px 14px; border: 1px solid #cfd4dc; border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
}
.sync:hover { border-color: var(--navy); color: var(--navy); }
.clips { display: grid; gap: 10px; }
.clips.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clips.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tag { display: block; margin-bottom: 6px; text-align: center; font-size: .95rem; font-weight: 700; color: var(--ink); }
.tag.ours { color: var(--ours); }

footer { margin-top: 64px; padding: 28px 20px 36px; background: var(--soft); text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .justify { text-align: left; }
  .clips.c3, .clips.c2 { grid-template-columns: 1fr; gap: 16px; }
  .group-head { flex-direction: column; align-items: flex-start; }
}
