/* ============================================
   ORBITA STUDIO — Premium Astral Intro
   ============================================ */
body.intro-active {
  overflow: hidden;
}

body.intro-active .navbar,
body.intro-active main,
body.intro-active .footer,
body.intro-active #stars,
body.intro-active .cursor-glow,
body.intro-active .cursor-dot {
  opacity: 0;
  pointer-events: none;
}

.astral-intro {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(56,189,248,0.07), transparent 0 23%, transparent 47%),
    radial-gradient(ellipse at 68% 28%, rgba(139,92,246,0.12), transparent 0 31%),
    radial-gradient(ellipse at 19% 72%, rgba(14,165,233,0.09), transparent 0 30%),
    linear-gradient(145deg, #00040d 0%, #020617 43%, #050816 100%);
  color: #f8fafc;
  isolation: isolate;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s cubic-bezier(.22,1,.36,1), visibility 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1);
}

.astral-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.055);
}

.astral-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0;
  animation: astral-field-in 1.8s cubic-bezier(.22,1,.36,1) .12s forwards;
}

.astral-vignette,
.astral-depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.astral-vignette {
  z-index: -1;
  background:
    radial-gradient(circle at center, transparent 0 24%, rgba(2,6,23,0.1) 51%, rgba(0,0,0,0.72) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.66), transparent 28%, rgba(0,0,0,0.42));
}

.astral-depth {
  z-index: -2;
  opacity: .72;
  background:
    conic-gradient(from 220deg at 50% 50%, transparent, rgba(56,189,248,.08), transparent 19%, rgba(139,92,246,.08), transparent 41%, rgba(14,165,233,.06), transparent 63%, rgba(244,114,182,.045), transparent);
  filter: blur(36px);
  transform: scale(1.15);
  animation: astral-nebula-drift 8s ease-in-out infinite alternate;
}

.astral-center {
  position: relative;
  width: min(74vw, 620px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: scale(.82);
  opacity: 0;
  animation: astral-center-in 1.5s cubic-bezier(.16,1,.3,1) 1.05s forwards, astral-camera 4.8s cubic-bezier(.22,1,.36,1) 1.8s forwards;
  will-change: transform, opacity;
}

.astral-radar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 34px rgba(56,189,248,.14));
}

.orbit {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(56,189,248,.035), 0 0 28px rgba(56,189,248,.035);
  opacity: 0;
  transform: scale(.76) rotate(0deg);
  animation: orbit-materialize 1.8s cubic-bezier(.22,1,.36,1) forwards, orbit-spin 14s linear infinite;
}

.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(226, 246, 255, .82);
  box-shadow: 0 0 18px rgba(56,189,248,.56), 0 0 42px rgba(139,92,246,.28);
}

.orbit::before { top: 10%; left: 72%; }
.orbit::after { bottom: 15%; left: 20%; width: 4px; height: 4px; opacity: .58; }

.orbit-a { inset: 8%; animation-delay: 1.14s, 0s; }
.orbit-b { inset: 18%; transform: scale(.76) rotate(59deg); border-color: rgba(56,189,248,.22); animation-delay: 1.28s, 0s; animation-duration: 1.8s, 18s; }
.orbit-c { inset: 29%; transform: scale(.76) rotate(-38deg); border-color: rgba(139,92,246,.22); animation-delay: 1.42s, 0s; animation-duration: 1.8s, 22s; }
.orbit-d { inset: 39%; transform: scale(.76) rotate(82deg); border-color: rgba(255,255,255,.16); animation-delay: 1.58s, 0s; animation-duration: 1.8s, 26s; }

.orbit-b::before { width: 5px; height: 5px; top: 78%; left: 64%; }
.orbit-c::before { width: 4px; height: 4px; top: 23%; left: 16%; }
.orbit-d::before { width: 3px; height: 3px; top: 16%; left: 78%; }

.orbit-pulse {
  position: absolute;
  inset: 23%;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.14);
  background: radial-gradient(circle, rgba(56,189,248,.08), rgba(139,92,246,.025) 44%, transparent 69%);
  transform: scale(.68);
  opacity: 0;
  animation: portal-pulse 2.6s cubic-bezier(.22,1,.36,1) 2.15s infinite;
}

.orbit-core {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(248,250,252,.72), rgba(56,189,248,.18) 17%, rgba(139,92,246,.08) 37%, transparent 65%);
  filter: blur(.2px);
  opacity: 0;
  transform: scale(.7);
  animation: core-ignite 1.4s cubic-bezier(.16,1,.3,1) 1.72s forwards;
}

.astral-logo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(.94);
  animation: logo-materialize 1.35s cubic-bezier(.16,1,.3,1) 1.82s forwards;
}

.astral-logo-mark {
  width: clamp(62px, 9vw, 94px);
  height: clamp(62px, 9vw, 94px);
  overflow: visible;
}

.mark-ring {
  stroke: rgba(56,189,248,.76);
  stroke-width: 1.35;
  stroke-dasharray: 118 96;
  transform-origin: 48px 48px;
  animation: mark-drift 7s linear infinite;
}
.mark-ring.thin {
  stroke: rgba(139,92,246,.7);
  stroke-width: 1;
  stroke-dasharray: 62 76;
  animation-direction: reverse;
  animation-duration: 9s;
}
.mark-core { fill: url(#no-gradient); fill: rgba(56,189,248,.42); filter: drop-shadow(0 0 18px rgba(56,189,248,.48)); }
.mark-satellite { fill: #f8fafc; filter: drop-shadow(0 0 14px rgba(56,189,248,.75)); }

.astral-kicker {
  font-size: clamp(10px, 1.35vw, 12px);
  line-height: 1;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(148,163,184,.78);
  transform: translateX(.19em);
}

.astral-logo h2 {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(32px, 7.2vw, 78px);
  line-height: .88;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: rgba(248,250,252,.96);
  text-shadow: 0 0 36px rgba(56,189,248,.18), 0 24px 80px rgba(0,0,0,.82);
}

.astral-logo h2 span {
  color: #38BDF8;
}

.astral-status {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vw, 52px);
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(148,163,184,.66);
  opacity: 0;
  animation: status-in .9s ease 1.15s forwards;
}

.astral-intro.is-portal .astral-center {
  animation: portal-flight 1.35s cubic-bezier(.76,0,.24,1) forwards;
}

.astral-intro.is-portal .astral-canvas {
  animation: star-stretch 1.35s cubic-bezier(.76,0,.24,1) forwards;
}

.astral-intro.is-portal .astral-vignette {
  background: radial-gradient(circle at center, transparent 0 10%, rgba(2,6,23,.16) 34%, rgba(0,0,0,.82) 100%);
}

.astral-intro.is-portal .astral-status {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

@keyframes astral-field-in { to { opacity: 1; } }
@keyframes astral-nebula-drift { to { transform: scale(1.24) rotate(7deg); opacity: .9; } }
@keyframes astral-center-in { to { opacity: 1; transform: scale(1); } }
@keyframes astral-camera { to { transform: scale(1.075); } }
@keyframes orbit-materialize { to { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); } }
@keyframes orbit-spin { to { rotate: 360deg; } }
@keyframes portal-pulse { 0% { opacity: .16; transform: scale(.72); } 55% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes core-ignite { to { opacity: 1; transform: scale(1); } }
@keyframes logo-materialize { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mark-drift { to { transform: rotate(360deg); } }
@keyframes status-in { to { opacity: 1; } }
@keyframes portal-flight { to { transform: scale(7.4); opacity: 0; filter: blur(5px); } }
@keyframes star-stretch { to { opacity: .28; transform: scale(1.1); filter: blur(2px); } }

@media (max-width: 700px) {
  .astral-center { width: min(92vw, 420px); }
  .orbit::before { width: 5px; height: 5px; }
  .orbit::after { display: none; }
  .astral-kicker { letter-spacing: .28em; }
  .astral-status { width: 100%; text-align: center; font-size: 9px; letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
  body.intro-active { overflow: auto; }
  body.intro-active .navbar,
  body.intro-active main,
  body.intro-active .footer,
  body.intro-active #stars { opacity: 1; pointer-events: auto; }
  .astral-intro { display: none; }
}


@media (max-width: 700px) {
  .astral-intro { transform: translateZ(0); }
  .astral-center { width: min(72vw, 300px); height: min(72vw, 300px); }
  .astral-nebula { filter: blur(18px); opacity: .5; }
  .astral-logo { font-size: clamp(25px, 7vw, 42px); }
  .orbit-line { animation-duration: 24s !important; }
  .astral-mark { animation: none; }
}
