/* How We Work: its own sizes and crops only (design\components.md, "Inner-page patterns"). */

/* ---------- #top: a planning wall filling with notes, full-bleed and toned to the ground; the words low at left, the
   owner's route low at right (the wall has no face, so the route's cards stand anywhere on it) ---------- */
.hww-head { box-sizing: border-box; min-height: max(720px, min(840px, calc(100svh - var(--header-h)))); display: grid; align-items: end; padding-block: var(--space-5) 40px; }
.hww-head .phead__media > video, .hww-head .phead__media > .kit-first { object-position: 60% 50%; }
.hww-head .phead__grade { background: linear-gradient(90deg, rgba(7,18,37,0.92) 0%, rgba(7,18,37,0.78) 30%, rgba(7,18,37,0.42) 52%, rgba(7,18,37,0.3) 100%), linear-gradient(0deg, rgba(7,18,37,0.45) 0%, rgba(7,18,37,0) 45%); }
.hww-head .phead__copy { max-width: 440px; }
.hww-head h1 { font-size: clamp(2.3rem, 1.3rem + 2.2vw, 3.35rem); }
.hww-head .phead__line { font-size: 1.0625rem; }
.hww-head .phead__pick { max-width: 28rem; }
.hww-head > .stop { z-index: 6; }
.hww-route { right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); bottom: 28px; width: 700px; height: 540px; }
@media (max-width: 1279px) {
  /* the words first, then the footage, the route under it */
  .hww-head { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: var(--space-4) 0 var(--space-5); }
  .hww-head .phead__inner { order: 1; }
  .hww-head > .stop { order: 2; position: relative; top: auto; right: auto; align-self: flex-end; margin: var(--space-4) var(--gutter) -48px 0; }
  /* the route stands on the wall's lower part at every width (the wall has no face) */
  .hww-head .phead__media { order: 3; position: relative; inset: auto; height: 610px; }
  .hww-head .phead__grade { background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0.42) 12%, rgba(11,27,51,0.42) 100%); }
  .hww-head .phead__copy, .hww-head .phead__pick { max-width: 34rem; }
  .hww-route { order: 4; position: relative; right: auto; bottom: auto; align-self: center; width: min(760px, calc(100% - 2 * var(--gutter))); height: 540px; margin-top: -566px; }
}
@media (max-width: 699px) {
  .hww-head .phead__media { height: 536px; }
  .hww-route { height: 700px; margin-top: -516px; }
}

/* ---------- #steps: four cards that stack as the visitor scrolls, each with its own clip ---------- */
.hww-steps__head { position: relative; display: grid; gap: var(--space-3); }
/* the part's stop icon rides with the stack, in the corner of whichever clip is on top */
.hww-stack__stopbar { position: sticky; top: calc(var(--header-h) + 34px); z-index: 20; height: 0; margin-top: var(--space-5); }
.hww-stack__stopbar > .stop { top: 0; left: 14px; right: auto; }
.hww-partners { display: flex; align-items: center; gap: 0.8rem; margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.hww-partners b { color: var(--c-ink); font-weight: 600; }
.hww-partners__faces { display: inline-flex; flex: none; }
.hww-partners__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-paper); box-shadow: 0 2px 8px rgba(11,27,51,0.18); }
.hww-partners__faces img + img { margin-left: -10px; }
.hww-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.hww-stack__card { position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 16px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 440px; overflow: hidden;
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: 0 -10px 30px rgba(11,27,51,0.08), 0 18px 44px rgba(11,27,51,0.12); }
.hww-stack__media { position: relative; min-height: 440px; background: var(--c-navy-800); }
.hww-stack__media > video, .hww-stack__media > .kit-first { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.hww-stack__body { display: grid; align-content: center; gap: 0.9rem; padding: clamp(28px, 4vw, 56px); }
.hww-stack__num { font: 600 0.95rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--c-gold-text); }
.hww-stack__body h3 { font: 600 clamp(1.8rem, 1.2rem + 1.2vw, 2.4rem)/1.1 var(--font-display); }
.hww-stack__body p { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink-soft); max-width: 30rem; }
.hww-stack__body .hww-stack__part { justify-self: start; padding: 0.55rem 0.9rem; border-radius: var(--radius-s); background: var(--c-paper-alt); box-shadow: inset 3px 0 0 var(--c-gold);
  font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-ink); }
@media (max-width: 899px) {
  .hww-stack { gap: 20px; }
  .hww-stack__card { grid-template-columns: 1fr; min-height: 0; top: calc(var(--header-h) + 12px + var(--i) * 10px); }
  .hww-stack__media { min-height: 0; height: 240px; }
  .hww-stack__body { padding: 22px 20px 24px; gap: 0.65rem; }
}

/* ---------- #stages: the route for the visitor's stage, its chips above it ---------- */
.hww-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: var(--space-4) 0 var(--space-4); padding: 0; border: 0; }
.hww-pick .chip span { height: 46px; padding: 0 18px; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.24); color: var(--c-on-ink); font: 600 0.98rem/1 var(--font-ui); }
.hww-pick .chip:hover span { border-color: rgba(255,255,255,0.55); }
.hww-pick .chip input:checked + span { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-on-gold); box-shadow: none; }
.hww-pick .chip input:focus-visible + span { outline-color: var(--c-gold-light); }
.hww-stage-box { position: relative; }
.hww-stage-box > .scene { position: relative; height: var(--sr-h, 520px); }
.hww-stage-box > .stop { top: -56px; right: 0; }

/* ---------- #close: the words at left on the ground, the owner with her team framed at right ---------- */
.hww-close__grid { display: grid; gap: var(--space-5); align-items: center; }
.hww-close__copy { color: var(--c-on-ink); }
.hww-close__media { position: relative; height: clamp(320px, 34vw, 480px); }
.hww-close__media > video, .hww-close__media > .kit-first { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.hww-close__media > .stop { top: 14px; right: 14px; }
@media (min-width: 1000px) { .hww-close__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; } }
