/* Opening reel — protest flashcuts + typewriter headlines */

body.intro-locked {
  overflow: hidden;
}

body.intro-locked .app {
  visibility: hidden;
  pointer-events: none;
}

#protest-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050505;
  color: #f5f0e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-ransom), "Courier New", monospace;
}

#protest-intro.is-done {
  animation: intro-tear-out 0.55s steps(4) forwards;
  pointer-events: none;
}

@keyframes intro-tear-out {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: none;
  }
  40% {
    opacity: 1;
    clip-path: inset(8% 0 12% 0);
    filter: hue-rotate(90deg) contrast(1.4);
    transform: translateX(-6px);
  }
  70% {
    opacity: 0.6;
    clip-path: inset(40% 0 35% 0);
    transform: translateX(8px);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    clip-path: inset(50% 0 50% 0);
  }
}

.intro-skip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  font-family: var(--font-meta), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: #f0e100;
  border: 2px solid #f0e100;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.intro-skip:hover {
  background: #f0e100;
  color: #000;
}

/* Stage: flashing protest scenes */
.intro-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  background: #0a0a0a;
}

.intro-scene.is-on {
  opacity: 1;
  animation: scene-flash 0.18s steps(2);
}

.intro-scene.is-glitch {
  animation: scene-glitch-hit 0.28s steps(3);
}

@keyframes scene-flash {
  0% { filter: brightness(3) contrast(2); opacity: 0.2; }
  50% { filter: brightness(1.4); opacity: 1; }
  100% { filter: none; opacity: 1; }
}

@keyframes scene-glitch-hit {
  0% { transform: translate(0); filter: none; }
  25% { transform: translate(-10px, 2px); filter: url(#none) contrast(1.8) saturate(2); }
  50% { transform: translate(12px, -3px) skewX(-2deg); opacity: 0.85; }
  75% { transform: translate(-4px, 1px); }
  100% { transform: none; opacity: 1; }
}

.scene-frame {
  position: relative;
  width: min(920px, 94vw);
  height: min(62vh, 520px);
  border: 5px solid #f5f0e4;
  box-shadow:
    12px 12px 0 #c4122f,
    -6px -6px 0 #f0e100;
  overflow: hidden;
  background: #1a1a1a;
}

.scene-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.35) brightness(0.85);
  animation: film-jitter 0.28s steps(2) infinite;
}

/* Procedural protest collages (no external photos needed) */
.scene-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  color: #f0e100;
  font-family: var(--font-meta), monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border-top: 3px solid #f0e100;
}

