/* Teaser hero, direction B (the planet) with Hugo's satellite and a sparse ring of abstract member
   discs orbiting it. One slow motion moment: the bodies lap the planet and dip behind its lit limb, so
   the motion reads as depth. All motion is CSS (offset-path + a single keyframe), so prefers-reduced-motion
   can stop it and leave a still hero. No inline styles or scripts: everything here, markup is classed SVG.
   Paint order inside .moment gives the depth: the orbit layer is drawn first, the planet over it, so a body
   is hidden wherever it crosses the planet and shows only over open sky above the limb. */

/* Layout: the teaser scrolls. The first .fold holds the title, countdown and the full globe; the waitlist
   form sits in a spacious section below it. */
.prelaunch .teaser { position: relative; display: block; padding: 0; min-height: 0; }
.prelaunch .fold { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding-top: clamp(40px, 9vh, 104px); }
/* Full-bleed art, broken out of the centred .wrap, anchored to the first fold so the whole globe shows. */
.moment { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; z-index: -1; pointer-events: none; overflow: hidden; }

/* The waitlist below the fold, with generous space around and inside it. */
.prelaunch .wl-wrap { width: 100%; display: flex; justify-content: center; padding: clamp(40px, 10vh, 110px) 20px clamp(64px, 14vh, 150px); box-sizing: border-box; }
.prelaunch .wl { margin: 0; width: min(100%, 460px); background: rgba(13,16,21,.92); }
.wl-fields { grid-template-columns: 1fr; }

/* The quiet scroll cue in the first fold. */
.wl-jump { margin-top: clamp(24px, 4.5vh, 48px); display: inline-flex; align-items: center; gap: 8px; color: var(--ash); font-size: 15px; text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 20px; background: rgba(13,16,21,.55); transition: color .2s, border-color .2s; }
.wl-jump:hover, .wl-jump:focus-visible { color: var(--bone); border-color: var(--accent-soft); }
.wl-jump-arrow { animation: wl-bob 2.2s ease-in-out infinite; }
@keyframes wl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* Headline rhythm in the fold. */
.prelaunch .tagline-h1 { font-size: clamp(40px, 6.6vw, 80px); }
.prelaunch .fold .lead { margin-top: 16px; }
.prelaunch .countdown { margin-top: clamp(22px, 3.4vh, 38px); }
.prelaunch .cd-when { margin-top: 12px; }

/* --- The planet (direction B) --- One dark sphere with a single bright rim on its own outer edge, lit
   from the upper left as in Hugo's mock. The rim ring is concentric with the planet, then masked to the
   lit side so it reads as one limb, not a crescent floating inside. --- */
.b-planet, .b-limb, .b-atmo { position: absolute; left: 50%; bottom: -104vmin; width: 170vmin; height: 170vmin; transform: translateX(-50%); border-radius: 50%; }
.b-planet { background: radial-gradient(circle at 38% 30%, #163a5e 0%, #0b2138 38%, #061120 55%, #03070d 64%); box-shadow: inset 0 2px 60px rgba(0,0,0,.6); }
/* The lit rim, on the planet's own edge, faded to the dark side by the mask. */
.b-limb { background: radial-gradient(circle at 50% 50%, transparent 0 48.9%, rgba(190,234,255,1) 49.5%, rgba(0,165,255,.5) 50.1%, transparent 50.8%);
  -webkit-mask: radial-gradient(circle at 40% 22%, #000 0 46%, transparent 74%); mask: radial-gradient(circle at 40% 22%, #000 0 46%, transparent 74%); filter: blur(.4px); }
/* A soft atmosphere glow just outside the same edge. */
.b-atmo { background: radial-gradient(circle at 50% 50%, transparent 0 49.6%, rgba(93,204,255,.5) 50.5%, transparent 53.2%);
  -webkit-mask: radial-gradient(circle at 40% 22%, #000 0 48%, transparent 80%); mask: radial-gradient(circle at 40% 22%, #000 0 48%, transparent 80%); filter: blur(5px); opacity: .85; }
.b-haze { position: absolute; left: 50%; bottom: 2vmin; transform: translateX(-50%); width: 132vmin; height: 52vmin; border-radius: 50%; background: radial-gradient(60% 100% at 50% 100%, rgba(0,175,255,.2), rgba(93,204,255,.08) 55%, transparent 74%); filter: blur(26px); }

/* --- The orbit layers --- Two stacked, bottom-anchored SVGs over the same viewBox: .back behind the
   planet, .front clipped to the near half and over it. The viewBox aspect matches the box (1:1). --- */
.svg-defs { position: absolute; width: 0; height: 0; }
.orbits { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 760px; display: block; }
.ring { fill: none; stroke: rgba(125,196,255,.16); stroke-width: 1.1; }
.ring.r2 { stroke: rgba(125,196,255,.10); }

/* Each body travels its ellipse once per lap; a negative delay sets its place on the ring. The ring paths
   match the drawn ellipses exactly; the parent group's rotate tilts both together. */
.body { animation: orbit 50s linear infinite; }
.orb2 .body { animation-duration: 58s; }
@keyframes orbit { to { offset-distance: 100%; } }

.orb1 .body { offset-path: path('M 20 455 a 700 185 0 1 0 1400 0 a 700 185 0 1 0 -1400 0'); }
.orb2 .body { offset-path: path('M 160 470 a 560 150 0 1 0 1120 0 a 560 150 0 1 0 -1120 0'); }

/* The avatars ride the lower, front arc of the orbit (offset 0% left, 25% bottom, 50% right), so they
   cross the lit face and slip behind the limb at the sides, and never rise into the title, countdown or the
   scroll link above. Spread across ~4 to 46%. */
.b-a { animation-delay: -2s; }     /* ~4% */
.b-b { animation-delay: -9s; }     /* ~18% */
.b-c { animation-delay: -16s; }    /* ~32% */
.b-sat { animation-delay: -23s; }  /* ~46%: the point of light, right */
.b-d { animation-delay: -6s; }     /* ~11% (inner) */
.b-e { animation-delay: -15s; }    /* ~25% (inner) */
.b-f { animation-delay: -23s; }    /* ~40% (inner) */

/* Illustrated member avatars (img/people/*.png) in thin-rim circular frames. A soft shadow lifts them off
   the dark planet so they read as people in orbit. */
.orb1 .body, .orb2 .body { filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.b-sat { filter: none; }
.rim { fill: none; stroke: rgba(255,255,255,.72); stroke-width: 1.5; }

/* A small abstract point of light leading the orbit (no satellite artwork on Orbiteer). */
.b-sat { offset-rotate: 0deg; filter: none; }
.spark { fill: #F4FBFF; }
.spark-halo { fill: #7FD3FF; opacity: .6; filter: blur(3px); }

/* The visitor's own point of light, added to the outer ring after a waitlist sign-up (/waitlist.js). It
   rides the ring like the avatars, upright, with a "You" label and a slow pulse. */
.b-you { offset-rotate: 0deg; filter: none; opacity: 0; transition: opacity .35s; }
.b-you.arrived { opacity: 1; }
.you-core { fill: #F4FBFF; }
.you-halo { fill: #00AFFF; opacity: .55; filter: blur(5px); }
.you-pulse { fill: none; stroke: #7FD3FF; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.b-you.arrived .you-pulse { animation: you-pulse 2.6s ease-out infinite; }
.you-label { fill: #F2F2F0; font: 600 13px var(--sans); letter-spacing: .02em; paint-order: stroke; stroke: rgba(6, 17, 32, .85); stroke-width: 3px; }
@keyframes you-pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.2); } }

/* Reduced motion: hold the bodies still, spread around their rings, and stop the sweep. */
@media (prefers-reduced-motion: reduce) {
  .body { animation: none; }
  .b-a { offset-distance: 4%; }
  .b-b { offset-distance: 18%; }
  .b-c { offset-distance: 32%; }
  .b-sat { offset-distance: 46%; }
  .b-d { offset-distance: 11%; }
  .b-e { offset-distance: 25%; }
  .b-f { offset-distance: 40%; }
  .b-you { offset-distance: 25%; transition: none; }
  .b-you.arrived .you-pulse { animation: none; }
}

/* Phones: the slice shows only the centre of the viewBox, so light the planet from the top-centre to keep
   the rim on-screen; lower and enlarge it so the whole rim reads below the title. The globe stays in the
   first fold (it scrolls away above the form). Fewer avatars so nothing crowds the narrow view. */
@media (max-width: 640px) {
  .b-planet, .b-limb, .b-atmo { bottom: -150vmin; width: 220vmin; height: 220vmin; }
  .b-limb { -webkit-mask: radial-gradient(circle at 50% 20%, #000 0 46%, transparent 74%); mask: radial-gradient(circle at 50% 20%, #000 0 46%, transparent 74%); }
  .b-atmo { -webkit-mask: radial-gradient(circle at 50% 20%, #000 0 48%, transparent 80%); mask: radial-gradient(circle at 50% 20%, #000 0 48%, transparent 80%); }
  .b-c, .b-f { display: none; }
}

/* One globe across both folds (founder ask, 23 Nov): the planet no longer stops at the bottom of the first
   fold; it carries on behind the waitlist section, which sits over its darker body. Clipped sideways only,
   and the whole teaser clips at its own bottom so nothing leaks into the footer. */
.prelaunch .teaser { position: relative; overflow-x: visible; overflow-y: clip; }
.moment { overflow-x: clip; overflow-y: visible; }
.prelaunch .wl-wrap { position: relative; }
