.hero-tunnel[data-live] > .hero {
  position: sticky;
  top: var(--hero-top, 0);
  z-index: 1;
}
.hero-tunnel[data-live] .hero-copy,
.hero-tunnel[data-live] .hero-footer,
.hero-tunnel[data-live] .scene-coordinate,
.hero-tunnel[data-live] .character-caption {
  opacity: clamp(0, calc(1 - var(--hz, 0) * 4), 1);
}
.hero-tunnel[data-live] .character-home .channel-controls {
  opacity: clamp(0, calc((1 - var(--hh, 0)) * 3), 1);
}
.hero-tunnel[data-inside] > .hero { visibility: hidden; }
.tunnel-glass { position: absolute; inset: 0; pointer-events: none; }
.crt-signal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0 0;
  transform: var(--glass-matrix, none);
  background-color: #101525;
  background-image:
    linear-gradient(180deg, #080c1499 0 28%, #111a2866 42%, #adbbd5c2 48.8%, #e0e6ed 49.2%, #090d16 49.8%, transparent 54%, #10142280 72%),
    repeating-linear-gradient(180deg, #02061091 0 2px, transparent 2px 4px),
    var(--crt-noise, none);
  background-size: 100% 155%, 100% 4px, 182px 96px;
}
.hero-tunnel .tunnel-entry[data-live][data-preview] .tunnel-glass {
  clip-path: var(--glass-clip, inset(100%));
}
.hero-tunnel .tunnel-entry[data-live][data-preview] .tunnel-frame {
  transform-origin: 0 0;
  transform: var(--glass-matrix, none);
  opacity: var(--glass-opacity, 0);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-tunnel .tunnel-entry[data-live][data-preview] .tunnel-glass { clip-path: none; }
  .hero-tunnel .tunnel-entry[data-live][data-preview] .tunnel-frame { transform: none; }
}
