/* Landing: dusk at the refugio. One full-bleed photo, one exchange at a time, very little text. */

/* ---------- hero: the approved sketch. Full-bleed dusk photo, copy on the darkened left,
   the exchange as two large bubbles on the right, a satellite light linked to the question. ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; overflow: hidden; color: #fff; isolation: isolate; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center 40%; z-index: -2; filter: brightness(1.08); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 14 20 / .78) 0%, rgb(10 14 20 / .45) 35%, rgb(10 14 20 / 0) 62%),
              linear-gradient(0deg, rgb(10 14 20 / .55) 0%, rgb(10 14 20 / 0) 22%); }

.hero-in { position: relative; width: 100%; max-width: 1380px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 90px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6);
  padding-top: calc(var(--head-h) + 6svh); padding-bottom: 8svh; }

.hero-copy { align-self: center; }
.hero-copy h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.02em; color: #fff;
  max-width: 9em; margin-bottom: .3em; }
.hero-copy > p { font-size: var(--t-lg); line-height: 1.45; color: var(--snow); max-width: 22em; margin-bottom: var(--s-6); }
.hero-cta { font-size: var(--t-lg); min-height: 56px; padding: .6em 1.4em; }
.hero-copy .hero-note { margin: var(--s-4) 0 0; font-size: var(--t-sm); color: rgb(255 255 255 / .7); max-width: none; }

/* the exchange */
.sky { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 22svh; }
/* a small satellite drifting across the sky */
.sat { position: absolute; top: 7svh; left: 14%; width: 140px; height: 62px; margin: -31px 0 0 -70px; z-index: 1;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / .45)); animation: pass 70s linear -24s infinite; }
.sat svg { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-14deg); }
.sat .panel rect { fill: color-mix(in srgb, var(--lake) 40%, var(--night)); stroke: var(--snow); stroke-width: 1.2; }
.sat .panel path { stroke: var(--lake); stroke-width: .8; fill: none; }
.sat .body { fill: var(--snow); stroke: var(--snow); stroke-width: .8; }
.sat .arm, .sat .dish { stroke: var(--snow); stroke-width: 1.6; fill: none; stroke-linecap: round; }
@keyframes pass { from { transform: translate(-60px, 10px); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { transform: translate(240px, -14px); opacity: 0; } }
@keyframes pass-sm { from { left: 18%; transform: translateY(8px); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { left: 84%; transform: translateY(-10px); opacity: 0; } }

/* the signal path: a soft arc from the question up to the satellite, with a light that travels it */
.link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.link .beam { fill: none; stroke: rgb(255 255 255 / .7); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .5 7; transition: stroke .5s; }
.sky.receiving .link .beam { stroke: rgb(242 92 31 / .85); }
.link .pulse { fill: var(--snow); opacity: 0; filter: drop-shadow(0 0 6px rgb(255 255 255 / .9)); transition: opacity .3s, fill .3s; }
.sky.sending .link .pulse, .sky.receiving .link .pulse { opacity: 1; }
.sky.receiving .link .pulse { fill: var(--dusk); filter: drop-shadow(0 0 8px rgb(242 92 31 / .9)); }

.talk { list-style: none; margin: 0; padding: 0; display: grid; justify-items: end; }
.ex { grid-area: 1 / 1; display: grid; gap: var(--s-4); justify-items: end; align-content: start; margin: 0; visibility: hidden; width: 100%; }
.ex.on { visibility: visible; }
.bubble { margin: 0; width: min(100%, 31em); padding: 18px 22px; border-radius: 14px; text-wrap: pretty;
  font-size: var(--t-lg); line-height: 1.4; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.bubble small { display: block; margin-top: 8px; font-size: .62em; opacity: .75; }
.bubble.ask { background: rgb(16 20 24 / .82); color: #f4f1ea; }
.bubble.ans { background: rgb(242 92 31 / .95); color: var(--accent-ink); font-weight: 500; }

.js .ex.on .bubble { transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.js .sky .ex.on .bubble { opacity: 0; transform: translateY(12px); }
.js .sky.asked .ex.on .bubble.ask, .js .sky.answered .ex.on .bubble.ask, .js .sky.answered .ex.on .bubble.ans { opacity: 1; transform: none; }

.sky figcaption { display: flex; justify-content: flex-end; margin-top: var(--s-4); }
.ex-dots { display: none; gap: 6px; }
.js .ex-dots { display: inline-flex; }
.ex-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.ex-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .5); transition: background .2s, transform .2s; }
.ex-dots button[aria-pressed="true"]::before { background: var(--dusk); transform: scale(1.3); }
.ex-dots button:hover::before { background: #fff; }

/* ---------- how it works: one route line ---------- */
.how { padding-top: var(--s-8); padding-bottom: var(--s-7); }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
  counter-reset: step; position: relative; }
.route::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.route li { counter-increment: step; position: relative; padding-top: 44px; margin: 0; max-width: none; }
.route li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--night); border: 2px solid var(--ink); font-weight: 700; font-size: var(--t-sm); }
.route li:last-child::before { background: var(--dusk); border-color: var(--dusk); color: var(--accent-ink); }
.route b { display: block; font-family: var(--display); font-size: var(--t-lg); font-weight: 700; margin-bottom: 2px; }
.route span { color: var(--muted); }
.route .addr { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- sign-up ---------- */
.start { background: var(--slate); border-block: var(--b-1); padding: var(--s-8) 0; }
.start-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s-7); align-items: start; }
.start-copy h2 { font-size: var(--t-2xl); }
.start-copy p { color: var(--muted); font-size: var(--t-lg); max-width: 24em; }
.start-copy .sos-line { font-size: var(--t-sm); color: var(--ink); display: flex; gap: 10px; align-items: baseline; margin-top: var(--s-3); max-width: none; text-wrap: pretty; }
.start-copy .sos-line::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sos); transform: translateY(1px); }
.start-form { background: var(--night); border: var(--b-1); border-radius: var(--r-2); padding: var(--s-6); }
.start-form .opt { color: var(--muted); font-weight: 400; }
.start-form .btn { margin-top: var(--s-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- FAQ ---------- */
.faq-sec { padding-top: var(--s-8); padding-bottom: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-6); }
.faq-list { min-width: 0; }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .hero-photo img { object-position: 40% 50%; }
  .hero::after { background: linear-gradient(180deg, rgb(10 14 20 / .6) 0%, rgb(10 14 20 / .25) 45%, rgb(10 14 20 / .85) 100%); }
  .hero-in { grid-template-columns: 1fr; gap: var(--s-5); padding-top: calc(var(--head-h) + var(--s-5)); padding-bottom: var(--s-6); }
  .hero-copy h1, .hero-copy > p { text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
  .sky { padding-top: 120px; }
  /* drift across the sky's own width so it never leaves the screen */
  .sat { top: 26px; left: 74%; width: 96px; height: 43px; margin: -21px 0 0 -48px; animation-name: pass-sm; }
  .route { grid-template-columns: 1fr; gap: var(--s-5); }
  .route::before { left: 14px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
  .route li { padding: 2px 0 0 48px; }
  .start-in { grid-template-columns: 1fr; gap: var(--s-5); }
  .start-form { padding: var(--s-5); }
  .faq-sec { grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  .sat { animation: none; opacity: 1; }
  .link .pulse { display: none; }

}

/* one left edge: every landing section shares the hero's container */
.how, .start-in, .faq-sec { max-width: 1380px; padding-inline: clamp(16px, 5vw, 90px); }
