/* Upper-left rings and a grid that runs to the bottom of the page. */
body {
  position: relative;
}

.page-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.atmosphere-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(42, 157, 143, 0.45);
}

.orbit-a {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  top: 8%;
  left: 50%;
  translate: -50% 0;
  animation: orbit-drift 18s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite alternate;
}

.orbit-b {
  width: min(90vw, 680px);
  height: min(90vw, 680px);
  top: 2%;
  left: 50%;
  translate: -50% 0;
  border-color: rgba(38, 70, 83, 0.28);
  box-shadow: 0 0 0 1px rgba(232, 244, 242, 0.28);
  animation: orbit-drift 24s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite alternate-reverse;
}

.page-grid {
  position: absolute;
  top: 35vh;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(38, 70, 83, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 70, 83, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(232, 244, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 242, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
  mask-image: linear-gradient(180deg, transparent, #000 22vh);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22vh);
}

@keyframes orbit-drift {
  from { transform: translate(-50%, 0) scale(1); }
  to { transform: translate(-50%, 12px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-a,
  .orbit-b {
    animation: none !important;
    translate: -100% 0;
  }
}
