/* Guardian particle terrain hero + calm bands (pass 2).
   Colours are the existing tokens only: deep blue ground, accent blue points. */

/* ---- hero: one viewport, the map turns on its own (no scroll drive) ---- */
.hero-terrain{position:relative;height:100vh;height:100svh;min-height:560px;background:var(--blue-deep);color:#fff;padding:0;overflow:visible}
.hero-terrain .hero-sticky{position:relative;height:100%;overflow:hidden;background:var(--blue-deep)}
.hero-terrain .terrain-canvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.hero-terrain .terrain-fallback{display:none;position:absolute;left:0;bottom:0;width:100%;height:60%}
.hero-terrain.terrain-nogl .terrain-fallback{display:block}
.hero-terrain .hero-text{position:absolute;left:0;right:0;top:0;padding-top:calc(74px + clamp(40px,6vh,72px));text-align:center;z-index:3;pointer-events:auto}
.hero-terrain .hero-body{max-width:860px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.hero-terrain .sdvosb-chip{background:rgba(255,255,255,.08);border:1px solid rgba(148,186,224,.3);color:#D6E6F7}
.hero-terrain .hero-h1{color:#fff}
.hero-terrain .hero-h1 em{color:#9CCBF5}
.hero-terrain .hero-sub{color:#C9D8E8;max-width:62ch;margin-left:auto;margin-right:auto}
.hero-terrain .hero-ctas{justify-content:center}
.hero-terrain .btn-g{background:rgba(255,255,255,.06);color:#fff;border-color:rgba(148,186,224,.35)}
.hero-terrain .btn-g:hover{background:rgba(255,255,255,.12);color:#fff}
.hero-terrain .tagline{color:#A9BDD3;justify-content:center}
.hero-terrain .tagline span{color:#A9BDD3}
.hero-terrain .tagline-line{background:rgba(148,186,224,.35)}
.hero-terrain .hero-arc{display:none}
/* captions: lower left, over a soft deep-blue gradient so they stay readable */
.hero-captions{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:0 2rem clamp(28px,6vh,56px);pointer-events:none;background:linear-gradient(180deg,rgba(10,47,82,0) 0%,rgba(10,47,82,.55) 55%,rgba(10,47,82,.85) 100%)}
.hero-captions .container{position:relative;min-height:3.2em}
.hero-captions p{position:absolute;left:0;bottom:0;margin:0;font-family:var(--grotesk);font-size:clamp(24px,2.6vw,34px);font-weight:700;letter-spacing:-.025em;line-height:1.15;color:#fff;max-width:18ch;opacity:0;transform:translateY(6px);transition:opacity .5s ease,transform .5s ease}
.hero-terrain[data-state="0"] p[data-cap="0"],.hero-terrain[data-state="1"] p[data-cap="1"],.hero-terrain[data-state="2"] p[data-cap="2"]{opacity:1;transform:none;transition:opacity .7s ease .45s,transform .7s ease .45s}
.hero-terrain[data-state="2"] p[data-cap="2"]{color:#9CCBF5}
@media(max-width:900px){
  .hero-terrain .hero-text{padding-top:calc(74px + 28px)}
  .hero-captions{padding-left:1.25rem;padding-right:1.25rem}
}
@media (prefers-reduced-motion: reduce){
  .hero-captions p{transition:none}
}

/* ---- calm mode: a band or dark hero with the landscape at rest behind it ---- */
[data-terrain="calm"]{position:relative;overflow:hidden}
[data-terrain="calm"] .terrain-canvas{position:absolute;left:0;top:0;width:100%;height:100%;opacity:.3;pointer-events:none;z-index:0}
[data-terrain="calm"] > *:not(.terrain-canvas):not(.terrain-fallback){position:relative;z-index:1}
[data-terrain="calm"] .terrain-fallback{display:none;position:absolute;left:0;bottom:0;width:100%;height:55%;opacity:.25;pointer-events:none}
[data-terrain="calm"].terrain-nogl .terrain-fallback{display:block}

/* ---- SVG fallback (no WebGL): dotted ridgeline in the same colours ---- */
.terrain-fallback path{fill:none;stroke:#2E90DE;stroke-width:2;stroke-dasharray:1 7;stroke-linecap:round}
.terrain-fallback path.soft{stroke:#1668B8;stroke-dasharray:1 10;opacity:.6}
