/* ═══════════════════════════════════════════════════════════════
   EARTH OBSERVATION HERO — CSS
   Three.js mount, static fallback, tooltip, carousel, and HUD.
   ═══════════════════════════════════════════════════════════════ */

/* Mount point fills the entire hero section */
.neural-globe-mount {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: none;
  background:radial-gradient(circle at 70% 47%,rgba(10,51,76,.24),transparent 39%);
}
.neural-globe-mount::before {
  content:'';
  position:absolute;
  width:min(58vw,760px);
  aspect-ratio:1;
  top:50%;left:72%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background-image:linear-gradient(110deg,rgba(0,5,15,.22),rgba(0,5,15,.7)),url('earth-atmos-2048.jpg');
  background-size:cover,190% 100%;
  background-position:center,23% center;
  box-shadow:inset -55px -15px 80px rgba(0,4,15,.95),inset 12px 4px 30px rgba(62,160,210,.35),0 0 38px rgba(26,125,181,.25);
  opacity:.8;
}
.neural-globe-mount.globe-ready::before { opacity:0; }
.neural-globe-mount.globe-fallback canvas { display:none; }
.neural-globe-mount.globe-fallback::before { opacity:.85; }
.neural-globe-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.neural-globe-mount:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

/* ── Tooltip ── */
.globe-tip {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px));
  white-space: nowrap;
  background: rgba(2, 17, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--b-hi);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  font-family: var(--ui);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.08);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.globe-tip.on { opacity: 1; }
.globe-tip b {
  display: block;
  font-size: 0.78rem;
  color: var(--white);
  font-weight: 700;
}
.globe-tip span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--bright);
}

/* ── Service dot navigation ── */
.globe-dots {
  position: absolute;
  z-index: 25;
  right: 8%;
  bottom: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.globe-dots-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  background: rgba(2, 17, 31, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--b-hi);
  border-radius: var(--pill);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.globe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(158, 217, 238, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  position: relative;
}
.globe-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  /* invisible hit area */
}
.globe-dot:hover {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.5);
  transform: scale(1.3);
}
.globe-dot.active {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6), 0 0 4px rgba(0, 212, 255, 0.3);
}
.globe-dot.active:hover {
  background: var(--bright);
  box-shadow: 0 0 14px rgba(180, 215, 240, 0.6);
}
.globe-dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.globe-nav-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--b-mid);
  background: transparent;
  color: var(--ice);
  font: 600 1rem var(--ui);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.globe-nav-arrow:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.globe-nav-arrow:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.globe-dots-label {
  text-align: center;
  text-decoration: none;
  display: block;
}
.globe-dots-label b {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--bright);
  transition: color 0.25s ease;
}
.globe-dots-label span {
  display: block;
  font-family: var(--ui);
  font-size: 0.52rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t-dim);
  margin-top: 0.15rem;
}
.globe-dots-label:hover b {
  color: var(--cyan);
}
.globe-dots-label:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── HUD overlay ── */
.neural-hud {
  position: absolute;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--t-dim);
  pointer-events: none;
}
.neural-hud-top {
  top: 8rem;
  right: 7%;
}
.neural-hud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}
.neural-hud-status {
  color: var(--cyan);
}
.globe-active-label {
  position:absolute;
  z-index:5;
  display:flex;
  flex-direction:column;
  gap:.18rem;
  padding:.45rem .75rem;
  border-left:1px solid rgba(158,217,238,.8);
  background:linear-gradient(90deg,rgba(1,12,26,.8),rgba(1,12,26,.25));
  color:var(--ice);
  font:600 .72rem var(--mono);
  text-decoration:none;
  white-space:nowrap;
  transform:translate(16px,-50%);
  opacity:0;
  transition:opacity .25s ease;
}
.globe-active-label.on { opacity:1; }
.globe-active-label.to-left { transform:translate(calc(-100% - 16px),-50%); }
.globe-active-label small { color:var(--cyan);font-size:.56rem;letter-spacing:2px; }
.globe-active-label:focus-visible { outline:2px solid var(--cyan);outline-offset:3px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .neural-globe-mount::before { width:min(75vw,640px);left:50%;top:35%;opacity:.48; }
  .globe-dots {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8rem;
  }
  .neural-hud-top {
    top: 5.5rem;
    right: 3%;
  }
}
@media (max-width: 768px) {
  .neural-globe-mount::before { width:92vw;top:34%;opacity:.32; }
  .neural-hud,
  .globe-active-label {
    display: none;
  }
  .globe-dots {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8.4rem;
  }
  .globe-dot { width:10px;height:10px; }
  .globe-dot.active { width:12px;height:12px; }
  .globe-nav-arrow { width:36px;height:36px;font-size:1.2rem; }
  .globe-dots-label b { font-size:.68rem; }
}
