/* ========================================
   ANIMATIONS — reveal, ambient drift, pulses
======================================== */

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

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

/* Stagger children */
.grid .reveal:nth-child(1),
.steps .reveal:nth-child(1) { transition-delay: 0.00s; }
.grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* --- Hero card subtle float --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero__card.is-visible {
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

/* --- Ambient orb drift --- */
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, 30px) scale(1.1); }
}

/* --- Status dot pulse --- */
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.25); }
}

.call-row__dot {
  animation: pulse 2.4s ease-in-out infinite;
}

.call-row:nth-child(2) .call-row__dot { animation-delay: 0.8s; }
.call-row:nth-child(3) .call-row__dot { animation-delay: 1.6s; }

/* --- Ping ring (live indicator) --- */
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.9; }
  80%  { transform: scale(2.2); opacity: 0;   }
  100% { transform: scale(2.2); opacity: 0;   }
}

/* --- Live waveform bars --- */
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  50%      { transform: scaleY(1);    opacity: 1;    }
}

/* --- Typing dots --- */
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0);     }
  30%           { opacity: 1;    transform: translateY(-1.5px); }
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__card.is-visible,
  .call-row__dot,
  .bg-ambient__orb,
  .eyebrow__dot::after,
  .btn__dot::after,
  .waveform span,
  .typing span {
    animation: none;
  }
  html { scroll-behavior: auto; }
}
