/* Who we help: the page's own look (plan.md "Who we help"). The header runs on the arsenal's `motif-window` (its CSS
   first), restyled here: the site's split circle as the window, the line and the main button in a white action box,
   a new-client chip beside the circle for each clip. */
@import url("../arsenal/motif-window.css");

.wwh-go { display: grid; justify-items: start; gap: 10px; }
.wwh-go .cta-row__line { margin: 0; }

/* ---------- hero ---------- */
.wwh-hero .motif-window__h { font-weight: 700; letter-spacing: -0.03em; }
/* each clip laid 1 px past its box (kit.md, "Video") */
.wwh-hero .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.wwh-act { display: grid; gap: 18px; width: min(100%, 460px); padding: 22px 24px; background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.wwh-act__line { margin: 0; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.wwh-hero__stop { top: calc(var(--header-h, 78px) + 16px); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); z-index: 5; }
.wwh-chips { position: absolute; z-index: 4; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 9vh; display: grid; justify-items: end; pointer-events: none; }
.wwh-chip { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.wwh-chip[data-i="0"] { opacity: 1; transform: none; }
.wwh-hero[data-turn] .wwh-chip[data-i="0"] { opacity: 0; transform: translateY(10px); }
.wwh-hero[data-turn="0"] .wwh-chip[data-i="0"], .wwh-hero[data-turn="1"] .wwh-chip[data-i="1"], .wwh-hero[data-turn="2"] .wwh-chip[data-i="2"] { opacity: 1; transform: none; }

/* ---------- kinds: the signature, trade names drifting over the large split circle ---------- */
.wwk { overflow-x: clip; }
.wwk__inner { display: grid; justify-items: center; text-align: center; }
.wwk__title { margin: 0 0 clamp(24px, 3vw, 40px); max-width: 20ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.wwk__stage { position: relative; }
.scene.wwk__wall { height: 460px; }
.wwk__stop { top: 8px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }

/* ---------- six: the six categories, what one new client means to each ---------- */
.wws__inner { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.head.wws__head { position: sticky; top: calc(var(--header-h, 78px) + 32px); margin: 0; }
.wws__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.wws__tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-xl); background: var(--c-paper); box-shadow: var(--shadow-m); }
.wws__photo { aspect-ratio: 4 / 3; border-radius: 0; }
.wws__card { display: grid; align-content: start; gap: 8px; padding: 18px 20px 22px; }
.wws__name { margin: 0; font: 700 1.3rem/1.2 var(--font-display); color: var(--c-ink); }
.wws__fields { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.wws__one { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: var(--fs-body); }
.wws__one span { font: 600 var(--fs-label)/1.3 var(--font-ui); color: var(--c-accent-text); }
.wws__one b { color: var(--c-ink); }
.wws__more { grid-column: 1 / -1; background: var(--c-brand); box-shadow: none; }
.wws__more-link { position: relative; display: grid; gap: 8px; padding: clamp(24px, 3vw, 36px); overflow: hidden; color: var(--c-on-brand); text-decoration: none; }
.wws__more-link .wws__name { color: var(--c-on-brand); font-size: 1.6rem; }
.wws__more-link .wws__fields { color: var(--c-on-brand); opacity: 0.9; font-size: var(--fs-body); }
.wws__more-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 700 var(--fs-ui)/1 var(--font-ui); }
.wws__more-go .btn__arrow { width: 18px; height: 18px; }
.wws__more-mark { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: 0.18; pointer-events: none; }
.wws__more-link:hover .wws__more-go, .wws__more-link:focus-visible .wws__more-go { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buyers: three ways customers buy, on the designed ground ---------- */
.wwb { overflow: clip; }
.frame-motif.wwb__ground { width: min(900px, 80vw); right: -24vw; top: -18%; }
.wwb__inner { position: relative; z-index: 1; }
.head.wwb__head { margin-inline: auto; text-align: center; justify-items: center; }
.wwb__stage { position: relative; }
.scene.wwb__scene { min-height: 470px; }
.wwb__stop { top: -52px; right: 0; }

/* ---------- plan: the plan building itself over the florist's photo, on the flowers' side ---------- */
.head.wwp__head { max-width: 640px; }
.wwp__stage { position: relative; }
.wwp__frame { height: clamp(600px, 50vw, 660px); }
.wwp__frame > img { object-position: 50% 30%; }
.scene.wwp__scene { position: absolute; z-index: 2; left: 28px; top: 50%; width: min(640px, 54%); height: 580px; transform: translateY(-50%); }
.wwp__stop { top: 16px; right: 16px; }

/* ---------- anyway: a short chat on a phone over the groomer's photo ---------- */
.wwa__inner { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.head.wwa__head { margin: 0; }
.wwa__stage { position: relative; }
.wwa__frame { height: clamp(600px, 50vw, 680px); }
.wwa__frame > img { object-position: 100% 30%; }
.wwa-phone {
  position: absolute; z-index: 3; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; width: min(300px, 46%); height: 580px; padding: 16px 14px 14px;
  border-radius: 40px; background: var(--c-paper); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--c-line);
}
.wwa-phone__bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--c-line); }
.wwa-phone__mark { flex: none; width: 34px; height: 34px; }
.wwa-phone__mark .split { width: 100%; height: 100%; }
.wwa-phone__who b { display: block; font: 700 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-ink); }
.wwa-phone__who span { display: block; font: 600 var(--fs-tiny)/1.3 var(--font-ui); color: var(--c-accent-text); }
.wwa-phone__screen { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; padding: 12px 2px 2px; overflow: hidden; }
.wwa-msg { flex: none; max-width: 88%; margin: 0; padding: 10px 13px; border-radius: 18px; font: 500 var(--fs-label)/1.4 var(--font-ui); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.wwa-msg--them { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--c-paper-alt); color: var(--c-ink); }
.wwa-msg--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--c-brand); color: var(--c-on-brand); }
.wwa-msg--typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; border-bottom-left-radius: 6px; background: var(--c-paper-alt); }
.wwa-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: wwa-dot 1s var(--ease-in-out) infinite; }
.wwa-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.wwa-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wwa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wwa-msg--bar { display: grid; gap: 8px; min-width: 72%; }
.wwa-msg--bar i { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 6px; background: var(--c-line); }
.wwa-msg--bar i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(var(--kit-fill, 1)); }
.wwa-msg--card { align-self: stretch; display: grid; gap: 6px; max-width: none; padding: 14px; border-radius: 16px; background: var(--c-paper); box-shadow: inset 0 0 0 2px var(--c-accent); }
.wwa-msg--card b { font: 600 var(--fs-body)/1.2 var(--font-display); color: var(--c-brand-text); }
.wwa-msg--card span { display: flex; align-items: center; gap: 8px; color: var(--c-ink); }
.wwa-msg--card span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.wwa__stop { top: 16px; left: 16px; }
@media (prefers-reduced-motion: reduce) { .wwa-msg--typing i { animation: none; } }

/* ---------- close ---------- */
.wwc .close__band > video { object-position: 64% 30%; }
.wwc .close__stop { top: 16px; right: 16px; z-index: 3; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .wws__inner { grid-template-columns: minmax(0, 1fr); }
  .head.wws__head { position: static; }
  .wwa__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .wwh-act { padding: 18px; gap: 14px; }
  .wwh-chips { left: 50%; right: auto; bottom: auto; top: calc(var(--header-h, 66px) + 14px); transform: translateX(-50%); justify-items: center; }
  .scene.wwk__wall { height: 400px; }
  /* the plan's card stays on its photo: a tall frame showing the flowers' side, the card over it */
  .wwp__frame { height: 800px; }
  .wwp__frame > img { object-position: 4% 50%; }
  .scene.wwp__scene { left: 8px; top: auto; bottom: 12px; width: calc(100% - 16px); height: 700px; transform: none; }
  .wwp__stop { top: 96px; right: 18px; }
  /* the phone over the photo's foot, her face clear above it */
  .wwa__frame { height: 820px; }
  .wwa__frame > img { object-position: 55% 25%; }
  .wwa-phone { right: 50%; top: auto; bottom: 20px; transform: translateX(50%); width: min(300px, calc(100% - 48px)); height: 480px; }
  .wwa__stop { top: 268px; left: 14px; }
}
@media (max-width: 640px) {
  .wws__grid { grid-template-columns: minmax(0, 1fr); }
}
