/* ---------------- Hero ---------------- */
.hero { position: relative; height: 270vh; }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mark { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mark__base path { fill: var(--ivory); }
.mark__gold { fill: var(--gold); }
/* Two columns: the text on the left, an empty .hero__mark on the right. JS fits the
   logo window inside .hero__mark, so the logo is always beside the text and centred
   on the whole text block, never on top of it. */
.hero__copy { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: center; padding-block: 4.5rem clamp(3.5rem, 8vh, 6rem); will-change: transform, opacity; }
.hero__text { container-type: inline-size; display: flex; flex-direction: column; gap: clamp(1.1rem, 3vh, 2rem); min-width: 0; }
.hero__mark { align-self: stretch; min-height: 0; }
/* Headline sizes to its column ("We help people" is the longest line, about 6.1em wide). */
.hero h1 { font-size: clamp(2.4rem, min(16cqi, 12.5vh), 7.25rem); line-height: .98; letter-spacing: -0.03em; }
/* Room for descenders (y, g, p) inside the reveal mask; the negative margin keeps the line spacing. */
.hero h1 .line { display: block; overflow: hidden; padding: .04em .06em .24em; margin: -.04em -.06em -.18em; }
.hero h1 .line > span { display: inline-block; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out-expo); transition-delay: calc(var(--i) * 110ms + 250ms); }
.js .loaded .hero h1 .line > span, .js.loaded .hero h1 .line > span { transform: none; }
.hero h1 .gold { color: var(--gold); }
.hero__body { max-width: 40ch; color: var(--navy-fg-muted); font-size: var(--step-subhead); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.js .hero__fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); transition-delay: var(--d); }
.js.loaded .hero__fade { opacity: 1; transform: none; }
.hero__cue { position: absolute; z-index: 2; right: max(var(--gutter), (100% - var(--wrap)) / 2); /* the wrap's right edge, under the Donate button */ bottom: clamp(1.5rem, 5vh, 3rem); display: flex; align-items: center; gap: .8rem; font-size: var(--step-micro); letter-spacing: .2em; text-transform: uppercase; color: var(--navy-fg-muted); }
.hero__cue i { position: relative; width: 1px; height: 3.5rem; background: rgb(242 239 230 / 20%); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 2.4s var(--ease-out-quart) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__trust { font-size: var(--step-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-fg-muted); }
.hero__trust span { color: var(--gold); padding-inline: .35em; }
@media (max-width: 900px) {
  .hero__body { font-size: var(--step-body); }
}
/* Phones only: the logo takes the open space above the text. */
@media (max-width: 640px) {
  .hero__copy { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: 1.5rem; padding-block: 5.25rem clamp(4.5rem, 10vh, 6rem); }
  .hero__mark { grid-row: 1; }
  .hero__text { grid-row: 2; gap: 1.1rem; }
  .hero h1 { font-size: clamp(2.4rem, min(15cqi, 9vh), 4.6rem); }
  .hero__cue { left: var(--gutter); right: auto; bottom: 1.25rem; }
}
@media (max-width: 520px) {
  .hero__actions .btn { font-size: .8rem; padding: .75em .8em .75em 1.05em; gap: .55rem; }
  .hero__body { font-size: .95rem; line-height: 1.5; }
  .hero__trust { font-size: .68rem; letter-spacing: .1em; }
}

/* ---------------- Night: the problem ---------------- */
.problem__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-top: clamp(3rem, 8vh, 5rem); padding-top: 1.5rem; border-top: 1px solid rgb(230 178 60 / 24%); }
.problem__foot p { font-size: var(--step-subhead); font-family: var(--font-display); font-weight: 400; max-width: 30ch; line-height: 1.3; }

/* ---------------- First light: Lux ---------------- */
.lux__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.lux h2 { margin-top: 1.4rem; max-width: 14ch; }
.lux__body { margin-top: 1.6rem; max-width: 46ch; color: var(--navy-fg-muted); }
.layers { position: relative; }
.layers svg { width: 100%; height: auto; overflow: visible; }
.layers .arc { fill: none; stroke: rgb(242 239 230 / 16%); stroke-width: 2; transition: stroke 500ms var(--ease-out-quart); }
.layers .arc.on { stroke: var(--gold); }
.layers .core { fill: var(--gold); transform-box: fill-box; transform-origin: 50% 100%; }
.layers__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(230 178 60 / 24%); }
@media (max-width: 860px) { .lux__grid { grid-template-columns: 1fr; } }

/* ---------------- Dawn: the journey (pinned) ---------------- */
.journey { height: 340vh; padding: 0; }
.journey__stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: 6.5rem clamp(4.5rem, 9vh, 6rem); overflow: hidden; }
.journey__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.journey__head > div { flex: 1 1 26rem; }
.journey__head h2 { margin-top: 1.2rem; max-width: 16ch; }
.journey__head > p { flex: 0 1 36ch; max-width: 36ch; color: var(--navy-fg-muted); } /* child only: the eyebrow must not inherit 36ch and wrap */
.arcwrap { position: relative; display: grid; place-items: center; min-height: 0; }
.arcwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } /* fills the 1fr row exactly, so it can never spill onto the steps */
.sunpath { fill: none; stroke: rgb(242 239 230 / 18%); stroke-width: 1.5; stroke-dasharray: 3 7; }
.sunpath-lit { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.horizon { stroke: rgb(242 239 230 / 30%); stroke-width: 1; }
.station circle { fill: var(--sky); stroke: rgb(242 239 230 / 45%); stroke-width: 1.5; transition: fill 400ms, stroke 400ms; }
.station.on circle { fill: var(--gold); stroke: var(--gold); }
.station text { fill: var(--ivory); font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .55; transition: opacity 400ms; }
.station.on text { opacity: 1; }
.station .num { font-size: 12px; fill: var(--gold); }
.walker-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .5; }
.walker { fill: var(--gold); }
.steps { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: end; min-height: 8.5rem; }
.steps__count { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: .8; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.steps__panels { position: relative; min-height: 7rem; }
.step { position: absolute; inset: auto 0 0 0; opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out-expo), transform 600ms var(--ease-out-expo); }
.step.on { opacity: 1; transform: none; }
.step h3 { font-size: var(--step-h2); }
.step p { margin-top: .5rem; color: var(--navy-fg-muted); max-width: 44ch; font-size: var(--step-subhead); line-height: 1.4; }
/* Short laptops: win back height for the arc and keep its labels legible as it scales down. */
@media (min-width: 901px) and (max-height: 820px) {
  .journey__stick { padding-top: 5.5rem; }
  .journey__head h2 { margin-top: .8rem; }
  .steps { min-height: 7rem; }
  .steps__panels { min-height: 6.5rem; }
  .station text { font-size: 18px; }
  .station .num { font-size: 14px; }
}
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hills { height: 30vh; height: 30svh; }
  .journey__stick { padding-bottom: 6rem; }
}
@media (max-width: 760px) {
  .station text:not(.num) { display: none; }
  .station .num { font-size: 26px; }
  .journey__head > p { display: none; }
  .steps { grid-template-columns: 1fr; gap: .5rem; }
  .steps__count { font-size: 3.5rem; }
  .step h3 { font-size: 2rem; }
  .step p { font-size: var(--step-body); }
  .steps__panels { min-height: 6rem; } /* hug a two-line step so the count sits close to its title */
}

/* ---------------- Sunrise: a participant's voice ---------------- */
.voice { min-height: 110vh; display: grid; align-items: center; }
.voice.hold, .closer.hold { display: block; min-height: 0; }
.voice figure { margin: 0; }
.voice blockquote { font-weight: 400; font-size: clamp(2.1rem, 1.2rem + 4vw, 5.6rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 19ch; }
.voice blockquote .q { color: var(--navy-600); }
.voice figcaption { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: baseline; margin-top: clamp(2rem, 5vh, 3.5rem); padding-top: 1.25rem; border-top: 1px solid rgb(9 24 50 / 28%); max-width: 62rem; }
.voice figcaption strong { font-size: var(--step-micro); letter-spacing: .16em; text-transform: uppercase; }
.voice figcaption span { font-size: var(--step-caption); max-width: 52ch; color: var(--navy-700); }

/* ---------------- Midday: closing call ---------------- */
.closer { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.closer h2 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 6rem); max-width: 17ch; margin-inline: auto; line-height: 1.02; letter-spacing: -0.03em; }
.closer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: clamp(2rem, 5vh, 3rem); }
.closer p { margin-top: 1.5rem; font-size: var(--step-caption); color: var(--paper-fg-muted); }

