/* how-it-works.css: places and sizes How it works' parts (the components live in components.css). The whole page stands on
   ink inside `thread`. The parts stay unpositioned, with no z-index: the line runs over their grounds. Every part below
   the blue band keeps one lane at its left, --lane from the container's edge, and its content starts at --off, so the
   line never crosses a word. */
@import url("../arsenal/thread.css");

.page-how main { background: var(--c-ink); }
.page-how .thread { --thread-ink: var(--c-accent); --thread-bg: var(--c-ink); --thread-track-ink: color-mix(in srgb, var(--c-on-ink) 22%, transparent); --thread-link: 10px; --thread-gap: 19px; --lane: 24px; --off: 76px; color: var(--c-on-ink); }
.page-how .thread__svg { z-index: 1; }
.page-how .lede { color: var(--c-on-ink-soft); }
.lane-off { margin-left: var(--off); }

/* ---------- hero ---------- */
.page-how .page-hero__stage { max-width: 520px; }
.page-how .page-hero__grade { background: linear-gradient(180deg, rgb(16 19 23 / 0.1) 40%, rgb(16 19 23 / 0.5) 100%); }
.page-how .page-hero__stage .page-hero__scene { inset: 0 0 42px; } /* the feed hangs 30 px under its box */
.page-how .page-hero__stop { right: 16px; top: 16px; }

/* ---------- yours: the logo blue, with the mark's bars along its foot ---------- */
.yours { background: var(--c-brand); overflow: clip; }
.yours__in { position: relative; padding-block: clamp(64px, 7vw, 96px) clamp(56px, 6vw, 88px); }
.foot-bars { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: clamp(120px, 20vw, 280px); max-width: none; fill: var(--c-brand-dark); }
.yours .wrap { position: relative; }
.yours__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.yours__head h2 { max-width: 15em; }
.hand { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--c-ink); color: var(--c-on-ink); font-weight: 600; white-space: nowrap; }
.hand__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 2px var(--c-ink), 0 0 0 4px var(--c-accent); }
.panels { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(28px, 3.4vw, 40px) 0 0; padding: 0; }
.panel { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 2px 12px; align-content: start; padding: 22px; background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.panel__n { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--c-ink); color: var(--c-on-ink); }
.panel__title { align-self: end; font-size: 1.25rem; }
.panel__time { color: var(--c-ink-soft); }
.panel__line { grid-column: 1 / -1; margin-top: 10px; color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.45; }
.panel__stage { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: center; margin-top: 16px; min-height: 320px; }
.panel__stage .panel__scene { position: relative; width: 100%; }
.yours .yours__stop { position: sticky; top: calc(var(--header-h) + 18px); z-index: 6; margin: 0 calc(var(--gutter) * -1 + 2px) -40px auto; }
@media (max-width: 1023px) {
  .panels { grid-template-columns: 1fr; margin-top: 20px; }
  .panel__stage { min-height: 300px; }
  .yours__head { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
}

/* ---------- ours: three rows down one lane ---------- */
.ours { padding-block: var(--section-y) clamp(40px, 5vw, 72px); }
.ours__in { position: relative; }
.ours .ours__stop { position: sticky; top: calc(var(--header-h) + 18px); z-index: 6; display: grid; margin: 0 calc(var(--gutter) * -1 + 2px) -40px auto; }
.hand--lane { background: none; padding: 0; margin: 22px 0 0 calc(var(--lane) - 8px); gap: calc(var(--off) - var(--lane) - 8px); color: var(--c-on-ink-soft); }
.lanes { list-style: none; display: grid; gap: clamp(40px, 5vw, 72px); margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; }
.lane { display: grid; grid-template-columns: calc(var(--off) - 28px) minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.lane__n { justify-self: center; display: grid; place-items: center; width: 48px; height: 48px; margin-left: calc((var(--lane) - (var(--off) - 28px) / 2) * 2); border-radius: 50%; background: color-mix(in srgb, var(--c-accent) calc(var(--lit, 0) * 100%), var(--c-ink)); color: color-mix(in srgb, var(--c-on-accent) calc(var(--lit, 0) * 100%), var(--c-on-ink)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-accent) 100%, transparent); font-size: 0.9375rem; }
.lane__text h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.lane__time { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 999px; background: var(--c-line-on-ink); }
.lane__text p { margin-top: 10px; color: var(--c-on-ink-soft); max-width: 40ch; }
.lane__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 380px; width: 100%; border-radius: var(--radius-l); background: var(--c-ink-raised); }
.lane__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; filter: saturate(calc(0.62 + 0.38 * var(--lit, 0))); }
.lane__veil { position: absolute; inset: 0; background: rgb(16 19 23 / calc(0.26 - 0.2 * var(--lit, 0))); }
.lane__media .lane__scene { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: min(330px, 46%); min-width: 270px; }
/* the board's depth tilt draws its smallest words about 6% smaller: 14 px keeps them over the 13 px floor */
.lane__media .lane__scene .ld-top span, .lane__media .lane__scene .ld-av, .lane__media .lane__scene .ld-who small, .lane__media .lane__scene .ld-src { font-size: 14px; }
@media (max-width: 899px) {
  .lane { grid-template-columns: 1fr; gap: 14px; }
  .lane__n { justify-self: start; margin-left: 0; }
  .lane__text { padding-right: 24px; }
  .lane__media { order: 1; aspect-ratio: auto; height: 560px; }
  .lane__clip--launch { object-position: 76% 50%; }
  .lane__clip--leads { object-position: 92% 50%; }
  /* the roofer's head ends half way down the clip: the clip stops above the foot and the card hangs from it, under his chin */
  .lane__media:has(.lane__clip--tune) { height: 580px; }
  .lane__clip--tune { height: 450px; object-position: 66% 50%; }
  .lane__media .lane__scene { left: 50%; top: auto; bottom: 10px; translate: -50% 0; width: min(340px, calc(100% - 24px)); }
  .hand--lane { margin-left: 0; gap: 12px; }
  .lane-off { margin-left: 0; }
  .ours .ours__stop { margin: 0 calc(var(--gutter) * -1 + 2px) -40px auto; }
}

/* ---------- inside: the plan's three cards over its own photo ---------- */
.inside { padding-block: clamp(48px, 6vw, 88px); }
.inside__in { box-sizing: content-box; }
.inside__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; margin-left: var(--off); }
.inside__action .cta-note { margin-top: 10px; }
.inside__frame { position: relative; overflow: hidden; height: 640px; margin: clamp(24px, 3vw, 36px) 0 0 var(--off); border-radius: var(--radius-l); background: var(--c-ink); }
.inside__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 100% 30%; transform: scale(1.4); transform-origin: 100% 30%; }
.inside__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 19 23 / 0) 26%, rgb(16 19 23 / 0.62) 44%, rgb(16 19 23 / 0.8) 100%); }
.inside__frame .inside__scene { position: absolute; right: 0; top: 14px; width: 68%; min-width: 760px; }
.inside__frame .inside__scene .pc-stage { background: transparent; border: 0; }
.inside__frame .inside__scene .pc-stage::before { background: none; }
@media (max-width: 1099px) {
  .inside__head { grid-template-columns: 1fr; }
  /* her face ends 36% down the photo: the photo reaches under the scene's picture, the scene starts below her chin */
  .inside__frame { margin-left: 0; height: auto; padding-top: 270px; }
  .inside__photo { height: 720px; transform: none; object-position: 45% 0; }
  .inside__shade { background: linear-gradient(180deg, rgb(16 19 23 / 0) 220px, rgb(16 19 23 / 0.7) 330px, rgb(16 19 23 / 0.78) 640px, var(--c-ink) 720px); }
  .inside__frame .inside__scene { position: relative; top: auto; right: auto; width: 100%; min-width: 0; }
  .inside__frame .stop--corner { top: 282px; right: 12px; }
}
@media (max-width: 899px) { .inside__head { margin-left: 0; } }

/* ---------- team: the day's work landing over the owner's photo ---------- */
.team { padding-block: clamp(48px, 6vw, 88px); }
.team__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.team__copy { margin-left: var(--off); }
.team__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-l); background: var(--c-ink-raised); }
.team__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.today { position: absolute; left: 18px; top: 50%; translate: 0 -50%; display: grid; gap: 8px; width: min(300px, 50%); padding: 18px; background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.today [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.today__title { font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.015em; }
.today__list { list-style: none; display: grid; gap: 6px; margin: 2px 0; padding: 0; font-size: var(--fs-small); }
.today__list li { display: flex; align-items: center; gap: 9px; }
.today__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 1.5px var(--c-ink); }
.today__human { justify-self: start; padding: 8px 13px; border-radius: var(--radius-s); background: var(--c-ink); color: var(--c-on-ink); font-weight: 700; font-size: var(--fs-small); }
.today__reply { justify-self: end; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--c-brand); color: var(--c-on-brand); font-size: var(--fs-small); font-weight: 600; }
@media (max-width: 899px) {
  .team__in { grid-template-columns: 1fr; }
  .team__copy { margin-left: 0; }
  .team__frame { aspect-ratio: 4 / 5; }
  .team__photo { object-position: 70% 50%; }
  .today { left: 12px; right: 12px; top: auto; bottom: 12px; translate: none; width: auto; }
}

/* ---------- faq ---------- */
.how-faq { padding-block: clamp(48px, 6vw, 88px); }
.how-faq__in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.how-faq__in h2 { margin-left: var(--off); }
@media (max-width: 899px) { .how-faq__in { grid-template-columns: 1fr; } .how-faq__in h2 { margin-left: 0; } }

/* ---------- close ---------- */
.how-close .close { z-index: 0; }
.how-close .close__copy, .how-close .close__action { margin-left: var(--off); }
@media (max-width: 899px) { .how-close .close__copy, .how-close .close__action { margin-left: 0; } }
