/* Shared Earth / Moon heroes. The planet stays anchored while its mesh rotates. */
header.cosmic-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(800px, 100svh); height: auto;
  background: #07090d; color: var(--creme-bright);
  display: flex; align-items: center;
}
.cosmic-hero .planet-stage {
  position: absolute; z-index: 0; width: min(74vw, 1100px); aspect-ratio: 1;
  right: max(-7%, calc((100% - 1540px) / 2 - 120px)); top: 49%; transform: translateY(-50%);
}
.planet-stage canvas, .planet-poster { display: block; width: 100%; height: 100%; }
.planet-stage canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; touch-action: pan-y pinch-zoom; cursor: grab; border-radius: 50%; }
.planet-stage canvas:active { cursor: grabbing; }
.planet-stage.is-ready canvas { opacity: 1; }
.planet-stage.is-ready .planet-poster { opacity: 0; }
.planet-poster { object-fit: contain; transition: opacity 1s ease; }
.planet-stage canvas:focus-visible { outline: 2px solid #b5cee5; outline-offset: -5px; }
.cosmic-hero .hero-shade {
  position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #07090d 0%, rgba(7,9,13,.93) 20%, rgba(7,9,13,.4) 46%, transparent 70%), linear-gradient(0deg, #07090d 0%, transparent 20%, transparent 88%, rgba(7,9,13,.3));
}
.cosmic-hero .inner {
  position: relative; z-index: 2; width: 100%; max-width: 1540px; margin: auto;
  padding: 10rem clamp(1.4rem, 6vw, 6rem) 10rem;
  pointer-events: none; text-align: left;
}
.cosmic-hero .hero-eyebrow { display: block; color: #c3c3c0; font-size: .75rem; letter-spacing: .16em; line-height: 1.7; margin-bottom: 1.8rem; }
.cosmic-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 5.8vw, 6rem); line-height: 1.03; letter-spacing: -.035em; margin: 0; max-width: 15ch; text-wrap: balance; }
.cosmic-hero h1 em { font-weight: 400; color: #b7bec6; }
.cosmic-hero p.sub { max-width: 39ch; font-size: 1.0625rem; line-height: 1.75; color: #bfc1c4; margin: 1.9rem 0 0; }
.cosmic-hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cosmic-hero .cta-row a { pointer-events: auto; }
.cosmic-hero .btn { font-family: var(--sans); min-height: 48px; display: inline-flex; gap: 1.5rem; align-items: center; justify-content: center; }
.cosmic-hero .btn-ghost { color: var(--creme-bright); border-color: rgba(242,234,217,.3); background: rgba(7,9,13,.35); }
.cosmic-hero .btn-ghost:hover { background: rgba(242,234,217,.1); }
.cosmic-hero .trust { color: #9c9fa4; font-size: .8125rem; line-height: 1.6; margin-top: 1.6rem; }
.planet-controls { position: absolute; z-index: 3; right: max(8%, calc((100% - 1540px) / 2 + 6rem)); bottom: 6.5rem; display: flex; align-items: center; gap: 1rem; font-family: var(--sans); color: #a5abb3; font-size: .8125rem; }
.planet-controls[hidden] { display: none; }
.planet-pause { min-height: 44px; padding: .5rem .9rem; color: #d7dbdf; font: inherit; border: 1px solid #363c45; border-radius: 99px; background: #10151bcc; cursor: pointer; }
.hero-bottom { position: absolute; z-index: 3; bottom: 0; left: clamp(1.4rem, 6vw, 6rem); right: clamp(1.4rem, 6vw, 6rem); border-top: 1px solid #ffffff24; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8125rem; color: #b0b3b8; }
.hero-coordinate span { font-family: var(--mono); color: #747d89; margin-right: 1rem; }
.hero-scroll { color: #c8ccd1; text-decoration: none; display: inline-flex; align-items: center; gap: 1.5rem; min-height: 44px; }
.cosmic-hero[data-planet="moon"] h1 { font-size: clamp(3.6rem, 7vw, 7.4rem); }
.cosmic-hero[data-planet="moon"] .planet-stage { width: min(72vw, 1040px); right: max(-4%, calc((100% - 1540px) / 2 - 90px)); }
@media (max-width: 899px) {
  header.cosmic-hero { display: block; min-height: 100svh; }
  .cosmic-hero .inner { padding: 7.5rem 1.4rem 0; }
  .cosmic-hero .hero-eyebrow { margin-bottom: 1.3rem; font-size: .75rem; max-width: 30ch; }
  .cosmic-hero h1 { font-size: clamp(2.7rem, 8.2vw, 4.7rem); max-width: 17ch; }
  .cosmic-hero[data-planet="moon"] h1 { font-size: clamp(3.1rem, 9.5vw, 5.2rem); }
  .cosmic-hero p.sub { max-width: 40ch; margin-top: 1.4rem; font-size: 1rem; }
  .cosmic-hero .cta-row { margin-top: 1.5rem; }
  .cosmic-hero .trust { max-width: 35ch; margin-top: 1.2rem; }
  .cosmic-hero .planet-stage, .cosmic-hero[data-planet="moon"] .planet-stage { position: relative; width: min(105vw, 670px); max-width: none; top: auto; right: auto; transform: none; margin: -1rem auto 0; left: 50%; translate: -50% 0; }
  .cosmic-hero .planet-stage { position: absolute; bottom: 7rem; }
  .cosmic-hero[data-planet="moon"] .planet-stage { position: absolute; bottom: 7rem; }
  /* Reserve a real interaction area below the copy; no invisible layer steals swipes. */
  .cosmic-hero .inner { padding-bottom: calc(min(105vw, 670px) + 8rem); }
  .cosmic-hero .hero-shade { background: linear-gradient(180deg, #07090d 0%, transparent 45%, transparent 90%, #07090d 100%); }
  .planet-controls { bottom: 6rem; right: 0; left: 0; justify-content: center; gap: .7rem; }
  .hero-bottom { left: 1.4rem; right: 1.4rem; padding: 1rem 0; font-size: .75rem; }
  .hero-scroll { gap: .6rem; }
  .hero-coordinate { max-width: 22ch; line-height: 1.5; }
  .hero-coordinate span { margin-right: .4rem; }
}
@media (max-width: 380px) {
  .cosmic-hero .cta-row { flex-direction: column; align-items: stretch; }
  .cosmic-hero h1 { font-size: 2.5rem; }
  .hero-coordinate { max-width: 17ch; }
  .hero-scroll { max-width: 14ch; }
}
@media (prefers-reduced-motion: reduce) {
  .planet-stage canvas, .planet-poster { transition: none; }
}
@media (max-width: 899px) {
  .cosmic-hero .cta-row { flex-direction: column; align-items: stretch; max-width: 420px; }
  .cosmic-hero .trust { max-width: 42ch; text-wrap: balance; }
}
@media (max-width: 380px) {
  .cosmic-hero[data-planet="moon"] h1 { font-size: 2.65rem; }
}
/* Preserve the cinematic scale on very large desktop displays. */
@media (min-width: 2000px) {
  .cosmic-hero .inner { max-width: none; padding-inline: 8vw; }
  .cosmic-hero h1, .cosmic-hero[data-planet="moon"] h1 { font-size: clamp(6rem, 5.4vw, 13rem); }
  .cosmic-hero .planet-stage, .cosmic-hero[data-planet="moon"] .planet-stage { width: min(70vw, 2400px); right: -3%; }
  .cosmic-hero p.sub { font-size: clamp(1.0625rem, 1vw, 2rem); }
  .cosmic-hero .hero-eyebrow, .cosmic-hero .trust { font-size: clamp(.8125rem, .65vw, 1.25rem); }
  .cosmic-hero .btn { font-size: clamp(.95rem, .7vw, 1.4rem); padding: 1.1rem 2rem; }
  .planet-controls { right: 8%; }
}
