/* EUROGUARD home first screen, "Live Europe". Everything is scoped to .egh, so no other page or section is touched.
   Needs: home.css (tokens, header). The background loop comes from euroguard-live-stage.js ([data-eg-loop="orbit"]). */
:root { --egh-header: 100px; }
body.homepage { overflow-x: clip; }
/* The globe runs behind the header, so the header must sit above it. */
body.homepage .home-header { position: relative; z-index: 5; }

body.homepage .home-start.egh { padding: 0; text-align: center; isolation: isolate; }
body.homepage .home-start.egh::before { display: none; }

/* ---------- first screen ---------- */
.egh-hero { position: relative; display: flex; align-items: center; text-align: left;
  min-height: clamp(580px, calc(100svh - var(--egh-header)), 940px); padding: 44px 0 64px; }
body.homepage .egh-hero > .eg-hero-bg { position: absolute; z-index: 0; left: 50%; top: calc(-1 * var(--egh-header)); width: 100vw; height: calc(100% + var(--egh-header));
  transform: translateX(-50%); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); }
body.homepage .egh-hero > .eg-hero-bg video { position: absolute; left: 58%; top: 50%; width: auto; max-width: none; height: 124%; aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%); opacity: 1; background: transparent; }
.egh-shade { position: absolute; z-index: 1; left: 50%; top: calc(-1 * var(--egh-header)); width: 100vw; height: calc(100% + var(--egh-header)); transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, rgba(8,14,23,.96) 0%, rgba(8,14,23,.92) 28%, rgba(8,14,23,.72) 42%, rgba(8,14,23,.3) 56%, rgba(8,14,23,0) 68%),
              linear-gradient(0deg, rgba(8,14,23,.85), rgba(8,14,23,0) 24%); }
.egh-main { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.egh-copy { flex: 1 1 520px; min-width: 0; max-width: 790px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

body.homepage .home-start .egh-copy h1.home-eyebrow.home-eyebrow { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0; max-width: none;
  font-family: var(--home-mono, ui-monospace, Menlo, monospace); font-size: 12px; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; color: var(--home-accent, #4fdfff); text-align: left; }
body.homepage .home-start .egh-copy h1.home-eyebrow .home-kicker-rule { width: 24px; margin: 0; flex: none; }
body.homepage .home-start .egh-hero h2.egh-h { margin: 0; max-width: none; font-weight: 600; text-align: left; text-wrap: balance;
  font-size: clamp(2.6rem, 4.9vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; color: #fff; }
body.homepage .home-start .egh-hero .egh-lead { margin: 0; max-width: 640px; text-align: left; color: #d3dee8; font-size: 19px; line-height: 1.55; text-wrap: pretty; text-shadow: 0 1px 16px rgba(8,14,23,.95), 0 0 3px rgba(8,14,23,.8); }

.egh-stat { display: flex; align-items: center; gap: 18px; margin: 0; min-height: 64px; }
.egh-stat:not(.is-on) { visibility: hidden; }
.egh-stat.is-off { display: none; }
.egh-pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 6px rgba(56,211,159,.16), 0 0 14px #38d39f; animation: egh-pulse 2.4s ease-in-out infinite; }
.egh-stat b { font-size: 56px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(56,211,159,.35); }
.egh-stat-t { max-width: 290px; color: #38d39f; font-size: 16px; line-height: 1.35; text-shadow: 0 1px 12px rgba(8,14,23,.95); }
@keyframes egh-pulse { 50% { box-shadow: 0 0 0 10px rgba(56,211,159,.04), 0 0 8px #38d39f; } }

body.homepage .egh-cta.egp-hero-cta { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 14px; margin: 0; }
.egh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; min-height: 60px; padding: 8px 30px; border-radius: 999px;
  font: 600 18px/1.2 "Homepage Space Grotesk", "Space Grotesk", system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.egh-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.egh-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.egh-btn-primary { color: #fff; background: linear-gradient(180deg, #ff6b56, #ff3f2e); box-shadow: 0 0 0 1px rgba(255,140,120,.55) inset, 0 12px 44px rgba(255,77,61,.5); }
.egh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,170,150,.7) inset, 0 16px 52px rgba(255,77,61,.65); }
.egh-btn-primary small { font: 500 13px/1 "Homepage Space Grotesk", system-ui, sans-serif; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.2); }
.egh-btn-ghost { color: var(--home-accent, #4fdfff); border: 1px solid rgba(79,223,255,.55); background: rgba(8,14,23,.55); }
.egh-btn-ghost:hover { background: rgba(79,223,255,.12); transform: translateY(-2px); }
.egh-btn-ghost em { font: 700 11px/1 ui-monospace, Menlo, monospace; font-style: normal; letter-spacing: .08em; padding: 4px 7px; border-radius: 4px; background: #4fdfff; color: #04121a; }

body.homepage .egh-hero .egh-micro { margin: 0; text-align: left; font: 500 11.5px/1.5 var(--home-mono, ui-monospace, Menlo, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--home-muted, #9baebf); }
body.homepage .egh-hero .egh-micro b { color: var(--home-accent, #4fdfff); font-weight: 700; }

/* ---------- latest reports panel (hidden until real reports arrive) ---------- */
.egh-feed { flex: none; align-self: flex-start; margin-top: clamp(0px, 4vh, 48px); width: 372px; padding: 18px 18px 14px; box-sizing: border-box; text-align: left;
  background: rgba(10,18,29,.72); border: 1px solid rgba(79,223,255,.16); border-radius: 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.egh-feed[hidden] { display: none; }
.egh-feed-h { display: flex; justify-content: space-between; margin: 0 0 12px; font: 400 11px/1 var(--home-mono, ui-monospace, Menlo, monospace); letter-spacing: .18em; text-transform: uppercase; color: var(--home-muted, #9baebf); }
.egh-feed-h span + span { color: #38d39f; }
.egh-rows { list-style: none; margin: 0; padding: 0; }
.egh-row { --c: #4fdfff; display: flex; align-items: center; gap: 13px; padding: 11px 6px; margin: 0 -6px; border-top: 1px solid rgba(35,51,64,.7); border-radius: 10px; color: inherit; text-decoration: none; transition: background .2s, box-shadow .2s; }
.egh-rows li:first-child .egh-row { border-top: 0; }
.egh-row:hover, .egh-row:focus-visible { background: color-mix(in srgb, var(--c) 9%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 22px color-mix(in srgb, var(--c) 28%, transparent); outline: none; }
.egh-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--c); border: 1.6px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #080e17);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 65%, transparent), inset 0 0 10px color-mix(in srgb, var(--c) 35%, transparent); }
.egh-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px var(--c)); }
.egh-txt { flex: 1; min-width: 0; }
.egh-txt strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; color: #edf3f8; overflow-wrap: anywhere; }
.egh-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--home-muted, #9baebf); }
.egh-eg { flex: none; font: 700 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; padding: 4px 8px; border-radius: 5px; color: #140808; background: var(--egc, #FF3B30); box-shadow: 0 0 14px color-mix(in srgb, var(--egc, #FF3B30) 55%, transparent); }
.egh-eg.l5 { color: #fff; }
.egh-all { display: flex; justify-content: space-between; margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(35,51,64,.7); font-size: 14px; color: var(--home-accent, #4fdfff); text-decoration: none; }
.egh-all:hover { text-decoration: underline; }
.egh-all:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---------- below the first screen ---------- */
.egh-fine { margin: 0 auto; padding: 30px 0 64px; max-width: 720px; color: var(--home-muted, #9baebf); font-size: 14px; line-height: 1.6; text-align: center; }
.egh-fine p { margin: 0; }
.egh-fine .egh-tag { margin-bottom: 8px; color: #c3d0dc; font-size: 17px; }
body.homepage .home-start.egh .egh-who { padding: 72px 0 72px; text-align: center; }
body.homepage .home-start .egh-who h2.home-h1 { margin: 38px auto 14px; max-width: 760px; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.egh-who-cta { display: flex; justify-content: center; margin: 0 auto 28px; }

/* desktop: the panel is pinned top-right so it never meets the cookie box at the bottom right */
@media (min-width: 1061px) {
  .egh-main { position: static; box-sizing: border-box; padding-right: 412px; justify-content: flex-start; }
  .egh-copy { position: relative; z-index: 2; }
  .egh-feed { position: absolute; z-index: 2; right: 0; top: clamp(20px, 7vh, 90px); margin: 0; }
}
/* ---------- tablet ---------- */
@media (max-width: 1060px) {
  .egh-main { flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px; }
  .egh-copy { flex: 0 0 auto; width: 100%; max-width: 740px; }
  .egh-feed { align-self: flex-start; width: min(100%, 440px); margin-top: 0; }
  body.homepage .egh-hero > .eg-hero-bg video { left: 66%; height: 112%; }
  .egh-shade { background: linear-gradient(90deg, rgba(8,14,23,.95) 0%, rgba(8,14,23,.8) 40%, rgba(8,14,23,.3) 70%, rgba(8,14,23,.1) 100%), linear-gradient(0deg, rgba(8,14,23,.85), rgba(8,14,23,0) 24%); }
}
/* ---------- phone: globe on top, text below, no panel ---------- */
@media (max-width: 700px) {
  :root { --egh-header: 80px; }
  .egh-hero { align-items: flex-end; min-height: max(560px, calc(100svh - var(--egh-header))); padding: 0 0 26px; }
  body.homepage .egh-hero > .eg-hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); }
  body.homepage .egh-hero > .eg-hero-bg video { left: 50%; top: calc(var(--egh-header) - 10px); height: min(48svh, 97vw); transform: translateX(-50%); }
  .egh-shade { background: linear-gradient(180deg, rgba(8,14,23,.12) 0, rgba(8,14,23,.08) calc(var(--egh-header) + 26svh), rgba(8,14,23,.93) calc(var(--egh-header) + 42svh), #080e17 calc(var(--egh-header) + 50svh)); }
  .egh-feed { display: none; }
  .egh-copy { gap: 16px; }
  body.homepage .home-start .egh-copy h1.home-eyebrow.home-eyebrow { font-size: 10.5px; letter-spacing: .16em; gap: 10px; }
  body.homepage .home-start .egh-copy h1.home-eyebrow .home-kicker-rule { width: 18px; }
  body.homepage .home-start .egh-hero h2.egh-h { font-size: 2.5rem; line-height: 1.04; }
  body.homepage .home-start .egh-hero .egh-lead { font-size: 16px; line-height: 1.5; }
  .egh-stat { gap: 14px; min-height: 48px; }
  .egh-stat b { font-size: 34px; }
  .egh-stat-t { font-size: 13.5px; max-width: none; }
  body.homepage .egh-cta.egp-hero-cta { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .egh-btn { width: 100%; min-height: 56px; font-size: 17px; padding: 8px 22px; white-space: normal; text-align: center; flex-wrap: wrap; row-gap: 4px; }
  body.homepage .egh-hero .egh-micro { font-size: 10px; letter-spacing: .12em; }
  body.homepage .home-start.egh .egh-who { padding: 48px 0 56px; }
}
@media (max-width: 400px) {
  body.homepage .home-start .egh-hero h2.egh-h { font-size: 2.35rem; }
  .egh-btn { font-size: 16px; padding: 8px 16px; gap: 9px; }
  .egh-btn > svg { display: none; }
  .egh-btn-primary small { font-size: 12px; padding: 5px 9px; }
}
/* short laptop screens: keep the buttons above the fold */
@media (min-width: 1061px) and (max-height: 760px) {
  .egh-hero { padding: 28px 0 40px; }
  .egh-copy { gap: 20px; }
  body.homepage .home-start .egh-hero h2.egh-h { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
  .egh-stat b { font-size: 46px; }
  .egh-stat { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .egh-pulse { animation: none; } .egh-btn, .egh-row { transition: none; } .egh-btn:hover { transform: none; } }
@media (max-width: 359px) { body.homepage .home-start .egh-hero h2.egh-h { font-size: 2.1rem; } }
