:root { color-scheme: dark; background: #010103; }
* { box-sizing: border-box; }
html, body { margin: 0; }

.page {
  position: relative;
  isolation: isolate;
  min-height: 200vw;
  /* Clip the transparent transformed canvas, without creating a scroll container. */
  overflow: clip;
}

.page__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.hero {
  display: grid;
  /* Keep the original planet width; give its full canvas room in normal flow. */
  padding-top: 150px;
  padding-bottom: clamp(64px, 8svh, 120px);
}

.hero-copy, .hero__stage { grid-area: 1 / 1; }
.hero__stage {
  position: relative;
  align-self: start;
  margin-top: 96px;
}

.hero__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.hero__layer,
.hero__stars {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.hero__stars { z-index: 0; }
.hero__layer { top: 50px; z-index: 0; transform-origin: 50% 50%; will-change: transform; }
.page-continuation { min-height: 200vh; min-height: 200svh; }

@media (prefers-reduced-motion: reduce) {
  .hero__layer { will-change: auto; }
}

@media (max-width: 639px) {
  .hero { padding-top: 128px; }
}
