/* ============================================================================
   Eyas — 03 · The Map (three-way positioning spectrum)
   Two muted competitor poles flank an elevated, glowing Eyas glass panel.
   Asymmetric on purpose: Eyas wins the eye. Prefix: .map-
   ========================================================================== */

.map {
  overflow: hidden;
  /* the title must never hide under the fixed nav when deep-linked / scrolled */
  scroll-margin-top: 88px;
}

/* soft steel radial bloom centred behind the Eyas panel */
.map-bloom {
  position: absolute;
  left: 50%;
  top: 60%;
  width: min(720px, 86vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(175, 200, 228, 0.22) 0%,
    rgba(175, 200, 228, 0.09) 34%,
    transparent 66%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.map-wrap {
  position: relative;
  z-index: 1;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.map-head {
  max-width: 56ch;
  margin-bottom: clamp(var(--sp-8), 7vw, var(--sp-10));
}
.map-head .eyebrow {
  margin-bottom: var(--sp-4);
}
.map-title {
  color: var(--text-hi);
  text-wrap: balance;
}

/* ── Spectrum grid ──────────────────────────────────────────────────────── */
/* Mobile/default: single-column stack (Eyas first via order). Desktop becomes
   a clean equal-height 3-up grid with a dominant centre. */
.map-spectrum {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

/* ── Competitor poles (muted, quiet, no glow, but legible) ──────────────── */
.map-pole {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(var(--sp-5), 2vw, var(--sp-6));
  border-radius: var(--r-lg);
  /* a Spur ruhiger als die Eyas-Karte: dunklerer, leicht entsaettigter Fill
     und gedaempftere Kante, damit die glow-tragende Hero-Karte klar dominiert */
  border: 1px solid rgba(160, 184, 214, 0.18);
  background: rgba(15, 22, 33, 0.82);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

/* spectrum-position tag (Passive / Aggressive) */
.map-pole__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(133, 152, 175, 0.24);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-lo);
}
.map-pole__tag--warn {
  border-color: rgba(232, 162, 61, 0.32);
  color: rgba(227, 165, 84, 0.92);
}

.map-pole__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-snug);
  color: var(--text-lo);
}
.map-pole__title {
  color: var(--text-hi);
  font-weight: 600;
}
.map-pole__body {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 38ch;
}

/* the "blocks" / friction pole gets a faint warn-amber hint, kept very low so
   the gold never competes with the Eyas card's single steel glow */
.map-pole--block {
  border-color: rgba(232, 162, 61, 0.14);
  background:
    linear-gradient(180deg, rgba(232, 162, 61, 0.035), transparent 55%),
    rgba(15, 22, 33, 0.78);
}
.map-pole--block .map-pole__kicker {
  color: rgba(227, 165, 84, 0.6);
}

/* ── Eyas hero panel (dominant, elevated, glowing) ──────────────────────── */
.map-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(var(--sp-6), 3vw, var(--sp-8));
  border-radius: var(--r-xl);
  /* heller als die Standard-Glas-Rezeptur: die Eyas-Karte muss aus dem Canvas
     treten, sonst hat "It speaks." dieselbe Praesenz wie die Konkurrenz-Pole */
  background:
    linear-gradient(180deg, rgba(175, 200, 228, 0.10) 0%, rgba(175, 200, 228, 0.02) 46%),
    rgba(150, 195, 255, 0.07);
  border-color: rgba(226, 238, 250, 0.34);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 1px 22px -12px rgba(176, 214, 255, 0.30),
    0 26px 70px -22px rgba(0, 0, 0, 0.66),
    0 0 64px -10px var(--glow-steel);
}

.map-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.map-hero__pill {
  font-weight: 600;
  color: var(--text-hi);
}

.map-hero__live {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-bright);
}
.map-hero__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow-steel);
  /* a quiet two-breath atmer on mount, then rest, no permanent blink
     (DESIGN.md §9). Settles full-opacity since there is no fill-mode. */
  animation: map-pulse 2.8s var(--ease) 2;
}
@keyframes map-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.86); }
}

.map-hero__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: var(--tracking-tight);
}

.map-hero__body {
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text-mid);
  max-width: 52ch;
}

.map-hero__punch {
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 500;
  color: var(--accent-bright);
  text-wrap: balance;
}

.map-hero__rule {
  margin-block: var(--sp-2);
}

/* attribute comparison row */
.map-attrs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}
.map-attrs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-hi);
}
.map-attrs__ico {
  flex: none;
  color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Mobile / tablet (stacked single column): Eyas leads, full-width measures. */
@media (max-width: 1023px) {
  .map-hero { order: -1; }            /* Eyas first, it is the boldest */
  .map-pole__body,
  .map-hero__body { max-width: none; }
}

@media (max-width: 480px) {
  .map-hero {
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }
  .map-attrs { gap: var(--sp-3) var(--sp-4); }
}

/* ── Desktop (>=1024px): confident equal-height 3-up grid ───────────────── */
/* watch | EYAS (dominant centre) | block. Equal heights, consistent gutters,
   full content width. No fragile elevation, no clipped heading. */
@media (min-width: 1024px) {
  .map-spectrum {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr) minmax(0, 1fr);
    align-items: stretch;          /* equal-height cards */
    gap: clamp(var(--sp-5), 2.4vw, var(--sp-7));
  }

  .map-pole,
  .map-hero {
    height: 100%;                  /* fill the stretched track */
  }

  /* the centre panel keeps its source order (2nd) so it lands in the middle */
  .map-hero {
    justify-content: flex-start;
  }

  /* poles get a touch more inner room so they balance the taller hero */
  .map-pole {
    padding: clamp(var(--sp-5), 1.8vw, var(--sp-6));
    gap: var(--sp-4);
  }

  /* the section heading gets clear air above the grid */
  .map-head {
    margin-bottom: clamp(var(--sp-7), 5vw, var(--sp-9));
  }
}

/* Ultra-wide (>=1440px): a hair more dominance to the centre, larger gutters. */
@media (min-width: 1440px) {
  .map-spectrum {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr) minmax(0, 1fr);
    gap: clamp(var(--sp-6), 2.2vw, var(--sp-8));
  }
}

/* Reduced motion: kill the live pulse. (Reveal handled by guarded JS.) */
@media (prefers-reduced-motion: reduce) {
  .map-hero__pulse { animation: none; }
}
