/* ============================================================
   CINEMATIC UPGRADE LAYER — appended to styles.css
   Stronger dark contrast, video-led sections, scroll motion
   ============================================================ */

:root {
  --site-bg: #02030A;
  --site-bg-2: #05060F;
  --site-panel: #0A0F22;
}
html, body { background: #02030A; }

/* ---------- GLOBAL TICKER ---------- */
/* Cinematic: ticker is a calm telemetry strip, not a flashing bar.
   Dim the type, drop the colored dots, slow the scroll. */
.ticker {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 95;
  height: 26px;
  opacity: 0.55;
  /* Fully opaque — was rgba(2,3,10,0.85) which let scrolling page
     content (h1/breadcrumbs) bleed through under the translucent nav.
     The ticker bar is also a critical-info strip; it must not flicker. */
  background: #02030A;
  border-bottom: 1px solid var(--site-line);
  overflow: hidden; display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--site-text-2);
}
/* When the ticker is on, push *every* top-of-page block (hero,
   breadcrumb, plain section) down by ticker height so nothing
   scrolls behind it. */
.has-ticker .nav-wrap + * { margin-top: 28px; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 140s linear infinite; gap: 56px; padding-left: 48px; }
.ticker-track .it { display: inline-flex; align-items: center; gap: 10px; color: var(--site-text-3); }
.ticker-track .it::before { content: "·"; color: var(--site-text-3); font-size: 14px; line-height: 1; opacity: 0.5; }
.ticker-track .num { color: var(--site-text-2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.has-ticker .nav-wrap + section, .has-ticker section.hero { margin-top: 28px; }

/* shift hero down to clear ticker */
.has-ticker .hero { padding-top: 152px; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 540ms; }

/* ---------- HERO upgrade: full-bleed cinematic ---------- */
.hero {
  background:
    radial-gradient(70% 90% at 75% 25%, rgba(0,85,255,0.32), transparent 60%),
    radial-gradient(50% 70% at 0% 80%, rgba(25,0,255,0.28), transparent 60%),
    radial-gradient(40% 60% at 50% 100%, rgba(94,255,164,0.08), transparent 60%),
    #02030A;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #fff 0%, #4FC8FF 40%, #2D7BFF 70%, #1900FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-visual {
  background: linear-gradient(180deg, rgba(10,15,34,0.95) 0%, rgba(2,3,10,0.7) 100%);
  border-color: rgba(79,200,255,0.18);
  box-shadow: 0 30px 80px -20px rgba(0,85,255,0.25), 0 0 0 1px rgba(79,200,255,0.1);
}
.hero-visual::before {
  background: linear-gradient(135deg, rgba(0,153,255,0.5), transparent 30%, transparent 70%, rgba(94,255,164,0.4));
  filter: blur(28px); opacity: 0.7;
}
/* corner brackets */
.hero-visual::after {
  content: ""; position: absolute; inset: -8px; pointer-events: none;
  background:
    linear-gradient(#4FC8FF, #4FC8FF) top left / 16px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) top left / 1px 16px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) top right / 16px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) top right / 1px 16px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom left / 16px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom left / 1px 16px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom right / 16px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom right / 1px 16px no-repeat;
  opacity: 0.5;
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--site-text-3);
  letter-spacing: 0.2em;
}
.scroll-cue .line {
  width: 1px; height: 36px; background: linear-gradient(180deg, transparent, var(--site-cyan));
  position: relative; overflow: hidden;
}
.scroll-cue .line::before {
  content: ""; position: absolute; top: -12px; left: 0; width: 1px; height: 12px;
  background: var(--site-cyan); animation: scroll-cue 2.4s ease-in-out infinite;
}
@keyframes scroll-cue { 0% { top: -12px; } 100% { top: 36px; } }

/* ---------- VIDEO STORYBOARD SECTION ---------- */
.video-section {
  position: relative; padding: 140px 0; background: #02030A; overflow: hidden;
  border-top: 1px solid var(--site-line);
}
.video-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(0,85,255,0.18), transparent 60%),
    radial-gradient(50% 70% at 90% 70%, rgba(25,0,255,0.15), transparent 60%);
}
.video-stage {
  position: relative;
  aspect-ratio: 21/9;
  border: 1px solid rgba(79,200,255,0.2);
  background: #03040C;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,85,255,0.4), inset 0 0 0 1px rgba(79,200,255,0.06);
}
.video-stage .frame {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 600ms var(--ease-standard);
}
.video-stage .frame.active { opacity: 1; }

/* photo backgrounds for "live" frames */
.video-stage .photo-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.video-stage .photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,3,10,0.4) 0%, rgba(2,3,10,0.65) 50%, rgba(2,3,10,0.92) 100%),
    radial-gradient(60% 60% at 50% 50%, transparent 30%, rgba(2,3,10,0.6) 100%);
}
.video-stage .photo-bg.scan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px);
  mix-blend-mode: multiply;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0% { background-position-y: 0; }
  100% { background-position-y: 200px; }
}
.video-stage .frame > .content { position: relative; z-index: 2; height: 100%; }
.cctv-photo {
  position: relative; width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.cctv-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.cctv-photo.tinted-red::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,77,79,0.18); mix-blend-mode: overlay; z-index: 1;
}
.cctv-photo.tinted-mint::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(94,255,164,0.10); mix-blend-mode: overlay; z-index: 1;
}
.video-stage .chrome {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; z-index: 10;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--site-text-2);
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, rgba(2,3,10,0.85), transparent);
}
.video-stage .chrome .rec {
  display: inline-flex; align-items: center; gap: 8px; color: var(--site-red);
}
.video-stage .chrome .rec::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--site-red);
  animation: pulse 1.4s infinite;
}
.video-stage .crosshair {
  position: absolute; width: 100%; height: 100%; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 50% 50%/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 50% 50%/40px 40px;
  mask-image: radial-gradient(50% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 100%);
  -webkit-mask-image: radial-gradient(50% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.video-stage .corners {
  position: absolute; inset: 16px; pointer-events: none;
  background:
    linear-gradient(#4FC8FF, #4FC8FF) top left / 24px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) top left / 1px 24px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) top right / 24px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) top right / 1px 24px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom left / 24px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom left / 1px 24px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom right / 24px 1px no-repeat,
    linear-gradient(#4FC8FF, #4FC8FF) bottom right / 1px 24px no-repeat;
  opacity: 0.5; z-index: 5;
}
.video-stage .timecode {
  position: absolute; bottom: 14px; right: 20px; z-index: 10;
  font-family: var(--font-mono); font-size: 10.5px; color: #fff;
  background: rgba(0,0,0,0.6); padding: 4px 8px; letter-spacing: 0.12em;
}
.storyboard-rail {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
  margin-top: 24px;
}
.sb-frame {
  border: 1px solid var(--site-line); background: rgba(255,255,255,0.02);
  padding: 10px; cursor: pointer; transition: all 200ms;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; color: var(--site-text-3); letter-spacing: 0.1em;
}
.sb-frame:hover { border-color: var(--site-line-2); background: rgba(255,255,255,0.04); }
.sb-frame.active { border-color: var(--site-cyan); background: rgba(79,200,255,0.06); color: #fff; }
.sb-frame .num { font-size: 8px; opacity: 0.7; }
.sb-frame .lbl { font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- COMMAND CENTER SECTION ---------- */
.command-stage {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 700px;
  border: 1px solid rgba(79,200,255,0.18);
  background: #03040C;
  padding: 8px;
  position: relative;
  box-shadow: 0 40px 100px -30px rgba(0,85,255,0.35);
}
.cmd-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px; border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--site-text-2);
  letter-spacing: 0.12em;
}
.cmd-bar .seg { display: inline-flex; gap: 6px; align-items: center; }
.cmd-bar .seg .v { color: #fff; }
.cmd-bar .spacer { flex: 1; }
.cmd-pane {
  border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.015);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cmd-pane h6 {
  margin: 0; padding: 10px 12px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--site-text-3); font-weight: 500;
  border-bottom: 1px solid var(--site-line);
  display: flex; justify-content: space-between; align-items: center;
}
.cmd-pane h6 .live {
  color: var(--site-mint); display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
}
.cmd-pane h6 .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--site-mint);
  box-shadow: 0 0 8px var(--site-mint); animation: pulse 1.6s infinite;
}
.cmd-rail-row {
  display: flex; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--site-line);
  font-family: var(--font-mono); font-size: 11px; color: var(--site-text);
  align-items: center;
}
.cmd-rail-row:last-child { border-bottom: 0; }
.cmd-rail-row .id { color: var(--site-text-3); width: 64px; flex-shrink: 0; font-size: 10px; }
.cmd-rail-row .pill-mini {
  font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; letter-spacing: 0.12em;
}
.cmd-bottom {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.02);
}
.cmd-stat {
  padding: 12px 14px; border-right: 1px solid var(--site-line);
  display: flex; flex-direction: column; gap: 2px;
}
.cmd-stat:last-child { border-right: 0; }
.cmd-stat .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--site-text-3); }
.cmd-stat .val { font-family: var(--font-display); font-size: 22px; color: #fff; font-weight: 400; letter-spacing: -0.02em; }
.cmd-stat .delta { font-family: var(--font-mono); font-size: 10px; color: var(--site-mint); }
.cmd-stat .delta.warn { color: var(--site-amber); }

/* world map */
.world-map {
  position: relative; width: 100%; height: 100%;
  background: #03040C;
}
.world-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--site-mint); transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--site-mint);
}
.world-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid var(--site-mint); opacity: 0.3;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
.world-dot.amber { background: var(--site-amber); box-shadow: 0 0 12px var(--site-amber); }
.world-dot.amber::after { border-color: var(--site-amber); }
.world-dot.red { background: var(--site-red); box-shadow: 0 0 12px var(--site-red); }
.world-dot.red::after { border-color: var(--site-red); }

/* ---------- BIG NUMBERS BAND ---------- */
.numbers-band {
  position: relative; padding: 100px 0; background: #02030A;
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  overflow: hidden;
}
.numbers-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(40% 60% at 20% 50%, rgba(0,85,255,0.2), transparent 60%),
    radial-gradient(40% 60% at 80% 50%, rgba(25,0,255,0.2), transparent 60%);
}
.numbers-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--site-line);
  background: rgba(2,3,10,0.6);
}
.num-cell {
  padding: 40px 32px; border-right: 1px solid var(--site-line);
  position: relative;
}
.num-cell:last-child { border-right: 0; }
.num-cell .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--site-cyan); margin-bottom: 14px; }
.num-cell .v { font-family: var(--font-display); font-size: clamp(40px, 4vw, 64px); font-weight: 400; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.num-cell .desc { font-size: 12.5px; color: var(--site-text-2); margin-top: 12px; line-height: 1.5; }

/* ---------- DATA STREAM BACKGROUND ---------- */
.stream-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(79,200,255,0.06) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 60px, rgba(79,200,255,0.04) 60px, rgba(79,200,255,0.04) 61px);
}

/* ---------- Section heads upgrade ---------- */
.section-title {
  font-size: clamp(40px, 5vw, 72px);
}

/* ---------- WHAT WE BUILD strip (replaces generic grid feel) ---------- */
.build-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line);
  background: rgba(2,3,10,0.5);
}
.build-strip .bs {
  padding: 32px 28px; border-right: 1px solid var(--site-line);
  display: flex; flex-direction: column; gap: 12px;
}
.build-strip .bs:last-child { border-right: 0; }
.build-strip .bs .ix { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--site-cyan); }
.build-strip .bs h4 { margin: 0; font-size: 22px; color: #fff; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.build-strip .bs p { margin: 0; font-size: 13px; color: var(--site-text-2); line-height: 1.55; }

/* ---------- Chip / corner accents on hero ---------- */
.hero-tag {
  background: rgba(79,200,255,0.06);
  border-color: rgba(79,200,255,0.18);
}

/* ---------- FLAGSHIP PRODUCT FRAMING ---------- */
.flagship-band {
  position: relative; padding: 80px 0 0;
  background: #02030A;
  border-top: 1px solid var(--site-line);
}
.flagship-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--site-cyan), transparent);
  opacity: 0.4;
}
.flagship-head {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--site-line);
}
.flagship-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--site-cyan); margin-bottom: 18px;
}
.flagship-tag .ix {
  background: var(--site-blue); color: #fff;
  padding: 4px 10px; letter-spacing: 0.18em; font-size: 10.5px;
}
.flagship-tag .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--site-mint);
}
.flagship-tag .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--site-mint); box-shadow: 0 0 8px var(--site-mint); animation: pulse 1.6s infinite;
}
.flagship-head h2 {
  font-family: var(--font-display); font-size: clamp(48px, 5.5vw, 88px); font-weight: 400;
  letter-spacing: -0.03em; line-height: 1.02; margin: 0; color: #fff;
  max-width: 1200px;
}
.flagship-head h2 .accent {
  background: linear-gradient(120deg, #fff 0%, #4FC8FF 50%, #2D7BFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.flagship-meta {
  display: flex; flex-direction: column; gap: 8px;
  text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--site-text-3);
  letter-spacing: 0.14em; min-width: 220px;
}
.flagship-meta .v { color: #fff; font-size: 14px; letter-spacing: 0.04em; }
.flagship-meta .row { display: flex; justify-content: space-between; gap: 24px; }
.flagship-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-bottom: 1px solid var(--site-line);
}
.flagship-stat {
  padding: 28px 32px;
  border-right: 1px solid var(--site-line);
}
.flagship-stat:last-child { border-right: 0; }
.flagship-stat .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--site-text-3); text-transform: uppercase; }
.flagship-stat .v { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: #fff; letter-spacing: -0.025em; margin-top: 8px; }
.flagship-stat .desc { font-size: 12px; color: var(--site-text-2); margin-top: 6px; line-height: 1.5; }

@media (max-width: 900px) {
  .flagship-head { grid-template-columns: 1fr; }
  .flagship-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .command-stage { grid-template-columns: 1fr; height: auto; }
  .cmd-bottom { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .build-strip { grid-template-columns: 1fr 1fr; }
  .storyboard-rail { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .numbers-grid, .build-strip { grid-template-columns: 1fr; }
  .cmd-bottom { grid-template-columns: 1fr 1fr; }
  .storyboard-rail { grid-template-columns: repeat(2, 1fr); }
  .video-stage { aspect-ratio: 4/3; }
}


/* Tweaks: body-level toggles */
body.hide-scanlines .video-stage .photo-bg.scan::before { display: none; }
body.hide-scanlines .video-stage .crosshair { opacity: 0.4; }

/* ---------- HERO VISUAL · sci-fi upgrade ---------- */
.hero-visual { isolation: isolate; }

/* animated corner brackets that breathe */
.hv-corners {
  position: absolute; inset: 6px; pointer-events: none; z-index: 5;
}
.hv-corners > span {
  position: absolute; width: 18px; height: 18px;
  border: 1px solid #4FC8FF; opacity: 0.85;
  animation: hvCornerPulse 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(79,200,255,0.6));
}
.hv-corners > span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hv-corners > span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; animation-delay: 0.3s; }
.hv-corners > span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; animation-delay: 0.6s; }
.hv-corners > span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; animation-delay: 0.9s; }
@keyframes hvCornerPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* HUD top bar: flowing underline + rich identifiers */
.hv-bar { position: relative; gap: 12px; }
.hv-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #4FC8FF, transparent);
  background-size: 30% 100%; background-repeat: no-repeat;
  animation: hvScanX 4s linear infinite;
}
@keyframes hvScanX {
  0%   { background-position: -30% 0; }
  100% { background-position: 130% 0; }
}
.hv-bar .hv-id { display: inline-flex; align-items: center; gap: 8px; }
.hv-bar .hv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4FC8FF; box-shadow: 0 0 8px #4FC8FF;
  animation: pulse 1.6s infinite;
}
.hv-bar .hv-sep {
  width: 1px; height: 10px; background: var(--site-line); display: inline-block;
}
.hv-bar .hv-mode { color: var(--site-text-3); }
.hv-bar .hv-clock { font-variant-numeric: tabular-nums; color: #fff; }
.hv-bar .live { font-variant-numeric: tabular-nums; }

/* CCTV: depth grid, radar sweep arc, noise, animated bbox corner ticks */
.cctv-feed { isolation: isolate; }
.cctv-feed .cctv-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background:
    linear-gradient(0deg,  transparent 49.5%, rgba(79,200,255,0.6) 50%, transparent 50.5%) 0 0 / 20% 20%,
    linear-gradient(90deg, transparent 49.5%, rgba(79,200,255,0.6) 50%, transparent 50.5%) 0 0 / 20% 20%;
  mask-image: radial-gradient(60% 60% at 50% 60%, #000 50%, transparent 100%);
}
.cctv-feed .cctv-sweep {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 0deg at 50% 110%,
    rgba(79,200,255,0) 0deg, rgba(79,200,255,0.0) 50deg,
    rgba(79,200,255,0.35) 80deg, rgba(79,200,255,0) 110deg, rgba(79,200,255,0) 360deg);
  animation: hvSweep 5.4s linear infinite;
  opacity: 0.55;
}
.cctv-feed.alert .cctv-sweep {
  background: conic-gradient(from 0deg at 50% 110%,
    rgba(255,77,79,0) 0deg, rgba(255,77,79,0) 50deg,
    rgba(255,77,79,0.45) 80deg, rgba(255,77,79,0) 110deg, rgba(255,77,79,0) 360deg);
}
@keyframes hvSweep {
  0%   { transform: rotate(-30deg); }
  100% { transform: rotate(330deg); }
}
.cctv-feed .cctv-sweep { animation-duration: 14s !important; opacity: 0.35 !important; }
.cctv-feed .cctv-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.025;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.cctv-feed .scanline {
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,0.025) 3px, rgba(255,255,255,0.025) 4px),
    linear-gradient(180deg, transparent 0%, rgba(79,200,255,0.08) 50%, transparent 100%);
  background-size: 100% 100%, 100% 30%;
  background-repeat: no-repeat, no-repeat;
  animation: hvScanLine 9s linear infinite;
  opacity: 0.65;
}
@keyframes hvScanLine {
  0%   { background-position: 0 0, 0 -30%; }
  100% { background-position: 0 0, 0 130%; }
}

/* bbox corner ticks */
.cctv-feed .bbox-c {
  position: absolute; width: 6px; height: 6px;
  border: 1.5px solid currentColor;
}
.cctv-feed .bbox        { color: var(--site-mint); }
.cctv-feed .bbox.danger { color: var(--site-red); }
.cctv-feed .bbox-c.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cctv-feed .bbox-c.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.cctv-feed .bbox-c.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.cctv-feed .bbox-c.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.cctv-feed .bbox-label {
  animation: hvBboxBlink 1.6s ease-in-out infinite;
}
@keyframes hvBboxBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Network panel atmosphere */
.hv-net-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(60% 60% at 50% 60%, rgba(0,85,255,0.18), transparent 70%),
    repeating-linear-gradient(0deg,  transparent 0 11px, rgba(79,200,255,0.05) 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(79,200,255,0.05) 11px 12px);
  opacity: 0.55;
}

/* stat tiles: subtle scan shimmer on hover, value glow */
.hv-stat { position: relative; overflow: hidden; }
.hv-stat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79,200,255,0.08), transparent);
  transform: translateX(-100%);
  animation: hvShimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hvShimmer {
  0%, 60%  { transform: translateX(-100%); }
  80%      { transform: translateX(100%); }
  100%     { transform: translateX(100%); }
}

/* event card insertion — gentle fade so rotating cards don't pop */
.hv-evt-in {
  animation: hvEvtIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Cinematic letterbox + vignette on the hero visual */
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.45) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 60%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
  z-index: 5;
}
.hero-visual { isolation: isolate; }
@keyframes hvEvtIn {
  0%   { opacity: 0; transform: translateY(-4px); border-color: rgba(79,200,255,0.6); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

/* refresh icon spin */
.hv-spin { display: inline-block; animation: hvSpin 9s linear infinite; opacity: 0.6; }
@keyframes hvSpin { to { transform: rotate(360deg); } }

