[data-reveal] {
  opacity: 0;
}

[data-reveal="scale"] {
  transform: translateY(18px) scale(0.985);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  animation: reveal-rise var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms) backwards;
}

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

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(26px); }
}

@keyframes reveal-scale {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
}

.hero__body > * {
  animation: hero-rise var(--dur-slow) var(--ease-out) both;
}

.hero__body > *:nth-child(1) { animation-delay: 60ms; }
.hero__body > *:nth-child(2) { animation-delay: 150ms; }
.hero__body > *:nth-child(3) { animation-delay: 240ms; }
.hero__body > *:nth-child(4) { animation-delay: 330ms; }
.hero__body > *:nth-child(5) { animation-delay: 420ms; }

.hero__media {
  animation: hero-rise var(--dur-slow) var(--ease-out) 300ms both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.page-hero__inner > * {
  animation: hero-rise var(--dur-slow) var(--ease-out) both;
}

.page-hero__inner > *:nth-child(1) { animation-delay: 60ms; }
.page-hero__inner > *:nth-child(2) { animation-delay: 140ms; }
.page-hero__inner > *:nth-child(3) { animation-delay: 220ms; }
.page-hero__inner > *:nth-child(4) { animation-delay: 300ms; }

.drawer__item {
  opacity: 0;
  transform: translateY(14px);
}

.drawer.is-open .drawer__item {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  transition-delay: calc(60ms + var(--drawer-i, 0) * 45ms);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}
