body {
  font-family: 'Noto Sans', sans-serif;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Alternating section background to visually separate sections.
   Matches Bulma's hero `is-light` gray used by the results section. */
.section.alt-bg {
  background-color: #f5f5f5;
}

/* Scroll-progress indicator pinned at the very top. */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, #3273dc, #b5179e, #ff8a00);
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* Keep the section nav pinned to the top while scrolling. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(255, 255, 255, 0.85) !important;
  transition: box-shadow 0.3s ease;
}

.navbar-item {
  position: relative;
  transition: color 0.2s ease;
}

/* Animated underline on nav items. */
.navbar-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3273dc, #b5179e);
  transition: width 0.25s ease, left 0.25s ease;
}

.navbar-item:hover::after {
  width: calc(100% - 1.5rem);
  left: 0.75rem;
}

/* Offset anchor jumps so section tops aren't hidden under the sticky nav. */
#abstract,
#method,
#results,
#comparisons,
#quantitative,
#BibTeX {
  scroll-margin-top: 4rem;
}


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

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

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


.teaser .hero-body {
  /* Breathing room so the overview video sits clear of the title hero's
     animated gradient backdrop above. */
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

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

.teaser video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.teaser video:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

/* Animated gradient backdrop for the hero (title section). */
.hero:not(.is-light):not(.teaser) {
  background: linear-gradient(120deg,
    rgba(50, 115, 220, 0.06),
    rgba(181, 23, 158, 0.06),
    rgba(255, 138, 0, 0.06),
    rgba(50, 115, 220, 0.06));
  background-size: 300% 300%;
  animation: hero-gradient 18s ease infinite;
}

@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating robocutie next to the title. */
.publication-title img {
  animation: floaty 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(50, 115, 220, 0.25));
  transition: transform 0.3s ease;
}

.publication-title img:hover {
  animation-play-state: paused;
  transform: rotate(-8deg) scale(1.15);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

/* Subtle entrance on the title itself. */
.publication-title {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons: lift + glow on hover. */
.publication-links .button,
.stage-tab,
.task-tab,
.cmp-tab,
.policy-tab {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease !important;
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.publication-links .button {
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep across the paper/arXiv buttons. */
.publication-links .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}

.publication-links .button:hover::before {
  left: 100%;
}

/* Tabbed selectors (method stages, result tasks): dim inactive, highlight the
   selected one. */
.stage-tab,
.task-tab,
.cmp-tab,
.policy-tab {
  opacity: 0.55;
}
.stage-tab.is-active,
.task-tab.is-active,
.cmp-tab.is-active,
.policy-tab.is-active {
  opacity: 1;
  box-shadow: 0 6px 18px rgba(50, 115, 220, 0.25);
  transform: translateY(-1px);
}
.stage-tab:hover,
.task-tab:hover,
.cmp-tab:hover,
.policy-tab:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.stage-panel,
.task-panel,
.cmp-panel {
  margin-top: 1.5rem;
  animation: panel-fade 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section titles get an animated underline accent. Kept as a block (so
   has-text-centered on the title itself still works) — the accent is an
   absolute-positioned pseudo-element centered with translateX. */
.title.is-3 {
  position: relative;
  padding-bottom: 0.55rem;
}

.title.is-3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #3273dc, #b5179e);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.title.is-3.in-view::after {
  width: 60px;
}

/* Section reveal-on-scroll. Sections start hidden, fade up when visible. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Method/results figures: soft shadow + hover lift. */
#method img,
#quantitative img {
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#method img:hover,
#quantitative img:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

/* Comparison videos: side-by-side cards with a subtle label badge. */
#comparisons video {
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#comparisons .column:hover video {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/* Quantitative table polish: subtle row hover. */
#quantitative table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#quantitative table tbody tr:hover {
  background-color: rgba(50, 115, 220, 0.08) !important;
}

/* BibTeX code block: monospace card with a hover lift. */
#BibTeX pre {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#BibTeX pre:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

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

.publication-header .hero-body {
}

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

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

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

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

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

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

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

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.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%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.results-carousel .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.results-carousel video {
  margin: 0;
}

/* Single-slide task carousels: the rollout videos are square (~1:1), so cap the
   carousel width to the video size and let the video fill the slide edge-to-edge
   (no empty side space). */
.task-carousel {
  max-width: 560px;
  margin: 0 auto;
}
.task-carousel .item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  /* Side gutters so the nav arrows sit beside the video, not over it. */
  padding: 0 40px;
}
.task-carousel video {
  display: block;
  width: 100%;
  height: auto;
  /* Pin every rollout in the carousel to the same shape so a clip with a
     slightly different source aspect ratio (e.g. stacking_ours_4) doesn't
     resize the slot. cover crops a sliver if needed; the robot stays centered. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
}


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

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

.interpolation-video-column {
}

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

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

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