@import url("../arsenal/thread.css");
/* How it works (plan.md, How it works): the route from the chat to new clients, one line down the page's middle (the
   arsenal's thread). The line never crosses words: every part's words sit beside its lane (the left half, or the gutter
   between two columns), and what it passes behind is opaque. The parts take no position or z-index of their own, so
   their grounds stay under the line; the hero's photo goes under it with z-index -1. */

/* ---------- the thread as the blueprint's route: dashed ahead, solid behind its head, the target as its head ---------- */
.hiw-thread { --thread-ink: var(--c-brand); --thread-track-ink: color-mix(in srgb, var(--c-ink) 34%, transparent); --thread-w: 2.5px; --thread-tail: 80px; }
.hiw-thread .thread__track { stroke-width: 2; stroke-linecap: butt; stroke-dasharray: 7 7; }
.hiw-thread [data-thread-anchor].btn { --ring: clamp(0, var(--lit, 0), 1); box-shadow: 0 0 0 calc(var(--ring) * 4px) color-mix(in srgb, var(--c-brand) 28%, transparent); }

/* a step's number: a square on the lane that fills with the brand as the line plugs in, one ring spreading out */
.hiw-num, .hiw-hand__node { --p: clamp(0, var(--lit, 0), 1); display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 2px solid var(--c-brand); border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-brand) calc(var(--p) * 100%), var(--c-paper)); color: color-mix(in srgb, var(--c-on-brand) calc(var(--p) * 100%), var(--c-brand-text)); font: 800 1.25rem/1 var(--font-display); box-shadow: var(--shadow-s); }
.hiw-num::after, .hiw-hand__node::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--c-brand); border-radius: var(--radius-s); opacity: calc(var(--p) * (1 - var(--lit-after, 0))); transform: scale(calc(1 + var(--lit-after, 0) * 0.7)); pointer-events: none; }
.hiw-hand__node .mark { width: 1.6rem; height: 1.6rem; }

/* the agency's stage name under a step's text */
.hiw-tag { display: inline-flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; font: 600 0.8125rem/1.3 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-brand-text); }
.hiw-tag .mark { width: 1rem; height: 1rem; color: var(--c-brand); }

/* the heads sit in the left half, beside the lane */
.hiw-thread .hiw-lane-head { max-width: calc(50% - 3.5rem); }

/* ---------- hero: the planner under a navy blueprint veil, the words centered, the chat hanging at the lower right ---------- */
.hiw-hero { --hero-h: clamp(38rem, calc(100vh - 72px), 52rem); position: relative; display: grid; place-items: center; min-height: var(--hero-h); padding: 4.5rem var(--gutter) 8rem; text-align: center; color: var(--c-on-ink); }
@supports (height: 100svh) { .hiw-hero { --hero-h: clamp(38rem, calc(100svh - 72px), 52rem); } }
.hiw-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--c-ink); }
.hiw-hero__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 40% 62%; }
.hiw-hero__veil { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--c-ink) 62%, transparent); background-image: linear-gradient(var(--c-grid-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid-on-ink) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
.hiw-hero__in { max-width: 46rem; }
.hiw-hero__title { color: var(--c-on-ink); font-size: var(--fs-h1); line-height: 1.04; }
.hiw-hero__line { max-width: 34rem; margin: 1.1rem auto 2rem; font-size: 1.1875rem; line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.hiw-hero__cta { justify-content: center; }
.hiw-hero__chat { position: absolute; z-index: 2; right: var(--gutter); bottom: -6rem; width: 320px; }
.hiw-hero__stop { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(-6rem + 428px + 0.75rem); }

/* ---------- yours, 01 and 02: two plan sheets on the pale blueprint, staggered on either side of the lane ---------- */
.hiw-yours { padding: calc(var(--section-y) + 3rem) var(--gutter) var(--section-y); background-color: var(--c-paper-alt); background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
.hiw-yours .head { margin-inline: 0; text-align: left; }
.hiw-yours__steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7rem; margin: 0; padding: 0; list-style: none; }
.hiw-step { position: relative; }
.hiw-step--02 { margin-top: 9rem; }
.hiw-step > .hiw-num { position: absolute; top: 1.75rem; }
.hiw-step--01 > .hiw-num { left: calc(100% + 3.5rem - 1.625rem); }
.hiw-step--02 > .hiw-num { right: calc(100% + 3.5rem - 1.625rem); }
.hiw-step__card { padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.hiw-step__title { padding-right: 3rem; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.1; }
.hiw-step__line { max-width: 28rem; margin: 0.6rem 0 0; color: var(--c-ink-soft); }
.hiw-step__stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 19.5rem; margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius-s); background-color: var(--c-paper-alt); background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: 14px 14px; }
.hiw-step__scene { width: min(100%, 26rem); }
.hiw-step__stop { position: absolute; z-index: 2; top: 0.75rem; right: 0.75rem; }
/* the hand-over: your part on the left of its node, ours on the right */
.hiw-hand { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1.75rem; margin-top: clamp(3rem, 6vw, 5rem); }
.hiw-hand p { margin: 0; font: 600 1.125rem/1.4 var(--font-ui); }
.hiw-hand__you { text-align: right; }
.hiw-hand b { color: var(--c-brand-text); }
.hiw-hand__node { position: relative; color: color-mix(in srgb, var(--c-on-brand) calc(var(--p) * 100%), var(--c-brand)); }

/* ---------- ours, 03 to 06: each a framed photo with its scene turned toward the lane, the text on the other side ---------- */
.hiw-row { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); }
.hiw-row--ours { padding-top: var(--section-y); }
.hiw-row--tune { padding-bottom: var(--section-y); }
.hiw-ours__head { margin: 0 0 clamp(2.5rem, 5vw, 4rem); text-align: left; }
.hiw-row__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7rem; align-items: center; }
.hiw-row__in > .hiw-num { position: absolute; top: 0; left: calc(50% - 1.625rem); }
.hiw-row--flip .hiw-row__text { order: 2; }
.hiw-row__title { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.08; }
.hiw-row__line { max-width: 30rem; margin: 0.8rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--c-ink-soft); }
.hiw-row__frame { position: relative; aspect-ratio: 9 / 8; overflow: hidden; border-radius: var(--radius-m); background: var(--c-ink); box-shadow: var(--shadow-l); }
.hiw-row__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
/* each scene at its own height, centered on the photo's calm side: launch, leads and tune are panels of about 300 px;
   leadbars sizes itself; leads' board, tilted in depth, is drawn 8% larger so its smallest words stay at 13 px */
.hiw-row__frame > .hiw-row__scene { position: absolute; z-index: 2; top: 50%; left: 1.25rem; width: min(calc(100% - 2.5rem), 25rem); height: 19rem; transform: translateY(-50%); }
.hiw-row--flip .hiw-row__frame > .hiw-row__scene { left: auto; right: 1.25rem; }
.hiw-row--ours .hiw-row__frame > .hiw-row__scene { height: auto; }
.hiw-row--tune .hiw-row__frame > .hiw-row__scene { height: 20.5rem; }
.hiw-row--leads .hiw-row__frame > .hiw-row__scene { width: min(calc(100% - 3rem), 24rem); transform: translateY(-50%) scale(1.08); transform-origin: 0 50%; }
.hiw-row__stop { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
.hiw-row--flip .hiw-row__stop { right: auto; left: 1rem; }
.hiw-row--ours .hiw-row__photo { object-position: 78% 40%; }
.hiw-row--live .hiw-row__photo { object-position: 18% 30%; }
.hiw-row--leads .hiw-row__photo { object-position: 62% 36%; }
/* the med spa turned around, so its calm wall is on the lane's side */
.hiw-row--tune .hiw-row__photo { object-position: 72% 0%; transform: scaleX(-1); }

/* ---------- plan: the head beside the lane, the builder under it, the line passing behind ---------- */
.hiw-plan { padding: var(--section-y) var(--gutter); background-color: var(--c-paper-alt); background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); }
.hiw-plan__head { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.hiw-plan__head .cta-row { margin-top: 1.75rem; }
.hiw-plan__stage { position: relative; width: min(100%, 56rem); margin-inline: auto; }
.hiw-plan__stage > .hiw-plan__scene { position: relative; width: 100%; aspect-ratio: 900 / 600; }
.hiw-plan__stop { position: absolute; z-index: 3; top: 1rem; right: 1rem; }

/* ---------- team: the pool builder's phone, his team a tap away; the words on the lane's other side ---------- */
.hiw-team { padding: var(--section-y) var(--gutter); }
.hiw-team__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7rem; align-items: center; }
.hiw-team__frame { position: relative; height: 44rem; overflow: hidden; border-radius: var(--radius-m); background: var(--c-ink); box-shadow: var(--shadow-l); }
/* the photo never narrower than 36rem, centered on the phone, so its screen stays about 240 px wide and its words
   readable at every width */
.hiw-team .hiw-team__photo { position: absolute; top: 50%; left: 50%; width: max(100%, 36rem); height: auto; aspect-ratio: 4 / 5; margin: 0; transform: translate(-50%, -50%); }
.hiw-team__stop { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
.hiw-team__head { margin: 0; }
/* the dashboard, designed at 250 x 545 and laid on the phone's screen by core.js */
.dash { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; background: var(--c-paper-alt); color: var(--c-ink); font-family: var(--font-ui); }
.dash__top { display: flex; align-items: center; gap: 9px; padding: 34px 14px 12px; background-color: var(--c-ink); background-image: linear-gradient(var(--c-grid-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid-on-ink) 1px, transparent 1px); background-size: 14px 14px; color: var(--c-on-ink); }
.dash__plate { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-brand); }
.dash__plate .mark { width: 18px; height: 18px; }
.dash__top b { display: block; font: 700 15px/1.2 var(--font-display); }
.dash__top small { display: block; font: 400 13px/1.3 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 78%, transparent); }
.dash__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 12px; }
.dash__body > * { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.dash:has(.kit-end[data-kit-on]) .dash__body > * { transform: none; } /* the kit's hold: the talk fades out in place, never sliding back */
.dash__ask { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); }
.dash__human { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px; border-radius: var(--radius-s); background: var(--c-brand); color: var(--c-on-brand); font: 700 14px/1.2 var(--font-ui); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 22%, transparent); }
.dash__human .mark { width: 15px; height: 15px; }
.dash__note { font: 400 13px/1.35 var(--font-ui); color: var(--c-ink-soft); text-align: center; }
.dash__msg { max-width: 86%; padding: 9px 11px; border-radius: var(--radius-m); font: 500 14px/1.35 var(--font-ui); }
.dash__msg--me { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); }
.dash__msg--team { align-self: flex-start; border: 1px solid var(--c-line); background: var(--c-paper); box-shadow: var(--shadow-s); }
.dash__msg--team b { display: block; margin-bottom: 3px; font: 600 13px/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-brand-text); }
.dash__seen { display: flex; align-items: center; gap: 5px; align-self: flex-start; font: 500 13px/1.2 var(--font-ui); color: var(--c-accent-text); }
.dash__seen .mark { width: 13px; height: 13px; }
.dash__bar { display: flex; align-items: center; justify-content: space-between; margin: 0 10px 26px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); font: 400 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.dash__bar i { width: 22px; height: 22px; border-radius: var(--radius-s); background: var(--c-brand); }

/* ---------- faq: two equal columns, the lane in the gap between them ---------- */
.hiw-faq .faq-band__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7rem; }

/* ---------- close: the estimate at the kitchen table, the words on a navy blueprint band across its foot ---------- */
.hiw-close { position: relative; height: clamp(38rem, 52vw, 46rem); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.hiw-close__media { position: absolute; inset: 0; }
.hiw-close__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.hiw-close__band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--gutter); background-color: color-mix(in srgb, var(--c-ink) 90%, transparent); background-image: linear-gradient(var(--c-grid-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid-on-ink) 1px, transparent 1px); background-size: var(--grid-cell) var(--grid-cell); text-align: center; }
.hiw-close__in { max-width: 58rem; margin-inline: auto; }
.hiw-close__title { color: var(--c-on-ink); font-size: var(--fs-h2); line-height: 1.08; }
.hiw-close__line { max-width: 34rem; margin: 0.7rem auto 1.4rem; line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 82%, transparent); }
.hiw-close__cta { justify-content: center; }
.hiw-close__stop { position: absolute; z-index: 3; top: 1.25rem; right: var(--gutter); }

/* ---------- under 1200 px: the steps' rows narrower, the same lane ---------- */
@media (max-width: 1199px) {
  .hiw-yours__steps, .hiw-row__in, .hiw-team__in, .hiw-faq .faq-band__in { column-gap: 5rem; }
  .hiw-step--01 > .hiw-num { left: calc(100% + 2.5rem - 1.625rem); }
  .hiw-step--02 > .hiw-num { right: calc(100% + 2.5rem - 1.625rem); }
  .hiw-row__frame > .hiw-row__scene { width: calc(100% - 2.5rem); }
}

/* ---------- under 900 px: one column, the number beside each heading, the thread a short line beside each part ---------- */
@media (max-width: 899px) {
  /* the thread as a short line beside each part, down its left lane: the numbers there, the words beside them, and
     what it passes (the cards, the photos) opaque */
  .hiw-thread { --thread-narrow: 1; }
  .hiw-thread .hiw-lane-head { max-width: none; }
  .hiw-hero { padding-bottom: 15rem; }
  .hiw-hero__chat { right: auto; left: 50%; bottom: -11rem; width: min(320px, 88%); transform: translateX(-50%); }
  .hiw-hero__stop { right: var(--gutter); bottom: calc(-11rem + 428px + 0.75rem); }
  .hiw-yours { padding-top: calc(var(--section-y) + 11rem); }
  .hiw-yours__steps { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .hiw-step--02 { margin-top: 0; }
  .hiw-step > .hiw-num { position: relative; top: auto; left: auto; right: auto; margin-bottom: 0.9rem; }
  .hiw-step__stage { min-height: 18.5rem; }
  .hiw-hand { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "node you" "node us"; column-gap: 1rem; row-gap: 0.2rem; justify-items: start; }
  .hiw-hand__node { grid-area: node; }
  .hiw-hand__you { grid-area: you; text-align: left; }
  .hiw-hand__us { grid-area: us; }
  .hiw-row__in, .hiw-team__in { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .hiw-row__in > .hiw-num { left: 0; top: 0; }
  .hiw-row__text { min-height: 3.25rem; padding-left: 4.25rem; }
  .hiw-row--flip .hiw-row__text { order: 0; }
  .hiw-row__frame { aspect-ratio: auto; height: 34rem; }
  .hiw-row__frame > .hiw-row__scene, .hiw-row--flip .hiw-row__frame > .hiw-row__scene { left: 50%; right: auto; top: auto; bottom: 1rem; width: min(calc(100% - 2rem), 25rem); transform: translateX(-50%); }
  .hiw-row--leads .hiw-row__frame > .hiw-row__scene { width: min(calc(100% - 3rem), 24rem); transform: translateX(-50%) scale(1.08); transform-origin: 50% 100%; }
  .hiw-row--ours .hiw-row__photo { object-position: 72% 0%; }
  .hiw-row--live .hiw-row__photo { object-position: 22% 0%; }
  .hiw-row--leads .hiw-row__photo { object-position: 60% 30%; }
  .hiw-row--tune .hiw-row__photo { object-position: 70% 0%; }
  .hiw-plan__stage > .hiw-plan__scene { aspect-ratio: auto; height: 40rem; }
  .hiw-team__frame { order: 2; height: 40rem; }
  .hiw-faq .faq-band__in { grid-template-columns: minmax(0, 1fr); }
  .hiw-close { display: flex; flex-direction: column; height: auto; }
  .hiw-close__media { position: relative; inset: auto; height: 24rem; }
  .hiw-close__band { position: relative; padding: 2.25rem var(--gutter) 2.5rem; background-color: var(--c-ink); }
}
@media (max-width: 599px) {
  .hiw-plan__stage > .hiw-plan__scene { height: 44rem; }
}
