/* Landing page: a dithered moon drifting through its phases, then the newest piece. */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  padding: clamp(12px, 3vw, 40px) var(--pad) clamp(28px, 5vw, 64px);
}
.hero-copy { grid-column: 1 / 7; }
.orbit-wrap { grid-column: 7 / 13; justify-self: center; width: 100%; max-width: 620px; }

h1 {
  margin: 0;
  font-size: clamp(52px, 8.2vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
}
/* Each line masks its own rise-in. The mask is padded well past the glyphs
   (descenders, the comma, the overhanging y) so nothing gets cropped, and the
   negative margin keeps the visual line spacing tight. */
h1 .line { display: block; overflow: hidden; padding: 0.04em 0.12em 0.24em 0.02em; margin: -0.04em -0.12em -0.24em -0.02em; }
h1 .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease-out) forwards;
}
h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
h1 em { font-style: normal; color: var(--red); }
@keyframes rise { to { transform: none; } }

.lede {
  max-width: 44ch;
  margin: clamp(22px, 3vw, 36px) 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.45;
  color: rgb(238 235 227 / 0.72);
  opacity: 0;
  animation: fade 0.9s 0.45s var(--ease-out) forwards;
}
.lede b { color: var(--paper); font-weight: 600; }

.actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
  opacity: 0;
  animation: fade 0.9s 0.6s var(--ease-out) forwards;
}


@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Orbit ---------- */
.orbit {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1;
  width: 100%;
}

.moon {
  position: absolute;
  left: 50%; top: 50%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  opacity: 0;
  animation: moon-in 1.6s 0.2s var(--ease-out) forwards;
}
@keyframes moon-in { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%); } }



/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-copy, .orbit-wrap { grid-column: 1 / -1; }
  .orbit-wrap { max-width: 520px; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
