/* SmartQoD — coming soon (draft)
   Palette: navy #152b42 · lime #94c916 · dark green #4f7a06 · near-white neutrals */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #152b42;
  --navy-deep: #0f2033;
  --navy-soft: #1d3854;
  --lime: #94c916;
  --green: #4f7a06;
  --paper: #f6f8f4;
  --white: #ffffff;
  --ink: #152b42;
  --ink-2: #4a5b6c;      /* 6.9:1 on paper */
  --on-dark: #ffffff;
  --on-dark-2: #b9c4cf;  /* 8.4:1 on navy */
  --line-dark: rgba(255,255,255,.12);
  --line-light: rgba(21,43,66,.10);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --section: clamp(96px, 14vw, 176px);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,p { margin: 0; }
a { color: inherit; }
svg { display: block; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--lime); color: var(--navy); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); }
.brand__shield { width: 27px; height: auto; aspect-ratio: 58.63 / 64; }
.brand__word { width: 112px; height: auto; aspect-ratio: 289.08 / 40; margin-top: 2px; }
.brand--sm .brand__shield { width: 22px; }
.brand--sm .brand__word { width: 92px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --h: 40px; padding: 0 16px 0 18px; font-size: 14px; }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { background: #a3d92a; box-shadow: 0 10px 30px -10px rgba(148,201,22,.55); }
.btn[disabled] { cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.on-light { color: var(--navy); }
.nav.on-light .brand { color: var(--navy); }
.nav.on-light .btn--ghost { color: var(--navy); border-color: rgba(21,43,66,.22); background: rgba(21,43,66,.03); }
.nav.on-light .btn--ghost:hover { border-color: rgba(21,43,66,.5); }
.nav.is-scrolled.on-light { background: rgba(246,248,244,.82); box-shadow: 0 1px 0 var(--line-light); }
.brand, .nav .btn--ghost { transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); }
.nav.is-scrolled { background: rgba(21,43,66,.82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line-dark); }

/* =====================================================================
   HERO — the night
   ===================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 132px 0 clamp(200px, 24vw, 300px);
  color: var(--on-dark);
  background: linear-gradient(180deg, #0a1624 0%, #0e1f33 45%, #13283f 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg > * { position: absolute; will-change: transform; }

.stars { inset: 0; width: 100%; height: 100%; fill: #fff; }
.stars--far { opacity: .7; }
.stars .tw { animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero__shield { right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 - 10px)); top: 15%; width: clamp(260px, 30vw, 430px); aspect-ratio: 58.63 / 64; }
.hero__shield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shield-faint { color: rgba(255,255,255,.07); }
.hero__shield-lit { color: var(--lime); opacity: .16; filter: drop-shadow(0 0 40px rgba(148,201,22,.28)); }

.dawn { left: 50%; bottom: -46%; width: 160vw; height: 90%; margin-left: -80vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(148,201,22,.30), rgba(148,201,22,.10) 45%, rgba(148,201,22,0) 75%); opacity: .55; }

.city { left: 0; right: 0; bottom: 0; height: clamp(170px, 21vw, 300px); }
.city__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city__far path { fill: #1d3753; }
.city__near path { fill: var(--navy); }
.city--far { bottom: 14px; opacity: .9; }
.win { opacity: 0; transition: opacity .9s var(--ease); }
.wins--near .win { fill: #f4f8e8; }
.wins--far .win { fill: #cfe59a; }
.win.on { opacity: .85; }
.wins--far .win.on { opacity: .45; }

.hero__inner { position: relative; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 13px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); background: rgba(21,43,66,.5); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(148,201,22,.6); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(148,201,22,.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(148,201,22,0); } }

.hero__title { margin-top: 28px; max-width: 12ch; font-size: clamp(48px, 8.4vw, 112px); line-height: .98; font-weight: 750; letter-spacing: -.045em; }
.hero__title .dim { color: rgba(255,255,255,.34); }
.hero__title .lit { color: var(--white); background: linear-gradient(90deg, #fff 0%, #fff 55%, var(--lime) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lede { margin-top: 30px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--on-dark-2); }

.hero__actions { margin-top: 44px; max-width: 520px; }
.early { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(15,32,51,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.early__input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--white); font: 450 16px/1 var(--font); outline: none; }
.early__input::placeholder { color: rgba(255,255,255,.45); }
.early__input:disabled { cursor: not-allowed; }
.early__btn { --h: 48px; }
.early__btn[disabled] { background: rgba(148,201,22,.9); color: var(--navy); }
.early__note { margin-top: 14px; padding-left: 20px; font-size: 14px; color: var(--on-dark-2); }
.early__note a { color: var(--lime); font-weight: 600; text-decoration: none; white-space: nowrap; }
.early__note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   QoD — dusk to dawn.
   Static (no JS / reduced motion): a normal section with a navy→paper gradient.
   Motion on (.px): a pinned stage where light sweeps in and daylight rises.
   ===================================================================== */
.qod { position: relative; color: var(--on-dark); text-align: center; background: var(--navy); }
.qod__stage { position: relative; overflow: hidden; isolation: isolate;
  padding: var(--section) 0 calc(var(--section) * 1.9);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 50%, var(--paper) 100%); /* fallback */
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 22%, var(--navy) 50%,
    color-mix(in oklab, var(--navy), var(--paper) 4%) 56%, color-mix(in oklab, var(--navy), var(--paper) 12%) 62%,
    color-mix(in oklab, var(--navy), var(--paper) 25%) 68%, color-mix(in oklab, var(--navy), var(--paper) 42%) 74%,
    color-mix(in oklab, var(--navy), var(--paper) 60%) 80%, color-mix(in oklab, var(--navy), var(--paper) 76%) 86%,
    color-mix(in oklab, var(--navy), var(--paper) 89%) 92%, color-mix(in oklab, var(--navy), var(--paper) 97%) 97%, var(--paper) 100%);
}
.qod__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.qod__inner { position: relative; display: grid; }
.qod__copy { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; }
.qod__mark { width: 50px; height: auto; aspect-ratio: 58.63 / 64; color: var(--lime); }
.qod__title { margin-top: 28px; font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; color: var(--white); }
.qod__title .hl { color: var(--lime); }
.qod__text { margin: 24px auto 0; max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-dark-2); }
.qod__copy--day .qod__mark { color: var(--navy); }
.qod__copy--day .qod__title { color: var(--navy); }
.qod__copy--day .qod__title .hl { color: var(--green); }
.qod__copy--day .qod__text { color: var(--ink-2); }

/* ---------- Features ---------- */
.features { background: var(--paper); padding: 0 0 var(--section); margin-top: -1px; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.section-title { margin-top: 14px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; }
.card__body {
  position: relative; height: 100%; padding: 30px 28px 32px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line-light);
  box-shadow: 0 1px 2px rgba(21,43,66,.04), 0 12px 32px -18px rgba(21,43,66,.18);
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover .card__body { border-color: rgba(79,122,6,.28); box-shadow: 0 1px 2px rgba(21,43,66,.04), 0 24px 48px -24px rgba(21,43,66,.28); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(148,201,22,.16); color: var(--green); }
.card__icon svg { width: 24px; height: 24px; }
.card__title { margin-top: 26px; font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
.card__text { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Crews ---------- */
.crews { background: var(--paper); padding: 0 0 var(--section); }
.crews__inner { position: relative; padding-top: calc(var(--section) * .8); display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; }
.crews__inner::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-light); }
.crews__title { font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.crews__title span { display: block; color: var(--green); }
.crews__text { max-width: 26em; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); padding-bottom: 8px; }

/* ---------- Close ---------- */
.close { background: var(--navy); color: var(--on-dark); padding: var(--section) 0; text-align: center; }
.close__inner { display: flex; flex-direction: column; align-items: center; }
.close__mark { width: 42px; height: auto; aspect-ratio: 58.63 / 64; color: var(--white); }
.close__title { margin-top: 24px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.close__text { margin-top: 14px; color: var(--on-dark-2); }
.close .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--on-dark-2); }
.footer__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px 32px; }
.footer__inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer__meta { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.sep { opacity: .5; }

/* ---------- Reveal (IntersectionObserver) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   PARALLAX (only when html.px — JS present and motion allowed)
   One set of keyframes, two drivers:
   • html.sda   → native CSS scroll-driven animations (view timelines)
   • html.rafpx → js/main.js maps scroll progress to each animation's currentTime (rAF)
   Only transform + opacity are animated.
   ===================================================================== */
:root { --k: 1; }                       /* parallax intensity */

/* Pinned QoD stage */
.px .qod { height: 230vh; background: var(--navy); }
.px .qod__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: grid; align-items: center; background: var(--navy); }
.px .qod__fx { display: block; }

.beam { position: absolute; top: -6%; width: 90vw; height: 125%; transform-origin: 50% 0; opacity: 0;
  background: conic-gradient(from 0deg at 50% 0%, rgba(214,236,170,0) 164deg, rgba(214,236,170,.10) 172deg, rgba(225,242,190,.26) 180deg, rgba(214,236,170,.10) 188deg, rgba(214,236,170,0) 196deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 50%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 50%, transparent 92%); }
.beam--l { left: -30vw; }
.beam--r { right: -30vw; }
.spot { left: 50%; top: 50%; width: min(1100px, 130vw); aspect-ratio: 1.8; margin: calc(min(1100px, 130vw) / -3.6) 0 0 calc(min(1100px, 130vw) / -2); position: absolute;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(148,201,22,.16), rgba(148,201,22,.10) 30%, rgba(148,201,22,.045) 60%, rgba(148,201,22,.012) 85%, rgba(148,201,22,0)); opacity: 0; }
/* daylight: a paper layer whose top edge is a soft 28vh fade (mask), rising as a wipe.
   Its copy counter-translates so the text stays put while light passes over it. */
.day { position: absolute; left: 0; right: 0; top: -28vh; height: calc(100% + 28vh); z-index: 1; display: none;
  background: var(--paper); transform: translateY(128vh);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 14vh, #000 28vh);
          mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 14vh, #000 28vh);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.day__inner { position: absolute; left: 0; right: 0; top: 28vh; bottom: 0; display: grid; align-items: center; }
.px .day { display: block; }

/* keyframes ------------------------------------------------------------ */
@keyframes k-stars-far  { to { transform: translate3d(0, calc(var(--k) * 380px), 0); } }
@keyframes k-stars-near { to { transform: translate3d(0, calc(var(--k) * 230px), 0); } }
@keyframes k-shield     { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0, calc(var(--k) * 260px), 0) scale(1.06); } }
@keyframes k-shield-lit { 0% { opacity: 0; } 15% { opacity: .05; } 75%,100% { opacity: .62; } }
@keyframes k-dawn       { from { transform: translate3d(0,0,0); opacity: .35; } to { transform: translate3d(0, calc(var(--k) * -200px), 0); opacity: 1; } }
@keyframes k-city-far   { to { transform: translate3d(0, calc(var(--k) * 150px), 0); } }
@keyframes k-city-near  { to { transform: translate3d(0, calc(var(--k) * 50px), 0); } }
@keyframes k-hero-copy  { 0% { transform: none; opacity: 1; } 100% { transform: translate3d(0, calc(var(--k) * -70px), 0); opacity: .15; } }

@keyframes k-beam-l { 0% { transform: rotate(-34deg); opacity: 0; } 16% { opacity: 1; } 40% { transform: rotate(-8deg); opacity: 1; } 60%,100% { transform: rotate(4deg); opacity: 0; } }
@keyframes k-beam-r { 0% { transform: rotate(34deg); opacity: 0; } 16% { opacity: 1; } 40% { transform: rotate(8deg); opacity: 1; } 60%,100% { transform: rotate(-4deg); opacity: 0; } }
@keyframes k-spot   { 0% { transform: scale(.55); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 70%,100% { transform: scale(1.25); opacity: 0; } }
@keyframes k-day    { 0%,30% { transform: translate3d(0,128vh,0); } 82%,100% { transform: translate3d(0,0,0); } }
@keyframes k-day-inner { 0%,30% { transform: translate3d(0,-128vh,0); } 82%,100% { transform: translate3d(0,0,0); } }
@keyframes k-night  { 0% { opacity: .55; transform: translate3d(0,40px,0) scale(.98); } 22%,100% { opacity: 1; transform: none; } }

@keyframes k-card   { 0% { transform: translate3d(0, calc(var(--k) * var(--depth)), 0); opacity: 0; } 22% { opacity: 1; } 50%,100% { transform: none; opacity: 1; } }

/* attach --------------------------------------------------------------- */
.px .a-stars-far  { animation: k-stars-far  linear both; }
.px .a-stars-near { animation: k-stars-near linear both; }
.px .a-shield     { animation: k-shield     linear both; }
.px .a-shield-lit { animation: k-shield-lit linear both; }
.px .a-dawn       { animation: k-dawn       linear both; }
.px .a-city-far   { animation: k-city-far   linear both; }
.px .a-city-near  { animation: k-city-near  linear both; }
.px .a-hero-copy  { animation: k-hero-copy  linear both; }
.px .a-beam-l     { animation: k-beam-l     linear both; }
.px .a-beam-r     { animation: k-beam-r     linear both; }
.px .a-spot       { animation: k-spot       linear both; }
.px .a-day        { animation: k-day        linear both; }
.px .a-day-inner  { animation: k-day-inner  linear both; }
.px .a-night      { animation: k-night      linear both; }
.px .a-card       { animation: k-card       linear both; }
.a-card--1 { --depth: 60px; } .a-card--2 { --depth: 120px; } .a-card--3 { --depth: 90px; } .a-card--4 { --depth: 150px; }

/* driver 1: native scroll-driven animations */
.sda .hero     { view-timeline: --hero block; }
.sda .qod      { view-timeline: --qod block; }
.sda .features { view-timeline: --feat block; }
.sda .hero [class*="a-"] { animation-duration: auto; animation-timeline: --hero; animation-range: exit-crossing 0% exit-crossing 100%; }
.sda .qod  [class*="a-"] { animation-duration: auto; animation-timeline: --qod;  animation-range: contain 0% contain 100%; }
.sda .features [class*="a-"] { animation-duration: auto; animation-timeline: --feat; animation-range: cover 0% cover 100%; }
/* `timeline-scope` lets descendants of the scene find the named timeline */
.sda body { timeline-scope: --hero, --qod, --feat; }

/* driver 2: JS fallback — animations are paused; main.js sets currentTime (0–1000ms) */
.rafpx [class*="a-"] { animation-duration: 1000ms; animation-play-state: paused; }

/* windows: under .px they light one by one (JS adds .lit) */
.px .win.on { opacity: 0; }
.px .win.lit { opacity: .85; }
.px .wins--far .win.lit { opacity: .45; }

/* hero copy / cards are parallax-driven: no IO reveal transforms there */
.px .a-card { opacity: 1; }


/* =====================================================================
   AMBIENT LIGHT & SHADOW (v3)
   Soft, blurred organic shapes taken from Kiril's illustration backdrops
   (the "blob" behind each scene), plus a blinds shadow in the daylight.
   Static by default (low-opacity, no motion); under .px they drift with
   scroll at their own depth and float very slowly. Transform/opacity only;
   the blur is on an inner element whose content never changes, so the
   compositor only moves a cached layer.
   ===================================================================== */
:root { --amb: 1; }                     /* ambient opacity multiplier (halved on phones) */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.features, .crews, .close { position: relative; isolation: isolate; }
.features > .wrap, .crews > .wrap, .close > .wrap { position: relative; z-index: 1; }
.amb { position: absolute; pointer-events: none; will-change: transform; }
.amb__float { width: 100%; height: 100%; }
.amb svg { display: block; width: 100%; height: 100%; overflow: visible; filter: blur(var(--blur, 48px)); }
.amb--shade path { fill: #030a14; }
.amb--lime  path { fill: var(--lime); }
.features .amb--shade path, .day .amb--shade path { fill: var(--navy); }

/* placements + opacities (4–12%) */
.amb--h1 { left: -12%; top: 6%;  width: 58vw; aspect-ratio: 1.14; opacity: calc(.45 * var(--amb)); }   /* deep shadow pool on navy (≈ 6–8% visible darkening) */
.amb--h2 { right: -6%; top: -14%; width: 46vw; aspect-ratio: 1.1;  opacity: calc(.07 * var(--amb)); --blur: 60px; }
.amb--q1 { right: -12%; top: -22%; width: 60vw; aspect-ratio: 1.1; opacity: calc(.06 * var(--amb)); --blur: 56px; }
.amb--f1 { right: -14%; top: 18%;  width: 62vw; aspect-ratio: 1.14; opacity: calc(.06 * var(--amb)); --blur: 64px; }
.amb--f2 { left: -16%;  top: -6%;  width: 44vw; aspect-ratio: 1.1;  opacity: calc(.12 * var(--amb)); --blur: 60px; }
.amb--c1 { right: -8%;  top: -10%; width: 48vw; aspect-ratio: 1.14; opacity: calc(.11 * var(--amb)); --blur: 64px; }
.amb--x1 { left: 50%; top: 10%; width: 64vw; margin-left: -32vw; aspect-ratio: 1.1; opacity: calc(.08 * var(--amb)); --blur: 70px; }

/* blinds: light through a window, falling on the daylight (only exists inside the rising day layer) */
.blinds { position: absolute; left: -25%; top: -20%; width: 150%; height: 140%; pointer-events: none; opacity: calc(.75 * var(--amb));
  background: repeating-linear-gradient(112deg,
    rgba(21,43,66,0) 0, rgba(21,43,66,.055) 22px, rgba(21,43,66,.065) 46px, rgba(21,43,66,.055) 70px, rgba(21,43,66,0) 92px, rgba(21,43,66,0) 150px);
  -webkit-mask-image: radial-gradient(46% 36% at 60% 44%, #000 0%, rgba(0,0,0,.55) 45%, transparent 80%);
          mask-image: radial-gradient(46% 36% at 60% 44%, #000 0%, rgba(0,0,0,.55) 45%, transparent 80%);
  transform: translate3d(-6%, 0, 0) rotate(-2deg); }

/* card shadow that deepens with depth: a soft shadow layer that is larger/lower while a card is "lifted" */
.card__shadow { position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  box-shadow: 0 34px 64px -26px rgba(21,43,66,.20); opacity: .45; }

/* ambient keyframes (transform / opacity only) */
@keyframes k-amb-h1 { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(calc(var(--k) * 60px), calc(var(--k) * 300px), 0) rotate(14deg); } }
@keyframes k-amb-h2 { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(calc(var(--k) * -80px), calc(var(--k) * 180px), 0) rotate(-10deg); } }
@keyframes k-blinds { 0%,30% { transform: translate3d(-14%, 0, 0) rotate(-4deg); opacity: 0; } 55% { opacity: calc(.75 * var(--amb)); } 100% { transform: translate3d(6%, 0, 0) rotate(1deg); opacity: calc(.75 * var(--amb)); } }
@keyframes k-amb-q1 { 0%,30% { transform: translate3d(0, calc(var(--k) * 120px), 0) rotate(-6deg); } 100% { transform: translate3d(calc(var(--k) * -60px), 0, 0) rotate(4deg); } }
@keyframes k-amb-f1 { from { transform: translate3d(0, calc(var(--k) * -140px), 0) rotate(-8deg); } to { transform: translate3d(calc(var(--k) * -40px), calc(var(--k) * 140px), 0) rotate(6deg); } }
@keyframes k-amb-f2 { from { transform: translate3d(0, calc(var(--k) * 160px), 0); } to { transform: translate3d(calc(var(--k) * 50px), calc(var(--k) * -120px), 0) rotate(-8deg); } }
@keyframes k-amb-c1 { from { transform: translate3d(0, calc(var(--k) * 140px), 0) rotate(-6deg); } to { transform: translate3d(calc(var(--k) * -70px), calc(var(--k) * -110px), 0) rotate(8deg); } }
@keyframes k-amb-x1 { from { transform: translate3d(0, calc(var(--k) * 180px), 0) scale(.9); } to { transform: translate3d(0, calc(var(--k) * -60px), 0) scale(1.05); } }
@keyframes k-card-shadow { 0% { transform: translate3d(0, calc(var(--k) * var(--depth) * .22), 0) scale(1.05); opacity: 1; } 50%,100% { transform: none; opacity: .45; } }
@keyframes k-float { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(1.6%, -2.2%, 0) rotate(3deg); } }

.px .a-amb-h1 { animation: k-amb-h1 linear both; }
.px .a-amb-h2 { animation: k-amb-h2 linear both; }
.px .a-blinds { animation: k-blinds linear both; }
.px .a-amb-q1 { animation: k-amb-q1 linear both; }
.px .a-amb-f1 { animation: k-amb-f1 linear both; }
.px .a-amb-f2 { animation: k-amb-f2 linear both; }
.px .a-amb-c1 { animation: k-amb-c1 linear both; }
.px .a-amb-x1 { animation: k-amb-x1 linear both; }
.px .a-card-shadow { animation: k-card-shadow linear both; }
.px .amb__float { animation: k-float 46s ease-in-out infinite; }
.px .amb--h2 .amb__float, .px .amb--f2 .amb__float { animation-duration: 58s; animation-direction: reverse; }

.sda .crews { view-timeline: --crews block; }
.sda .close { view-timeline: --close block; }
.sda .crews [class*="a-"] { animation-duration: auto; animation-timeline: --crews; animation-range: cover 0% cover 100%; }
.sda .close [class*="a-"] { animation-duration: auto; animation-timeline: --close; animation-range: cover 0% cover 100%; }
.sda body { timeline-scope: --hero, --qod, --feat, --crews, --close; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__shield { opacity: .6; }
  :root { --k: .75; }
}
@media (max-width: 760px) {
  :root { --k: .5; --amb: .5; }
  .amb { width: 120vw !important; }
  .amb--x1 { margin-left: -60vw; }
  body { font-size: 16px; }
  .nav__inner { height: 64px; }
  .brand__shield { width: 24px; }
  .brand__word { width: 98px; }
  .hero { min-height: auto; padding: 116px 0 190px; align-items: flex-start; }
  .hero__shield { display: none; }
  .city { height: 150px; }
  .dawn { bottom: -30%; height: 60%; }
  .hero__title { margin-top: 24px; }
  .hero__lede { margin-top: 22px; }
  .hero__actions { margin-top: 34px; }
  .early { flex-direction: column; border-radius: 22px; padding: 6px; }
  .early__input { flex: none; height: 50px; padding: 0 16px; }
  .early__btn { width: 100%; }
  .early__note { padding-left: 4px; }
  .qod__stage { padding: 72px 0 300px; }
  .px .qod { height: 200vh; }
  .px .qod__stage { padding: 0; }
  .beam { width: 160vw; }
  .beam--l { left: -95vw; } .beam--r { right: -95vw; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card__body { padding: 24px 22px 26px; }
  .card__title { margin-top: 20px; }
  .crews__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .btn--sm { padding: 0 12px 0 14px; font-size: 13px; }
  .btn--sm svg { display: none; }
}

/* ---------- Reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
