/* Adversaries — shared visual effects. Tailwind classes handle everything else. */

.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

/* aurora: three drifting blurred colour bands behind the hero. */
.hero-bg--aurora .band { position: absolute; width: 65%; height: 65%; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.hero-bg--aurora .band:nth-child(1) { top: -20%; left: -10%; background: var(--hero-a); animation: hb-aurora-a 15s ease-in-out infinite; }
.hero-bg--aurora .band:nth-child(2) { bottom: -25%; right: -12%; background: var(--hero-c); animation: hb-aurora-b 19s ease-in-out infinite; }
.hero-bg--aurora .band:nth-child(3) { top: 5%; right: 25%; background: var(--hero-b); animation: hb-aurora-c 23s ease-in-out infinite; }
@keyframes hb-aurora-a { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(12%, 8%) scale(1.25); } 66% { transform: translate(-8%, 14%) scale(1.1); } }
@keyframes hb-aurora-b { 0%, 100% { transform: translate(0, 0) scale(1.15); } 50% { transform: translate(-14%, -10%) scale(1.4); } }
@keyframes hb-aurora-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(16%, -12%) scale(1.3); } }

@media (prefers-reduced-motion: reduce) {
  .hero-bg *, .hero-bg::before, .hero-bg::after { animation: none !important; display: none; }
}

/* The hero's video stage. On tablet and up it is plain: full bleed, edge to edge.
   Under 768px it sits inside an old television set, so the letterboxing around the
   contained film reads as a screen bezel rather than a crop gone wrong. */
#hero .hero-tv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#hero .hero-tv__antenna, #hero .hero-tv__legs, #hero .hero-tv__panel, #hero .hero-tv__scanlines { display: none; }

#hero .hero-tv__shell { position: relative; width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
#hero .hero-tv__screen-well { position: relative; width: 100%; height: 100%; border-radius: 0; overflow: hidden; background: #000; box-shadow: none; }
#hero .hero-tv__screen-stage { position: absolute; inset: 0; }

@media (max-width: 767px) {
  #hero .hero-tv { gap: 3vw; padding: 5vw 0; }

  #hero .hero-tv__antenna,
  #hero .hero-tv__legs,
  #hero .hero-tv__panel { display: flex; }

  #hero .hero-tv__antenna { position: relative; width: 36vw; height: 11vw; justify-content: center; }
  #hero .hero-tv__antenna span { position: absolute; bottom: 0; width: 1.4vw; height: 11vw; background: linear-gradient(#d8d3cb, #8d8780); border-radius: 2px; }
  #hero .hero-tv__antenna span:first-child { left: 32%; transform: rotate(-30deg); transform-origin: bottom center; }
  #hero .hero-tv__antenna span:last-child { right: 32%; transform: rotate(30deg); transform-origin: bottom center; }
  #hero .hero-tv__antenna i { position: absolute; bottom: -1.4vw; width: 3.6vw; height: 3.6vw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8e4dd, #726c64); box-shadow: 0 2px 4px rgba(0,0,0,.5); }

  #hero .hero-tv__shell { width: min(80vw, 360px); height: auto; padding: 5vw 5.5vw 7vw; border-radius: 6vw; background: linear-gradient(160deg, #4d4138, #1c1714); box-shadow: 0 20px 45px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.06); }

  #hero .hero-tv__screen-well { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 2.4vw; box-shadow: inset 0 0 0 1.4vw #0c0c0c, inset 0 0 3vw rgba(0,0,0,.85); }

  #hero .hero-tv__scanlines { display: block; position: absolute; inset: 0; background: repeating-linear-gradient(rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.18) 3px); mix-blend-mode: multiply; pointer-events: none; }

  #hero .hero-tv__panel { margin-top: 3.5vw; width: 100%; align-items: center; justify-content: space-between; }
  #hero .hero-tv__badge { height: 3.4vw; width: auto; opacity: .9; }
  #hero .hero-tv__knob { width: 5vw; height: 5vw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8d3cb, #55504a); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
  #hero .hero-tv__knob--small { width: 3.2vw; height: 3.2vw; margin-left: 1.6vw; }

  #hero .hero-tv__legs { width: min(80vw, 360px); justify-content: space-between; padding: 0 9%; }
  #hero .hero-tv__legs span { width: 3vw; height: 3.6vw; background: linear-gradient(#5a4c42, #2a211c); border-radius: 0 0 1.2vw 1.2vw; }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-tv__scanlines { display: none; }
}
