:root {
  --text: #0f172a;
  --muted: #64748b;
  --link: #2f81f7;
  --accent: #0ea5e9;
  --accent-2: #22d3ee;
  --card-border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(186, 230, 253, 0.45), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(165, 243, 252, 0.35), transparent 70%),
    radial-gradient(40% 30% at 90% 20%, rgba(199, 210, 254, 0.3), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 34%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container.is-max-desktop {
  max-width: 960px;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -80px;
  background: radial-gradient(circle at 30% 30%, #7dd3fc, transparent 65%);
}

.orb-b {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 20px;
  background: radial-gradient(circle at 60% 40%, #67e8f9, transparent 65%);
  animation-delay: -5s;
}

.orb-c {
  width: 300px;
  height: 300px;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, #c7d2fe, transparent 65%);
  animation-delay: -9s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -18px) scale(1.04); }
}

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

.publication-venue {
  display: inline-block;
  width: auto;
  margin: 0 auto 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  margin-bottom: 0.5rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.text-gradient {
  background: linear-gradient(120deg, #0f172a 0%, #0ea5e9 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.publication-subtitle {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color: var(--muted);
  line-height: 1.35;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

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

.publication-authors a {
  color: var(--link) !important;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s var(--ease-out);
}

.publication-authors a:hover {
  background-size: 100% 1px;
}

.author-block {
  display: inline-block;
  margin: 0 2px;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin-top: 1.8rem;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.publication-links .button {
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #fff;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer {
  background: transparent;
  padding-top: 3rem;
}

.footer .icon-link {
  font-size: 25px;
  color: var(--text);
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
  display: inline-block;
}

.footer .icon-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.dnerf {
  font-variant: small-caps;
}

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

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

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

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

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section .title.is-3,
.hero .title.is-3 {
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.section .title.is-3::after,
.hero .title.is-3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out) 0.1s;
}

.section .title.is-3.is-visible::after,
.hero .title.is-3.is-visible::after {
  transform: scaleX(1);
}

.content.has-text-justified {
  text-align: justify;
  text-justify: inter-word;
  color: #1f2937;
}

.figure-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.7rem auto 0;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.figure-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
}

.figure-wide {
  max-width: 100%;
}

.figure-narrow {
  max-width: 820px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 32px;
  margin-top: 1.6rem;
}

.video-item {
  text-align: center;
}

.video-item .title.is-5 {
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.video-item video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.video-item video:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.14);
}

.results-carousel {
  overflow: hidden;
}

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

.results-carousel video {
  margin: 0;
}

.interpolation-panel {
  background: #ffffff;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .figure-narrow {
    max-width: 100%;
  }

  .orb {
    filter: blur(56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section .title.is-3::after,
  .hero .title.is-3::after {
    transform: scaleX(1);
    transition: none;
  }
}
