@import url("../arsenal/motif-window.css");
/* site\assets\css\pages\who-we-help.css: the Who we help page (plan.md, Who we help). Tokens from design\system.css only;
   the components from design\components.css; the header is the arsenal's motif-window as it stands (plan.md, "As it
   stands"), its files never edited. Under 1180 px the anyway photo becomes a band at its frame's top and the chat
   stands over the band's foot (Lessons). */

/* ---------- 1. the header: three businesses through the site's stadium ---------- */
.wwh-hero .motif-window__h { max-width: 11.5em; }
/* the clips laid 1 px past the window on every side (kit.md, "Video"): no line of the ground at its foot or right side */
.wwh-hero .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
/* the action box is drawn once, over the paper and over the footage: its line sits in a white pill so it reads on both */
.wwh-hero__cta { margin-top: 0; }
.wwh-hero__cta .cta-row__line { padding: 7px 14px; border-radius: 999px; background: rgb(var(--c-paper-rgb) / .94); color: var(--c-ink-soft); }
.wwh-hero__stop { top: 92px; right: 20px; }
@media (max-width: 1023px) { .wwh-hero__stop { top: 78px; right: 14px; } }

/* ---------- 2. the signature, on the navy ground: the stadium cut in two ---------- */
.wwh-halves__head { margin-inline: auto; text-align: center; }
.wwh-halves__head p { margin-inline: auto; }
.wwh-halves__stage { position: relative; max-width: 1100px; margin: 0 auto; }
.scene.wwh-halves__scene { width: 100%; aspect-ratio: 1100 / 380; }
.wwh-halves__stop { top: -58px; right: 0; }
/* under 960 px (a scrollbar counted) the scene's box could be under 860 wide: its own phone layout (the halves stacked),
   drawn at most 420 wide, so the box the scene measures and the shape this sizes always agree */
@media (max-width: 959px) {
  .scene.wwh-halves__scene { width: min(100%, 420px); margin: 0 auto; aspect-ratio: 330 / 540; }
  .wwh-halves__stage { max-width: 420px; }
}

/* ---------- 3. the six fields: wide photos of the work, a solid card over each one's foot ---------- */
.wwh-kinds { padding: var(--section-y) 0; }
.wwh-kinds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.wwh-kind { position: relative; }
.wwh-kind__pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); background: var(--c-paper-alt); }
.wwh-kind__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); transition: transform 1.2s var(--ease-out); }
.wwh-kind:hover .wwh-kind__img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .wwh-kind__img { transition: none; } .wwh-kind:hover .wwh-kind__img { transform: none; } }
.wwh-kind--home { --pos: 62% 40%; }
.wwh-kind--outdoor { --pos: 60% 40%; }
.wwh-kind--law { --pos: 50% 0%; } /* its foot (a book's title) cropped off */
.wwh-kind--health { --pos: 70% 30%; }
.wwh-kind--realestate { --pos: 70% 30%; }
.wwh-kind--events { --pos: 50% 40%; }
.wwh-kind__card { position: relative; z-index: 2; margin: -44px 20px 0; padding: 20px 24px 22px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-m); }
.wwh-kind__name { font-size: var(--fs-h3); line-height: 1.2; }
.wwh-kind__trades { margin-top: 6px; font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
.wwh-kind__one { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: var(--fs-small); line-height: 1.5; }
.wwh-kind__one b { font-weight: 600; color: var(--c-brand-text); }
.wwh-many { margin-top: clamp(32px, 3.4vw, 48px); }
.wwh-many__cta { margin-top: 0; }
@media (max-width: 759px) {
  .wwh-kinds__grid { grid-template-columns: minmax(0, 1fr); }
  .wwh-kind__card { margin: -36px 12px 0; padding: 16px 18px 18px; }
}

/* ---------- 4. however their customers buy, on the designed ground ---------- */
.wwh-buyers__head { margin-inline: auto; text-align: center; }
.wwh-buyers__head p { margin-inline: auto; }
.wwh-buyers__stage { position: relative; max-width: 1100px; margin: 0 auto; }
.scene.wwh-buyers__scene { width: 100%; min-height: 460px; }
.wwh-buyers__stop { top: -58px; right: 0; }
@media (max-width: 759px) { .scene.wwh-buyers__scene { min-height: 800px; } }

/* ---------- 5. a way in for everyone else: the chat reading a studio's website, over the photo's left ---------- */
.wwh-anyway { padding: var(--section-y) 0; }
.wwh-anyway__head { margin-inline: auto; text-align: center; }
.wwh-anyway__head p { margin-inline: auto; }
.wwh-anyway__frame { aspect-ratio: 1.9; min-height: 520px; }
.media-frame > .wwh-anyway__img { object-position: 70% 40%; }
.wwh-chat { position: absolute; z-index: 2; left: clamp(24px, 4vw, 56px); top: 50%; width: min(400px, 44%); display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); transform: translateY(-50%); box-sizing: border-box; }
.wwh-chat__row { --fill: var(--c-paper-alt); display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 11px; border: 1px dashed transparent; border-radius: var(--radius-m); background: var(--fill); }
/* a step not reached yet is an open slot (dashed, as on Services): the panel never stands half empty while its rows come */
.wwh-chat__row[data-kit-at] { --in: clamp(0, var(--kit-in, 1), 1); background: color-mix(in srgb, var(--fill) calc(var(--in) * 100%), transparent); border-color: color-mix(in srgb, var(--c-ink) calc((1 - var(--in)) * 24%), transparent); }
.wwh-chat__row[data-kit-at] > * { opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 8px)); }
.wwh-chat__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand-dark); }
.wwh-chat__icon svg { width: 18px; height: 18px; }
.wwh-chat__text { display: grid; gap: 3px; min-width: 0; }
.wwh-chat__text b { font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1.3; }
.wwh-chat__text > span { font-size: 14px; line-height: 1.4; color: var(--c-ink-soft); }
.wwh-chat__bar { display: block; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--c-brand) 16%, var(--c-paper)); }
.wwh-chat__fill { display: block; width: calc(min(1, var(--kit-in, 1)) * 100%); height: 100%; border-radius: inherit; background: var(--c-brand); }
.wwh-chat__row--done { --fill: var(--c-brand-light); }
.wwh-chat__row--done .wwh-chat__icon { background: var(--c-brand); color: var(--c-on-brand); }
.media-frame > .wwh-anyway__stop { top: 16px; left: 16px; right: auto; bottom: auto; }
@media (max-width: 1179px) {
  .wwh-anyway__frame { --band: 480px; --top: 230px; aspect-ratio: auto; min-height: 0; padding: var(--top) 0 16px; background: var(--c-navy); }
  .media-frame > .wwh-anyway__img { inset: -1px -1px auto -1px; height: calc(var(--band) + 2px); object-position: 72% 30%; }
  .wwh-chat { position: relative; left: auto; top: auto; width: min(420px, calc(100% - 32px)); margin: 0 auto; transform: none; }
  .media-frame > .wwh-anyway__stop { top: calc(var(--top) - 56px); left: auto; right: 16px; }
}
@media (max-width: 639px) {
  .wwh-anyway__frame { --band: 400px; --top: 170px; border-radius: var(--radius-m); }
}

/* ---------- 6. the close: the cafe owner in the right half ---------- */
.wwh-close .close-band__clip { object-position: 66% 40%; }
@media (max-width: 759px) {
  .wwh-close .close-band__copy { padding-top: 250px; } /* the owner's face clear above the headline */
  .wwh-close .close-band__clip { object-position: 70% 20%; }
}
