/* who-we-help.css: Who we help, placed and sized with the tokens of system.css (plan.md, who-we-help). */

/* ---- hero: full-bleed footage taking turns between three kinds of business, the words low on the left ---- */
.wwh-hero { position: relative; display: grid; align-items: end; min-height: clamp(640px, calc(100svh - 76px), 860px); background: var(--c-navy-deep); color: var(--c-on-brand); isolation: isolate; overflow: hidden; }
.wwh-hero__stage { position: absolute; inset: 0; z-index: -1; }
.wwh-hero [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
.wwh-hero [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%))); }
.wwh-hero:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
.wwh-hero [data-kit-slide][data-prev] { visibility: visible; z-index: 1; opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
.wwh-hero:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
.wwh-hero [data-kit-slide] video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); clip-path: inset(2px); }
.wwh-hero [data-kit-slide] video[data-kit-shown] { clip-path: none; }
/* one still grade over the stage, under the words and the cards: navy toward the words, low on the left */
.wwh-hero__stage::after { content: ""; position: absolute; inset: -2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-navy-deep) 86%, transparent) 0%, color-mix(in srgb, var(--c-navy-deep) 58%, transparent) 34%, transparent 62%),
    linear-gradient(0deg, color-mix(in srgb, var(--c-navy-deep) 62%, transparent) 0%, transparent 46%); }
.wwh-hero__card { position: absolute; z-index: 4; right: max(var(--gutter), (100vw - var(--max-w)) / 2); bottom: 11%; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 18px)); }
.wwh-hero__slide[data-prev] .wwh-hero__card { opacity: 0; transition: opacity .3s var(--ease-out); }
.wwh-hero__stop { top: 20px; right: 20px; z-index: 6; }
.wwh-hero__words { position: relative; z-index: 5; display: grid; gap: 20px; justify-items: start; padding-block: 80px clamp(56px, 7vw, 96px); }
.wwh-hero .h1 { max-width: 15ch; font-size: clamp(2.375rem, 1.3rem + 3vw, 4rem); }
.wwh-hero .lead { max-width: 48ch; }
@media (max-width: 899px) {
  .wwh-hero { display: flex; flex-direction: column-reverse; min-height: 0; background: var(--c-ink); }
  .wwh-hero__stage { position: relative; inset: auto; z-index: 0; width: 100%; height: clamp(300px, 86vw, 560px); flex: none; }
  .wwh-hero__stage::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-navy-deep) 40%, transparent) 0%, transparent 40%); }
  .wwh-hero__card { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .wwh-hero__words { padding-block: 32px 30px; }
  .wwh-hero__stop { top: 12px; right: 12px; }
}

/* ---- kinds: the bridge every kind of business crosses, on the navy designed ground ---- */
.wwh-kinds { --ground-light: 18% 12%; }
.wwh-kinds__head { display: grid; gap: 14px; justify-items: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.wwh-kinds__head .lead { margin-inline: auto; }
.wwh-kinds__frame { position: relative; padding: clamp(24px, 3.4vw, 48px) clamp(18px, 3vw, 44px); border-radius: 32px; background: color-mix(in srgb, var(--c-navy-deep) 48%, transparent); box-shadow: inset 0 0 0 1px var(--c-navy-line); }
.wwh-kinds__frame > [data-scene] { width: 100%; }
.wwh-kinds__stop { top: 14px; right: 14px; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 760px) { .wwh-kinds__frame { padding: 56px 14px 18px; border-radius: 24px; } }

/* ---- work: six large photos in two staggered columns, each with what a new enquiry means for it ---- */
.wwh-work__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.wwh-work__stop { top: -58px; right: 0; }
.wwh-kind { margin: 0; display: grid; gap: 14px; }
.wwh-kind:nth-of-type(even) { transform: translateY(clamp(40px, 7vw, 110px)); }
.wwh-kind__media { aspect-ratio: 1.42; box-shadow: var(--shadow-m); }
.wwh-kind__card { position: absolute; z-index: 2; left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
.wwh-kind--1 .wwh-kind__media > img { object-position: 50% 60%; }
.wwh-kind--2 .wwh-kind__media > img { object-position: 70% 50%; }
.wwh-kind--3 .wwh-kind__media > img { object-position: 50% 35%; }
.wwh-kind--4 .wwh-kind__card { left: auto; right: 16px; }
.wwh-kind--6 .wwh-kind__media > img { object-position: 45% 40%; }
.wwh-kind__words { display: grid; gap: 4px; padding-inline: 4px; }
.wwh-kind__words b { font: 800 1.375rem/1.2 var(--font-display); letter-spacing: -.01em; color: var(--c-ink); }
.wwh-kind__words span { color: var(--c-ink-soft); }
.wwh-more { display: grid; align-content: end; gap: 10px; min-height: 260px; padding: 28px; border-radius: var(--radius-l); background: var(--c-brand); color: var(--c-on-brand); text-decoration: none; box-shadow: var(--shadow-m); }
.wwh-more:hover { color: var(--c-on-brand); background: var(--c-brand-dark); }
.wwh-more b { font: 800 1.75rem/1.1 var(--font-display); }
.wwh-more span { max-width: 40ch; color: color-mix(in srgb, var(--c-on-brand) 88%, transparent); }
.wwh-more__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: 700 1rem/1 var(--font-ui); color: var(--c-on-brand) !important; }
.wwh-work { padding-bottom: calc(var(--section-y) + clamp(40px, 7vw, 110px)); }
@media (max-width: 759px) {
  .wwh-work__grid { grid-template-columns: 1fr; }
  .wwh-kind:nth-of-type(even) { transform: none; }
  .wwh-work { padding-bottom: var(--section-y); }
  .wwh-work__stop { top: -52px; }
}

/* ---- buyers: three ways customers buy, on the grey designed ground ---- */
.wwh-buyers { --ground-light: 82% 20%; }
.wwh-buyers__head { display: grid; gap: 14px; justify-items: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.wwh-buyers__head .lead { margin-inline: auto; }
.wwh-buyers__frame { position: relative; padding-top: 52px; }
.wwh-buyers__frame > [data-scene] { width: 100%; }
.wwh-buyers__stop { top: 0; right: 0; }
@media (max-width: 759px) { .wwh-buyers__frame { padding-top: 0; } .wwh-buyers__stop { top: 8px; right: 8px; } }
/* on the phone every card stays open to its whole story (the scene reads --tb-one): the part keeps one height as it
   plays, and nothing under a card moves */
.wwh-buyers [data-scene="three-buyers"] .tb { --tb-one: 0; }

/* ---- plan: the free plan building beside a diary filling with bookings ---- */
.wwh-plan__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.wwh-plan__media { aspect-ratio: 1.5; box-shadow: var(--shadow-l); }
.wwh-plan__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.wwh-plan__scene { position: absolute; z-index: 3; left: 3%; top: 50%; translate: 0 -50%; width: min(620px, 42%); height: min(640px, 88%); }
.wwh-plan__scene > [data-scene] { width: 100%; height: 100%; }
.wwh-plan__stop { top: 14px; right: 14px; }
/* the tablet's own calendar, drawn at 640 x 480 */
.wwh-cal { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; width: 640px; height: 480px; padding: 26px; background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); }
.wwh-cal__top { display: flex; justify-content: space-between; align-items: baseline; }
.wwh-cal__top b { font: 800 28px/1 var(--font-display); }
.wwh-cal__top span { font: 600 20px/1 var(--font-ui); color: var(--c-ink-soft); }
.wwh-cal__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; font: 700 18px/1 var(--font-ui); color: var(--c-ink-soft); }
.wwh-cal__grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; padding: 10px; border-radius: 14px; background: var(--c-paper-alt); }
.wwh-cal__slot { display: grid; place-items: center; padding: 0 6px; border-radius: 10px; background: var(--c-brand); color: var(--c-on-brand); font: 700 17px/1.15 var(--font-ui); text-align: center; opacity: var(--kit-in, 1); transform: scale(calc(.9 + .1 * var(--kit-in, 1))); }
/* on the phone the tablet is too small to read: its calendar shows only its bookings filling in, the plan building over
   the photo under it */
@media (max-width: 899px) {
  .wwh-plan__media { aspect-ratio: auto; height: 900px; }
  .wwh-plan__photo img { object-position: 70% 50%; }
  .wwh-plan__scene { left: 12px; right: 12px; top: auto; bottom: 12px; translate: none; width: auto; height: 640px; }
  .wwh-cal__top, .wwh-cal__days { visibility: hidden; }
  .wwh-cal__slot { font-size: 0; }
}

/* ---- anyway: a business no list names, and the form's first step beside it ---- */
.wwh-anyway__head { display: grid; gap: 14px; justify-items: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.wwh-anyway__head .lead { margin-inline: auto; }
.wwh-anyway__grid { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: clamp(24px, 3.5vw, 52px); align-items: center; }
.wwh-anyway__media { aspect-ratio: 1.3; box-shadow: var(--shadow-m); }
.wwh-anyway__video { object-position: 62% 50%; }
.wwh-anyway__anchor { display: none; }
.wwh-anyway__card { position: absolute; z-index: 2; left: 16px; bottom: 16px; }
.wwh-anyway__stop { top: 14px; right: 14px; }
.wwh-anyway__form { display: grid; gap: 14px; }
@media (max-width: 899px) { .wwh-anyway__grid { grid-template-columns: 1fr; } }

/* ---- close ---- */
.wwh-close__video { object-position: 50% 45%; }
