/* who-we-help.css: the Who we help page's parts, placed and sized with the tokens of system.css. */

/* ---------- hero: three photo panels at the left, cut apart by the blade; the words on the ink at the right ---------- */
.ihead--wwh { display: grid; align-items: center; min-height: max(700px, min(100svh, 940px)); }
/* over the words' box (which spans the width, clear), so its stop icon is on top; the words stand right of it */
.wwh-panels { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 56%; }
.wwh-panel { position: absolute; top: 0; bottom: 0; margin: 0; overflow: hidden; background: var(--n-2); }
.wwh-panel img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
/* the cuts run at the blade's angle: 36 to 28, 68 to 60 and 100 to 92 (percent of the panels' width, top to bottom) */
.wwh-panel--1 { left: 0; width: 36%; clip-path: polygon(0 0, 100% 0, 77.8% 100%, 0 100%); }
.wwh-panel--1 img { object-position: 90% 40%; }
.wwh-panel--2 { left: 28%; width: 40%; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.wwh-panel--2 img { object-position: 40% 30%; }
.wwh-panel--3 { left: 60%; width: 40%; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.wwh-panel--3 img { object-position: 100% 50%; }
.wwh-cuts { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wwh-cuts path { fill: none; stroke: var(--c-brand); stroke-width: 3px; vector-effect: non-scaling-stroke; }
/* a booking lands low on each panel in turn (the kit's sequence on the panels, with its hold): the cut lines are its first
   item, always on, so the three bookings fade in in turn and fade out together, as one, never stepping back */
.wwh-books { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bk { position: absolute; bottom: 8%; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 10px 12px; color: var(--c-on-ink);
  background: color-mix(in srgb, var(--n-1) 94%, transparent); border: 1px solid var(--n-line); border-left: 3px solid var(--c-brand); box-shadow: var(--shadow-m);
  opacity: var(--kit-in, 1); }
.bk__tick { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); }
.bk__tick svg { width: 14px; height: 14px; }
.bk b { font: 700 15px/1.2 var(--font-ui); }
.bk small { font-size: 13px; line-height: 1.3; color: var(--n-soft); }
.bk--1 { left: 2.5%; width: 25%; }
.bk--2 { left: 30.5%; width: 27.5%; }
.bk--3 { left: 62.5%; width: 27.5%; }
.wwh-panels > .stop--hero { position: absolute; z-index: 6; left: var(--gutter); top: 96px; }
.ihead--wwh .ihead__wrap { position: relative; z-index: 3; padding-block: 132px 96px; }
.ihead--wwh .ihead__in { margin-left: auto; max-width: min(520px, 38vw); }
@media (max-width: 1100px) { .ihead--wwh .ihead__in { max-width: min(440px, 40vw); } }
@media (max-width: 900px) {
  /* on the phone: the words, then the panels, the three bookings stacked over their foot, under every face */
  .ihead--wwh { display: flex; flex-direction: column; min-height: 0; }
  .ihead--wwh .ihead__wrap { order: 1; padding-block: 104px 28px; }
  .ihead--wwh .ihead__in { margin-left: 0; max-width: none; }
  .wwh-panels { order: 2; position: relative; width: 100%; height: 600px; }
  .wwh-books { display: grid; align-content: end; gap: 8px; padding: 0 var(--gutter) 16px; }
  .bk, .bk--1, .bk--2, .bk--3 { position: relative; left: auto; bottom: auto; width: auto; }
  .wwh-panels > .stop--hero { top: 16px; }
}

/* ---------- every: trade-type on the designed ground, the words beside it ---------- */
.every__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px); gap: clamp(40px, 5vw, 80px); align-items: center; }
.every__stage { position: relative; }
.every__stage > .every__scene { height: 420px; }
.every__stage > .stop--corner { top: -52px; right: 0; }
@media (max-width: 1000px) {
  .every__grid { grid-template-columns: minmax(0, 1fr); }
  .every__stage { align-self: stretch; }
}
@media (max-width: 560px) { .every__stage > .every__scene { height: 340px; } }

/* ---------- kinds: the six fields and "And many more" (the kit's tour), a framed photo each ---------- */
.kinds .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.kinds__grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.kinds__tabs { display: grid; gap: 2px; }
.kinds__tabs [role="tab"] { position: relative; display: block; width: 100%; padding: 15px 18px; text-align: left; font: 750 1.0625rem/1.25 var(--font-display); font-stretch: 108%;
  color: var(--n-soft); background: none; border: 0; border-left: 2px solid var(--n-line); cursor: pointer; }
.kinds__tabs [role="tab"]:hover { color: var(--c-on-ink); }
.kinds__tabs [role="tab"][aria-selected="true"] { color: var(--c-on-ink); background: var(--n-1); border-left-color: var(--c-brand); }
.kinds__tabs [role="tab"][aria-selected="true"]::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--c-brand-on-ink); transform: scaleX(var(--kit-fill, 0)); transform-origin: 0 50%; }
.kinds__panels { position: relative; }
.kinds__stop { position: absolute; z-index: 5; top: 16px; right: 46px; }
.kpanel { position: relative; padding-bottom: 56px; }
.kpanel__frame { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--n-2); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.kpanel__frame img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.kpanel__card { position: absolute; left: 32px; bottom: 0; max-width: min(540px, calc(100% - 64px)); padding: 20px 24px; color: var(--c-on-ink);
  background: color-mix(in srgb, var(--n-1) 94%, transparent); border: 1px solid var(--n-line); border-top: 3px solid var(--c-brand); box-shadow: var(--shadow-m);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kpanel__fields { font: 700 1rem/1.45 var(--font-ui); }
.kpanel__fields i { font-style: normal; color: var(--c-brand-on-ink); }
.kpanel__means { margin-top: 8px; color: var(--n-soft); }
.kpanel__frame--more { display: grid; align-content: center; padding: clamp(28px, 4vw, 64px); background:
  radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--c-brand) 16%, transparent), transparent 70%),
  repeating-linear-gradient(-60deg, color-mix(in srgb, var(--c-paper) 4%, transparent) 0 1px, transparent 1px 28px),
  var(--n-1); }
.more__list { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 850 clamp(1.5rem, 0.9rem + 2vw, 2.5rem)/1.2 var(--font-display); font-stretch: 112%; color: var(--c-on-ink); }
.more__list span:not(:last-child)::after { content: '/'; margin-left: 16px; color: var(--c-brand-on-ink); }
.more__you { color: var(--c-brand-on-ink); }
.kpanel--more .kpanel__means { margin-top: 0; color: var(--c-on-ink); }
.kpanel__go { margin-top: 14px; }
@media (max-width: 900px) {
  .kinds__grid { grid-template-columns: minmax(0, 1fr); }
  .kinds__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .kinds__tabs [role="tab"] { width: auto; padding: 10px 14px; font-size: 0.9375rem; border: 1px solid var(--n-line); }
  .kinds__tabs [role="tab"][aria-selected="true"] { border-color: var(--c-brand); }
  .kinds__tabs [role="tab"][aria-selected="true"]::after { left: 14px; right: 14px; bottom: 4px; }
  .kpanel { padding-bottom: 0; }
  .kpanel__frame { aspect-ratio: 4 / 3; }
  .kpanel__card { position: relative; left: auto; bottom: auto; max-width: none; margin: -36px 14px 0; }
}

/* ---------- buyers: the signature, `behind`, on the designed ground ---------- */
.buyers .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.buyers__stage { position: relative; max-width: 1100px; }
.buyers__stage > .stop--corner { top: -52px; right: 0; }

/* ---------- plan: the owner at his kitchen table, the plan building over the laptop's side ---------- */
.chapter--plan { display: grid; min-height: max(780px, min(100svh, 920px)); }
.chapter--plan .chapter__photo { object-position: 40% 20%; }
.chapter--plan .chapter__shade { background:
  linear-gradient(0deg, color-mix(in srgb, var(--n-0) 88%, transparent) 0%, color-mix(in srgb, var(--n-0) 48%, transparent) 30%, color-mix(in srgb, var(--n-0) 0%, transparent) 56%),
  linear-gradient(90deg, color-mix(in srgb, var(--n-0) 50%, transparent) 0%, color-mix(in srgb, var(--n-0) 0%, transparent) 34%),
  linear-gradient(180deg, var(--n-0) 0%, color-mix(in srgb, var(--n-0) 0%, transparent) 12%); }
.chapter--plan .chapter__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 600px); justify-content: space-between; align-items: end; padding-block: clamp(96px, 9vw, 132px) clamp(56px, 6vw, 88px); }
.plan__stage { position: relative; align-self: center; container-type: inline-size; }
/* plan-builder lays out by its width: 600 px and up its wide card, 640 high (its most) so its last step stands whole
   under the plan (at 540 and 600 the plan cut it); under 600 its narrow one, 660 high, so the stop icon and the card fit
   one phone view */
.plan__stage > .plan__scene { width: 100%; height: 640px; }
@container (width < 600px) { .plan__stage > .plan__scene { height: 660px; } }
.plan__stage > .stop--corner { top: -52px; right: 0; }
/* under 1320 px the plan's wide card would reach his face: its narrow card instead */
@media (max-width: 1320px) {
  .chapter--plan { min-height: 900px; }
  .chapter--plan .chapter__in { grid-template-columns: minmax(0, 440px) minmax(0, 380px); }
}
@media (max-width: 900px) {
  /* on the phone: the words, then the photo tall, the plan over its lower part, under his face */
  .chapter--plan { display: flex; flex-direction: column; min-height: 0; padding-top: var(--section-y); }
  .chapter--plan .chapter__in { display: contents; }
  .chapter--plan .plan__head { order: 1; padding-inline: var(--gutter); margin-bottom: 28px; }
  .chapter--plan .chapter__photo { order: 2; position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-position: 40% 50%; }
  .chapter--plan .chapter__shade { display: none; }
  .chapter--plan .plan__stage { order: 3; align-self: stretch; z-index: 2; margin: -81vw var(--gutter) var(--section-y); }
}
@media (max-width: 760px) {
  .chapter--plan .chapter__photo { aspect-ratio: 9 / 16; }
  .chapter--plan .plan__stage { margin-top: -119vw; }
}

/* ---------- anyway: the groomer at work, the chat learning her business over the blue wall ---------- */
.anyway__head { margin: 0 auto clamp(32px, 4vw, 56px); justify-items: center; text-align: center; }
.anyway__stage { position: relative; max-width: 1100px; margin-inline: auto; }
.anyway__frame { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--n-2); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.anyway__frame img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 40%; }
.anyway__stage > .stop--corner { top: 16px; right: 46px; }
.anyway__chat { position: absolute; z-index: 2; right: 4%; top: 14%; width: min(340px, 31%); display: grid; gap: 10px; }
.cm { display: flex; align-items: flex-end; gap: 8px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.cm img { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-paper); }
.cm span { display: block; padding: 10px 14px; border-radius: var(--radius-m); font: 500 15px/1.35 var(--font-ui); }
.cm--bot span { color: var(--c-on-ink); background: color-mix(in srgb, var(--n-1) 94%, transparent); border: 1px solid var(--n-line); box-shadow: var(--shadow-m); }
.cm--you { justify-content: flex-end; }
.cm--you span { color: var(--c-on-brand); background: var(--c-brand); font-weight: 650; }
.cm--read i { display: block; height: 3px; margin-top: 8px; background: var(--c-brand-on-ink); transform: scaleX(var(--kit-in, 1)); transform-origin: 0 50%; }
.anyway .cta-row { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 760px) {
  .anyway__frame { aspect-ratio: 3 / 4; }
  .anyway__frame img { object-position: 50% 50%; }
  .anyway__stage { margin-bottom: 120px; }
  .anyway__chat { left: 12px; right: 12px; top: 55%; width: auto; }
}

/* ---------- close: the words over the florist's back, at the right ---------- */
.iclose--wwh .iclose__clip { object-position: 40% 30%; }
.iclose--wwh .iclose__shade { background:
  linear-gradient(270deg, color-mix(in srgb, var(--n-0) 86%, transparent) 0%, color-mix(in srgb, var(--n-0) 60%, transparent) 36%, color-mix(in srgb, var(--n-0) 0%, transparent) 60%),
  linear-gradient(180deg, color-mix(in srgb, var(--n-0) 60%, transparent) 0%, color-mix(in srgb, var(--n-0) 0%, transparent) 22%); }
.iclose--wwh .iclose__in { justify-items: end; text-align: left; }
.iclose--wwh .iclose__in > * { width: min(100%, 540px); }
.iclose--wwh .iclose__in .sec-head { justify-items: start; }
@media (max-width: 760px) {
  .iclose--wwh { align-items: end; }
  .iclose--wwh .iclose__clip { object-position: 25% 30%; }
  .iclose--wwh .iclose__shade { background: linear-gradient(0deg, color-mix(in srgb, var(--n-0) 92%, transparent) 0%, color-mix(in srgb, var(--n-0) 70%, transparent) 42%, color-mix(in srgb, var(--n-0) 0%, transparent) 66%); }
}
