:root {
  --ink:#303238;
  --muted:#6b6d73;
  --accent:#a93448;
  --link:#277ba4;
  --soft:#f6f6f6;
  --line:#ddd;
  --font:Arial,Helvetica,sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:25px;
}
body {
  margin:0;
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  background:white;
}
a {
  color:var(--link);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
a:focus-visible,button:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--link);
  outline-offset:5px;
}
button,select {
  font:inherit;
}
.container {
  width:min(1080px,calc(100% - 48px));
  margin-inline:auto;
}
.reading {
  max-width:850px;
}
.hero {
  max-width:1080px;
  margin:auto;
  padding:64px 24px 40px;
  text-align:center;
}
.venue {
  margin:0 0 15px;
  letter-spacing:.16em;
  font-weight:700;
  color:var(--accent);
  font-size:17px;
}
h1 {
  font-size:clamp(29px,3.4vw,43px);
  line-height:1.19;
  letter-spacing:-1.25px;
  font-weight:700;
  margin:0 auto 28px;
  max-width:1020px;
}
.project-name {
  color:var(--accent);
}
.authors {
  font-size:22px;
  margin:0 0 3px;
}
.authors span {
  color:#999;
  margin:0 14px;
}
.affiliation {
  font-size:20px;
  margin:0 0 25px;
}
.resource-links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
}
.resource {
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:#353535;
  color:white;
  min-height:41px;
  border-radius:24px;
  padding:6px 18px;
  font-size:16px;
  line-height:1.4;
}
.resource:hover {
  background:#555;
  text-decoration:none;
}
.resource svg {
  width:17px;
  height:17px;
  fill:currentColor;
}
.resource.pending {
  background:#efefef;
  color:#555;
  cursor:default;
}
.pending small {
  font-size:11px;
  color:#646464;
  border-left:1px solid #c4c4c4;
  padding-left:8px;
}
.teaser {
  max-width:850px;
  padding:6px 0 50px;
}
.teaser img {
  max-width:620px;
  margin:auto;
}
.takeaway {
  font-size:22px;
  line-height:1.5;
  margin-top:20px;
  color:var(--ink);
}
.takeaway span {
  font-size:18px;
  color:var(--muted);
}
.section {
  padding-block:52px;
}
.soft {
  background:var(--soft);
}
h2 {
  text-align:center;
  font-size:31px;
  line-height:1.25;
  letter-spacing:-.6px;
  margin:0 0 28px;
  font-weight:650;
}
h3 {
  font-size:23px;
  line-height:1.35;
  margin:34px 0 15px;
  font-weight:600;
}
p {
  margin:0 0 22px;
}
.reading p {
  text-align:justify;
}
figure {
  margin:28px 0 0;
}
img {
  display:block;
  width:100%;
  height:auto;
}
figcaption,.caption {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}
figcaption {
  margin-top:13px;
  text-align:center;
}
.figure-link {
  display:block;
  cursor:zoom-in;
}
.section-nav {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 28px;
  padding:22px 0;
  border-bottom:1px solid #e9e9e9;
  font-size:14px;
}
.method-notes {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin-top:10px;
}
.method-notes h3 {
  font-size:19px;
}
.method-notes p {
  font-size:15px;
  color:#5d6067;
  margin-bottom:0;
}
.table-scroll {
  overflow:auto;
  margin:26px 0 16px;
  border-top:2px solid #444;
  border-bottom:2px solid #444;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:14px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  text-align:center;
}
caption {
  caption-side:bottom;
  font-size:12px;
  text-align:left;
  padding:12px 6px;
  color:var(--muted);
  white-space:normal;
}
th,td {
  padding:11px 10px;
  border-bottom:1px solid var(--line);
}
thead {
  border-bottom:1px solid #666;
}
thead th {
  font-weight:600;
}
tbody th {
  text-align:left;
  font-weight:500;
}
.ours {
  background:#f7e9ec;
  color:#852a3a;
}
.ours th,.ours td {
  font-weight:600;
}
.compact-table {
  max-width:730px;
  margin-inline:auto;
}
.center {
  text-align:center;
}
.video-toolbar {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin:26px 0 22px;
}
.video-toolbar label {
  font-size:15px;
  font-weight:600;
}
select {
  max-width:100%;
  border:1px solid #c5c5c5;
  border-radius:6px;
  background:white;
  padding:9px 34px 9px 12px;
  color:var(--ink);
  font-size:15px;
}
.video-panel {
  display:flex;
  gap:14px;
}
.video-panel[hidden] {
  display:none;
}
.video-panel figure {
  flex:1;
  min-width:0;
  margin:0;
}
.video-label {
  font-size:15px;
  font-weight:600;
  color:var(--ink);
  margin:0 0 8px;
}
.video-label.ours {
  background:transparent;
  color:var(--accent);
}
video {
  display:block;
  width:100%;
  aspect-ratio:16/9;
  background:#171717;
}
.playback-controls {
  display:flex;
  justify-content:center;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:22px 0 14px;
}
button {
  cursor:pointer;
  border:1px solid #353535;
  border-radius:6px;
  background:#353535;
  color:white;
  padding:8px 17px;
  font-size:14px;
  line-height:1.5;
}
button:hover {
  background:#555;
}
.secondary {
  background:white;
  color:var(--ink);
  border-color:#ccc;
}
.secondary:hover {
  background:#eaeaea;
}
pre {
  font:14px/1.7 Consolas,monospace;
  background:#ececec;
  padding:24px;
  overflow:auto;
  margin-bottom:12px;
  border-radius:5px;
  text-align:left;
}
.bib-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
  gap:16px;
}
.bib-heading h2 {
  margin:0;
}
footer {
  padding:38px 0;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}
footer p {
  margin:0 0 8px;
}
.skip-link {
  position:absolute;
  left:12px;
  top:-60px;
  z-index:10;
  background:white;
  padding:10px;
}
.skip-link:focus {
  top:10px;
}
@media(max-width:700px) {
  body {
    font-size:16px;
  }
  .container {
    width:calc(100% - 32px);
  }
  .hero {
    padding-top:38px;
    padding-bottom:28px;
  }
  h1 {
    letter-spacing:-.6px;
  }
  .authors {
    font-size:20px;
  }
  .affiliation {
    font-size:18px;
  }
  .resource {
    font-size:14px;
    padding:7px 13px;
  }
  .pending small {
    font-size:10px;
  }
  .teaser {
    padding-bottom:32px;
  }
  .takeaway {
    font-size:19px;
  }
  .takeaway span {
    font-size:16px;
  }
  .section {
    padding-block:36px;
  }
  h2 {
    font-size:27px;
  }
  h3 {
    font-size:21px;
  }
  .reading p {
    text-align:left;
  }
  .method-notes {
    grid-template-columns:1fr;
    gap:0;
  }
  .method-notes h3 {
    margin-top:22px;
  }
  .video-panel {
    flex-direction:column;
    gap:19px;
  }
  .video-toolbar {
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .video-toolbar select {
    width:100%;
  }
  .playback-controls {
    gap:9px;
  }
  .bib-heading {
    align-items:flex-start;
  }
  pre {
    font-size:12px;
    padding:16px;
  }
  .section-nav {
    gap:8px 20px;
    font-size:13px;
  }
  th,td {
    padding:9px 10px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}

/* Figures retain the source PNG transparency over an explicit white surface. */
.figure-link, .figure-link img { background: #fff; }
.efficiency-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 28px; width: 100%; }
.efficiency-grid figure { margin: 0; min-width: 0; }
.efficiency-grid .compact-table { width: 100%; max-width: none; margin: 0; }
.efficiency-grid table { font-size: 13px; }
.efficiency-grid th, .efficiency-grid td { padding: 10px 8px; }
.video-group { margin: 40px 0 52px; }
.video-group:last-of-type { margin-bottom: 0; }
.video-group h3 { text-align: center; margin: 0 0 22px; }
h4 { font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; margin: 0 0 14px; }
.sequence-grid, .comparison-grid { display: grid; gap: 18px; }
.comparison-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adobe-grid, .gopro-grid { grid-template-columns: 1fr; gap: 32px; }

.sequence-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; min-width: 0; }
.sequence-pair h4 { grid-column: 1 / -1; }
.video-item { margin: 0; min-width: 0; }

.comparison-row + .comparison-row { margin-top: 32px; }
video { background: #fff; }
@media (max-width: 800px) {
  .efficiency-grid { grid-template-columns: 1fr; gap: 22px; }
  .efficiency-grid figure { width: min(100%, 580px); margin-inline: auto; }
}
@media (max-width: 600px) {
  .sequence-grid { grid-template-columns: 1fr; gap: 32px; }
  .sequence-pair, .comparison-grid { column-gap: 8px; }
  .sequence-pair .video-label { font-size: 12px; }
  .comparison-grid .video-label { font-size: 11px; }
  .video-group h3 { font-size: 20px; }
}
