.hero__earth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.hero.webgl-on .hero__scene { opacity: 0; transition: opacity 0.6s ease; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(62% 48% at 50% 60%, rgba(3, 5, 12, 0.78), rgba(3, 5, 12, 0.38) 46%, transparent 72%),
    linear-gradient(180deg, rgba(3, 5, 12, 0.45), transparent 22%, transparent 70%, rgba(3, 5, 12, 0.55));
}

.hero__geo {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 4vh, 2rem);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(94vw, 600px);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-align: center;
}
.hero__geo[hidden] { display: none; }
.hero__geo .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(55, 211, 153, 0.7);
}
.hero__geo .geo-msg strong { color: var(--color-text); }
.hero__geo .geo-actions { display: inline-flex; gap: 0.5rem; align-items: center; }
.hero__geo button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  border: 1px solid transparent;
}
.hero__geo .geo-allow {
  background: linear-gradient(180deg, rgba(55, 211, 153, 0.25), rgba(13, 51, 36, 0.4));
  border-color: rgba(55, 211, 153, 0.5);
  color: #d8ffee;
}
.hero__geo .geo-allow:hover { background: rgba(55, 211, 153, 0.35); }
.hero__geo .geo-deny {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text-muted);
}
.hero__geo .geo-deny:hover { color: var(--color-text); border-color: var(--color-accent); }
.hero__geo a { color: var(--color-accent-bright); }

.hero__geo--status { gap: 0.5rem; }
.hero__geo--status .geo-manage {
  background: none; border: none; padding: 0;
  color: var(--color-accent-bright); text-decoration: underline;
}

.hero__earth-fallback {
  display: none;
}
.hero.webgl-off .hero__geo { display: none; }

@media (max-width: 680px) {
  .hero__geo { font-size: 11px; padding: 0.45rem 0.7rem; gap: 0.45rem; }
}

.hero__hotspot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  will-change: transform;
  transition: opacity 0.35s var(--ease);
}
.hero__hotspot.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.hero__hotspot:focus-visible { outline: 2px solid #bcd3ff; outline-offset: 2px; box-shadow: 0 0 22px rgba(110, 163, 255, 0.8); }

.hero__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: max-content;
  max-width: 250px;
  pointer-events: none;
  will-change: transform;
}
.hero__tip-card {
  position: relative;
  display: grid;
  gap: 0.18rem;
  margin: -1.4rem 0 0 1.6rem;
  padding: 0.75rem 0.95rem;
  text-align: left;
  background: linear-gradient(180deg, rgba(14, 24, 52, 0.92), rgba(7, 12, 28, 0.94));
  border: 1px solid rgba(130, 175, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.85), 0 0 30px -10px rgba(79, 140, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(-8px) scale(0.94);
  transform-origin: 0 50%;
  transition: opacity 0.28s var(--ease), transform 0.38s var(--ease);
}
.hero__tip-card::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 1.4rem;
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 195, 255, 0.9));
}
.hero__tip-kicker { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8fb4ff; }
.hero__tip-card strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--color-text); }
.hero__tip-card span:last-child { font-size: 0.78rem; line-height: 1.4; color: #aebde0; }
.hero__tip.is-open .hero__tip-card { opacity: 1; transform: none; }
.hero__tip.is-flipped .hero__tip-card { margin: -1.4rem 1.6rem 0 0; transform-origin: 100% 50%; translate: calc(-100% - 1.6rem) 0; }
.hero__tip.is-flipped .hero__tip-card::before { left: auto; right: -1.6rem; background: linear-gradient(270deg, transparent, rgba(150, 195, 255, 0.9)); }

@media (prefers-reduced-motion: reduce) {
  .hero__tip-card, .hero__hotspot { transition: none; }
}

@supports (overflow: clip) {
  .hero, .archive, .lab { overflow: clip; }
}
