/* who-we-help.css: the Who we help page (plan.md, Who we help), placed with the tokens of system.css.
   The breadth, part by part: three owners at work in the header (a florist, a family lawyer, a roofer) under an even
   light tint, the words on a charcoal block at its lower left whose upper right corner steps down in three squares;
   `every` on the charcoal ground and its field of squares; the six kinds of business as photo tiles, the client each
   one wants landing on it in turn (the kit's sequence, with the hold); the three kinds of buyer in a white frame; the
   plan beside an owner's hands; the chat over the groomer; the close. Her "never use gradients" holds inside the base
   scenes too. */

/* her "never use gradients", inside the base scenes: the list's lower edge even (its rows fade by themselves) */
.page-wwh [data-scene="newclients"] .nc-list { -webkit-mask-image: none; mask-image: none; }

/* ---- hero: the footage full bleed, the words on a charcoal block at the lower left ---- */
.wwh-hero { --s: 28px; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: clamp(600px, calc(100svh - 72px), 820px); background: var(--c-charcoal); color: var(--c-on-ink); }
.wwh-hero__stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* the kit's header (kit\kit.md, "The header that changes its field"), as it is */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
.wwh-hero__slide video { object-position: var(--pos, 50% 50%); }
/* the florist stands a little left of the frame's middle: her clip moves right (and a little closer), so her face keeps
   clear of the block and his stays whole (the clip still covers the stage's left edge) */
.wwh-hero__slide:first-child :is(video, .kit-first) { transform: translateX(8%) scale(1.16); }
.wwh-hero__shade { position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-charcoal) 12%, transparent); }
.wwh-hero__block { position: relative; box-sizing: border-box; display: grid; gap: 20px; justify-items: start; width: clamp(480px, 42%, 600px);
  padding: 48px 48px clamp(44px, 5vw, 64px) var(--gutter); background: color-mix(in srgb, var(--c-charcoal) 94%, transparent);
  clip-path: polygon(0 0, calc(100% - var(--s) * 3) 0, calc(100% - var(--s) * 3) var(--s), calc(100% - var(--s) * 2) var(--s),
    calc(100% - var(--s) * 2) calc(var(--s) * 2), calc(100% - var(--s)) calc(var(--s) * 2), calc(100% - var(--s)) calc(var(--s) * 3),
    100% calc(var(--s) * 3), 100% 100%, 0 100%); }
.wwh-hero__title { font-size: clamp(2.25rem, 1.3rem + 2.6vw, 3.5rem); }
.wwh-hero__line { margin: 0; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-navy-soft); }
.wwh-hero .act { margin-top: 8px; }
.wwh-hero__stop { top: 20px; right: 20px; }

/* ---- every: whatever you run, typed on the charcoal ground ---- */
.every { overflow: hidden; }
.every__in { position: relative; container-type: inline-size; display: grid; justify-items: center; gap: clamp(24px, 3vw, 40px); }
.every .every__scene { display: block; width: min(100%, 1160px); height: 460px; }
.every__title { max-width: 24ch; text-align: center; }
.every__stop { top: -10px; right: var(--gutter); }
.every__px--1 { top: 10%; left: 4%; }
.every__px--2 { bottom: 12%; left: 8%; }
.every__px--3 { bottom: 18%; right: 7%; }
@container (max-width: 759.98px) { .every .every__scene { height: 600px; } }
@media (max-width: 599px) { .every .every__scene { height: 560px; } .every__px--3 { display: none; } }

/* ---- kinds: the six kinds of business, each with the client it wants landing on its photo ---- */
.kinds__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.kinds__head { position: sticky; top: 112px; margin-bottom: 0; }
.kinds__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 36px) clamp(16px, 2vw, 24px); }
.kind-tile { display: grid; align-content: start; gap: 14px; color: var(--c-ink); text-decoration: none; }
.kind-tile__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--c-charcoal); }
.kind-tile__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover;
  object-position: var(--pos, 50% 50%); transition: transform var(--dur-med) var(--ease-out); }
.kind-tile:hover .kind-tile__media img { transform: scale(1.04); }
.kind-tile:nth-child(1) { --pos: 50% 40%; }
.kind-tile:nth-child(2) { --pos: 88% 50%; }
.kind-tile:nth-child(3) { --pos: 50% 4%; }
.kind-tile:nth-child(4) { --pos: 92% 50%; }
.kind-tile:nth-child(5) { --pos: 50% 30%; }
.kind-tile:nth-child(6) { --pos: 60% 40%; }
/* the client card lands on the photo's lower left, clear of every face (the kit's sequence: --kit-in alone) */
.kind-card { position: absolute; left: 12px; bottom: 12px; width: max-content; max-width: calc(100% - 24px);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.kind-tile__label { display: grid; gap: 4px; padding-right: 8px; }
.kind-tile__label b { font: 700 var(--fs-h3)/1.25 var(--font-head); transition: color var(--dur-fast); }
.kind-tile__label span { font: 500 var(--fs-small)/1.45 var(--font-ui); color: var(--c-ink-soft); }
.kind-tile:hover .kind-tile__label b { color: var(--c-brand-text); }
.kind-tile--more { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 24px 28px;
  border-radius: var(--radius-m); background: var(--c-charcoal); color: var(--c-on-ink); }
.kind-tile__px { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--c-charcoal-2); color: var(--c-accent); }
.kind-tile__px svg { width: 30px; height: 30px; }
.kind-tile__more { display: grid; gap: 4px; }
.kind-tile__more b { font: 600 var(--fs-h3)/1.2 var(--font-head); }
.kind-tile__more span { font: 500 var(--fs-small)/1.45 var(--font-ui); color: var(--c-on-navy-soft); }
.kind-tile__go { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-body)/1 var(--font-ui); color: var(--c-brand-on-ink); white-space: nowrap; }
.kind-tile__go::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c-accent); transition: transform var(--dur-fast) var(--ease-out); }
.kind-tile--more:hover .kind-tile__go::after { transform: translate(3px, -3px); }
.kinds__stop { top: 12px; right: 12px; }

/* ---- buyers: the three kinds of buyer, in a white frame on the soft gray ---- */
.buyers { overflow: hidden; }
.buyers__in { position: relative; }
.buyers__frame { position: relative; isolation: isolate; container-type: inline-size; box-sizing: border-box; max-width: 1180px; margin-inline: auto;
  padding: clamp(14px, 2.4vw, 34px); }
.buyers__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-l); background: var(--c-paper);
  --cut: calc(var(--px) * 2); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut), var(--cut) var(--cut)); }
.buyers .buyers__scene { display: block; height: 460px; }
@container (max-width: 759.98px) { .buyers .buyers__scene { height: auto; min-height: 780px; } }
.buyers__stop { top: -50px; right: 0; }
.buyers__px--1 { top: 9%; left: 3.5%; }
.buyers__px--2 { bottom: 7%; right: 4%; }

/* ---- plan: the plan builds beside an owner's hands ---- */
.wplan__row { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.wplan__media { grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: var(--c-paper-alt); }
.wplan__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 40% 50%; }
.wplan__stage { position: relative; grid-column: 1 / -1; grid-row: 1; justify-self: end; width: clamp(600px, 50%, 680px); height: 560px; }
.wplan__stage .wplan__scene { position: absolute; inset: 0; }
/* on the plan card's head, at its right (an empty corner of it) */
.wplan__stop { top: 12px; right: 12px; }

/* ---- anyway: the chat reads any business's website ---- */
.anyway__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: var(--c-charcoal); }
.anyway__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 0%; }
.anyway__card { position: absolute; top: 50%; right: clamp(16px, 3%, 40px); translate: 0 -50%; box-sizing: border-box; display: flex; flex-direction: column;
  width: min(400px, 34%); height: 352px; padding: 0 18px 18px; border-radius: var(--radius-l); color: var(--c-ink);
  background: color-mix(in srgb, var(--c-paper) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-m); }
.aw-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 0 -18px 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--c-line); }
.aw-head__px { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-charcoal); color: var(--c-accent); }
.aw-head__px svg { width: 18px; height: 18px; }
.aw-head b { font: 700 var(--fs-small)/1.2 var(--font-ui); }
.aw-head > span:last-child { font: 500 var(--fs-tiny)/1.3 var(--font-ui); color: var(--c-ink-soft); }
.anyway__chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.aw-msg { margin: 0; max-width: 88%; padding: 10px 13px; font: 500 var(--fs-small)/1.4 var(--font-ui);
  --i: var(--kit-in, 1); opacity: var(--i); transform: translateY(calc((1 - var(--i)) * 12px)); }
.anyway__chat [data-kit-msg]:not(:first-child) { opacity: calc(var(--i) * (1 - var(--kit-out, 0))); }
.aw-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--c-brand); color: var(--c-on-brand); }
.aw-them { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.aw-done { display: flex; align-items: center; gap: 9px; }
.aw-done::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2.5px; background: var(--c-accent); }
.aw-typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 14px; border-radius: 14px 14px 14px 4px; background: var(--c-paper);
  box-shadow: inset 0 0 0 1px var(--c-line); }
.aw-typing i { width: 7px; height: 7px; border-radius: 2px; background: var(--c-ink-soft); animation: aw-dot 1s ease-in-out infinite; }
.aw-typing i:nth-child(2) { animation-delay: 0.15s; }
.aw-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes aw-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
.anyway__stop { top: 14px; right: 14px; }
.anyway__more { margin: 24px 0 0; text-align: center; }

/* ---- close: the coach opens her door to a new client; new clients come in over the photo ---- */
.page-wwh #close { --tint-w: 46%; --pos: 50% 40%; }
.wwh-close__stage { position: absolute; right: clamp(16px, 3vw, 48px); bottom: clamp(16px, 3.5vw, 40px); width: clamp(320px, 28vw, 400px); }
.wwh-close__stage .wwh-close__scene { display: block; }
@media (min-width: 901px) {
  .page-wwh #close { min-height: clamp(600px, 50vw, 700px); }
  /* the coach stands at the photo's middle: the photo moves right (and a little closer), so the words keep clear of her */
  .page-wwh #close .band__media > img { transform: translateX(6%) scale(1.15); }
  .page-wwh #close .band__words > .band__title { max-width: min(560px, calc(var(--tint-w) - 64px)); font-size: clamp(2.25rem, 1.3rem + 2.3vw, 3.5rem); }
}

/* ---- under 1200: the plan stacks under its photo ---- */
@media (max-width: 1199px) {
  .wplan__row { display: block; }
  .wplan__stage { width: min(720px, 100%); margin: -96px auto 0; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  /* narrower, the clip is cropped at its sides: it moves a little further, so her face keeps clear of the block */
  .wwh-hero__slide:first-child :is(video, .kit-first) { transform: translateX(10%) scale(1.2); }
}
/* ---- under 1100: the kinds' head on top; the chat over the groomer's lower half ---- */
@media (max-width: 1099px) {
  .kinds__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kinds__head { position: static; margin-bottom: clamp(32px, 4vw, 48px); }
  .anyway__media { aspect-ratio: auto; height: 720px; }
  .anyway__media > img { object-position: 37% 0%; }
  .anyway__card { top: auto; bottom: 12px; left: 12px; right: 12px; translate: none; width: auto; max-width: 440px; margin-inline: auto; height: 330px; padding: 0 16px 14px; }
  .aw-head { margin: 0 -16px 12px; padding: 11px 16px; }
  .aw-msg { max-width: 92%; }
}
/* ---- under 1000: the header stacks, the footage on top and the block under it, its stepped corner over the footage ---- */
@media (max-width: 999px) {
  .wwh-hero { --s: 14px; display: block; min-height: 0; }
  .wwh-hero__stage { position: relative; inset: auto; z-index: 0; height: clamp(300px, 64vw, 540px); }
  .wwh-hero__slide:first-child :is(video, .kit-first) { transform: none; }
  .wwh-hero__slide:nth-child(1) { --pos: 90% 50%; }
  .wwh-hero__slide:nth-child(2) { --pos: 100% 50%; }
  .wwh-hero__slide:nth-child(3) { --pos: 80% 50%; }
  .wwh-hero__shade { display: none; }
  .wwh-hero__block { z-index: 1; width: auto; margin-top: calc(var(--s) * -3); padding: calc(var(--s) * 3 + 20px) var(--gutter) 48px; background: var(--c-charcoal); }
  .wwh-hero__stop { top: 14px; right: 14px; }
}
/* ---- the phone ---- */
@media (max-width: 900px) {
  .page-wwh #close { --pos: 67% 50%; }
  .page-wwh #close .band__media { aspect-ratio: auto; height: 640px; max-height: none; }
  .wwh-close__stage { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 659px) {
  .wplan__media { aspect-ratio: 4 / 3; }
  .wplan__stage { width: 100%; max-width: 420px; height: 700px; margin-top: -48px; }
  .wplan__stop { left: auto; bottom: auto; top: 14px; right: 14px; }
}
@media (max-width: 699px) {
  /* the stop on the first card's head, in its empty right corner (the column hangs from the top, that card first):
     one view holds it and the scene */
  .buyers__stop { top: 36px; right: 42px; }
}
@media (max-width: 639px) {
  .kinds__grid { grid-template-columns: minmax(0, 1fr); }
  .kind-tile--more { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .kind-tile__go { grid-column: 1 / -1; }
}
