@import url("../arsenal/motif-window.css");
/* who-we-help.css: the Who we help page's own placing and sizing. Components and tokens come from design\.
   Scenes keep their words at full size; glass and boxes stay off faces. */

/* ---------- 1. the header: motif-window as it stands (the X block's shape), the booking box in its action box ---------- */
.whohead .motif-window__h { font-size: clamp(40px, min(calc(3cqi + 20px), 7.2vh), 74px); }
/* each clip 1 px past the view on every side, so no edge of the paper shows at any screen scale */
.whohead .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.whohead .motif-window__act { width: min(100%, 500px); }
@container motif-window (width < 760px) {
  .whohead .motif-window__h { font-size: clamp(34px, calc(6cqi + 12px), 46px); }
  .whohead .motif-window__act { width: 100%; margin-top: 18px; }
}

/* ---------- 2. every kind at once: the type on the designed ground ---------- */
.xkind { --ground-x: 50%; --ground-y: 100%; }
.xkind__head { margin-bottom: 8px; }
.xkind__stage { position: relative; max-width: 1120px; margin: 0 auto; padding-top: 48px; }
.xkind__stage > .stop { top: 0; right: 0; bottom: auto; }
.xkind__scene { position: relative; }

/* ---------- 3. every kind of business, at any stage: the industries wall on the paper ground, the live sites by
   industry, the close for everyone else ---------- */
.every { --ground-x: 88%; --ground-y: 0%; }
.every__stage { position: relative; padding-top: 48px; }
.every__stage > .stop { top: 0; right: 0; bottom: auto; }
.every__scene { position: relative; height: 420px; }
@media (max-width: 639px) { .every__scene { height: 400px; } }
.live { margin-top: clamp(40px, 5vw, 64px); }
.live__title { margin: 0 0 20px; font: 800 var(--fs-h3)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--c-ink); }
/* positioned, so the links' hidden "(opens in a new tab)" stay inside the phone's sideways row */
.live__fams { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 4px 4px 18px; margin: -4px -4px -18px; }
.live__fam { padding: 20px 22px 12px; border-radius: var(--radius-xl); background: var(--c-card); box-shadow: var(--shadow-s), inset 0 0 0 1px var(--c-line); }
.live__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 1.0625rem/1.25 var(--font-display); letter-spacing: -0.005em; color: var(--c-ink); }
.live__head .x { width: 14px; height: 14px; border-radius: 4px; }
.live__list { margin: 0; padding: 0; list-style: none; }
.live__ind { display: grid; gap: 1px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.live__ind:first-child { border-top: 0; }
.live__name { font: 700 0.9375rem/1.3 var(--font-ui); color: var(--c-ink); }
/* each site in two short lines under its industry: the domain (a link), then its kind of work */
.live__site { display: grid; justify-items: start; font: 500 0.8125rem/1.35 var(--font-ui); color: var(--c-ink-soft); }
.live__site + .live__site { margin-top: 6px; }
.live__site a { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0 1px; font: 700 0.875rem/1.35 var(--font-ui); color: var(--c-brand-text); text-decoration: none; overflow-wrap: anywhere; }
.live__site a:hover { text-decoration: underline; text-underline-offset: 3px; }
.live__site a svg { width: 10px; height: 10px; flex: none; }
.every__close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 28px; padding: 22px 24px 22px 28px; border-radius: var(--radius-xl); background: var(--c-night); color: var(--c-on-night); box-shadow: var(--shadow-m); }
.every__ask { margin: 0; max-width: 40rem; font: 500 var(--fs-lede)/1.4 var(--font-text); color: var(--c-on-night-soft); }
.every__ask b { display: block; font: 800 1.375rem/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--c-on-night); }
@media (max-width: 999px) { .live__fams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a phone: the six groups as a sideways row, one group and the edge of the next; the close stacked */
@media (max-width: 639px) {
  .live__fams { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; align-items: start; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .live__fams::-webkit-scrollbar { display: none; }
  .live__fam { scroll-snap-align: start; padding: 18px 18px 10px; }
  .every__close { padding: 22px 20px; }
  .every__close .btn { width: 100%; }
}

/* ---------- 4. however they buy: three-buyers, dark ---------- */
.buyers { --ground-x: 15%; --ground-y: 0%; }
.buyers__stage { position: relative; padding-top: 48px; }
.buyers__stage > .stop { top: 0; right: 0; bottom: auto; }
.buyers__scene { position: relative; min-height: 460px; }
@media (max-width: 759px) { .buyers__scene { min-height: 820px; } }

/* ---------- 5. the plan for any business: the planner, the calendar filling in glass over it ---------- */
.wplan__in { display: grid; gap: 32px; align-items: center; }
.wplan__head { margin: 0; justify-items: start; }
.wplan__head .btn { margin-top: 8px; }
.wplan__frame { position: relative; overflow: hidden; height: 560px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
.wplan__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 50%; }
.wplan__stage { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.wplan__scene { position: relative; }
.wplan__frame .stop { top: 14px; right: 14px; bottom: auto; }
@media (min-width: 760px) {
  .wplan__frame { height: 600px; }
  .wplan__stage { left: auto; right: 28px; bottom: auto; top: 50%; width: min(440px, 62%); transform: translateY(-50%); }
}
@media (min-width: 1000px) { .wplan__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }

/* ---------- 6. not on the list: the groomer at work, the short form in its own box at her side ---------- */
.nolist__frame { position: relative; display: grid; }
.nolist__photo { display: block; width: 100%; height: 420px; max-width: none; object-fit: cover; object-position: 55% 30%; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.nolist__box { position: relative; z-index: 1; display: grid; gap: 18px; width: min(100% - 24px, 520px); margin: -72px auto 0; padding: 26px 24px 22px; box-sizing: border-box; border-radius: var(--radius-xl); background: var(--c-card); box-shadow: var(--shadow-l); }
.nolist__words { display: grid; gap: 10px; }
.nolist__words .head__line { margin: 0; color: var(--c-ink-soft); }
.nolist__box .book { padding: 0; background: none; box-shadow: none; border-radius: 0; }
@media (min-width: 1000px) {
  .nolist__frame { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .nolist__photo { grid-column: 1 / span 9; grid-row: 1; height: 640px; object-position: 40% 30%; }
  .nolist__box { grid-column: 8 / span 5; grid-row: 1; width: 100%; margin: 0; padding: 30px 28px 24px; }
}

/* ---------- 7. the close: the shop owner and his customer, the words centered over a lower wash ---------- */
.whoclose { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(600px, 54vw, 780px); background: var(--c-night); color: #fff; }
.whoclose__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.whoclose__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 25%; }
.whoclose::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 30%, rgba(13, 13, 15, 0.72) 58%, rgba(13, 13, 15, 0.95) 100%); }
.whoclose__in { display: grid; justify-items: center; gap: 18px; padding-block: 64px clamp(56px, 7vw, 96px); text-align: center; }
.whoclose .close__line { max-width: 34rem; }
@media (max-width: 759px) {
  .whoclose { min-height: 720px; }
  .whoclose__photo { object-position: 22% 0%; }
  .whoclose::before { background: linear-gradient(180deg, rgba(13, 13, 15, 0) 28%, rgba(13, 13, 15, 0.78) 50%, rgba(13, 13, 15, 0.96) 100%); }
}
