/*
   hero-bg.css — Rendered background image + subtle live overlays
   C5X TECH — Mission Control hero
   Foreground (headline / stats / CTAs / nav) is never animated.
   ============================================================ */

:root { --hb-orange: 217, 99, 30; }

/* ── Infinite horizontal image carousel ── */
.hero__carousel {
  position: absolute;
  inset: -14px;                 /* bleed for parallax travel */
  overflow: hidden;
  will-change: transform;
}
.hero__carousel-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: heroMarquee 90s linear infinite;
}
.hero__carousel-track img {
  height: 100%;
  width: clamp(280px, 34vw, 460px);
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.12) brightness(0.5) sepia(0.18);
}
@keyframes heroMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Bottom-left ops caption */
.hero__caption {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  bottom: 30px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Live overlays ── */
.hero__fx {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Ambient glow — slow breathing over the right-side servers */
.hbg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 46% 58% at 80% 46%,
    rgba(var(--hb-orange), 0.10) 0%, transparent 64%);
  animation: ambientGlow 10s ease-in-out infinite;
}
@keyframes ambientGlow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Scanner — thin orange sweep, opacity < 10% */
.hbg-scanner {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1.5px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(var(--hb-orange), 0.4) 20%,
    rgba(var(--hb-orange), 0.85) 50%,
    rgba(var(--hb-orange), 0.4) 80%,
    transparent 100%);
  opacity: 0.08;
  mix-blend-mode: soft-light;
  animation: scannerSweep 13s linear infinite;
}
@keyframes scannerSweep {
  0%   { transform: translateX(-4px); opacity: 0; }
  4%   { opacity: 0.08; }
  96%  { opacity: 0.08; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hbg-glow, .hbg-scanner { animation: none !important; }
  .hbg-scanner { display: none; }
  .hbg-glow { opacity: 0.55; }
  .hero__carousel-track { animation: none !important; transform: translateX(-8%); }
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .hero__carousel-track { animation-duration: 60s; }
  .hero__caption { display: none; }
}
