/* who-we-help.css: Who we help (src\pages\who-we-help.mjs). Every part on the ink; the motif's lattice behind the
   header's cube, the wall and the buyers; two new scenes: faces (scenes\faces.md) and kinds (scenes\kinds.md). */

/* ---------- the header: the cube on the left, the words on the right (the reverse of the home page) ---------- */
.wwh-hero { padding: clamp(32px, 3.6vw, 56px) 0 clamp(56px, 6vw, 96px); overflow: hidden; }
.lattice--wwh-hero { left: 0; top: 0; width: 58%; height: 100%; opacity: 0.1; -webkit-mask-image: radial-gradient(70% 72% at 26% 52%, #000 0%, transparent 74%); mask-image: radial-gradient(70% 72% at 26% 52%, #000 0%, transparent 74%); }
.wwh-hero__in { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(40px, 5.4vw, 92px); align-items: center; }
.wwh-hero__cube { position: relative; order: -1; }
.wwh-faces { width: 100%; }
.wwh-hero__stop { right: 0; bottom: 4%; }
.wwh-hero__title { font-size: var(--fs-h1); max-width: 12ch; }
.wwh-hero__line { max-width: 42ch; margin-top: var(--space-3); font-size: 1.1875rem; line-height: 1.55; color: var(--c-on-ink-soft); }
.wwh-hero__cta { margin-top: var(--space-5); }

/* ---------- the wall: the head centred, the scene edge to edge ---------- */
.wwh-kinds { padding-bottom: clamp(40px, 4.4vw, 72px); overflow: hidden; }
.lattice--wwh-kinds { right: 0; top: 0; width: 52%; height: 72%; opacity: 0.1; -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%); }
.wwh-kinds__head { margin: 0 auto var(--space-2); text-align: center; }
.wwh-kinds__head .part__title { max-width: 18ch; margin: 0 auto; }
.wwh-kinds__head .part__line { margin-left: auto; margin-right: auto; }
.wwh-kinds__wall { position: relative; z-index: 1; }
.wwh-wall { height: clamp(290px, 23vw, 330px); }
.wwh-kinds__stop { right: var(--gutter); bottom: 6px; }

/* ---------- the six kinds: large tiles; a row that scrolls sideways on a phone ---------- */
.wwh-who { padding-top: clamp(48px, 5vw, 88px); }
.wwh-who__head { margin-bottom: var(--space-5); }
.wwh-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wwh-tile { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--c-ink-2); border: 1px solid var(--c-ink-line); border-radius: var(--radius-l); overflow: hidden; }
.wwh-tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-ink-3); }
.wwh-tile__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(0.88) contrast(1.04); }
.wwh-tile--home .wwh-tile__img { object-position: 50% 32%; }
.wwh-tile--outdoor .wwh-tile__img { object-position: 74% 40%; }
.wwh-tile--law .wwh-tile__img { object-position: 78% 30%; }
.wwh-tile--health .wwh-tile__img { object-position: 44% 30%; }
.wwh-tile--realestate .wwh-tile__img { object-position: 76% 30%; }
.wwh-tile--events .wwh-tile__img { object-position: 48% 50%; }
.wwh-tile--more .wwh-tile__img { object-position: 50% 26%; }
.wwh-tile__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.wwh-tile__name { font-size: 1.5rem; }
.wwh-tile__fields { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--c-on-ink-soft); }
.wwh-tile__new { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; font-size: 1rem; line-height: 1.4; color: var(--c-on-ink); }
.wwh-tile__new b { font-weight: 700; color: var(--c-brand-on-ink); }
.wwh-mark { flex: none; width: 20px; height: 20px; fill: var(--c-brand-on-ink); }
/* the seventh: every other business, a way into the chat */
.wwh-tile--more { grid-column: 1 / -1; }
.wwh-tile__link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); height: 100%; color: inherit; text-decoration: none; }
.wwh-tile__link:focus-visible { outline: 3px solid var(--c-brand); outline-offset: -3px; border-radius: var(--radius-l); }
.wwh-tile--more .wwh-tile__media { aspect-ratio: 16 / 7; }
.wwh-tile--more .wwh-tile__body { justify-content: center; padding: clamp(24px, 3vw, 48px); }
.wwh-tile--more .wwh-tile__name { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
.wwh-tile--more .wwh-tile__fields { max-width: 34ch; font-size: 1.0625rem; }
.wwh-tile__go { margin-top: var(--space-4); padding-top: 0; gap: 12px; font-weight: 700; color: var(--c-brand-on-ink); }
.wwh-tile__link:hover .wwh-tile__go .btn__arrow { transform: translateX(3px); }

/* ---------- however they buy: the three buyers framed on the designed ground ---------- */
.lattice--wwh-buyers { left: 0; top: 0; width: 50%; height: 70%; opacity: 0.1; -webkit-mask-image: radial-gradient(100% 100% at 0% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(100% 100% at 0% 0%, #000 0%, transparent 70%); }
.wwh-buyers, .wwh-anyway { padding-top: clamp(56px, 6.6vw, 96px); }
.wwh-buyers__head { margin: 0 auto var(--space-5); text-align: center; }
.wwh-buyers__head .part__title { max-width: 20ch; margin: 0 auto; }
.wwh-buyers__head .part__line { margin-left: auto; margin-right: auto; }
.wwh-buyers__frame { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(14px, 2vw, 28px); border: 1px solid var(--c-ink-line); border-radius: var(--radius-l); background: var(--c-ink-2); }
.wwh-buyers__scene { height: 460px; }
.wwh-buyers__stop { right: 12px; top: 12px; }

/* ---------- not on any list: the words, and the groomer framed with the chat beside her ---------- */
.wwh-anyway__in { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.wwh-anyway__cta { margin-top: var(--space-5); }
.wwh-anyway__shot { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink-3); }
.wwh-anyway__media { position: absolute; inset: 0; }
.wwh-anyway__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; filter: saturate(0.88) contrast(1.04); }
.wwh-anyway__scene { position: absolute; right: 22px; bottom: 22px; width: min(300px, calc(38% - 30px)); }
.wwh-anyway__stop { left: -50px; bottom: 0; }

/* ---------- the close: an owner of yet another kind with a new client; the words on the right ---------- */
.wwh-close { display: grid; overflow: hidden; padding: 0; }
.wwh-close > * { grid-area: 1 / 1; }
/* the clip reaches 8% past the left edge, so both faces sit left of the words with room; the shade stops before the
   client's face */
.wwh-close__clip { align-self: stretch; justify-self: start; width: calc(108% + 2px); height: calc(100% + 2px); max-width: none; margin: -1px 0 -1px -8%; object-fit: cover; object-position: 0% 40%; }
.wwh-close__shade { pointer-events: none; z-index: 1; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 86%, transparent) 24%, color-mix(in srgb, var(--c-ink) 42%, transparent) 34%, transparent 42%); }
.lattice--wwh-close { right: 0; top: 0; width: 42%; height: 72%; z-index: 1; opacity: 0.1; -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%); }
.wwh-close__in { z-index: 2; width: 100%; padding-top: clamp(120px, 13vw, 190px); padding-bottom: clamp(110px, 12vw, 170px); display: grid; justify-items: end; }
.wwh-close__words { width: min(420px, 32%); }
.wwh-close__title { max-width: 13ch; font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.4rem); }
.wwh-close__line { margin-top: var(--space-4); font-size: 1.25rem; line-height: 1.5; color: var(--c-on-ink-soft); }
.wwh-close__cta { margin-top: var(--space-6); }
.wwh-close__stop { right: var(--gutter); top: 28px; }

/* ---------- narrower ---------- */
@media (max-width: 1100px) {
  .wwh-hero__in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
  .wwh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wwh-anyway__in { grid-template-columns: minmax(0, 1fr); }
  .wwh-anyway__words { max-width: 640px; }
  /* the close: the clip above, the words under it (the client's face would meet the words beside it) */
  .wwh-close { display: block; }
  .wwh-close__clip { display: block; width: calc(100% + 2px); height: auto; aspect-ratio: 16 / 9; margin: 0 -1px; object-position: 30% 40%; }
  .wwh-close__shade, .lattice--wwh-close { display: none; }
  .wwh-close__in { position: relative; display: block; padding-top: var(--space-5); padding-bottom: var(--section-y); }
  .wwh-close__words { width: auto; max-width: 640px; }
  .wwh-close__stop { top: 12px; right: 12px; }
}
@media (max-width: 820px) {
  .wwh-hero__in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-5); }
  .wwh-hero__cube { order: 0; width: min(100%, 460px); }
  .wwh-hero__words { text-align: center; }
  .wwh-hero__title, .wwh-hero__line { margin-left: auto; margin-right: auto; }
  .wwh-hero__cta { display: grid; justify-items: center; }
  .wwh-hero__cta .btn-note { justify-content: center; }
}
@media (max-width: 760px) {
  .lattice--wwh-hero { width: 100%; height: 60%; top: auto; bottom: 0; -webkit-mask-image: radial-gradient(80% 80% at 50% 70%, #000 0%, transparent 74%); mask-image: radial-gradient(80% 80% at 50% 70%, #000 0%, transparent 74%); }
  .wwh-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter); gap: 14px; }
  .wwh-tile { scroll-snap-align: start; }
  .wwh-tile--more { grid-column: auto; }
  .wwh-tile__link { display: flex; flex-direction: column; }
  .wwh-tile--more .wwh-tile__media { aspect-ratio: 4 / 3; }
  .wwh-tile--more .wwh-tile__body { justify-content: flex-start; padding: 18px 22px 22px; }
  .wwh-tile--more .wwh-tile__name { font-size: 1.5rem; }
  .wwh-tile--more .wwh-tile__fields { font-size: 1rem; }
  .wwh-buyers__frame { padding: 10px; }
  .wwh-buyers__scene { height: auto; min-height: 800px; }
  /* the groomer: a tall crop, her face in its top third and the chat over its lower part */
  .wwh-anyway__shot { display: flex; flex-direction: column; aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
  .wwh-anyway__media { position: relative; height: 560px; margin: 0 calc(-1 * var(--gutter)); }
  .wwh-anyway__img { width: calc(100% + 2px); margin: 0 -1px; object-position: 56% 24%; }
  .wwh-anyway__scene { position: relative; right: auto; bottom: auto; align-self: stretch; width: auto; max-width: 420px; min-height: calc(560px * 0.6); margin: calc(560px * -0.6) 10px 0; }
  .wwh-anyway__stop { left: auto; right: 0; bottom: auto; top: -52px; }
  .wwh-close__clip { aspect-ratio: 4 / 3; object-position: 34% 30%; }
}
@media (max-width: 600px) {
  .wwh-anyway__media { height: 520px; }
  .wwh-anyway__scene { min-height: calc(520px * 0.6); margin-top: calc(520px * -0.6); }
}
