/* ============================================================
   issturgeondeadyet.scot — Animations
   ============================================================ */

@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -10%); }
  20%  { transform: translate(-15%, 5%); }
  30%  { transform: translate(7%, -25%); }
  40%  { transform: translate(-5%, 25%); }
  50%  { transform: translate(-15%, 10%); }
  60%  { transform: translate(15%, 0%); }
  70%  { transform: translate(0%, 15%); }
  80%  { transform: translate(3%, 35%); }
  90%  { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
  50%       { box-shadow: 0 0 20px 4px rgba(201, 168, 76, 0.08); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Entrance utilities (used when GSAP not available) */
.anim-fade-in    { animation: fadeSlideUp 0.6s ease forwards; }
.anim-fade-in-2  { animation: fadeSlideUp 0.6s 0.15s ease both; }
.anim-fade-in-3  { animation: fadeSlideUp 0.6s 0.3s  ease both; }
.anim-fade-in-4  { animation: fadeSlideUp 0.6s 0.45s ease both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-grain { animation: none; }
  .vinyl-disc { animation: none; }
  .hero-cta-arrow { animation: none; }
  .scroll-line { animation: none; opacity: 1; }
}

/* Timeline card initial state (set by GSAP on load) */
.js-timeline-ready .timeline-card { opacity: 0; }
.js-timeline-ready .timeline-dot  { opacity: 0; transform: scale(0); }

/* Quote fade */
.quote-slide { animation: none; }

/* Status text cinematic weight */
.hero-status { font-variant-ligatures: none; }

/* Death mode: desaturate */
.death-mode .hero-status {
  filter: grayscale(0.4);
  letter-spacing: -0.02em;
}

/* Reduced motion fallback — show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .timeline-card { opacity: 1 !important; transform: none !important; }
  .timeline-dot  { opacity: 1 !important; transform: scale(1) !important; }
  .js-hero-domain, .js-hero-status, .js-hero-sub, .js-hero-meta, .js-hero-cta {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .js-fade-up { opacity: 1 !important; transform: none !important; }
}
