/* Motion is added only after a visible element enters the viewport. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].motion-revealed {
    animation: cde-reveal 640ms cubic-bezier(.22, 1, .36, 1) both;
  }

  :is(.recovery-visual, .oms-visual).motion-illustration-visible > img {
    animation: cde-illustration-float 7s ease-in-out 2;
  }

  .oms-step.motion-step-visible > span:first-child {
    animation: cde-step-accent 1800ms ease-out both;
    animation-delay: var(--motion-step-delay, 0ms);
  }

  @keyframes cde-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  @keyframes cde-step-accent {
    0%, 100% { color: inherit; }
    28%, 48% { color: #635bff; }
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].motion-revealed,
  :is(.recovery-visual, .oms-visual).motion-illustration-visible > img,
  .oms-step.motion-step-visible > span:first-child {
    animation: none;
  }
}
