/* EUROGUARD live stage: looping 16:9 map videos with a live HTML HUD.
   Drop-in for euroguard.ai index. Uses the existing home.css variables (--home-accent, --home-line, ...). */

.eg-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 14px;
  background: #080e17 center / cover no-repeat; border: 1px solid var(--home-line, #233340);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(79, 223, 255, .04) inset; isolation: isolate; }
.eg-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.eg-stage video.is-on { opacity: 1; }
.eg-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(8, 14, 23, .55) 0, transparent 22%, transparent 72%, rgba(8, 14, 23, .75) 100%); }

/* HUD */
.eg-hud { position: absolute; z-index: 3; font: 500 11px/1.45 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--home-muted, #9baebf); pointer-events: none; white-space: nowrap; }
.eg-hud b { color: var(--home-text, #edf3f8); font-weight: 600; }
.eg-hud-tl { top: 16px; left: 18px; } .eg-hud-tr { top: 16px; right: 18px; text-align: right; }
.eg-hud-bl { bottom: 16px; left: 18px; } .eg-hud-br { bottom: 16px; right: 18px; text-align: right; }
.eg-live { display: inline-flex; align-items: center; gap: 8px; color: var(--home-red, #ff4d3d); }
.eg-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: eg-blink 1.6s infinite; }
@keyframes eg-blink { 50% { opacity: .25; } }
.eg-big { display: block; font: 700 clamp(22px, 2.6vw, 34px)/1 "Homepage Space Grotesk", "Space Grotesk", system-ui, sans-serif; letter-spacing: -.02em; color: var(--home-text, #edf3f8); text-transform: none; margin-bottom: 4px; }

/* layer tabs (Incidents / Roads / Skies) */
.eg-tabs { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(8, 14, 23, .72); border: 1px solid var(--home-line, #233340); backdrop-filter: blur(8px); }
.eg-tabs button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; font: 600 12px/1 "Homepage Space Grotesk", "Space Grotesk", system-ui, sans-serif;
  letter-spacing: .04em; color: var(--home-muted, #9baebf); transition: background .25s, color .25s; }
.eg-tabs button[aria-pressed="true"] { background: var(--home-accent, #4fdfff); color: #061019; }
.eg-tabs button:focus-visible { outline: 2px solid var(--home-accent, #4fdfff); outline-offset: 2px; }
.eg-progress { position: absolute; z-index: 4; left: 0; bottom: 0; height: 2px; width: 0; background: var(--home-accent, #4fdfff); box-shadow: 0 0 12px var(--home-accent, #4fdfff); }

/* circular orbit variant (Argos-style round stage) */
.eg-orbit { position: relative; aspect-ratio: 1 / 1; width: min(100%, 620px); margin-inline: auto; border-radius: 50%; overflow: hidden; }
.eg-orbit video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transform: scale(1.02); }
.eg-orbit-wrap { position: relative; width: min(100%, 640px); margin-inline: auto; }
.eg-orbit-ring { position: absolute; inset: -3%; pointer-events: none; }
.eg-orbit-ring circle { fill: none; stroke: rgba(79, 223, 255, .22); stroke-width: .25; }
.eg-orbit-ring .dash { stroke-dasharray: .6 1.6; stroke: rgba(79, 223, 255, .38); }
.eg-orbit-ring .sweep { stroke: rgba(79, 223, 255, .9); stroke-dasharray: 8 300; stroke-linecap: round; transform-origin: 50% 50%; animation: eg-spin 8s linear infinite; }
@keyframes eg-spin { to { transform: rotate(360deg); } }

/* hero backdrop variant */
body.homepage .home-start > .eg-hero-bg, .eg-hero-bg { position: absolute; z-index: 0; top: 0; left: 50%; width: 100vw; height: min(100%, 860px); transform: translateX(-50%);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 48%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 60% 62% at 50% 48%, #000 30%, transparent 80%); }
.eg-hero-bg video { position: absolute; left: 50%; top: 50%; width: max(100%, 1500px); height: auto; transform: translate(-50%, -50%); opacity: .30; }
body { overflow-x: clip; }
@media (max-width: 720px) { .eg-hud-tr, .eg-hud-bl { display: none; } .eg-tabs button { padding: 6px 10px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .eg-orbit-ring .sweep, .eg-live::before { animation: none; } }
/* ---- integration with the existing index.html ---- */
.home-image-frame .eg-stage { border: 0; border-radius: 0; box-shadow: none; }
.home-start:has(.eg-hero-bg) { isolation: isolate; }
/* Argos-style "live Europe" section: round orbit + live figures */
.eg-live-europe { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.eg-orbit-tags { position: absolute; inset: 0; pointer-events: none; font: 500 10.5px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--home-muted, #9baebf); }
.eg-orbit-tags span { position: absolute; }
.eg-orbit-tags .t1 { top: 2%; left: 0; } .eg-orbit-tags .t2 { top: 2%; right: 0; text-align: right; }
.eg-orbit-tags .t3 { bottom: 2%; left: 0; } .eg-orbit-tags .t4 { bottom: 2%; right: 0; text-align: right; }
.eg-orbit-tags b { color: var(--home-text, #edf3f8); font-weight: 600; }
.eg-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0 0; background: var(--home-line, #233340); border: 1px solid var(--home-line, #233340); }
.eg-figures div { background: var(--home-bg, #080e17); padding: 18px 16px; }
.eg-figures dt { font: 500 10.5px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--home-muted, #9baebf); }
.eg-figures dd { margin: 8px 0 0; font: 700 clamp(24px, 2.6vw, 34px)/1 "Homepage Space Grotesk", "Space Grotesk", system-ui, sans-serif; color: var(--home-text, #edf3f8); font-variant-numeric: tabular-nums; }
.eg-figures dd small { display: block; margin-top: 6px; font: 400 12px/1.3 "Homepage Space Grotesk", "Space Grotesk", system-ui, sans-serif; color: var(--home-muted, #9baebf); }
.eg-figures .c-red dd { color: #ff6b5c; } .eg-figures .c-amber dd { color: #ffb347; } .eg-figures .c-cyan dd { color: var(--home-accent, #4fdfff); }
@media (max-width: 900px) { .eg-live-europe { grid-template-columns: 1fr; } .eg-figures { grid-template-columns: 1fr 1fr 1fr; } .eg-figures div { padding: 14px 10px; } }
.eg-live-europe h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.03em; margin: 12px 0 18px; }
.eg-live-europe h2 span { color: var(--home-muted, #9baebf); }
.eg-live-europe p { color: var(--home-muted, #9baebf); max-width: 52ch; }
.eg-orbit-wrap { padding: 6%; }
@media (max-width: 720px) {
  .eg-hud { font-size: 9.5px; letter-spacing: .1em; } .eg-hud-tl { top: 10px; left: 12px; }
  .eg-hud-br { display: none; }
  .eg-tabs { bottom: 10px; padding: 3px; gap: 2px; } .eg-tabs button { padding: 5px 9px; font-size: 10.5px; }
  .eg-orbit-tags { font-size: 9px; }
}
