/* who-we-help.css: Who We Help (architecture 9, the breadth: every kind of local business at once, then by how its
   customers buy). Its header is arsenal motif-window as it stands, its window the site's mark. Tokens only. */
@import url("../arsenal/motif-window.css");

/* ---------- hero: the site's three rising bars joined into one window, so each picture reads whole: its face starts
   under the shape's middle (in the middle step) and, once the window fills the screen, stands clear of the headline
   on the left ---------- */
.wh-mw-land { --mw-focus: 66% 24%; --mw-focus-narrow: 66% 26%; }
.wh-mw-salon { --mw-focus: 49% 43%; --mw-focus-narrow: 50% 40%; }
.wh-mw-auto { --mw-focus: 69% 50%; --mw-focus-narrow: 69% 46%; }
.wh-hero .motif-window__act { width: min(100%, 520px); }
/* its stop icon right under the window's tallest step (the shape stands at 68 % across, half the height, its box
   min(40 % wide, 62 % tall)); on a phone by the window's top, under the page header */
.wh-hero .motif-window__stage > .stop { left: calc(68cqw + min(20cqw, 31svh) - 36px); top: calc(50svh + min(20cqw, 31svh) + 14px); right: auto; bottom: auto; }
@container motif-window (width < 760px) {
  .wh-hero .motif-window__stage > .stop { left: auto; right: 14px; top: calc(var(--header-top) + var(--header-h) + 10px); }
}
/* the picker's four new lines (comments of 4 Nov) make the copy taller than a short screen's stage: the copy is
   centered under the page header, and the headline takes the height the picker leaves it (its six lines a little
   smaller, or four lines once "More customers" fits on one), so nothing is cut or covered; at 1440 x 900 and taller
   it keeps its size. --wh-room: the stage's height less the header, the picker and their room (more for a narrow
   picker, whose lines wrap) */
@container motif-window (width >= 760px) {
  .wh-hero .motif-window__copy { padding-top: calc(var(--header-top) + var(--header-h)); justify-content: safe center; }
  .wh-hero .motif-window__h {
    --wh-room: calc(100svh - 438px - clamp(0px, (1100px - 100cqw) * 0.6, 40px));
    font-size: min(clamp(42px, calc(3.6cqi + 24px), 86px), max(42px, calc(var(--wh-room) / 6.12), min(calc(var(--wh-room) / 4.08), calc(min(38cqw, 540px) / 8.1))));
  }
}
/* on a phone the window takes the room above the copy, which the picker's four new lines (4 Nov) took: the headline
   sets on three lines (as wide as "More customers from"), the action box and the copy's foot sit a little closer, so
   the window keeps its size and each face stays whole */
@container motif-window (width < 760px) {
  .wh-hero .motif-window__copy { bottom: 16px; }
  .wh-hero .motif-window__act { margin-top: 16px; }
  .wh-hero .motif-window__h { font-size: min(clamp(38px, calc(7cqi + 14px), 56px), calc((100cqw - 2 * var(--gutter)) / 10.4)); }
}

/* ---------- the heads of the parts below, centered ---------- */
.wh-kinds__head, .wh-fields__head { margin-inline: auto; text-align: center; max-width: 760px; }
.wh-stagewrap { position: relative; }
.wh-stagewrap > .stop { top: auto; right: 0; bottom: 0; }

/* ---------- kinds (the signature): on the navy designed ground, its guide lines and a soft gold light ---------- */
.wh-kinds { position: relative; color: var(--c-on-brand); 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(820px 520px at 50% 96%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 68%),
    radial-gradient(900px 560px at 14% -8%, var(--c-navy-raise), transparent 70%), var(--c-brand); }
.wh-kinds .section__line { color: var(--c-on-brand-soft); }
.wh-kinds__stage { position: relative; height: 470px; margin-top: 36px; }
/* its stop icon at the stage's top right, beside the forecast's first line, clear of the bars and their months */
.wh-kinds .wh-stagewrap > .stop { top: 0; bottom: auto; }

/* ---------- fields: four framed photos in a 2 x 2 grid, each card on its calm side, the captions under them ---------- */
.wh-fields__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin-top: 48px; }
/* one stop icon for the four cards, at the cross between the four photos, in one view with all of them */
.wh-fields__grid { gap: 40px; }
.wh-fields__grid > .stop { top: calc(50% - 18px); left: calc(50% - 18px); right: auto; bottom: auto; }
/* each card's own stop icon, for the phone, where the four stand one under the other (step 12, row 111) */
.wh-field__frame > .wh-field__stop { display: none; }
.wh-field { margin: 0; }
.wh-field__frame { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; border-radius: var(--radius-l); background: var(--c-brand); box-shadow: var(--shadow-l); }
.wh-field__img { position: absolute; inset: -1px; z-index: -1; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.wh-field__frame::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--c-brand) 46%, transparent) 0%, transparent 42%); }
.wh-field__stage { position: absolute; bottom: 4px; width: min(340px, 62%); height: 192px; }
/* each card on its photo's calm side, clear of the faces and of the hands at work */
.wh-field--law .wh-field__stage, .wh-field--health .wh-field__stage, .wh-field--trades .wh-field__stage, .wh-field--home .wh-field__stage { left: 4px; }
.wh-field__cap { display: grid; gap: 4px; margin-top: 16px; }
.wh-field__cap b { font: 650 18px/1.25 var(--font-ui); }
.wh-field__cap span { font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ---------- buyers: arsenal three-buyers stacked in a column beside the words (a smaller piece, as it stands), on
   the paper designed ground (its slate grid) ---------- */
.wh-buyers__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; }
.wh-buyers__head { margin: 0; max-width: 520px; }
.wh-buyers { position: relative; background-color: var(--c-paper);
  background-image: linear-gradient(color-mix(in srgb, var(--c-slate) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-slate) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center -1px; }
.wh-buyers__stage { position: relative; height: 760px; }
/* the stop icon right over the column's top right corner, in one view with the cards it pauses */
.wh-buyers .wh-stagewrap { padding-top: 46px; }
.wh-buyers .wh-stagewrap > .stop { top: 0; bottom: auto; }

/* ---------- anyway: a florist at her workbench, framed; the analysis' card on the photo's free side (her face at 28 %
   across); the words, the main button and the way in for a business that doesn't fit the chat beside ---------- */
.wh-anyway__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.wh-anyway__frame { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 2; border-radius: var(--radius-l); background: var(--c-brand); box-shadow: var(--shadow-l); }
.wh-anyway__img { position: absolute; inset: -1px; z-index: -1; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.wh-anyway__stage { position: absolute; right: 4px; top: 4px; width: min(330px, 48%); height: 264px; }
.wh-anyway__frame > .stop { top: auto; left: auto; right: 14px; bottom: 14px; }
.wh-anyway__words { display: grid; gap: 16px; }
.wh-anyway__act { display: grid; justify-items: start; gap: 14px; margin-top: 8px; }
.wh-anyway__other { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.wh-anyway__other a { color: var(--c-brand-text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- close: full bleed and centered, her welcome filling the part, the words over its lower shade ---------- */
.wh-close { position: relative; isolation: isolate; overflow: hidden; min-height: max(780px, min(100svh, 920px)); display: grid; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); color: var(--c-on-brand); background: var(--c-brand); text-align: center; }
.wh-close > .panel__media { z-index: -2; }
/* drawn 14 % taller and lifted, so her face sits well above the centered words */
.wh-close > .panel__media video { top: calc(-14% - 1px); bottom: auto; height: calc(114% + 2px); object-position: 64% 30%; }
.wh-close__grade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--c-brand) 95%, transparent) 0%, color-mix(in srgb, var(--c-brand) 80%, transparent) 32%, color-mix(in srgb, var(--c-brand) 30%, transparent) 54%, transparent 68%), linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 42%, transparent) 0%, transparent 18%); }
.wh-close__in { position: relative; display: grid; justify-items: center; gap: 18px; max-width: 760px; }
.wh-close__in .lead { color: var(--c-on-brand-soft); max-width: 34em; }
.wh-close__in .picker { width: min(100%, 500px); text-align: left; }
.wh-close > .stop { top: auto; bottom: 16px; right: 16px; }

@media (max-width: 1100px) and (min-width: 901px) {
  /* the frame across the column, the words and the picker under it */
  .wh-anyway__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .wh-anyway__words { max-width: 640px; }
}

@media (max-width: 900px) {
  .wh-kinds__stage { height: 440px; margin-top: 26px; }
  /* fields: one column, each photo taller with its face at the top and its card along the foot */
  .wh-fields__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
  /* one under the other: each photo holds its own card's stop icon at its top right, in view with that card */
  .wh-fields__grid > .stop { display: none; }
  .wh-field__frame > .wh-field__stop { display: grid; top: 12px; right: 12px; bottom: auto; left: auto; }
  .wh-field__frame { aspect-ratio: 4 / 5; }
  .wh-field--law .wh-field__img { object-position: 97% 50%; }
  .wh-field--health .wh-field__img { object-position: 78% 50%; }
  .wh-field--home .wh-field__img { object-position: 40% 50%; }
  .wh-field--trades .wh-field__img { object-position: 52% 50%; }
  .wh-field .wh-field__stage { left: 4px; right: 4px; width: auto; height: 196px; }
  .wh-buyers__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wh-buyers__head { margin-inline: auto; text-align: center; }
  .wh-buyers__stage { height: 800px; }
  .wh-anyway__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* the footage as a band across the top, her face in its upper right, the words under it on the navy it fades into */
  .wh-close { min-height: 0; padding-top: 400px; }
  .wh-close > .panel__media { bottom: auto; height: 540px; }
  .wh-close > .panel__media video { top: -1px; height: calc(100% + 2px); object-position: 70% 30%; }
  .wh-close__grade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 30%, transparent) 0px, transparent 90px, transparent 250px, color-mix(in srgb, var(--c-brand) 72%, transparent) 400px, var(--c-brand) 530px); }
  .wh-close > .stop { top: 340px; bottom: auto; }
}

@media (max-width: 600px) {
  /* anyway on a phone: a tall frame, her face whole above the card that grows up from the foot (row 112) */
  .wh-anyway__frame { aspect-ratio: 1 / 2; }
  .wh-anyway__img { object-position: 21% 30%; }
  .wh-anyway__stage { --wa-align: end; left: 4px; right: 4px; top: auto; bottom: 4px; width: auto; height: 264px; }
  .wh-anyway__frame > .stop { top: 14px; bottom: auto; }
}
