/* Glitch headline — defencebuilder-style. Intermittent bursts only (JS adds .on), never constant. */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  background: transparent;
}
.glitch.on::before { opacity: .85; color: var(--glitch-a, #ff2d2d); transform: translate(-3px, 1px);
  clip-path: inset(12% 0 58% 0); animation: glitch-slice-a .28s steps(2, end) both; }
.glitch.on::after { opacity: .85; color: var(--glitch-b, #1a1a1a); transform: translate(3px, -1px);
  clip-path: inset(62% 0 8% 0); animation: glitch-slice-b .34s steps(3, end) both; }
@keyframes glitch-slice-a {
  0% { clip-path: inset(8% 0 66% 0); transform: translate(-4px, 1px); }
  50% { clip-path: inset(42% 0 30% 0); transform: translate(3px, -2px); }
  100% { clip-path: inset(70% 0 4% 0); transform: translate(-2px, 2px); }
}
@keyframes glitch-slice-b {
  0% { clip-path: inset(64% 0 10% 0); transform: translate(4px, -1px); }
  50% { clip-path: inset(18% 0 56% 0); transform: translate(-3px, 2px); }
  100% { clip-path: inset(4% 0 82% 0); transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
}
