/* Simple academic layout: readable type, white space, one blue accent. */
:root {
  --navy: #113066;
  --blue: #2769bf;
  --indigo: #2769bf;
  --ink: #202020;
  --muted: #202020;
  --line: #dddddd;
  --wash: #f7f7f7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  background: white;
  padding: 0 24px;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 4px; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 4px;
}
.container { max-width: 1120px; margin: 0 auto; }
header { text-align: center; padding: 72px 0 24px; }
h1, .project-name, .publication-authors { font-family: 'Google Sans', 'Noto Sans', Arial, sans-serif; }
h1 { font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; line-height: 1.3; color: var(--navy); }
.title-line { display: block; }
.project-name { font-size: 48px; font-weight: 700; line-height: 1.2; color: var(--navy); margin-bottom: 20px; }
.project-name .accent { color: var(--blue); }
.venue { margin: 24px 0 16px; font-size: 24px; font-weight: 700; }
.publication-authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: 22px; }
.publication-authors a { text-decoration: none; }
.publication-authors a:hover { text-decoration: underline; }
.author-block { white-space: nowrap; }
sup { font-size: .7em; margin-left: 2px; }
.affiliations { margin-top: 8px; font-size: 20px; }
.eql-cntrb, .resource-note { font-size: 18px; margin-top: 8px; }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.resource-link, .resource-link.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 22px; border: 1px solid #202020; border-radius: 24px;
  color: white; background: #202020; text-decoration: none; font-size: 18px; font-weight: 400;
}
.resource-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.resource-link:hover { background: var(--blue); border-color: var(--blue); }
.resource-link[aria-disabled="true"] { cursor: default; }
.content { padding-top: 0; }
.teaser-video video { display: block; width: 100%; height: auto; aspect-ratio: 32 / 15; border-radius: 4px; background: white; }
.section { margin-bottom: 80px; }
.section-title { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.3; margin: 0 0 28px; }
.subsection-title { text-align: center; font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0 0 20px; }
.results-section > .section-title { margin-bottom: 36px; }
.demo-container { text-align: center; margin: 24px 0; }
.demo-container img, .demo-container video { display: block; max-width: 100%; height: auto; margin: auto; }
.image-caption { width: 100%; margin: 24px auto 0; color: #4a4a4a; text-align: left; text-wrap: pretty; }
.vis-intro { text-align: center; margin: 0 auto 28px; max-width: 900px; text-wrap: pretty; }
.comparison-section { margin-bottom: 0; }
.scene-nav-tabs, .removal-scenes, #baselineTabs, .cloud-scenes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 32px;
}
.scene-tab-btn, #baselineTabs .scene-tab-btn, .removal-scenes button, .cloud-scenes button {
  font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; transition: none;
  color: var(--ink); background: white; text-transform: capitalize;
}
.scene-tab-btn:hover, #baselineTabs .scene-tab-btn:hover, .removal-scenes button:hover, .cloud-scenes button:hover { border-color: var(--blue); }
.scene-tab-btn.active, #baselineTabs .scene-tab-btn.active, .removal-scenes button[aria-pressed="true"], .cloud-scenes button[aria-pressed="true"] {
  color: white; background: var(--blue); border-color: var(--blue);
}
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; max-width: 1040px; margin: auto; }
.method-card { min-width: 0; }
.method-name { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.method-name.ours { color: var(--ink); font-weight: 700; }
.time-badge, .time-badge.fast { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.method-video-container { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--wash); border-radius: 4px; }
.comparison-section .method-video-container video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transform-origin: center; }
.scene-name-header { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 16px; text-transform: capitalize; }
.video-comparison-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px auto; }
.video-card { flex: 1 1 calc(50% - 14px); min-width: 0; }
.stacked-videos { display: flex; flex-direction: column; gap: 8px; }
.dual-video-container { display: flex; gap: 8px; }
.video-wrapper { flex: 1; position: relative; background: var(--wash); overflow: hidden; aspect-ratio: 1.5; border-radius: 4px; }
.video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.replacement-row .video-wrapper video { transform: scale(1.15); transform-origin: center; }
.row-label { position: absolute; top: 8px; left: 8px; padding: 2px 8px; background: #202020; color: white; font-size: 18px; font-weight: 700; border-radius: 4px; z-index: 10; pointer-events: none; }
.video-labels-row { display: flex; justify-content: space-around; margin-top: 12px; }
.video-label { font-size: 20px; font-style: normal; }
.video-label.ours { font-weight: 700; }
.section-divider { border: 0; border-top: 1px solid rgba(32, 32, 32, .14); max-width: 1040px; margin: 56px auto; }
.results-divider { margin: 48px auto; }
.comparison-preview-note, .cloud-example-badge {
  width: auto; max-width: 100%; margin: 12px auto 24px; padding: 0; border: 0;
  border-radius: 0; background: none; color: var(--ink); font: inherit; text-align: center;
}
.cloud-example-badge { font-weight: 700; margin-bottom: 8px; }
.video-comparison-row.removal-gallery { max-width: 1040px; }
.removal-gallery .video-card { padding: 0; border: 0; border-radius: 0; }
.removal-gallery .scene-name-header { display: none; }
.replacement-row { max-width: 1040px; margin-top: 32px; }
.removal-columns { gap: 24px; }
.wipe-labels { color: var(--ink); font-size: 18px; font-weight: 400; min-height: 44px; gap: 12px; }
.wipe-labels span:last-child { color: var(--ink); font-weight: 700; }
.wipe-play, .cloud-controls button { font-size: 18px; padding: 6px 14px; color: var(--ink); }
.wipe-hint, .wipe-status { font-size: 18px; color: var(--ink); }
.wipe-controls { flex-wrap: wrap; }
.cloud-section { max-width: 1040px; margin: 0 auto; }
.cloud-row { grid-template-columns: 210px minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.cloud-panel { border: 0; border-radius: 0; }
.cloud-panel h4 { font-size: 20px; font-weight: 400; color: var(--ink); margin: 0 0 16px; }
.cloud-panel[data-cloud-method="ours"] h4 { font-weight: 700; }
.cloud-panel h4 small { font-size: 18px; font-weight: 400; color: var(--ink); }
.cloud-canvas { border-radius: 4px; }
.cloud-meta { font-size: 18px; padding: 12px 0; color: var(--ink); }
.cloud-inputs summary { font-size: 18px; padding: 12px 0; color: var(--ink); }
.cloud-input-grid { padding: 0; }
.cloud-input-grid figcaption { font-size: 18px; color: var(--ink); }
.cloud-controls { font-size: 18px; color: var(--ink); }
.cloud-controls input { accent-color: var(--blue); }
.cloud-status, .cloud-note { font-size: 18px; color: var(--ink); max-width: 1040px; }
.cloud-note { text-align: left; margin-top: 24px; line-height: 1.65; }
.cloud-status:empty { display: none; }
.bibtex-block { padding: 24px; background: var(--wash); border-radius: 4px; white-space: pre; overflow-x: auto; font: 14px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.page-footer { padding: 24px 0 40px; border-top: 1px solid var(--line); text-align: center; font-size: 18px; }
@media (max-width: 768px) {
  body { padding: 0 20px; font-size: 18px; }
  header { padding-top: 40px; }
  h1 { font-size: 30px; }
  .title-line { display: inline; }
  .project-name { font-size: 40px; }
  .publication-authors { font-size: 20px; gap: 8px 16px; }
  .affiliations { font-size: 18px; }
  .publication-links { gap: 8px; }
  .resource-link, .resource-link.primary { padding: 8px 14px; }
  .section { margin-bottom: 48px; }
  .section-title { font-size: 28px; }
  .subsection-title { font-size: 22px; }
  .section-divider { margin: 40px auto; }
  .scene-nav-tabs, .removal-scenes, #baselineTabs, .cloud-scenes { gap: 8px; margin: 24px auto; }
  .scene-tab-btn, #baselineTabs .scene-tab-btn, .removal-scenes button, .cloud-scenes button { padding: 8px 16px; }
  .method-grid { grid-template-columns: 1fr; }
  .video-comparison-row { flex-direction: column; }
  .video-card { width: 100%; }
  .removal-columns { grid-template-columns: 1fr; gap: 24px; }
  .removal-gallery .video-card { padding: 0; }
  .cloud-row { grid-template-columns: 1fr; }
  .cloud-inputs { grid-column: auto; }
  .cloud-cover { max-height: 200px; }
  .cloud-input-grid { grid-template-columns: repeat(2,1fr); }
  .cloud-panel h4 { font-size: 20px; }
  .bibtex-block { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
