:root {
  color-scheme: dark;
  --ink: #f6f8fb;
  --muted: #aeb6bf;
  --soft: #d7dee6;
  --bg: #030303;
  --panel: #131416;
  --panel-strong: #181a1d;
  --line: #30343a;
  --cyan: #b8edff;
  --blue: #4dbfe8;
  --gold: #d7a44c;
  --green: #79d09e;
  --rose: #e78aa5;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.paper-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 72px) 76px;
  background: #030303;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  font-size: 14px;
  font-weight: 850;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--soft);
  font-size: 15px;
}

.navlinks a {
  opacity: 0.86;
  transition: opacity 160ms ease, color 160ms ease;
}

.navlinks a:hover {
  color: var(--cyan);
  opacity: 1;
}

.hero-title {
  width: min(1180px, 100%);
  margin: auto auto 0;
  padding-top: 80px;
  text-align: center;
}

.venue,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(70px, 11vw, 150px);
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  max-width: 1080px;
  margin: 34px auto 0;
  color: var(--soft);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 460;
}

.authors,
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 18px;
}

.authors {
  max-width: 1060px;
  margin: 52px auto 0;
  color: #ffffff;
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 780;
  line-height: 1.35;
}

.authors sup,
.affiliations sup,
.author-notes sup {
  color: var(--soft);
  font-size: 0.65em;
  font-weight: 650;
}

.affiliations {
  max-width: 1120px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 17px);
}

.author-notes {
  margin: 12px 0 0;
  color: #8f99a5;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f7fbff;
  font-size: 15px;
  font-weight: 780;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 237, 255, 0.65);
  background: rgba(184, 237, 255, 0.12);
}

.button.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #071014;
}

.button.disabled {
  color: #9aa4ae;
  cursor: default;
}

.button.disabled:hover {
  transform: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 94px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.wide {
  max-width: 100%;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2.single-line {
  white-space: nowrap;
}

h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.18;
}

h4 {
  margin: 14px 4px 2px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.abstract-section {
  padding-top: 38px;
}

.abstract-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.abstract-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.75;
}

.abstract-card p + p {
  margin-top: 24px;
}

.abstract-card strong {
  color: #ffffff;
  font-weight: 850;
}

.overview-video,
.result-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.figure-panel {
  overflow: hidden;
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.figure-panel img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.overview-video {
  box-shadow: var(--shadow);
}

.method-panel {
  display: grid;
  gap: 18px;
}

.method-figure {
  padding: clamp(14px, 2.5vw, 30px);
}

.efficiency-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: stretch;
  gap: 20px;
}

.efficiency-figure {
  display: flex;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card,
.method-list article,
.result-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.stat-card strong {
  color: var(--cyan);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1;
}

.stat-card span {
  margin-top: 12px;
  color: var(--soft);
  font-size: 16px;
  font-weight: 750;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-list article {
  padding: 22px;
  border-top: 5px solid var(--gold);
}

.method-list article:nth-child(2) {
  border-top-color: var(--blue);
}

.method-list article:nth-child(3) {
  border-top-color: var(--green);
}

.method-list span {
  display: block;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.method-list p,
.result-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.result-group {
  margin-top: 70px;
}

.result-group:first-of-type {
  margin-top: 0;
}

.group-heading {
  margin-bottom: 24px;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.result-card {
  padding: 14px;
}

.result-card video::-webkit-media-controls {
  opacity: 0;
  transition: opacity 160ms ease;
}

.result-card:hover video::-webkit-media-controls,
.result-card video:focus::-webkit-media-controls {
  opacity: 1;
}

.citation-section {
  max-width: 980px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101113;
  color: #f2f5f7;
  font-size: 14px;
  line-height: 1.6;
}

footer {
  padding: 34px 20px 50px;
  color: #8f99a5;
  text-align: center;
}

@media (max-width: 980px) {
  .paper-hero {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
  }

  .navlinks {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  h2.single-line {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .paper-hero {
    padding-bottom: 54px;
  }

  .topbar {
    display: block;
  }

  .navlinks {
    justify-content: flex-start;
    margin-top: 18px;
    gap: 12px 18px;
  }

  .hero-title {
    padding-top: 56px;
  }

  .actions,
  .stat-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
