:root {
  --bg: #0a0f1a;
  --bg-2: #0f1626;
  --panel: #131c2e;
  --line: #22304a;
  --text: #e6ebf3;
  --muted: #9aa8bf;
  --accent: #39d0d8;      /* point-cloud cyan */
  --accent-2: #f2b134;    /* point-cloud yellow */
  --ours: #4aa3df;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.1rem; color: var(--text); }
p { margin: 0 0 14px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* hero */
.hero { padding: 72px 0 36px; text-align: center; background: radial-gradient(1200px 500px at 50% -10%, #17304d 0%, transparent 70%); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; max-width: 920px; margin: 0 auto 18px; }
.hero h1 .name { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.authors { font-size: 1.15rem; margin-bottom: 4px; }
.links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.disabled { opacity: 0.55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.tldr { max-width: 820px; margin: 26px auto 0; font-size: 1.12rem; color: var(--muted); }

.video-main { margin: 34px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-main video { width: 100%; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.stat .v { font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat .k { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

.figure { background: #fff; border-radius: var(--radius); padding: 14px; margin: 18px 0 10px; }
.caption { color: var(--muted); font-size: 0.92rem; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg-2); color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.sub td:first-child { padding-left: 30px; color: var(--muted); }
tr.sub td { color: var(--muted); }
.sets-table td:first-child { white-space: nowrap; }
@media (max-width: 520px) { tr.sub td:first-child { padding-left: 18px; } }
@media (max-width: 520px) { th, td { white-space: normal; padding: 8px 9px; } td.num, th.num { white-space: nowrap; } }
tr.ours td { color: #fff; background: rgba(74, 163, 223, 0.12); }
tr.ours td:first-child { border-left: 3px solid var(--ours); }
tr.sep td { border-top: 2px solid var(--line); }
b.best { color: var(--accent); }
.figure.table-fig { padding: 18px 20px; }
.figure.table-fig img { width: 100%; height: auto; }
.figure.table-fig.narrow { max-width: 680px; }
/* phones: keep the table text legible and let the table scroll sideways inside its card */
@media (max-width: 700px) {
  .figure.table-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .figure.table-fig img { width: 760px; max-width: none; }
  .figure.table-fig.narrow img { width: 520px; }
}

/* gallery */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 0.9rem; }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 22px; }
.clip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clip video { width: 100%; background: #000; aspect-ratio: 8 / 3; }
.clip .meta { padding: 12px 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.clip .tag { font-size: 0.78rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.clip .tag.real { color: var(--accent); border-color: rgba(57, 208, 216, 0.45); }
.clip .tag.synthetic { color: var(--accent-2); border-color: rgba(242, 177, 52, 0.45); }
.clip .title { font-weight: 700; }
.clip[hidden] { display: none; }

.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 18px; }
.pipeline span { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 0.92rem; }
.pipeline i { color: var(--muted); font-style: normal; }

/* credits */
ol.refs { margin: 14px 0 0; padding-left: 22px; color: var(--muted); font-size: 0.9rem; }
ol.refs li { margin: 0 0 9px; padding-left: 4px; }
ol.refs b { color: var(--text); }
.demo-mark { font-size: 0.72rem; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(57, 208, 216, 0.45); color: var(--accent); vertical-align: 1px; }
#credits p.small { color: var(--muted); }

pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; color: var(--text); font-size: 0.86rem; }
footer { padding: 34px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
