/* ===== SCREEN FLICKER ===== */
.flicker {
  animation: screen-flicker 8s infinite;
}

@keyframes screen-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.96; }
  98% { opacity: 0.99; }
  99% { opacity: 0.94; }
}

/* ===== CURSOR BLINK ===== */
.blink-cursor::after {
  content: '█';
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== SLOW PULSE ===== */
.pulse {
  animation: slow-pulse 4s ease-in-out infinite;
}

@keyframes slow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== REVEAL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STAGGER CHILDREN ===== */
.stagger > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.8s; }

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scanlines::after {
    display: none;
  }

  #boot-overlay {
    display: none !important;
  }

  .content-wrapper {
    opacity: 1 !important;
  }

  .reveal,
  .fade-in,
  .slide-up,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
