/* The Who we help page's own layout: it places and sizes its parts with the tokens of system.css. "The breadth": three
   businesses far apart in the header, every kind flowing past on the ink, the six kinds in tabs over one photo, the
   three ways customers buy on the ink, the chat for everyone else over the baker's kitchen, the close. */

/* ---------- hero: the words on the emerald ground, three businesses taking turns in a rounded frame ---------- */
.who-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(700px, 100svh, 900px); background-color: var(--c-ink-2); --rings-at: 0% 100%; overflow: hidden; }
.who-hero__grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; padding-top: 132px; padding-bottom: clamp(72px, 7vw, 104px); }
.who-hero__body { display: grid; gap: 22px; }
.who-hero__title { font-size: clamp(2.3rem, 1rem + 3.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
.who-hero__line { font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.who-hero__cta { margin-top: 6px; }
.who-hero__frame { position: relative; height: clamp(500px, 64vh, 620px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
/* the kit's rotate (its CSS in components.css): this page's framing of each clip, and the first clip's poster under it */
.who-hero__slide video, .who-hero__slide .kit-first { object-position: var(--pos, 50% 50%); }
.who-hero__slide .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* a soft emerald at the frame's foot, under the card */
.who-hero__slide::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--c-ink) 58%, transparent) 100%); }
.who-hero__card { position: absolute; z-index: 4; bottom: 24px; }
.who-hero__slide--left .who-hero__card { left: 24px; }
.who-hero__slide--right .who-hero__card { right: 24px; }
.who-hero__stop { position: absolute; z-index: 6; top: 16px; right: 16px; }
@media (max-width: 900px) {
  .who-hero { min-height: 0; }
  .who-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 112px; padding-bottom: 56px; }
  .who-hero__frame { height: 440px; }
}
@media (max-width: 760px) {
  .who-hero__title { font-size: clamp(2.05rem, 1.2rem + 3.6vw, 2.6rem); }
  .who-hero__line { font-size: 1.0625rem; }
  .who-hero__frame { height: 420px; }
  .who-hero__slide video, .who-hero__slide .kit-first { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .who-hero__card { bottom: 14px; max-width: calc(100% - 28px); padding: 11px 16px 11px 11px; gap: 11px; }
  .who-hero__slide--left .who-hero__card { left: 14px; }
  .who-hero__slide--right .who-hero__card { right: 14px; }
  .who-hero .hero__tick { width: 36px; height: 36px; }
  .who-hero .hero__tick svg { width: 18px; height: 18px; }
  .who-hero .hero__card-text b { font-size: 0.9375rem; }
  .who-hero .hero__card-text span { font-size: 0.8125rem; }
  .who-hero__stop { top: 12px; right: 12px; }
}

/* ---------- all: every kind of business flowing past on the ink (the page's signature) ---------- */
.who-all { position: relative; padding-block: clamp(96px, 9vw, 136px) clamp(72px, 7vw, 104px); --rings-at: 50% 0%; }
.who-all__stage { position: relative; height: 480px; margin-top: 64px; }
.who-all__stage > [data-scene] { position: absolute; inset: 0; }
/* the stop just above the stream's top right, clear of the centered words */
.who-all__stop { position: absolute; top: -54px; right: var(--gutter); }
@media (max-width: 760px) {
  .who-all__stage { height: 440px; margin-top: 76px; }
  .who-all__stop { right: 14px; }
}

/* ---------- who: the six kinds and many more, in tabs beside one large framed photo ---------- */
.who-cats { padding-block: var(--section-y); background: var(--c-paper); }
.who-cats__head { margin-bottom: clamp(40px, 4vw, 56px); }
.who-cats__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.who-cats__tabs { display: grid; gap: 10px; align-content: start; }
.who-tab { position: relative; overflow: hidden; display: grid; gap: 3px; padding: 15px 20px 17px; border: 0; border-radius: 18px; text-align: left; font: inherit; color: var(--c-ink); cursor: pointer; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.who-tab b { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.2; }
.who-tab span { font-size: 0.875rem; line-height: 1.35; color: var(--c-ink-soft); }
.who-tab:hover { background: var(--c-paper-alt); }
.who-tab[aria-selected="true"] { background: var(--c-paper-alt); box-shadow: inset 0 0 0 1.5px var(--c-brand), 0 12px 28px -18px color-mix(in srgb, var(--c-brand-dark) 70%, transparent); }
.who-tab--more { background: var(--c-ink); color: var(--c-on-ink); box-shadow: none; }
.who-tab--more span { color: color-mix(in srgb, var(--c-on-ink) 82%, transparent); }
.who-tab--more:hover, .who-tab--more[aria-selected="true"] { background: var(--c-ink-2); }
.who-tab__time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-brand); transform-origin: 0 50%; transform: scaleX(0); }
.who-cats__tabs[data-kit-on] .who-tab[aria-selected="true"] .who-tab__time { transform: scaleX(var(--kit-fill, 0)); }
.who-cats__panels { position: relative; min-height: 580px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
.who-panel { position: absolute; inset: 0; }
.who-panel__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.who-panel:not(.who-panel--more)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--c-ink) 55%, transparent) 100%); }
.who-panel__card { position: absolute; z-index: 2; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: min(400px, calc(100% - 48px)); padding: 15px 22px 15px 15px; border-radius: 22px; }
.who-panel--right .who-panel__card { right: 24px; }
.who-panel--left .who-panel__card { left: 24px; }
.who-panel__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--c-brand); opacity: 0; }
.who-panel--more:not([hidden]) { display: grid; place-items: center; padding: 40px; --rings-at: 100% 0%; }
.who-panel__more { display: grid; justify-items: center; gap: 18px; max-width: 470px; text-align: center; }
.who-panel__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.who-panel__mark svg { width: 34px; height: 34px; fill: currentColor; }
.who-panel__big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.2; }
.who-panel__sub { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.who-panel--more .cta-line { justify-content: center; margin-top: 6px; }
.who-cats__stop { position: absolute; z-index: 6; top: 16px; right: 16px; }
/* a new client lands each time a kind opens: the card rises, one ring opens from its tick */
@media (prefers-reduced-motion: no-preference) {
  .who-panel:not([hidden]) .who-panel__photo { animation: who-photo-in .6s var(--ease-out) both; }
  .who-panel:not([hidden]) .who-panel__card { animation: who-card-in .55s var(--ease-out) .3s both; }
  .who-panel:not([hidden]) .who-panel__ring { animation: who-ring .9s var(--ease-out) .6s both; }
  .who-panel--more:not([hidden]) .who-panel__more { animation: who-card-in .55s var(--ease-out) .1s both; }
}
@keyframes who-photo-in { from { opacity: .35; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes who-card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes who-ring { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@media (max-width: 900px) {
  .who-cats__grid { grid-template-columns: minmax(0, 1fr); }
  .who-cats__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .who-tab { padding: 12px 14px 14px; border-radius: 14px; }
  .who-tab b { font-size: 1rem; }
  .who-tab span { display: none; }
  .who-tab--more { grid-column: 1 / -1; }
  .who-cats__panels { min-height: 480px; }
}
@media (max-width: 760px) {
  .who-cats__panels { min-height: 470px; }
  .who-panel__card { bottom: 14px; max-width: calc(100% - 28px); padding: 11px 16px 11px 11px; gap: 11px; }
  .who-panel--right .who-panel__card { right: 14px; }
  .who-panel--left .who-panel__card { left: 14px; }
  .who-panel .hero__tick { width: 36px; height: 36px; }
  .who-panel .hero__tick svg { width: 18px; height: 18px; }
  .who-panel .hero__card-text b { font-size: 0.9375rem; }
  .who-panel .hero__card-text span { font-size: 0.8125rem; }
  .who-panel--more:not([hidden]) { padding: 28px 20px; }
  .who-cats__stop { top: 12px; right: 12px; }
}

/* ---------- buyers: however customers buy, three cards on the ink ---------- */
.who-buyers { position: relative; padding-block: var(--section-y); --rings-at: 0% 100%; }
.who-buyers__stage { position: relative; max-width: 1100px; margin: 72px auto 0; }
.who-buyers__stage > [data-scene] { width: 100%; }
.who-buyers__stop { position: absolute; top: -56px; right: 0; }
/* in one column (under 760 px of stage) the scene folds each resting card to its result and opens the focused one, so
   the cards below it leap and the part's height changes as the focus walks. Here no card folds: all three stay open,
   each holding its whole story (its steps dim and light in place), so nothing under the words moves */
.who-buyers [data-scene="three-buyers"] .tb { --tb-one: 0; }
@media (max-width: 760px) {
  .who-buyers__stage { margin-top: 76px; }
}

/* ---------- anyway: the chat finds any business, over the baker's kitchen ---------- */
.who-anyway { padding-block: var(--section-y); background: var(--c-paper); }
.who-anyway__frame { position: relative; height: 640px; margin: clamp(40px, 4vw, 56px) 0 0; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
.who-anyway__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 40%; }
/* the kitchen deepens to emerald on the left, under the chat; her face stays clear on the right */
.who-anyway__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 62%, transparent) 0%, color-mix(in srgb, var(--c-ink) 30%, transparent) 38%, transparent 56%); }
.who-anyway__stage { position: absolute; z-index: 2; left: clamp(24px, 9%, 120px); top: 50%; width: 330px; transform: translateY(-50%); }
.who-anyway__stop { position: absolute; z-index: 3; top: 16px; left: 16px; }
.who-anyway__cta { justify-content: center; margin-top: 32px; }
@media (max-width: 760px) {
  /* on the phone her face at the top of the frame, the chat at its foot: the photo is drawn 900 px tall from 180 px
     above the frame, so her face (28 to 47% of its height) stands at 72 to 243 px, above the chat (from 278 px) */
  .who-anyway__frame { height: 720px; }
  .who-anyway__photo { top: -180px; bottom: auto; height: calc(100% + 180px); object-position: 81% 50%; }
  .who-anyway__frame::after { background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--c-ink) 55%, transparent) 70%); }
  .who-anyway__stage { left: 50%; top: auto; bottom: 14px; width: min(320px, calc(100% - 28px)); transform: translateX(-50%); }
  .who-anyway__stop { top: 12px; left: 12px; }
}

/* ---------- close: the deli owner's good day; the picker ---------- */
.who-close .band__film { object-position: 75% 40%; }
@media (max-width: 760px) { .who-close .band__film { height: 440px; bottom: auto; object-position: 82% 30%; } }
