/* REV JAMi-PROFILE-2.6 — Operational Footprint Map */
.footprint {
  position: relative;
  overflow: hidden;
}

.footprint::before {
  content: "";
  position: absolute;
  inset: 8% -14% auto auto;
  width: min(520px, 72vw);
  height: min(520px, 72vw);
  background:
    radial-gradient(circle at center, rgba(95, 246, 236, 0.08), transparent 62%),
    radial-gradient(circle at 70% 35%, rgba(255, 44, 164, 0.05), transparent 48%);
  filter: blur(12px);
  pointer-events: none;
}

.footprint-console {
  position: relative;
  display: grid;
  gap: clamp(18px, 4vw, 34px);
  margin-top: clamp(28px, 6vw, 54px);
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(95, 246, 236, 0.18);
  border-radius: clamp(26px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(11, 31, 30, 0.72), rgba(3, 9, 13, 0.92)),
    radial-gradient(circle at 15% 12%, rgba(95, 246, 236, 0.14), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(255, 44, 164, 0.08), transparent 34%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 90px rgba(0, 0, 0, 0.34),
    0 0 44px rgba(95, 246, 236, 0.06);
  isolation: isolate;
}

.footprint-console::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(95, 246, 236, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 24px);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
}

.footprint-map-stage {
  position: relative;
  width: min(100%, 940px);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  min-height: 360px;
  overflow: hidden;
}

.footprint-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.58;
  filter:
    drop-shadow(0 0 12px rgba(95, 246, 236, 0.08))
    drop-shadow(0 0 32px rgba(255, 255, 255, 0.03));
  mix-blend-mode: screen;
  user-select: none;
  pointer-events: none;
}

.footprint-markers {
  position: absolute;
  inset: 0;
}

.footprint-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(7px, 1.25vw, 12px);
  height: clamp(7px, 1.25vw, 12px);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  background: #6ff7ef;
  box-shadow:
    0 0 0 rgba(111, 247, 239, 0),
    0 0 0 rgba(255, 44, 164, 0);
}

.footprint-marker::before,
.footprint-marker::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(111, 247, 239, 0.28);
  opacity: 0;
  transform: scale(0.45);
}

.footprint-marker.is-lit {
  opacity: 0.88;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 0 10px rgba(111, 247, 239, 0.72),
    0 0 28px rgba(111, 247, 239, 0.24),
    0 0 46px rgba(255, 44, 164, 0.10);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    box-shadow 420ms ease;
}

.footprint-marker.is-current {
  animation: footprintCurrentPulse 780ms ease-out;
}

.footprint-marker.is-current::before {
  animation: footprintRing 900ms ease-out;
}

.footprint-marker.is-current::after {
  animation: footprintRing 900ms ease-out 110ms;
}

.footprint-readout {
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(95, 246, 236, 0.16);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 30px rgba(95, 246, 236, 0.045) inset;
  min-inline-size: min(100%, 320px);
}

.footprint-readout-label {
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(111, 247, 239, 0.82);
  font-weight: 800;
}

.footprint-readout strong {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.25em;
  max-width: 12ch;
  font-size: clamp(2rem, 6.2vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: #f4f8f8;
  text-shadow: 0 0 22px rgba(111, 247, 239, 0.16);
  transition: opacity 240ms ease, transform 240ms ease, text-shadow 260ms ease;
  text-wrap: balance;
}

.footprint-readout strong.is-switching {
  opacity: 0.42;
  transform: translateY(2px) scale(0.992);
}


@keyframes footprintCurrentPulse {
  0% { transform: translate(-50%, -50%) scale(0.5); }
  42% { transform: translate(-50%, -50%) scale(1.65); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes footprintRing {
  0% { opacity: 0.7; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(2.4); }
}

@media (min-width: 900px) {
  .footprint-console {
    grid-template-columns: minmax(420px, 0.9fr) minmax(330px, 0.62fr);
    align-items: center;
  }

  .footprint-map-stage {
    min-height: 560px;
  }

  .footprint-readout {
    align-self: center;
    min-height: 260px;
    align-content: center;
  }
}

@media (max-width: 640px) {
  .footprint-map-stage {
    min-height: 360px;
  }

  .footprint-readout {
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footprint-marker,
  .footprint-readout strong {
    transition: none !important;
    animation: none !important;
  }

  .footprint-marker.is-current,
  .footprint-marker.is-current::before,
  .footprint-marker.is-current::after {
    animation: none !important;
  }
}

/* REV 2.5 — tidy mobile footprint readout */
@media (max-width: 640px) {
  .footprint-console {
    gap: 18px;
  }

  .footprint-readout strong {
    min-height: 2.6em;
    font-size: clamp(1.9rem, 9vw, 3rem);
  }
}


/* REV 2.6 — desktop readout containment fix */
.footprint-readout {
  overflow: hidden;
  inline-size: 100%;
  box-sizing: border-box;
}

.footprint-readout strong {
  box-sizing: border-box;
  max-width: 100%;
  padding-inline: clamp(6px, 1.2vw, 14px);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

@media (min-width: 900px) {
  .footprint-readout strong {
    font-size: clamp(2.2rem, 3.45vw, 3.65rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }
}

@media (min-width: 1200px) {
  .footprint-readout {
    min-inline-size: 0;
  }

  .footprint-readout strong {
    font-size: clamp(2.35rem, 3vw, 3.45rem);
  }
}

@media (max-width: 899px) {
  .footprint-readout strong {
    max-width: 14ch;
  }
}


/* REV 2.8 — final footprint readout state */
.footprint-readout.is-final {
  border-color: rgba(95, 246, 236, 0.24);
  box-shadow:
    0 0 30px rgba(95, 246, 236, 0.07) inset,
    0 0 34px rgba(95, 246, 236, 0.045);
}

.footprint-readout.is-final strong {
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 18px rgba(111, 247, 239, 0.18),
    0 0 34px rgba(111, 247, 239, 0.06);
}

@media (max-width: 640px) {
  .footprint-readout.is-final strong {
    max-width: 16ch;
    font-size: clamp(1.9rem, 8vw, 2.75rem);
  }
}
