/* Fluorescent flicker on the hero logo: two quick dips, never to full black (photosensitivity-safe). */
@keyframes tube-flicker {
  0%, 100% { opacity: 1; filter: none; }
  6% { opacity: .55; filter: brightness(.7); }
  10% { opacity: 1; filter: none; }
  22% { opacity: .7; filter: brightness(.8); }
  26% { opacity: 1; filter: none; }
  58% { opacity: .82; }
  64% { opacity: 1; }
}
.hero-title .brand-mark.is-flickering img { animation: tube-flicker 900ms steps(1, end) both; }

/* Noclip: the page tears, slips sideways and drops into darkness. */
@keyframes noclip-tear {
  0% { transform: none; filter: none; }
  10% { transform: translate3d(-6px, 2px, 0) skewX(-2deg); filter: contrast(1.4) hue-rotate(-12deg); }
  20% { transform: translate3d(8px, -3px, 0) skewX(3deg); filter: contrast(1.6) saturate(1.6); }
  32% { transform: translate3d(-3px, 0, 0); filter: contrast(1.2) brightness(1.3); }
  45% { transform: translate3d(0, 6px, 0) scale(1.01); filter: brightness(.7); }
  100% { transform: translate3d(0, 40px, 0) scale(1.04); filter: brightness(0); }
}
@keyframes noclip-black { from { opacity: 0; } to { opacity: 1; } }
body.is-noclipping { overflow: hidden; }
body.is-noclipping .skip-link { visibility: hidden; }
body.is-noclipping > *:not(.motion-control):not(.skip-link) { animation: noclip-tear 1100ms cubic-bezier(.5, 0, .9, .4) both; }
body.is-noclipping::before { content: ""; position: fixed; inset: 0; z-index: 200; background: #000; pointer-events: none; animation: noclip-black 1100ms ease-in both; }
.hero-title { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .hero-title .brand-mark.is-flickering img, body.is-noclipping > * { animation: none !important; }
}
