:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e8ee;
  --accent: #2563c7;
  --accent-ink: #1d4fa3;
  --accent-soft: #e9f0fc;
  --accent-2: #0f9d7a;
  --accent-2-soft: #e6f6f1;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.05);
  --maxw: 1180px;
  --head: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
img, video { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 249, 0.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav-links { display: flex; gap: 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links a { color: var(--muted); }
.nav-links a b { color: var(--accent); margin-right: 5px; font-weight: 800; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 36px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -200px auto -200px; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 320px at 15% 20%, rgba(37, 99, 199, 0.16), transparent 70%),
    radial-gradient(520px 300px at 85% 10%, rgba(15, 157, 122, 0.14), transparent 70%);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(64px, 9vw, 112px); line-height: 0.95; letter-spacing: -0.035em; margin: 22px 0 14px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .title { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink-2); max-width: 920px; margin: 0 0 18px; }
.hero .tag { font-size: 20px; color: var(--muted); margin: 0 0 22px; }
.authors { font-size: 17px; color: var(--ink-2); margin: 0 0 6px; }
.authors a { color: var(--ink); border-bottom: 1px dotted #b7bec9; }
.authors a:hover { color: var(--accent); border-color: var(--accent); }
.authors sup { color: var(--muted); font-size: 12px; margin-left: 1px; }
.affil { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { color: #fff; }
.btn svg { width: 17px; height: 17px; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.hero-media video { width: 100%; height: auto; }
.hero-caption { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.stat .n { font-family: var(--head); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section { padding: 84px 0 10px; }
.sec-head { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; margin-bottom: 28px; }
.sec-num { font-family: var(--head); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; color: var(--accent); padding-top: 12px; border-top: 3px solid var(--accent); }
.sec-head h2 { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 860px; }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel.pad { padding: 28px; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.figure img { margin: 0 auto; }
.figcap { color: var(--muted); font-size: 14px; margin-top: 14px; line-height: 1.5; }
.figcap b { color: var(--ink-2); }

.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.two.rev { grid-template-columns: 1fr 1.15fr; }
.two.sim { grid-template-columns: 1.45fr 1fr; }
.two.real { grid-template-columns: 1fr 1.25fr; align-items: center; }
.two.real table.res { font-size: 14px; }
.two.real table.res th, .two.real table.res td { padding: 10px 8px; }
.two.sim table.res { font-size: 14px; }
.two.sim table.res th, .two.sim table.res td { padding: 10px 9px; }
@media (max-width: 900px) { .two, .two.rev, .two.sim, .two.real { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--head); font-weight: 800; margin-bottom: 14px; }
.card h4 { font-family: var(--head); font-weight: 800; font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
ul.ticks { list-style: none; padding: 0; margin: 10px 0 0; }
ul.ticks li { position: relative; padding-left: 30px; margin: 0 0 10px; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-2-soft); }
ul.ticks li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 5px; height: 9px; border: solid var(--accent-2); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- clip grids ---------- */
.clips { display: grid; gap: 16px; }
.clips.c5 { grid-template-columns: repeat(5, 1fr); }
.clips.c3 { grid-template-columns: repeat(3, 1fr); }
.clips.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .clips.c5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .clips.c5, .clips.c3 { grid-template-columns: repeat(2, 1fr); } }
.clip { position: relative; border-radius: 16px; overflow: hidden; background: #0b1220; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.clip.wide { aspect-ratio: 4 / 3; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .lbl { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgba(10, 14, 24, 0.72); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.clip .lbl small { opacity: .7; font-weight: 500; }
.grid-title { font-family: var(--head); font-weight: 800; font-size: 20px; margin: 28px 0 12px; display: flex; align-items: center; gap: 12px; }
.grid-title .pill { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.res { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.res th, table.res td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.res th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.res th:first-child, table.res td:first-child { text-align: left; }
table.res tr.ours td { background: var(--accent-soft); font-weight: 700; color: var(--accent-ink); }
table.res tr.ours td:first-child { border-left: 3px solid var(--accent); }
table.res td b { font-weight: 800; color: var(--ink); }
table.res tr.ours td b { color: var(--accent-ink); }
table.res td u { text-decoration: underline; text-underline-offset: 3px; }
.tbl-note { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.ok { color: var(--accent-2); font-weight: 800; }
.no { color: #c0392b; font-weight: 800; }

/* ---------- dataset ---------- */
.dstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 860px) { .dstats { grid-template-columns: repeat(2, 1fr); } }
.quote { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 14px 14px 0; color: var(--ink-2); font-size: 17px; margin: 18px 0; box-shadow: var(--shadow); }

/* ---------- video ---------- */
.video-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; }
.video-box video { width: 100%; height: auto; }

/* ---------- bibtex / footer ---------- */
pre.bib { background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 22px 24px; font-size: 14px; line-height: 1.6; overflow-x: auto; margin: 0; box-shadow: var(--shadow); }
pre.bib .k { color: #93c5fd; }
pre.bib .v { color: #fcd34d; }
.copy { float: right; font-size: 13px; font-weight: 700; background: #1e293b; color: #e2e8f0; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
footer { margin-top: 90px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
