@import url("../arsenal/trade-strips.css");
/* The Who we help page (plan.md, "Who we help"). #hero: the words at the left; at the right three tall arches rising
   like the arrow's climb (a florist, a family lawyer, a roofer at work), a booking card landing at the foot of each in
   turn and staying (the kit's sequence with its hold); under 1200 px the arches under the words, on the phone in a row
   that scrolls sideways. #rings: the unique element, trade-rings, full-bleed on the designed ground (the scene's rings
   are the ground's: no second set behind them); from 1060 px of stage the part's heading is the white disc in the rings'
   heart, under that it stands above the scene and the logo is in the heart. #kinds: the arsenal's trade-strips, slant,
   beside its words (under them below 1200 px). #anyway: hiw-chat in glass over the groomer's clear right side, hanging
   past the photo's foot. #close: the car detailer, the panel at the left over the car. Tokens only. */

/* ---------- #hero ---------- */
.whh { padding-top: clamp(1.75rem, 3.5vw, 3rem); }
.whh__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.whh__title { margin: 0 0 1rem; font-size: clamp(2.3rem, 1rem + 2.4vw, 3.3rem); line-height: 1.07; }
.whh__line { max-width: 30rem; margin: 0 0 1.6rem; }
.whh__cta, .wya__cta { display: grid; justify-items: start; }
.whh__stage { position: relative; }
/* each arch as tall as its photo (never stretched to the row), so its card stands at its own foot */
.whh__arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(.75rem, 1.5vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
/* each arch is its own container, so its round top is exactly half its width (radii a box would otherwise scale) */
.whh__arch { position: relative; container-type: inline-size; }
.whh__arch--florist { margin-top: 5rem; }
.whh__arch--law { margin-top: 2.5rem; }
.whh__pic { position: relative; aspect-ratio: 27 / 50; overflow: hidden; border-radius: 50cqw 50cqw var(--radius-m) var(--radius-m); background: var(--c-ink); box-shadow: var(--shadow-m); }
.whh__pic 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%); }
/* the florist's face in the middle of her arch; the lawyer and his client; the two roofers over the tiles */
.whh__arch--florist { --pos: 78% 50%; }
.whh__arch--law { --pos: 41% 30%; }
.whh__arch--roof { --pos: 50% 62%; }
/* each booking at its arch's foot, over the counter, the desk and the roof's tiles */
.whh__card { position: absolute; z-index: 2; left: .5rem; right: .5rem; bottom: .5rem; gap: .55rem; padding: .6rem .75rem .6rem .6rem; }
.whh__card .gcard__icon { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
.whh__card b { font-size: .875rem; }
.whh__card small { font-size: .78rem; }
.whh__card { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
@media (scripting: enabled) {
  .whh__arch:not(:first-child) .whh__card { opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 12px)); }
}
/* the part's stop icon in the corner the roofer's round top leaves free */
.whh__stop { z-index: 3; top: 0; right: 0; }
.whh__stop--item { display: none; }
@media (max-width: 1199px) {
  .whh__in { grid-template-columns: minmax(0, 1fr); }
  .whh__words { max-width: 40rem; }
  .whh__pic { aspect-ratio: 27 / 38; }
  .whh__arch--florist { margin-top: 3rem; }
  .whh__arch--law { margin-top: 1.5rem; }
}
@media (max-width: 759px) {
  .whh__arches { display: flex; gap: .85rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .whh__arch { flex: 0 0 min(66%, 15.5rem); scroll-snap-align: start; }
  .whh__pic { aspect-ratio: 27 / 37; }
  .whh__arch--florist { margin-top: 2rem; }
  .whh__arch--law { margin-top: 1rem; }
  .whh__stop:not(.whh__stop--item) { display: none; }
  .whh__stop--item { display: grid; }
}

/* ---------- #rings: trade-rings full-bleed on the designed ground; its stage as the scene's "Stage" line asks ---------- */
.whr { padding-block: clamp(2.5rem, 5vw, 4rem); }
.whr__in { position: relative; container-type: inline-size; }
.whr__head { max-width: 40rem; margin: 0 auto clamp(1.25rem, 3vw, 2rem); text-align: center; }
.whr__head .lede { margin: 0; }
.whr__stage { position: relative; height: 560px; }
.scene.whr__scene { position: absolute; inset: 0; }
.whr__stop { z-index: 3; top: 0; right: 0; }
/* from 1060 px of stage: the heading is the steady white disc in the rings' heart (the scene leaves the heart empty
   there, its centre at half the width less 110 px), over the cards that come out from under it */
@container (min-width: 1060px) {
  .whr__head { position: absolute; z-index: 2; top: 50%; left: calc(50% - 110px); translate: -50% -50%; display: grid; place-content: center; width: 228px; height: 228px; margin: 0; padding: 1.25rem; border-radius: 50%; background: var(--c-paper); box-shadow: var(--shadow-m), inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 40%, var(--c-paper)); }
  .whr__head h2 { margin: 0 0 .35rem; font-size: 1.45rem; line-height: 1.15; }
  .whr__head .lede { font-size: 1rem; line-height: 1.4; }
}
@container (max-width: 1059px) { .whr__stage { height: 520px; } }
@container (max-width: 859px) { .whr__stage { height: 500px; } }
/* on a phone the list of bookings stands at the stage's top: the stop icon goes to its foot */
@container (max-width: 559px) { .whr__stop { top: auto; bottom: 0; } }

/* ---------- #kinds: the arsenal's trade-strips, slant, beside its words ---------- */
.whk__in { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.whk__words .lede { margin: 0; }
@media (max-width: 1199px) {
  .whk__in { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
  .whk__words { max-width: 40rem; }
}

/* ---------- #anyway: the chat in glass over the groomer's clear right side, hanging past the photo's foot ---------- */
.wya__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.wya__words .lede { margin: 0 0 1.6rem; }
.wya__box { position: relative; min-height: 560px; }
.wya__pic { position: relative; width: 82%; height: 500px; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
/* her face a little left of the photo's middle, the blue wall free at its right for the chat */
.wya__pic img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 45%; }
.scene.wya__chat { position: absolute; z-index: 2; right: 0; bottom: 0; width: 290px; }
.wya__stop { z-index: 3; top: .9rem; right: calc(18% + .9rem); }
@media (max-width: 1023px) {
  .wya__in { grid-template-columns: minmax(0, 1fr); }
  .wya__words { max-width: 40rem; }
  .wya__box { min-height: 0; padding-bottom: 60px; }
  .wya__pic { width: 100%; height: 460px; }
  .wya__pic img { object-position: 50% 40%; }
  .scene.wya__chat { right: 1.5rem; }
  .wya__stop { right: .9rem; }
}
@media (max-width: 759px) {
  .wya__box { padding-bottom: 0; }
  .wya__pic { height: auto; aspect-ratio: 4 / 3.4; }
  .wya__pic img { object-position: 45% 40%; }
  /* centered, over the photo's foot by 90 px (her face and the dog's stay clear above it) */
  .scene.wya__chat { position: relative; right: auto; bottom: auto; width: min(320px, 90%); margin: -90px auto 0; }
  .wya__stop { top: .75rem; right: .75rem; }
}

/* ---------- #close: the car detailer smiling at his new booking, the panel at the left over the car ---------- */
.whclose { --close-pos: 66% 30%; --close-pos-m: 70% 22%; }
.whclose__seq { top: 1.5rem; right: 1.5rem; width: min(16rem, 22%); }
.whclose .close__stop { right: auto; left: 1rem; }
@media (max-width: 1199px) {
  .whclose { min-height: 0; align-items: end; justify-items: center; padding: 22rem 1.5rem 1.5rem; }
  .whclose::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 50%, transparent), transparent 60%); }
  .whclose .close__media :is(video, img) { object-position: 66% 25%; }
  .whclose__seq { top: 1.25rem; left: 1.25rem; right: auto; width: min(17rem, 40%); }
  .whclose .close__stop { left: auto; right: 1rem; }
}
@media (max-width: 759px) {
  .whclose { padding: 19rem .75rem .75rem; justify-items: stretch; }
  .whclose .close__media :is(video, img) { object-position: var(--close-pos-m); }
  /* his face fills the top of the phone's frame: no card over it */
  .whclose__seq { display: none; }
}
