/* Entrance, scroll wipe, hover already lives with components */

.wordmark {
  animation: mark-in 800ms var(--ease) both;
}

@keyframes mark-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.enter {
  animation: rise 700ms var(--ease) both;
}

.enter-1 { animation-delay: 80ms; }
.enter-2 { animation-delay: 180ms; }
.enter-3 { animation-delay: 300ms; }
.enter-4 { animation-delay: 420ms; }
.enter-5 { animation-delay: 540ms; }

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

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

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

[data-reveal="wipe"] {
  opacity: 0;
  transform: translateY(20px);
  clip-path: none;
}

[data-reveal="wipe"].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  animation: wipe 800ms var(--ease) both;
}

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal="wipe"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
