/* site\assets\css\pages\how-we-work.css: How We Work (src\pages\how-we-work.mjs; the rising line's script is
   site\assets\js\pages\how-we-work.js). Places and sizes its parts; the bands, footage, doors, FAQ, picker and inner
   close are design\components.css's. */

/* ---------- hero: a calendar marked by hand; the words at the left; the chat and the day's notifications at the
   right, in glass ---------- */
.hh { position: relative; display: flex; align-items: center; min-height: max(680px, calc(100svh - var(--header-h, 72px))); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.hh__footage { inset: -1px; }
.hh__stop { z-index: 6; }
.hh__in { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; width: 100%; }
.hh__words { display: grid; justify-items: start; gap: 1.15rem; max-width: 540px; }
.hh__title { font-size: var(--fs-h1); line-height: 1.04; }
.hh__line { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-ink-soft); }
.hh__doors { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.5rem; margin-top: .35rem; }
/* the chat's phone in the flow, centered in its column; 310 wide, so it is 428 high with room for every message */
.hh__scenes { display: flex; justify-content: center; align-items: center; min-height: 460px; }
.hh__chat { width: 310px; }
@media (min-width: 1100px) { .hh__in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
@media (max-width: 759px) {
  /* the phone: the words on the forest, then the clip as a band under them with the chat's phone standing on it */
  .hh { display: block; min-height: 0; padding-top: 2.25rem; padding-bottom: 0; }
  .hh__footage { inset: auto -1px -1px; height: 520px; }
  .hh__footage::after { background: linear-gradient(180deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 35%, transparent) 24%, color-mix(in srgb, var(--c-ink) 25%, transparent) 100%); }
  .hh__stop { top: auto; bottom: 456px; }
  .hh__in { gap: 1.75rem; }
  .hh__scenes { min-height: 520px; }
  .hh__chat { width: min(310px, 86%); }
  .hh__doors { flex-direction: column; align-items: stretch; width: 100%; }
  .hh__doors .btn { width: 100%; }
}

/* ---------- steps: six scenes on the paper, joined by one line the scroll draws, its head the site's mark ---------- */
.hws__list { --pad: clamp(48px, 3vw + 28px, 76px); --p: 0; position: relative; display: grid; gap: clamp(2.25rem, 1rem + 3vw, 4rem); margin: 0; padding: 0 0 0 var(--pad); list-style: none; }
.hws__rail { position: absolute; top: 0; bottom: 0; left: 14px; width: 3px; border-radius: 3px; background: var(--c-line); }
.hws__fill { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--p) * 100%); border-radius: inherit; background: var(--c-brand); }
.hws__head { position: absolute; top: calc(var(--p) * 100%); left: 50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c-brand); color: var(--c-paper); translate: -50% -50%; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--c-brand) 70%, transparent); }
.hws__head svg { width: 18px; height: 18px; fill: currentColor; }
.hws__group { margin-bottom: calc(-1 * clamp(1.25rem, .5rem + 2vw, 2.5rem)); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-text); }
.hws__step { position: relative; display: grid; gap: 1.25rem clamp(2rem, 4vw, 4rem); align-items: center; }
.hws__step::before { content: ''; position: absolute; top: 1.4rem; left: calc(15.5px - var(--pad)); width: 15px; height: 15px; border: 3px solid var(--c-line); border-radius: 50%; background: var(--c-paper); translate: -50% 0; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.hws__step[data-on]::before { border-color: var(--c-brand); background: var(--c-brand); }
.hws__step--you .hws__text { padding: 1.1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--c-brand) 30%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--c-brand-light) 70%, var(--c-paper)); }
.hws__text { display: grid; justify-items: start; gap: .6rem; min-width: 0; }
.hws__num { display: flex; align-items: center; gap: .65rem; font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft); }
.hws__num b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c-ink); color: var(--c-paper); font-size: 1rem; }
.hws__title { font-size: clamp(1.3rem, 1.05rem + .7vw, 1.6rem); }
.hws__line { font-size: var(--fs-lead); color: var(--c-ink-soft); }
/* the picture's box is the scene's own size (each holds its height while it plays), so its stop icon sits on the
   scene's corner */
.hws__pic { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 420px); height: auto; justify-self: center; }
.hws__scene { width: 100%; }
/* step 1's chat grows as its messages come in: its box stands at its fullest height (measured across the loop at each
   width), so the steps beside and under it never move */
.hws__pic .hws__scene--goal { min-height: 240px; }
@media (max-width: 459px) { .hws__pic .hws__scene--goal { min-height: 260px; } }
@media (max-width: 399px) { .hws__pic .hws__scene--goal { min-height: 280px; } }
@media (max-width: 349px) { .hws__pic .hws__scene--goal { min-height: 316px; } }
.hws__stop { top: -12px; right: -12px; }
@media (min-width: 1000px) {
  .hws__step { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 759px) {
  .hws__stop { top: -14px; right: -4px; }
}

/* ---------- inside: the blueprint's three cards over an owner at a café table ---------- */
.hwi__side { display: grid; justify-items: start; gap: 1.1rem; }
.hwi__pic { position: relative; }
.hwi__stop { top: -14px; right: -10px; z-index: 6; }
@media (max-width: 759px) { .hwi__stop { right: -4px; } }

/* ---------- team: the founder (Eric, 16 Nov): components.css's `.solo` (src\partials\founder.mjs) ---------- */

/* ---------- close: the clip set in from the left (the wall's poster left out of the frame), so the owner on the phone
   sits clear of the words; the week low at the right, over the counter ---------- */
@media (min-width: 900px) {
  .hwclose__footage { left: 40%; }
  .hwclose__footage::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 50%, transparent) 12%, transparent 32%); }
  .hwclose__footage > video { object-position: 72% 30%; }
}
@media (min-width: 1180px) {
  .iclose > .sw-close__stage { bottom: 4%; width: 280px; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .iclose > .sw-close__stage { display: none; }
}
@media (max-width: 899px) { .hwclose__footage > video { object-position: 72% 30%; } }
