/* ==========================================================================
   Screens layer: on desktop every .screen is exactly one viewport tall
   (below the sticky crisis bar + header) and scrolling snaps between them.
   On phones / very short windows the page flows naturally.
   ========================================================================== */

:root { --hdr: 104px; }

/* ---------- Base additions (all sizes) ---------- */
.btn[hidden] { display: none; }
.s-why { padding-top: 0; }
.s-split .lede { margin-top: 22px; }
.vision-in { max-width: var(--max); margin: 0 auto; width: 100%; }
.vision-in h2 { max-width: 11em; }
.vision-in .lede { margin-top: 20px; }
.ticks.cols2 { columns: 2; column-gap: 36px; }
.ticks.cols2 li { break-inside: avoid; }
@media (max-width: 560px) { .ticks.cols2 { columns: 1; } }
.statement .w { transition: opacity .6s var(--ease); }

/* Form pages: film panel + card */
.s-form { padding: 0 0 var(--inset); }
.s-form > .wrap { max-width: none; padding: 0 var(--inset); display: grid; gap: var(--inset); grid-template-columns: 1fr; }
.form-film { padding: clamp(22px, 3vw, 44px); min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.form-film::before { background: linear-gradient(180deg, rgba(9, 19, 33, .55) 0%, rgba(9, 19, 33, .35) 35%, rgba(9, 19, 33, .88) 100%); }
.form-film h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); margin: 0 0 16px; }
.form-film .lede { color: rgba(245, 239, 228, .88); margin: 0; max-width: 26em; }
.form-film .crumbs { margin-bottom: 18px; }
.glass-box { border-radius: 20px; padding: 6px 20px; background: rgba(13, 24, 40, .45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.glass-box .ticks li { border-color: rgba(255, 255, 255, .14); font-size: .95rem; }
.glass-box .ticks li:first-child { border-top: 0; }
.glass-box a { color: var(--gold-lt); }
.crisis-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; margin-top: 14px; color: rgba(245, 239, 228, .85); }
.crisis-line a { color: #fff; font-weight: 600; }

/* Wizard */
.wizard { display: flex; flex-direction: column; }
.wiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(18px, 3.4vh, 34px); font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); }
.wiz-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 16.6%; background: var(--gold); border-radius: 4px; transition: width .6s var(--ease); }
.wizard .wstep { display: none; margin: 0; flex: 1; }
.wizard .wstep.is-current { display: block; animation: stepin .55s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(24px); } }
.wizard legend { font-size: clamp(1.7rem, 4.2vh, 2.5rem); margin-bottom: 8px; }
.wizard .hint { color: var(--text-2); margin: 0 0 clamp(16px, 3vh, 28px); }
.wizard .consent { padding: clamp(8px, 1.5vh, 14px) 0; font-size: .88rem; line-height: 1.45; }
.wiz-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(16px, 3vh, 28px); padding-top: clamp(14px, 2.4vh, 22px); border-top: 1px solid var(--line); }
.wiz-nav .form-note { margin: 0 0 0 auto; text-align: right; max-width: 20em; }
.no-js .wizard .wstep { display: block; margin-bottom: 38px; }
.no-js .wiz-top, .no-js [data-next], .no-js [data-back] { display: none; }
.s-form .card label + input, .s-form .card label + select { margin-bottom: 0; }
.field-stack { display: grid; gap: 16px; }

/* ---------- Desktop: one screen per viewport ---------- */
@media (min-width: 901px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--hdr); }

  .crisis { position: sticky; top: 0; z-index: 210; height: 36px; }
  .crisis .wrap { height: 36px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .site-header { top: 36px; }
  .site-header .wrap { height: 68px; }

  h2 { font-size: clamp(2rem, min(5vw, 7vh), 5rem); }
  .eyebrow { margin-bottom: clamp(12px, 2.4vh, 26px); }

  .screen { height: calc(100svh - var(--hdr)); min-height: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(18px, 4.5vh, 60px); padding-bottom: clamp(18px, 4.5vh, 60px); margin-top: 0; }
  .screen.inset { height: calc(100svh - var(--hdr) - var(--inset)); margin-bottom: var(--inset); }
  .screen > .wrap { width: 100%; }
  .screen > .wrap.fill { flex: 1; min-height: 0; display: flex; flex-direction: column; }

  /* 1 hero */
  .hero.screen { justify-content: space-between; padding: clamp(20px, 3vw, 44px); }
  .hero h1 { font-size: clamp(3.4rem, min(9.4vw, 17vh), 9.5rem); margin-bottom: clamp(14px, 3vh, 36px); }
  .hero .lede { margin-bottom: clamp(14px, 3vh, 30px); }

  /* 2 why */
  .s-why { padding-top: 0; justify-content: flex-start; }
  .s-why .marquee { padding: clamp(14px, 3.4vh, 40px) 0; flex: none; }
  .marquee span { font-size: clamp(2.2rem, min(6vw, 9vh), 5.6rem); }
  .s-why > .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
  .statement { font-size: clamp(1.7rem, min(3.9vw, 5.6vh), 3.8rem); }
  .statement-foot { margin-top: clamp(18px, 4.5vh, 64px); padding-top: clamp(14px, 3vh, 32px); }

  /* 3 bento */
  .s-bento .head { margin-bottom: clamp(14px, 3vh, 36px); }
  .s-bento .head h2 { max-width: none; }
  .s-bento .head br { display: none; }
  .s-bento .bento { flex: 1; min-height: 0; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .s-bento .tile { min-height: 0; padding: clamp(16px, 2.6vh, 30px); }
  .s-bento .t-a { grid-area: 1 / 1 / 3 / 2; }
  .s-bento .t-b { grid-area: 1 / 2 / 2 / 3; }
  .s-bento .t-d { grid-area: 2 / 2 / 3 / 3; }
  .s-bento .t-c { grid-area: 1 / 3 / 3 / 4; }
  .s-bento .tile h3 { font-size: clamp(1.3rem, min(2.2vw, 3.6vh), 2.2rem); margin-bottom: 8px; }
  .s-bento .t-b p, .s-bento .t-d p { font-size: .92rem; }
  .s-bento .tile .go { width: 44px; height: 44px; }
  .s-bento .t-c ol { margin-top: clamp(10px, 2vh, 28px); }
  .s-bento .t-c li { padding: clamp(7px, 1.6vh, 14px) 0; }

  /* 4 how */
  #how.screen { padding: clamp(18px, 4vh, 56px) 0; }

  /* 5 stats */
  .s-stats .head { margin-bottom: clamp(20px, 7vh, 80px); }
  .s-stats .stat .n { font-size: clamp(3.6rem, min(8.4vw, 17vh), 9rem); }

  /* 6 quote film */
  .quote-film.screen { justify-content: flex-end; align-items: stretch; padding: clamp(24px, 4vw, 64px); }
  .quote-film blockquote { font-size: clamp(2.2rem, min(5vw, 8.4vh), 5rem); }

  /* 7 split */
  .s-split .split { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .s-split .split-media { min-height: 0; }
  .s-split .split-media .film { aspect-ratio: auto; height: 100%; }
  .s-split .split > :last-child { align-self: center; }
  .s-split .lede { margin-top: clamp(10px, 2vh, 24px); }
  .s-split .lists { margin: clamp(12px, 2.8vh, 38px) 0; gap: 28px; }
  .s-split .lists h3 { margin-bottom: 8px; }
  .s-split .ticks li { padding-top: clamp(5px, 1.15vh, 12px); padding-bottom: clamp(5px, 1.15vh, 12px); font-size: .95rem; }
  .s-split .ticks li::before { top: calc(clamp(5px, 1.15vh, 12px) + 7px); }

  /* 8 partners */
  .s-help .head { margin-bottom: clamp(12px, 2.4vh, 28px); }
  .s-help .head h2 { max-width: 15em; }
  .s-help .roles { margin-bottom: clamp(12px, 2.4vh, 28px); }
  .s-help .roles li { padding: 7px 15px; font-size: .86rem; }
  .s-help .xpanels { flex: 1; min-height: 0; height: auto; }
  .s-help .xp p { margin: 10px 0 14px; font-size: .95rem; }

  /* 9 vision */
  .vision.screen { padding: clamp(20px, 5vh, 64px) clamp(20px, 4vw, 64px); }
  .vision .pillars { margin: clamp(16px, 4.4vh, 60px) 0; }
  .vision .pillar { min-height: clamp(96px, 18vh, 200px); padding: clamp(14px, 2.4vh, 22px); }
  .goal { font-size: clamp(1.6rem, min(3.6vw, 5.4vh), 3.4rem); }

  /* 10 closing */
  .closing.screen { display: grid; padding: 24px; }
  .closing h2 { font-size: clamp(2.6rem, min(7.2vw, 12vh), 7.4rem); margin-bottom: clamp(16px, 3.4vh, 30px); }

  /* footer */
  .site-footer.screen { margin: 0 var(--inset); padding: clamp(20px, 4.5vh, 64px) 0 0; justify-content: space-between; }
  .site-footer .f-news { padding-bottom: clamp(16px, 3.5vh, 56px); }
  .site-footer .f-grid { padding: clamp(16px, 3.5vh, 56px) 0; }
  .site-footer .f-base { padding: clamp(10px, 2vh, 22px) 0; }
  .site-footer .f-news h2 { font-size: clamp(1.8rem, min(3.6vw, 6vh), 3.4rem); }
  .wordmark { font-size: min(13.2vw, 24vh); margin-top: 0; }

  /* inner pages */
  .page-hero.screen { justify-content: flex-end; padding: clamp(24px, 4vw, 64px); }
  .page-hero h1 { font-size: clamp(3rem, min(8vw, 14vh), 7.6rem); }
  .s-two .two { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .s-two .big-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vh, 64px) clamp(28px, 4vw, 64px); }
  .s-two .big-card h3 { font-size: clamp(1.8rem, min(3.2vw, 5.4vh), 3rem); }

  .s-form.screen { padding: 0 0 var(--inset); }
  .s-form > .wrap { flex: 1; min-height: 0; grid-template-columns: 1fr 1.15fr; grid-template-rows: minmax(0, 1fr); }
  .form-film { min-height: 0; }
  .form-film h1 { font-size: clamp(2.6rem, min(5.2vw, 9.5vh), 5.6rem); }
  .s-form .card { min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: clamp(20px, 3.6vh, 48px) clamp(24px, 3.4vw, 56px); box-shadow: inset 0 0 0 1px var(--line); }
  .s-form .card textarea { min-height: 90px; flex: 1; }
  .s-form .card .grow { flex: 1; display: flex; flex-direction: column; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .wizard .wstep.is-current { animation: none; }
}

.crisis-line { display: block; line-height: 1.6; }
.crisis-line .pulse { display: inline-block; margin-right: 10px; vertical-align: middle; }

/* Hero B: close-up clip. No zoom; slide the frame right and fade its left edge into the dark panel so the headline has clear space. */
@media (min-width: 901px) {
  .hero.hero-b > video { width: 100%; transform: translateX(17%); object-position: 50% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
  .hero.hero-b::before { background: linear-gradient(90deg, rgba(9, 19, 33, .9) 0%, rgba(9, 19, 33, .3) 40%, rgba(9, 19, 33, 0) 60%), linear-gradient(180deg, rgba(9, 19, 33, .15) 0%, rgba(9, 19, 33, 0) 35%, rgba(9, 19, 33, .6) 100%); }
}
@media (max-width: 900px) { .hero.hero-b > video { object-position: 36% 30%; } }

/* Hero C: calm veteran, subject on the right; darken the left for the headline */
.hero.hero-c > video { width: 100%; object-position: 70% 0%; }
.hero.hero-c::before { background: linear-gradient(90deg, rgba(9, 19, 33, .9) 0%, rgba(9, 19, 33, .66) 34%, rgba(9, 19, 33, .12) 62%, rgba(9, 19, 33, 0) 100%), linear-gradient(180deg, rgba(9, 19, 33, .25) 0%, rgba(9, 19, 33, 0) 30%, rgba(9, 19, 33, .7) 100%); }
@media (max-width: 900px) { .hero.hero-c::before { background: linear-gradient(180deg, rgba(9, 19, 33, .3) 0%, rgba(9, 19, 33, .1) 30%, rgba(9, 19, 33, .92) 72%); } }
.hero.hero-c > video { object-position: 72% 12%; }
.hero.hero-c > video { object-position: 82% 40%; }
.hero.hero-c > video { object-position: 78% 30%; }

/* Hero D: veteran on his phone. Light touch: darken only behind the headline, keep him bright. */
.hero.hero-c > video { object-position: 60% 42%; filter: brightness(1.08); }
.hero.hero-c::before { background: linear-gradient(90deg, rgba(9, 19, 33, .82) 0%, rgba(9, 19, 33, .55) 30%, rgba(9, 19, 33, .08) 52%, rgba(9, 19, 33, 0) 100%), linear-gradient(180deg, rgba(9, 19, 33, .18) 0%, rgba(9, 19, 33, 0) 20%, rgba(9, 19, 33, 0) 72%, rgba(9, 19, 33, .45) 100%); }
@media (min-width: 901px) {
  .hero.hero-c .hero-top { position: relative; }
  .hero.hero-c .glass-card { position: absolute; top: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); width: 290px; }
  .hero.hero-c .hero-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero.hero-c > video { object-position: 64% 30%; }
  .hero.hero-c::before { background: linear-gradient(180deg, rgba(9, 19, 33, .2) 0%, rgba(9, 19, 33, 0) 28%, rgba(9, 19, 33, .88) 66%); }
}
/* Hero E: generated locked-off clip, subject already on the right */
.hero.hero-c > video { object-position: 70% 25%; filter: none; }
@media (max-width: 900px) { .hero.hero-c > video { object-position: 66% 20%; } }

/* Phones: stack the hero. Film on top, framed to show both his face and the phone; text below on navy. */
@media (max-width: 900px) {
  .hero.hero-c { min-height: 0; padding: 0; display: block; background: var(--ink); }
  .hero.hero-c::before { display: none; }
  .hero.hero-c > video { position: relative; inset: auto; z-index: 0; display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 34% 50%; border-radius: var(--r) var(--r) 0 0; }
  .hero.hero-c .hero-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; }
  .hero.hero-c .hero-bottom { position: relative; z-index: 2; padding: 26px 20px 30px; margin-top: -1px; background: linear-gradient(180deg, rgba(9,19,33,0) 0, var(--ink) 0); }
  .hero.hero-c h1 { font-size: clamp(2.9rem, 13vw, 4.2rem); }
}
@media (max-width: 900px) { .hero.hero-c > video { aspect-ratio: 1 / 1; object-position: 40% 50%; } .hero.hero-c .hero-bottom { padding-top: 22px; } }
@media (min-width: 600px) and (max-width: 900px) { .hero.hero-c > video { aspect-ratio: 16 / 10; object-position: 50% 40%; } }
@media (max-width: 420px) {
  .hero.hero-c > video { aspect-ratio: 1 / 0.92; }
  .hero.hero-c .hero-bottom { padding: 18px 18px 26px; }
  .hero.hero-c h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); margin-bottom: 12px; }
  .hero.hero-c .lede { font-size: 1rem; line-height: 1.5; margin-bottom: 18px; }
}
@media (max-width: 420px) and (max-height: 760px) { .hero.hero-c > video { aspect-ratio: 1 / 0.8; } }
@media (max-width: 420px) and (max-height: 700px) { .hero.hero-c > video { aspect-ratio: 1 / 0.66; object-position: 40% 55%; } }
@media (max-width: 420px) and (max-height: 700px) { .hero.hero-c .hero-top { display: none; } }

/* Vision pillars: photo cards */
.pillar.has-img { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.pillar.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.pillar.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,19,33,.15) 0%, rgba(9,19,33,0) 30%, rgba(9,19,33,.55) 62%, rgba(9,19,33,.92) 100%); }
.pillar.has-img:hover img { transform: scale(1.06); filter: saturate(1); }
.pillar.has-img .k { align-self: flex-start; padding: 2px 10px; border-radius: 99px; background: rgba(9,19,33,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pillar.has-img h3 { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.p-ai img { object-position: 50% 22%; }
.p-peers img { object-position: 55% 45%; }
.p-clinical img { object-position: 62% 55%; }
.p-community img { object-position: 45% 50%; }
.p-research img { object-position: 50% 35%; }
@media (min-width: 901px) and (min-height: 600px) {
  .vision .pillars { margin: clamp(14px, 3.4vh, 48px) 0; }
  .vision .pillar.has-img { min-height: clamp(150px, 27vh, 300px); }
}
@media (max-width: 1000px) { .pillars .pillar.has-img:last-child { grid-column: 1 / -1; } .pillar.has-img { min-height: 170px; } }
@media (max-width: 520px) { .pillars .pillar.has-img:last-child { grid-column: auto; } .pillar.has-img { min-height: 150px; } }
@media (max-width: 1000px) { .p-ai img { object-position: 50% 26%; } .p-research img { object-position: 50% 45%; } }

/* Messaging pass: privacy and questions screens */
@media (min-width: 901px) and (min-height: 600px) {
  .privacy.screen { flex-direction: row; align-items: center; padding: clamp(18px, 4vh, 56px) clamp(24px, 4vw, 64px); }
  .privacy h2 { font-size: clamp(2rem, min(4.4vw, 7vh), 4.2rem); }
  .privacy .lede { margin-top: clamp(12px, 2.4vh, 22px); }
  .privacy .fine { margin-top: clamp(10px, 2.2vh, 22px); }
  .plain li { padding: clamp(14px, 2.6vh, 28px) clamp(16px, 1.8vw, 26px); }
  .plain .k { margin-bottom: clamp(8px, 1.8vh, 24px); }
  .plain p { font-size: clamp(.84rem, 1.9vh, .95rem); }
  .s-faq .faq-grid { align-items: center; }
  .faq .a p { font-size: clamp(.9rem, 2.1vh, 1.02rem); }
}

/* Split screens: the intro scales with the height available */
@media (min-width: 901px) and (min-height: 600px) {
  .s-split .lede { font-size: clamp(1rem, 2.5vh, 1.3rem); }
  .s-split .lede + p { font-size: clamp(.9rem, 2.1vh, 1rem); margin-bottom: clamp(8px, 1.6vh, 16px); }
}

/* How it works: room for the always-on line under the steps */
@media (min-width: 901px) and (min-height: 600px) {
  #how .always { margin-top: clamp(8px, 1.6vh, 14px); padding: clamp(8px, 1.6vh, 14px) clamp(14px, 1.6vw, 20px); font-size: clamp(.84rem, 2vh, .95rem); }
  #how .steps { margin-top: clamp(14px, 3vh, 36px); }
  #how .step, #how .step.active { padding: clamp(12px, 2.4vh, 26px) clamp(16px, 1.8vw, 26px); }
  #how .step-num { margin-bottom: clamp(6px, 1.2vh, 16px); }
}

/* Hero: veteran holding the phone up to read. On desktop, enlarge the clip from the left edge so the
   phone sits just right of the headline instead of behind it (the hero clips the overflow). */
@media (min-width: 901px) { .hero.hero-c > video { width: 116%; max-width: none; object-position: 20% 0%; } }
/* Very short phones (360x640): a little less video so the Join button clears the fold. */
@media (max-width: 420px) and (max-height: 660px) { .hero.hero-c > video { aspect-ratio: 1 / 0.6; } }
/* The group-chat card must never cover his face. 1366-1599px: a narrower card fits between his head and
   the right edge. Below 1366px there is no room beside him, so it is hidden (as on phones). */
@media (min-width: 901px) and (max-width: 1599px) { .hero.hero-c .glass-card { width: 250px; padding: 15px; } }
@media (min-width: 901px) and (max-width: 1365px) { .hero.hero-c .glass-card { display: none; } }
/* Privacy: the fire-circle clip is a night scene, so the overlay eases off toward the right (where the fire and
   the group sit) to let it read. The text column on the left keeps the darker overlay; the cards carry their own glass. */
.privacy.film::before { background: linear-gradient(90deg, rgba(9, 19, 33, .92) 0%, rgba(9, 19, 33, .74) 42%, rgba(9, 19, 33, .42) 100%); }
@media (max-width: 900px) { .privacy.film::before { background: linear-gradient(180deg, rgba(9, 19, 33, .9) 0%, rgba(9, 19, 33, .7) 40%, rgba(9, 19, 33, .6) 100%); } .privacy > video { object-position: 78% 50%; } }
/* Pilot registration sent to the app: an error line under the steps, and once it's sent only the thank-you shows. */
.wizard .form-error { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(176, 58, 46, .1); color: #8f2f25; font-weight: 500; font-size: .92rem; }
.wizard.is-sent .wstep, .wizard.is-sent .wiz-top, .wizard.is-sent .wiz-nav { display: none; }
.wizard.is-sent .form-success { margin-top: 0; }
