@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 hsl(var(--primary) / 0.45);
  }

  70% {
    box-shadow: 0 0 0 8px hsl(var(--primary) / 0);
  }

  100% {
    box-shadow: 0 0 0 0 hsl(var(--primary) / 0);
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.mockup__float--top {
  animation: float 6s var(--ease) infinite;
}

.mockup__float--bottom {
  animation: float 7s var(--ease) 1.2s infinite;
}

.eyebrow__dot {
  animation: pulse-ring 2.4s var(--ease) infinite;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
