:root {
  --ink: #18212b;
  --muted: #5d6875;
  --line: #dce4e8;
  --paper: #ffffff;
  --wash: #f3f7f6;
  --green: #1d7a62;
  --blue: #236d91;
  --gold: #9b7429;
  --soft: #eef4f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--green);
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 1.25rem;
}

.brand {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero-section {
  background: linear-gradient(180deg, #f7fbfa 0%, #ffffff 74%);
  padding: 4.7rem 1.25rem 3.6rem;
}

.hero-section .container,
.paper-section .container {
  max-width: 100%;
}

.paper-kicker {
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 auto 0.75rem;
  text-align: center;
  text-transform: uppercase;
}

.publication-title {
  color: var(--ink);
  font-size: clamp(2.05rem, 4.8vw, 4.15rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 2rem auto 0;
  max-width: 1180px;
  overflow-wrap: anywhere;
  text-align: center;
  word-break: break-word;
}

.publication-subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  margin: 1.3rem auto 0;
  max-width: 920px;
  text-align: center;
}

.publication-authors {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.78rem;
  justify-content: center;
  margin: 1.45rem auto 0;
  max-width: 1040px;
  width: 100%;
}

.publication-authors span,
.publication-authors a {
  font-weight: 720;
}

.publication-authors span {
  color: var(--ink);
}

.publication-authors a {
  border-bottom: 1px solid rgba(35, 109, 145, 0.45);
  color: var(--blue);
  padding-bottom: 0.08rem;
}

.publication-authors a:hover {
  border-bottom-color: var(--green);
  color: var(--green);
}

.publication-authors .equal-mark {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 850;
  margin-left: -0.58rem;
}

.author-note,
.affiliation {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0.65rem auto 0;
  max-width: 920px;
  text-align: center;
}

.publication-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.55rem;
}

.button {
  border-radius: 999px;
  font-weight: 750;
  min-height: 2.6rem;
}

.button.is-dark {
  background: var(--ink);
}

.button.is-dark:hover {
  background: #273746;
}

.button.is-light {
  background: var(--soft);
  color: var(--ink);
}

figcaption {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 0.75rem;
  text-align: center;
}

.paper-section {
  padding: 4.5rem 1.25rem;
}

.section-tint {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 0 auto 2rem;
  max-width: 840px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 0.55rem;
}

.section-title {
  color: var(--ink);
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 0.95rem;
  text-align: center;
}

.abstract-text {
  color: #26323d;
  font-size: 1.04rem;
  margin: 0 auto;
  max-width: 760px;
}

.abstract-container {
  max-width: 820px !important;
}

.abstract-text p + p,
.deployment-text p + p {
  margin-top: 1rem;
}

.paper-visual {
  margin: 0 auto 2rem;
  max-width: 960px;
  width: 100%;
}

.paper-visual img {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(24, 33, 43, 0.06);
  display: block;
  height: auto;
  width: 100%;
}

.overview-visual {
  margin-top: 2.8rem;
  max-width: 900px;
}

.paper-video {
  margin: 2.3rem auto 0;
  max-width: 1080px;
  position: relative;
}

.video-shell {
  aspect-ratio: 16 / 9;
  background: #101820;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(24, 33, 43, 0.16);
  overflow: hidden;
  position: relative;
}

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

.method-visual {
  max-width: 980px;
}

.qualitative-visual {
  max-width: 980px;
}

.feature-grid,
.metric-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 33, 43, 0.05);
}

.feature-card {
  min-height: 250px;
  padding: 1.2rem;
}

.feature-label {
  color: var(--gold);
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.feature-card h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.metric-card {
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  color: var(--green);
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.metric-label {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  margin-top: 0.45rem;
}

.comparison-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 33, 43, 0.05);
  margin: 0 auto 2.25rem;
  max-width: 1080px;
  overflow-x: auto;
}

.comparison-table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.78rem 0.82rem;
  text-align: center;
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--soft);
  color: #31404c;
  font-weight: 850;
}

.comparison-table tbody th {
  font-weight: 820;
  text-align: left;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table .ours-row th,
.comparison-table .ours-row td {
  background: #f7fbf9;
}

.best-value {
  color: var(--green);
  font-weight: 900;
}

.best-alt {
  color: var(--gold);
  font-weight: 850;
}

.intensity-layout {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 0.78fr) minmax(260px, 1fr);
}

.intensity-visual {
  margin-bottom: 0;
  max-width: 560px;
}

.deployment-text {
  color: #26323d;
  font-size: 1.03rem;
}

.bibtex {
  background: #101820;
  border-radius: 8px;
  color: #eef4f2;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  padding: 1.2rem;
  white-space: pre;
}

.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 1.25rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-section .container,
  .paper-section .container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .abstract-container {
    max-width: 760px !important;
  }

  .publication-title {
    font-size: clamp(1.65rem, 6.2vw, 2.65rem);
    max-width: 100%;
  }

  .publication-authors {
    gap: 0.3rem 0.62rem;
  }
}

@media (max-width: 1024px) {
  .feature-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intensity-layout {
    grid-template-columns: 1fr;
  }

  .intensity-visual {
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 0.85rem;
    padding-top: 0.85rem;
  }

  .nav-links {
    display: grid;
    gap: 0.25rem 0.85rem;
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .hero-section {
    overflow: hidden;
    padding-top: 3.2rem;
  }

  .publication-title {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    max-width: 100%;
    overflow-wrap: anywhere;
    width: 100%;
    word-break: break-word;
  }

  .publication-subtitle,
  .publication-authors,
  .author-note,
  .affiliation {
    overflow-wrap: anywhere;
    width: 100%;
  }

  .publication-links .button {
    width: 100%;
  }

  .paper-visual,
  .overview-visual,
  .method-visual,
  .qualitative-visual,
  .intensity-visual,
  .paper-video {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
  }

  .comparison-table-wrap,
  .bibtex {
    max-width: 100%;
  }

  .feature-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .paper-section {
    padding: 3.2rem 1rem;
  }

  .comparison-table th,
  .comparison-table td {
    font-size: 0.86rem;
    padding: 0.7rem 0.7rem;
  }
}
