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

/* Keep the reading column stable even if framework styles are delayed. */
body > .section {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

body > .section > .container.is-max-desktop {
  width: 100%;
  max-width: 960px !important;
  margin-right: auto;
  margin-left: auto;
}

.project-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #171819;
}

.project-hero-media,
.project-hero-scrim {
  position: absolute;
  inset: 0;
}

.project-hero-media {
  z-index: 0;
  background: radial-gradient(circle at center, #25282c 0%, #111315 68%, #090a0b 100%);
}

.project-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-hero-scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.38) 0%, rgba(5, 8, 12, 0.5) 54%, rgba(5, 8, 12, 0.66) 100%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.18), transparent 32%, transparent 68%, rgba(5, 8, 12, 0.18));
}

.project-hero .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  padding: 4rem 1.5rem;
}

.project-hero .publication-title {
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.project-hero .publication-authors {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.project-hero .publication-authors a,
.project-hero .publication-authors .author-name {
  color: #fff !important;
}

.project-hero .publication-links .button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 18, 20, 0.78);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
}

.project-hero .publication-links a.button:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(6, 7, 8, 0.9);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.results-carousel {
  overflow: hidden;
}

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

.results-carousel video {
  margin: 0;
}

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

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

/* Neutral placeholders occupy the same slots as the final paper and video assets. */
.placeholder-media {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #888;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
}

.placeholder-label {
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.8);
}

.placeholder-teaser {
  aspect-ratio: 16 / 9;
}

.placeholder-framework {
  aspect-ratio: 1.8 / 1;
  margin: 1.5rem 0;
}

.placeholder-square {
  aspect-ratio: 1 / 1;
}

.placeholder-task-panel {
  aspect-ratio: 2 / 1;
  margin-top: 1.5rem;
}

.placeholder-video {
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  border: 1px solid #fff;
}

.placeholder-video span {
  color: #888;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
}

.placeholder-button {
  cursor: default;
}

.overview-copy,
.section-copy {
  color: #4a4a4a;
  font-size: 1.15rem;
  line-height: 1.65;
}

.supplementary-video-section {
  background: #fff;
}

.citation-section {
  background: #fff;
}

.approach-section {
  background: #fff;
}

.approach-figure {
  margin: 2rem 0 0;
}

.approach-figure a,
.approach-figure img {
  display: block;
  width: 100%;
}

.approach-figure a {
  border-radius: 14px;
}

.approach-figure a:focus-visible {
  outline: 3px solid rgba(32, 156, 238, 0.5);
  outline-offset: 4px;
}

.approach-figure img {
  height: auto;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #f4f4f4;
}

.citation-block {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid #dedede;
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  background: #f7f7f7;
  color: #252525;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre;
}

.rollout-section {
  overflow: hidden;
  background: #fff;
}

.rollout-heading {
  margin-bottom: 1.5rem !important;
}

.rollout-carousel {
  position: relative;
  padding: 0 2.5rem;
}

.rollout-viewport {
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}

.rollout-viewport:focus-visible {
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(32, 156, 238, 0.35);
}

.rollout-strip {
  display: flex;
  gap: 1rem;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.rollout-card {
  flex: 0 0 calc((100% - 1rem) / 2);
  min-width: calc((100% - 1rem) / 2);
  margin: 0;
}

.rollout-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  object-fit: cover;
}

.rollout-card figcaption {
  display: flex;
  min-height: 3.35rem;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.5rem 0.65rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #2f2f2f;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.carousel-button:hover:not(:disabled) {
  background: #111;
  transform: translateY(-50%) scale(1.05);
}

.carousel-button:focus-visible {
  outline: 3px solid rgba(32, 156, 238, 0.45);
  outline-offset: 3px;
}

.carousel-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.carousel-button-previous {
  left: 0;
}

.carousel-button-next {
  right: 0;
}

.carousel-status {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c3c3c3;
  cursor: pointer;
  transition: width 160ms ease, border-radius 160ms ease, background 160ms ease;
}

.carousel-dot[aria-current="true"] {
  width: 1.35rem;
  border-radius: 999px;
  background: #333;
}

.carousel-dot:focus-visible {
  outline: 2px solid rgba(32, 156, 238, 0.6);
  outline-offset: 3px;
}

.carousel-count {
  min-width: 4.5rem;
  color: #666;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
}

.adaptation-section {
  background: #fff;
}

.adaptation-section-alt {
  background: #f7f7f7;
}

.adaptation-video-stack {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.adaptation-video {
  margin: 0;
}

.adaptation-video figcaption {
  margin-bottom: 0.75rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
}

.adaptation-video video {
  display: block;
  width: 100%;
  aspect-ratio: 32 / 9;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
  object-position: center;
}

.adaptation-carousel {
  margin-top: 2rem;
}

.project-metrics {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.video-grid {
  margin: 0 !important;
}

.demo-intro {
  margin-bottom: 1.5rem;
}

.demo-note {
  margin: -0.75rem 0 0.5rem;
  color: #737373;
  font-size: 0.9rem;
  line-height: 1.5;
}

.live-demo-frame {
  display: block;
  width: 100%;
  min-height: 690px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #222326;
}

@media screen and (max-width: 768px) {
  .project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .live-demo-frame {
    min-height: 675px;
  }

  .overview-copy,
  .section-copy {
    font-size: 1rem;
  }

  .rollout-strip {
    gap: 0;
  }

  .rollout-card {
    flex-basis: 100%;
    min-width: 100%;
  }

  .rollout-carousel {
    padding: 0 0.5rem;
  }

  .carousel-button {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(31, 31, 31, 0.88);
  }

  .carousel-button-previous {
    left: -0.35rem;
  }

  .carousel-button-next {
    right: -0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-hero-media {
    background:
      #111315 url('./media/videos/hero/vibe-hero-poster.jpg') center / contain no-repeat;
  }

  .project-hero-video {
    display: none;
  }

  .rollout-strip {
    transition: none;
  }
}
