/* ===== Brutalist Scroll Animations — INSTANT, NO EASE ===== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children — faster, more aggressive */
.stagger > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.2s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Keyframes — Brutalist Only ===== */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Kill soft animations */
@keyframes float { 0%, 100% { transform: none; } }
@keyframes glow-pulse { 0%, 100% { box-shadow: none; } }
@keyframes gradient-shift { 0%, 100% { background-position: 0 0; } }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Counter animation helper */
.counter[data-target] {
  font-variant-numeric: tabular-nums;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in, .fade-in-left, .fade-in-right, .scale-in {
    opacity: 1;
    transform: none;
  }

  .stagger > * {
    opacity: 1;
    transform: none;
  }
}
