/* ============================================================
   Clearwater — "Tide"
   One continuous scene: sky, sea, sand. Scroll is the time of day.
   ============================================================ */

:root {
  /* scene grade (JS interpolates these along the scroll) */
  --sky-top: #cfe3ee;
  --sky-mid: #efd9be;
  --sky-low: #ffc98b;
  --sea-1: #5e96a8;
  --sea-2: #4f8294;
  --sea-3: #3f6b7a;
  --sun-y: 0vh;
  --sun-o: 1;
  --stars-o: 0;
  --stars-boost: 0;
  --cloud-o: 0.9;
  --shim-o: 0.55;
  --sea-par: 0px;

  /* constants */
  --ink: #33312e;
  --ink-light: #f5f1ea;
  --gold: #ffb347;
  --silver: #dce6f2;
  --sand-night: #3b362f;
  --cream: #f7efe2;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-breath: cubic-bezier(0.45, 0.05, 0.35, 0.95);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-mid);
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ============================================================
   HEADER — overlays the scene, takes no layout space
   ============================================================ */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.6vw, 26px) clamp(20px, 4vw, 44px);
  color: var(--ink-light);
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(13, 23, 48, 0.45);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.about-nav { position: relative; }

.about-btn {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  text-shadow: 0 1px 14px rgba(13, 23, 48, 0.45);
}
.about-btn svg { transition: transform 0.5s var(--ease-breath); }
.about-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.about-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  list-style: none;
  background: var(--cream);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 50px rgba(20, 28, 48, 0.35);
  text-shadow: none;
}
.about-menu a {
  display: block;
  padding: 13px 18px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.about-menu a:hover { background: rgba(51, 49, 46, 0.08); }

/* ============================================================
   THE SCENE — fixed, full-viewport, behind everything
   ============================================================ */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-top),
    var(--sky-mid) 52%,
    var(--sky-low) 78%
  );
}

/* permanent deep-blue zenith band: keeps the overlaid header
   readable (AA) at every point of the grade */
.zenith {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22, 32, 59, 0.68), rgba(22, 32, 59, 0) 17%);
}

.stars {
  position: absolute;
  inset: 0 0 28% 0;
  opacity: max(var(--stars-o), var(--stars-boost));
  transition: opacity 1.6s var(--ease-breath);
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 4s ease-in-out infinite alternate;
}
.star.big { width: 3px; height: 3px; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6); }
@keyframes twinkle {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

.clouds { position: absolute; inset: 0 0 30% 0; opacity: var(--cloud-o); }
.cloud {
  position: absolute;
  background: rgba(255, 238, 222, 0.55);
  border-radius: 50%;
  filter: blur(22px);
}
.cloud.c1 { top: 14%; left: 6%;  width: 34vw; height: 7vh; animation: drift-cloud 130s ease-in-out infinite alternate; }
.cloud.c2 { top: 25%; left: 56%; width: 28vw; height: 6vh; animation: drift-cloud 170s ease-in-out infinite alternate-reverse; }
.cloud.c3 { top: 8%;  left: 38%; width: 22vw; height: 5vh; animation: drift-cloud 150s ease-in-out infinite alternate; }
@keyframes drift-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(9vw); }
}

/* the hero sun */
.sun-sky {
  position: absolute;
  left: 50%;
  bottom: 19%;
  transform: translate(-50%, var(--sun-y));
  opacity: var(--sun-o);
}
.sun-disc {
  width: clamp(210px, min(36vw, 40svh), 400px);
  height: clamp(210px, min(36vw, 40svh), 400px);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, #ffe9bb, #ffb347 58%, #f59a2c 88%);
  box-shadow:
    0 0 70px 26px rgba(255, 186, 92, 0.55),
    0 0 200px 90px rgba(255, 168, 70, 0.3);
  animation: sunrise 2.6s var(--ease-breath) both;
}
@keyframes sunrise {
  from {
    transform: translateY(9vh);
    box-shadow:
      0 0 30px 8px rgba(255, 186, 92, 0.3),
      0 0 80px 30px rgba(255, 168, 70, 0.12);
  }
  to {
    transform: translateY(0);
    box-shadow:
      0 0 70px 26px rgba(255, 186, 92, 0.55),
      0 0 200px 90px rgba(255, 168, 70, 0.3);
  }
}

/* the sea */
.sea {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  transform: translateY(var(--sea-par));
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  display: block;
}
.wave.w1 { height: 100%; animation: drift-wave 34s ease-in-out infinite alternate; }
.wave.w2 { height: 70%;  animation: drift-wave 26s ease-in-out infinite alternate-reverse; }
.wave.w3 { height: 44%;  animation: drift-wave 19s ease-in-out infinite alternate; }
@keyframes drift-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-6%); }
}

.shimmer {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(42vw, 380px);
  height: 8px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 222, 160, 0.85), transparent);
  filter: blur(3px);
  opacity: var(--shim-o);
  animation: shimmer 7s var(--ease-breath) infinite alternate;
}
@keyframes shimmer {
  from { transform: translateX(-50%) scaleX(0.85); }
  to { transform: translateX(-50%) scaleX(1.08); }
}

/* relighting washes — the choice hover repaints the whole world */
.wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.7s var(--ease-breath);
  pointer-events: none;
}
.wash-warm {
  background:
    radial-gradient(110vmax 85vmax at 38% 80%, rgba(255, 176, 71, 0.5), rgba(255, 150, 60, 0.16) 42%, rgba(255, 150, 60, 0) 70%),
    linear-gradient(to top, rgba(255, 172, 82, 0.24), rgba(255, 190, 110, 0.04) 55%, rgba(255, 190, 110, 0));
}
.wash-cool {
  background:
    radial-gradient(110vmax 85vmax at 64% 26%, rgba(160, 188, 240, 0.2), rgba(20, 30, 60, 0) 55%),
    linear-gradient(rgba(9, 15, 36, 0.5), rgba(13, 22, 46, 0.34));
}
body.lit-warm .wash-warm { opacity: 1; }
body.lit-cool .wash-cool { opacity: 1; }
body.lit-cool { --stars-boost: 1; }

/* ============================================================
   SECTIONS
   ============================================================ */

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

/* scoped to the home scene: the quiz's .view sections must not be
   viewport-tall, or .quiz-main's flex centering breaks */
.page-home section { min-height: 100svh; }

/* ---- hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16svh 24px 0;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--ink);
  animation: fade-up 1.4s var(--ease-breath) 0.9s both;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  margin-top: clamp(16px, 2.6vh, 28px);
  color: var(--ink);
  animation: fade-up 1.4s var(--ease-breath) 1.6s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 5svh;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 26px 8px 30px;
  color: var(--ink-light);
  background: rgba(27, 38, 53, 0.55);
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  animation: fade-up 1.4s var(--ease-breath) 2.5s both;
}
.scroll-cue svg { animation: cue-drift 3.8s var(--ease-breath) infinite alternate; }
@keyframes cue-drift {
  from { transform: translateY(0); }
  to { transform: translateY(9px); }
}

/* ---- one breath ---- */
.breath {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: clamp(14px, 2.4vh, 24px);
}
/* subtle local scrim: keeps the dark ink AA-readable while the sky
   grades toward dusk behind it */
.breath::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(140vw, 1100px);
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(247, 239, 226, 0.55), rgba(247, 239, 226, 0) 72%);
  z-index: -1;
  pointer-events: none;
}
.breath .line {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.45;
  max-width: 24ch;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.4s var(--ease-breath), transform 1.4s var(--ease-breath);
}
.breath .line.in { opacity: 1; transform: translateY(0); }
.breath .line:nth-child(2) { transition-delay: 0.35s; }
.breath .line:nth-child(3) { transition-delay: 0.7s; }

/* ---- the choice ---- */
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12svh, 140px) 24px;
  gap: clamp(44px, 7vh, 80px);
}

.choice h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.15;
  color: var(--ink-light);
  text-shadow: 0 2px 28px rgba(13, 23, 48, 0.55);
  /* subtle local scrim so the light prompt stays AA mid-grade */
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(13, 23, 48, 0.45), rgba(13, 23, 48, 0));
}

.paths {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(48px, 12vw, 170px);
  flex-wrap: wrap;
}

.celestial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-decoration: none;
  color: var(--ink-light);
  padding: 12px;
  border-radius: 24px;
}

.orb {
  display: block;
  width: clamp(165px, 26vw, 270px);
  height: clamp(165px, 26vw, 270px);
  border-radius: 50%;
  transition: transform 1.2s var(--ease-breath), filter 1.2s var(--ease-breath);
}

.sun-path .orb {
  background: radial-gradient(circle at 38% 34%, #ffeec6, #ffb347 56%, #f0922a 88%);
  box-shadow:
    0 0 60px 22px rgba(255, 179, 71, 0.55),
    0 0 150px 64px rgba(255, 158, 60, 0.26);
  animation: orb-breathe 6.5s var(--ease-breath) infinite alternate;
}
.moon-path .orb-svg {
  display: block;
  width: clamp(165px, 26vw, 270px);
  height: clamp(165px, 26vw, 270px);
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(214, 228, 248, 0.5));
  transition: transform 1.2s var(--ease-breath), filter 1.2s var(--ease-breath);
  animation: orb-breathe 6.5s var(--ease-breath) infinite alternate-reverse;
}
@keyframes orb-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

.celestial:hover .orb,
.celestial:focus-visible .orb { transform: scale(1.05); }
.celestial:hover .orb-svg,
.celestial:focus-visible .orb-svg { transform: scale(1.05); }

/* gently dim the path not being considered */
body.lit-warm .moon-path .orb-svg { filter: drop-shadow(0 0 20px rgba(214, 228, 248, 0.3)) brightness(0.82) saturate(0.85); }
body.lit-cool .sun-path .orb { filter: brightness(0.8) saturate(0.85); }

.path-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  text-shadow: 0 2px 18px rgba(13, 23, 48, 0.65);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.1s var(--ease-breath), transform 1.1s var(--ease-breath);
}
.celestial:hover .path-line,
.celestial:focus-visible .path-line {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .path-line { opacity: 1; transform: none; }
}

/* ============================================================
   FOOTER — on the sand
   ============================================================ */

.shore {
  position: relative;
  color: var(--ink-light);
  text-align: center;
}
.dune {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 90px);
}
.shore-inner {
  background: var(--sand-night);
  padding: clamp(40px, 7vh, 80px) 24px clamp(48px, 8vh, 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-frame {
  width: 158px;
  height: 158px;
  padding: 13px;
  border: 1px solid rgba(245, 241, 234, 0.35);
  border-radius: 18px;
  background: rgba(245, 241, 234, 0.06);
}
.qr-frame svg { display: block; width: 100%; height: 100%; }

.take-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-top: 12px;
}

.dl-link {
  color: var(--ink-light);
  font-size: 1.125rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.shore-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 3vw, 26px);
  margin-top: clamp(28px, 5vh, 52px);
}
.shore-nav a {
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(245, 241, 234, 0.3);
}
.shore-nav a:hover { border-bottom-color: var(--ink-light); }

.reach-line {
  margin-top: clamp(14px, 2.5vh, 24px);
  font-size: 1.125rem;
  color: rgba(245, 241, 234, 0.9);
}
.reach-line a {
  color: var(--ink-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.safety {
  margin-top: clamp(22px, 4vh, 40px);
  font-size: 1.125rem;
  color: rgba(245, 241, 234, 0.78);
}

/* the same quiet crisis line, fixed on the quiz and moon pages
   (pill backdrop matches the scroll cue, and keeps it AA over the sea) */
.safety-page {
  position: fixed;
  left: clamp(16px, 4vw, 44px);
  bottom: clamp(14px, 3vh, 30px);
  z-index: 20;
  margin: 0;
  max-width: calc(100vw - 180px); /* clears the quiz's sun progress on phones */
  text-align: left;
  color: var(--ink-light);
  background: rgba(27, 38, 53, 0.55);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ============================================================
   QUIZ PAGE
   ============================================================ */

body.page-quiz {
  --sky-top: #cfe3ee;
  --sky-mid: #ecd9c2;
  --sky-low: #ffc98b;
}

.quiz-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 140px;
}

.view { display: none; width: min(100%, 580px); text-align: center; }
.view.active { display: block; }

.view h1,
.view h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.25;
  color: var(--ink);
}
.view h1:focus,
.view h2:focus,
.thanks h2:focus { outline: none; }

.view .sub {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--ink);
}
.view .privacy {
  margin-top: 10px;
  font-size: 1.125rem;
  color: rgba(51, 49, 46, 0.75);
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(28px, 5vh, 48px);
  align-items: center;
}

.btn {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(51, 49, 46, 0.22);
  border-radius: 16px;
  padding: 16px 28px;
  min-height: 56px;
  width: min(100%, 460px);
  cursor: pointer;
  transition: transform 0.5s var(--ease-breath), background 0.5s var(--ease-breath), box-shadow 0.5s var(--ease-breath);
}
.btn:hover {
  background: #fffaf0;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(51, 49, 46, 0.14);
}

.btn-primary {
  background: var(--gold);
  border-color: rgba(51, 49, 46, 0.25);
}
.btn-primary:hover { background: #ffc063; }

.btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-btn {
  margin-top: clamp(24px, 4vh, 40px);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quiet-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* sun-rising progress */
.sun-progress {
  position: fixed;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vh, 36px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  background: rgba(247, 239, 226, 0.88);
  border-radius: 20px;
  padding: 10px 16px 6px;
}
.sun-progress svg { display: block; }
.sun-progress .sun-dot { transition: transform 1.2s var(--ease-breath); }
.sun-progress .count { font-size: 1.125rem; font-weight: 700; }

/* contact form */
.contact-form {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.field {
  width: min(100%, 460px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label { font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.field input {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--ink);
  background: rgba(255, 252, 245, 0.92);
  border: 1px solid rgba(51, 49, 46, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  min-height: 52px;
  width: 100%;
}
.field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.field-error {
  font-size: 1.125rem;
  font-weight: 600;
  color: #7c2d1e;
}
.moon-form .field-error { color: #ffd9cf; }

/* ============================================================
   MOON PAGE
   ============================================================ */

body.page-moon {
  --sky-top: #0d1730;
  --sky-mid: #1e2a4a;
  --sky-low: #3a3560;
  --sea-1: #27424e;
  --sea-2: #20363f;
  --sea-3: #1a2c34;
  --stars-o: 1;
  --cloud-o: 0.15;
  --shim-o: 0.35;
  color: var(--ink-light);
}

body.page-moon .shimmer {
  background: linear-gradient(90deg, transparent, rgba(214, 228, 248, 0.7), transparent);
}

.moon-sky {
  position: absolute;
  top: 12%;
  right: clamp(4%, 10vw, 14%);
}
.moon-sky svg {
  display: block;
  width: clamp(190px, 30vw, 320px);
  height: clamp(190px, 30vw, 320px);
  filter: drop-shadow(0 0 40px rgba(214, 228, 248, 0.45));
  animation: moon-glow 8s var(--ease-breath) infinite alternate;
}
@keyframes moon-glow {
  from { filter: drop-shadow(0 0 30px rgba(214, 228, 248, 0.35)); }
  to { filter: drop-shadow(0 0 52px rgba(214, 228, 248, 0.55)); }
}
body.moon-lit .moon-sky svg {
  filter: drop-shadow(0 0 64px rgba(220, 234, 252, 0.7));
  animation: none;
}

.moon-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 140px;
}

.moon-card {
  width: min(100%, 560px);
  text-align: center;
  animation: fade-up 1.6s var(--ease-breath) 0.5s both;
}

.moon-card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.25;
  color: var(--ink-light);
  text-shadow: 0 2px 24px rgba(9, 15, 36, 0.6);
}

.moon-form {
  margin-top: clamp(30px, 5vh, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.moon-form .field label { color: var(--ink-light); }
.moon-form .field input {
  background: rgba(13, 23, 48, 0.55);
  border: 1px solid rgba(220, 230, 242, 0.45);
  color: var(--ink-light);
}
.moon-form .field input::placeholder { color: rgba(220, 230, 242, 0.55); }
.moon-form .field input:focus-visible { outline-color: var(--ink-light); }

.btn-moon {
  background: var(--silver);
  color: #232c4e;
  border-color: rgba(220, 230, 242, 0.4);
}
.btn-moon:hover { background: #ecf2fb; }

.moon-quiet {
  margin-top: clamp(26px, 5vh, 44px);
  font-size: 1.125rem;
  color: rgba(245, 241, 234, 0.82);
}
.moon-quiet a {
  color: var(--ink-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.thanks h2, .thanks p { color: inherit; }
.thanks-note { margin-top: 14px; font-size: 1.125rem; }

[hidden] { display: none !important; }

/* ============================================================
   SMALL SCREENS
   ============================================================ */

@media (max-width: 720px) {
  .paths { flex-direction: column; align-items: center; gap: 56px; }
  .choice { justify-content: flex-start; padding-top: 110px; }
  .sun-progress { bottom: 14px; right: 14px; }
}

/* moon page: words sit left of the moon on wide screens,
   beneath it on narrow ones */
@media (min-width: 1001px) {
  .moon-card { margin-right: clamp(120px, 26vw, 360px); }
}
@media (max-width: 1000px) {
  .moon-sky { top: 7%; right: 50%; transform: translateX(50%); }
  .moon-sky svg { width: clamp(180px, 26vw, 250px); height: clamp(180px, 26vw, 250px); }
  .moon-main { padding-top: clamp(280px, 44svh, 400px); align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION — static scene per section, instant changes
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .breath .line { opacity: 1; transform: none; }
  .path-line { opacity: 1; transform: none; }
  .sun-disc { transform: none; }
}
