/* =========================================================
   EDC Hero — Global Map with PH Focus
   Left: pitch. Right: schematic map with origin dots, arcs
   converging into a pulsing PH marker. Pure CSS + inline SVG.
========================================================= */
.edc-hero-map {
  position: relative;
  overflow: hidden;
  padding: 64px var(--edc-space-gutter) 80px;
  background: var(--edc-warm-white);
  isolation: isolate;
}
@media (min-width: 1024px) { .edc-hero-map { padding: 80px var(--edc-section-h) 96px; } }

.edc-hero-map__glow {
  position: absolute;
  top: 20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle at center, rgba(242, 184, 27, 0.16) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.edc-hero-map__inner {
  position: relative;
  z-index: 1;
  max-width: var(--edc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .edc-hero-map__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }
  .edc-hero-map__copy  { grid-column: span 5; }
  .edc-hero-map__stage { grid-column: 7 / span 6; }
}

/* Copy */
.edc-hero-map__copy { display: flex; flex-direction: column; gap: 28px; }
.edc-hero-map__title {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--edc-obsidian);
  margin: 0;
}
.edc-hero-map__accent { color: var(--edc-solar-gold); }
.edc-hero-map__body {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: 1.75;
  color: var(--edc-slate);
  max-width: 480px;
  margin: 0;
}
.edc-hero-map__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--edc-radius-full);
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(242, 184, 27, 0.55);
  transition: transform var(--edc-dur-quick), filter var(--edc-dur-quick);
}
.edc-hero-map__cta:hover { transform: translateY(-2px); filter: brightness(1.06); color: var(--edc-obsidian); }
.edc-hero-map__cta .material-symbols-outlined { font-size: 20px !important; transition: transform var(--edc-dur-quick); }
.edc-hero-map__cta:hover .material-symbols-outlined { transform: translateX(4px); }

/* Map stage */
.edc-hero-map__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5f3ef 0%, #ffffff 100%);
  border: 1px solid var(--edc-border);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(41, 41, 40, 0.15);
}

/* Concentric rings behind the PH marker */
.edc-hero-map__ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(242, 184, 27, 0.20);
  top: 55%; left: 62%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.edc-hero-map__ring--a { width: 200px; height: 200px; }
.edc-hero-map__ring--b { width: 320px; height: 320px; border-color: rgba(242, 184, 27, 0.14); }
.edc-hero-map__ring--c { width: 440px; height: 440px; border-color: rgba(242, 184, 27, 0.08); }

/* Dot-grid backing */
.edc-hero-map__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(90, 89, 86, 0.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 62% 55%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 62% 55%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* SVG arcs converging into PH */
.edc-hero-map__arcs {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.edc-hero-map__arc {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

/* Origin markers */
.edc-hero-map__origin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2;
}
.edc-hero-map__origin-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--edc-obsidian);
  box-shadow: 0 0 0 4px rgba(41, 41, 40, 0.06);
}
.edc-hero-map__origin-label {
  padding: 3px 10px;
  background: #ffffff;
  border: 1px solid var(--edc-border);
  border-radius: 999px;
  font-family: var(--edc-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--edc-slate);
  box-shadow: 0 2px 6px rgba(41, 41, 40, 0.08);
}

/* Philippines marker (destination) */
.edc-hero-map__ph {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.edc-hero-map__ph-core {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--edc-solar-gold), var(--edc-pale-gold));
  color: var(--edc-obsidian);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px -6px rgba(242, 184, 27, 0.65);
}
.edc-hero-map__ph-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--edc-solar-gold);
  opacity: 0.4;
  z-index: 1;
}

/* Floating stat badge (glassmorphic) */
.edc-hero-map__badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 221, 216, 0.7);
  box-shadow: 0 16px 36px -12px rgba(41, 41, 40, 0.20);
}
.edc-hero-map__badge .material-symbols-outlined {
  font-size: 24px !important;
  color: var(--edc-solar-gold);
}
.edc-hero-map__badge strong {
  display: block;
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--edc-obsidian);
  line-height: 1;
}
.edc-hero-map__badge em {
  display: block;
  font-family: var(--edc-font-body);
  font-style: normal;
  font-size: 11px;
  color: var(--edc-slate);
  margin-top: 4px;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  /* Copy stagger */
  .edc-hero-chip,
  .edc-hero-map__title,
  .edc-hero-map__body,
  .edc-hero-map__cta,
  .edc-hero-map__stage {
    opacity: 0;
    transform: translateY(20px);
    animation: edc-hm-rise 800ms var(--edc-ease-out) forwards;
  }
  .edc-hero-chip           { animation-delay:   0ms; }
  .edc-hero-map__title     { animation-delay: 120ms; }
  .edc-hero-map__body      { animation-delay: 280ms; }
  .edc-hero-map__cta       { animation-delay: 420ms; }
  .edc-hero-map__stage     { animation-delay: 200ms; }
  @keyframes edc-hm-rise { to { opacity: 1; transform: translateY(0); } }

  /* Rings breathe outward */
  .edc-hero-map__ring { animation: edc-hm-ring 6s ease-in-out infinite; }
  .edc-hero-map__ring--b { animation-delay: -2s; }
  .edc-hero-map__ring--c { animation-delay: -4s; }
  @keyframes edc-hm-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1;   }
    50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 0.6; }
  }

  /* Arcs draw in one after another after the stage lifts */
  .edc-hero-map__arc {
    animation: edc-hm-draw 1.4s var(--edc-ease-out) forwards;
    animation-delay: calc(700ms + (var(--edc-hm-arc-i, 0) * 250ms));
  }
  @keyframes edc-hm-draw { to { stroke-dashoffset: 0; } }

  /* Origin dots pop-in AFTER their arc finishes */
  .edc-hero-map__origin {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    animation: edc-hm-pop 500ms var(--edc-ease-out) forwards;
    animation-delay: calc(1500ms + (var(--edc-hm-origin-i, 0) * 250ms));
  }
  @keyframes edc-hm-pop { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

  /* PH marker pulses forever */
  .edc-hero-map__ph-pulse {
    animation: edc-hm-pulse 2.2s ease-out infinite;
  }
  .edc-hero-map__ph-pulse--b { animation-delay: -1.1s; }
  @keyframes edc-hm-pulse {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
  }

  /* Badge rises last */
  .edc-hero-map__badge {
    opacity: 0;
    transform: translateY(12px);
    animation: edc-hm-rise 700ms 2400ms var(--edc-ease-out) forwards;
  }
}
