.spatial-nav {
  --globe-width: min(67vh, 38rem);
  --globe-width: clamp(22rem, 67svh, 38rem);
  grid-area: map;
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  max-width: 43rem;
  justify-self: center;
  align-self: start;
}
.spatial-nav__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  border-bottom: 1px solid #adcbe241;
  padding-bottom: .65rem;
  color: #e6efff;
  font-size: .9375rem;
  font-weight: 650;
}
.spatial-nav__heading > span:first-child { display: flex; align-items: center; gap: .55rem; }
.spatial-nav__heading > span:first-child::before { content: ''; width: .52rem; height: .52rem; transform: rotate(45deg); border: 1px solid #9fe8f4; background: #60b9df38; }
.spatial-nav__heading [data-globe-hint] { color: #d5e5fc; font-size: var(--studio-label); font-weight: 600; }
.globe-stage {
  position: relative;
  width: min(100%, var(--globe-width));
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  outline-offset: -1rem;
  user-select: none;
}
.globe-stage::before {
  position: absolute;
  inset: -3%;
  background: radial-gradient(ellipse 49% 47% at 50% 47%, #071529cb 24%, #0b1a30a1 60%, #1a4c744a 83%, transparent 100%);
  content: '';
  pointer-events: none;
}
.globe-stage::after { position: absolute; inset: auto 12% 1%; height: 14%; border-radius: 50%; background: radial-gradient(ellipse, #4aa5dc3d, #102a541c 52%, transparent 71%); content: ''; pointer-events: none; }
.globe-canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.globe-fallback { position: absolute; inset: 12% 11% 15%; display: grid; place-items: center; border: 1px solid #b5eeffa6; border-radius: 50%; background: radial-gradient(circle at 27% 21%,#4a8fa686,#193a5aa1 50%,#091a32d9 73%,#5ea6d586); box-shadow: inset 0 0 1.15rem #7ac7ed44; pointer-events: none; }
.globe-fallback > span { position: absolute; inset: 12%; border: 1px solid #a1bde73e; border-radius: 50%; transform: rotateY(65deg) rotateX(15deg); }
.globe-fallback > span:nth-child(2) { transform: rotateX(65deg) rotateY(-15deg); }
.globe-fallback img { width: 72px; height: 72px; opacity: .15; }
.globe-hotspots { position: absolute; z-index: 2; inset: 0; display: flex; align-content: center; justify-content: center; flex-wrap: wrap; gap: .35rem; padding: 2.25rem 1rem; }
.globe-hotspot { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .35rem .65rem; border: 1px solid #91a9cf70; border-radius: 4px; background: #142445; color: #f0f5ff; font-size: .875rem; font-weight: 650; text-decoration: none; }
.globe-hotspot__dot { display: block; flex: 0 0 6px; width: 6px; height: 6px; transform: rotate(45deg); background: #bdeefc; }
.globe-hotspot:hover { color: var(--accent); }
[data-globe].is-enhanced .globe-stage { touch-action: pan-y; cursor: grab; }
[data-globe].is-dragging .globe-stage { cursor: grabbing; }
[data-globe].is-enhanced .globe-canvas { opacity: 1; }
[data-globe].is-enhanced .globe-fallback { display: none; }
[data-globe].is-enhanced .globe-hotspots { display: block; padding: 0; pointer-events: none; }
[data-globe].is-enhanced .globe-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
[data-globe].is-enhanced .globe-hotspot__dot { opacity: 0; }
[data-globe].is-enhanced .globe-hotspot__label {
  position: absolute;
  top: 50%;
  left: 33px;
  transform: translateY(-50%);
  padding: .05rem .42rem;
  border: 1px solid #6099b961;
  border-radius: .3rem;
  background: #0c2035;
  color: #e8f1ff;
  font-size: .8125rem;
  line-height: 1.55;
  white-space: nowrap;
}
[data-globe].is-enhanced .globe-hotspot__label::before { position: absolute; right: 100%; top: 50%; width: .4rem; height: 1px; background: #9ad7e989; content: ''; }
[data-globe].is-enhanced .globe-hotspot[data-side='left'] .globe-hotspot__label { left: auto; right: 33px; }
[data-globe].is-enhanced .globe-hotspot[data-side='left'] .globe-hotspot__label::before { right: auto; left: 100%; }
[data-globe].is-enhanced .globe-hotspot.is-back .globe-hotspot__label { visibility: hidden; }
[data-globe].is-enhanced .globe-hotspot.is-near .globe-hotspot__label { border-color: #86c7df80; }
[data-globe].is-enhanced .globe-hotspot.is-focused .globe-hotspot__label { border-color: #aae8f4; background: #dff5fc; color: #13283b; }
[data-globe][data-reading] .globe-hotspot.is-focused .globe-hotspot__label { border-color: #efcc99; background: #f9e3c1; color: #302113; }
[data-globe].is-enhanced .globe-hotspot:focus-visible { outline: 2px solid #c5dbff; outline-offset: -5px; }

.globe-controls { display: flex; width: max-content; align-items: center; gap: .15rem; margin: .05rem 0 0 auto; padding: .18rem; border: 1px solid #9cb9e24d; border-radius: 2rem; background: #111b29ed; box-shadow: 0 5px 18px #030c1b6e; }
.globe-controls:not(:has(button:not([hidden]))) { display: none; }
.globe-step-controls { display: flex; align-items: center; }
.globe-step-controls::after { width: 1px; height: 1rem; margin: 0 .22rem; background: #9cb9e255; content: ''; }
.globe-controls button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d5e4f8; }
.globe-controls button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.globe-controls button:hover:not(:disabled), .globe-controls button:focus-visible { background: #294664; color: #fff; }
.globe-controls button[aria-pressed='true'] { background: #294565; color: #e3eeff; }
.globe-controls button:disabled { color: #a9bcd5; }
.motion-toggle[aria-pressed='false'] .motion-toggle__play,
.motion-toggle[aria-pressed='true'] .motion-toggle__pause { display: none; }

.globe-preview-dock { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); max-width: 32rem; min-width: 0; block-size: 8.75rem; margin-top: clamp(1.15rem,2.7vh,1.7rem); }
.globe-preview-dock > * { grid-area: 1 / 1; }
.globe-idle { display: none; align-items: center; gap: .6rem; align-self: start; padding: .7rem 0; border-top: 1px solid #80adc453; color: #c3d4e8; font-size: var(--caption); }
.globe-idle::before { width: .4rem; height: .4rem; border: 1px solid #a1caff; transform: rotate(45deg); content: ''; }
[data-globe].is-enhanced .globe-idle { display: flex; }
[data-globe][data-preview='visible'] .globe-idle { visibility: hidden; }
.globe-preview { position: relative; min-width: 0; border: 1px solid #89b2c862; border-radius: .72rem; background: #151e2b; color: var(--paper); }
.globe-preview-dock .globe-preview { display: grid; grid-template: minmax(0,1fr) / minmax(0,1.05fr) minmax(0,1fr); align-items: stretch; overflow: hidden; transition: opacity var(--motion-fast), visibility var(--motion-fast); }
[data-globe][data-reading] .globe-preview-dock .globe-preview { border-color: #d0a573; }
[data-globe][data-preview='hidden'] .globe-preview { opacity: 0; visibility: hidden; pointer-events: none; }
.globe-preview__copy { min-width: 0; }
.globe-preview-dock .globe-preview__copy { display: grid; align-content: center; gap: .2rem; padding: .55rem .65rem .5rem .75rem; }
.globe-preview-dock .globe-preview__eyebrow { padding-inline-end: 1.35rem; }
.globe-preview__eyebrow { color: #afcce4; font-size: .72rem; font-weight: 730; line-height: 1.2; }
.globe-preview__title { color: var(--paper); font-size: clamp(.88rem,1.15vw,1.07rem); font-weight: 730; line-height: 1.2; letter-spacing: -.018em; }
.globe-preview__description { color: #d1dfed; font-size: var(--text-ui); line-height: 1.45; }
.globe-preview-dock .globe-preview__description { font-size: .78rem; line-height: 1.35; }
.globe-preview-dock .globe-preview__copy:has(.globe-preview__open:not([hidden])) [data-globe-explore] { display: none; }
.globe-preview-dock [data-globe-explore] { justify-self: start; min-height: 44px; padding: .38rem; font-size: var(--label); }
.globe-preview__open { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem 0; border: 0; background: transparent; color: #b7edfa; font-size: var(--label); font-weight: 760; text-align: start; }
.globe-preview__open::before { position: absolute; inset: 0; border-radius: inherit; content: ''; }
.globe-preview__open:hover { color: #fff; text-decoration: underline; }
.globe-preview:has(.globe-preview__open:focus-visible) { outline: 2px solid #b3eaff; outline-offset: 3px; }
.globe-inline-close { position: absolute; z-index: 1; inset: 0 0 auto auto; display: grid; width: 44px; height: 44px; align-items: start; justify-items: end; padding: .15rem .45rem; border: 0; border-radius: .3rem; background: transparent; color: #e1e9f6; font-size: 1.2rem; }
.globe-inline-close:hover { background: #2b4058; }
.globe-scenes { min-width: 0; min-height: 0; }
.globe-scene { position: relative; display: grid; isolation: isolate; overflow: hidden; margin: 0; background: linear-gradient(135deg,#2a3d50,#162232); }
.globe-scene img { display: block; width: 100%; height: 100%; object-fit: cover; color: #edf4ff; font-size: var(--caption); }
.globe-preview-dock .globe-scenes, .globe-preview-dock .globe-scene { height: 100%; }
.globe-preview-dock .globe-scene { border-radius: .52rem 0 0 .52rem; }
.globe-preview-dock .globe-scene img { position: absolute; inset: 0; object-fit: contain; background: #0e1724; }
.globe-preview-dock .globe-scene figcaption { display: none; }

.globe-dialog { width: min(40rem, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #a7b4d06b; border-radius: 1rem; background: #141e2b; color: var(--paper); box-shadow: 0 22px 80px #0009; }
.globe-dialog::backdrop { background: #0b0c106b; touch-action: none; }
.globe-dialog[open] { animation: globe-dialog-in var(--motion-normal) var(--ease-out); }
@keyframes globe-dialog-in { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.globe-dialog__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .35rem .9rem; border-bottom: 1px solid var(--rule); background: #162231; color: var(--muted); font-size: var(--caption); }
.globe-dialog__bar > span { display: flex; align-items: center; gap: .7rem; }
.globe-dialog__index { padding-inline-start: .7rem; border-inline-start: 1px solid #89b2c85e; color: #a4e0ed; font: var(--label) var(--font-technical); }
.globe-dialog__bar button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--studio-raised); color: var(--paper); font-size: 1.5rem; }
.globe-dialog__bar button:hover { background: var(--studio-hover); }
.globe-dialog .globe-preview { display: grid; gap: 1rem; padding: clamp(.8rem,2.2vw,1.15rem); border: 0; border-radius: 0; }
.globe-dialog :is(.globe-inline-close,.globe-preview__open) { display: none; }
.globe-dialog .globe-preview__copy { display: grid; justify-items: start; gap: .36rem; }
.globe-dialog .globe-preview__title { font-size: clamp(1.38rem,3vw,2rem); }
.globe-dialog [data-globe-explore] { margin-top: .3rem; }
.globe-dialog .globe-scene { border-radius: .48rem; background: #0e1724; }
.globe-dialog .globe-scene img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.globe-dialog .globe-scene figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; padding: .6rem .75rem; color: #fff; font-size: .9rem; font-weight: 760; line-height: 1.25; }
.globe-dialog .globe-scene figcaption span { color: #e3eafa; font-size: var(--label); font-weight: 650; }
.globe-scene:not([hidden]) img { animation: globe-photo-in var(--motion-normal) var(--ease-out); }
@keyframes globe-photo-in { from { opacity: .5; } to { opacity: 1; } }
.globe-arrival { animation: globe-arrival 900ms var(--ease-out); }
@keyframes globe-arrival { from { box-shadow: inset 0 0 0 2px #6a9aff; } to { box-shadow: inset 0 0 0 2px transparent; } }

@media (min-width: 60.01rem) {
  .spatial-nav__heading { position: absolute; z-index: 3; inset: .15rem 0 auto; padding-bottom: 0; border: 0; pointer-events: none; }
  .globe-dialog { width: min(40rem,46%); margin-inline: auto var(--gutter); }
}
@media (max-width: 60rem) {
  .spatial-nav { --globe-width: 27rem; }
}
@media (max-width: 44rem) {
  .spatial-nav { --globe-width: 21rem; }
  .globe-preview-dock { block-size: 8.45rem; }
  .globe-preview-dock .globe-preview { grid-template-columns: minmax(0,1fr) minmax(0,1.06fr); }
  .globe-preview-dock .globe-preview__copy { padding-inline: .55rem; }
  .globe-preview-dock .globe-preview__eyebrow { font-size: .69rem; }
  .globe-dialog { margin: auto 0 0; width: 100%; max-height: calc(100dvh - 1rem); border-radius: 1rem 1rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) {
  .globe-arrival, .globe-dialog[open] { animation: none; }
}
