/* who-we-help.css: Who we help (src\pages\who-we-help.mjs; plan.md, "Who we help (Part 2)"). Tokens only. */
@import url("../arsenal/word-window.css");

/* ---------- hero: the word-window "Fully Booked.", three businesses at work inside its letters ---------- */
.whw-hero { padding-block: clamp(2rem, 1.2rem + 2.4vw, 3.5rem) var(--section-y); }
.whw-hero .word-window__media:nth-child(1) { --ww-focus: 50% 42%; }
.whw-hero .word-window__media:nth-child(2) { --ww-focus: 58% 46%; }
.whw-hero .word-window__media:nth-child(3) { --ww-focus: 72% 32%; filter: brightness(.7) contrast(1.12); } /* the bright clinic, toned down so the word still reads on white */
.whw-hero__after { flex-direction: column; gap: 1.4rem; }
.whw-hero__after .word-window__line strong { color: var(--c-ink); font-weight: 650; }
.whw-hero__go { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.whw-hero__stop { right: max(var(--gutter), 16px); bottom: 18px; }
/* Brett, 18 Nov: his Growth Plan explainer (Vimeo) under the button's Free / About 3 minutes / No sales call line, the white hero extended to hold it */
.whw-hero__video { width: min(100%, 760px); margin-top: .6rem; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
.whw-hero__video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- every: the signature, trade-key on the key field (navy), the words left ---------- */
.whw-every__in { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 901px) { .whw-every__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.whw-every__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.035em; text-wrap: balance; }
.whw-every__line { margin-top: 1.1rem; font-size: var(--fs-lede); line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 80%, var(--c-ink)); }
.whw-every__line strong { color: var(--c-on-ink); font-weight: 650; }
.whw-every__stage { position: relative; height: 480px; }
.scene.whw-every__scene { position: absolute; inset: 0; }
.whw-every__stop { top: -16px; right: -16px; }

/* ---------- kinds: the kit's tour, seven kinds as tabs beside one big framed photo with its white card ---------- */
.whw-kinds__head { max-width: 760px; }
.whw-kinds__tour { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1001px) { .whw-kinds__tour { grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); } }
.whw-kinds__tabs { display: grid; gap: .5rem; }
.whw-kinds__tab { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 56px; padding: .8rem 1.1rem; text-align: left; border: 0; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); cursor: pointer; }
.whw-kinds__tab b { font: 650 1.0625rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.whw-kinds__tab:hover { box-shadow: inset 0 0 0 1px var(--c-ink-soft); }
.whw-kinds__tab[aria-selected="true"] { background: var(--c-ink); color: var(--c-on-ink); box-shadow: var(--shadow-s); }
.whw-kinds__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.whw-kinds__bar::after { content: ''; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--c-accent); }
.whw-kinds__tab[aria-selected="true"] .whw-kinds__bar::after { transform: scaleX(var(--kit-fill, 1)); }
.whw-kinds__tabs:not([data-kit-on]) .whw-kinds__tab[aria-selected="true"] .whw-kinds__bar::after { transform: scaleX(1); }
.whw-kinds__panels { position: relative; }
.whw-kinds__panel:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 4px; border-radius: var(--radius-l); }
.whw-kinds__stop { top: 14px; right: 14px; z-index: 7; }
.whw-kind { height: 560px; margin: 0; }
.whw-kind > .tile__photo { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: var(--obj, 70% 40%); }
.whw-kind--home { --obj: 80% 30%; }
.whw-kind--outdoor { --obj: 75% 40%; }
.whw-kind--law { --obj: 72% 35%; }
.whw-kind--health { --obj: 76% 40%; }
.whw-kind--money { --obj: 78% 35%; }
.whw-kind--events { --obj: 62% 35%; }
.whw-kind--more { --obj: 62% 30%; }
.whw-kind__card { position: absolute; left: 20px; bottom: 20px; width: min(340px, calc(100% - 40px)); display: grid; gap: .45rem; padding: 1.15rem 1.25rem 1.25rem; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.whw-kind__card > b { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.whw-kind__fields { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
.whw-kind__one { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; align-items: start; margin-top: .25rem; padding-top: .7rem; border-top: 1px solid var(--c-line); font: 600 var(--fs-body)/1.4 var(--font-ui); color: var(--c-ink); }
.whw-kind__one .mark { width: 18px; height: 18px; margin-top: .15rem; color: var(--c-brand); }
.whw-kind__push { justify-self: start; margin-top: .5rem; }

/* ---------- area: service-area on the key field (pale), the words left ---------- */
.whw-area__in { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1001px) { .whw-area__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.whw-area__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.035em; text-wrap: balance; }
.whw-area__line { margin-top: 1.1rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--c-ink-soft); }
.whw-area__line strong { color: var(--c-ink); font-weight: 650; }
.whw-area__stage { position: relative; height: 520px; }
.scene.whw-area__scene { position: absolute; inset: 0; }
.whw-area__stop { top: -16px; right: -16px; }

/* ---------- anyway: the groomer framed and centered, the chat in glass over her blue wall ---------- */
.whw-anyway__tile { height: 600px; }
.whw-anyway__tile > .tile__photo { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 40% 35%; }
.whw-anyway__shade { background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.scene.whw-anyway__scene { position: absolute; right: 40px; top: 50%; width: 300px; transform: translateY(-50%); }
.whw-anyway__stop { top: 14px; left: 14px; }

/* ---------- close: the florist at her counter, the words left ---------- */
.whw-close .close__bg { object-position: 70% 30%; }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  .whw-kinds__tabs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
}
@media (max-width: 760px) {
  .whw-hero { padding-bottom: max(var(--section-y), 72px); } /* the stop icon sits under "No sales call", off its words */
  .whw-every__stage { height: 420px; }
  .whw-every__stop, .whw-area__stop { top: -14px; right: -6px; }
  .whw-kinds__tabs { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .25rem; scrollbar-width: none; }
  .whw-kinds__tab { flex: none; min-height: 48px; }
  .whw-kind { height: 600px; }
  .whw-kind__card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .whw-area__stage { height: 560px; }
  .whw-anyway__tile { height: 800px; } /* tall enough that the groomer's face and the dog's both stay above the chat */
  .whw-anyway__tile > .tile__photo { object-position: 46% 30%; }
  .scene.whw-anyway__scene { right: auto; left: 50%; top: auto; bottom: 8px; width: min(300px, calc(100% - 32px)); transform: translateX(-50%); }
  .whw-anyway__stop { top: auto; left: auto; right: 14px; bottom: 392px; } /* just above the chat, so both fit in one view */
}
