/* who-we-help.css: Who we help. Its header is footage seen through the logo's play triangle; its signature is the ridge. */

/* Home's rotate, as services.css has it: this site's kit.js has no data-kit-shown */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(calc((1 - var(--kit-move, 1)) * 4%)); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); }

.who-wide { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- #hero: footage through the triangle ---------- */
.who-hero { position: relative; overflow: clip; display: flex; align-items: center; min-height: clamp(600px, calc(100svh - 80px), 820px); }
.who-hero__tri { position: absolute; top: 18px; bottom: 18px; left: 41%; right: 0; filter: drop-shadow(0 14px 30px rgb(var(--c-shade) / 0.16)); }
/* the logo's play triangle, its apex past the page's right edge, its two left corners rounded */
.who-hero__win { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(0% 7.5%, 0.12% 5.79%, 0.47% 4.42%, 1.05% 3.38%, 1.88% 2.67%, 2.93% 2.3%, 4.22% 2.27%, 5.74% 2.57%, 7.5% 3.2%, 140% 50%, 7.5% 96.8%, 5.74% 97.43%, 4.22% 97.73%, 2.93% 97.7%, 1.88% 97.33%, 1.05% 96.62%, 0.47% 95.58%, 0.12% 94.21%, 0% 92.5%); }
.who-hero__slide { background-image: none !important; } /* the kit lays each clip's poster on its slide, behind the triangle's window */
.who-hero__slide--florist video, .who-hero__slide--florist .kit-first { object-position: 100% 50%; }
.who-hero__slide--law video { object-position: 44% 50%; }
.who-hero__slide--roof video { object-position: 0% 50%; }
.who-hero__slide--dental video { object-position: 100% 50%; }
.who-hero__card { position: absolute; z-index: 2; left: 34px; bottom: 11%; width: max-content; max-width: 320px; }
.who-hero__stop { position: absolute; z-index: 4; top: 90px; left: calc(41% + 14px); }
.who-hero__in { position: relative; z-index: 3; }
.who-hero__copy { width: min(520px, calc(41vw - var(--gutter) - 20px)); padding-block: 32px; }
.who-hero__title { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(2.15rem, 1.25rem + 2.3vw, 3.3rem); line-height: 1.05; letter-spacing: -0.024em; text-wrap: balance; }
.who-hero__title .em { color: var(--c-brand-text); }
.who-hero__line { margin-top: 18px; font-size: 1.1875rem; line-height: 1.55; color: var(--c-ink-soft); }
.who-hero__copy .cta-row { margin-top: 26px; }

/* ---------- #breadth: the ridge, the page's signature ---------- */
.who-breadth { padding-top: clamp(64px, 7vw, 96px); }
.who-breadth__head { position: relative; z-index: 1; text-align: center; }
.who-breadth__title { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.026em; text-wrap: balance; color: var(--c-paper); }
.who-breadth__title .em { color: var(--c-accent); }
.who-breadth .sec-head__line { margin: 16px auto 0; max-width: 620px; color: var(--c-on-night-soft); }
.who-breadth__stage { position: relative; margin-top: clamp(-40px, -2vw, -16px); }
.who-breadth__stage .who-breadth__scene { width: 100%; height: 560px; }
.who-breadth__stop { position: absolute; z-index: 3; top: 24px; right: var(--gutter); }

/* ---------- #kinds: a trail of six waypoints ---------- */
.who-kinds__head { margin-bottom: clamp(28px, 3vw, 44px); text-align: left; }
.who-kinds__head .h2 { max-width: 860px; }
.who-kinds__head .sec-head__line { margin-inline: 0; }
.kinds { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: clamp(24px, 3.4vw, 48px); align-items: stretch; }
.kinds__col { position: relative; display: flex; flex-direction: column; }
.kinds__col::before { content: ""; position: absolute; left: 21px; top: 28px; bottom: 28px; border-left: 2px dotted var(--c-line); }
.kinds__trail { display: flex; flex-direction: column; flex: 1 1 auto; }
.kinds__way { position: relative; flex: 1 1 0; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 12px 8px 0; border: 0; border-radius: var(--radius-m); background: none; color: var(--c-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.kinds__dot { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-paper); color: var(--c-brand-text); box-shadow: inset 0 0 0 2px var(--c-line); transition: background-color .25s, color .25s, box-shadow .25s; }
.kinds__words b { display: block; font: 800 1.125rem/1.2 var(--font-display); font-stretch: var(--display-stretch); }
.kinds__words small { display: block; margin-top: 3px; font: 500 0.875rem/1.35 var(--font-ui); color: var(--c-ink-soft); }
.kinds__way[aria-selected="true"] .kinds__dot { background: var(--c-accent); color: var(--c-ink); box-shadow: 0 0 0 calc(3px + var(--kit-fill, 0) * 3px) color-mix(in srgb, var(--c-accent) 34%, transparent); }
.kinds__way[aria-selected="true"] .kinds__words b { color: var(--c-brand-text); }
.kinds__way:hover .kinds__dot { box-shadow: inset 0 0 0 2px var(--c-brand); }
.kinds__way[aria-selected="true"]:hover .kinds__dot { box-shadow: 0 0 0 calc(3px + var(--kit-fill, 0) * 3px) color-mix(in srgb, var(--c-accent) 34%, transparent); }
.kinds__more { flex: 1 1 0; }
.kinds__panels { position: relative; min-height: clamp(460px, 42vw, 580px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-night-2); }
.kinds__panel { position: absolute; inset: 0; }
.kinds__panel[hidden] { display: none; }
.kinds__media { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.kinds__card { position: absolute; z-index: 2; bottom: 18px; display: grid; gap: 2px; padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--c-paper) 60%, transparent); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-paper) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow-l); color: var(--c-ink); }
.kinds__card--left { left: 18px; }
.kinds__card--right { right: 18px; }
.kinds__card small { font: 500 0.875rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.kinds__card b { font: 800 1.5rem/1.2 var(--font-display); font-stretch: var(--display-stretch); }
.kinds__card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 0.9375rem/1.3 var(--font-ui); color: var(--c-brand-text); }
.kinds__stop { position: absolute; z-index: 3; top: 14px; right: 14px; }
.kinds__swipe { display: none; }

/* ---------- #buyers ---------- */
.who-buyers { padding-block: clamp(64px, 7vw, 100px); }
.who-buyers__in { position: relative; }
.who-buyers .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.who-buyers .h2 { color: var(--c-paper); }
.who-buyers .h2 .em { color: var(--c-accent); }
.who-buyers .sec-head__line { color: var(--c-on-night-soft); }
.who-buyers__stage { position: relative; }
.who-buyers__stage .who-buyers__scene { width: 100%; height: 484px; }
.who-buyers__stop { position: absolute; z-index: 3; top: -52px; right: 0; }

/* ---------- #plan: a phone that lights up, the estimate over its calm side ---------- */
.who-plan__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.who-plan__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-l); background: var(--c-night-2); }
.who-plan__shot { position: absolute; inset: 0; margin: 0; }
.who-plan__shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.who-plan__frame .who-plan__scene { position: absolute; z-index: 2; left: 14px; top: 50%; width: min(420px, 56%); translate: 0 -50%; }
.who-plan__stop { position: absolute; z-index: 3; top: 12px; left: 12px; }
.who-plan__copy .cta-row { margin-top: 24px; }
/* 6 Nov: between 900 and 1119 px the two columns leave the frame shorter than the card, and its clip cut the card: stacked here as on a phone */
@media (min-width: 900px) and (max-width: 1119px) {
  .who-plan__in { grid-template-columns: minmax(0, 1fr); }
  .who-plan__copy { order: -1; }
  .who-plan__frame { aspect-ratio: auto; height: 560px; }
  .who-plan__shot img { object-position: 72% 50%; }
  .who-plan__frame .who-plan__scene { left: 10px; right: 10px; top: auto; bottom: 8px; width: auto; translate: none; }
}
/* its words are large: on a computer this screen is drawn at about 0.52 */
.who-bk { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 44px 12px 14px; background: var(--c-paper); color: var(--c-ink); }
.who-bk__top { display: grid; gap: 2px; padding-bottom: 6px; }
.who-bk__top b { font: 800 2.25rem/1.1 var(--font-display); font-stretch: var(--display-stretch); }
.who-bk__top span { font: 500 1.4375rem/1.2 var(--font-ui); color: var(--c-ink-soft); }
.who-bk__row { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 16px; background: var(--c-brand-light); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.who-bk__row i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); }
.who-bk__row i svg { width: 22px; height: 22px; }
.who-bk__row b { display: block; font: 800 1.5rem/1.2 var(--font-ui); }
.who-bk__row small { display: block; font: 500 1.4375rem/1.25 var(--font-ui); color: var(--c-ink-soft); }

/* ---------- #anyway ---------- */
.who-anyway .cta-row { margin-top: 20px; }
.who-anyway .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.who-anyway__frame { position: relative; overflow: hidden; max-width: 1180px; margin-inline: auto; height: clamp(500px, 44vw, 600px); border-radius: var(--radius-l); background: var(--c-night-2); }
.who-anyway__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 100% 30%; }
.who-anyway__frame .who-anyway__scene { position: absolute; z-index: 2; left: 28px; top: 50%; width: 320px; translate: 0 -50%; }
.who-anyway__stop { position: absolute; z-index: 3; top: 14px; right: 14px; }

/* ---------- #close ---------- */
.who-close { padding-block: clamp(56px, 6vw, 88px); }
.who-close .close__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 72% 40%; }
.who-close .close__shade { background: linear-gradient(90deg, rgb(var(--c-shade) / 0.92) 0%, rgb(var(--c-shade) / 0.78) 30%, rgb(var(--c-shade) / 0) 46%); }
.who-close__grid { grid-template-columns: minmax(0, 450px); gap: 22px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .kinds { grid-template-columns: minmax(250px, 4fr) minmax(0, 7fr); }
}
@media (max-width: 899px) {
  .who-hero { display: block; min-height: 0; }
  .who-hero__tri { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: 400px; margin-top: 10px; }
  .who-hero__stop { top: 22px; left: 22px; }
  .who-hero__copy { width: auto; padding-block: 22px 8px; }
  .who-hero__card { left: 12px; bottom: 14px; }

  .who-breadth__stage { margin-top: 10px; }
  .who-breadth__stage .who-breadth__scene { height: 440px; }
  .who-breadth__stop { top: 6px; }

  .kinds { display: none; }
  .kinds__swipe { display: flex; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); list-style: none; -webkit-overflow-scrolling: touch; }
  .kinds__tile { flex: 0 0 min(84%, 340px); scroll-snap-align: start; overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
  .kinds__tile img { display: block; width: 100%; height: 210px; max-width: none; object-fit: cover; }
  .kinds__tilebody { display: grid; gap: 4px; padding: 14px 16px 18px; }
  .kinds__tilebody b { font: 800 1.1875rem/1.2 var(--font-display); font-stretch: var(--display-stretch); }
  .kinds__tilebody small { font: 500 0.875rem/1.35 var(--font-ui); color: var(--c-ink-soft); }
  .kinds__tilebody p { margin-top: 6px; font: 500 1rem/1.35 var(--font-ui); }
  .kinds__tilebody p span { font-weight: 800; color: var(--c-brand-text); }
  .kinds__tile--more { display: grid; align-content: center; justify-items: start; gap: 10px; padding: 24px; background: var(--c-night); color: var(--c-on-night); box-shadow: none; }
  .kinds__tile--more b { font: 800 1.5rem/1.2 var(--font-display); font-stretch: var(--display-stretch); }
  .kinds__tile--more a { display: inline-flex; align-items: center; gap: 6px; font: 700 1rem/1.3 var(--font-ui); color: var(--c-accent); }

  /* One column: every card stays open, so the column keeps its height and nothing under it moves. */
  .who-buyers__stage .who-buyers__scene { height: auto; }
  .who-buyers__scene .tb-pre { grid-template-rows: minmax(0, 1fr) !important; }
  .who-buyers__stop { top: -50px; }

  .who-plan__in { grid-template-columns: minmax(0, 1fr); }
  .who-plan__copy { order: -1; }
  .who-plan__frame { aspect-ratio: auto; height: 560px; }
  .who-plan__shot img { object-position: 72% 50%; }
  .who-plan__frame .who-plan__scene { left: 10px; right: 10px; top: auto; bottom: 8px; width: auto; translate: none; }

  /* the clip stands in the frame's top, her face over the chat, and the chat half on the clip */
  .who-anyway__frame { height: 720px; }
  .who-anyway__clip { inset: -1px -1px auto -1px; height: 536px; object-position: 100% 50%; }
  .who-anyway__frame .who-anyway__scene { left: 50%; top: auto; bottom: 12px; width: min(320px, 90%); translate: -50% 0; }

  .who-close { padding-block: 330px 36px; }
  .who-close .close__media { inset: -1px -1px auto -1px; height: 371px; }
  .who-close .close__clip { position: relative; inset: auto; width: 100%; height: 100%; object-position: 62% 30%; }
  .who-close .close__shade { background: linear-gradient(180deg, rgb(var(--c-shade) / 0) 0%, rgb(var(--c-shade) / 0) 250px, var(--c-night) 370px); }
}
