/* OrbitStars — decorative ellipse around the contact form.
   Motion engine is OrbitImages (Dominik Koch / React Bits), redrawn with SVG marks.
   The form stays in normal flow, above this layer, and receives every click. */

#contact {
  position: relative;
  isolation: isolate;
}

#contact > :not(.orbit-frame) {
  position: relative;
  z-index: 1;
}

.orbit-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.orbit-stars,
.orbit-stars * {
  pointer-events: none !important;
}

.orbit-stars {
  position: absolute;
  margin: 0;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.orbit-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  visibility: hidden;
}

.orbit-item {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}

.orbit-stars[data-intro] .orbit-item {
  opacity: 0;
}

.orbit-item-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(var(--star-rot, 0deg));
}

.orbit-star-glyph {
  display: block;
  overflow: visible;
  opacity: var(--star-op, 1);
  transform-origin: center;
  transform-box: fill-box;
}

.orbit-star-glyph.is-twinkle {
  animation: orbit-twinkle var(--tw-dur, 4.8s) ease-in-out var(--tw-delay, 0s) infinite both;
}

@keyframes orbit-twinkle {
  0%, 100% { opacity: var(--tw-min, 0.62); transform: scale(0.9); }
  50% { opacity: var(--tw-max, 1); transform: scale(1); }
}

.orbit-star--nova {
  filter: drop-shadow(0 0 4px rgba(244, 192, 120, 0.42));
}

.orbit-star--nova.orbit-star--blush {
  filter: drop-shadow(0 0 4px rgba(233, 149, 160, 0.4));
}

.orbit-star--nova.orbit-star--peach {
  filter: drop-shadow(0 0 4px rgba(230, 162, 129, 0.4));
}

@media (max-width: 900px) {
  .orbit-frame {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-star-glyph.is-twinkle { animation: none !important; }
}

html.a11y-no-motion .orbit-star-glyph.is-twinkle { animation: none !important; }
