:root {
  --ink: #17212b;
  --muted: #617181;
  --navy: #173a59;
  --blue: #2d6f9f;
  --teal: #45aaa7;
  --paper: #ffffff;
  --soft: #f4f8fa;
  --line: #dbe5eb;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Noto Sans", sans-serif;
  background: var(--paper);
}

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

.navbar {
  border-bottom: 1px solid rgba(23, 58, 89, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand-mark {
  color: var(--navy) !important;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.publication-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(69, 170, 167, 0.15), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(45, 111, 159, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.publication-hero .hero-body {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.publication-title,
.section-title,
.feature-card .title,
.result-block .title {
  font-family: "Google Sans", "Noto Sans", sans-serif;
}

.publication-title {
  color: var(--navy);
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

.publication-authors,
.publication-affiliations,
.publication-note {
  font-family: "Google Sans", "Noto Sans", sans-serif;
}

.publication-authors {
  margin-top: 1.75rem;
}

.publication-affiliations {
  color: #435568;
  margin-top: 0.55rem;
}

.publication-note {
  color: var(--muted);
  margin-top: 0.3rem;
}

.author-block {
  display: inline-block;
  margin: 0 0.15rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.publication-links .button {
  background: var(--ink);
  border: 0;
  min-width: 7.2rem;
  transition: transform 160ms ease, background 160ms ease;
}

.publication-links .button:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.section {
  padding: 4.5rem 1.5rem;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 2rem !important;
}

.teaser-section {
  padding-top: 2rem;
}

.paper-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(23, 58, 89, 0.08);
  display: block;
  height: auto;
  margin: 0 auto;
  width: 100%;
}

.figure-link {
  display: block;
}

.teaser-image {
  max-width: 1100px;
}

.figure-caption {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1rem auto 0;
  max-width: 850px;
}

.publication-video {
  background: #0d1923;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(23, 58, 89, 0.12);
  height: 0;
  margin: 3rem auto 0;
  max-width: 960px;
  overflow: hidden;
  padding-bottom: min(56.25%, 540px);
  position: relative;
  width: 100%;
}

.publication-video iframe,
.video-poster {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.video-poster {
  background: #0d1923;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.video-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
  width: 100%;
}

.video-poster:hover img {
  opacity: 0.9;
  transform: scale(1.015);
}

.video-play {
  align-items: center;
  background: rgba(15, 34, 51, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1.4rem;
  height: 4.5rem;
  justify-content: center;
  left: 50%;
  padding-left: 0.2rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
}

.abstract-text {
  font-family: "Castoro", Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.75;
}

.feature-columns {
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 100%;
  padding: 1.75rem;
}

.feature-card .title {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #435568;
  line-height: 1.65;
}

.feature-index {
  color: var(--teal);
  font-family: "Google Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.result-block {
  margin-top: 4rem;
}

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

.result-block .title {
  color: var(--navy);
  text-align: center;
}

.result-figure {
  max-height: 920px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

.compact-result {
  max-height: 760px;
}

.bibtex-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.bibtex-heading .section-title {
  margin-bottom: 1rem !important;
}

pre {
  background: #eaf1f5 !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #263746 !important;
  overflow-x: auto;
  padding: 1.3rem !important;
}

.footer {
  padding: 3rem 1.5rem;
}

@media screen and (max-width: 768px) {
  .publication-hero .hero-body {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .section {
    padding: 3.25rem 1rem;
  }

  .publication-title {
    font-size: 2.25rem !important;
  }

  .publication-video {
    border-radius: 9px;
  }

  .paper-figure {
    border-radius: 9px;
  }
}
