:root {
  --ink: #111;
  --ink-2: #555;
  --ink-3: #8a8a8a;
  --line: #e4e4e4;
  --soft: #f5f5f4;
  --stage: #0b1719;
  --stage-line: #24393c;
  --vlm: #3f72dc;
  --fore: #14a094;
  --fore-deep: #0b7d74;
  --act: #7d5fd8;
  --vid: #d98a2b;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --col: 700px;
  --wide: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
sup { line-height: 0; font-size: .65em; }
sub { font-size: .68em; line-height: 0; vertical-align: baseline; position: relative; top: .32em; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
svg.z { display: inline-block; height: 0.76em; width: 0.8em; fill: currentColor; stroke: currentColor; stroke-width: .16; stroke-linejoin: round; vertical-align: baseline; overflow: visible; }

/* nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; padding: 18px max(24px, calc((100vw - 1180px) / 2)); color: #fff; }
.mark { font: 600 22px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; }
.mark svg.z { height: 0.86em; width: 0.9em; stroke-width: .26; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 15px; opacity: .85; }
.nav nav a:hover { opacity: 1; text-decoration: underline; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; background: var(--stage); color: #fff; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,18,.55) 0%, rgba(6,16,18,0) 20%, rgba(6,16,18,.1) 34%, rgba(6,16,18,.9) 100%), linear-gradient(90deg, rgba(6,16,18,.6) 0%, rgba(6,16,18,0) 62%); }
.hero-copy { position: relative; padding-bottom: 14px; }
.hero h1 { font: 600 clamp(84px, 15.5vw, 232px)/0.82 var(--display); letter-spacing: -0.045em; display: flex; align-items: baseline; margin-left: -0.03em; }
.hero h1 svg.z { height: 0.8em; width: 0.85em; margin-right: -0.01em; stroke-width: .3; }
.hero-title { font: 500 clamp(20px, 2.5vw, 34px)/1.2 var(--display); letter-spacing: -0.015em; margin-top: 26px; max-width: 24ch; }
.hero-line { margin-top: 14px; max-width: 54ch; color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.6; }
.hero-line b { color: #fff; font-weight: 600; margin-right: 6px; }
.hero-foot { position: relative; display: grid; gap: 12px; padding: 0 0 20px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.72); }

.hero-segs { display: flex; gap: 10px; margin-top: 22px; max-width: 560px; }
.seg-btn { min-width: 0; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; color: rgba(255,255,255,.58); font-size: 13px; display: grid; gap: 6px; transition: color .18s; }
.seg-btn i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.seg-btn i b { display: block; height: 100%; width: 0; background: #fff; }
.seg-btn:hover, .seg-btn.on { color: #fff; }
.seg-btn:hover i { background: rgba(255,255,255,.55); }
.seg-btn:focus-visible { outline-color: #fff; }

/* side rail */
.rail { display: none; }
@media (min-width: 1400px) {
  .rail { display: block; position: fixed; left: 32px; top: 108px; width: 152px; z-index: 20; border-left: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .rail.show { opacity: 1; pointer-events: auto; }
  .rail nav { display: grid; }
  .rail a { display: block; padding: 7px 0 7px 15px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
  .rail a:hover { color: var(--ink); }
  .rail a.on { color: var(--ink); border-left-color: var(--ink); }
}
#model, #robot, #results, #probe, #cite { scroll-margin-top: 32px; }

/* article */
.post { padding: 64px 0 96px; }
.col { width: min(var(--col), 100% - 40px); margin-inline: auto; }
.col > p + p, .col > p + .tbl-wrap, .col > p + .bars, .col > .cap + p { margin-top: 1.15em; }
.col + .col { margin-top: 72px; }
h2 { font: 600 26px/1.25 var(--body); letter-spacing: -0.01em; margin-bottom: 18px; }

.byline { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.authors { color: var(--ink); }
.authors a { text-decoration-color: #bbb; }
.authors a:hover { text-decoration-color: currentColor; }
.affils { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.affils a { text-decoration: none; }
.affils a:hover { text-decoration: underline; }
.byline .links { margin-top: 18px; display: flex; gap: 22px; font-weight: 500; }

.fig { width: min(var(--wide), 100% - 40px); margin: 44px auto; }
.fig figcaption, .cap { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.fig > figcaption { width: min(var(--col), 100%); margin: 14px auto 0; }
.cap { margin-top: 12px; }
.fig + .col { margin-top: 0; }

/* paradigms */
.paradigms { display: grid; grid-template-columns: 1fr 1fr 1.35fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd { padding: 22px 24px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; min-height: 216px; }
.pd:last-child { border-right: 0; }
.pd.ours { background: var(--soft); }
.pd h3 { font: 600 18px/1.2 var(--body); }
.chain { display: flex; align-items: flex-start; }
.unit { flex: none; display: flex; flex-direction: column; align-items: center; }
.blk { min-width: 84px; height: 52px; padding: 0 11px; border-radius: 8px; border: 1.5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font: 600 14px/1.15 var(--body); background: #fff; }
.blk small { display: block; font: 400 11.5px/1.2 var(--body); opacity: .8; margin-top: 3px; }
.blk.vlm { border-color: var(--vlm); color: #2a56b4; }
.blk.act { border-color: var(--act); color: #5a3fb4; }
.blk.vid { border-color: var(--vid); color: #9a5c0e; }
.blk.fore { border-color: var(--fore-deep); background: var(--fore); color: #fff; }
.wire { flex: 1; min-width: 12px; height: 1.5px; background: var(--ink-3); margin-top: 25px; position: relative; }
.wire.live::after { content: ""; position: absolute; top: -2.75px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--fore-deep); animation: run 1.8s linear infinite; }
@keyframes run { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }
.out { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.out::before { content: ""; width: 0; height: 16px; border-left: 1.5px dotted var(--ink-3); margin: 4px 0 2px; }
.out em { font-style: normal; font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.toks { display: flex; gap: 4px; height: 20px; align-items: center; }
.toks b { width: 13px; height: 13px; border-radius: 3px; --o: 1; opacity: var(--o); animation: settle 2.4s ease-in-out infinite; }
.toks b:nth-child(2) { animation-delay: .15s; } .toks b:nth-child(3) { animation-delay: .3s; } .toks b:nth-child(4) { animation-delay: .45s; }
.toks.fore b { background: var(--fore); }
.toks.vid b { background: var(--vid); }
.toks.act b { background: var(--act); animation-delay: .6s; }
.toks.act b:nth-child(1) { --o: .35; } .toks.act b:nth-child(2) { --o: .55; animation-delay: .75s; } .toks.act b:nth-child(3) { --o: .75; animation-delay: .9s; } .toks.act b:nth-child(4) { animation-delay: 1.05s; }
@keyframes settle { 0%, 100% { opacity: .18; transform: scale(.78); } 45%, 80% { opacity: var(--o, 1); transform: none; } }

/* denoising figure */
.fig.dark .denoise { background: var(--stage); color: #eef4f3; border-radius: 10px; padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plabel { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; margin-bottom: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.vlm { background: #6b97f0; } .dot.fore { background: #2fc4b6; } .dot.act { background: #a48bf0; }
.grid-holder { position: relative; }
.grid-holder canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 6px; background: #0f2023; }
.inset { position: absolute; right: 8px; bottom: 8px; width: 25%; border-radius: 4px; border: 2px solid #0f2023; }
.scrub { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.scrub input[type=range] { flex: 1; min-width: 80px; accent-color: #2fc4b6; height: 24px; }
.scrub output { font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; color: #a9bbbb; }
.play { border: 1px solid #47605f; background: none; border-radius: 999px; padding: 4px 16px; min-width: 76px; font-size: 14.5px; }
.play:hover { background: #eef4f3; color: var(--stage); }

/* videos */
.fig.bleed { width: 100%; }
.vrow { --pad: max(20px, calc((100vw - var(--wide)) / 2)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); padding: 0 var(--pad) 4px; scrollbar-width: none; }
.vrow::-webkit-scrollbar { display: none; }
.vrow figure { flex: none; width: min(340px, 78vw); margin: 0; scroll-snap-align: start; }
.vwrap { position: relative; border-radius: 8px; overflow: hidden; background: var(--soft); }
.vwrap video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; }
.vbadge { position: absolute; left: 7px; bottom: 7px; font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: 4px; background: rgba(0,0,0,.45); color: #fff; transition: opacity .2s; pointer-events: none; }
.vctl { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 4px; border-radius: 8px; background: rgba(250,250,249,.94); box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.vwrap:hover .vctl, .vwrap:focus-within .vctl { opacity: 1; transform: none; }
.vwrap:hover .vbadge, .vwrap:focus-within .vbadge { opacity: 0; }
.vbtn { flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; padding: 0; }
.vbtn.ghost { background: none; color: var(--ink); }
.vbtn svg { width: 14px; height: 14px; fill: currentColor; }
.vbtn svg.line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vtime { flex: none; font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); min-width: 26px; text-align: center; }
.vctl input[type=range] { --p: 0%; flex: 1; min-width: 40px; height: 16px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p), #d2d2cf var(--p)); }
.vctl input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: #d2d2cf; }
.vctl input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.vctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; border: 1px solid #999; }
.vctl input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid #999; }
.vrow figcaption { margin: 7px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.vnav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.vnav button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; padding: 0; }
.vnav button:disabled { background: #b9b9b6; cursor: default; }
.vnav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) {
  .vctl { opacity: 1; transform: none; }
  .vbadge { bottom: auto; top: 7px; }
  .vwrap:hover .vbadge { opacity: 1; }
}

/* tables and bars */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 8px 0 8px 14px; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; padding-left: 0; white-space: normal; }
thead th { font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--ink); font-size: 14.5px; }
tbody td { border-bottom: 1px solid var(--line); }
tr.sep td { border-top: 1px solid #bbb; }
td.best { font-weight: 700; }
tr.ours td:first-child { font-weight: 600; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; font-size: 0; opacity: 0; }

.hbars { display: grid; gap: 9px; }
.col > p + .hbars { margin-top: 1.4em; }
.hbar { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3; }
.hbar .name { color: var(--ink-2); white-space: nowrap; }
.hbar.ours .name { color: var(--ink); font-weight: 600; }
.hbar .track { position: relative; height: 22px; }
.hbar .track i { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 0 3px 3px 0; transition: width .85s cubic-bezier(.2,.7,.2,1); }
.hbar .lab { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s; }
.hbar .lab b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.hbars.in .lab { opacity: 1; }

/* charts */
.chart svg { display: block; width: 100%; height: auto; font-family: var(--body); overflow: visible; }
.chart.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.chart .grid { stroke: #e3e6ea; stroke-width: 1; fill: none; }
.chart .axis { stroke: #9aa3ab; stroke-width: 1; }
.chart .tick { font-size: 11.5px; fill: #777; }
.chart .xlab { font-size: 13.5px; fill: var(--ink); }
.chart .xlab.strong { font-weight: 600; }
.chart .rlab { font-size: 11.5px; fill: var(--ink); }
.chart .val { font-size: 11px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart .val.on { fill: #fff; }
.chart .val.sm { font-size: 9.5px; font-weight: 500; fill: #444; }
.chart .val.sm.strong { font-weight: 700; fill: var(--ink); }
.chart .wedge { fill: transparent; cursor: default; outline: none; }
.chart .hover { opacity: 0; pointer-events: none; transition: opacity .12s; }
.chart .hover.on { opacity: 1; }
.chart .spoke { stroke: #555; stroke-width: 1.2; }
.chart .mark { stroke: #fff; stroke-width: 1.5; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: #111; color: #fff; font-size: 13px; line-height: 1.55; padding: 9px 12px; border-radius: 6px; font-variant-numeric: tabular-nums; min-width: 150px; }
.tip b { font-weight: 600; display: block; margin-bottom: 2px; }
.tip .row { display: flex; justify-content: space-between; gap: 18px; }
.tip .row span { display: inline-flex; align-items: center; gap: 6px; }
.tip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.chart .err line { stroke: #333; stroke-width: 1; }
.chart .rise { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.chart .pop { transform: scale(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.chart .fade { opacity: 0; transition: opacity .4s 1s; }
.chart.in .rise, .chart.in .pop { transform: none; }
.chart.in .fade { opacity: 1; }
.chart-scroll { overflow-x: auto; }
.chart-scroll .chart { min-width: 720px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--ink); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.solid { background: #737373; }
.legend i.light { background: rgba(115,115,115,.25); box-shadow: inset 0 0 0 1px #737373; }
.legend .sep { width: 1px; height: 16px; background: #bbb; }

/* citation */
.bib { position: relative; background: var(--soft); border-radius: 8px; padding: 20px 22px; }
.bib pre { margin: 0; font: 400 13.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; }
.bib button { position: absolute; top: 12px; right: 12px; font-size: 13.5px; padding: 3px 12px; border: 1px solid #cfcfcd; border-radius: 999px; background: #fff; }
.bib button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 820px) {
  .paradigms { grid-template-columns: 1fr; }
  .pd { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .pd:last-child { border-bottom: 0; }
  .fig.dark .denoise { grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
  .fig.dark .pane:nth-child(3) { grid-column: 1 / -1; }
  .fig.dark .pane:nth-child(3) canvas { aspect-ratio: 5 / 2; }
  .plabel { font-size: 13.5px; margin-bottom: 8px; }
  .inset { right: 5px; bottom: 5px; width: 30%; border-width: 1.5px; }
  .scrub { gap: 10px; }
  .scrub output { min-width: 74px; }
  .chart.duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .nav { padding-inline: 16px; }
  .nav nav { gap: 18px; }
  .pd { padding: 20px 16px 22px; }
  .blk { min-width: 0; max-width: 92px; padding: 0 8px; font-size: 12.5px; }
  .blk small { font-size: 10.5px; }
  .wire { min-width: 8px; }
  .out em { white-space: normal; text-align: center; max-width: 84px; }
  .out em { font-size: 12px; }
  .hbar { grid-template-columns: 78px 1fr; gap: 8px; font-size: 14px; }
  .hbar .lab { font-size: 0; }
  .hbar .lab b { font-size: 12.5px; }
  .post { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toks b, .wire.live::after { animation: none; }
  .wire.live::after { display: none; }
  .chart .rise, .chart .pop, .chart .fade, .hbar .track i, .hbar .lab { transition: none; }
}
