@import url("../arsenal/word-window.css");

/* Who we help: places and sizes only. */

/* ---------- hero: "Booked." edge to edge, three trades at work inside its letters, the line and the main button under
   it; its stop icon in the lower corner ---------- */
.who-hero { padding-block: clamp(32px, 4vw, 64px) clamp(56px, 6vw, 96px); }
.who-hero .word-window__media:nth-child(1) { --ww-focus: 50% 46%; }
.who-hero .word-window__media:nth-child(2) { --ww-focus: 50% 31%; }
.who-hero .word-window__media:nth-child(3) { --ww-focus: 50% 36%; }
.who-hero .word-window__line { max-width: 31em; }
.who-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.who-hero__cta .cta-note { margin: 0; max-width: 16rem; }
.who-hero > .stop { top: auto; bottom: var(--space-3); right: var(--gutter); }

/* ---------- wall: the ledger, the week filling with every kind of business (its lines only: the scene is the motif) ---------- */
.who-wall::after { display: none; }
.who-wall__stage { position: relative; }
.who-wall__stage > .who-wall__scene { width: 100%; height: 520px; }
.who-wall__stage > .stop { top: -52px; right: 0; }
@media (max-width: 599px) { .who-wall__stage > .who-wall__scene { height: 490px; } }

/* ---------- kinds: the home tour's list (seven tabs), the chosen kind at work, a solid card on its photo clear of faces ---------- */
.kinds { align-items: stretch; }
.kinds__tabs { gap: 0.5rem; }
.kinds .tour__tab { padding-block: 0.95rem 1.05rem; }
.kinds__stage { position: relative; min-height: clamp(520px, 40vw, 560px); }
.kinds__panel { position: absolute; inset: 0; }
.kinds__panel[hidden] { display: none; }
.kinds__panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.kinds__card { position: absolute; z-index: 2; width: min(330px, calc(100% - 32px)); display: grid; gap: 0.7rem; padding: 1.15rem 1.25rem 1.25rem; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-m); box-shadow: var(--shadow-l); }
.kinds__panel--tl .kinds__card { top: 20px; left: 20px; }
.kinds__panel--tr .kinds__card { top: 68px; right: 20px; }
.kinds__panel--bl .kinds__card { bottom: 20px; left: 20px; }
.kinds__panel--br .kinds__card { bottom: 20px; right: 20px; }
.kinds__card h3 { font-size: 1.25rem; }
.kinds__fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.kinds__fields li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border-radius: var(--radius-pill); background: var(--c-paper-alt); border: 1px solid var(--c-line); font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--c-ink); }
.kinds__fields svg { width: 10px; height: 10px; flex: none; fill: var(--c-brand); }
.kinds__means { margin: 0; font: 600 1.0625rem/1.4 var(--font-display); color: var(--c-ink); letter-spacing: -0.01em; }
.kinds__go { justify-self: start; }
@media (max-width: 899px) {
  .kinds__stage { min-height: 0; height: clamp(460px, 120vw, 560px); }
  .kinds .tour__tab { flex: 0 0 auto; padding: 0.85rem 2.5rem 0.9rem 1rem; }
  .kinds__panel--tl .kinds__card, .kinds__panel--tr .kinds__card, .kinds__panel--bl .kinds__card, .kinds__panel--br .kinds__card { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; }
}

/* ---------- buyers: the ledger (its bars on the left), three kinds of customer playing in turn ---------- */
.who-buyers__stage { position: relative; container-type: inline-size; }
.who-buyers__stage > .who-buyers__scene { width: 100%; max-width: 1100px; margin-inline: auto; min-height: 460px; }
.who-buyers__stage > .stop { top: -52px; right: 0; }
/* the stacked cards (the scene's own layout under 760 px wide, phones and small tablets alike): the scene keeps the height
   of its tallest moment (measured: 758 to 863 px, 320 to 840 px screens) and its line stays at its foot, so nothing
   under the cards moves while they fold and open */
@container (width < 760px) {
  .who-buyers__stage > .who-buyers__scene { min-height: 790px; }
  .who-buyers .who-buyers__scene .tb { align-self: stretch; grid-template-rows: auto 1fr; }
  .who-buyers .who-buyers__scene .tb-foot { align-self: end; }
}
@container (width < 350px) { .who-buyers__stage > .who-buyers__scene { min-height: 810px; } }
@container (width < 320px) { .who-buyers__stage > .who-buyers__scene { min-height: 870px; } }

/* ---------- anyway: the words and the main button centered, the groomer at work, the chat in a white phone standing
   at the photo's right edge, over its blue wall, clear of her and the dog ---------- */
.who-anyway .sec__head .cta-row { margin-top: var(--space-4); }
.who-anyway__stage { position: relative; }
.who-anyway__frame { width: 80%; aspect-ratio: 4 / 3; }
.who-anyway__frame img { object-position: 40% 40%; }
.who-anyway__frame > .stop { top: var(--space-3); right: auto; left: var(--space-3); }
.who-anyway__stage > .who-anyway__phone { position: absolute; top: 50%; right: 0; width: 330px; margin: 0; transform: translateY(-50%); }
.who-chat { min-height: 500px; }
/* the first message stands in the phone before the chat starts too (the kit shows it as it begins), so it is never empty */
.who-chat > [data-kit-msg]:first-child { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .who-anyway__frame { width: auto; aspect-ratio: 4 / 3.4; }
  .who-anyway__frame img { object-position: 42% 35%; }
  /* its stop icon just over the phone's top, on the photo */
  .who-anyway__frame > .stop { top: auto; left: auto; bottom: 122px; right: 12px; }
  .who-anyway__stage > .who-anyway__phone { position: relative; top: auto; right: auto; width: min(330px, 92%); margin: -110px auto 0; transform: none; }
}

/* ---------- close: the closing band (the home page's), the doctor at her notes ---------- */
#close .close-band__media video { object-position: 40% 30%; }

/* ---------- member fix, 23 Nov 2026: the header on the computer, words beside a framed picture (Paul's choice; the
   member disliked the big word there). The three trades take turns in the frame, each with the booking it brought.
   Phones keep the word header (the member liked it there): the computer's words stay as the page's h1, read only. ---------- */
.who-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding-block: calc(var(--section-y) * 0.42) calc(var(--section-y) * 0.6); }
.who-split__title { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); text-wrap: balance; }
.who-split__copy .lead { margin-top: var(--space-4); max-width: 31rem; }
.who-split__copy .who-hero__cta { margin-top: var(--space-5); }
.who-split__stage { position: relative; aspect-ratio: 5 / 4; max-height: 600px; }
.who-split__slides { position: absolute; inset: 0; margin: 0; }
.who-split__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; isolation: isolate; } /* each slide its own layer, card included, so a later one covers the one under it whole */
.who-split__slide + .who-split__slide { opacity: var(--kit-in, 0); }
.who-split__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(calc(1.05 - 0.05 * var(--kit-in, 1))); }
.who-split__card { position: absolute; z-index: 2; width: max-content; max-width: calc(100% - 40px); bottom: 20px;
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.who-split__slide--bl .who-split__card { left: 20px; }
.who-split__slide--br .who-split__card { right: 20px; }
.who-split__stage > .stop { top: 16px; right: 16px; }
@media (max-width: 1100px) and (min-width: 900px) { .who-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .who-top__phone { display: none; } }
@media (max-width: 899px) {
  .who-split { display: block; padding: 0; }
  .who-split__stage, .who-split__copy > :not(.who-split__title) { display: none; }
  .who-split__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
