/* who-we-help.css: Who we help (plan.md, "Who we help"). Every color, size and corner from the tokens of system.css.
   A scene is placed with its part's class in front (its own <style> comes after this file). */

/* ---------- hero: the words at the left; at the right three businesses far apart, each getting its new client in
   turn (a kit sequence with its hold: the café's card stays). On a phone, one band that shows the three in turn. ---------- */
.whh { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.whh__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2.5rem, 4.5vw, 4rem); align-items: center; }
.whh__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.2rem + 2.3vw, 3.4rem); line-height: 1.06; color: var(--c-on-ink); } /* three lines beside the frames */
.whh__sweep { display: block; width: 220px; margin-top: var(--space-3); }
.whh__line { margin-top: var(--space-3); max-width: 31rem; font-size: 1.125rem; line-height: 1.6; color: var(--c-ink-soft-on-ink); }
.whh__cta { margin-top: var(--space-4); }
.whh__shots { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.whh__shot { position: relative; margin: 0; aspect-ratio: 2 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--c-ink-2); box-shadow: var(--shadow-l); }
.whh .whh__media { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
/* a 2:3 frame shows 38% of a 16:9 shot's width: the café owner and her sign; the attorney and the young woman; both roofers */
.whh__shot--cafe { --pos: 72% 50%; }
.whh__shot--cafe .whh__media { object-position: 72% 50%; }
.whh__shot--law .whh__media { object-position: 85% 50%; }
.whh__shot--roof .whh__media { object-position: 74% 50%; }
/* the new client's card at the frame's foot, under the faces (they sit in the top third of all three) */
.whh__card { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; padding: 12px; border-radius: var(--radius-m); background: var(--c-ink-2); border: 1px solid var(--c-line-ink); box-shadow: var(--shadow-l); color: var(--c-on-ink); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.whh__card i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.whh__card b { display: block; font: 700 0.9375rem/1.3 var(--font-ui); }
.whh__card small { display: block; margin-top: 3px; font-size: 0.8125rem; line-height: 1.35; color: var(--c-ink-soft-on-ink); }
.whh__stop { position: absolute; z-index: 3; top: 10px; right: 10px; }
@media (max-width: 1099.98px) {
  .whh__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .whh__title { max-width: 16ch; }
  .whh__shots { max-width: 820px; }
}
@media (max-width: 699px) {
  .whh__shots { display: block; height: 460px; }
  .whh__shot { position: absolute; inset: 0; aspect-ratio: auto; }
  .whh__shot + .whh__shot { opacity: var(--kit-in, 1); }
  /* the band shows 44% of each shot's width */
  .whh__shot--cafe { --pos: 75% 50%; }
  .whh__shot--cafe .whh__media { object-position: 75% 50%; }
  .whh__shot--law .whh__media { object-position: 93% 50%; }
  .whh__shot--roof .whh__media { object-position: 71% 50%; }
  .whh__card { left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- every (the signature): sweep-trades across the full width of the designed ground ---------- */
.ev__head { margin-inline: auto; text-align: center; }
.ev__head .sec-head__title { max-width: 18ch; margin-inline: auto; }
.ev__head .sec-head__line { margin-inline: auto; }
.ev__stage { position: relative; height: 440px; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.ev .ev__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev__stop { position: absolute; z-index: 5; top: 0; right: max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
@media (max-width: 599px) { .ev__stage { height: 400px; } }

/* ---------- who: the heading at the left (sticky on the computer), six fields at the right, then the way to the rest.
   Each photo comes to full color and the logo's sweep draws along its foot as its tile comes into view. ---------- */
.fl__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2.5rem, 4.5vw, 4.5rem); align-items: start; }
.fl__head { position: sticky; top: calc(96px + var(--space-5)); }
.fl__head .sec-head__title { max-width: 12ch; }
.fl__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.4vw, 2rem); }
.fld { display: grid; align-content: start; color: var(--c-ink); text-decoration: none; }
.fld__frame { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--c-paper-alt); box-shadow: var(--shadow-m); }
.fld .fld__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1.1s var(--ease-out), transform 1.2s var(--ease-out); }
.fld:hover .fld__photo { transform: scale(1.04); }
.sweep-ready .fld .fld__photo { filter: saturate(0.15) brightness(1.04); }
.sweep-ready .fld.is-in .fld__photo { filter: none; }
.fld__photo--home { object-position: 30% 50%; }
.fld__photo--outdoor { object-position: 100% 50%; }
.fld__photo--lawfile { object-position: 70% 40%; }
.fld__photo--health { object-position: 50% 40%; }
.fld__photo--realestate { object-position: 60% 40%; }
.fld__photo--events { object-position: 70% 40%; }
.fld__sweep { display: block; width: 100%; height: 14px; margin-top: 12px; }
.fld__name { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem); line-height: 1.15; }
.fld__trades { margin-top: 6px; font: 600 0.8125rem/1.5 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-brand-text); }
.fld__line { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: var(--c-ink-soft); }
.fld:hover .fld__name { text-decoration: underline; text-decoration-color: var(--c-brand); text-underline-offset: 4px; }
.fld:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 6px; border-radius: var(--radius-m); }
.fld--more { grid-column: 1 / -1; grid-template-columns: 48px minmax(0, 1fr) 44px; align-items: center; gap: var(--space-3); padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--radius-m); background: var(--c-ink); color: var(--c-on-ink); }
.fld--more .fld__name { display: block; margin-top: 0; }
.fld--more .fld__line { display: block; color: var(--c-ink-soft-on-ink); }
.fld__mark { width: 48px; height: 48px; fill: var(--c-brand); }
.fld__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); transition: transform var(--dur-fast) var(--ease-out); }
.fld--more:hover .fld__go { transform: translateX(3px); }
@media (max-width: 1099.98px) {
  .fl__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .fl__head { position: static; }
  .fl__head .sec-head__title { max-width: 18ch; }
}
@media (max-width: 699px) {
  .fl__tiles { grid-template-columns: minmax(0, 1fr); }
  .fld--more { grid-template-columns: 40px minmax(0, 1fr); }
  .fld--more .fld__go { display: none; }
  .fld__mark { width: 40px; height: 40px; }
}

/* ---------- buyers: three-buyers (dark) on the ink's designed ground ---------- */
.by__head { margin-inline: auto; text-align: center; }
.by__head .sec-head__title, .by__head .sec-head__line { margin-inline: auto; }
.by__stage { position: relative; max-width: 1100px; margin: clamp(3.5rem, 6vw, 4.5rem) auto 0; }
.by .by__scene { width: 100%; height: 460px; }
.by__stop { position: absolute; z-index: 5; top: -56px; right: 0; }
/* narrower than its 1100 px stage, its titles and steps wrap: it takes its own height */
@media (max-width: 1239.98px) { .by .by__scene { height: auto; min-height: 460px; } }
/* one column: the cards open and fold in turn, so the box keeps the height of its tallest */
@media (max-width: 759.98px) { .by .by__scene { min-height: 780px; } }

/* ---------- anyway: an auto shop (a field the six don't name) with the free plan's chat in a phone over its left side ---------- */
.any__head { max-width: 40rem; }
.any__frame { position: relative; height: clamp(600px, 48vw, 680px); margin-top: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-l); overflow: clip; background: var(--c-ink-2); box-shadow: var(--shadow-l); }
.any .any__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.any .any__phone { position: absolute; z-index: 2; left: clamp(20px, 3.5vw, 48px); top: 50%; width: 330px; transform: translateY(-50%); }
.any .chat { height: 420px; }
.any__stop { position: absolute; z-index: 3; right: var(--space-3); bottom: var(--space-3); }
@media (max-width: 1099.98px) { .any .any__photo { object-position: 100% 45%; } }
/* phone: the photo a tall band (the mechanic's face in its middle), the phone pulled over its lower part */
@media (max-width: 699px) {
  .any__frame { display: flex; flex-direction: column; height: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .any .any__photo { position: relative; inset: auto; height: 800px; border-radius: var(--radius-l); object-position: 68% 50%; }
  .any .any__phone { position: relative; left: auto; top: auto; width: min(330px, 100%); margin: -330px auto 0; transform: none; }
  .any .chat { height: 400px; }
  /* left of the face, 60 px over the phone: the icon and the chat fit in one phone screen */
  .any__stop { top: 410px; bottom: auto; left: var(--space-3); right: auto; }
}

/* ---------- close: the boutique full-bleed (the three faces in its top third), its foot shaded to the ink; the words
   at the left and the picker at the right, both standing on the foot. Under 1100: the photo a band, the words under it. ---------- */
.wcl { position: relative; display: grid; align-content: end; min-height: clamp(720px, 58vw, 860px); overflow: hidden; isolation: isolate; }
.wcl__media { position: absolute; inset: 0; z-index: -1; }
.wcl__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 92%, transparent) 30%, color-mix(in srgb, var(--c-ink) 50%, transparent) 46%, transparent 62%); }
.wcl .wcl__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.wcl__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
.wcl__sweep { display: block; width: 200px; }
.wcl__title { margin-top: var(--space-3); max-width: 13ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.04; color: var(--c-on-ink); }
.wcl__line { margin-top: var(--space-3); font-size: 1.125rem; color: var(--c-ink-soft-on-ink); }
@media (max-width: 1099.98px) {
  .wcl { display: block; min-height: 0; padding-top: 0; }
  .wcl__media { position: relative; inset: auto; z-index: 0; height: clamp(360px, 56vw, 520px); margin-bottom: var(--space-4); }
  .wcl__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, transparent 38%); }
  .wcl .wcl__photo { object-position: 50% 18%; }
  .wcl__inner { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
  .wcl .picker { max-width: 34rem; }
}
