/* theme-motion.css */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
  }

  html.js [data-reveal].is-visible {
    opacity: 1;
    animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: var(--reveal-delay, 0ms);
  }

  html.js [data-reveal="scale"].is-visible {
    animation-name: reveal-scale;
  }

  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes reveal-scale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
  }

  .incentives-four-grid > [data-reveal]:nth-child(2),
  .invest-original-cards-list > [data-reveal]:nth-child(2),
  .specs-pill-grid > [data-reveal]:nth-child(2),
  .footer-vivid-grid > [data-reveal]:nth-child(2) { --reveal-delay: 90ms; }

  .incentives-four-grid > [data-reveal]:nth-child(3),
  .invest-original-cards-list > [data-reveal]:nth-child(3),
  .specs-pill-grid > [data-reveal]:nth-child(3),
  .footer-vivid-grid > [data-reveal]:nth-child(3) { --reveal-delay: 180ms; }

  .incentives-four-grid > [data-reveal]:nth-child(4),
  .invest-original-cards-list > [data-reveal]:nth-child(4),
  .specs-pill-grid > [data-reveal]:nth-child(4),
  .footer-vivid-grid > [data-reveal]:nth-child(4) { --reveal-delay: 270ms; }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero-center > * {
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-center > :nth-child(1) {
    animation-delay: 0.05s;
  }

  .hero-center > :nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero-center > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero-center > :nth-child(4) {
    animation-delay: 0.28s;
  }

  .hero-topbar {
    animation: hero-rise 0.6s ease both;
  }

  @keyframes hero-zoom {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.08);
    }
  }

  .hero-slide.active {
    animation: hero-zoom 14s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active,
  .hero-center > *,
  .hero-topbar {
    animation: none !important;
  }
}