/* Glass orbits: the approved image is split across the quiet centre into two
   independently moving planes. Text stays in the original document flow. */
.home-page .hero {
  background: #f1f9fb;
}

.home-page .hero::after {
  z-index: 2;
  background: radial-gradient(ellipse 33% 44% at 50% 44%, rgba(245, 251, 252, .3), transparent 100%);
}

.hero-orbits {
  --orbit-x: 0px;
  --orbit-y: 0px;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 65%, #e8f8f8, #f3faff 70%);
}

.hero-orbit-plane {
  position: absolute;
  inset: -24px;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.hero-orbit-plane--left {
  mask-image: linear-gradient(90deg, #000 30%, transparent 62%);
  transform: translate3d(var(--orbit-x), var(--orbit-y), 0);
}

.hero-orbit-plane--right {
  mask-image: linear-gradient(90deg, transparent 38%, #000 70%);
  transform: translate3d(calc(var(--orbit-x) * -.7), calc(var(--orbit-y) * -.7), 0);
}

.hero-orbit-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: orbit-drift-left 24s ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: 14% 65%;
}

.hero-orbit-plane--right .hero-orbit-art {
  transform-origin: 92% 60%;
  animation-name: orbit-drift-right;
  animation-duration: 29s;
}

.hero-orbit-light {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.4) 43%, transparent 55%);
  mix-blend-mode: soft-light;
  animation: orbit-light 18s ease-in-out infinite;
  animation-play-state: paused;
}

.hero-orbits.is-playing .hero-orbit-art,
.hero-orbits.is-playing .hero-orbit-light {
  animation-play-state: running;
}

.hero-motion-toggle {
  position: absolute;
  z-index: 4;
  right: max(24px, env(safe-area-inset-right));
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(5,43,66,.12);
  border-radius: 50%;
  background: rgba(249,253,255,.7);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease;
}

.hero-motion-toggle:hover { background: #fff; }
.hero-motion-toggle[hidden],
.hero-motion-play,
.hero-motion-toggle.is-paused .hero-motion-pause { display: none; }
.hero-motion-toggle.is-paused .hero-motion-play { display: block; }

@keyframes orbit-drift-left {
  0%, 100% { transform: translate3d(-5px, 7px, 0) rotate(-.7deg) scale(1.015); }
  50% { transform: translate3d(9px, -12px, 0) rotate(1.1deg) scale(1.04); }
}

@keyframes orbit-drift-right {
  0%, 100% { transform: translate3d(6px, -7px, 0) rotate(.8deg) scale(1.03); }
  50% { transform: translate3d(-10px, 13px, 0) rotate(-1.2deg) scale(1.015); }
}

@keyframes orbit-light {
  0%, 100% { transform: translate3d(-12%, -4%, 0); opacity: .25; }
  50% { transform: translate3d(14%, 5%, 0); opacity: .65; }
}

@media (max-width: 860px) {
  .hero-orbit-plane--left { mask-image: linear-gradient(90deg, #000, transparent 43%); }
  .hero-orbit-plane--right { mask-image: linear-gradient(90deg, transparent 57%, #000); }
  .hero-orbit-plane--left .hero-orbit-art { object-position: 18% center; }
  .hero-orbit-plane--right .hero-orbit-art { object-position: 82% center; }
  .home-page .hero::after {
    background: radial-gradient(ellipse 58% 55% at 50% 38%, rgba(245,251,252,.65), transparent);
  }
  .home-page .hero { padding-bottom: 80px; }
  .hero-motion-toggle { right: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit-art, .hero-orbit-light { animation: none; }
  .hero-orbit-plane { transform: none; transition: none; }
  .hero-orbit-light, .hero-motion-toggle { display: none; }
}
