:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-soft: #f1f6f4;
  --ink: #17191c;
  --text: #262a2f;
  --muted: #6d747c;
  --line: #dde2df;
  --teal: #078276;
  --teal-dark: #045f58;
  --coral: #d95c3f;
  --gold: #c98b1e;
  --blue: #34699a;
  --shadow: 0 18px 45px rgba(23, 25, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: #fff;
  background: rgba(16, 22, 24, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  outline: none;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px 48px 54px;
  color: #fff;
  background: #101618;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  opacity: 0.74;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 15, 0.72) 0%, rgba(7, 13, 15, 0.52) 50%, rgba(7, 13, 15, 0.72) 100%),
    linear-gradient(0deg, rgba(7, 13, 15, 0.7) 0%, rgba(7, 13, 15, 0.28) 48%, rgba(7, 13, 15, 0.78) 100%);
}

.hero-content {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-top: 20px;
}

.venue,
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .venue {
  color: #78e7d8;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: 7.2rem;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.subtitle {
  max-width: 980px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.35rem;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.authors {
  margin: 20px auto 0;
  color: #78e7d8;
  font-size: 1.42rem;
  font-weight: 760;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.56);
}

.publication-authors,
.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

.publication-affiliations {
  margin-top: 4px;
  color: rgba(232, 255, 251, 0.86);
  font-size: 1.18rem;
  font-weight: 620;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

.author-block {
  display: inline-block;
}

.author-block sup {
  font-size: 0.68em;
  line-height: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a,
.disabled-link,
.load-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

.hero-actions a {
  color: #051011;
  background: #fff;
}

.disabled-link {
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.section-copy h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:last-child,
.section-copy p {
  margin: 0;
  color: var(--muted);
}

.paper-figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tldr-section {
  width: min(900px, calc(100% - 36px));
  padding-top: 38px;
  text-align: center;
}

.tldr-section h2 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.4vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.tldr-card {
  padding: 24px;
  text-align: justify;
  background: #f8f9fa;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.tldr-card p {
  margin: 0;
  color: #333a40;
  font-size: 1.25rem;
  line-height: 1.6;
}

.comparison-stack {
  display: grid;
  gap: 34px;
}

.comparison-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.row-header {
  display: block;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.row-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.comparison-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.video-card.featured {
  border-color: rgba(7, 130, 118, 0.42);
  box-shadow: 0 12px 26px rgba(7, 130, 118, 0.13);
}

.video-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 850;
}

.video-card.featured .video-label {
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  min-height: 58px;
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.35fr);
  gap: 34px;
  align-items: center;
}

.section-copy {
  min-width: 0;
}

.paper-figure img {
  width: 100%;
  height: auto;
  background: #fff;
}

.paper-figure figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.load-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.load-button:hover,
.load-button:focus-visible {
  color: #fff;
  background: var(--teal-dark);
  outline: none;
}

.load-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.bibtex-section {
  width: min(920px, calc(100% - 36px));
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  color: #ecf3f2;
  background: #11181b;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer {
  padding: 34px 24px 46px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 12px;
    font-size: 0.86rem;
  }

  .hero-media {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-right: 28px;
    padding-left: 28px;
  }

  h1 {
    font-size: 5.6rem;
  }

  .subtitle {
    font-size: 2rem;
  }

  .comparison-grid,
  .video-grid,
  .figure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .topbar {
    position: absolute;
    display: block;
    padding: 12px 16px;
  }

  .nav-links {
    overflow-x: auto;
    gap: 14px;
    margin-top: 8px;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero {
    min-height: 76vh;
    padding: 112px 18px 34px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .subtitle {
    font-size: 1.32rem;
  }

  .authors {
    font-size: 1.16rem;
  }

  .publication-affiliations {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .comparison-grid,
  .video-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 56px 0;
  }

}
