/* growth-gap-analysis.css: the Growth & Gap Analysis page (architecture 10, the artifact page). Its designed grounds:
   navy with the blueprint guide lines, a soft gold light and the rising steps' outline (hero, next); paper with the slate
   blueprint grid and the steps' outline (gap). The other parts rest on real footage and photos. Tokens only. */

/* the rising steps' outline (the logo's three bars), drawn by a mask so its color is a token */
.ga-hero::after, .ga-gapsec::after, .ga-next::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='0.09'%3E%3Cpath d='M3 14h5v7H3zM9.5 9h5v12h-5zM16 3h5v18h-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='0.09'%3E%3Cpath d='M3 14h5v7H3zM9.5 9h5v12h-5zM16 3h5v18h-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- hero: the report as the page's artifact, on the navy designed ground ---------- */
.ga-hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(700px, min(100svh, 960px)); display: grid; align-items: center; background: var(--c-brand); color: var(--c-on-brand); }
.ga-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - var(--max-w) / 2 - 1px), var(--c-navy-line) calc(50% - var(--max-w) / 2 - 1px), var(--c-navy-line) calc(50% - var(--max-w) / 2), transparent calc(50% - var(--max-w) / 2), transparent calc(50% + var(--max-w) / 2), var(--c-navy-line) calc(50% + var(--max-w) / 2), var(--c-navy-line) calc(50% + var(--max-w) / 2 + 1px), transparent calc(50% + var(--max-w) / 2 + 1px)),
    radial-gradient(900px 620px at 94% 104%, color-mix(in srgb, var(--c-accent) 24%, transparent), transparent 64%),
    radial-gradient(1100px 760px at 22% -18%, var(--c-navy-raise), transparent 70%); }
.ga-hero::after { right: -6%; bottom: -10%; width: min(70vw, 1000px); background: var(--c-accent); opacity: 0.16; }
.ga-hero__stage { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: 0; }
.ga-hero__in { position: relative; z-index: 2; padding-top: calc(var(--header-top) + var(--header-h) + clamp(40px, 6vh, 80px)); padding-bottom: clamp(40px, 6vh, 72px); }
.ga-hero__words { display: grid; gap: 22px; max-width: 540px; }
.ga-hero__h1 { font-size: clamp(2.4rem, 1.4rem + 2.6vw, 3.7rem); line-height: 1.03; letter-spacing: var(--track-display); font-weight: var(--w-display); max-width: 11em; }
.ga-hero .lead { color: var(--c-on-brand-soft); max-width: 31em; margin-bottom: 6px; }
@media (min-width: 901px) and (max-width: 1340px) { .ga-hero__words { max-width: 430px; } .ga-hero__stage { width: 52%; } }
@media (max-width: 900px) {
  .ga-hero { display: block; min-height: 0; }
  .ga-hero__stage { position: relative; width: 100%; height: 250px; margin-top: calc(var(--header-top) + var(--header-h)); }
  .ga-hero__in { padding-top: 8px; padding-bottom: 48px; }
  .ga-hero::after { width: 120vw; right: -40%; bottom: auto; top: 10px; opacity: 0.1; }
  .ga-hero > .stop { top: calc(var(--header-top) + var(--header-h) + 12px); bottom: auto; right: auto; left: 16px; }
}
@media (max-width: 600px) { .ga-hero__words { gap: 18px; } .ga-hero__h1 { font-size: 2.15rem; } }

/* ---------- changes: the fog of guesses clears into one first step, over the practice's front desk ---------- */
.ga-changes { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(660px, 50vw, 820px); display: grid; align-items: center; background: var(--c-brand); color: var(--c-on-brand); }
.ga-changes > .panel__media { z-index: -2; }
.ga-changes > .panel__media video { object-position: 24% 40%; }
/* the fog the scene clears through --fog (1 fogged, 0 clear; clear without the script): a blur and a navy haze, wiped away from the left */
.ga-changes__fog { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--c-brand) 30%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(55%) brightness(0.85); backdrop-filter: blur(10px) saturate(55%) brightness(0.85);
  -webkit-mask-image: linear-gradient(90deg, transparent calc((1 - var(--fog, 0)) * 140% - 40%), #000 calc((1 - var(--fog, 0)) * 140% - 10%));
  mask-image: linear-gradient(90deg, transparent calc((1 - var(--fog, 0)) * 140% - 40%), #000 calc((1 - var(--fog, 0)) * 140% - 10%)); }
.ga-changes__grade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-brand) 92%, transparent) 0%, color-mix(in srgb, var(--c-brand) 74%, transparent) 38%, color-mix(in srgb, var(--c-brand) 18%, transparent) 66%, transparent 100%); }
.ga-changes__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); padding-block: clamp(64px, 7vw, 104px); }
.ga-changes__words, .ga-changes__stage { grid-column: 2; }
.ga-changes__words { display: grid; gap: 16px; margin-bottom: 26px; }
.ga-changes__words .section__line { color: var(--c-on-brand-soft); }
.ga-changes__stage { position: relative; height: 410px; }
@media (max-width: 900px) {
  .ga-changes { display: block; min-height: 0; }
  /* on a phone the footage is a band at the top, her face in its upper half and the scene over its lower half; the words go on below */
  .ga-changes > .panel__media, .ga-changes__fog { bottom: auto; height: 520px; }
  .ga-changes > .panel__media video { object-position: 16% 0%; }
  .ga-changes__grade { background: linear-gradient(180deg, transparent 0, transparent 380px, color-mix(in srgb, var(--c-brand) 72%, transparent) 480px, var(--c-brand) 520px); }
  .ga-changes__in { grid-template-columns: 1fr; padding-top: 548px; padding-bottom: 72px; }
  .ga-changes__words { grid-column: 1; margin-bottom: 0; }
  .ga-changes__stage { position: absolute; left: var(--gutter); right: var(--gutter); top: 262px; height: 250px; }
  .ga-changes > .stop { top: 16px; bottom: auto; }
}

/* ---------- gap (the signature): the board on the paper designed ground ---------- */
.ga-gapsec { background: var(--c-paper-alt); overflow: hidden; isolation: isolate; }
.ga-gapsec::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--c-slate) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-slate) 10%, transparent) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 88%); mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 88%); }
.ga-gapsec::after { left: -12%; bottom: -14%; width: min(56vw, 760px); background: var(--c-slate); opacity: 0.12; }
/* the goal chips sit beside the headline, over the board's plot, so a pick and the steps it changes share one screen */
.ga-gapsec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 56px; margin-bottom: 28px; }
.ga-gapsec__head .section__head { margin: 0; max-width: 640px; }
.ga-goal { box-sizing: border-box; max-width: 440px; margin: 0; padding: 0; border: 0; }
.ga-goal__q { display: block; margin: 0 0 12px; padding: 0; font-family: var(--font-ui); font-size: 16px; font-weight: var(--w-strong); color: var(--c-ink); }
@media (max-width: 900px) { .ga-gapsec__head { grid-template-columns: 1fr; } }
.ga-goal__chips { margin-bottom: 0; }
.ga-goal .chip-step { background: var(--c-paper); }
.ga-board { position: relative; }
.ga-board__stage { position: relative; height: 560px; }
.ga-board > .stop { right: 18px; bottom: 18px; }
.ga-gapsec__go { display: grid; justify-items: center; gap: 2px; margin-top: 36px; }
@media (max-width: 760px) { .ga-board__stage { height: 940px; } }

/* ---------- inside: the report's four pages, stacking as the visitor scrolls ---------- */
.ga-inside { position: relative; }
.ga-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.ga-sheet { position: sticky; top: calc(var(--header-top) + var(--header-h) + 22px + var(--i) * 12px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); min-height: 640px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-paper); border: 1px solid color-mix(in srgb, var(--c-line) 14%, transparent); box-shadow: var(--shadow-l); }
.ga-sheet__photo { position: relative; margin: 0; min-height: 280px; background: var(--c-brand); }
.ga-sheet__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.ga-sheet__n { position: absolute; left: 18px; bottom: 18px; padding: 7px 13px; border-radius: var(--radius-pill); background: var(--glass-bg); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); color: var(--c-on-brand); font-family: var(--font-ui); font-size: 14px; font-weight: var(--w-strong); }
.ga-sheet__page { position: relative; background: var(--c-paper-alt); }
.ga-sheet__page::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--c-slate) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-slate) 7%, transparent) 1px, transparent 1px); background-size: 32px 32px; }
.ga-sheet__stage { position: absolute; inset: 0; }
.ga-sheet .rpt-stage { padding-top: 18px; } /* each page starts near the sheet's top, so its slate note hangs inside it */
.ga-inside__stop { top: calc(var(--section-y) - 54px); bottom: auto; right: var(--gutter); }
.ga-inside > .wrap { position: relative; }
@media (max-width: 900px) {
  .ga-sheet { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; }
  .ga-sheet__photo { height: 240px; min-height: 0; }
  /* on a phone each page is as tall as its report page and its note, whatever the phone's width */
  .ga-sheet__page { height: auto; }
  .ga-sheet__stage, .ga-sheet .rpt-stage { position: relative; inset: auto; }
  .ga-inside__stop { top: -48px; right: 0; }
}

/* ---------- chat: the analysis chat over a real desk, full bleed ---------- */
.ga-chat { padding-top: var(--section-y); background: var(--c-paper); }
.ga-chat__head { margin-bottom: clamp(32px, 4vw, 52px); }
.ga-chat__band { position: relative; isolation: isolate; overflow: hidden; height: clamp(580px, 44vw, 720px); background: var(--c-brand); }
.ga-chat__band > .panel__media img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 50% 20%; transform: scaleX(-1); } /* the dentist between patients, mirrored: she stands right of the chat, looking toward it, her face in the band's upper half */
.ga-chat__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 58%, transparent) 0%, color-mix(in srgb, var(--c-brand) 24%, transparent) 42%, transparent 72%); }
.ga-chat__in { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.ga-chat__stage { width: min(330px, 100%); }
.ga-chat__band > .stop { z-index: 3; }
@media (max-width: 760px) {
  /* on a phone her face stays in the top third and the chat stands below it, over her scrubs */
  .ga-chat__band { height: 760px; }
  .ga-chat__band > .panel__media img { top: -50px; height: calc(100% + 51px); object-position: 26% 0; }
  .ga-chat__grade { background: linear-gradient(180deg, transparent 0%, transparent 34%, color-mix(in srgb, var(--c-brand) 52%, transparent) 100%); }
  .ga-chat__in { justify-content: center; align-items: flex-end; padding-bottom: 28px; }
  .ga-chat__stage { width: min(320px, 90%); }
}

/* ---------- next: what the analysis holds, on the navy designed ground ---------- */
.ga-next { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); background: var(--c-brand); color: var(--c-on-brand); }
.ga-next::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - var(--max-w) / 2 - 1px), var(--c-navy-line) calc(50% - var(--max-w) / 2 - 1px), var(--c-navy-line) calc(50% - var(--max-w) / 2), transparent calc(50% - var(--max-w) / 2), transparent calc(50% + var(--max-w) / 2), var(--c-navy-line) calc(50% + var(--max-w) / 2), var(--c-navy-line) calc(50% + var(--max-w) / 2 + 1px), transparent calc(50% + var(--max-w) / 2 + 1px)),
    radial-gradient(760px 560px at 76% 50%, color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 66%); }
.ga-next::after { right: 2%; top: 50%; width: min(48vw, 640px); transform: translateY(-50%); background: var(--c-accent); opacity: 0.12; }
.ga-next__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.ga-next__words { display: grid; gap: 18px; justify-items: start; }
.ga-next__words .section__line { color: var(--c-on-brand-soft); }
.ga-next__go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.ga-next .link-arrow { color: var(--c-accent); }
.ga-next__stage-wrap { position: relative; }
.ga-next__stage { position: relative; min-height: 470px; }
@media (max-width: 900px) { .ga-next__in { grid-template-columns: 1fr; } .ga-next__stage { min-height: 420px; } }

/* ---------- FAQ and close ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); gap: 24px 64px; align-items: start; }
.faq-wrap .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h, 64px) + 40px); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section__head { position: static; margin-bottom: 8px; } }
/* his face sits at 35 to 45% across the clip: on a computer the footage is mirrored and drawn 120% wide, so it lands at
   66 to 78%, clear of the words (the frame holds no writing) */
.ga-close .panel__media video { width: 120%; object-position: 50% 45%; transform: scaleX(-1); }
@media (max-width: 860px) { .ga-close .panel__media video { width: calc(100% + 2px); object-position: 40% 42%; transform: none; } .ga-close .stop { top: 16px; bottom: auto; } }
