/* ---------------------------------------------------------------
   Home: the scroll-scrubbed city. Canvas layer + sticky copy cards.
   Below 900px, or under prefers-reduced-motion, the canvas is never
   started and the page falls back to a plain stacked document.
--------------------------------------------------------------- */

#city {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
.city-veil {
  position: fixed; top: 0; left: 0; right: 0; height: 110px; z-index: 4;
  pointer-events: none;
  background: linear-gradient(rgba(234,241,248,0.92), rgba(234,241,248,0));
}

.hud {
  position: fixed; left: var(--pad); bottom: 26px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--muted); white-space: nowrap; pointer-events: none;
}
.hud__track { width: 120px; height: 2px; background: rgba(18,38,61,0.14); }
.hud__fill  { height: 2px; background: var(--accent); width: 0; }
.hud__shot  { color: var(--accent-deep); }

.story { position: relative; z-index: 2; }

.shot { height: 170vh; }
.shot--hero { height: 120vh; }
.shot--cta  { height: 130vh; }

.shot__stick {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center;
  padding: 0 var(--pad);
}
.shot--hero .shot__stick { flex-direction: column; justify-content: center; align-items: flex-start; }
.shot--right .shot__stick { justify-content: flex-end; }
.shot--cta .shot__stick {
  flex-direction: column; justify-content: center; align-items: center;
  text-align: center; width: 100%;
}

.shot__card {
  max-width: min(480px, 40vw);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  padding: 34px 38px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  will-change: opacity, transform;
}
.shot--soon .shot__card {
  background: linear-gradient(150deg, rgba(255,255,255,0.55), rgba(255,251,244,0.22));
  border-color: rgba(217,119,43,0.4);
}
.shot__card h2 { margin: 0; }
.shot__card p  { margin-top: 18px; font-size: 16px; line-height: 1.65; }

.hero__kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--accent-deep); margin-bottom: 20px;
}
.hero h1 { max-width: 15ch; }
.hero p  { margin-top: 26px; max-width: 46ch; }
.hero__scroll {
  margin-top: 44px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em; color: var(--faint);
}
.cta-meta {
  margin-top: 56px; display: flex; gap: 36px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
}

/* Elements the scroll engine animates. Visible by default so that the
   page is readable with JavaScript disabled or still loading. */
.js-fade { opacity: 1; transform: none; }
.story--live .js-fade { opacity: 0; }

/* --- static fallback -------------------------------------------- */
.static-sky { display: none; }

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  #city, .city-veil, .hud { display: none; }

  .shot, .shot--hero, .shot--cta { height: auto; }
  .shot__stick {
    position: static; height: auto;
    display: block; padding: 0;
  }
  .shot { padding: clamp(40px, 9vw, 76px) var(--pad); border-bottom: 1px solid var(--line); }
  .shot--hero {
    padding-top: clamp(104px, 20vh, 168px);
    border-bottom: 1px solid var(--line);
  }
  .shot__card {
    max-width: none; padding: 0;
    background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .story--live .js-fade { opacity: 1; }
  .js-fade { opacity: 1 !important; transform: none !important; }

  .static-sky {
    display: block; width: 100%; height: clamp(150px, 34vw, 230px);
    margin-top: 30px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line);
  }
  .hero__scroll { display: none; }
  .shot--cta { border-bottom: 0; text-align: center; }
  .cta-meta { justify-content: flex-start; text-align: left; }
}
