/* Who we help: the page's own layout (plan.md, Who we help). Colors, type, corners and timing come from design\system.css;
   the components from design\components.css. */

/* the header: three capsules of footage on one growth line, taking turns on the kit's rotate. Unlike a changing picture,
   all three stay in view: the one in turn opens up, plays and lights, the others rest dimmed on their first frame. */
.whero { position: relative; box-sizing: border-box; display: flex; align-items: center; min-height: min(780px, calc(100svh - 73px)); padding-block: clamp(48px, 6vw, 88px); overflow: hidden; isolation: isolate; background: radial-gradient(60% 70% at 78% 56%, rgb(88 0 255 / 0.22), transparent 72%), var(--c-ink); }
.whero__in { position: relative; z-index: 2; width: 100%; }
.whero__words { max-width: min(540px, 43vw); }
.whero__words > p { margin-top: 20px; max-width: 480px; color: var(--c-on-ink-soft); font-size: 1.1875rem; line-height: 1.55; }
.whero__words .action { margin-top: 30px; }

.caps { position: absolute; left: calc(50% + 12px); right: 0; top: clamp(28px, 4vw, 56px); bottom: clamp(44px, 5vw, 66px); display: flex; align-items: flex-end; gap: 16px; padding-right: var(--gutter); }
.caps::before { content: ""; position: absolute; left: -110px; right: 0; bottom: -18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent 0%, var(--c-brand) 24%, var(--c-brand-light) 62%, var(--c-accent) 100%); }
.caps > .stop { top: 0; right: var(--gutter); }
/* the kit paints each slide's poster on the slide itself: here the capsule holds the picture, so the square stays clear */
.caps [data-kit-slide] { background: none !important; }
.cap { position: relative; flex: 1 1 0; min-width: 0; height: 84%; margin: 0; }
.cap:nth-of-type(2) { height: 100%; }
.cap:nth-of-type(3) { height: 74%; }
.cap::after { content: ""; position: absolute; left: 50%; bottom: -25px; width: 16px; height: 16px; margin-left: -8px; box-sizing: border-box; border-radius: 50%; background: var(--c-ink); border: 2px solid var(--c-brand-light); }
.cap[data-kit-on]::after { background: var(--c-accent); border-color: var(--c-accent); box-shadow: 0 0 14px var(--c-glow); }
.cap__clip { position: absolute; inset: 0; overflow: hidden; border-radius: 999px; clip-path: inset(0 round 999px); background: var(--c-ink-3); filter: brightness(0.5) saturate(0.75); }
.cap__clip img, .cap__clip video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--x, 50%) 50%; }
.cap__clip img.kit-first { inset: -1px !important; width: calc(100% + 2px) !important; height: calc(100% + 2px) !important; }
.cap__clip video { clip-path: inset(2px); }
.cap__clip video[data-kit-shown] { clip-path: none; }
.cap--flo { --x: 62%; }
.cap--law { --x: 80%; }
.cap--roof { --x: 74%; }
/* the one in turn opens and lights over the kit's 1.4 s change; the one leaving closes as it does */
.cap[data-kit-on] { flex-grow: calc(1 + 1.1 * var(--kit-move, 1)); }
.cap[data-prev] { flex-grow: calc(1 + 1.1 * (1 - var(--kit-move, 0))); }
.cap[data-kit-on] .cap__clip { filter: brightness(calc(0.5 + 0.5 * var(--kit-move, 1))) saturate(calc(0.75 + 0.25 * var(--kit-move, 1))); }
.cap[data-prev] .cap__clip { filter: brightness(calc(1 - 0.5 * var(--kit-move, 0))) saturate(calc(1 - 0.25 * var(--kit-move, 0))); }
.caps:not(:has([data-prev])) .cap[data-kit-on], .caps:not(:has([data-kit-on])) .cap:first-of-type { flex-grow: 2.1; }
.caps:not(:has([data-prev])) .cap[data-kit-on] .cap__clip, .caps:not(:has([data-kit-on])) .cap:first-of-type .cap__clip { filter: none; }
.cap__card { position: absolute; z-index: 3; left: 50%; bottom: 24px; width: max-content; max-width: 330px; translate: -50% 0; visibility: hidden; opacity: 0; }
.cap[data-kit-on] .cap__card { visibility: visible; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.caps:not(:has([data-kit-on])) .cap:first-of-type .cap__card { visibility: visible; opacity: 1; }
@media (max-width: 1000px) {
  .whero { display: block; padding-block: 36px 34px; }
  .whero__words { max-width: none; }
  .caps { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 400px; margin: 32px var(--gutter) 0; padding: 0 0 82px; gap: 8px; }
  .caps::before { left: 0; bottom: 70px; }
  .caps > .stop { right: 0; top: 0; }
  .cap { position: static; }
  .cap::after { display: none; }
  .cap__clip { position: relative; width: 100%; height: 100%; }
  .cap__card { left: 0; right: 0; bottom: 0; width: auto; max-width: none; translate: none; }
}

/* the tree of every trade, on the designed ground */
.wevery { padding-block: var(--section-y) calc(var(--section-y) * 0.5); }
.wevery__stage { position: relative; width: min(1200px, 100%); margin: clamp(24px, 3vw, 40px) auto 0; }
.wevery__stage .stop { top: 0; right: 0; }
.wevery__scene { aspect-ratio: 1200 / 620; }
@media (max-width: 899.98px) { .wevery__stage { width: min(520px, 100%); padding-top: 54px; } .wevery__scene { aspect-ratio: 360 / 640; } }

/* the six kinds: wide framed photos, each with its booking, and a way in for every other business */
.wkinds { padding-block: var(--section-y); }
.kindsbox { position: relative; margin-top: clamp(32px, 4vw, 52px); }
.kindsbox > .stop { top: 14px; right: calc(50% + 24px); }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 44px) clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.kind__link { display: block; color: inherit; text-decoration: none; }
.kind__frame { height: clamp(280px, 25vw, 350px); }
.kind__frame > img { object-position: var(--pos, 50% 40%); transition: transform 0.9s var(--ease-out); }
.kind__link:hover .kind__frame > img, .kind__link:focus-visible .kind__frame > img { transform: scale(1.03); }
.kind__card { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.kind__card--r { left: auto; right: 14px; }
.kind__name { margin-top: 16px; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.kind__fields { margin-top: 6px; color: var(--c-on-ink-soft); font-size: var(--fs-small); line-height: 1.45; }
.kind__line { margin-top: 8px; font-size: 1.125rem; line-height: 1.45; }
.kind--more { grid-column: 1 / -1; }
.kind__more { position: relative; display: flex; align-items: center; min-height: 240px; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); border: 1px solid var(--c-brand-light); background: radial-gradient(70% 120% at 85% 20%, rgb(88 0 255 / 0.4), transparent 70%), var(--c-ink-3); color: var(--c-on-ink); text-decoration: none; }
.kind__morewords { display: flex; flex-direction: column; gap: 8px; max-width: 560px; padding: clamp(24px, 3vw, 40px); }
.kind__morename { font: 650 clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.kind__moreline { font-size: 1.125rem; line-height: 1.45; }
.kind__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--c-brand-on-ink); font: 650 1rem/1 var(--font-ui); }
.kind__nodes { position: absolute; right: 4%; top: 50%; z-index: -1; width: min(36%, 380px); transform: translateY(-50%); opacity: 0.9; }
.kind__nodes path { stroke: var(--c-brand-light); }
.kind__nodes circle { fill: var(--c-brand); filter: drop-shadow(0 0 8px rgb(88 0 255 / 0.8)); }
.kind__nodes .kind__node-end { fill: var(--c-accent); }
@media (max-width: 760px) {
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .kindsbox > .stop { right: 14px; }
  .kind__nodes { right: -6%; width: 46%; opacity: 0.5; }
  .kind__morewords { max-width: 82%; }
}

/* however their customers buy: on the designed ground */
.wbuyers { padding-block: var(--section-y); }
.wbuyers__stage { position: relative; width: min(1100px, 100%); margin: clamp(28px, 3.4vw, 44px) auto 0; }
.wbuyers__stage .stop { top: -52px; right: 0; }
.wbuyers__scene { min-height: 460px; }
.wbuyers .wbuyers__scene[data-scene] { background: none; }
@media (max-width: 760px) { .wbuyers__stage { padding-top: 54px; } .wbuyers__stage .stop { top: 0; } .wbuyers__scene { min-height: 800px; } }

/* the plan in any business's words: the desk framed, the plan building over the laptop, the phone left clear */
.wplan { padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
.wplan__pic { position: relative; height: clamp(560px, 46vw, 640px); margin-top: clamp(28px, 3vw, 44px); }
.wplan__pic > .stop { top: 14px; right: 14px; }
.wplan__frame { position: absolute; inset: 0; }
.wplan__shot { position: absolute; left: -1px; width: calc(100% + 2px); top: -13%; margin: 0; }
.wplan .wplan__scene[data-scene] { overflow: visible; }
.wplan__scene { position: absolute; z-index: 2; left: clamp(12px, 2vw, 26px); top: 50%; translate: 0 -50%; width: min(560px, 49%); height: 520px; }
.wlock { display: flex; flex-direction: column; align-items: center; gap: 34px; width: 100%; height: 100%; padding: 66px 16px 0; box-sizing: border-box; color: var(--c-on-ink); background: radial-gradient(120% 70% at 50% 0%, rgb(88 0 255 / 0.75), transparent 72%), var(--c-ink); }
.wlock__time { font: 650 58px/1 var(--font-display); letter-spacing: -0.02em; }
.wlock__note { width: 100%; padding: 16px; box-sizing: border-box; border-radius: 20px; background: rgb(255 255 255 / 0.14); }
.wlock__note b, .wlock__note small { display: block; }
.wlock__note b { font: 650 21px/1.2 var(--font-ui); }
.wlock__note small { margin-top: 4px; font: 500 19px/1.2 var(--font-ui); color: var(--c-on-ink-soft); }
@media (max-width: 899.98px) {
  .wplan__pic { height: auto; padding: 12px; }
  .wplan__scene { position: relative; left: auto; top: auto; translate: none; width: 100%; height: 700px; }
  .wplan__shot { width: 280%; left: -105%; top: -8%; }
  .wlock > * { display: none; }
}

/* not on the list: the groomer framed, the chat in glass on the side clear of her face */
.wany { padding-block: calc(var(--section-y) * 0.6) var(--section-y); }
.wany__pic { position: relative; height: clamp(500px, 42vw, 580px); margin-top: clamp(28px, 3vw, 44px); }
.wany__pic > .stop { top: 14px; right: 14px; }
.wany__frame { position: absolute; inset: 0; }
.wany__frame > img { object-position: 50% 30%; }
.wchat { position: absolute; z-index: 2; left: clamp(12px, 2.4vw, 34px); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; width: min(400px, 44%); height: 414px; box-sizing: border-box; padding: 18px 16px; overflow: hidden; border-radius: var(--radius-l); background: rgb(20 12 33 / 0.86); border: 1px solid var(--c-hair-strong); box-shadow: var(--shadow-l); }
.wmsg { flex: none; margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 1rem; line-height: 1.4; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.wmsg--in { align-self: flex-start; background: var(--c-ink-3); border: 1px solid var(--c-hair); border-bottom-left-radius: 6px; }
.wmsg--out { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-bottom-right-radius: 6px; font-weight: 600; }
.wmsg--read { display: flex; flex-direction: column; gap: 9px; min-width: 62%; }
.wmsg__bar { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c-brand), var(--c-accent)) 0 0 / calc(var(--kit-fill, 0) * 100%) 100% no-repeat, var(--c-hair); }
.wmsg--typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--c-ink-3); border-bottom-left-radius: 6px; }
.wmsg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-on-ink-soft); animation: wdots 1s var(--ease-in-out) infinite; }
.wmsg--typing i:nth-child(2) { animation-delay: 0.15s; } .wmsg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wdots { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wmsg--typing i { animation: none; } }
.wany__go { margin-top: clamp(24px, 3vw, 36px); text-align: center; }
.wany__go .action { align-items: center; }
.wany__other { margin-top: 18px; color: var(--c-on-ink-soft); font-size: var(--fs-small); }
.wany__other a { color: var(--c-brand-on-ink); }
@media (max-width: 899.98px) {
  .wany__pic { height: auto; }
  .wany__frame { position: relative; inset: auto; height: 560px; }
  .wany__frame > img { object-position: 84% 0; }
  .wchat { position: relative; left: auto; top: auto; translate: none; width: min(400px, calc(100% - 20px)); height: 400px; margin: -310px auto 0; }
}

/* the close: the words left over her customer's back, the card right, clear of both faces */
.wclose .band__video { object-position: 50% 26%; }
.wclose .endband__words { width: min(440px, 100%); }
.wclose .endband__pop { right: max(var(--gutter), 4%); bottom: 14%; }
@media (max-width: 760px) { .wclose .band__video { object-position: 64% 0; } }
