:root {
  --ink: #17252f;
  --muted: #65747b;
  --paper: #f6f5f0;
  --white: #ffffff;
  --navy: #10232d;
  --navy-2: #18343f;
  --orange: #ed6840;
  --orange-soft: #fff0e9;
  --cyan: #52c6c0;
  --blue: #4b7a92;
  --line: #d8ddda;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #071116; }
body { color: var(--ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
.deck { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center; }
.slide { display: none; position: absolute; inset: 0; overflow: hidden; padding: 64px 104px 72px; background: var(--paper); }
.slide.active { display: block; }
.slide::after { content: "LVSPM · ECCV 2026"; position: absolute; right: 38px; bottom: 25px; color: rgba(23,37,47,.42); font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.slide.dark { color: var(--white); background: var(--navy); }
.slide.dark::after { color: rgba(255,255,255,.38); }
.slide-controls { position: fixed; z-index: 30; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(5,14,19,.88); box-shadow: 0 7px 24px rgba(0,0,0,.3); transform: translateX(-50%); backdrop-filter: blur(8px); }
.slide-control { min-width: 118px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: white; background: rgba(255,255,255,.08); font: 700 15px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.slide-control:hover { border-color: var(--cyan); background: rgba(82,198,192,.18); }
.slide-control:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.slide-control.next { color: #071116; border-color: var(--cyan); background: var(--cyan); }
.slide-counter { min-width: 64px; padding: 0 7px; color: rgba(255,255,255,.8); font: 14px/1 monospace; text-align: center; }
.capture .slide-controls { display: none; }

h1, h2, h3, p, figure { margin-top: 0; }
h2 { margin: 14px 0 34px; max-width: 1620px; font-size: 61px; line-height: 1.04; letter-spacing: -.042em; }
.section-label { color: var(--orange); font-size: 19px; font-weight: 850; letter-spacing: .16em; }
.source-line { position: absolute; left: 104px; right: 104px; bottom: 35px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.35; }
.dark .source-line { color: rgba(255,255,255,.62); }

/* 01 — title */
.title-slide { padding: 0; color: white; background: #050b0f; }
.title-slide::after { display: none; }
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,19,.96) 0%, rgba(5,14,19,.82) 38%, rgba(5,14,19,.17) 74%, rgba(5,14,19,.08) 100%); }
.cover-copy { position: absolute; left: 105px; top: 86px; width: 860px; }
.venue { color: var(--cyan); font-size: 21px; font-weight: 850; letter-spacing: .18em; }
.cover-copy h1 { margin: 122px 0 12px; color: var(--orange); font-size: 164px; line-height: .78; letter-spacing: -.08em; }
.cover-copy p { margin: 34px 0 0; font-size: 51px; font-weight: 760; line-height: 1.08; letter-spacing: -.035em; }
.cover-rule { width: 190px; height: 6px; margin: 45px 0 30px; background: var(--cyan); }
.cover-copy small { display: block; font-size: 22px; font-weight: 650; line-height: 1.45; }
.cover-copy em { display: block; margin-top: 15px; color: rgba(255,255,255,.7); font-size: 18px; font-style: normal; }
.cover-label { position: absolute; right: 34px; bottom: 30px; padding: 10px 16px; border-radius: 5px; color: rgba(255,255,255,.85); background: rgba(5,14,19,.72); font-size: 15px; }

/* 02 — hero */
.result-hero { padding-top: 42px; }
.result-hero header { display: grid; grid-template-columns: 220px 310px 45px 1fr; align-items: center; gap: 18px; margin-bottom: 25px; }
.result-hero header span { color: var(--orange); font-size: 18px; font-weight: 850; letter-spacing: .14em; }
.result-hero header b { font-size: 25px; }
.result-hero header i { color: var(--cyan); font-size: 34px; font-style: normal; }
.hero-stage { height: 790px; overflow: hidden; border-radius: 10px; background: black; box-shadow: 0 20px 55px rgba(0,0,0,.34); }
.hero-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-footer { display: flex; justify-content: space-between; margin-top: 25px; font-size: 23px; }
.hero-footer strong { color: var(--cyan); }
.hero-footer span { color: rgba(255,255,255,.66); }

/* 03 — three real videos */
.result-triptych h2 { margin-bottom: 28px; }
.three-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.three-videos figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: #050b0f; }
.three-videos video { display: block; width: 100%; height: 610px; object-fit: cover; }
.three-videos figcaption { padding: 17px 20px; color: rgba(255,255,255,.8); font-size: 20px; font-weight: 750; }

/* 04 — task */
.task-visual { display: grid; grid-template-columns: 1.05fr 70px .75fr 70px 1.05fr; align-items: center; gap: 22px; margin-top: 72px; }
.input-stack, .outputs { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 35px rgba(23,37,47,.08); }
.input-stack img, .outputs img { display: block; width: 100%; height: 310px; object-fit: cover; }
.input-stack div, .outputs div { padding: 20px 24px; }
.input-stack b, .outputs b { display: block; font-size: 27px; }
.input-stack span, .outputs span { display: block; margin-top: 5px; color: var(--muted); font-size: 18px; }
.task-arrow { color: var(--orange); font-size: 56px; font-weight: 800; text-align: center; }
.model-box { padding: 72px 25px; border-radius: 12px; color: white; background: var(--navy); text-align: center; }
.model-box strong { display: block; color: var(--orange); font-size: 48px; }
.model-box span { display: block; margin-top: 12px; color: rgba(255,255,255,.7); font-size: 18px; }
.task-facts { display: flex; justify-content: center; gap: 18px; margin-top: 44px; }
.task-facts span { padding: 12px 22px; border-radius: 4px; color: #276b68; background: #e6f4f2; font-size: 20px; font-weight: 750; }

/* 05 — method */
.method-slide h2 { margin-bottom: 22px; }
.pipeline { display: block; width: 1550px; height: 570px; margin: 0 auto; object-fit: contain; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.method-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 1550px; margin: 24px auto 0; }
.method-rail div { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-left: 4px solid var(--orange); background: white; }
.method-rail b { color: var(--orange); font-size: 17px; }
.method-rail span { font-size: 18px; font-weight: 750; }

/* 06 — context */
.context-diagram { position: relative; height: 570px; margin: 46px 80px 0; }
.frames { position: absolute; left: 0; top: 55px; display: flex; gap: 14px; }
.frames i { display: flex; width: 105px; height: 144px; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.28); border-radius: 7px; color: var(--cyan); font-size: 27px; font-style: normal; font-weight: 850; }
.local-block, .state-block { position: absolute; padding: 31px 36px; border-radius: 8px; }
.local-block b, .state-block b { display: block; font-size: 31px; }
.local-block span, .state-block span { display: block; margin-top: 10px; color: rgba(255,255,255,.7); font-size: 20px; }
.local-block { left: 680px; top: 38px; width: 470px; border: 2px solid var(--cyan); background: var(--navy-2); }
.state-block { right: 0; bottom: 65px; width: 660px; background: var(--orange); }
.state-block small { position: absolute; right: 20px; top: 17px; font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.state-line { position: absolute; left: 110px; right: 330px; top: 335px; display: flex; justify-content: space-between; border-top: 4px solid rgba(255,255,255,.36); }
.state-line::after { content: "→"; position: absolute; right: -47px; top: -25px; color: var(--orange); font-size: 42px; }
.state-line i { width: 23px; height: 23px; margin-top: -13px; border-radius: 50%; background: var(--cyan); }

/* 07 — NVS chart */
.nvs-chart h2 { margin-bottom: 8px; }
.nvs-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 60px; align-items: center; }
.line-chart { width: 100%; height: 655px; }
.chart-grid line { stroke: rgba(23,37,47,.12); stroke-width: 2; }
.chart-labels text { fill: var(--muted); font-size: 22px; }
.line { fill: none; stroke-width: 7; }
.line.ours { stroke: var(--orange); }
.line.any { stroke: var(--blue); }
.line.depth { stroke: #899397; stroke-dasharray: 13 10; }
.dots circle { stroke: white; stroke-width: 4; }
.dots.ours circle { fill: var(--orange); }
.dots.any circle { fill: var(--blue); }
.dots.depth circle { fill: #899397; }
.metric-callout { display: flex; align-items: end; gap: 20px; margin-bottom: 32px; }
.metric-callout strong { color: var(--orange); font-size: 64px; line-height: .9; }
.metric-callout span { color: var(--muted); font-size: 19px; line-height: 1.25; }
.nvs-table table { width: 100%; border-collapse: collapse; font-size: 20px; }
.nvs-table th, .nvs-table td { padding: 15px 11px; border-bottom: 1px solid var(--line); text-align: right; }
.nvs-table th:first-child { text-align: left; }
.nvs-table .ours-row { color: var(--orange); background: var(--orange-soft); }
.nvs-table p { margin-top: 15px; color: var(--muted); font-size: 16px; }

/* 08 — complete NVS metrics */
.metric-matrix-slide h2 { margin-bottom: 26px; }
.metric-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metric-matrix article { padding: 25px 24px 28px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 12px 28px rgba(23,37,47,.06); }
.metric-matrix h3 { margin: 0 0 20px; color: var(--ink); font-size: 35px; }
.metric-matrix h3 span { color: var(--orange); font-size: 24px; }
.view-head, .metric-row { display: grid; grid-template-columns: 1.35fr repeat(4, .68fr); align-items: center; }
.view-head { padding: 0 9px 9px; color: var(--muted); font-size: 15px; text-align: center; }
.metric-row { min-height: 60px; padding: 0 9px; border-top: 1px solid var(--line); font-size: 18px; }
.metric-row strong { font-size: 17px; }
.metric-row span { text-align: center; font-variant-numeric: tabular-nums; }
.metric-row.ours { color: #a13c20; background: var(--orange-soft); font-weight: 850; }
.metric-summary { display: flex; align-items: center; gap: 35px; margin-top: 31px; padding: 23px 30px; border-left: 6px solid var(--orange); background: white; }
.metric-summary b { font-size: 25px; }
.metric-summary span { color: #a13c20; font-size: 27px; font-weight: 850; }
.metric-summary small { margin-left: auto; color: var(--muted); font-size: 16px; }

/* 09 — per-scene coverage */
.scene-coverage-slide h2 { margin-bottom: 8px; }
.scene-coverage-slide > img { display: block; width: 1610px; height: 585px; margin: 0 auto; object-fit: contain; }
.coverage-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 9px; }
.coverage-cards div { padding: 17px 22px; border-top: 4px solid var(--orange); background: white; }
.coverage-cards b { display: block; color: var(--orange); font-size: 31px; }
.coverage-cards span { display: block; margin-top: 3px; color: var(--muted); font-size: 16px; }

/* 08–10 — qualitative cases */
.case-slide h2 { margin-bottom: 24px; }
.case-layout { display: grid; grid-template-columns: 1.42fr .67fr .67fr; gap: 16px; height: 720px; }
.case-layout figure { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0b151a; }
.case-layout img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-layout .primary { border: 5px solid var(--orange); }
.case-layout .primary img { height: 100%; }
.reference-column, .baseline-column { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.case-layout figcaption { position: absolute; left: 10px; bottom: 10px; padding: 8px 12px; border-radius: 4px; color: white; background: rgba(8,18,24,.82); font-size: 18px; }
.case-layout figcaption b { font-size: 21px; }
.case-layout figcaption span { display: block; margin-top: 3px; color: rgba(255,255,255,.68); font-size: 13px; }
.honest .section-label { color: #b94e31; }

/* synchronized baseline videos */
.paths-slide h2 { margin-bottom: 24px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-grid figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: black; }
.path-grid video { display: block; width: 100%; height: 650px; object-fit: cover; }
.path-grid figcaption { padding: 15px 18px; color: rgba(255,255,255,.76); font-size: 18px; }
.baseline-video-slide { padding-top: 52px; }
.baseline-video-slide h2 { margin: 10px 0 20px; }
.baseline-video-slide > video { display: block; width: 1712px; height: 730px; object-fit: contain; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: #050b0f; }
.video-facts { display: flex; gap: 13px; margin-top: 16px; }
.video-facts span { padding: 10px 17px; border-radius: 4px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); font-size: 16px; }
.video-facts b { color: var(--cyan); font-size: 19px; }

/* 12 — pose table */
.pose-table-slide h2 { margin-bottom: 24px; }
.pose-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 22px; }
.pose-table th, .pose-table td { padding: 14px 25px; text-align: center; }
.pose-table thead th { color: var(--muted); border-bottom: 2px solid var(--ink); font-size: 18px; }
.pose-table th:first-child { width: 420px; text-align: left; }
.pose-table tbody tr { background: white; }
.pose-table tbody th { font-weight: 800; }
.pose-table .ours-row { color: #9d3519; background: #ffe5d9; font-weight: 850; }
.pose-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px; }
.pose-callouts span { padding: 18px 22px; border-left: 4px solid var(--orange); background: white; color: var(--muted); font-size: 18px; }
.pose-callouts b { color: var(--ink); font-size: 25px; }

/* 13 — pose plot */
.pose-viz-slide h2 { margin-bottom: 14px; }
.pose-viz-slide > img { display: block; width: 1580px; height: 735px; margin: 0 auto; object-fit: contain; }
.pose-viz-slide > video { display: block; width: 1580px; height: 735px; margin: 0 auto; object-fit: contain; background: #f7f7f3; }
.pose-viz-slide > .pose-capture { display: none; }
.capture .pose-viz-slide > video { display: none; }
.capture .pose-viz-slide > .pose-capture { display: block; }

/* 14 — speed */
.speed-slide h2 { margin-bottom: 28px; }
.speed-bars { width: 1220px; }
.speed-bars > div { display: grid; grid-template-columns: 235px 1fr 120px; gap: 18px; align-items: center; margin: 15px 0; }
.speed-bars span { font-size: 19px; font-weight: 700; }
.speed-bars i { height: 35px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.12); }
.speed-bars i b { display: block; height: 100%; min-width: 12px; background: #6c8792; }
.speed-bars strong { font-size: 20px; }
.speed-bars .ours { color: var(--orange); }
.speed-bars .ours i b { background: var(--orange); }
.speed-summary { position: absolute; right: 105px; top: 270px; width: 360px; padding: 32px; border: 2px solid var(--cyan); border-radius: 8px; }
.speed-summary b { display: block; color: var(--cyan); font-size: 60px; }
.speed-summary span { display: block; margin: 5px 0 32px; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.3; }

/* 15 — supervision */
.supervision-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; margin-top: 64px; }
.cycle-box, .ablation-box { min-height: 430px; padding: 45px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.cycle-box { display: grid; grid-template-columns: 1fr 70px 1fr; grid-template-rows: auto auto; align-items: center; text-align: center; }
.cycle-box b { font-size: 31px; }
.cycle-box i { color: var(--muted); font-size: 18px; font-style: normal; }
.cycle-box span { grid-column: 2; grid-row: 1 / 3; color: var(--orange); font-size: 64px; }
.ablation-box h3 { margin-bottom: 48px; color: var(--muted); font-size: 20px; }
.ablation-box > div { display: grid; grid-template-columns: 210px 1fr 70px; gap: 15px; align-items: center; margin: 25px 0; }
.ablation-box > div > i { height: 33px; overflow: hidden; border-radius: 3px; background: #e4e6e3; }
.ablation-box > div > i b { display: block; height: 100%; background: var(--orange); }
.ablation-box .muted > i b { background: #8d999c; }
.ablation-box p { margin-top: 48px; font-size: 23px; }
.ablation-box p b { color: var(--orange); }
.limits { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.limits > b { margin-right: 8px; font-size: 20px; }
.limits span { padding: 10px 15px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 16px; }
.ablation-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: 28px; align-items: stretch; }
.ablation-thesis { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; padding: 40px 30px; border-radius: 9px; color: white; background: var(--navy); text-align: center; }
.ablation-thesis b { font-size: 25px; }
.ablation-thesis > span { color: var(--orange); font-size: 45px; }
.ablation-thesis p { grid-column: 1 / 4; margin: 40px 10px 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.45; }
.ablation-table { width: 100%; border-collapse: collapse; background: white; font-size: 18px; }
.ablation-table th, .ablation-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.ablation-table th:first-child { text-align: left; }
.ablation-table thead th { color: var(--muted); border-bottom: 2px solid var(--ink); }
.ablation-table .group { color: var(--muted); background: #eceeea; font-size: 15px; letter-spacing: .08em; }
.ablation-table .ours-row { color: #9d3519; background: var(--orange-soft); font-weight: 850; }
.ablation-table .bad { color: #b13d27; font-weight: 900; }

/* 16 — conclusion */
.conclusion h2 { margin-top: 22px; font-size: 83px; }
.takeaways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 76px; }
.takeaways div { min-height: 300px; padding: 32px; border-top: 5px solid var(--orange); background: var(--navy-2); }
.takeaways b { color: var(--cyan); font-size: 19px; }
.takeaways p { margin-top: 52px; color: rgba(255,255,255,.75); font-size: 25px; line-height: 1.35; }
.takeaways strong { color: white; font-size: 29px; }
.closing { position: absolute; left: 104px; bottom: 55px; color: rgba(255,255,255,.62); font-size: 18px; }

@page { size: 16in 9in; margin: 0; }
@media print {
  html, body { overflow: visible; background: white; }
  .deck { position: static; width: auto; height: auto; transform: none !important; }
  .slide { display: block !important; position: relative; width: 1920px; height: 1080px; page-break-after: always; }
  .slide-controls { display: none; }
}
