@import url("../arsenal/motif-window.css");
/* who-we-help.css: the Who We Help page's own layout, with the tokens of system.css. Grounds by plan.md: hero white
   around its window, street charcoal, kinds white, buyers brand tint with the roofline, plan cool gray, anyway warm
   tint, close footage. */

/* hero: the designer's own window on motif-window's code: the window is the logo's gable, the shade warm, the button
   the brand's gradient, the faint roofline on the paper behind it */
.wwh-hero { --mw-shade: color-mix(in srgb, var(--c-ink) 86%, var(--c-brand)); }
.wwh-hero .motif-window__stage { background-image: url("../../img/ground-roof.svg"); background-repeat: no-repeat; background-size: max(1100px, 110%) auto; background-position: 50% 96px; }
.wwh-hero .motif-window__h { max-width: 13ch; }
.wwh-hero .motif-window__cta { background: var(--g-roof); color: var(--c-on-brand); box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--c-brand) 70%, transparent); }
.wwh-hero .motif-window__cta:hover { filter: brightness(1.05); }
.wwh-hero__stop { top: 92px; right: 18px; z-index: 5; }

/* street: the signature on charcoal */
.wwh-street { padding-bottom: clamp(3rem, 6vw, 5rem); }
.wwh-street__head { text-align: center; }
.wwh-street__head h2 { max-width: 22ch; margin-inline: auto; font-size: var(--fs-h2); }
.wwh-street__head p { margin-top: var(--space-2); font-size: 1.125rem; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); }
.wwh-street__stage { position: relative; height: 440px; margin-top: clamp(2rem, 4vw, 3rem); }
.wwh-street__stage .scene { position: absolute; inset: 0; }
.wwh-street__stop { top: -54px; right: var(--gutter); }

/* kinds: six framed photos and a seventh card that opens the chat */
.wwh-kinds__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.wwh-kind { grid-column: span 2; }
.wwh-kind:nth-child(n+4) { grid-column: span 3; }
.wwh-kind .wwh-kind__covers { margin-top: .2rem; font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 700; color: var(--c-brand-text); }
/* the hero's line under the headline (Le, 20 Nov): dark beside the shape, light over the footage */
.wwh-hero .motif-window__sub { margin: clamp(14px, 1.6cqi, 22px) 0 0; max-width: 30ch; text-wrap: pretty; font: 500 clamp(17px, calc(.6cqi + 13px), 21px) / 1.45 var(--font-text); color: var(--mw-on); }
.wwh-hero.motif-window[data-ready] .motif-window__copy .motif-window__sub { color: var(--mw-ink); }
.wwh-hero.motif-window[data-ready] .motif-window__view .motif-window__sub { color: var(--mw-on); text-shadow: 0 2px 20px color-mix(in srgb, var(--mw-shade) 42%, transparent); }
/* at rest (reduced motion, or before the script runs) the shade inside the window would sit over the headline: keep the
   headline, its line and the button above it (20 Nov) */
.wwh-hero.motif-window:not([data-ready]) .motif-window__stage > .motif-window__copy { z-index: 3; }
/* other local businesses: one row of small cards */
.wwh-others__head { max-width: 46rem; }
.wwh-others__head h2 { font-size: var(--fs-h2); }
.wwh-others__head p { margin-top: var(--space-2); font-size: 1.125rem; color: var(--c-ink-soft); }
.wwh-others__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.wwh-other { display: flex; align-items: center; gap: .75rem; min-height: 72px; padding: .9rem 1.1rem; font-family: var(--font-ui); font-weight: 700; background: var(--c-paper-alt); border-radius: var(--radius-m); }
.wwh-other svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--c-brand-text); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.wwh-others__act { margin-top: var(--space-4); }
@media (max-width: 900px) { .wwh-others__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .wwh-others__row { grid-template-columns: minmax(0, 1fr); } }
.wwh-kind h3 { margin-top: var(--space-2); font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; }
.wwh-kind p { margin-top: .35rem; color: var(--c-ink-soft); }
.wwh-kind__pic { aspect-ratio: 4 / 3; box-shadow: var(--shadow-m); }
.wwh-kind__pic .frame__pic img { object-position: var(--pos, 50% 40%); }
.wwh-kind--more { grid-column: 1 / -1; }
.wwh-more { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .4rem var(--space-3); padding: var(--space-4); color: var(--c-on-ink); text-decoration: none; background: var(--c-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-m); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.wwh-more:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.wwh-more svg { grid-row: span 2; width: 56px; height: 56px; fill: none; stroke: var(--c-accent); stroke-width: 1.6; stroke-linejoin: round; }
.wwh-more h3 { margin: 0; font-size: 1.5rem; color: var(--c-on-ink); }
.wwh-more p { grid-column: 2; margin: 0; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); }
.wwh-more__go { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; font-family: var(--font-ui); font-weight: 700; color: var(--c-on-brand); background: var(--g-roof); border-radius: 999px; white-space: nowrap; }

/* buyers: three-buyers on the brand tint with the faint roofline */
.wwh-buyers { --ground-top: 120px; }
.wwh-buyers__stage { position: relative; min-height: 460px; }
.wwh-buyers__stop { top: -54px; right: 0; }

/* plan: on the cool gray, the handshake clip with the plan building in glass over its other half */
.wwh-plan { background: var(--c-paper-alt); }
.wwh-plan__words { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: clamp(2rem, 4vw, 3rem); }
.wwh-plan__words > div:first-child { max-width: 40rem; }
.wwh-plan__words h2 { font-size: var(--fs-h2); }
.wwh-plan__words p { margin-top: var(--space-2); font-size: 1.125rem; color: var(--c-ink-soft); }
.wwh-plan__act .btn-note { margin-top: .75rem; font-size: var(--fs-small); color: var(--c-ink-soft); }
.wwh-plan__pic { height: 640px; box-shadow: var(--shadow-l); }
.wwh-plan__pic .frame__pic video { object-position: 50% 15%; }
.wwh-plan__scene { position: absolute; z-index: 2; top: 40px; left: 24px; width: min(620px, 46%); height: 560px; }
.wwh-plan__scene .scene { position: absolute; inset: 0; }
.wwh-plan__stop { top: 14px; right: 14px; }

/* anyway: the bike shop owner, the chat on a glass phone beside him */
.wwh-anyway__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.wwh-anyway__words h2 { font-size: var(--fs-h2); }
.wwh-anyway__words p { margin: var(--space-2) 0 var(--space-4); font-size: 1.125rem; color: var(--c-ink-soft); }
.wwh-anyway__words .btn-note { margin-top: .75rem; font-size: var(--fs-small); }
.wwh-anyway__pic { height: 620px; box-shadow: var(--shadow-l); }
.wwh-anyway__pic .frame__pic img, .wwh-anyway__pic .frame__pic video { object-position: 34% 35%; }
.wwh-anyway__stop { top: 14px; left: 14px; }
.wwh-phone { position: absolute; z-index: 2; right: 22px; bottom: 22px; box-sizing: border-box; width: min(300px, 46%); overflow: hidden; background: color-mix(in srgb, var(--c-paper) 74%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 5px solid color-mix(in srgb, var(--c-ink) 88%, transparent); border-radius: 28px; box-shadow: var(--shadow-l); }
.wwh-phone__head { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 12%, transparent); }
.wwh-phone__head img { flex: none; width: 32px; height: 32px; }
.wwh-phone__head b { display: block; font-family: var(--font-ui); font-size: .875rem; }
.wwh-phone__head span { display: block; font-size: .8125rem; color: var(--c-ink-soft); }
.wwh-phone__body { position: relative; display: flex; flex-direction: column; gap: .5rem; height: 400px; padding: .8rem; overflow: hidden; }
.wmsg { align-self: flex-start; max-width: 88%; margin: 0; padding: .5rem .75rem; font-size: .875rem; line-height: 1.4; background: var(--c-paper); border-radius: 14px 14px 14px 4px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.wmsg:first-child { --kit-in: 1 !important; }
.wmsg--me { align-self: flex-end; color: var(--c-on-ink); background: var(--c-ink); border-radius: 14px 14px 4px 14px; }
.wmsg--chips { display: flex; gap: .4rem; padding: 0; background: none; }
.wmsg--chips span { display: grid; place-items: center; min-width: 44px; min-height: 34px; font-family: var(--font-ui); font-size: .875rem; font-weight: 700; background: var(--c-paper); border: 2px solid var(--c-line); border-radius: 999px; }
.wmsg--chips span[data-kit-on] { color: var(--c-brand-text); border-color: var(--c-brand-text); }
.wmsg--typing { display: flex; gap: .3rem; padding: .65rem .75rem; }
.wmsg--typing i { width: 7px; height: 7px; background: var(--c-ink-soft); border-radius: 50%; animation: wdot 1s infinite; }
.wmsg--typing i:nth-child(2) { animation-delay: .15s; }
.wmsg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wdot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.wmsg--check { align-self: stretch; max-width: none; font-weight: 600; }
.wmsg--check i { display: block; height: 6px; margin-top: .45rem; background: var(--g-roof); border-radius: 3px; transform: scaleX(var(--kit-fill, 0)); transform-origin: 0 50%; }
.wmsg--plan { align-self: stretch; max-width: none; padding: .7rem .8rem; border-left: 4px solid var(--c-brand); }
.wmsg--plan b { display: block; font-family: var(--font-ui); font-size: .9375rem; }
.wmsg--plan span { display: block; font-size: .8125rem; color: var(--c-ink-soft); }
@media (prefers-reduced-motion: reduce) { .wmsg--typing i { animation: none; } }

/* close */
.wwh-close .close__pic video { object-position: 50% 25%; }
.close--p2 .close__note { margin-top: .85rem; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); font-size: var(--fs-small); }

@media (max-width: 1000px) {
  .wwh-kinds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wwh-kind, .wwh-kind:nth-child(n+4) { grid-column: auto; }
  .wwh-kind:nth-child(5) { grid-column: 1 / -1; }
  .wwh-anyway__grid { grid-template-columns: minmax(0, 1fr); }
  .wwh-plan__pic { height: 760px; }
  .wwh-plan__pic .frame__pic video { object-position: 62% 10%; }
  .wwh-plan__scene { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; height: 540px; }
  .wwh-anyway__words { order: -1; }
}
@media (max-width: 760px) {
  .wwh-kinds__grid { grid-template-columns: minmax(0, 1fr); }
  .wwh-kind:nth-child(5) { grid-column: auto; }
  .wwh-more { grid-template-columns: auto minmax(0, 1fr); }
  .wwh-more__go { grid-column: 1 / -1; grid-row: auto; justify-content: center; padding: .7rem 1rem; text-align: center; white-space: normal; }
  .wwh-street__stage { height: 420px; }
  .wwh-street__stop { top: -50px; right: var(--gutter); }
  .wwh-buyers__stage { min-height: 820px; }
  .wwh-plan__pic { height: 980px; }
  .wwh-plan__scene { left: 12px; right: 12px; bottom: 12px; height: 700px; }
  .wwh-anyway__pic { height: 640px; }
  .wwh-anyway__pic .frame__pic img { object-position: 35% 20%; }
  .wwh-phone { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .wwh-phone__body { height: 340px; }
}
@media (max-width: 480px) {
  .btn--main { width: 100%; padding-inline: 1rem; }
}
