*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #02010a;
  color: #d7ecff;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

#nebula {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(72, 32, 140, 0.35), transparent 46%),
    radial-gradient(ellipse at 82% 18%, rgba(18, 70, 130, 0.32), transparent 42%),
    radial-gradient(ellipse at 70% 80%, rgba(90, 20, 80, 0.22), transparent 50%),
    radial-gradient(ellipse at 30% 85%, rgba(12, 90, 110, 0.18), transparent 48%);
  animation: nebula-drift 48s ease-in-out infinite alternate;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

#mark {
  position: fixed;
  left: 50%;
  top: 48%;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  pointer-events: none;
  text-align: center;
  animation: mark-float 7s ease-in-out infinite;
}

#mark::before {
  content: "";
  position: absolute;
  inset: -28% -18%;
  background: radial-gradient(ellipse at center, rgba(6, 10, 32, 0.82) 0%, rgba(6, 10, 32, 0.48) 48%, transparent 74%);
  z-index: -1;
}

.mark-orbits {
  width: min(18vw, 140px);
  height: min(18vw, 140px);
  overflow: visible;
}

.sat-a {
  animation: sat-pulse 2.8s ease-in-out infinite;
}

.sat-b {
  animation: sat-pulse 3.6s ease-in-out infinite 0.6s;
}

.wordmark {
  font-family: Orbitron, Rajdhani, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  color: #eef8ff;
  text-shadow:
    0 0 18px rgba(120, 220, 255, 0.7),
    0 0 42px rgba(70, 120, 255, 0.45);
}

.wordmark .tld {
  color: #7cf0ff;
}

.tagline {
  margin-top: 0.7rem;
  font-family: Rajdhani, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.12em;
  color: #b8d9f0;
  text-shadow: 0 0 16px rgba(80, 180, 255, 0.45);
}

.floater {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  user-select: none;
}

.formula {
  white-space: nowrap;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-style: italic;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(120, 220, 255, 0.55),
    0 0 22px rgba(80, 140, 255, 0.35);
  opacity: 0.82;
}

.photo {
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  box-shadow:
    0 0 0 3px rgba(180, 230, 255, 0.28),
    0 0 28px rgba(90, 180, 255, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

@keyframes nebula-drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.08);
  }
}

@keyframes mark-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes sat-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
