
:root {
  color-scheme: dark;
  --ink: #030201;
  --amber: #ffc17a;
  --cream: #f8eddf;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --muted: rgba(255, 232, 205, .56);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #030201;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell {
  position: relative;
  display: flex;
  min-height: max(100vh, 740px);
  min-height: max(100svh, 740px);
  height: max(100vh, 740px);
  height: max(100svh, 740px);
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(15px, 2.1vw, 28px) 20px clamp(10px, 1.2vw, 17px);
}

.header-announcement {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.stage-wrap {
  display: flex;
  width: 100%;
  min-height: 660px;
  flex: 1 1 auto;
  padding: 0;
}

.universe {
  position: relative;
  isolation: isolate;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #030201;
  --planet-glow: rgba(255, 156, 73, .2);

  /* Responsive movement only: planet diameters below are fixed pixel values. */
  --services-x: clamp(50px, calc(18.2vw - 8px), 365px);
  --upper-right-x: clamp(54px, calc(19.5vw - 9px), 390px);
  --lower-left-x: clamp(80px, calc(22vw + 9px), 459px);
  --booorang-x: clamp(80px, calc(20.6vw + 14px), 436px);
  --upper-y: clamp(120px, calc(268px - 9.6vw), 237px);
  --lower-y: clamp(85px, calc(277px - 12.5vw), 237px);
}

.ambient-glow {
  position: absolute;
  z-index: 0;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(183, 82, 25, .18), transparent 34%),
    radial-gradient(ellipse at 50% 52%, rgba(255, 173, 88, .09), transparent 52%),
    radial-gradient(ellipse at 81% 34%, rgba(134, 51, 19, .12), transparent 25%);
  filter: blur(24px);
}

.starfield {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
  pointer-events: none;
}

.orbit-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}


.orbit-map .orbit-lines ellipse {
  fill: none;
  stroke: rgba(255, 190, 130, .22);
  stroke-width: 1.15;
  opacity: .18;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.planet {
  position: absolute;
  z-index: 3;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(-50%, -50%, 0);
  animation: planet-float 11s ease-in-out infinite;
  transition: filter .55s var(--ease), z-index 0s;
  will-change: translate;
}

.planet::before {
  position: absolute;
  z-index: -1;
  inset: -13%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--planet-glow), transparent 69%);
  content: "";
  opacity: .78;
  filter: blur(16px);
  transition: opacity .5s ease, transform .7s var(--ease);
}

.planet__visual {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
}

.planet__surface {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter:
    drop-shadow(0 15px 22px rgba(0, 0, 0, .62))
    drop-shadow(0 0 13px rgba(255, 160, 78, .14));
  transition: filter .6s var(--ease);
}

.planet__logo {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8%;
  border-radius: 50%;
  pointer-events: none;
}

.planet__logo-shade {
  position: absolute;
  z-index: -1;
  width: 84%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--logo-shade, rgba(22, 8, 2, .24)) 0%, transparent 72%);
  filter: blur(8px);
}

.planet__logo img {
  position: relative;
  display: block;
  width: var(--logo-width, 68%);
  max-width: 100%;
  max-height: var(--logo-height, 76%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .62));
  user-select: none;
}

.planet__tooltip {
  position: absolute;
  z-index: 5;
  top: calc(100% + 13px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 193, 122, .22);
  border-radius: 99px;
  background: rgba(8, 5, 3, .84);
  color: rgba(255, 239, 218, .9);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, 6px);
  transition: opacity .3s ease, transform .3s var(--ease);
  backdrop-filter: blur(10px);
}

.planet__tooltip span { color: var(--amber); font-size: 12px; }

.planet:hover,
.planet:focus-visible {
  z-index: 9;
  transform: translate3d(-50%, -50%, 0);
}

.planet:hover::before,
.planet:focus-visible::before {
  opacity: 1;
}

.planet:hover .planet__surface,
.planet:focus-visible .planet__surface {
  filter:
    drop-shadow(0 20px 28px rgba(0, 0, 0, .65))
    drop-shadow(0 0 24px rgba(255, 174, 94, .27));
}

.planet:hover .planet__tooltip,
.planet:focus-visible .planet__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.planet:focus-visible {
  outline: 1px solid rgba(255, 209, 155, .82);
  outline-offset: 9px;
  box-shadow: 0 0 0 4px rgba(255, 183, 107, .12);
}

.planet--central {
  z-index: 6;
  top: 45.7%;
  left: 49.4%;
  width: 314px;
  --logo-width: 66%;
  --logo-height: 30%;
  --logo-shade: rgba(16, 5, 1, .08);
  --planet-glow: rgba(255, 151, 61, .34);
  animation-duration: 14s;
}

.planet--services {
  top: calc(45.7% - var(--upper-y));
  left: calc(49.4% - var(--services-x));
  width: 130px;
  --logo-width: 74%;
  --logo-height: 48%;
  --logo-shade: rgba(42, 18, 5, .34);
  --planet-glow: rgba(255, 190, 116, .25);
  animation-delay: -2.8s;
  animation-duration: 10.5s;
}

.planet--maya {
  top: calc(45.7% + var(--lower-y));
  left: calc(49.4% - var(--lower-left-x));
  width: 116px;
  --logo-width: 48%;
  --logo-height: 76%;
  --logo-shade: rgba(35, 2, 2, .16);
  --planet-glow: rgba(255, 80, 52, .24);
  animation-delay: -5.4s;
  animation-duration: 12s;
}

.planet--redbox {
  top: calc(45.7% - var(--upper-y));
  left: calc(49.4% + var(--upper-right-x));
  width: 142px;
  --logo-width: 77%;
  --logo-height: 60%;
  --logo-shade: rgba(0, 0, 0, .02);
  --planet-glow: rgba(255, 132, 49, .29);
  animation-delay: -1.2s;
  animation-duration: 11.5s;
}

.planet--booorang {
  top: calc(45.7% + var(--lower-y));
  left: calc(49.4% + var(--booorang-x));
  width: 128px;
  --logo-width: 59%;
  --logo-height: 82%;
  --logo-shade: rgba(40, 17, 4, .36);
  --planet-glow: rgba(255, 187, 112, .25);
  animation-delay: -4.1s;
  animation-duration: 10.8s;
}


.scene-vignette {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 47%, transparent 36%, rgba(0, 0, 0, .28) 100%);
}

.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 8px 20px clamp(15px, 2vw, 25px);
}

.footer-prompt {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.footer-prompt__line {
  display: block;
  width: clamp(20px, 3vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 185, 111, .5));
}

.footer-prompt__line:last-child {
  transform: rotate(180deg);
}

@keyframes planet-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}


@media (max-width: 405px) {
  /* Keep the swapped upper-row planets from touching on narrow screens. */
  .universe {
    --services-x: clamp(66px, calc(18.2vw - 4px), 365px);
    --upper-right-x: clamp(74px, calc(19.5vw - 3px), 390px);
  }
}

@media (max-width: 800px) {
  .site-header {
    padding: 16px 20px 12px;
  }

  .header-announcement {
    font-size: 14px;
    letter-spacing: .24em;
  }

  .planet__tooltip { display: none; }
  .planet:focus-visible { outline-offset: 5px; }
  .site-footer { padding-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
