.utai-wars-battle,
.sienna-goat-transmission,
.reactive-visualizer {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.utai-wars-battle > video,
.sienna-goat-transmission > video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cinematic-section-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 45%, rgba(0, 0, 0, .62));
}

.cinematic-section-copy {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 5vw, 84px);
  bottom: clamp(28px, 6vw, 88px);
  left: clamp(22px, 5vw, 84px);
  color: #fff4d8;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .86);
}

.cinematic-section-copy span {
  display: block;
  margin-bottom: 12px;
  color: #7ff4e7;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cinematic-section-copy h2 {
  max-width: 900px;
  margin: 0;
  font: 400 clamp(46px, 7vw, 106px)/.92 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.utai-wars-battle .cinematic-section-copy {
  right: clamp(22px, 5vw, 84px);
  left: auto;
  width: min(46vw, 680px);
  text-align: right;
}

.utai-wars-battle .cinematic-section-shade {
  background: linear-gradient(270deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .22) 44%, transparent 70%);
}

.sienna-goat-transmission {
  display: grid;
  place-items: center;
  min-height: min(100svh, 900px);
  background:
    radial-gradient(circle at 50% 50%, rgba(142, 96, 24, .2), transparent 40%),
    #010203;
}

.sienna-goat-starfield {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .98;
}

.sienna-goat-transmission > video {
  position: relative;
  z-index: 1;
  inset: auto;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.sienna-goat-transmission::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .52);
}

.reactive-visualizer {
  display: grid;
  place-items: center;
  min-height: min(100svh, 920px);
  padding: clamp(18px, 3vw, 46px);
  background: #000;
}

.reactive-visualizer-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  pointer-events: none;
}

.reactive-visualizer-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 10%;
  bottom: auto;
  width: min(92vw, 960px);
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(255, 232, 169, .96);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .96), 0 0 16px rgba(231, 178, 69, .38);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .35s ease;
}

.reactive-visualizer-cue span {
  font: 800 clamp(15px, 1.8vw, 24px)/1.18 Arial, sans-serif;
  letter-spacing: .08em;
  animation: reactive-cue-zoom 2.8s ease-in-out infinite;
}

.reactive-visualizer-cue i {
  width: 42px;
  height: 1px;
  background: #d8b462;
  box-shadow: 0 0 15px rgba(226, 180, 83, .7);
  animation: reactive-cue-pulse 1.8s ease-in-out infinite;
}

body.audio-responsive .reactive-visualizer-cue { opacity: .9; }

@keyframes reactive-cue-pulse {
  50% { width: 82px; opacity: .45; }
}

@keyframes reactive-cue-zoom {
  0%, 100% { transform: scale(.9); opacity: .72; }
  50% { transform: scale(1.08); opacity: 1; }
}

.creature-sound-divider {
  height: min(55vw, 700px);
  min-height: 300px;
}

.creature-sound-divider video {
  width: min(94vw, 1220px);
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

@media (max-width: 700px) {
  .utai-wars-battle .cinematic-section-copy {
    width: calc(100% - 44px);
    left: 22px;
    right: 22px;
  }
  .utai-wars-battle,
  .sienna-goat-transmission { min-height: 74svh; }

  .sienna-goat-transmission > video { height: 74svh; }

  .reactive-visualizer {
    min-height: 0;
    aspect-ratio: 1376 / 768;
    padding: 0;
  }

  .reactive-visualizer-cue {
    top: 9%;
    width: min(92vw, 520px);
  }

  .creature-sound-divider {
    height: min(56vw, 420px);
    min-height: 260px;
  }

  .creature-sound-divider video { width: 94vw; }

  .cinematic-section-copy h2 { font-size: clamp(40px, 13vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .reactive-visualizer-cue i,
  .reactive-visualizer-cue span { animation: none; }
}
