/* Who we help: plan.md "Who we help" (The breadth). Tokens only (design\system.css); components from components.css. */

/* ---------- hero: three trades side by side, edge to edge, the words and trade-type on one purple band across their
   lower part; on the phone one photo at a time (the kit's rotate), the band under it ---------- */
.who-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(720px, calc(100svh - var(--header-h)), 900px); background: var(--c-band-deep); }
.who-hero__stop { position: absolute; z-index: 3; top: 20px; right: 20px; }
.who-hero__stage { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; overflow: clip; }
.who-hero__slide { position: relative; margin: 0; overflow: hidden; overflow: clip; }
.who-hero__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.who-hero__slide:nth-child(1) .who-hero__photo { object-position: 45% 20%; }
.who-hero__slide:nth-child(2) .who-hero__photo { object-position: 50% 25%; transform: scale(1.15); transform-origin: 50% 100%; }
.who-hero__slide:nth-child(3) .who-hero__photo { object-position: 58% 20%; transform: scale(1.18); transform-origin: 50% 100%; }
.who-hero__band { position: relative; z-index: 2; background: color-mix(in srgb, var(--c-band) 94%, transparent); padding-block: clamp(1.4rem, 2.2vw, 2rem); }
.who-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.who-hero__title { color: var(--c-on-ink); font-size: clamp(2.1rem, 1.25rem + 2.5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.who-hero__line { margin-top: 1rem; max-width: 34rem; color: var(--c-on-ink-soft); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.55; }
.who-hero .cta-row { margin-top: 1.4rem; }
.who-hero__card { padding: 0.9rem 1.1rem; background: var(--c-paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.scene.who-hero__scene { position: relative; width: 100%; height: 250px; }
@media (max-width: 899px) {
  .who-hero { display: block; min-height: 0; }
  .who-hero__stage { position: relative; inset: auto; display: block; height: min(100vw, 440px); }
  .who-hero__band { background: var(--c-band); }
  .who-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .who-hero__slide:nth-child(2) .who-hero__photo, .who-hero__slide:nth-child(3) .who-hero__photo { transform: none; }
  /* the kit's rotate (kit.md "The header that changes its field"), on the phone only */
  .who-hero[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; overflow: clip; }
  .who-hero[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
  .who-hero[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
  .who-hero[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
  .who-hero[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
  .who-hero[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
}

/* ---------- every: the signature, tradebook full width on the deep purple field ---------- */
.every { overflow: hidden; overflow: clip; background: var(--c-band-deep); color: var(--c-on-ink); padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.every__title { max-width: 21ch; margin-inline: auto; color: var(--c-on-ink); text-align: center; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
/* its stop just above the scene's right end, in the gap under the title (clear of the scene's rows) */
.every__stage { position: relative; margin-top: clamp(3.75rem, 5vw, 4.5rem); }
.every__stop { top: -52px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.scene.every__scene { position: relative; width: 100%; height: 420px; }
@media (max-width: 599px) { .scene.every__scene { height: 400px; } }

/* ---------- kinds: six wide cards, a photo in the logo's frame with its booking landing, the words on white under it;
   the seventh, "And many more", a gold strip across the grid ---------- */
.kind { position: relative; }
.kinds__stop { top: 12px; right: 12px; } /* on the first card's photo, outside its link */
.kinds__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.kind__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.kind__media { position: relative; display: block; overflow: hidden; overflow: clip; aspect-ratio: 16 / 11; background: var(--c-paper-alt); }
.kind__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; transition: transform 600ms var(--ease-out, ease); }
.kind__link:hover .kind__photo { transform: scale(1.04); }
.kind:nth-child(1) .kind__photo { object-position: 50% 42%; }
.kind:nth-child(2) .kind__photo { object-position: 50% 30%; }
.kind:nth-child(3) .kind__photo { object-position: 50% 50%; }
.kind:nth-child(4) .kind__photo { object-position: 60% 45%; }
.kind:nth-child(5) .kind__photo { object-position: 55% 30%; }
.kind:nth-child(6) .kind__photo { object-position: 45% 50%; }
.kind__card { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 0.6rem 0.85rem 0.6rem 0.6rem; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.kind__card .booking__tick { width: 32px; height: 32px; }
.kind__card .booking__words b { font-size: 0.95rem; }
.kind__card .booking__words small { font-size: 0.8125rem; }
.kind__words { display: grid; gap: 0.3rem; padding: 1rem 0.2rem 0; }
.kind__name { font: 700 clamp(1.25rem, 1.1rem + 0.4vw, 1.45rem)/1.2 var(--font-display); color: var(--c-brand-text); }
.kind__link:hover .kind__name { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.kind__fields { font-size: 0.9rem; line-height: 1.45; color: var(--c-ink-soft); }
.kind__line { font-size: 1rem; line-height: 1.5; color: var(--c-ink); }
.kind--more { grid-column: 1 / -1; }
.kind--more .kind__link { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-accent); color: var(--c-on-accent); }
.kind--more .kind__name { color: var(--c-on-accent); }
.kind--more .kind__line { flex: 1 1 18rem; color: var(--c-on-accent); font-size: 1.0625rem; }
.kind--more .kind__go { border-color: var(--c-on-accent); color: var(--c-on-accent); }
.kind--more .kind__link:hover .kind__go { background: var(--c-on-accent); color: var(--c-accent); }
@media (max-width: 1099px) { .kinds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .kinds__grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .kind__photo { transition: none; } }

/* ---------- buyers: three-buyers on the lavender with the motif ---------- */
/* its stop just above the scene's right end, in the gap under the heading */
.buyers__stage { position: relative; width: min(100%, 1100px); margin: clamp(3.75rem, 5vw, 4.5rem) auto 0; }
.buyers__stop { top: -52px; right: 0; }
.scene.buyers__scene { position: relative; width: 100%; height: 460px; }
@media (max-width: 759px) { .scene.buyers__scene { height: 800px; } }

/* ---------- plan: plan-builder in glass over a framed photo of a calendar, the words beside it ---------- */
.who-plan__stop { top: 8px; right: 8px; } /* on the photo's corner, over the glass card's rounded corner */
.who-plan__grid { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.who-plan__media { position: relative; overflow: hidden; overflow: clip; height: 620px; background: var(--c-paper-alt); }
.who-plan__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 50%; }
.scene.who-plan__scene { position: absolute; inset: 30px; }
.who-plan__words .lede { margin-top: var(--space-3); }
.who-plan__words .cta-row { margin-top: 1.5rem; }
@media (max-width: 899px) {
  .who-plan__grid { grid-template-columns: minmax(0, 1fr); }
  .who-plan__words { order: -1; }
  .who-plan__media { height: 740px; }
  .scene.who-plan__scene { inset: 16px; }
}

/* ---------- anyway: the chat in a white phone over a florist at her counter, the words beside it ---------- */
.anyway__stop { top: 14px; right: 14px; } /* on the photo, clear of the phone at the left */
.anyway__grid { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.anyway__words .lede { margin-top: var(--space-3); }
.anyway__words .cta-row { margin-top: 1.5rem; }
.anyway__other { margin-top: 1.25rem; color: var(--c-ink-soft); }
.anyway__media { position: relative; overflow: hidden; overflow: clip; height: 640px; background: var(--c-paper-alt); }
.anyway__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 50%; }
.phone.anyway__phone { position: absolute; left: 24px; top: 50%; width: 300px; padding: 8px; border-radius: 40px; translate: 0 -50%; background: var(--c-paper); box-shadow: var(--shadow-l), 0 0 0 var(--frame) var(--c-brand); }
.anyway__phone .phone__top { border-radius: 32px 32px 0 0; padding: 0.8rem 1rem 0.75rem; }
.anyway__phone .phone__chat { height: 480px; border-radius: 0 0 32px 32px; padding: 0.85rem 0.75rem 1rem; }
.anyway__phone .msg { font-size: 0.875rem; }
@media (max-width: 899px) {
  .anyway__grid { grid-template-columns: minmax(0, 1fr); }
  .anyway__media { height: 780px; }
  .anyway__photo { object-position: 60% 50%; }
  .phone.anyway__phone { top: auto; bottom: 12px; left: 50%; translate: -50% 0; }
  .anyway__phone .phone__chat { height: 430px; }
  .anyway__stop { top: auto; bottom: 530px; } /* just above the phone, in one view with its chat */
}

/* ---------- close ---------- */
.who-close .film__clip { object-position: 60% 35%; }
