/* Who we help (plan.md, "Who we help"). Only the tokens of design\system.css. The breadth in its own order: real
   parts between the three on the designed ground (wall on green, buyers and plan on cream), so they never meet. */

/* photos that drift slowly: the page's JS pauses them off screen, the part's stop icon holds them */
@keyframes who-drift {
  from { transform: scale(var(--z0, 1.02)) translate3d(0, 0, 0); }
  to { transform: scale(var(--z1, 1.06)) translate3d(var(--dx, -.8%), var(--dy, -.4%), 0); }
}
.drift { transform-origin: var(--origin, 50% 50%); transform: scale(var(--z0, 1.02)); animation: who-drift 26s var(--ease-in-out) infinite alternate; will-change: transform; }
.drift[data-off], section:has(.stop[aria-pressed="true"]) .drift { animation-play-state: paused; }
.who-shot--2 .drift { --dx: .8%; animation-delay: -9s; }
.who-shot--3 .drift { --dy: .5%; animation-delay: -17s; }
@media (prefers-reduced-motion: reduce) { .drift { animation: none; } }

/* the cream designed ground: a pale-leaf band climbing left to right behind the work, a coral edge under it */
.who-ground { position: absolute; z-index: 0; left: -14vw; top: 6%; width: calc(100% + 28vw); height: 88%; overflow: visible; pointer-events: none; }
.who-ground__band { fill: var(--c-brand-light); }
.who-ground__edge { fill: var(--c-accent); }

/* ---- hero: the words centered on cream, three trades stepping up like the logo's bars, each getting its booking;
   the rising edge crosses their feet and leads into the green wall ---- */
.who-hero { --rise-h: clamp(56px, 9vw, 136px); position: relative; padding: var(--space-4) 0 calc(var(--rise-h) * .4); overflow: hidden; }
.who-hero__words { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.who-hero__title { max-width: 24ch; font-size: var(--fs-display); font-weight: var(--fw-h1); line-height: 1.02; }
.who-hero__line { max-width: 40rem; margin: 0; font-size: calc(var(--fs-body) * 1.12); color: var(--c-ink-soft); }
.who-hero__cta { display: grid; justify-items: center; }
.who-hero__stage { position: relative; margin-top: var(--space-4); }
.who-hero__stop { position: absolute; z-index: 5; top: var(--space-2); right: calc(var(--gutter) + var(--space-2)); }
.who-hero__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: end; margin: 0; padding: 0; list-style: none; }
.who-shot { position: relative; }
.who-shot--1 { height: clamp(220px, 19vw, 280px); }
.who-shot--2 { height: clamp(260px, 23vw, 340px); }
.who-shot--3 { height: clamp(300px, 27vw, 400px); }
.who-shot__frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l) var(--radius-l) 0 0; background: var(--c-paper-alt); }
.who-shot__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); }
.who-tag { position: absolute; z-index: 2; left: var(--space-2); bottom: calc(var(--rise-h) * .7); display: flex; align-items: center; gap: .7rem; margin: 0; padding: .7rem 1.1rem .7rem .7rem; border-radius: var(--radius-m); background: var(--c-on-brand); color: var(--c-ink); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: rotate(-1.5deg); transform-origin: 0 100%; }
.who-shot--r .who-tag { left: auto; right: var(--space-2); transform-origin: 100% 100%; }
/* a booking lands once when its time comes and stays; as the turn starts again it is simply gone, never taken back (step 13) */
.who-tag[data-kit-on] { opacity: 1; animation: who-tag-land .6s var(--ease-out) both; }
@keyframes who-tag-land { from { opacity: 0; transform: translateY(18px) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .who-tag[data-kit-on] { animation: none; } }
.who-tag__words { display: grid; line-height: 1.2; white-space: nowrap; }
.who-tag__words b { font-family: var(--font-display); font-weight: var(--fw-h3); font-size: 1.05rem; }
.who-tag__words span { font-size: var(--fs-small); color: var(--c-ink-soft); }
.who-hero .rise--hero { --rise-low: var(--c-brand); }

/* ---- wall: tick-wall on the green designed ground; the climbing stripe and the coral wedge at its foot ---- */
.who-wall { --rise-h: clamp(56px, 9vw, 136px); position: relative; padding: var(--space-4) 0 calc(var(--rise-h) + var(--space-3)); background: var(--c-brand); color: var(--c-on-brand); overflow: hidden; }
.who-wall__head { display: grid; justify-items: center; gap: var(--space-1); text-align: center; }
.who-wall__head .h2, .who-wall__head .lede { margin: 0; color: var(--c-on-brand); }
.who-wall__head .lede { max-width: 40rem; }
.who-wall__stage { position: relative; margin-top: var(--space-4); }
.who-wall__stop { position: absolute; z-index: 3; top: -56px; right: var(--gutter); }
.who-wall__scene { position: relative; height: 440px; }

/* ---- kinds: one large photo per kind with its ticket, the kinds as big tabs beside it ---- */
.who-kinds { padding-block: var(--section-y); }
.who-kinds__head { margin-bottom: var(--space-4); }
.who-kinds__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); align-items: center; }
.who-kinds__stage { position: relative; display: grid; }
.who-kind { position: relative; grid-area: 1 / 1; height: clamp(460px, 42vw, 600px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); }
.who-kind:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 3px; }
.who-kind__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); }
.who-ticket { position: absolute; z-index: 2; bottom: var(--space-3); display: flex; align-items: flex-start; gap: .8rem; box-sizing: border-box; width: min(350px, 70%); margin: 0; padding: var(--space-2); border-radius: var(--radius-l); background: var(--c-on-brand); color: var(--c-ink); box-shadow: var(--shadow-l); transform: rotate(-1deg); }
.who-kind--l .who-ticket { left: var(--space-3); }
.who-kind--r .who-ticket { right: var(--space-3); }
.who-ticket__words { display: grid; gap: .25rem; }
.who-ticket__words small { font-size: var(--fs-small); font-weight: 600; color: var(--c-ink-soft); }
.who-ticket__words b { font-family: var(--font-display); font-weight: var(--fw-h3); font-size: 1.25rem; line-height: 1.2; }
.who-ticket__words span { font-size: var(--fs-small); font-weight: 600; color: var(--c-brand-text); }
.who-kind:not([hidden]) .who-ticket { animation: who-land .7s cubic-bezier(.2, .9, .3, 1.25) .25s both; }
@keyframes who-land {
  from { opacity: 0; transform: translateY(26px) rotate(-5deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1deg); }
}
.who-kinds__stop { position: absolute; z-index: 3; top: var(--space-2); right: var(--space-2); }
.who-kinds__play { display: none; }
.who-kinds__stop[aria-pressed="true"] .who-kinds__play { display: inline; }
.who-kinds__stop[aria-pressed="true"] .who-kinds__pause { display: none; }
.who-kinds__side { display: grid; gap: var(--space-4); align-content: center; }
.who-kinds__tabs { position: relative; display: grid; gap: .3rem; }
.who-kinds__tab { position: relative; display: block; width: 100%; padding: .65rem 1.1rem; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--c-ink); font: inherit; font-family: var(--font-display); font-weight: var(--fw-h3); font-size: clamp(1.2rem, .85rem + 1vw, 1.7rem); line-height: 1.15; text-align: left; cursor: pointer; overflow: hidden; transition: background-color .25s, color .25s; }
.who-kinds__tab:hover { background: var(--c-brand-light); }
.who-kinds__tab[aria-selected="true"] { background: var(--c-brand); color: var(--c-on-brand); }
.who-kinds__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: calc(var(--kit-fill, 0) * 100%); height: 4px; background: var(--c-accent); }
.who-kinds__tab:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 2px; }
.who-kinds__cta { display: grid; justify-items: start; }

/* ---- buyers: three-buyers on the cream designed ground ---- */
.who-buyers { padding-block: var(--section-y); overflow: hidden; }
.who-buyers__head { justify-items: center; margin-inline: auto; margin-bottom: var(--space-5); text-align: center; }
.who-buyers__head .lede { margin-inline: auto; }
.who-buyers__stage { position: relative; max-width: 1100px; margin-inline: auto; }
.who-buyers__stop { position: absolute; z-index: 3; top: -52px; right: 0; }
.who-buyers__scene { position: relative; z-index: 1; height: 460px; }

/* ---- anyway: a florist's chat ending on her plan, over her counter ---- */
.who-anyway__head { justify-items: center; margin-inline: auto; margin-bottom: var(--space-4); text-align: center; }
.who-anyway__head .lede { margin-inline: auto; }
.who-anyway__head a { color: var(--c-brand-text); font-weight: 700; }
.who-anyway__frame { --edge: clamp(28px, 3.6vw, 52px); position: relative; height: clamp(600px, 52vw, 720px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); clip-path: polygon(0 var(--edge), 100% 0, 100% 100%, 0 100%); }
.who-anyway__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 0%; }
.who-anyway__stop { position: absolute; z-index: 3; top: calc(var(--edge) * .5 + var(--space-1)); right: var(--space-2); }
.who-anyway__cta { display: grid; justify-items: center; margin-top: var(--space-4); }
/* the card stands whole from the start: a message still to come keeps its place, unseen (the kit hides it with
   display none, which would grow the card under her face), and the typing dots, which come and go, lie over the last
   message's place; the card stays under the florist's face, which ends at 30% of the photo's height */
.who-chat { position: absolute; z-index: 2; right: var(--space-3); bottom: var(--space-3); box-sizing: border-box; width: min(320px, 40%); display: grid; align-content: start; gap: .5rem; padding: var(--space-2); border-radius: var(--radius-l); background: var(--c-on-brand); color: var(--c-ink); box-shadow: var(--shadow-l); font-size: var(--fs-small); }
.who-chat .who-chat__msg[data-kit-msg][hidden] { display: block !important; visibility: hidden; }
.who-chat .who-chat__read[data-kit-msg][hidden], .who-chat .who-chat__ask[data-kit-msg][hidden] { display: grid !important; }
.who-chat .who-chat__done[data-kit-msg][hidden] { display: flex !important; }
.who-chat .who-chat__typing[data-kit-msg][hidden] { display: none !important; }
.who-chat__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--c-line); }
.who-chat__head b { font-family: var(--font-display); font-weight: var(--fw-h3); font-size: 1rem; }
.who-chat__head span { flex: none; color: var(--c-ink-soft); font-size: .8125rem; }
.who-chat__msg { box-sizing: border-box; max-width: 92%; margin: 0; padding: .55rem .8rem; border-radius: 14px; line-height: 1.35; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.who-chat__msg--bot { justify-self: start; background: var(--c-paper); border-bottom-left-radius: 4px; }
.who-chat__msg--me { justify-self: end; background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; border-bottom-right-radius: 4px; }
.who-chat__read { display: grid; gap: .45rem; width: 70%; }
.who-chat__bar { display: block; height: 6px; border-radius: 3px; background: var(--c-brand-light); overflow: hidden; }
.who-chat__bar i { display: block; width: calc(var(--kit-fill, 0) * 100%); height: 100%; background: var(--c-brand); }
.who-chat__ask { display: grid; gap: .45rem; }
.who-chat__choices { display: flex; gap: .4rem; }
.who-chat__choices span { display: grid; place-items: center; min-width: 2.5rem; padding: .25rem .55rem; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-on-brand); font-weight: 700; transition: background-color .25s, transform .25s; }
.who-chat__choices [data-kit-on] { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-ink); transform: rotate(-3deg); }
.who-chat__typing { position: absolute; left: var(--space-2); bottom: var(--space-2); display: flex; gap: 4px; padding: .75rem .9rem; }
.who-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: who-dot 1s ease-in-out infinite; }
.who-chat__typing i:nth-child(2) { animation-delay: .15s; }
.who-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes who-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.who-chat__done { display: flex; align-items: center; gap: .6rem; background: var(--c-brand-light); }
.who-chat__done .tick { width: 1.8rem; height: 1.8rem; }
.who-chat__done b { font-family: var(--font-display); font-weight: var(--fw-h3); font-size: 1rem; }

/* ---- plan: plan-mix on the cream designed ground, offset to the right of its words ---- */
.who-plan { padding-block: var(--section-y); overflow: hidden; }
.who-plan__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-5); align-items: center; }
.who-plan__words { position: relative; z-index: 1; display: grid; gap: var(--space-2); }
.who-plan__words .h2, .who-plan__words .lede { margin: 0; }
.who-plan__stage { position: relative; }
.who-plan .who-ground { left: -3vw; width: calc(100% + 17vw); }
.who-plan__stop { position: absolute; z-index: 3; top: -52px; right: 0; }
.who-plan__scene { position: relative; z-index: 1; height: 500px; }
/* the coral share takes the red's darker shade, so its small figure reads (the coral passes AA with neither ink nor paper) */
.who-plan .who-plan__scene .pm-card { --pm-g2: var(--c-accent-text); }

/* ---- close: the salon's front desk, the picker on the green block ---- */
.who-close .close__media { left: 40%; }
.who-close .close__media > video { object-position: var(--pos, 30% 40%); }

@media (max-width: 1100px) {
  .who-plan__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .who-plan__words { max-width: 40rem; }
}

@media (max-width: 860px) {
  .who-kinds__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .who-kinds__cta { justify-items: center; }
  .who-close .close__media { left: auto; }
  .who-close .close__media > video { object-position: var(--pos-m, 52% 40%); }
  .who-chat { right: .75rem; bottom: .75rem; width: min(420px, calc(100% - 1.5rem)); }
}

@media (max-width: 760px) {
  /* the row stands on the rising edge (no overlap): the narrow photos keep every face above its sticker */
  .who-hero { padding: var(--space-3) 0 calc(var(--rise-h) - 2px); }
  .who-hero__stage { margin-top: var(--space-3); }
  .who-hero__row { gap: 6px; }
  .who-shot--1 { height: 240px; }
  .who-shot--2 { height: 280px; }
  .who-shot--3 { height: 320px; }
  .who-shot__frame { border-radius: var(--radius-m); }
  .who-shot__img { object-position: var(--pos-m, var(--pos)); }
  .who-tag, .who-shot--r .who-tag { left: 4px; right: 4px; bottom: 4px; gap: 0; padding: .4rem .5rem; border-radius: var(--radius-s); }
  .who-tag .tick { display: none; }
  .who-tag__words { white-space: normal; }
  .who-tag__words b, .who-tag__words span { font-size: .8125rem; }
  .who-hero__stop { top: auto; bottom: calc(100% + var(--space-1)); right: var(--gutter); }

  .who-kind { height: 520px; }
  .who-kind__img { object-position: var(--pos-m, var(--pos)); }
  .who-kind--l .who-ticket, .who-kind--r .who-ticket { left: .75rem; right: .75rem; bottom: .75rem; width: auto; }
  .who-ticket__words b { font-size: 1.1rem; }
  .who-kinds__tabs { display: flex; gap: .5rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .who-kinds__tabs::-webkit-scrollbar { display: none; }
  .who-kinds__tab { flex: none; width: auto; padding: .6rem 1rem; border: 2px solid var(--c-line); border-radius: 999px; font-size: 1.05rem; white-space: nowrap; scroll-snap-align: start; }
  .who-kinds__tab[aria-selected="true"] { border-color: var(--c-brand); }

  .who-buyers__scene { height: auto; min-height: 800px; }

  .who-anyway__frame { height: 680px; }
  .who-anyway__img { object-position: 66% 0%; }
}

@media (max-width: 600px) {
  .who-wall__scene { height: 420px; }
  .who-plan__scene { height: 600px; }
}
