:root {
  --ink: #16181d;
  --muted: #5b6270;
  --line: #e3e6ec;
  --bg-band: #f6f7fa;
  --accent: #c8102e;
  --accent-soft: #fdecef;
  --ours: #1f5fd1;
  --ours-soft: #eaf1ff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
a { color: var(--ours); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
section.wrap { padding: 56px 24px; }
.band { background: var(--bg-band); }

h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 18px; }
h3 { font-size: 20px; margin: 32px 0 10px; }
h4 { margin: 0 0 8px; font-size: 16px; }
.lead { color: var(--muted); max-width: 900px; margin-top: 0; }

/* hero */
.hero { padding: 72px 0 32px; text-align: center; background: radial-gradient(1200px 400px at 50% -10%, #eef3ff 0%, #fff 70%); }
.venue { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 auto 22px; max-width: 980px; font-weight: 800; text-wrap: balance; }
.accent { background: linear-gradient(90deg, #1f5fd1, #7b3fe4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.authors { font-size: 19px; margin: 0 0 6px; }
.authors a { color: var(--ink); font-weight: 600; }
.authors span { font-weight: 600; }
.affils { color: var(--muted); font-size: 15px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; }
.logos { display: flex; gap: 36px; justify-content: center; align-items: center; margin-bottom: 26px; }
.logos img { height: 40px; width: auto; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; transition: transform .15s, background .15s; }
.btn:hover { background: #2c3340; text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn:nth-child(2) svg { fill: currentColor; stroke: none; }

/* teaser + figures */
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.teaser { padding-top: 8px; }
.teaser img, .qual img, .study img, .narrow img { border-radius: var(--radius); }
.teaser figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 40px rgba(20, 30, 60, .06); }
.narrow { max-width: 860px; margin: 28px auto 0; }
.qual { margin-top: 40px; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 8px !important; padding-bottom: 8px !important; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.stat .num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ours); }
.stat .lbl { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }

/* video player */
.player { background: #0f1115; border-radius: 18px; padding: 16px; color: #e9ecf2; box-shadow: 0 20px 60px rgba(10, 15, 30, .25); }
.panes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pane { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 3 / 2; }
.pane video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pane .tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pane .tag span { color: #aab2c2; font-weight: 500; margin-left: 4px; }
.pane.ours { outline: 2px solid var(--ours); outline-offset: -2px; }
.pane.ours .tag { background: var(--ours); }
.pane.ours .tag span { color: #dbe6ff; }
.controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.controls button { border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: #262b35; color: #e9ecf2; }
.controls button:hover { background: #333a47; }
.controls button.primary { background: #fff; color: #0f1115; }
.seek { flex: 1; min-width: 160px; }
.seek input { width: 100%; accent-color: #fff; }
.audio-pick { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #aab2c2; }
.audio-pick label { display: inline-flex; gap: 4px; align-items: center; color: #e9ecf2; cursor: pointer; }
.audio-pick input { accent-color: var(--ours); }
.prompt-box { margin-top: 14px; padding: 14px 16px; background: #181c23; border-radius: 10px; }
.prompt-box h3 { margin: 0 0 4px; font-size: 17px; color: #fff; }
.prompt-box p { margin: 0; font-size: 15px; color: #c3c9d5; }
.prompt-box details { margin-top: 8px; font-size: 14px; }
.prompt-box summary { cursor: pointer; color: #8fb0ff; }
.prompt-box pre { white-space: pre-wrap; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.55; color: #c3c9d5; max-height: 280px; overflow: auto; margin: 10px 0 0; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; text-align: left; transition: transform .15s, border-color .15s; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--ours); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: .9; }
.thumb .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); line-height: 1.3; }
.study { margin-top: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.study img { max-width: 760px; margin: 0 auto; }

/* method */
.eq { overflow-x: auto; padding: 4px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.card p { margin: 0 0 8px; font-size: 15.5px; color: #333944; }
.checks { padding-left: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 12px; border-radius: 3px; background: var(--ours); box-shadow: 0 0 0 4px var(--ours-soft); }

/* tables */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabpane { display: none; }
.tabpane.active { display: block; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: center; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: #fafbfc; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
tbody tr + tr td { border-top: 1px solid #f0f2f5; }
tbody tr.sep td { border-top: 2px solid var(--line); }
tr.teacher td { color: var(--muted); }
tr.ours td { background: var(--ours-soft); font-weight: 600; }
td.indent { padding-left: 32px; }

/* bibtex */
.bib { position: relative; background: #0f1115; color: #e9ecf2; border-radius: var(--radius); padding: 20px 22px; }
.bib pre { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; overflow-x: auto; }
.copy { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; background: #262b35; color: #e9ecf2; }
.copy:hover { background: #333a47; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 28px 0 40px; text-align: center; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .panes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .logos img { height: 30px; }
}
