/* NINE9 homepage constellation navigation — source stylesheet */
body[data-page="home"] .hero__logo-glow { display: none; }
body[data-page="home"] .hero__lockup { width: min(72vw, 34rem); }

.hero-constellation {
  --orbit-glow: 94, 176, 232;
  position: relative;
  display: grid;
  width: min(72vw, 34rem);
  aspect-ratio: 1;
  margin: 0 auto clamp(12px, 2vh, 20px);
  place-items: center;
  isolation: isolate;
  transform: perspective(1200px) translateY(clamp(1rem, 3.5vh, 2.5rem))
    rotateX(var(--constellation-tilt-x, 0deg)) rotateY(var(--constellation-tilt-y, 0deg));
}

.hero-constellation__drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-constellation__orbit,
.hero-constellation__triangle {
  fill: none;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px rgba(var(--orbit-glow), .42)) drop-shadow(0 0 4px rgba(var(--orbit-glow), .18));
}

.hero-constellation__orbit-aura,
.hero-constellation__triangle-aura {
  fill: none;
  stroke: #5eb0e8;
  stroke-width: 4px;
  stroke-opacity: .04;
  vector-effect: non-scaling-stroke;
}

.hero-constellation__orbit-glow,
.hero-constellation__triangle-glow {
  fill: none;
  stroke: #5eb0e8;
  stroke-width: 1.5px;
  stroke-opacity: .24;
  vector-effect: non-scaling-stroke;
}

.hero-constellation__orbit {
  stroke: rgba(226, 239, 255, .86);
  stroke-width: .78;
}

.hero-constellation__triangle {
  stroke: rgba(220, 234, 250, .72);
  stroke-width: .72;
}

.hero-constellation__label {
  position: absolute;
  z-index: 2;
  color: #e8edf5;
  font: 500 clamp(.5rem, 1.1vw, .73rem)/1 var(--font-display, "Jost", sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(var(--orbit-glow), .12);
}

.hero-constellation__label--creative {
  top: 71.2%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-constellation__label--artist {
  top: 43.95%;
  left: 65.25%;
  transform: translate(-50%, -50%) rotate(60.7deg);
}

.hero-constellation__label--explorer {
  top: 43.95%;
  left: 34.75%;
  transform: translate(-50%, -50%) rotate(-60.7deg);
}

.hero-constellation__node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(5.1rem, 12vw, 7rem);
  aspect-ratio: 1;
  place-content: center;
  justify-items: center;
  gap: .26rem;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 8, 13, .5);
  color: #f4f6f8;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease;
}

.hero-constellation__node:hover,
.hero-constellation__node:focus-visible {
  background: rgba(94, 184, 255, .08);
  outline: none;
}

/* SVG strokes avoid rounded CSS-border/shadow seams during Firefox's 3D tilt. */
.hero-constellation__node-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(var(--orbit-glow), .42)) drop-shadow(0 0 4px rgba(var(--orbit-glow), .18));
  transition: filter 180ms ease;
}

.hero-constellation__node-ring circle {
  fill: none;
  stroke: rgba(232, 237, 245, .72);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  transition: stroke 180ms ease, opacity 180ms ease;
}

.hero-constellation__node-ring .hero-constellation__hover-ring {
  stroke-width: 1px;
  opacity: 0;
}

.hero-constellation__node:hover .hero-constellation__node-ring,
.hero-constellation__node:focus-visible .hero-constellation__node-ring {
  filter: drop-shadow(0 0 2px rgba(var(--orbit-glow), .55)) drop-shadow(0 0 5px rgba(var(--orbit-glow), .24));
}

.hero-constellation__node:hover .hero-constellation__node-ring circle,
.hero-constellation__node:focus-visible .hero-constellation__node-ring circle {
  stroke: var(--highlight, #5eb0e8);
}

.hero-constellation__node:hover .hero-constellation__hover-ring,
.hero-constellation__node:focus-visible .hero-constellation__hover-ring {
  opacity: 1;
}

.hero-constellation__node--projects {
  top: 21.45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-constellation__node--projects:hover,
.hero-constellation__node--projects:focus-visible { transform: translate(-50%, -50%) scale(1.035); }

.hero-constellation__node--lab {
  top: 68.43%;
  left: 23.5%;
  transform: translate(-50%, -50%);
}

.hero-constellation__node--lab:hover,
.hero-constellation__node--lab:focus-visible { transform: translate(-50%, -50%) scale(1.035); }

.hero-constellation__node--kitchen {
  top: 68.43%;
  right: 23.5%;
  transform: translate(50%, -50%);
}

.hero-constellation__node--kitchen:hover,
.hero-constellation__node--kitchen:focus-visible { transform: translate(50%, -50%) scale(1.035); }

.hero-constellation__node--home {
  z-index: 4;
  top: 52.5%;
  left: 50%;
  width: clamp(5.1rem, 12vw, 7rem);
  transform: translate(-50%, -50%);
}

.hero-constellation__node--home:hover,
.hero-constellation__node--home:focus-visible { transform: translate(-50%, -50%) scale(1.035); }

.hero-constellation__node--home img {
  width: 4.13rem;
  height: 4.65rem;
  object-fit: contain;
  transform: translateY(-.18rem);
}

.hero-constellation__node-label {
  font-size: clamp(.62rem, 1.15vw, .75rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-constellation__track {
  position: absolute;
  z-index: 1;
  top: 21.45%;
  left: 18.95%;
  width: 62.1%;
  height: 62.1%;
  border-radius: 50%;
  pointer-events: none;
  animation: hero-planet-orbit var(--orbit-duration) linear infinite;
}

.hero-constellation__planet {
  position: absolute;
  top: -.27rem;
  left: 50%;
  width: .46rem;
  height: .46rem;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: #edf5fb;
  box-shadow: 0 0 4px rgba(var(--orbit-glow), .3);
  transform: translateX(-50%);
}

.hero-constellation__track--one .hero-constellation__planet { width: .34rem; height: .34rem; }
.hero-constellation__track--two .hero-constellation__planet { width: .5rem; height: .5rem; }
.hero-constellation__track--three .hero-constellation__planet { width: .66rem; height: .66rem; }
.hero-constellation__track--one { --orbit-duration: 28s; animation-delay: -4s; }
.hero-constellation__track--two { --orbit-duration: 39s; animation-delay: -19s; }
.hero-constellation__track--three { --orbit-duration: 51s; animation-delay: -34s; }

@keyframes hero-planet-orbit { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  body[data-page="home"] .hero__lockup,
  .hero-constellation { width: min(92vw, 34rem); }
  .hero-constellation__node { width: clamp(4.4rem, 21vw, 5.5rem); }
  .hero-constellation__node--home { width: clamp(4.4rem, 21vw, 5.5rem); }
  .hero-constellation__node--home img { width: 2.95rem; height: 3.37rem; }
  .hero-constellation__node-label { font-size: .61rem; letter-spacing: .1em; }
  .hero-constellation__label { font-size: clamp(.43rem, 1.7vw, .62rem); letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-constellation { transform: translateY(clamp(1rem, 3.5vh, 2.5rem)); transition: none; }
  .hero-constellation__track { animation: none; }
  .hero-constellation__planet { display: none; }
}
