:root {
  --ink: #17201c;
  --muted: #5d6863;
  --paper: #fbfaf7;
  --soft: #eef4f0;
  --line: #d9e2dc;
  --accent: #0f766e;
  --accent-dark: #104f4a;
  --link: #2563eb;
  --iccv: #e00000;
  --warm: #a85f24;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(23, 32, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
}

.narrow {
  width: min(800px, calc(100% - 36px));
}

.hero {
  padding: 44px 0 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 250, 247, 0.96)),
    radial-gradient(circle at 18% 8%, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(168, 95, 36, 0.15), transparent 30%);
}

.hero-inner {
  text-align: center;
}

.venue {
  display: block;
  margin: 18px 0 0;
  color: var(--iccv);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 780px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 16px;
  max-width: 900px;
  margin: 26px auto 0;
  color: var(--link);
  font-size: 1.15rem;
  font-weight: 650;
}

.authors span:not(:last-child)::after {
  content: ",";
  color: var(--ink);
  margin-left: 1px;
}

.authors a {
  color: var(--link);
  text-decoration: none;
}

.authors a:hover,
.authors a:focus-visible {
  color: #174ea6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.affiliation {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.12);
  transition: transform 160ms ease, background 160ms ease;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
  line-height: 1;
}

.button-icon svg {
  width: 100%;
  height: 100%;
}

.pdf-icon {
  width: 20px;
  flex-basis: 20px;
}

.arxiv-icon {
  color: currentColor;
  font-size: 1.15rem;
  font-weight: 800;
}

.arxiv-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.youtube-icon {
  width: 25px;
  flex-basis: 25px;
}

.poster-icon {
  width: 20px;
  flex-basis: 20px;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.teaser,
.figure {
  max-width: 940px;
  margin: 0 auto;
}

.teaser {
  max-width: 920px;
}

.teaser img,
.figure img {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  text-align: center;
}

.section {
  padding: 54px 0;
}

.tinted {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  text-align: center;
}

.split h2 {
  text-align: left;
}

h3 {
  font-size: 1.02rem;
}

p {
  margin: 0 0 16px;
}

.section-lead {
  max-width: 800px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1rem;
}

.video-section {
  padding-top: 30px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101816;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 38px;
  align-items: start;
}

.keypoints {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(23, 32, 28, 0.08);
}

.keypoints h3 {
  margin-bottom: 12px;
}

.keypoints ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.method-grid article {
  min-height: 180px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.method-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.figure + .figure {
  margin-top: 28px;
}

.compact img {
  max-width: 760px;
  margin: 0 auto;
}

.tables {
  display: grid;
  gap: 30px;
}

.tables h3,
.ablation-table {
  margin-top: 18px;
}

.tables h3 {
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compact-table {
  min-width: 520px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--accent-dark);
  background: rgba(15, 118, 110, 0.08);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.highlight td {
  color: var(--accent-dark);
  background: rgba(15, 118, 110, 0.07);
  font-weight: 800;
}

.ablation-table th:nth-child(2),
.ablation-table th:nth-child(3),
.ablation-table th:nth-child(4),
.ablation-table td:nth-child(2),
.ablation-table td:nth-child(3),
.ablation-table td:nth-child(4) {
  text-align: center;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.status-icon.check {
  color: #12805c;
}

.status-icon.cross {
  color: #d92d20;
}

.poster-section {
  text-align: center;
}

.poster-frame {
  overflow: hidden;
  width: 100%;
  height: 700px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.poster-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.poster-download {
  margin: 18px 0 0;
}

.poster-button {
  background: var(--link);
}

.poster-button:hover,
.poster-button:focus-visible {
  background: #174ea6;
}

.bibtex {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid #eadbc5;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bibtex-header {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 10px;
}

.copy-button {
  min-height: 36px;
  padding: 7px 14px;
  color: var(--white);
  background: var(--accent-dark);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--ink);
}

.footer {
  padding: 30px 0;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.92rem;
}

.footer a {
  color: var(--link);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .section {
    padding: 48px 0;
  }

  .split,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: auto;
  }

  .poster-frame {
    height: 520px;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1040px);
  }

  .hero {
    padding-top: 34px;
  }

  .authors {
    gap: 6px 10px;
    font-size: 0.93rem;
  }

  .actions {
    gap: 9px;
  }

  .button {
    min-width: 96px;
    min-height: 40px;
    padding: 8px 13px;
  }

  figcaption {
    font-size: 0.88rem;
  }
}
