/* Who we help (Part 2): the header's framed photo panel turning through six kinds of business (scene trade-booked:
   its pill straddles the panel's top-left edge, its booking card the bottom-right corner), the words at the right on
   cream; the kinds in wide photo cards; the three ways customers buy on the designed ground; the kit chat over a
   bakery for a business no list names; the closing band over an owner opening up. */

/* ---------- hero ---------- */
.wwh-hero { padding-block: clamp(64px, 7vw, 104px) clamp(112px, 10vw, 148px); background: var(--c-paper-alt); }
.wwh-hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(72px, 9vw, 136px); align-items: center; }
.wwh-hero__panel { position: relative; height: clamp(520px, 43vw, 620px); }
.wwh-hero__photos { position: absolute; inset: 0; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); background: var(--c-brand); box-shadow: var(--shadow-l); }
.wwh-hero__ph { position: absolute; inset: 0; margin: 0; opacity: 0; transform-origin: 50% 50%; }
/* the first painted photo is the last trade's: the scene's first frame and its resting one */
.wwh-hero__ph:last-child { opacity: 1; }
.wwh-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.scene.wwh-hero__tb { position: absolute; inset: 0; z-index: 3; --tb-past: 0.5; }
.wwh-hero__stop { top: 16px; right: 16px; }
.wwh-hero__copy h1 { font-size: var(--fs-h1); }
.wwh-hero__line { margin-top: var(--space-3); color: var(--c-ink-soft); font-size: var(--fs-lead); }
.wwh-hero__btn { margin-top: 30px; }
.wwh-hero__copy .note { margin-top: 12px; }

/* ---------- kinds: wide photo cards in two columns, the seventh navy ---------- */
.wwh-kinds .head { margin-bottom: clamp(36px, 4vw, 56px); }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.kind.wtile { aspect-ratio: 16 / 9; }
.kind.wtile::after { inset: 34% 0 0; }
.kind .wtile__text { gap: 5px; padding: 24px 26px 22px; }
.kind__line { display: block; margin-top: 6px; color: var(--c-on-brand); font-family: var(--font-ui); font-size: var(--fs-body); font-weight: 600; line-height: 1.35; transition: transform 450ms var(--ease-out); }
.kind:hover .kind__line, .kind:focus-visible .kind__line { transform: translateY(-4px); }
.kind--more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 30px 34px; border-radius: var(--radius-l); background: var(--c-brand); color: var(--c-on-brand); text-decoration: none; }
.kind__more-name { color: var(--c-on-brand); font-size: var(--fs-h3); }
.kind__more-line { display: block; margin-top: 4px; color: var(--c-on-brand-soft); }
.kind--more:hover .kind__go { background: var(--c-accent-deep); }

/* ---------- buyers: three-buyers on the designed ground ---------- */
.wwh-buyers .head { margin-bottom: clamp(56px, 5vw, 72px); }
.wwh-buyers__stage { position: relative; }
.scene.wwh-buyers__scene { width: 100%; height: 480px; }
.wwh-buyers__stop { top: -48px; right: 0; }

/* ---------- anyway: the kit chat in a white card over the bakery's flour table, clear of the baker ---------- */
.wwh-any__in { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); column-gap: clamp(40px, 6vw, 96px); align-items: center; }
.wwh-any__words h2 { font-size: var(--fs-h2); }
.wwh-any__words .head__line { margin-top: var(--space-3); }
.wwh-any__btn { margin-top: 28px; }
.wwh-any__words .note { margin-top: 12px; }
.wwh-any__stage { position: relative; height: clamp(540px, 46vw, 640px); }
.wwh-any__photo { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.wwh-any__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.wwh-any__stop { top: 16px; right: 16px; }
.wwh-any__card { position: absolute; z-index: 2; left: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; width: min(340px, 46%); height: min(440px, calc(100% - 48px)); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-l); }
.wwh-any__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--c-line); background: var(--c-paper); }
.wwh-any__avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); color: var(--c-accent); font-family: var(--font-display); font-weight: 800; }
.wwh-any__who b { display: block; color: var(--c-brand); font-family: var(--font-display); font-size: 0.95rem; }
.wwh-any__who small { color: var(--c-ink-soft); font-size: 0.8125rem; }

/* ---------- narrower ---------- */
/* the header stacks: the panel over the words, its card inside the right edge, straddling the foot */
@media (max-width: 1099px) {
  .wwh-hero__in { grid-template-columns: minmax(0, 1fr); row-gap: 112px; }
  .wwh-hero__panel { height: clamp(380px, 62vw, 540px); }
  .scene.wwh-hero__tb { --tb-past: 0; }
  .wwh-hero__copy { max-width: 640px; }
}
@media (max-width: 899px) {
  .wwh-any__in { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .wwh-any__stage { height: 560px; }
  .wwh-any__card { width: min(340px, 42%); }
}
@media (max-width: 759px) {
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .kind.wtile { aspect-ratio: 4 / 3; }
  .kind--more { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  /* its tallest state, measured with every card open in turn (12 Nov): 769 px at 390 wide, 748 from 500 */
  .scene.wwh-buyers__scene { height: auto; min-height: 770px; }
}
@media (max-width: 379px) { .scene.wwh-buyers__scene { min-height: 790px; } }
@media (max-width: 339px) { .scene.wwh-buyers__scene { min-height: 875px; } }
/* the phone: the pill sits just above the panel and the card just under it (the scene's own narrow layout); the
   bakery photo tall, the baker in its top, the chat card over its lower part */
@media (max-width: 699px) {
  .wwh-hero { padding-top: 56px; }
  .wwh-hero__panel { height: 300px; }
  .wwh-hero__in { row-gap: 168px; }
  .wwh-any__stage { height: 760px; }
  .wwh-any__img { object-position: 53% 50%; }
  .wwh-any__card { left: 12px; right: 12px; top: auto; bottom: 12px; transform: none; width: auto; height: 470px; }
}
