/* who-we-help.css: Who we help (src\pages\who-we-help.mjs). The kinds part is the arsenal composition trade-strips. */
@import url("../arsenal/trade-strips.css");

/* 1. Header: the street of shops full-bleed, its title at the frame's foot like a film's: the headline (its last word
   turning through kinds of business, on a line of its own, in the cyan) at the left, the line and the button at the
   right, over a shade rising from the foot. Under 900 px the street stands above the words. */
.wwh-top { align-items: end; }
.wwh-top .hero__stage::after {
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 95%, transparent) 0%, color-mix(in srgb, var(--c-ink) 86%, transparent) 30%, color-mix(in srgb, var(--c-ink) 64%, transparent) 42%, color-mix(in srgb, var(--c-ink) 20%, transparent) 60%, transparent 74%),
    linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 45%, transparent) 0%, transparent 46%);
}
.wwh-top__video { object-position: 50% 42%; }
.wwh-top .kit-first { --pos: 50% 42%; }
.wwh-top__words { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-block: 0 clamp(5rem, 8vw, 6.5rem); }
.hero__words .wwh-top__h1 { max-width: none; margin: 0; font-size: clamp(2.1rem, 1rem + 2.6vw, 3.3rem); }
.wwh-top__swap { display: block; }
.wwh-top__side { padding-bottom: 6px; }
.wwh-top__side .hero__lede { margin: 0 0 var(--space-3); }
.wwh-top__stop { bottom: 26px; }
@media (max-width: 899px) {
  .wwh-top { display: block; min-height: 0; }
  .wwh-top .hero__stage { position: relative; height: clamp(300px, 70vw, 480px); }
  .wwh-top .hero__stage::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 26%, transparent 52%); }
  .wwh-top__words { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); padding-block: var(--space-2) var(--space-5); margin-top: -12px; }
  .hero__words .wwh-top__h1 { font-size: clamp(1.8rem, 7.6vw, 2.6rem); }
  .wwh-top__stop { bottom: auto; top: 14px; right: auto; left: 14px; }
}

/* 2. Every kind at once (the page's unique element): the mark made of the names, on the ink, full width. */
/* (the part fits one computer screen with its head: 56 + about 160 + 24 + 480 + 56) */
.wwh-every { padding-block: clamp(3rem, 4vw, 3.5rem); }
.wwh-every__head { margin-inline: auto; margin-bottom: var(--space-3); text-align: center; }
.wwh-every__head .lede { margin-inline: auto; }
.wwh-every__stage { position: relative; }
.wwh-every .wwh-every__scene { height: 480px; }
.wwh-every__stop { position: absolute; z-index: 3; top: 0; right: 0; }
@media (max-width: 999px) { .wwh-every .wwh-every__scene { height: 560px; } }
@media (max-width: 699px) { .wwh-every .wwh-every__scene { height: 420px; } .wwh-every__stop { top: -6px; } }

/* 3. The kinds: the head at the left, the strips at the right (stacked under 1100 px). */
.wwh-kinds__in { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.wwh-kinds__head { margin-bottom: 0; }
@media (max-width: 1099px) { .wwh-kinds__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); } }

/* 4. Your plan: the planner photo framed, the plan's glass card over its left part (the closed laptop and the desk),
   the hand and the planner clear at its right. Under 900 px the frame is tall and the photo drawn from higher up: the
   hand at its top, the card over the desk below. */
.wwh-plan, .wwh-in { padding-block: clamp(3rem, 4.5vw, 4rem); }
.wwh-plan .part-head, .wwh-in .part-head { margin-bottom: var(--space-4); }
.wwh-plan__frame { position: relative; height: clamp(480px, 38vw, 520px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-m); }
.wwh-plan__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 45%; }
.wwh-plan .wwh-plan__scene { position: absolute; left: clamp(18px, 2.6vw, 36px); top: clamp(18px, 2.6vw, 40px); bottom: clamp(18px, 2.6vw, 40px); width: min(420px, 38%); height: auto; }
.wwh-plan__stop { position: absolute; z-index: 3; top: 16px; right: 16px; }
@media (max-width: 899px) {
  .wwh-plan__frame { height: 840px; margin-inline: calc(12px - var(--gutter)); }
  .wwh-plan__img { top: -40%; height: calc(140% + 1px); object-position: 45% 50%; }
  .wwh-plan .wwh-plan__scene { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; height: 556px; }
  .wwh-plan__stop { top: 224px; right: 14px; } /* just above the scene's top, so the two stand in one view */
}
@media (min-width: 600px) and (max-width: 899px) { .wwh-plan .wwh-plan__scene { left: 50%; right: auto; width: 460px; margin-left: -230px; } }

/* 5. A way in: the bike shop framed, the form in dark glass at its right, over the bike, clear of both faces (28% and
   49% across). Under 900 px the frame is tall, the two at its top and the form under them. */
.wwh-in__frame { position: relative; height: clamp(520px, 40vw, 560px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-m); }
.wwh-in__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 40%; }
.wwh-in__box { position: absolute; z-index: 2; right: clamp(18px, 2.6vw, 40px); top: 50%; width: min(420px, 40%); padding: 22px 22px 18px; transform: translateY(-50%); }
.wi-f fieldset { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.wi-f legend { padding: 0 0 12px; color: var(--c-on-ink); font: 700 1.125rem/1.3 var(--font-ui); }
.wi-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wi-f .wi-tiles label > span { min-height: 48px; padding: .45em .6em; font-size: 15px; line-height: 1.2; white-space: normal; text-align: center; }
.wi-f .wi-tiles label:last-of-type { grid-column: 1 / -1; }
.wi-err { grid-column: 1 / -1; margin: 2px 0 0; color: #FF8F84; font: 600 13px/1.35 var(--font-ui); }
.wi-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.wi-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.wi-f .wi-nav .btn { width: auto; margin-bottom: 0; min-height: 3.25rem; }
.wi-f .wi-nav .wi-next { flex: 1; }
.wi-f .wi-nav .wi-back { flex: none; padding-inline: 18px; }
.wi-note { margin: 12px 0 0; color: color-mix(in srgb, var(--c-on-ink) 76%, transparent); font-size: var(--fs-small); }
@media (max-width: 899px) {
  .wwh-in__frame { height: 860px; margin-inline: calc(12px - var(--gutter)); }
  /* drawn from a little higher, so the faces stand clear above the form; on a phone the owner at work, whole (its
     slice holds one of the two) */
  .wwh-in__img { top: -14%; height: calc(114% + 1px); object-position: 31% 50%; }
  .wwh-in__box { top: 330px; left: 12px; right: 12px; width: auto; transform: none; }
  .wi-two { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) { .wwh-in__img { object-position: 38.5% 50%; } .wwh-in__box { left: 50%; right: auto; width: 440px; margin-left: -220px; } }

/* 6. Close: the shop owner welcoming at her open blue door (her face about 60% across): the clip in the right 64%, its
   left edge into the ink, the words and the picker at the left; under 1200 px the clip is a band above the words. */
.wwh-close .close__in { z-index: 5; }
.wwh-close .close__media { inset: 0 0 0 auto; width: 64%; }
.wwh-close .close__video { object-position: 62% 30%; }
.wwh-close .close__media::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 50%, transparent) 14%, transparent 34%), linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 35%, transparent), transparent 30%); }
.wwh-close .close__in h2 { max-width: 15em; }
.wwh-close .close__in .lede { max-width: 30rem; }
@media (max-width: 1199px) {
  .wwh-close { padding-block: 0 clamp(4.5rem, 8vw, 6.5rem); }
  .wwh-close .close__media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 520px; }
  .wwh-close .close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 35%, transparent) 24%, transparent 48%); }
  .wwh-close .close__in { margin-top: calc(-1 * var(--space-4)); }
  .wwh-close .close__stop { top: 16px; }
}
@media (max-width: 599px) { .wwh-close .close__media { aspect-ratio: 4 / 5; } .wwh-close .close__video { object-position: 60% 30%; } }
