/* Meaningful motion only: hidden states apply ONLY when JS is active (.js on <html>) */

/* Allowed single loop: slow ON AIR studio dot */
@keyframes onAirBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.tv-dot { animation: onAirBlink 1.8s ease-in-out infinite; }

/* 1. Hero title card slam on load + tagline/buttons follow 100ms later */
.js .hero-slam {
  opacity: 0;
  transform: scale(1.15) rotate(-3.5deg);
  transition: opacity 260ms ease-out, transform 350ms cubic-bezier(0.2, 1.32, 0.35, 1);
}
.js [data-hero].is-in .hero-slam {
  opacity: 1;
  transform: scale(1) rotate(-1.2deg);
}

.js .hero-follow {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms,
              transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms;
}
.js [data-hero].is-in .hero-follow {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Comic strip panels: left-to-right reading stagger (100ms each) */
.js .strip-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .strip-item:nth-child(2) { transition-delay: 100ms; }
.js .strip-item:nth-child(3) { transition-delay: 200ms; }
.js [data-reveal].is-in .strip-item {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 820px) {
  .js [data-reveal].is-in .ep-panel-tilted {
    transform: rotate(-2deg);
  }
}

/* 3. Burst stickers: pop in with slight overshoot after section heading */
.js .burst-pop {
  opacity: 0;
  transform: scale(0.6) rotate(var(--r, -4deg));
  transition: opacity 180ms ease-out 120ms,
              transform 250ms cubic-bezier(0.2, 1.55, 0.4, 1) 120ms;
}
.js [data-reveal].is-in .burst-pop,
.js [data-hero].is-in .burst-pop {
  opacity: 1;
  transform: scale(1) rotate(var(--r, -4deg));
}

/* 4. Signature moment: FACT! / NOT! rubber-stamp slam */
.js .stamp-hit {
  opacity: 0;
  transform: scale(1.42) rotate(var(--stamp-from, -8deg));
  transition: opacity 140ms ease-out,
              transform 220ms cubic-bezier(0.16, 0.96, 0.28, 1.12);
}
.js .stamp-hit-2 {
  transition-delay: 140ms;
}
.js [data-reveal].is-in .stamp-hit {
  opacity: 1;
  transform: scale(1) rotate(var(--stamp-to, -2deg));
}

/* 5. The Math comparison: $500 bar grows, then $29 stamp lands */
.js .math-bar-fill {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js [data-reveal].is-in .math-bar-fill {
  transform: scaleX(1);
}
.js .math-check-tag {
  opacity: 0;
  transform: scale(1.38) rotate(5deg);
  transition: opacity 150ms ease-out 260ms,
              transform 240ms cubic-bezier(0.18, 1.25, 0.35, 1) 260ms;
}
.js [data-reveal].is-in .math-check-tag {
  opacity: 1;
  transform: scale(1) rotate(-2deg);
}

/* 6. Background bleed words: transform-only scroll drift */
.bg-bleed[data-drift] {
  will-change: transform;
  transform: translate3d(var(--drift-x, 0px), 0, 0);
}

/* Reduced motion: everything visible and still immediately */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tv-dot { animation: none !important; }
  .js .hero-slam,
  .js .hero-follow,
  .js .strip-item,
  .js .burst-pop,
  .js .stamp-hit,
  .js .math-bar-fill,
  .js .math-check-tag {
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }
  .js .hero-slam { transform: rotate(-1.2deg) !important; }
  .js .hero-follow,
  .js .strip-item { transform: none !important; }
  .js .burst-pop { transform: rotate(var(--r, -4deg)) !important; }
  .js .stamp-hit { transform: rotate(var(--stamp-to, -2deg)) !important; }
  .js .math-bar-fill { transform: scaleX(1) !important; }
  .js .math-check-tag { transform: rotate(-2deg) !important; }
  .bg-bleed[data-drift] { transform: none !important; will-change: auto; }
}
