/* A single scene, behind the unchanged 1.7.3 site. */
#wj-interactive-earth {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 600ms ease-out;
}
.wj-earth-ready #wj-interactive-earth { opacity: 1; }
.wj-earth-ready [data-video-cosmos] { visibility: hidden; }
.wj-earth-stage {
  position: absolute;
  left: 79%;
  top: 53%;
  width: min(66vw, 90vh, 850px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: transform;
}
.wj-earth-stage canvas { display: block; width: 100%; height: 100%; }
/* Neutral scrim keeps the existing headline clear of the moving geography. */
.wj-earth-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #04070a 6%, rgba(4,7,10,.98) 27%, rgba(4,7,10,.65) 43%, rgba(4,7,10,0) 70%);
}
.wj-earth-control {
  position: absolute;
  z-index: 3;
  top: 142px;
  right: 1%;
  width: 31%;
  height: min(61vh, 580px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.wj-earth-control:active, .wj-earth-control.is-dragging { cursor: grabbing; }
.wj-earth-control:focus-visible { outline: 2px solid #8eb0ec; outline-offset: 6px; }
.wj-earth-ready .wj-video-toggle { display: grid; }
.wj-earth-ready .wj-video-toggle[hidden] { display: none; }
@media (max-width: 920px) {
  .wj-earth-stage { left: 82%; top: 47%; width: min(106vw, 88vh); }
  .wj-earth-control { right: 0; width: 23%; }
  .wj-earth-scrim { background: linear-gradient(90deg, #04070a 8%, rgba(4,7,10,.94) 34%, rgba(4,7,10,.65) 54%, rgba(4,7,10,0) 86%); }
}
@media (max-width: 700px) {
  .wj-earth-stage { left: 75%; top: 39%; width: 135vw; }
  .wj-earth-scrim { background: linear-gradient(90deg, rgba(4,7,10,.95), rgba(4,7,10,.68) 50%, rgba(4,7,10,.22)); }
  .wj-earth-control { display: none; }
  .wj-earth-ready .wj-home-hero { touch-action: pan-y pinch-zoom; }
  .wj-earth-ready .wj-video-toggle { bottom: max(80px, calc(env(safe-area-inset-bottom) + 74px)); }
}
@media (prefers-reduced-motion: reduce) {
  #wj-interactive-earth { transition: none; }
  .wj-earth-stage { will-change: auto; }
}
@media print { #wj-interactive-earth, .wj-earth-control { display: none; } }
