@keyframes hero-enter {
  from { opacity: 0; translate: 0 1.25rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes mascot-enter {
  from { opacity: 0; transform: translateY(1.5rem) rotate(-2deg) scale(0.97); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes paint-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.035; }
}

.js .hero__content > * { animation: hero-enter 680ms var(--ease-out) both; }
.js .hero__content > :nth-child(2) { animation-delay: 70ms; }
.js .hero__content > :nth-child(3) { animation-delay: 130ms; }
.js .hero__content > :nth-child(4) { animation-delay: 190ms; }
.js .hero__content > :nth-child(5) { animation-delay: 240ms; }
.js .hero__content > :nth-child(6) { animation-delay: 290ms; }
.js .hero__mascot { animation: mascot-enter 900ms 120ms var(--ease-out) both; }
.js .hero__paint { animation: paint-breathe 8s ease-in-out infinite; }
.js .hero__paint--yellow { animation-delay: -2.5s; }
.js .hero__paint--magenta { animation-delay: -5s; }

[data-reveal] {
  opacity: 1;
  translate: 0 0;
}

.js.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  translate: 0 1.75rem;
}

.js.motion-ready [data-reveal] {
  transition: opacity 620ms var(--ease-out), translate 620ms var(--ease-out);
}

.route-card,
.buying-card,
.case-card,
.product-card,
.process-timeline__step {
  transition: translate var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

@media (hover: hover) {
  .route-card:hover,
  .route-card:focus-within,
  .buying-card:hover,
  .buying-card:focus-within,
  .case-card:hover,
  .case-card:focus-within,
  .product-card:hover,
  .product-card:focus-within,
  .process-timeline__step:hover {
    z-index: 2;
    translate: 0 -0.3rem;
    box-shadow: var(--shadow-card);
  }
}

.js.motion-ready .process-timeline__step:not(.is-active) {
  opacity: 0.2;
  translate: 0 2rem;
}

.js.motion-ready .process-timeline__step {
  transition: opacity 620ms var(--ease-out), translate 620ms var(--ease-out), box-shadow var(--transition-fast);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js.motion-ready [data-reveal] {
    opacity: 1 !important;
    translate: 0 0 !important;
    transform: none !important;
  }

  .process-timeline__step,
  .js.motion-ready .process-timeline__step {
    opacity: 1 !important;
    translate: 0 0 !important;
    transform: none !important;
  }
}

