/* Interactive deep-space hero — motion is transform/opacity only for smooth playback. */
.cosmos-hero {
  --hero-video-x: 0px;
  --hero-video-y: 0px;
  --hero-video-scale: 1.045;
  --hero-interface-x: 0px;
  --hero-interface-y: 0px;
  --hero-reticle-x: 72%;
  --hero-reticle-y: 48%;
  --hero-tail-shift-x: clamp(72px, 8vw, 138px);
  min-height: 680px;
  isolation: isolate;
  background: transparent;
}

.cosmos-hero__video {
  max-width: none;
  filter: saturate(1.08) contrast(1.05) brightness(0.82);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.3) 82%, transparent 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.3) 82%, transparent 92%, transparent 100%);
  transform: translate3d(var(--hero-video-x), var(--hero-video-y), 0) scale(var(--hero-video-scale));
  transform-origin: 50% 50%;
  transition: filter 500ms ease;
  will-change: transform;
}

.cosmos-hero__tail-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 35% center;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.05) brightness(0.82);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.3) 82%, transparent 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.3) 82%, transparent 92%, transparent 100%);
  transform: translate3d(calc(var(--hero-video-x) + var(--hero-tail-shift-x)), var(--hero-video-y), 0) scale(var(--hero-video-scale));
  transform-origin: 50% 50%;
  transition: opacity 880ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.cosmos-hero.is-tail-transition .cosmos-hero__tail-frame,
.cosmos-hero.is-settled .cosmos-hero__tail-frame { opacity: 1; }
.cosmos-hero.is-intro .cosmos-hero__tail-frame { opacity: 0; }

.cosmos-hero__scrim {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(1, 3, 12, 0.18), transparent 25%, rgba(1, 3, 12, 0.24));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0.86) 80%, rgba(0, 0, 0, 0.26) 94%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0.86) 80%, rgba(0, 0, 0, 0.26) 94%, transparent 100%);
  transition: opacity 720ms ease;
}

.cosmos-hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 72% 74% at 66% 47%, transparent 22%, rgba(1, 3, 14, 0.18) 72%),
    linear-gradient(90deg, rgba(1, 3, 13, 0.9) 0%, rgba(1, 3, 13, 0.72) 26%, rgba(1, 3, 13, 0.16) 55%, transparent 77%),
    linear-gradient(180deg, rgba(2, 4, 13, 0.2), transparent 31%, rgba(2, 4, 15, 0.38));
  transition: opacity 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cosmos-hero__interface {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.5) 86%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.5) 86%, transparent 98%);
  transform: translate3d(var(--hero-interface-x), var(--hero-interface-y), 0);
  will-change: transform;
}

.cosmos-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(122, 218, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 218, 255, 0.11) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 64% 62% at 74% 54%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 64% 62% at 74% 54%, #000 0%, transparent 76%);
}

.cosmos-hero__orbit {
  position: absolute;
  left: 69%;
  top: 52%;
  width: min(62vw, 770px);
  aspect-ratio: 1;
  border: 1px solid rgba(115, 220, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 70px rgba(91, 85, 255, 0.04),
    0 0 0 42px rgba(115, 211, 255, 0.025),
    0 0 0 118px rgba(125, 83, 255, 0.02);
  transform: translate(-50%, -50%);
}

.cosmos-hero__orbit::before,
.cosmos-hero__orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cosmos-hero__orbit::before {
  inset: 8%;
  border: 1px dashed rgba(154, 225, 255, 0.15);
  animation: cosmos-spin 32s linear infinite;
}

.cosmos-hero__orbit::after {
  inset: 23%;
  border: 1px solid rgba(174, 149, 255, 0.14);
}

.cosmos-hero__orbit--inner {
  width: min(37vw, 460px);
  border-color: rgba(163, 138, 255, 0.18);
  box-shadow: 0 0 38px rgba(82, 184, 255, 0.07);
  transform: translate(-50%, -50%) rotate(28deg);
}

.cosmos-hero__orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(188, 239, 255, 0.9);
  border-radius: 50%;
  background: #7be9ff;
  box-shadow: 0 0 18px rgba(91, 221, 255, 0.85);
}

.cosmos-hero__orbit i:nth-child(1) { top: 8.4%; left: 25%; }
.cosmos-hero__orbit i:nth-child(2) { top: 58%; right: -4px; }
.cosmos-hero__orbit i:nth-child(3) { bottom: 5.5%; left: 30%; background: #a678ff; }
.cosmos-hero__orbit--inner i:nth-child(1) { top: 28%; right: -4px; }
.cosmos-hero__orbit--inner i:nth-child(2) { right: 19%; bottom: 8%; background: #ffb66e; }

.cosmos-hero__reticle {
  position: absolute;
  left: var(--hero-reticle-x);
  top: var(--hero-reticle-y);
  width: 58px;
  height: 58px;
  border: 1px solid rgba(176, 231, 255, 0.46);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cosmos-hero:hover .cosmos-hero__reticle {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1);
}

.cosmos-hero__reticle::before,
.cosmos-hero__reticle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(165, 229, 255, 0.56);
  transform: translate(-50%, -50%);
}

.cosmos-hero__reticle::before { width: 78px; height: 1px; }
.cosmos-hero__reticle::after { width: 1px; height: 78px; }

.cosmos-hero__reticle span {
  position: absolute;
  inset: 17px;
  border: 1px solid #8deaff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(93, 217, 255, 0.42);
}

.cosmos-hero__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  width: 15%;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(122, 224, 255, 0.12), transparent);
  filter: blur(3px);
  animation: cosmos-scan 8.5s ease-in-out infinite;
}

.cosmos-hero .reference-opening__content {
  z-index: 20;
  justify-content: center;
  min-height: 100%;
  padding-top: 104px;
  padding-bottom: 118px;
}

.cosmos-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(213, 235, 255, 0.72);
  font-family: "Inter", var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.cosmos-hero__eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72e5ff;
  box-shadow: 0 0 14px #72e5ff;
  animation: cosmos-status 2.2s ease-in-out infinite;
}

.cosmos-hero .reference-opening__title {
  max-width: 900px;
  text-shadow: 0 12px 46px rgba(0, 0, 16, 0.82);
}

.cosmos-hero .reference-opening__subtitle {
  color: rgba(225, 235, 250, 0.7);
  text-shadow: 0 5px 24px rgba(0, 0, 14, 0.74);
}

.cosmos-hero .reference-opening__button {
  box-shadow: 0 12px 34px rgba(0, 0, 20, 0.24);
}

.cosmos-hero .reference-opening__button--secondary {
  border-color: rgba(165, 221, 255, 0.42);
  background: rgba(4, 9, 27, 0.52);
}

.cosmos-hero__telemetry {
  position: absolute;
  z-index: 22;
  bottom: 32px;
  display: none;
  min-width: 150px;
  padding-top: 10px;
  border-top: 1px solid rgba(155, 219, 255, 0.24);
  color: rgba(204, 224, 247, 0.48);
  font-family: "Inter", var(--font-sans);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.cosmos-hero__telemetry strong {
  display: block;
  margin-top: 5px;
  color: rgba(222, 239, 255, 0.76);
  font-size: 9px;
  font-weight: 600;
}

.cosmos-hero__telemetry--left { left: 40px; }
.cosmos-hero__telemetry--right { right: 104px; text-align: right; }

.cosmos-hero__media-control {
  position: absolute;
  z-index: 24;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 222, 255, 0.32);
  border-radius: 50%;
  color: rgba(236, 247, 255, 0.88);
  background: rgba(4, 9, 27, 0.54);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.cosmos-hero__media-control:hover,
.cosmos-hero__media-control:focus-visible {
  border-color: #79e6ff;
  background: rgba(24, 73, 111, 0.52);
  transform: scale(1.06);
}

.cosmos-hero__media-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cosmos-hero__play-icon { display: none; }
.cosmos-hero__media-control[aria-pressed="true"] .cosmos-hero__pause-icon { display: none; }
.cosmos-hero__media-control[aria-pressed="true"] .cosmos-hero__play-icon { display: block; }

.cosmos-hero__pulse {
  position: absolute;
  z-index: 10;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(126, 230, 255, 0.82);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
  animation: cosmos-pulse 720ms cubic-bezier(0.18, 0.75, 0.3, 1) forwards;
}

.cosmos-hero.is-interacting .cosmos-hero__orbit--outer::before { animation-duration: 15s; }

@keyframes cosmos-spin { to { transform: rotate(360deg); } }
@keyframes cosmos-scan {
  0%, 12% { transform: translateX(0); opacity: 0; }
  30%, 62% { opacity: 0.48; }
  82%, 100% { transform: translateX(900%); opacity: 0; }
}
@keyframes cosmos-status { 50% { opacity: 0.35; transform: scale(0.72); } }
@keyframes cosmos-pulse {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7); }
}

@media (min-width: 700px) {
  .cosmos-hero .reference-opening__content {
    padding-top: 120px;
    padding-bottom: 112px;
  }

  .cosmos-hero__media-control { right: 40px; bottom: 28px; }
}

@media (min-width: 1024px) {
  .cosmos-hero__telemetry { display: block; }
  .cosmos-hero .reference-opening__title { font-size: clamp(3.25rem, 5vw, 4.7rem); }
}

@media (max-width: 699px) {
  .cosmos-hero { min-height: 700px; }
  .cosmos-hero__video { object-position: 58% center; }
  .cosmos-hero__scrim {
    background:
      radial-gradient(ellipse 90% 58% at 50% 38%, rgba(2, 4, 14, 0.2), rgba(2, 4, 14, 0.7) 86%),
      linear-gradient(180deg, rgba(2, 4, 13, 0.35), transparent 25%, rgba(2, 4, 15, 0.68));
  }
  .cosmos-hero__grid { background-size: 64px 64px; opacity: 0.16; }
  .cosmos-hero__orbit { left: 74%; top: 48%; width: 112vw; opacity: 0.62; }
  .cosmos-hero__orbit--inner { width: 72vw; }
  .cosmos-hero__reticle { display: none; }
  .cosmos-hero__eyebrow { margin-bottom: 18px; font-size: 8px; }
  .cosmos-hero__media-control { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-hero__video,
  .cosmos-hero__tail-frame,
  .cosmos-hero__interface { transform: none !important; }
  .cosmos-hero__orbit::before,
  .cosmos-hero__scan,
  .cosmos-hero__eyebrow i { animation: none !important; }
  .cosmos-hero__reticle { display: none; }
}

/* Two-stage opening: product film first, interactive tail frame second. */
.cosmos-hero .reference-opening__content {
  width: min(48vw, 720px);
  min-height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding: 116px 0 92px clamp(42px, 6.2vw, 112px);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-26px, 8px, 0);
  filter: blur(8px);
  transition: opacity 540ms ease-out, transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 620ms ease-out;
}

.cosmos-hero .cosmos-hero__eyebrow,
.cosmos-hero .reference-opening__title,
.cosmos-hero .reference-opening__subtitle,
.cosmos-hero .reference-opening__actions {
  opacity: 0;
  transform: translate3d(-18px, 8px, 0);
  filter: blur(6px);
  transition: opacity 440ms ease-out, transform 620ms cubic-bezier(0.16, 1, 0.3, 1), filter 560ms ease-out;
}

.cosmos-hero .reference-opening__title {
  max-width: 700px;
  font-size: clamp(48px, 4.7vw, 68px);
  line-height: 1.04;
  color: #fff;
  background: linear-gradient(104deg, #ffffff 0%, #f1f7ff 63%, #b8e8ff 112%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 44px rgba(89, 142, 255, 0.12);
}

.cosmos-hero .reference-opening__subtitle {
  max-width: 610px;
  font-size: clamp(14px, 1.05vw, 17px);
}

.cosmos-hero .reference-opening__actions {
  justify-content: flex-start;
}

.cosmos-hero.is-settled .reference-opening__content {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.cosmos-hero.is-settled .cosmos-hero__video {
  object-position: 35% center;
}

.cosmos-hero.is-settled .cosmos-hero__eyebrow,
.cosmos-hero.is-settled .reference-opening__title,
.cosmos-hero.is-settled .reference-opening__subtitle,
.cosmos-hero.is-settled .reference-opening__actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.cosmos-hero.is-settled .cosmos-hero__eyebrow { transition-delay: 90ms; }
.cosmos-hero.is-settled .reference-opening__title { transition-delay: 150ms; }
.cosmos-hero.is-settled .reference-opening__subtitle { transition-delay: 220ms; }
.cosmos-hero.is-settled .reference-opening__actions { transition-delay: 290ms; }

.cosmos-hero.is-intro .cosmos-hero__scrim {
  opacity: 0.34;
}

.cosmos-hero.is-tail-transition .cosmos-hero__scrim,
.cosmos-hero.is-settled .cosmos-hero__scrim {
  opacity: 1;
}

.cosmos-hero.is-tail-transition .cosmos-hero__scrim::after,
.cosmos-hero.is-settled .cosmos-hero__scrim::after {
  opacity: 1;
}

.cosmos-hero__interface,
.cosmos-hero__telemetry {
  transition: opacity 450ms ease-out;
}

.cosmos-hero.is-intro .cosmos-hero__interface,
.cosmos-hero.is-intro .cosmos-hero__telemetry {
  opacity: 0;
}

.cosmos-hero.is-tail-transition .cosmos-hero__interface,
.cosmos-hero.is-tail-transition .cosmos-hero__telemetry {
  opacity: 0.24;
}

.cosmos-hero.is-settled .cosmos-hero__interface,
.cosmos-hero.is-settled .cosmos-hero__telemetry {
  opacity: 1;
  transition-delay: 180ms;
}

.cosmos-hero__intro-status {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 44px;
  width: min(380px, 48vw);
  color: rgba(216, 236, 255, 0.7);
  font-family: "Inter", var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 260ms ease, transform 360ms ease;
}

.cosmos-hero__intro-status i {
  position: relative;
  height: 2px;
  display: block;
  overflow: hidden;
  margin-top: 12px;
  background: rgba(135, 201, 255, 0.16);
}

.cosmos-hero__intro-status b {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #6fe6ff, #9b78ff, #ffb56f);
  box-shadow: 0 0 12px rgba(110, 226, 255, 0.62);
  transform: scaleX(var(--intro-progress, 0));
  transform-origin: left center;
  transition: transform 180ms linear;
}

.cosmos-hero.is-settled .cosmos-hero__intro-status {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
}

.cosmos-hero__orbital-nav {
  position: absolute;
  z-index: 22;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 460ms ease-out 230ms;
}

.cosmos-hero.is-settled .cosmos-hero__orbital-nav {
  opacity: 1;
  pointer-events: auto;
}

.cosmos-orbit-link {
  --nav-shift-x: 0px;
  --nav-shift-y: 0px;
  position: absolute;
  left: var(--nav-x);
  top: var(--nav-y);
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(155, 220, 255, 0.2);
  border-radius: 999px;
  background: rgba(3, 7, 24, 0.52);
  color: rgba(229, 242, 255, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0, 4, 24, 0.22);
  opacity: 0;
  transform: translate3d(calc(-50% + var(--nav-shift-x)), calc(-50% + var(--nav-shift-y) + 12px), 0);
  transition:
    opacity 360ms ease-out var(--nav-delay),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--nav-delay),
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.cosmos-hero.is-settled .cosmos-orbit-link {
  opacity: 1;
  transform: translate3d(calc(-50% + var(--nav-shift-x)), calc(-50% + var(--nav-shift-y)), 0);
}

.cosmos-orbit-link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(22px, 2.8vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 222, 255, 0.52));
}

.cosmos-orbit-link span {
  display: grid;
  width: 25px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(124, 225, 255, 0.36);
  border-radius: 50%;
  color: #88e8ff;
  font-family: "Inter", var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 16px rgba(87, 189, 255, 0.08);
}

.cosmos-orbit-link strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cosmos-orbit-link:hover,
.cosmos-orbit-link:focus-visible,
.cosmos-orbit-link.is-active {
  border-color: rgba(128, 231, 255, 0.62);
  background: rgba(9, 18, 48, 0.72);
  color: #fff;
  box-shadow: 0 0 28px rgba(93, 203, 255, 0.16), 0 12px 34px rgba(0, 4, 24, 0.34);
}

.cosmos-orbit-link:hover span,
.cosmos-orbit-link:focus-visible span,
.cosmos-orbit-link.is-active span {
  background: rgba(102, 218, 255, 0.12);
  box-shadow: 0 0 18px rgba(97, 215, 255, 0.28);
}

.cosmos-hero__touchpoints {
  position: absolute;
  z-index: 22;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease-out 250ms;
}

.cosmos-hero.is-settled .cosmos-hero__touchpoints {
  opacity: 1;
  pointer-events: auto;
}

.cosmos-node {
  --node-shift-x: 0px;
  --node-shift-y: 0px;
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: 96px;
  min-height: 112px;
  padding: 0;
  border: 0;
  color: rgba(226, 239, 255, 0.68);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(calc(-50% + var(--node-shift-x)), calc(-50% + var(--node-shift-y) + 20px), 0) scale(0.84);
  transition: opacity 380ms ease-out, transform 520ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease;
}

.cosmos-hero.is-settled .cosmos-node {
  opacity: 1;
  transform: translate3d(calc(-50% + var(--node-shift-x)), calc(-50% + var(--node-shift-y)), 0) scale(1);
}

.cosmos-hero.is-settled .cosmos-node:nth-child(1) { transition-delay: 280ms; }
.cosmos-hero.is-settled .cosmos-node:nth-child(2) { transition-delay: 330ms; }
.cosmos-hero.is-settled .cosmos-node:nth-child(3) { transition-delay: 380ms; }

.cosmos-node__sphere {
  position: relative;
  width: 76px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(171, 226, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.65), transparent 12%),
    radial-gradient(circle at 62% 68%, rgba(121, 73, 255, 0.56), transparent 50%),
    linear-gradient(145deg, rgba(119, 229, 255, 0.55), rgba(14, 25, 73, 0.48));
  box-shadow:
    inset -12px -16px 28px rgba(2, 5, 24, 0.58),
    inset 10px 8px 24px rgba(199, 244, 255, 0.16),
    0 12px 36px rgba(0, 5, 31, 0.5),
    0 0 22px rgba(104, 217, 255, 0.16);
  transform: translateZ(0) rotate(0deg);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cosmos-node__sphere::before {
  content: "";
  position: absolute;
  inset: -32%;
  border: 1px dashed rgba(218, 245, 255, 0.28);
  border-radius: 46%;
  background: conic-gradient(from 20deg, transparent, rgba(117, 232, 255, 0.2), transparent 36%, rgba(170, 102, 255, 0.22), transparent 70%);
  animation: cosmos-node-spin 10s linear infinite;
}

.cosmos-node__sphere::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(227, 248, 255, 0.2);
  border-radius: 50%;
}

.cosmos-node svg {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: rgba(239, 250, 255, 0.92);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(110, 225, 255, 0.72));
}

.cosmos-node small {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(159, 210, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 8, 27, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cosmos-node:hover,
.cosmos-node:focus-visible,
.cosmos-node.is-active {
  color: #fff;
  outline: none;
}

.cosmos-node:hover .cosmos-node__sphere,
.cosmos-node:focus-visible .cosmos-node__sphere,
.cosmos-node.is-active .cosmos-node__sphere {
  border-color: rgba(138, 235, 255, 0.92);
  box-shadow:
    inset -12px -16px 28px rgba(2, 5, 24, 0.52),
    inset 10px 8px 24px rgba(199, 244, 255, 0.2),
    0 18px 44px rgba(0, 5, 31, 0.58),
    0 0 0 7px rgba(104, 217, 255, 0.07),
    0 0 34px rgba(104, 217, 255, 0.34);
  transform: scale(1.08);
}

.cosmos-node.is-active .cosmos-node__sphere::after {
  animation: cosmos-node-touch 640ms ease-out;
}

.cosmos-node--live .cosmos-node__sphere {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.62), transparent 12%),
    radial-gradient(circle at 62% 70%, rgba(255, 87, 169, 0.48), transparent 48%),
    linear-gradient(145deg, rgba(142, 119, 255, 0.58), rgba(16, 22, 66, 0.5));
}

.cosmos-node--museum .cosmos-node__sphere {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.6), transparent 12%),
    radial-gradient(circle at 65% 72%, rgba(255, 167, 90, 0.46), transparent 50%),
    linear-gradient(145deg, rgba(92, 213, 224, 0.56), rgba(18, 26, 69, 0.5));
}

.cosmos-hero__node-readout {
  position: absolute;
  right: 7.5%;
  bottom: 8.5%;
  min-width: 170px;
  padding: 11px 0 0;
  border-top: 1px solid rgba(146, 214, 255, 0.24);
  color: rgba(208, 231, 252, 0.48);
  font-family: "Inter", var(--font-sans);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-align: right;
}

.cosmos-hero__node-readout strong {
  display: block;
  margin-top: 5px;
  color: #dff5ff;
  font-size: 10px;
  letter-spacing: 0.13em;
}

@keyframes cosmos-node-spin { to { transform: rotate(360deg); } }
@keyframes cosmos-node-touch {
  0% { opacity: 0.85; transform: scale(0.75); }
  100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 1023px) {
  .cosmos-hero .reference-opening__content {
    width: min(70vw, 640px);
    padding-left: 40px;
  }
  .cosmos-hero__orbital-nav,
  .cosmos-hero__touchpoints { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-hero .reference-opening__content,
  .cosmos-hero .cosmos-hero__eyebrow,
  .cosmos-hero .reference-opening__title,
  .cosmos-hero .reference-opening__subtitle,
  .cosmos-hero .reference-opening__actions,
  .cosmos-orbit-link,
  .cosmos-hero__orbital-nav,
  .cosmos-node,
  .cosmos-hero__touchpoints {
    transition-duration: 0.01ms !important;
  }
  .cosmos-node__sphere::before { animation: none !important; }
}
