/* who-we-help.css: the Who we help page's own placing and sizing (plan.md, Who we help), with the tokens of system.css only. */

/* ---------- hero: a front page of its own: the banner, then three photos in a broadsheet row ---------- */
.wh-hero { padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 6vw, 88px); }
.wh-hero__title { font-size: var(--fs-display); line-height: 1.02; text-wrap: balance; max-width: 15.5em; }
.wh-hero__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-ink); box-shadow: inset 0 3px 0 var(--c-paper), inset 0 5px 0 var(--c-ink); }
.wh-hero__line { max-width: 28em; font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); color: var(--c-ink-soft); }
.wh-hero__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.wh-hero__go p { font-size: var(--fs-small); color: var(--c-ink-soft); }
.wh-hero__row { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(24px, 3vw, 36px); }
.wh-hero__fig { margin: 0; min-width: 0; }
.wh-hero__box { position: relative; height: clamp(320px, 32vw, 440px); overflow: hidden; border-radius: var(--radius-s); background: var(--c-paper-alt); }
.wh-hero__pic { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.wh-hero__fig:nth-of-type(2) .wh-hero__pic { object-position: 64% 40%; }
.wh-hero__fig:nth-of-type(3) .wh-hero__pic { object-position: 40% 50%; }
.wh-hero__card { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.wh-hero__fig--wide .wh-hero__card { right: auto; width: min(320px, calc(100% - 24px)); }
.wh-hero__cap { margin-top: 8px; font: italic 500 1.0625rem/1.3 var(--font-display); color: var(--c-ink-soft); }
.wh-hero__stop { position: absolute; top: 12px; right: 12px; z-index: 3; }
@media (max-width: 760px) {
  .wh-hero__row { grid-template-columns: minmax(0, 1fr); }
  .wh-hero__box { height: 300px; }
}

/* ---------- every: the classifieds on the designed ground, full width ---------- */
.wh-every .wrap { max-width: none; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
.wh-every .head { max-width: var(--max-w); margin-inline: auto; }
.wh-every .wh-every__scene { display: block; width: 100%; background: var(--c-card); }

/* ---------- kinds: seven tiles in a broadsheet grid ---------- */
.wh-kinds__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.wh-kind--wide { grid-column: span 2; }
.wh-kind__link { display: flex; flex-direction: column; height: 100%; background: var(--c-card); box-shadow: 0 0 0 1px var(--c-line); border-radius: var(--radius-s); color: var(--c-ink); text-decoration: none; transition: box-shadow var(--dur-fast) var(--ease-out); }
.wh-kind__link:hover { box-shadow: 0 0 0 1px var(--c-ink), var(--shadow-m); text-decoration: none; }
.wh-kind__link:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; }
.wh-kind__box { position: relative; display: block; height: 196px; overflow: hidden; border-radius: var(--radius-s) var(--radius-s) 0 0; background: var(--c-paper-alt); }
.wh-kind--wide .wh-kind__box { height: 240px; }
.wh-kind__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wh-kind--wide .wh-kind__pic { object-position: 50% 28%; }
.wh-kind__words { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; }
.wh-kind__name { font: var(--fw-display) var(--fs-h3)/1.15 var(--font-display); letter-spacing: var(--track-display); }
.wh-kind__fields { font-size: .9063rem; line-height: 1.35; color: var(--c-ink-soft); }
.wh-kind__line { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.wh-kind__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--c-brand-text); }
@media (max-width: 1100px) { .wh-kinds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wh-kind--wide { grid-column: span 2; } }
@media (max-width: 640px) { .wh-kinds__grid { grid-template-columns: minmax(0, 1fr); } .wh-kind--wide { grid-column: auto; } .wh-kind--wide .wh-kind__box { height: 196px; } .wh-kind--wide .wh-kind__pic { object-position: 50% 22%; } }

/* ---------- buyers: the three cards on the designed ground ---------- */
.wh-buyers__scene { min-height: 460px; }
@media (max-width: 760px) { .wh-buyers__scene { min-height: 800px; } }

/* ---------- plan: the plan builds over the handshake ---------- */
.wh-plan__frame { position: relative; margin: 0; height: clamp(600px, 48vw, 660px); overflow: hidden; border-radius: var(--radius-m); background: var(--c-paper-alt); }
.wh-plan__crop { position: absolute; inset: 0; overflow: hidden; }
.wh-plan__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.wh-plan__stop { position: absolute; top: 14px; right: 14px; z-index: 3; }
.wh-plan__frame .wh-plan__scene { position: absolute; z-index: 2; left: clamp(14px, 3vw, 44px); top: 50%; transform: translateY(-50%); width: min(660px, 62%); height: 560px; }
@media (max-width: 760px) {
  /* the handshake in the clear on top; the photo runs on behind the plan's upper half */
  .wh-plan__frame { height: auto; overflow: visible; background: none; padding-top: 170px; }
  .wh-plan__crop { bottom: auto; height: 530px; border-radius: var(--radius-m); }
  .wh-plan__pic { top: -240px; bottom: auto; height: 770px; max-width: none; object-position: 78% 50%; }
  .wh-plan__frame .wh-plan__scene { position: relative; left: auto; top: auto; transform: none; width: 100%; height: 700px; }
  .wh-plan__stop { top: 182px; right: 12px; }
}

/* ---------- anyway: the chat in the paper phone over the mechanic ---------- */
.wh-anyway__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 36px); }
.wh-anyway__top .head { margin-bottom: 0; }
.wh-anyway__go { display: grid; gap: 8px; }
.wh-anyway__go p { font-size: var(--fs-small); color: var(--c-ink-soft); }
.wh-anyway__frame { position: relative; margin: 0; height: 640px; overflow: hidden; border-radius: var(--radius-m); background: var(--c-paper); }
.wh-anyway__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wh-anyway__stop { position: absolute; top: 14px; right: 14px; z-index: 3; }
.wh-anyway__note { margin-top: 18px; color: var(--c-ink-soft); }
.wh-anyway__frame .wh-anyway__phone { left: 28%; }
@media (max-width: 760px) {
  .wh-anyway__frame { height: 640px; }
  .wh-anyway__frame .wh-anyway__phone { left: 50%; width: 300px; height: 540px; }
}

/* ---------- close ---------- */
.wh-close .closing__shade { background: linear-gradient(90deg, rgba(13, 15, 38, .86) 0%, rgba(13, 15, 38, .6) 42%, rgba(13, 15, 38, 0) 72%); }
@media (max-width: 760px) {
  /* her face in the clear on top, the words on the ink under it */
  .wh-close { display: block; padding-top: 330px; }
  .wh-close .closing__media { height: 360px; bottom: auto; overflow: hidden; }
  .wh-close .closing__video { object-position: 66% 40%; }
  .wh-close .closing__shade { background: linear-gradient(180deg, rgba(13, 15, 38, 0) 70%, var(--c-ink-deep) 100%); }
}
