/* site\assets\css\pages\who-we-help.css: Who we help (plan.md). Tokens only. */

/* ---- hero: the words on the left, three businesses taking turns in a tall frame on the right ---- */
.wwh-hero { padding-block: clamp(56px, 7vw, 104px); }
.wwh-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(40px, 5vw, 80px); align-items: center; }
.wwh-hero__title { font: 800 var(--fs-h1)/1.02 var(--font-display); letter-spacing: -0.025em; color: var(--c-on-ink); text-wrap: balance; }
.wwh-hero__line { margin: 22px 0 32px; max-width: 520px; font-size: var(--fs-body); color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); text-wrap: pretty; }
.wwh-hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.wwh-hero__note { margin: 0; font: 600 var(--fs-small)/1.4 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.wwh-hero__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-2);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--c-ink) 90%, transparent), 0 0 0 1px color-mix(in srgb, var(--c-on-ink) 10%, transparent); }
/* the kit's rotate (kit.md, "The header that changes its field"), as it gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [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%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
/* each clip held on its person and their work in the tall frame */
.wwh-slide--1 video, .wwh-slide--1 img { object-position: 33% 40%; }
.wwh-slide--2 video, .wwh-slide--2 img { object-position: 30% 45%; }
.wwh-slide--3 video, .wwh-slide--3 img { object-position: 49% 30%; }
/* its booking card, in glass at the foot of the frame, under the faces */
.wwh-slide__card { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 18px; color: var(--c-on-ink); background: color-mix(in srgb, var(--c-ink) 52%, transparent); border: 1px solid var(--c-glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c-ink) 85%, transparent);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.wwh-slide__card b { display: block; font: 700 1.125rem/1.2 var(--font-display); }
.wwh-slide__card small { display: block; margin-top: 2px; font: 600 var(--fs-small)/1.3 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.wwh-slide__tile { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--g-arrow); color: var(--c-ink); }
.wwh-slide__tile .mark { width: 24px; height: 24px; }
.wwh-hero__stop { top: 14px; right: 14px; }

/* ---- kinds: the signature, on the paper's designed ground ---- */
.wwh-kinds__stage { position: relative; }
.scene.wwh-kinds__scene { width: 100%; height: 520px; }
.wwh-kinds__stop { top: -52px; right: 0; }

/* ---- five: five kinds at work and a door for the rest; a booking chip lands on one after another ---- */
.wwh-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.wwh-kind { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; text-decoration: none;
  color: var(--c-on-ink); background: color-mix(in srgb, var(--c-on-ink) 6%, var(--c-ink));
  box-shadow: inset 0 0 0 1px var(--c-dark-edge), 0 30px 60px -36px color-mix(in srgb, var(--c-ink) 90%, transparent); }
.wwh-kind:hover, .wwh-kind:focus-visible { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-arrow-2) 60%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c-arrow-1) 45%, transparent); }
.wwh-kind:focus-visible { outline: 3px solid var(--c-arrow-2); outline-offset: 3px; }
.wwh-kind__photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-night-2); }
.wwh-kind__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wwh-kind__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.wwh-kind__name { font: 800 1.375rem/1.15 var(--font-display); letter-spacing: -0.01em; }
.wwh-kind__trades { font: 700 var(--fs-small)/1.35 var(--font-ui); color: var(--c-accent-on-ink); }
.wwh-kind__line { font-size: var(--fs-small); line-height: 1.45; color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.wwh-kind__cta { justify-self: start; margin-top: 8px; }
/* the chip: lands with the sequence, and on the card under the pointer */
.wwh-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 9px; border-radius: 999px;
  font: 800 .9375rem/1 var(--font-ui); color: var(--c-ink); background: var(--c-paper); box-shadow: var(--shadow-m);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)) scale(calc(.86 + var(--kit-in, 1) * .14)); }
.wwh-chip .mark { width: 18px; height: 18px; color: var(--c-arrow-1); }
.wwh-kind:hover .wwh-chip, .wwh-kind:focus-visible .wwh-chip { --kit-in: 1 !important; }
/* the chip sits on its photo, clear of the faces */
.wwh-chip--tl { left: 14px; top: 14px; }
.wwh-chip--bl { left: 14px; bottom: 14px; }
.wwh-chip--br { right: 14px; bottom: 14px; }
.wwh-five__stop { top: -54px; right: 0; }

/* ---- buyers ---- */
.wwh-buyers__stage { position: relative; }
.scene.wwh-buyers__scene { width: 100%; min-height: 460px; }
.wwh-buyers__stop { top: -52px; right: 0; }

/* ---- plan: the desk's phone lighting up, the plan's three cuts in glass half over it ---- */
.wwh-plan__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-right: clamp(200px, 22vw, 300px); }
.wwh-plan__photo { position: relative; margin: 0; height: 560px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-2);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c-ink) 85%, transparent); }
.wwh-plan__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 20% 60%; }
.wwh-plan__card { position: absolute; right: 0; top: 50%; width: min(400px, 40%); transform: translateY(-50%); }
.scene.wwh-plan__scene { width: 100%; height: 600px; }
.wwh-plan__stop { top: -52px; right: 0; }

/* ---- anyway: the plant seller at her truck, the chat learning her business over the truck bed ---- */
.wwh-anyway__frame { position: relative; margin: 0 auto; max-width: 1100px; aspect-ratio: 16 / 9; }
.wwh-anyway__photo { position: absolute; inset: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--c-paper-alt);
  box-shadow: 0 34px 64px -40px color-mix(in srgb, var(--c-brand) 55%, transparent); }
.wwh-anyway__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 40%; }
.wwh-anyway__stop { top: 14px; right: 14px; }
.wwh-chat { position: absolute; z-index: 2; left: 4%; top: 7%; width: min(340px, 40%); display: grid; gap: 9px; padding: 14px;
  border-radius: 20px; color: var(--c-ink); font: 500 15px/1.35 var(--font-ui);
  background: color-mix(in srgb, var(--c-paper) 64%, transparent); border: 1px solid color-mix(in srgb, var(--c-paper) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--c-ink) 55%, transparent), inset 0 1px 0 color-mix(in srgb, var(--c-paper) 90%, transparent); }
.wwh-chat [hidden] { display: none !important; }
.wwh-chat [data-kit-msg] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.wwh-chat__msg { max-width: 90%; margin: 0; padding: 10px 13px; border-radius: 16px; }
.wwh-chat__msg--bot { justify-self: start; background: var(--c-paper); border-bottom-left-radius: 6px; box-shadow: 0 1px 0 var(--c-line); }
.wwh-chat__msg--you { justify-self: end; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 6px; }
.wwh-chat__msg--typing { justify-self: start; display: inline-flex; gap: 5px; padding: 13px 15px; background: var(--c-paper); border-bottom-left-radius: 6px; }
.wwh-chat__msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: wwh-dot 1s ease-in-out infinite; }
.wwh-chat__msg--typing i:nth-child(2) { animation-delay: .15s; }
.wwh-chat__msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wwh-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wwh-chat__found { display: grid; gap: 3px; }
.wwh-chat__found small { font: 700 13px/1.2 var(--font-ui); color: var(--c-brand-text); }
.wwh-chat__found b { font: 700 16px/1.25 var(--font-ui); }
.wwh-chat__found span { font-size: 14px; color: var(--c-ink-soft); }
.wwh-chat__yes, .wwh-chat__nums span { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 999px;
  font: 700 14px/1 var(--font-ui); color: var(--c-brand-text); background: var(--c-brand-light);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.wwh-chat__yes { justify-self: start; margin-top: 6px; }
.wwh-chat__nums { display: flex; gap: 6px; margin-top: 8px; }
.wwh-chat__nums span { min-width: 42px; }
.wwh-chat__yes[data-kit-on], .wwh-chat__nums span[data-kit-on] { background: var(--c-brand); color: var(--c-on-brand); }
.wwh-chat__msg--ready { justify-self: stretch; display: grid; gap: 9px; background: var(--c-ink); color: var(--c-on-ink); }
.wwh-chat__msg--ready b { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--font-ui); }
.wwh-chat__msg--ready .mark { width: 18px; height: 18px; color: var(--c-arrow-2); }
.wwh-chat__bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c-on-ink) 18%, transparent); overflow: hidden; position: relative; }
.wwh-chat__bar::after { content: ""; position: absolute; inset: 0; background: var(--g-arrow); transform-origin: 0 50%; transform: scaleX(var(--kit-fill, 1)); }

/* ---- close: the boutique owner's new customer, the words in the calm lower half ---- */
.wwh-close { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: end center; text-align: center;
  min-height: clamp(640px, 54vw, 820px); padding: var(--section-y) var(--gutter) clamp(56px, 6vw, 84px); color: var(--c-on-ink); background: var(--c-ink); }
.wwh-close__media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.wwh-close__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; }
.wwh-close__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--c-ink) 55%, transparent) 62%, color-mix(in srgb, var(--c-ink) 86%, transparent) 100%); }
.wwh-close__in { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 700px; }
.wwh-close__title { font: 800 clamp(2.5rem, 1.5rem + 3vw, 4.5rem)/1.02 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 26px; }
.wwh-close__note { margin-top: 12px; font: 600 var(--fs-small)/1.4 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.wwh-close__seq { position: absolute; z-index: 1; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 9%; text-align: left; }
.wwh-close__booking { min-width: 260px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.wwh-close__booking b { display: block; font: 700 1.125rem/1.2 var(--font-display); }
.wwh-close__booking small { display: block; margin-top: 2px; font: 600 var(--fs-small)/1.3 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.wwh-close__tile { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--g-arrow); color: var(--c-ink); }
.wwh-close__tile .mark { width: 24px; height: 24px; }
.wwh-close__chip { position: absolute; right: -16px; top: -18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font: 800 .9375rem/1 var(--font-ui); color: var(--c-ink); background: var(--c-paper); box-shadow: var(--shadow-m);
  opacity: var(--kit-in, 1); transform: scale(calc(.6 + var(--kit-in, 1) * .4)) rotate(-6deg); }
.wwh-close__chip .mark { width: 15px; height: 15px; color: var(--c-arrow-1); }
.wwh-close__stop { right: 20px; bottom: 20px; }

/* ---- under 1200 px ---- */
@media (max-width: 1199px) {
  .wwh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wwh-close__seq { bottom: 6%; }
}
/* ---- under 1000 px: the parts stack ---- */
@media (max-width: 999px) {
  .wwh-hero__in { grid-template-columns: minmax(0, 1fr); }
  .wwh-hero__stage { width: min(100%, 520px); justify-self: center; }
  .scene.wwh-kinds__scene { height: 640px; }
  .wwh-plan__frame { padding-right: 0; }
  .wwh-plan__photo { height: auto; aspect-ratio: 16 / 9; }
  .wwh-plan__card { position: relative; right: auto; top: auto; transform: none; width: min(100%, 420px); justify-self: center; margin-top: -48px; }
  .wwh-close { min-height: 0; display: block; place-items: normal; padding: 0 0 72px; }
  .wwh-close__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 3 / 2; overflow: hidden; }
  .wwh-close__media::after { background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--c-ink) 60%, transparent) 100%); }
  .wwh-close__seq { left: 16px; top: calc(66.67vw - 56px); bottom: auto; }
  .wwh-close__booking { min-width: 0; }
  .wwh-close__in { margin: 0 auto; padding: 60px var(--gutter) 0; }
  .wwh-close__stop { top: 16px; right: 16px; bottom: auto; }
}
@media (max-width: 760px) {
  /* the photo fills the frame, which keeps the room of the whole talk (so nothing under it moves as the messages come
     in); the chat starts under her face */
  .wwh-anyway__frame { aspect-ratio: auto; max-width: 560px; min-height: 722px; padding: 310px 12px 12px; }
  .wwh-anyway__photo img { object-position: 65% 30%; }
  .wwh-chat { position: relative; left: auto; top: auto; width: auto; max-width: 360px; margin-inline: auto; }
  .scene.wwh-buyers__scene { min-height: 780px; }
}
@media (max-width: 640px) {
  .wwh-grid { grid-template-columns: minmax(0, 1fr); }
  .scene.wwh-kinds__scene { height: 600px; }
}
