:root {
  --void: #03050a;
  --ink: #070b14;
  --mist: #b8c7d9;
  --star: #eef3f8;
  --ice: #7ec8db;
  --solar: #e0b15a;
  --ember: #c45c3e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Rubik Glitch", "Livvic", sans-serif;
  --font-ui: "Livvic", sans-serif;
  --font-body: "Livvic", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: #050914;
  background-image:
    radial-gradient(ellipse 100% 80% at 20% -10%, rgba(55, 90, 160, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 60%, rgba(110, 55, 140, 0.16), transparent 50%),
    radial-gradient(ellipse 80% 60% at 40% 100%, rgba(30, 55, 100, 0.18), transparent 55%);
  color: var(--star);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a,
button,
.btn,
.nav a,
.world,
.solar,
.signal__btn,
.solar3d__close,
.solar3d__planets button,
[data-magnetic] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

:focus:not(:focus-visible) {
  outline: none;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ── Overlay layers ── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  animation: grain-shift 0.4s steps(2) infinite;
}

.starfield,
.nebula-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.starfield {
  z-index: 0;
  opacity: 0.95;
}

.nebula-canvas {
  z-index: 0;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 20px 4px rgba(126, 200, 219, 0.55);
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease),
    opacity 0.25s ease;
  will-change: transform;
}

.cursor-orb.is-hot {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  opacity: 0.85;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(238, 243, 248, 0.35);
  border-radius: 50%;
  z-index: 99;
  pointer-events: none;
  will-change: transform;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease),
    border-color 0.25s ease, opacity 0.25s ease;
}

.cursor-ring.is-hot {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: rgba(126, 200, 219, 0.7);
}

/* ── Loader ── */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__core {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
}

.loader__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(126, 200, 219, 0.25);
  border-radius: 50%;
  animation: spin-simple 3.5s linear infinite;
}

.loader__orbit::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px var(--ice);
}

.loader__orbit--2 {
  inset: 18px;
  animation: spin-simple 2.2s linear infinite reverse;
  border-color: rgba(224, 177, 90, 0.3);
}

.loader__orbit--2::before {
  background: var(--solar);
  box-shadow: 0 0 12px var(--solar);
}

.loader__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loader__bar {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: min(220px, 50vw);
  height: 3px;
  transform: translateX(-50%);
  background: rgba(238, 243, 248, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ice), var(--solar));
  transition: width 0.15s linear;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 2rem;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
}

.site-header.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  display: inline-block;
}

.nav {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  display: inline-block;
  transition: opacity 0.25s ease;
}

.nav a:hover {
  opacity: 1;
}

/* ── Scroll galaxy marker (left) ── */

.scroll-galaxy {
  position: fixed;
  right: 1.1rem;
  left: auto;
  top: 16svh;
  bottom: 12svh;
  width: 44px;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.scroll-galaxy.is-visible {
  opacity: var(--sg-opacity, 1);
  visibility: visible;
}

.scroll-galaxy__track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(126, 200, 219, 0.55) 10%,
    rgba(238, 243, 248, 0.4) 50%,
    rgba(224, 177, 90, 0.5) 90%,
    transparent
  );
  box-shadow: 0 0 12px rgba(126, 200, 219, 0.25);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.scroll-galaxy.is-visible .scroll-galaxy__track {
  opacity: 1;
}

.scroll-galaxy__track::before,
.scroll-galaxy__track::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #eef3f8;
  box-shadow: 0 0 14px rgba(126, 200, 219, 0.8);
}

.scroll-galaxy__track::before {
  top: -2px;
}

.scroll-galaxy__track::after {
  bottom: -2px;
}

.scroll-galaxy__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-galaxy.is-ready .scroll-galaxy__marker {
  opacity: 1;
}

.scroll-galaxy__halo {
  position: absolute;
  inset: -36%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(126, 200, 219, 0.45),
    rgba(224, 177, 90, 0.18) 40%,
    transparent 70%
  );
  filter: blur(3px);
  animation: scroll-galaxy-pulse 3.5s ease-in-out infinite;
}

.scroll-galaxy__disk {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px rgba(238, 243, 248, 0.45),
    0 0 16px rgba(126, 200, 219, 0.65),
    0 0 28px rgba(224, 177, 90, 0.28);
  animation: scroll-galaxy-spin 22s linear infinite;
}

.scroll-galaxy__disk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.25);
  filter: saturate(1.4) contrast(1.12) brightness(1.15);
}

.scroll-galaxy__arms {
  display: none;
}

@keyframes scroll-galaxy-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scroll-galaxy-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .scroll-galaxy {
    right: 0.45rem;
    left: auto;
    width: 34px;
    top: 15svh;
    bottom: 12svh;
  }

  .scroll-galaxy__marker {
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
  }
}

@media (max-width: 520px) {
  .scroll-galaxy {
    right: 0.3rem;
    left: auto;
    width: 28px;
  }

  .scroll-galaxy__marker {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
  }
}

main {
  position: relative;
  z-index: 1;
}

/* ── Buttons ── */

.btn,
.btn span {
  font-family: "Livvic", var(--font-ui), sans-serif;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease,
    color 0.3s ease;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--solid {
  color: var(--void);
  background: var(--star);
}

.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--ice), var(--solar));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn--solid:hover::before {
  opacity: 1;
}

.btn--ghost {
  color: var(--star);
  border-color: rgba(238, 243, 248, 0.3);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ice);
  background: rgba(126, 200, 219, 0.08);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  will-change: transform;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(18, 28, 48, 0.35), transparent 70%);
  overflow: visible;
}

.hero__galaxy-stage {
  --galaxy-size: min(78vmin, 720px);
  position: relative;
  z-index: 1;
  width: var(--galaxy-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translateY(-6%);
  transform-origin: center center;
  will-change: transform, opacity;
  animation: galaxy-drift 28s ease-in-out infinite;
}

.hero__galaxy-stage.is-morphing {
  animation: none;
  z-index: 96;
  --galaxy-size: min(78vmin, 720px);
}

.hero.is-galaxy-docked .hero__galaxy-stage {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero.is-galaxy-docked .hero__orbit,
.hero.is-galaxy-docked .hero__halo,
.hero.is-galaxy-docked .hero__ring-sweep {
  opacity: 0 !important;
}

.hero__galaxy {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(238, 243, 248, 0.1),
    0 0 50px 6px rgba(126, 200, 219, 0.16),
    0 0 120px 36px rgba(224, 177, 90, 0.07),
    inset 0 0 80px 20px rgba(3, 5, 10, 0.35);
}

.hero__galaxy-veil {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 5, 10, 0.15) 0%,
      transparent 35%,
      rgba(3, 5, 10, 0.25) 62%,
      rgba(3, 5, 10, 0.55) 100%
    );
}

.hero__galaxy img,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12);
  will-change: transform;
  filter: saturate(1.25) contrast(1.08) brightness(1.05);
  animation: galaxy-spin 90s linear infinite;
}

.hero__halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      rgba(126, 200, 219, 0.2) 0%,
      rgba(224, 177, 90, 0.08) 45%,
      transparent 70%
    );
  animation: halo-pulse 5.5s ease-in-out infinite;
  filter: blur(4px);
}

.hero__orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  border: 1.5px solid rgba(238, 243, 248, 0.28);
}

.hero__orbit--a {
  inset: -5%;
  border-style: dashed;
  border-color: rgba(126, 200, 219, 0.55);
  animation: orbit-spin 48s linear infinite;
  opacity: 0.95;
}

.hero__orbit--b {
  inset: -10%;
  border-color: rgba(238, 243, 248, 0.32);
  animation: orbit-spin 32s linear infinite;
  box-shadow: 0 0 18px rgba(126, 200, 219, 0.12);
}

.hero__orbit--c {
  inset: -16%;
  border-style: dashed;
  border-color: rgba(224, 177, 90, 0.45);
  animation: orbit-spin-rev 56s linear infinite;
  opacity: 0.95;
}

.hero__orbit--d {
  inset: -22%;
  border-width: 1px;
  border-color: rgba(126, 200, 219, 0.22);
  animation: orbit-spin 72s linear infinite;
  opacity: 0.9;
}

.hero__sat {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(3, 5, 10, 0.55),
    0 0 14px 3px currentColor;
}

.hero__sat--solar {
  background: var(--solar, #e0b15a);
  color: rgba(224, 177, 90, 0.95);
}

.hero__sat--ice {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 0;
  background: var(--ice, #7ec8db);
  color: rgba(126, 200, 219, 1);
  left: auto;
  right: 0;
  margin-right: -3.5px;
}

.hero__sat--dim {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #eef3f8;
  color: rgba(238, 243, 248, 0.7);
  top: 14%;
  left: 78%;
}

.hero__ring-sweep {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(126, 200, 219, 0.55) 320deg,
    rgba(224, 177, 90, 0.45) 345deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1px));
  animation: orbit-spin 14s linear infinite;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(126, 200, 219, 0.45));
}

@keyframes galaxy-drift {
  0%,
  100% {
    transform: translateY(-6%) rotate(0deg);
  }
  50% {
    transform: translateY(-4%) rotate(1.2deg);
  }
}

@keyframes galaxy-spin {
  to {
    transform: scale(1.12) rotate(360deg);
  }
}

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

@keyframes orbit-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes halo-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 9, 20, 0.35) 0%,
      transparent 32%,
      transparent 72%,
      rgba(5, 9, 20, 0.2) 100%
    );
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-shadow: inset 0 0 120px 30px rgba(5, 9, 20, 0.45);
  pointer-events: none;
}

.hero__aurora {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  background:
    conic-gradient(
      from 120deg at 60% 40%,
      transparent 0deg,
      rgba(126, 200, 219, 0.12) 60deg,
      transparent 120deg,
      rgba(224, 177, 90, 0.08) 200deg,
      transparent 280deg
    );
  filter: blur(40px);
  animation: aurora-spin 22s linear infinite;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.hero__dust {
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(238, 243, 248, 0.85), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(126, 200, 219, 0.7), transparent),
    radial-gradient(2px 2px at 48% 18%, rgba(255, 230, 160, 0.65), transparent),
    radial-gradient(1px 1px at 62% 74%, rgba(238, 243, 248, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 78% 36%, rgba(126, 200, 219, 0.75), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(224, 177, 90, 0.55), transparent),
    radial-gradient(1px 1px at 18% 42%, rgba(238, 243, 248, 0.45), transparent),
    radial-gradient(2px 2px at 70% 12%, rgba(238, 243, 248, 0.5), transparent);
  opacity: 0.55;
}

.hero__warp {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, rgba(3, 5, 10, 0.85) 100%);
  opacity: 0;
  transform: scale(1.4);
}

.hero.is-entered .hero__warp {
  animation: warp-in 1.4s var(--ease-out) forwards;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 2rem 6.5rem;
  max-width: 46rem;
  will-change: transform, opacity;
}

.hero__coords {
  will-change: transform, opacity;
}

.scroll-cue {
  will-change: transform, opacity;
}

.hero__tag {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 1.1rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.2rem, 14vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero__brand-track {
  display: inline-flex;
}

.hero__line {
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-style: italic;
  color: var(--mist);
  max-width: 34ch;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__coords {
  position: absolute;
  top: 50%;
  right: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.45);
  writing-mode: horizontal-tb;
  will-change: transform, opacity;
}

.hero__coords span {
  opacity: 0;
  transform: translateX(20px);
  animation: coord-in 0.8s var(--ease) forwards;
}

.hero__coords span:nth-child(1) {
  animation-delay: 1.6s;
}
.hero__coords span:nth-child(2) {
  animation-delay: 1.75s;
}
.hero__coords span:nth-child(3) {
  animation-delay: 1.9s;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 3;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  display: grid;
  place-items: center;
}

.scroll-cue__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(238, 243, 248, 0.35);
  border-radius: 999px;
}

.scroll-cue__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  animation: cue-fall 1.8s var(--ease) infinite;
}

/* ── Shared type ── */

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.section-body {
  color: var(--mist);
  max-width: 38ch;
  font-size: 1.15rem;
}

/* char / word split helpers */

.char,
.word {
  display: inline-block;
  will-change: transform, opacity;
}

.char {
  opacity: 0;
  transform: translateY(1.1em) rotate(6deg);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.char.is-in {
  opacity: 1;
  transform: none;
}

.word {
  opacity: 0;
  transform: translateY(0.7em);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  margin-right: 0.28em;
}

.word.is-in {
  opacity: 1;
  transform: none;
}

[data-rise] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}

[data-rise].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ── Cosmos ── */

.cosmos {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 30rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  align-items: center;
  min-height: 100svh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 7rem 2rem;
  box-sizing: border-box;
  background: transparent;
}

.cosmos__copy {
  width: 100%;
  max-width: 30rem;
  justify-self: start;
}

.cosmos__glow {
  position: absolute;
  width: 50%;
  height: 60%;
  right: 0;
  top: 20%;
  background: radial-gradient(circle, rgba(126, 200, 219, 0.12), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.stat {
  min-width: 6.5rem;
}

.stat__num {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--star), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__unit {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--solar);
  margin-left: 0.2rem;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--mist);
  opacity: 0.75;
}

.cosmos__visual {
  position: relative;
  perspective: 1000px;
  width: 100%;
  min-width: 0;
}

.cosmos__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(238, 243, 248, 0.08);
}

@media (min-width: 1100px) {
  .cosmos__frame {
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 1400px) {
  .cosmos {
    grid-template-columns: minmax(20rem, 32rem) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5.5rem);
  }

  .cosmos__frame {
    aspect-ratio: 16 / 11;
  }
}

@media (min-width: 1800px) {
  .cosmos {
    grid-template-columns: minmax(22rem, 34rem) minmax(0, 1fr);
  }

  .cosmos__frame {
    aspect-ratio: 16 / 10;
  }
}

.cosmos__corner {
  display: none;
}

.cosmos__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
}

.cosmos__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(126, 200, 219, 0.12),
    transparent
  );
  animation: scan-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cosmos__corner,
.cosmos__corner--tl,
.cosmos__corner--tr,
.cosmos__corner--bl,
.cosmos__corner--br {
  display: none;
}

/* ── Orbit / Solar ── */

.orbit-section {
  position: relative;
  min-height: 100svh;
  padding: 5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

.orbit-section::before {
  content: "";
  position: absolute;
  inset: 10% 5% 15%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(224, 177, 90, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 40%, rgba(126, 200, 219, 0.1), transparent 65%),
    radial-gradient(ellipse 35% 30% at 70% 60%, rgba(140, 120, 230, 0.08), transparent 65%);
  filter: blur(40px);
  opacity: 0.9;
}

.orbit-section > * {
  position: relative;
  z-index: 1;
}

.orbit-section__head {
  text-align: center;
  margin-bottom: 1rem;
  z-index: 2;
}

.orbit-section__head .section-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.solar {
  position: relative;
  width: min(72vw, 560px);
  height: min(72vw, 560px);
  margin: 1rem auto 2rem;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.solar:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 12px;
}

.solar:active {
  cursor: grabbing;
}

.solar__sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 5;
  pointer-events: none;
}

.solar__sun-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, var(--solar) 45%, #a86b1e 100%);
  box-shadow:
    0 0 30px 8px rgba(224, 177, 90, 0.55),
    0 0 80px 20px rgba(224, 177, 90, 0.25);
  animation: sun-pulse 3s ease-in-out infinite;
}

.solar__sun-flare {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(224, 177, 90, 0.25),
    transparent 40%,
    rgba(255, 220, 140, 0.15),
    transparent 70%
  );
  animation: spin-simple 12s linear infinite;
  filter: blur(4px);
}

.solar__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(238, 243, 248, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.solar__ring--1 {
  width: 28%;
  height: 28%;
  animation: spin-orbit 8s linear infinite;
}
.solar__ring--2 {
  width: 40%;
  height: 40%;
  animation: spin-orbit 14s linear infinite reverse;
}
.solar__ring--3 {
  width: 52%;
  height: 52%;
  animation: spin-orbit 22s linear infinite;
}
.solar__ring--4 {
  width: 64%;
  height: 64%;
  animation: spin-orbit 32s linear infinite reverse;
}
.solar__ring--5 {
  width: 74%;
  height: 74%;
  border-color: rgba(238, 243, 248, 0.07);
  animation: spin-orbit 48s linear infinite;
}
.solar__ring--6 {
  width: 82%;
  height: 82%;
  border-color: rgba(238, 243, 248, 0.06);
  animation: spin-orbit 64s linear infinite reverse;
}
.solar__ring--7 {
  width: 90%;
  height: 90%;
  border-color: rgba(238, 243, 248, 0.05);
  animation: spin-orbit 80s linear infinite;
}
.solar__ring--8 {
  width: 96%;
  height: 96%;
  border-color: rgba(238, 243, 248, 0.04);
  animation: spin-orbit 100s linear infinite reverse;
}
.solar__ring--9 {
  width: 102%;
  height: 102%;
  border-color: rgba(238, 243, 248, 0.035);
  border-style: dashed;
  animation: spin-orbit 130s linear infinite;
}

.solar__planet {
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px currentColor;
}

.solar__planet--mercury {
  width: 8px;
  height: 8px;
  background: #c9b8a0;
  color: #c9b8a0;
}
.solar__planet--venus {
  width: 12px;
  height: 12px;
  background: #e0b15a;
  color: #e0b15a;
}
.solar__planet--earth {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #9fd0ff, #3a7bd5 60%, #1e4d8c);
  color: #6eb5ff;
}
.solar__planet--mars {
  width: 10px;
  height: 10px;
  background: #c45c3e;
  color: #c45c3e;
}

.solar__moon {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ddd;
  animation: spin-simple 3s linear infinite;
  transform-origin: 2px 16px;
}

.solar__dust {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 55%,
    rgba(224, 177, 90, 0.05) 70%,
    transparent 72%
  );
  animation: spin-simple 60s linear infinite;
  pointer-events: none;
}

.solar__cta {
  position: absolute;
  left: 50%;
  bottom: -2.8rem;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
  opacity: 0.85;
  pointer-events: none;
  animation: cta-pulse 2.4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.orbit-section__caption {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mist);
  opacity: 0.7;
  text-align: center;
}

.caption-touch {
  display: none;
}

/* ── Solar dive / rocket / 3D ── */

.solar-dive {
  position: fixed;
  inset: 0;
  z-index: 180;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: #03050a;
  border-radius: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.solar-dive.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

body.is-solar-deep .site-header,
body.is-solar-deep .starfield,
body.is-solar-deep .nebula-canvas {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

body.is-solar-deep .cursor-orb,
body.is-solar-deep .cursor-ring {
  z-index: 220;
  visibility: visible;
  opacity: 1;
}

.solar-dive__warp {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(224, 177, 90, 0.35), transparent 35%),
    radial-gradient(circle at center, #0a1428 0%, #03050a 70%);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.28s ease, transform 0.6s var(--ease-out);
}

.solar-dive.is-warping .solar-dive__warp {
  opacity: 1;
  transform: scale(1.8);
}

.solar-dive__rocket {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 130px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 16px rgba(255, 200, 100, 0.9));
  margin-left: -36px;
  margin-top: -65px;
}

.rocket-ship {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 110px;
}

.rocket-ship svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rocket-label {
  position: absolute;
  left: 50%;
  top: -1.1rem;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffe08a;
  text-shadow: 0 0 10px rgba(224, 177, 90, 0.9);
  white-space: nowrap;
  opacity: 1;
}

.rocket-trail {
  display: none;
}

.solar-dive__rocket .rocket-flame {
  transform-origin: 40px 140px;
  animation: flame-flicker 0.12s ease-in-out infinite alternate;
}

.solar-dive__rocket .rocket-flame--outer {
  transform-origin: 40px 150px;
  animation: flame-flicker 0.16s ease-in-out infinite alternate-reverse;
}

.solar-dive.is-launching .solar-dive__rocket {
  opacity: 1;
}

@keyframes flame-flicker {
  from {
    transform: scaleY(0.88) scaleX(1.02);
  }
  to {
    transform: scaleY(1.28) scaleX(0.9);
  }
}

.solar-dive__exhaust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

.solar-dive.is-launching .solar-dive__exhaust {
  opacity: 1;
}

.solar-dive__streaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.solar-dive.is-warping .solar-dive__streaks {
  opacity: 1;
}

.solar3d {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
  background: #010308;
  border-radius: 0;
  overflow: hidden;
  z-index: 10;
}

.solar-dive.is-deep .solar3d {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.solar-dive.is-deep .solar-dive__rocket,
.solar-dive.is-deep .solar-dive__streaks,
.solar-dive.is-deep .solar-dive__exhaust,
.solar-dive.is-deep .solar-dive__warp {
  opacity: 0;
  pointer-events: none;
}

#solar3dCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
  border-radius: 0;
  touch-action: none;
}

.solar3d__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 140px 50px rgba(1, 3, 8, 0.85);
  background: radial-gradient(ellipse at center, transparent 40%, rgba(1, 3, 8, 0.55) 100%);
}

.solar3d__hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1.5rem;
}

.solar3d__close,
.solar3d__planets button {
  pointer-events: auto;
  cursor: none;
}

.solar3d__close {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
  background: rgba(238, 243, 248, 0.06);
  border: 1px solid rgba(238, 243, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.solar3d__close:hover {
  background: rgba(126, 200, 219, 0.15);
  border-color: var(--ice);
}

.solar3d__title {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 28rem;
  pointer-events: none;
}

.solar3d__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.35rem;
}

.solar3d__title strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  display: block;
}

.solar3d__title p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mist);
  opacity: 0.85;
}

.solar3d__planets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
}

.solar3d__planets button {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.7);
  background: rgba(238, 243, 248, 0.05);
  border: 1px solid rgba(238, 243, 248, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease);
}

.solar3d__planets button:hover,
.solar3d__planets button.is-active {
  color: var(--star);
  border-color: var(--ice);
  background: rgba(126, 200, 219, 0.14);
  transform: translateY(-2px);
}

.planet-tip {
  position: absolute;
  z-index: 8;
  width: min(210px, 70vw);
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(126, 200, 219, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(8, 14, 26, 0.96), rgba(3, 6, 14, 0.94));
  backdrop-filter: blur(14px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(238, 243, 248, 0.05) inset,
    0 0 24px rgba(126, 200, 219, 0.08);
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.94);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.planet-tip.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.planet-tip__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid rgba(126, 200, 219, 0.22);
  background: rgba(126, 200, 219, 0.08);
  border-radius: var(--radius) var(--radius) 0 0;
}

.planet-tip__signal {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}

.planet-tip__id {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(238, 243, 248, 0.45);
}

.planet-tip__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0;
  padding: 0.55rem 0.65rem 0.35rem;
  color: var(--star);
}

.planet-tip__stats {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.65rem 0.65rem;
  margin: 0;
}

.planet-tip__stats div {
  display: grid;
  gap: 0.08rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(238, 243, 248, 0.08);
}

.planet-tip__stats div:first-child {
  border-top: 0;
  padding-top: 0;
}

.planet-tip__stats dt {
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(126, 200, 219, 0.85);
}

.planet-tip__stats dd {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(200, 214, 230, 0.92);
  margin: 0;
  min-height: 1em;
}

.planet-tip__name.is-scrambling,
.planet-tip__stats dd.is-scrambling {
  color: var(--ice);
}

body.is-solar-deep {
  overflow: hidden;
}

@media (max-width: 700px) {
  .solar3d__hud {
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.85rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .solar3d__close {
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    font-size: 0.7rem;
    align-self: flex-start;
  }

  .solar3d__title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    padding: 0.15rem 0.25rem 0.35rem;
    pointer-events: none;
  }

  .solar3d__title strong {
    font-size: clamp(1.15rem, 5.5vw, 1.55rem);
  }

  .solar3d__title p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .solar3d__eyebrow {
    font-size: 0.58rem;
  }

  .solar3d__planets {
    margin-top: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.15rem 0.35rem;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .solar3d__planets::-webkit-scrollbar {
    display: none;
  }

  .solar3d__planets button {
    flex: 0 0 auto;
    font-size: 0.62rem;
    padding: 0.65rem 0.8rem;
    min-height: 42px;
  }

  .solar__cta {
    bottom: -2.4rem;
    font-size: 0.6rem;
  }
}

/* ── Worlds ── */

.worlds {
  position: relative;
  background: transparent;
  /* height set by JS: viewport + horizontal travel */
}

.worlds__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 4.5rem 0 3rem;
  box-sizing: border-box;
  overflow: hidden;
}

.worlds__head {
  padding: 0 2rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.worlds__hint {
  margin-top: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(126, 200, 219, 0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.worlds.is-pinned .worlds__hint {
  opacity: 1;
  transform: none;
}

.worlds__rail {
  display: flex;
  gap: 1.4rem;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: none;
  padding: 0.75rem 2rem 1.5rem;
  scrollbar-width: none;
  perspective: 900px;
}

.worlds__rail::-webkit-scrollbar {
  display: none;
}

.worlds.is-scrolling-x .worlds__rail {
  cursor: grab;
}

.world {
  --world-radius: 28px;
  position: relative;
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: center;
  perspective: 900px;
  opacity: 0;
  transform: translateY(50px) rotateX(8deg);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.world.is-in {
  opacity: 1;
  transform: none;
}

.world:nth-child(2) {
  transition-delay: 0.05s;
}
.world:nth-child(3) {
  transition-delay: 0.1s;
}
.world:nth-child(4) {
  transition-delay: 0.15s;
}
.world:nth-child(5) {
  transition-delay: 0.2s;
}
.world:nth-child(6) {
  transition-delay: 0.25s;
}
.world:nth-child(7) {
  transition-delay: 0.3s;
}
.world:nth-child(8) {
  transition-delay: 0.35s;
}
.world:nth-child(9) {
  transition-delay: 0.4s;
}
.world:nth-child(10) {
  transition-delay: 0.45s;
}
.world:nth-child(n + 11) {
  transition-delay: 0.5s;
}

.world.is-in.is-live {
  transition: opacity 0.7s var(--ease);
}

.world__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--world-radius);
  pointer-events: none;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 22px 2px rgba(255, 255, 255, 0.14),
    0 0 52px 12px rgba(255, 255, 255, 0.08),
    0 0 96px 24px rgba(255, 255, 255, 0.04);
  opacity: 0.7;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}

.world:hover .world__glow {
  opacity: 1;
  transform: scale(1.01);
}

.world__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--world-radius);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.42);
}

.world__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
  filter: saturate(1.1);
}

.world:hover .world__media img {
  transform: scale(1.06);
}

.world__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(3, 5, 10, 0.55) 75%,
    rgba(3, 5, 10, 0.92) 100%
  );
  pointer-events: none;
}

.world__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.4rem 1.25rem 1.5rem;
}

.world__index {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.world__meta h3 {
  font-family: var(--font-ui);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  transform: translateY(8px);
  transition: transform 0.85s var(--ease);
}

.world:hover .world__meta h3 {
  transform: none;
}

.world__meta p {
  color: var(--mist);
  font-size: 0.98rem;
  max-width: 26ch;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.world__tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.55);
}

.world[data-world-key] {
  cursor: pointer;
}

.world[data-world-key]:focus-visible {
  outline: 2px solid var(--accent, var(--ice));
  outline-offset: 6px;
}

/* ── World dossier — full-page slide-in ── */

.world-dossier {
  --dossier-accent: var(--ice);
  --dossier-glow: #7ec8db;
  --dossier-deep: #050914;
  --dossier-mid: #0a1428;
  --dossier-haze: rgba(126, 200, 219, 0.22);
  --dossier-haze-2: rgba(110, 55, 140, 0.14);
  position: fixed;
  inset: 0;
  z-index: 170;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.world-dossier.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.world-dossier[hidden] {
  display: none !important;
}

.world-dossier:not([hidden]) {
  display: block;
}

.world-dossier__page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--dossier-deep);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
  overflow: hidden;
}

.world-dossier.is-open .world-dossier__page {
  transform: translate3d(0, 0, 0);
}

.world-dossier.is-closing .world-dossier__page {
  transform: translate3d(100%, 0, 0);
  transition-duration: 0.5s;
}

.world-dossier__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.world-dossier__atmosphere-img {
  position: absolute;
  inset: -12%;
  background-image: var(--dossier-photo, none);
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.35) brightness(0.45);
  transform: scale(1.12);
  opacity: 0.55;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.world-dossier.is-open .world-dossier__atmosphere-img {
  opacity: 0.7;
}

.world-dossier__atmosphere-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 70% at 50% -5%, var(--dossier-haze), transparent 58%),
    radial-gradient(ellipse 70% 55% at 100% 35%, var(--dossier-haze-2), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 75%, color-mix(in srgb, var(--dossier-accent) 28%, transparent), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, color-mix(in srgb, var(--dossier-mid) 80%, transparent), transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--dossier-mid) 55%, transparent), var(--dossier-deep) 72%);
}

.world-dossier__atmosphere-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--dossier-glow) 18%, transparent), transparent 35%),
    radial-gradient(circle at 20% 60%, color-mix(in srgb, var(--dossier-accent) 12%, transparent), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: dossier-atmosphere-drift 18s ease-in-out infinite alternate;
}

@keyframes dossier-atmosphere-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.04);
  }
}

.world-dossier__fluid {
  position: absolute;
  inset: 0;
  z-index: 15;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.45s ease;
  filter: blur(0.8px) contrast(1.2) saturate(1.3);
}

.world-dossier.is-open .world-dossier__fluid {
  opacity: 1;
}

.world-dossier__bar {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.9rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    0.9rem
    max(1.25rem, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--dossier-deep) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--dossier-accent) 18%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.world-dossier__back {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
  background: rgba(238, 243, 248, 0.06);
  border: 1px solid rgba(238, 243, 248, 0.18);
  border-radius: var(--radius);
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.world-dossier__back:hover {
  border-color: var(--dossier-accent);
  background: color-mix(in srgb, var(--dossier-accent) 14%, transparent);
}

.world-dossier__bar-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.world-dossier__bar-title.is-on {
  opacity: 1;
}

.world-dossier__close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(238, 243, 248, 0.25);
  border-radius: 50%;
  background: rgba(3, 5, 10, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.world-dossier__close span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--star);
}

.world-dossier__close span:first-child {
  transform: rotate(45deg);
}

.world-dossier__close span:last-child {
  transform: rotate(-45deg);
}

.world-dossier__close:hover {
  border-color: var(--dossier-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--dossier-accent) 35%, transparent);
}

/* Sidebar scroll rail */
.world-dossier__sidebar {
  position: fixed;
  left: max(0.85rem, env(safe-area-inset-left, 0px));
  top: 18svh;
  bottom: 14svh;
  width: 28px;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.25s;
}

.world-dossier.is-open .world-dossier__sidebar {
  opacity: 1;
}

.world-dossier__rail {
  position: relative;
  width: 100%;
  height: 100%;
}

.world-dossier__track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--dossier-accent) 55%, transparent) 12%,
    rgba(238, 243, 248, 0.35) 50%,
    color-mix(in srgb, var(--dossier-accent) 45%, transparent) 88%,
    transparent
  );
}

.world-dossier__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--dossier-accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--dossier-accent) 25%, transparent),
    0 0 18px var(--dossier-accent);
  will-change: transform;
  z-index: 2;
}

.world-dossier__dots {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0;
  pointer-events: auto;
}

.world-dossier__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(238, 243, 248, 0.45);
  background: rgba(5, 9, 20, 0.8);
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s;
}

.world-dossier__dot.is-active,
.world-dossier__dot:hover {
  background: var(--dossier-accent);
  border-color: var(--dossier-accent);
  transform: scale(1.35);
  box-shadow: 0 0 12px var(--dossier-accent);
}

/* Scrollable page body */
.world-dossier__scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 0 max(1.5rem, env(safe-area-inset-right, 0px))
    calc(3.5rem + env(safe-area-inset-bottom, 0px))
    max(3.5rem, calc(env(safe-area-inset-left, 0px) + 2.5rem));
  -webkit-overflow-scrolling: touch;
}

.world-dossier__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 3rem;
  min-height: min(92svh, 920px);
  justify-content: center;
}

.world-dossier__hero-media {
  position: relative;
  width: min(72vmin, 520px);
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(238, 243, 248, 0.16),
    0 0 60px color-mix(in srgb, var(--dossier-accent) 35%, transparent),
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.world-dossier__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.05);
  animation: dossier-img-in 1.1s var(--ease-out) both;
}

.world-dossier__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at 50% 45%,
    color-mix(in srgb, var(--dossier-accent) 40%, transparent),
    transparent 62%
  );
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
  animation: dossier-pulse 4.5s ease-in-out infinite;
}

.world-dossier__index {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--dossier-accent);
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: dossier-rise 0.55s var(--ease-out) 0.15s forwards;
}

.world-dossier__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  max-width: 16ch;
  opacity: 0;
  animation: dossier-rise 0.65s var(--ease-out) 0.22s forwards;
}

.world-dossier__lede {
  font-family: "Livvic", var(--font-body), sans-serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--mist);
  max-width: 42ch;
  line-height: 1.55;
  opacity: 0;
  animation: dossier-rise 0.65s var(--ease-out) 0.3s forwards;
}

.world-dossier__chapter {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--dossier-accent) 85%, white);
  margin-bottom: 1.1rem;
}

.world-dossier__stats-wrap,
.world-dossier__facts-wrap,
.world-dossier__block {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.world-dossier__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.world-dossier__stat {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(238, 243, 248, 0.04);
  border: 1px solid rgba(238, 243, 248, 0.09);
}

.world-dossier__stat span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 199, 217, 0.7);
  margin-bottom: 0.35rem;
}

.world-dossier__stat strong {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--star);
}

.world-dossier__block h3 {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: color-mix(in srgb, var(--dossier-accent) 80%, white);
}

.world-dossier__block p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(200, 214, 230, 0.92);
  margin-bottom: 1rem;
}

.world-dossier__block p:last-child {
  margin-bottom: 0;
}

.world-dossier__facts {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.world-dossier__facts li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mist);
}

.world-dossier__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dossier-accent);
  box-shadow: 0 0 10px var(--dossier-accent);
}

.world-dossier__foot {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
  max-width: 42rem;
  margin: 0 auto;
}

body.is-world-open {
  overflow: hidden;
}

body.is-world-open .scroll-galaxy {
  opacity: 0;
  pointer-events: none;
}

body.is-world-open .cursor-orb,
body.is-world-open .cursor-ring {
  z-index: 190;
}

@keyframes dossier-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dossier-img-in {
  from {
    transform: scale(1.2);
    filter: saturate(0.7) brightness(0.7);
  }
  to {
    transform: scale(1.06);
    filter: saturate(1.12) contrast(1.05);
  }
}

@keyframes dossier-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (max-width: 900px) {
  .world-dossier__scroll {
    padding-left: max(2.75rem, calc(env(safe-area-inset-left, 0px) + 1.75rem));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .world-dossier__hero {
    min-height: auto;
    padding: 1rem 0 2.5rem;
  }

  .world-dossier__hero-media {
    width: min(78vw, 360px);
    margin-bottom: 1.5rem;
  }

  .world-dossier__title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .world-dossier__sidebar {
    left: 0.35rem;
    width: 22px;
    top: 16svh;
    bottom: 12svh;
  }

  .world-dossier__bar-title {
    display: none;
  }
}

@media (max-width: 520px) {
  .world-dossier__stats {
    grid-template-columns: 1fr;
  }

  .world-dossier__hero-media {
    width: min(86vw, 300px);
  }

  .world-dossier__block p {
    font-size: 0.98rem;
  }
}

/* ── Constellation ── */

.constellation {
  position: relative;
  min-height: 85svh;
  display: grid;
  place-items: center;
  padding: 5rem 2rem;
  overflow: hidden;
  background: transparent;
}

#constellationCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 1;
}

.constellation.is-drawing {
  touch-action: none;
}

.constellation__copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 34rem;
  pointer-events: none;
}

.constellation__copy .section-title,
.constellation__copy .section-body {
  margin-left: auto;
  margin-right: auto;
}

/* ── Signal ── */

.signal {
  position: relative;
  min-height: 80svh;
  display: grid;
  place-items: center;
  padding: 6rem 2rem;
  overflow: hidden;
  background: transparent;
}

.signal__waves {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.signal__waves span {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(126, 200, 219, 0.2);
  border-radius: 50%;
  animation: ripple 5s ease-out infinite;
  opacity: 0;
}

.signal__waves span:nth-child(2) {
  animation-delay: 1.25s;
}
.signal__waves span:nth-child(3) {
  animation-delay: 2.5s;
}
.signal__waves span:nth-child(4) {
  animation-delay: 3.75s;
}

.signal.is-playing .signal__waves span {
  border-color: rgba(224, 177, 90, 0.35);
}

.signal__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 36rem;
}

.signal__inner .section-title,
.signal__inner .section-body {
  margin-left: auto;
  margin-right: auto;
}

.signal__inner .section-body {
  margin-bottom: 2.25rem;
}

.signal__btn {
  position: relative;
  border: none;
  cursor: none;
}

.signal__btn[aria-pressed="true"] {
  color: var(--void);
  background: var(--solar);
}

.signal__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.signal__btn[aria-pressed="true"] .signal__pulse {
  animation: pulse-dot 1.4s ease-out infinite;
}

.signal__viz {
  margin-top: 2.5rem;
  height: 64px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.signal.is-playing .signal__viz {
  opacity: 1;
  transform: none;
}

#vizCanvas {
  width: 100%;
  max-width: 320px;
  height: 64px;
  margin: 0 auto;
  display: block;
}

/* ── Closing ── */

.closing {
  position: relative;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 1.25rem;
  overflow: hidden;
  background: transparent;
}

.closing__stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(238, 243, 248, 0.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(126, 200, 219, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(238, 243, 248, 0.55), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(224, 177, 90, 0.65), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(238, 243, 248, 0.45), transparent);
  background-size: 100% 100%;
  animation: closing-twinkle 4s ease-in-out infinite alternate;
  opacity: 0.55;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}

.closing__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.closing__sub {
  font-family: "Livvic", var(--font-body), sans-serif;
  font-style: italic;
  font-weight: 400;
  color: var(--mist);
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.section-body,
.hero__line,
.orbit-section__caption,
.site-footer__note,
.world__meta p,
.solar3d__title p {
  font-family: "Livvic", var(--font-body), sans-serif;
}

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid rgba(238, 243, 248, 0.08);
}

.site-footer__brand {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-footer__note {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mist);
  opacity: 0.7;
}

/* ── Keyframes ── */

@keyframes spin-simple {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-orbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes sun-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: brightness(1.15);
  }
}

@keyframes aurora-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes warp-in {
  0% {
    opacity: 1;
    transform: scale(1.6);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes cue-fall {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes scan-sweep {
  0% {
    top: -30%;
  }
  100% {
    top: 110%;
  }
}

@keyframes ripple {
  0% {
    width: 80px;
    height: 80px;
    opacity: 0.55;
  }
  100% {
    width: min(80vw, 680px);
    height: min(80vw, 680px);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 177, 90, 0.55);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(224, 177, 90, 0);
  }
}

@keyframes coord-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0);
  }
  50% {
    transform: translate(-1%, 1%);
  }
}

@keyframes closing-twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.75;
  }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    cursor: auto;
  }

  .cursor-orb,
  .cursor-ring,
  .grain {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-rise],
  .char,
  .word,
  .world {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 900px) {
  body {
    cursor: auto;
    font-size: 1.05rem;
  }

  .cursor-orb,
  .cursor-ring {
    display: none;
  }

  .site-header {
    padding: max(0.85rem, env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      0.85rem
      max(1rem, env(safe-area-inset-left, 0px));
  }

  .nav {
    gap: 0.55rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: none;
  }

  .nav a {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.2rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .hero__coords {
    display: none;
  }

  .hero__content {
    padding: 0 1.15rem 5rem;
    max-width: 100%;
  }

  .hero__brand {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
  }

  .hero__line {
    font-size: 0.95rem;
    max-width: 34ch;
  }

  .hero__galaxy-stage {
    --galaxy-size: min(78vmin, 420px);
  }

  .hero__orbit--d {
    inset: -12%;
  }

  .btn {
    min-height: 46px;
    padding: 0.85rem 1.15rem;
  }

  .cosmos {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem max(1.15rem, env(safe-area-inset-right, 0px))
      4rem max(1.15rem, env(safe-area-inset-left, 0px));
    min-height: auto;
  }

  .cosmos__visual {
    order: -1;
  }

  .cosmos__frame {
    aspect-ratio: 5 / 4;
  }

  .section-title {
    font-size: clamp(1.85rem, 8vw, 3rem);
  }

  .orbit-section {
    padding: 3.5rem 1.15rem 3rem;
    min-height: auto;
  }

  .solar {
    width: min(86vw, 420px);
    height: min(86vw, 420px);
    margin: 0.75rem auto 2.5rem;
    touch-action: pan-y;
  }

  .solar__sun {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }

  .worlds__head {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .worlds__rail {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    gap: 1rem;
  }

  .worlds__pin {
    padding-top: max(5rem, calc(3.5rem + env(safe-area-inset-top, 0px)));
    padding-bottom: 2rem;
    gap: 1rem;
  }

  .worlds__hint {
    font-size: 0.62rem;
  }

  .world {
    flex-basis: min(78vw, 300px);
  }

  .constellation {
    min-height: 72svh;
    padding: 3.5rem 1.15rem;
  }

  #constellationCanvas {
    /* JS handles scroll vs draw; keep none so finger drawing isn't stolen */
    touch-action: none;
  }

  .signal {
    min-height: 70svh;
    padding: 4rem 1.15rem;
  }

  .signal__inner {
    padding: 0 0.25rem;
  }

  .signal__btn {
    min-height: 48px;
    cursor: pointer;
  }

  .closing {
    padding: 4.5rem 1.15rem calc(4rem + env(safe-area-inset-bottom, 0px));
  }

  .closing__title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .site-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.35rem 1.15rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }

  .scroll-galaxy {
    right: max(0.35rem, env(safe-area-inset-right, 0px));
  }

  .scroll-galaxy.is-visible {
    opacity: calc(var(--sg-opacity, 1) * 0.85);
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 0.35rem;
  }

  .nav a {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.12rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 280px);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__content {
    padding: 0 1rem 4.5rem;
  }

  .hero__brand {
    font-size: clamp(2.8rem, 18vw, 4.2rem);
    margin-bottom: 0.85rem;
  }

  .hero__galaxy-stage {
    --galaxy-size: min(92vw, 360px);
  }

  .hero__orbit--a,
  .hero__orbit--b,
  .hero__orbit--c {
    opacity: 0.55;
  }

  .stat-row {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stat {
    min-width: 0;
    flex: 1 1 40%;
  }

  .cosmos {
    padding: 3.25rem 1rem;
    gap: 1.5rem;
  }

  .orbit-section {
    padding: 3rem 1rem 2.5rem;
  }

  .solar {
    width: min(92vw, 360px);
    height: min(92vw, 360px);
  }

  .world {
    flex-basis: min(82vw, 280px);
  }

  .world__meta h3 {
    font-size: 1.25rem;
  }

  .world__meta p {
    font-size: 0.88rem;
  }

  .scroll-galaxy {
    width: 22px;
    right: 0.2rem;
    top: 18svh;
    bottom: 14svh;
  }

  .scroll-galaxy.is-visible {
    opacity: calc(var(--sg-opacity, 1) * 0.7);
  }

  .scroll-galaxy__marker {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
  }
}

@media (hover: none) {
  body {
    cursor: auto;
  }

  .cursor-orb,
  .cursor-ring {
    display: none;
  }

  .caption-desk {
    display: none;
  }

  .caption-touch {
    display: inline;
  }

  .solar {
    touch-action: pan-y;
    cursor: pointer;
  }

  .solar3d__close,
  .solar3d__planets button,
  .signal__btn,
  .btn,
  #solar3dCanvas {
    cursor: pointer;
  }

  .btn:active,
  .nav a:active,
  .signal__btn:active,
  .world:active,
  a.btn:active {
    transform: scale(0.98);
    transition-duration: 0.08s;
  }
}

@media (hover: hover) and (pointer: fine) {
  .caption-touch {
    display: none;
  }

  .caption-desk {
    display: inline;
  }
}
