:root {
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #ccfbf1;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --page: #f8fafc;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

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

.hero {
  background:
    radial-gradient(1200px 420px at 50% -80px, rgba(14, 165, 233, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.publication-title {
  font-family: "Source Serif 4", "Castoro", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.publication-authors,
.publication-venue {
  font-family: "Inter", "Google Sans", sans-serif;
}

.publication-authors a {
  color: var(--accent) !important;
  font-weight: 500;
}

.publication-authors a:hover {
  text-decoration: underline;
}

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

.affiliation {
  color: var(--muted);
  margin-top: 0.35rem;
}

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

.link-block {
  display: flex;
}

.publication-links .button,
.link-block a {
  margin: 0;
  height: 2.5em;
}

.button.is-dark {
  background: var(--ink);
  border: none;
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button.is-dark:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.is-static {
  background: var(--ink) !important;
  border: none !important;
  color: #fff !important;
  opacity: 0.78;
  pointer-events: none;
  cursor: default;
  box-shadow: none !important;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}

.highlight-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 0.9rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.highlight-card .value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
}

.highlight-card .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 2.25rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video-card {
  background: #04151a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #04151a;
}

.video-card .caption {
  padding: 0.7rem 0.85rem 0.85rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 99px;
  background: var(--accent);
}

.content p {
  color: #334155;
  line-height: 1.75;
}

.figure-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.figure-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: zoom-in;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.figure-card img:hover {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.figure-card.is-compact {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.figure-caption {
  margin: 0.8rem 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: justify;
}

.results-block + .results-block {
  margin-top: 2.75rem;
}

.dataset-result + .dataset-result {
  margin-top: 1.35rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.86);
  z-index: 1000;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  color: inherit;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

@media screen and (max-width: 1023px) {
  .highlights,
  .video-grid {
    grid-template-columns: 1fr;
  }

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