:root {
  --bg: #0a0f1d; --bg2: #10172a; --card: #131b30; --ink: #e9edf5; --text: #c9d1e0; --mute: #8f99ae; --line: #222c45;
  --acc: #5b95f9; --unch: #6aa4ff; --chg: #f2884a; --uns: #3fcf9b; --viewbg: #161e33;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 14px; --w: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }
a { color: var(--acc); }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
sup { font-size: .66em; line-height: 0; }
.c-unch { color: var(--unch); } .c-chg { color: var(--chg); } .c-uns { color: var(--uns); }

/* nav */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(10,15,29,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topnav .row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .02em; }
.navlinks a { color: var(--mute); text-decoration: none; font-size: 14px; margin-left: 22px; }
.navlinks a:hover { color: var(--ink); }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(900px 420px at 50% 0%, #182650 0%, rgba(10,15,29,0) 70%); }
h1 { font-size: clamp(26px, 3.3vw, 40px); line-height: 1.22; margin: 0 auto 26px; max-width: 980px; font-weight: 760; letter-spacing: -.012em; }
.authors { margin: 0 auto 8px; max-width: 860px; font-size: 17.5px; }
.authors span { display: inline-block; margin: 2px 11px; white-space: nowrap; }
.affil { margin: 0 auto 30px; max-width: 900px; color: var(--mute); font-size: 14px; }
.affil span { display: inline-block; margin: 1px 10px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 999px; background: #eef2f9; color: #0a0f1d;
  text-decoration: none; font: 650 15px var(--font); border: 0; cursor: pointer; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mute); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn.small { padding: 6px 14px; font-size: 13.5px; }

/* shared blocks */
.block { margin-top: 96px; }
.eyebrow { margin: 0 0 6px; color: var(--acc); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: 30px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; }
.lead { color: var(--text); max-width: 820px; margin: 0 0 26px; }
figure { margin: 0; }
.card-fig { background: #fff; border-radius: var(--r); padding: 14px; overflow: hidden; }
.card-fig img { margin: 0 auto; }
.card-fig figcaption { color: #5b6477; font-size: 13.5px; margin: 10px 4px 0; line-height: 1.5; }
.cap { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.cap.center { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.teaser { padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.grid2.why { grid-template-columns: 1fr 1.55fr; }
.grid2 .card-fig { display: flex; flex-direction: column; justify-content: space-between; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.card h3 i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; background: var(--acc); color: #fff; display: inline-grid; place-items: center; font-size: 14px; }
.card p { margin: 0; font-size: 14.5px; color: var(--text); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; }
.stats b { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.stats span { display: block; margin-top: 6px; color: var(--mute); font-size: 14px; }

/* viewer */
.viewer-sec { padding: 0; }
.viewer-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.vtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: 600 13.5px var(--font); cursor: pointer; }
.tab img { width: 44px; height: 26px; object-fit: cover; border-radius: 999px; }
.tab:hover { border-color: var(--mute); }
.tab.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.viewer-box { position: relative; }
#occ-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; border-radius: 10px; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; pointer-events: none; position: relative; }
.panel { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; }
.panel .na-note { display: none; }
.panel.na::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: rgba(22,30,51,.9); }
.panel.na .na-note { display: grid; place-items: center; position: absolute; inset: 0; z-index: 2; color: var(--mute); font-size: 14px; }
.tag { position: absolute; left: 10px; top: 10px; z-index: 3; background: rgba(10,15,29,.78); color: #fff; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag.ours { background: var(--acc); }
.status { position: absolute; right: 14px; top: 12px; color: var(--mute); font-size: 13px; }
.vctl { display: grid; grid-template-columns: auto 1fr 1.4fr; gap: 26px; align-items: center; margin: 16px 6px 6px; }
.ctl { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--mute); }
.ctl b { color: #fff; font-weight: 650; margin-left: 4px; }
.play { min-width: 92px; justify-content: center; }
input[type=range] { width: 100%; accent-color: var(--acc); margin: 2px 0; }
.hz-ticks { display: flex; justify-content: space-between; font-size: 12px; }
.hz-tick { cursor: pointer; padding: 0 3px; border-radius: 4px; }
.hz-tick.on { color: #fff; background: var(--acc); }
.hz-tick.dis { opacity: .3; }
.vbottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.cam img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: #000; }
.cam figcaption { color: var(--mute); font-size: 13px; margin-top: 6px; }
.scene-note { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12.5px; color: var(--mute); }
.lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* results */
.results .card { display: flex; flex-direction: column; gap: 6px; }
table.res { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.res th, .res td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); font-size: 15px; }
.res th:first-child, .res td:first-child { text-align: left; }
.res th { color: var(--mute); font-weight: 600; font-size: 13.5px; }
.res tr.ours td { color: #fff; font-weight: 700; background: rgba(91,149,249,.14); }
.vid { padding: 0; width: 100%; background: #000; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.55; color: #d6dcea; margin: 0; }
.foot { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .navlinks { display: none; }
  .stats, .grid2, .grid3, .vbottom { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .vctl { grid-template-columns: 1fr; }
}

.modes { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: auto; }
.mode-btn { border: 0; background: transparent; color: var(--text); font: 600 13px var(--font); padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.mode-btn.on { background: #eef2f9; color: #0a0f1d; }
.tag b { font-weight: 700; }
.legend.err { grid-template-columns: 1fr; }
