/* The hero artwork is split into a galaxy backdrop and the original Orbit avatar. */
.first-screen .hero-art {
  background-image:
    linear-gradient(90deg, #080a12e6, transparent 72%),
    linear-gradient(0deg, #080a12, transparent 40%),
    url("assets/orbi-galaxy.png");
  background-size:
    100% 100%,
    100% 100%,
    200% 200%;
  background-position:
    center,
    center,
    left center;
  pointer-events: none;
}
.hero-avatar {
  position: absolute;
  z-index: 0;
  right: 1%;
  top: 50%;
  width: 46%;
  max-width: 650px;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-avatar img {
  display: block;
  width: 100%;
  height: auto;
  animation: orbit-hero-float 7s ease-in-out infinite;
}
.hero-avatar::before {
  content: "";
  position: absolute;
  inset: 22% 13% 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #699bff24, transparent 68%);
  animation: orbit-hero-glow 7s ease-in-out infinite;
}
.hero-avatar::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 5%;
  bottom: 10%;
  left: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #8fc9ff50, transparent 70%);
  animation: orbit-hero-shadow 7s ease-in-out infinite;
}
.hero-sparkles {
  position: absolute;
  inset: 8% -2%;
  background:
    radial-gradient(circle at 14% 24%, #b3d5ff 0 1px, transparent 2px),
    radial-gradient(circle at 80% 16%, #b69dff 0 1.5px, transparent 3px),
    radial-gradient(circle at 91% 62%, #8cdfff 0 1px, transparent 2px),
    radial-gradient(circle at 25% 86%, #c6d5ff 0 1px, transparent 2px);
  animation: orbit-hero-stars 5s ease-in-out infinite alternate;
}
@keyframes orbit-hero-float {
  0%,
  100% {
    transform: translate3d(0, 6px, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(1deg);
  }
}
@keyframes orbit-hero-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes orbit-hero-shadow {
  0%,
  100% {
    opacity: 0.75;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.35;
    transform: scaleX(0.82);
  }
}
@keyframes orbit-hero-stars {
  from {
    opacity: 0.35;
    transform: translate3d(0, 3px, 0);
  }
  to {
    opacity: 0.85;
    transform: translate3d(0, -3px, 0);
  }
}
.hero[data-motion-paused] .hero-avatar img,
.hero[data-motion-paused] .hero-avatar::before,
.hero[data-motion-paused] .hero-avatar::after,
.hero[data-motion-paused] .hero-sparkles {
  animation-play-state: paused;
}
@media (max-width: 900px) and (min-width: 641px) {
  .hero-avatar {
    right: -9%;
    width: 55%;
    opacity: 0.8;
  }
}
@media (max-width: 640px) {
  .hero-avatar {
    top: auto;
    bottom: -34px;
    right: -20px;
    width: clamp(180px, 58vw, 290px);
    transform: none;
    opacity: 0.85;
  }
  .hero-avatar img {
    animation-name: orbit-hero-float-mobile;
  }
}
@keyframes orbit-hero-float-mobile {
  0%,
  100% {
    transform: translate3d(0, 3px, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -6px, 0) rotate(1deg);
  }
}
@media (max-width: 640px) and (max-height: 680px) {
  .hero-avatar {
    width: 180px;
    bottom: -45px;
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-avatar img,
  .hero-avatar::before,
  .hero-avatar::after,
  .hero-sparkles {
    animation: none;
  }
}

/* One shared float layer keeps the mascot and its moving satellites together. */
.hero-avatar-motion {
  position: relative;
  animation: orbit-hero-float 7s ease-in-out infinite;
}
.hero-avatar .hero-avatar-base {
  position: relative;
  z-index: 2;
  animation: none;
}
.hero-satellite {
  position: absolute;
  left: 50.4%;
  top: 44.5%;
  width: 8%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 18, 32, 0.94);
  border: 1px solid rgba(180, 212, 255, 0.32);
  box-shadow:
    0 4px 12px #0006,
    inset 0 1px 2px #ffffff18;
  z-index: 3;
  will-change: transform;
}
.hero-avatar .hero-satellite img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  animation: none;
  border-radius: 0;
}
.hero[data-motion-paused] .hero-avatar-motion {
  animation-play-state: paused;
}
@media (max-width: 640px) {
  .hero-avatar-motion {
    animation-name: orbit-hero-float-mobile;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-avatar-motion {
    animation: none;
  }
  .hero-satellite {
    will-change: auto;
  }
}
/* Full-width galaxy, with readable content constrained independently of the backdrop. */
.first-screen {
  max-width: none;
  height: auto;
  min-height: calc(100svh - 92px);
}
.first-screen .hero {
  max-width: none;
  width: 100%;
  min-height: 500px;
  padding: 36px max(28px, calc((100vw - 1220px) / 2));
  overflow: hidden;
}
.first-screen .hero-copy {
  max-width: 610px;
}
.first-screen .hero-art {
  background-image:
    linear-gradient(90deg, #080a12e8, transparent 72%),
    linear-gradient(0deg, #080a12, transparent 42%),
    url("assets/orbi-galaxy.png");
}
.first-screen .hero-avatar {
  right: max(18px, calc((100vw - 1390px) / 2));
  width: min(44vw, 580px);
  max-width: 580px;
}
.first-screen .hero-caption {
  right: max(28px, calc((100vw - 1220px) / 2));
  bottom: 24px;
}
@media (min-width: 1101px) and (min-height: 850px) {
  .first-screen {
    height: calc(100svh - 92px);
  }
  .first-screen .hero {
    flex: 1;
    min-height: 500px;
  }
}
@media (min-width: 1101px) and (max-height: 849px) {
  .first-screen .hero {
    min-height: 440px;
    padding-top: 24px;
    padding-bottom: 30px;
  }
  .first-screen .hero h1 {
    font-size: clamp(46px, 4.2vw, 66px);
  }
  .first-screen .hero .eyebrow {
    margin-bottom: 16px;
  }
  .first-screen .hero-copy p {
    font-size: 16px;
    line-height: 1.55;
    margin: 18px 0 23px;
  }
  .first-screen .platforms {
    margin-top: 14px;
  }
  .first-screen .hero-avatar {
    width: min(42vw, 520px, 66svh);
  }
  .first-screen .hero-caption {
    bottom: 16px;
  }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .first-screen .hero {
    min-height: 460px;
    padding: 28px 5%;
  }
  .first-screen .hero-copy {
    max-width: 55%;
  }
  .first-screen .hero h1 {
    font-size: clamp(42px, 5vw, 56px);
  }
  .first-screen .hero-copy p {
    font-size: 15px;
  }
  .first-screen .hero-avatar {
    width: 45%;
    right: 0;
    opacity: 0.9;
  }
  .first-screen .hero-caption {
    display: none;
  }
}
@media (max-width: 640px) {
  .first-screen {
    min-height: calc(100svh - 75px);
  }
  .first-screen .hero {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 28px 24px 10px;
    overflow: visible;
  }
  .first-screen .hero-copy {
    max-width: none;
    width: 100%;
  }
  .first-screen .hero h1 {
    font-size: clamp(35px, 9vw, 46px);
  }
  .first-screen .hero-copy p {
    font-size: 14px;
    line-height: 1.55;
  }
  .first-screen .hero-avatar {
    position: relative;
    align-self: center;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(300px, 80vw);
    max-width: 100%;
    margin: -12px 0 -18px;
    opacity: 1;
  }
  .first-screen .hero-caption {
    display: none;
  }
}
