.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.hero > .hero-layout,
.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero > .hero-atmosphere {
  position: absolute;
  inset: -35px 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-atmosphere .hero-orbit {
  position: absolute;
  border: 1px solid rgba(35, 75, 103, 0.2);
  border-radius: 50%;
  transform: rotate(var(--orbit-tilt, 0deg));
  animation: sentinel-orbit-drift var(--orbit-period, 24s) ease-in-out infinite alternate;
  animation-play-state: paused;
}

.hero-atmosphere .orbit-one {
  width: clamp(440px, 62vw, 980px);
  height: clamp(340px, 48vw, 730px);
  top: -33%;
  right: 22%;
  --orbit-tilt: -28deg;
  --orbit-period: 24s;
  --orbit-turn: 6deg;
  --orbit-x: -24px;
  --orbit-y: 28px;
}

.hero-atmosphere .orbit-two {
  width: clamp(390px, 51vw, 760px);
  height: clamp(290px, 35vw, 560px);
  right: 27%;
  bottom: -42%;
  border-color: rgba(189, 97, 48, 0.23);
  --orbit-tilt: 22deg;
  --orbit-period: 22s;
  --orbit-turn: -5deg;
  --orbit-x: 21px;
  --orbit-y: -24px;
  animation-delay: -7s;
}

.hero-atmosphere .orbit-three {
  width: clamp(300px, 45vw, 670px);
  height: clamp(240px, 30vw, 450px);
  left: -18%;
  bottom: -38%;
  border-color: rgba(35, 75, 103, 0.14);
  --orbit-tilt: -13deg;
  --orbit-period: 26s;
  --orbit-turn: 4deg;
  --orbit-x: 22px;
  --orbit-y: -18px;
  animation-delay: -11s;
}

.hero-atmosphere .orbit-one::after,
.hero-atmosphere .orbit-two::after {
  content: '';
  position: absolute;
  top: 15.3%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(183, 88, 43, 0.65);
  box-shadow: 0 0 0 5px rgba(183, 88, 43, 0.07);
  transform: translate(-50%, -50%);
}

.hero-atmosphere .orbit-one::after { left: 14%; }
.hero-atmosphere .orbit-two::after { left: 86%; }

.hero-atmosphere .hero-glow {
  position: absolute;
  width: clamp(300px, 40vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(35px);
  animation: sentinel-glow-drift var(--glow-period, 24s) ease-in-out infinite alternate;
  animation-play-state: paused;
}

.hero-atmosphere .glow-one {
  top: -20%;
  right: 38%;
  background: radial-gradient(circle, rgba(45, 92, 125, 0.11), rgba(45, 92, 125, 0) 67%);
  --glow-period: 24s;
  --glow-x: -24px;
  --glow-y: 25px;
}

.hero-atmosphere .glow-two {
  right: 36%;
  bottom: -46%;
  background: radial-gradient(circle, rgba(203, 114, 62, 0.13), rgba(203, 114, 62, 0) 66%);
  --glow-period: 22s;
  --glow-x: 26px;
  --glow-y: -19px;
  animation-delay: -6s;
}

.hero-atmosphere.is-ambient-active .hero-orbit,
.hero-atmosphere.is-ambient-active .hero-glow {
  animation-play-state: running;
}

.reading-progress {
  position: fixed;
  top: var(--reading-progress-top, 0px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 45;
  background: linear-gradient(90deg, #254a67, #b85a2d);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
}

.site-header > .reading-progress {
  position: absolute;
  top: auto;
  bottom: 0;
}

.reading-progress.is-reading-active {
  opacity: 0.8;
}

@keyframes sentinel-orbit-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(var(--orbit-tilt, 0deg));
  }
  to {
    transform: translate3d(var(--orbit-x, 16px), var(--orbit-y, -16px), 0) rotate(calc(var(--orbit-tilt, 0deg) + var(--orbit-turn, 4deg)));
  }
}

@keyframes sentinel-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(var(--glow-x, 18px), var(--glow-y, -14px), 0) scale(1.06); }
}

@media (max-width: 720px) {
  .hero-atmosphere .orbit-one { top: -8%; right: -46%; }
  .hero-atmosphere .orbit-two { bottom: -15%; right: -46%; }
  .hero-atmosphere .orbit-three { left: -62%; bottom: -13%; }
  .hero-atmosphere .glow-one { top: -10%; right: -20%; }
  .hero-atmosphere .glow-two { bottom: -15%; right: -10%; }
}

html.sentinel-motion-reduced .hero-atmosphere .hero-orbit,
html.sentinel-motion-reduced .hero-atmosphere .hero-glow {
  animation: none;
}

html.sentinel-motion-reduced .hero-atmosphere,
html.sentinel-motion-reduced .reading-progress {
  transform: none;
}

html.sentinel-motion-reduced .reading-progress {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere .hero-orbit,
  .hero-atmosphere .hero-glow { animation: none; }
  .hero > .hero-atmosphere { transform: none !important; }
  .reading-progress { opacity: 0 !important; }
}

@media print {
  .hero-atmosphere,
  .reading-progress { display: none; }
}
