/* Motion inspired by drawthings.ai — smooth, restrained, professional */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.stagger-children > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__visual svg .float-a {
  animation: hero-float 6s ease-in-out infinite;
}

.hero__visual svg .float-b {
  animation: hero-float 6s ease-in-out 1.5s infinite;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.is-open .modal__backdrop {
  animation: backdrop-in 0.3s ease forwards;
}

.modal.is-open .modal__panel {
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal.is-closing .modal__panel {
  animation: modal-in 0.25s cubic-bezier(0.4, 0, 1, 1) reverse forwards;
}

.modal.is-closing .modal__backdrop {
  animation: backdrop-in 0.25s ease reverse forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
