.active.fadeIn-top {
    animation: fadeIn-top 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeIn-top {
    0% {
        transform: translateY(10%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================================
   Motion — minimal, slow, quiet.
   Active only when <html class="js-motion"> (set in the <head> on the
   homepage, never when the visitor prefers reduced motion). Without it
   every element renders instantly, exactly as before.
   ===================================================================== */
:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-reveal: 1s;
}

/* ---- scroll reveal: a soft rise, staggered inside each group ---- */
html.js-motion .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--motion-reveal) var(--motion-ease),
    transform var(--motion-reveal) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- image unveil: the photo settles from a slight zoom ---- */
html.js-motion .reveal-img img {
  transform: scale(1.06);
  transition: transform 1.8s var(--motion-ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.js-motion .reveal-img.is-visible img {
  transform: scale(1);
}

/* ---- hero entrance (pure CSS, runs on load) ---- */
@keyframes motion-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes motion-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

html.js-motion .hero--content h1 {
  animation: motion-rise 1.2s var(--motion-ease) 0.15s both;
}

html.js-motion .hero--content > p {
  animation: motion-rise 1.2s var(--motion-ease) 0.45s both;
}

html.js-motion .hero--content .search-header {
  animation: motion-rise 1.2s var(--motion-ease) 0.75s both;
}

/* the background video drifts into place, very slowly */
html.js-motion .hero > video {
  animation: motion-settle 14s var(--motion-ease) both;
}

/* ---- hover: a quiet lift on agent portraits ---- */
html.js-motion .agents--images ul li {
  transition: transform 0.6s var(--motion-ease);
}

html.js-motion .agents--images ul li:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion .reveal,
  html.js-motion .reveal-img img,
  html.js-motion .hero--content__title h1,
  html.js-motion .hero--content__title ul,
  html.js-motion .hero--listing__search,
  html.js-motion .hero > video {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
