/* 03 Grindhouse: scratched film, misregistered titles, hard cuts, no easing. */
[data-world="grindhouse"] {
  --grain: 0.12;
  --title-track: -0.005em;
  --enter: hard-cut 90ms steps(1, end);
}
@keyframes hard-cut { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-weave {
  0% { transform: translate(0, -3px); } 25% { transform: translate(1px, 2px); }
  50% { transform: translate(-1px, 0); } 75% { transform: translate(0, 1px); } 100% { transform: none; }
}
@keyframes cue-mark { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }

/* vertical scratches, inside the texture layer (under the type) */
[data-world="grindhouse"] .texture::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 22.9%, var(--ink) 23%, transparent 23.1%,
    transparent 64.95%, var(--ink) 65%, transparent 65.05%, transparent 87.9%, var(--ink) 88%, transparent 88.05%);
}
[data-world="grindhouse"] .hero-title, [data-world="grindhouse"] .block-title { text-shadow: 2px 2px 0 var(--spice); line-height: 0.95; }
[data-world="grindhouse"] .hero-media img, [data-world="grindhouse"] .hero-media .ph { animation: gate-weave 320ms steps(4, end) 1; }
/* halftone dots on the image edges */
[data-world="grindhouse"] .hero-fx::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, var(--ground) 1.1px, transparent 1.7px) 0 0 / 6px 6px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000);
}
/* the reel-change dot (a cigarette burn) flashes as each section arrives */
[data-world="grindhouse"] .block { position: relative; }
[data-world="grindhouse"] .block::before {
  content: ""; position: absolute; right: 0; top: calc(var(--space-5) - 30px); width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle, transparent 42%, var(--spice) 48%, color-mix(in srgb, var(--spice) 40%, transparent) 62%, transparent 70%);
  opacity: 0;
}
[data-world="grindhouse"] .block.in::before { animation: cue-mark 700ms steps(2, end) 1; }
[data-world="grindhouse"] .eyebrow, [data-world="grindhouse"] .meta { letter-spacing: 0.02em; }
[data-world="grindhouse"] .btn { text-transform: none; }
