.hero-globe {
  display: grid;
  justify-items: center;
  min-width: 0;
  margin: 0;
}

.globe-stage {
  position: relative;
  width: min(100%, 39rem);
  aspect-ratio: 560 / 440;
}

.globe-stage :is(img, canvas) {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.globe-stage canvas,
.hero-globe[data-animated] img,
.globe-stage:has(.globe-static) picture,
.hero-globe[data-static] picture { visibility: hidden; }
.hero-globe[data-animated] canvas { visibility: visible; }
.hero-globe[data-static]:not([data-animated]) .globe-stage {
  background: center / contain no-repeat url("/images/home-globe.webp");
}

.globe-location {
  position: absolute;
  top: max(3.1rem, var(--globe-label-y, 26.17%));
  left: clamp(5.1rem, var(--globe-label-x, 45.29%), calc(100% - 5.1rem));
  display: grid;
  justify-items: center;
  gap: .12rem;
  padding: clamp(.22rem, .06rem + .8vw, .42rem) .68rem;
  transform: translate(-50%, calc(-100% - .48rem));
  border: 1px solid #aac3df55;
  border-radius: .45rem;
  color: var(--paper);
  background: #111e31f5;
  box-shadow: 0 .35rem .9rem #050d1c66;
  font: 650 clamp(.8rem, .733rem + .25vw, 1rem)/1.3 var(--display);
  white-space: nowrap;
  pointer-events: none;
}

.globe-location-role { color: var(--light-text); font: 500 clamp(.64rem, .58rem + .2vw, .76rem)/1.3 var(--text); }
.globe-location-country::before {
  display: inline-block;
  width: .35em;
  margin: 0 .46em .17em .28em;
  border-radius: 50%;
  aspect-ratio: 1;
  background: var(--globe-location-color, var(--coral));
  content: "";
}

@media (prefers-reduced-motion: reduce) {
  .hero-globe[data-animated] img { visibility: visible; }
  .hero-globe[data-animated] canvas { visibility: hidden; }
}
