[data-hero-atmosphere] {
  isolation: isolate;
}

.hero-atmosphere { display: none; }

[data-hero-atmosphere] > .hero-atmosphere {
  position: absolute;
  display: block;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere__backdrop {
  position: absolute;
  inset: 0;
  /* Fade only the artwork into the shared page background. */
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 56%, transparent);
}

.hero-atmosphere__light {
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse at 50% 36%, #17477555, transparent 58%),
              radial-gradient(ellipse at 18% 75%, #205f8438, transparent 38%),
              radial-gradient(ellipse at 85% 68%, #244b803d, transparent 40%);
}

.hero-atmosphere__ribbon {
  position: absolute;
  inset: 62% -12% auto;
  height: 52%;
  border-radius: 50%;
  transform: rotate(-5deg);
  border-top: 1px solid #9edaff30;
  box-shadow: inset 0 12px 36px #5fa9e01a;
  mask-image: linear-gradient(90deg, transparent, black 18%, transparent 45%, transparent 55%, black 82%, transparent);
}

.hero-atmosphere__wing { display: none; }

@media (min-width: 1280px) {
  .hero-atmosphere__wing {
    position: absolute;
    top: 50%;
    display: grid;
    gap: .75rem;
    width: clamp(12rem, 18vw, 19rem);
    translate: 0 -50%;
  }

  .hero-atmosphere__wing--left { left: max(1.4rem, calc((100% - 108rem) / 2)); }
  .hero-atmosphere__wing--right { right: max(1.4rem, calc((100% - 108rem) / 2)); }

  .hero-atmosphere__panel {
    display: grid;
    gap: .45rem;
    padding: .9rem 1rem;
    border: 1px solid #89b8e740;
    border-radius: 1rem;
    background: linear-gradient(145deg, #122742, #091522);
    box-shadow: 0 16px 32px #02071047, inset 0 1px #d7ebff13;
    color: #e1eeff;
    font: 500 .875rem/1.2 system-ui, sans-serif;
  }

  .hero-atmosphere__wing--left .hero-atmosphere__panel + .hero-atmosphere__panel { margin-left: 1rem; }
  .hero-atmosphere__wing--right .hero-atmosphere__panel + .hero-atmosphere__panel { margin-right: 1rem; }
  .hero-atmosphere__panel strong { font-size: 1rem; }
  .hero-atmosphere__label { color: #a1c2e5; font-size: .75rem; font-weight: 650; }
  .hero-atmosphere__chart { width: 100%; height: clamp(2rem, 3vw, 3.25rem); }

  .hero-atmosphere__signal { display: grid; gap: .3rem; font-size: .75rem; color: #bbcee4; }
  .hero-atmosphere__signal i {
    height: .25rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, #3195eb, #69c8ff 65%, #243750 65%);
  }
  .hero-atmosphere__signal + .hero-atmosphere__signal i {
    background: linear-gradient(90deg, #3195eb, #69c8ff 82%, #243750 82%);
  }

  .hero-atmosphere__nodes,
  .hero-atmosphere__systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding-top: .15rem; }

  .hero-atmosphere__nodes span,
  .hero-atmosphere__systems span {
    padding: .37rem .2rem;
    text-align: center;
    font-size: .75rem;
    color: #c0dbf7;
    background: #0a1627;
    border: 1px solid #416285;
    border-radius: .4rem;
  }

  .hero-atmosphere__nodes span:nth-child(2) { border-color: #54ade9; background: #123252; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-atmosphere__light { animation: hero-atmosphere-drift 20s ease-in-out infinite alternate paused; }
  .hero-atmosphere__wing { animation: hero-atmosphere-drift 12s ease-in-out infinite alternate paused; }
  .hero-atmosphere.is-in-view .hero-atmosphere__light,
  .hero-atmosphere.is-in-view .hero-atmosphere__wing { animation-play-state: running; }
}

@keyframes hero-atmosphere-drift {
  from { transform: translate3d(0, -3px, 0); }
  to { transform: translate3d(0, 3px, 0); }
}
