.map-site {
  background:
    linear-gradient(90deg, rgba(0, 201, 186, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 201, 186, 0.08) 1px, transparent 1px),
    #f6f1e8;
  background-size: 42px 42px;
}

.map-site .kicker {
  color: var(--teal-ink);
}

.map-site .evidence-section .kicker {
  color: var(--teal);
}

.map-header {
  position: fixed;
  z-index: 45;
  top: 18px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100vw - 28px));
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 24px 70px rgba(10, 10, 10, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.map-site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.map-site-nav::-webkit-scrollbar {
  display: none;
}

.map-site-nav a {
  display: grid;
  flex: 0 0 auto;
  min-height: 38px;
  place-items: center;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: rgba(10, 10, 10, 0.72);
  font-size: 13px;
  font-weight: 950;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.map-site-nav a:hover,
.map-site-nav a.is-active {
  color: var(--black);
  background: var(--yellow);
}

.map-site-nav a.is-active {
  transform: translateY(-1px);
  animation: navSpyPulse 720ms ease;
}

.map-menu {
  position: relative;
}

.map-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(10, 10, 10, 0.72);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 950;
}

.map-menu summary::-webkit-details-marker {
  display: none;
}

.map-menu[open] summary,
.map-menu summary:hover {
  color: var(--black);
  background: var(--yellow);
}

.map-menu > div {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: 230px;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 22px 70px rgba(10, 10, 10, 0.18);
}

.map-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(10, 10, 10, 0.78);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.map-menu a:hover {
  color: var(--black);
  background: var(--yellow);
}

.map-hero {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.54fr) minmax(540px, 0.96fr);
  gap: 34px;
  align-items: center;
  padding: 136px max(22px, calc((100vw - 1180px) / 2)) 78px;
}

.map-hero .hero-copy {
  min-width: 0;
}

.hero-copy h1,
.section h2 {
  margin: 0 0 22px;
  font-family: "PP Agrandir", "Archivo Black", sans-serif;
  font-size: clamp(44px, 5.2vw, 82px);
  line-height: 0.92;
}

.map-stage {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 42px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.7), rgba(255, 253, 246, 0.45)),
    url("../assets/web/covers/maps.jpg") center / cover;
  box-shadow: 0 28px 80px rgba(10, 10, 10, 0.14);
}

.map-stage > svg {
  position: absolute;
  z-index: 1;
  inset: 6%;
  width: 88%;
  height: 88%;
  pointer-events: none;
}

.map-stage > svg path {
  fill: none;
  stroke: var(--teal);
  opacity: 0.42;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 16 22;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.16);
  cursor: pointer;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease;
}

.map-node.is-active,
.map-node:hover {
  background: var(--yellow);
  transform: scale(1.06);
}

.map-node.farmer { left: 8%; bottom: 42%; }
.map-node.agent { left: 13%; top: 34%; }
.map-node.platform { left: 42%; top: 45%; }
.map-node.finance { right: 12%; bottom: 42%; }
.map-node.market { right: 9%; top: 23%; }

.node-card {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: auto minmax(max-content, 210px) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: auto;
  padding: 22px;
  border-radius: 24px;
  color: var(--white);
  background: #061c18;
  box-shadow: 0 18px 50px rgba(10, 10, 10, 0.2);
}

.node-card h2 {
  min-width: 0;
  margin: 0;
  font-family: "PP Agrandir", sans-serif;
  font-size: 32px;
  line-height: 0.95;
}

.node-card p {
  min-width: 0;
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.node-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-card span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--black);
  background: var(--teal);
  font-family: "Aeonik Fono", monospace;
  font-size: 12px;
  font-weight: 900;
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.layer-grid article {
  min-height: 260px;
  padding: 22px;
  border-radius: 26px;
  background: var(--white);
  transition: transform 180ms ease;
}

.layer-grid article:hover {
  transform: translateY(-6px);
}

.layer-grid h3 {
  margin: 0 0 16px;
  font-family: "PP Agrandir", sans-serif;
  font-size: 32px;
}

.layer-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  gap: 30px;
  color: var(--white);
  background: #0f211b;
}

.evidence-section .metric-grid {
  grid-template-columns: repeat(2, 1fr);
}

.evidence-section .metric-card {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
}

.evidence-section .metric-card strong {
  color: var(--yellow);
}

.evidence-section .metric-card span {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1100px) {
  .map-header {
    position: sticky;
    top: 8px;
    left: auto;
    width: auto;
    margin: 8px;
    grid-template-columns: 1fr;
    transform: none;
  }

  .map-site-nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .map-menu > div {
    right: auto;
    left: 0;
  }

  .map-hero,
  .layer-section,
  .evidence-section,
  .audience-section,
  .partner-section,
  .news-section {
    padding-left: 16px;
  }

  .map-hero,
  .evidence-section {
    grid-template-columns: 1fr;
  }

  .layer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .map-header {
    border-radius: 24px;
    padding: 14px;
  }

  .map-menu {
    display: none;
  }

  .map-hero {
    min-height: auto;
    padding-top: 38px;
  }

  .map-stage {
    min-height: 600px;
  }

  .node-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 16px;
  }

  .node-card h2 {
    font-size: 28px;
  }

  .node-card p,
  .node-card div {
    grid-column: 1 / -1;
  }

  .map-node {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .map-node span {
    max-width: 78px;
  }

  .layer-grid,
  .evidence-section .metric-grid {
    grid-template-columns: 1fr;
  }
}
