/* Shared night sky, local light sources and NeX pointing devices. */
@media (prefers-reduced-motion: no-preference) {
  html {scroll-behavior: smooth}
}
main {
  isolation: isolate;
  background-color: #101419;
}

.orbital-viewport {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: var(--far-stars, none), linear-gradient(160deg, #12171b, #101419 65%, #151b20);
  background-size: 960px 780px, 100% 100%;
  background-position: var(--star-x, 0px) var(--star-y, 0px), center;
}
.orbital-viewport .foreground {display:block;width:100%;height:100%;pointer-events:none}
main > section[data-sky] {
  isolation: isolate;
  position: relative;
  background: transparent;
}
main > section[data-sky]::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: var(--local-nebula, transparent);
}
main > section[data-sky]::before, .hero .space {
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
}
.hero[data-sky] {
  --local-nebula: radial-gradient(ellipse at 78% 46%, #79512839, transparent 51%),
    radial-gradient(ellipse at 23% 15%, #58717a36, transparent 57%);
}
.hero .space {opacity: .52}
[data-sky="pulsar"] {--local-nebula: radial-gradient(ellipse at 80% 18%, #71533228, transparent 57%)}
[data-sky="drift"] {--local-nebula: radial-gradient(ellipse at 76% 55%, #4e77852b, transparent 50%)}
.service-dust {
  position: absolute;
  z-index: -1;
  width: 155%;
  height: 138%;
  overflow: visible;
  pointer-events: none;
  --gather: 0;
}
.service-dust circle {
  opacity: var(--rest);
  transform: translate(calc(var(--dx) * var(--gather)), calc(var(--dy) * var(--gather)));
  transition: transform .64s cubic-bezier(.2,.75,.18,1), opacity .32s;
}
.services-spread li:has(:focus-visible, .playing) .service-dust {--gather: 1}
.services-spread li:has(:focus-visible, .playing) .service-dust circle {opacity: var(--lit)}
.services-spread li:has(:focus-visible, .playing) .service-orbit::before {opacity: 1}
@media (hover: hover) and (pointer: fine) {
  .services-spread li:hover .service-dust {--gather: 1}
  .services-spread li:hover .service-dust circle {opacity: var(--lit)}
  .services-spread li:hover .service-orbit::before {opacity: 1}
}
.proof[data-sky="dust-lane"] {
  color: #f4f1eb;
  overflow: clip;
  --local-nebula: radial-gradient(ellipse at 88% 75%, #41586d55, transparent 60%);
  min-height: 200px;
}
.proof[data-sky] small {color: #b9c7cd}
.proof[data-sky] a {color: #f0d39b}
@media (max-width: 600px) {
  .service-dust {width: 127%; height: 125%}
}
@media (prefers-reduced-motion: reduce) {
  .service-dust circle {transition: none; transform: none}
}
/* Native cursors keep an exact hotspot while scrolling, zooming or selecting text. */
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  html {cursor: url("assets/nex-cursor-flight.svg") 7 3, default}
  :is(p, h1, h2, h3, .proof strong, .service-output span) {cursor: text}
  a[href], button:enabled {cursor: url("assets/nex-cursor-target.svg") 11 3, pointer}
  a[href]:active, button:enabled:active {cursor: url("assets/nex-cursor-press.svg") 16 16, pointer}
}
