:root {
  --ink: #f0fdf4;
  --muted: #a8b8ae;
  --green: #22c55e;
  --green-soft: #86efac;
  --line: #24352d;
  --paper: #0a1510;
  --background: #07100b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.content-width {
  max-width: 1040px;
}

.reading-width {
  max-width: 880px;
}

.paper-header {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(134, 239, 172, 0.38), transparent 32%),
    linear-gradient(135deg, #072b1c 0%, #0f6b3b 55%, #22a85a 100%);
}

.header-glow {
  position: absolute;
  inset: auto -10% -220px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
}

.paper-header .container {
  position: relative;
}

.venue {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 1020px;
  margin: 0 auto 30px;
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.title-tail {
  white-space: nowrap;
}

.title-icon {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.12em;
  object-fit: contain;
  vertical-align: -0.05em;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 24px;
  margin: 0 auto;
  font-size: 1.12rem;
  font-weight: 620;
}

.authors a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.authors a:hover {
  text-decoration-color: #fff;
}

.affiliations {
  max-width: 900px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.55;
}

.affiliations p {
  margin: 0;
}

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

.publication-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 22, 13, 0.56);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a.publication-link:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(3, 22, 13, 0.8);
  transform: translateY(-1px);
}

.publication-link.is-disabled {
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
}

.section {
  padding: 76px 0;
}

.visual-section,
.demo-section {
  background: var(--paper);
}

.hero-visual {
  padding-top: 64px;
  padding-bottom: 64px;
}

.abstract-section {
  border-top: 1px solid var(--line);
  background: #0d1b14;
}

.method-section,
.demo-section,
.comparison-section,
.case-section {
  border-top: 1px solid var(--line);
}

.comparison-section {
  background: #0d1b14;
}

.case-section {
  background: var(--paper);
}

.section-heading {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.image-frame,
.video-frame {
  overflow: hidden;
  border: 1px solid #2b4035;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-card {
  margin: 0;
}

.figure-card figcaption {
  max-width: 960px;
  margin: 18px auto 0;
  color: #aec1b5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.72;
  text-align: justify;
}

.figure-card figcaption strong {
  color: #f0fdf4;
}

.video-frame {
  border-radius: 18px;
  background: #050b07;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 75vh;
  background: #050b07;
}

h3 {
  margin: 0;
  color: #f0fdf4;
  font-size: 1.2rem;
  line-height: 1.25;
}

.media-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #2b4035;
  border-radius: 16px;
  background: rgba(7, 16, 11, 0.72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.media-card:first-of-type {
  margin-top: 0;
}

.media-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.media-card-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.carousel-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3f604d;
  border-radius: 50%;
  color: #f0fdf4;
  background: #10271a;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: var(--green-soft);
  background: #173a25;
  outline: none;
  transform: translateY(-1px);
}

.carousel-status {
  min-width: 48px;
  color: #bdd0c4;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.carousel-stage,
.media-video-frame {
  overflow: hidden;
  border: 1px solid #2b4035;
  background: #050b07;
}

.carousel-video,
.media-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #050b07;
}

.carousel-video[hidden] {
  display: none;
}

.media-video-frame-wide video {
  aspect-ratio: auto;
}

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

.compact-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-top: 0;
}

.compact-card .media-video-frame {
  margin-top: auto;
}

.abstract {
  margin: 0;
  color: #c9d8cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.92;
  text-align: justify;
  text-wrap: pretty;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid #1b2a22;
  color: #8fa398;
  background: #050b07;
  font-size: 0.86rem;
  line-height: 1.7;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #9ee7b7;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .paper-header {
    padding: 58px 0 52px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section {
    padding: 54px 0;
  }

  .video-frame {
    border-radius: 11px;
  }

  .abstract,
  .figure-card figcaption {
    text-align: left;
  }

  .abstract {
    font-size: 1.02rem;
    line-height: 1.82;
  }

  .media-card {
    padding: 16px;
    border-radius: 12px;
  }

  .media-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}
