/* ==========================================================================
   Animations
   ========================================================================== */

.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);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal--up {
  transform: translateY(36px);
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero__avatar--1 { animation: float 5s ease-in-out infinite; }
.hero__avatar--2 { animation: float-alt 6s ease-in-out infinite 0.3s; }
.hero__avatar--3 { animation: float 5.5s ease-in-out infinite 0.7s; }
.hero__avatar--4 { animation: float-alt 4.8s ease-in-out infinite 0.2s; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.founder__play-icon {
  animation: pulse-ring 2.4s ease-out infinite;
}

.founder__video-modal:not([hidden]) .founder__video-dialog {
  animation: founder-modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes founder-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.faq-item__panel:not([hidden]) {
  animation: faq-open 0.32s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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