@import url("../arsenal/thread.css");
/* The How It Works page's own CSS: the header's words centered over the clip, the steps the thread plugs into (their
   numbers in one lane on the left), the designed ground in navy panels the line passes, the plan and the team. Tokens
   of design\system.css only. */

/* the header: one tall band, the owner pushed to the right of the clip, the words and the picker centered */
.hero--center { grid-template-columns: minmax(0, 1fr); min-height: clamp(720px, calc(100svh - 88px), 900px); }
.hero--center .hero__text { justify-self: center; max-width: 680px; text-align: center; padding-inline: 24px; }
.hero--center .hero__title .grad { display: block; }
.hero--center .hero__line { margin-inline: auto; }
.hero--center .picker { margin-inline: auto; text-align: left; max-width: 520px; }
.hero--center .hero__bg::after { background: radial-gradient(70% 80% at 46% 55%, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 45%, color-mix(in srgb, var(--c-ink) 20%, transparent) 80%, transparent 100%); }
.page-hiw .hero__slide video { object-position: 0% 30%; }
.thread-start { display: block; width: 2px; height: 22px; margin: 18px auto 0; }
.hero__chip { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(24px, 6vw, 64px); z-index: 4; width: min(300px, 26%); }
.hero__chipscene { position: relative; width: 100%; }
@media (max-width: 899px) {
  .hero--center { min-height: 0; }
  .hero--center .hero__text { padding-inline: 20px; }
  .page-hiw .hero__slide video { object-position: 62% 30%; }
  .hero__chip { top: calc(clamp(220px, 60vw, 400px) - 70px); bottom: auto; right: 20px; width: min(290px, calc(100% - 40px)); }
}

.page-hiw .head__title { text-wrap: balance; }

/* the steps: the number in the left lane, the words beside it, the picture or the panel on the right */
.hsteps__head { margin-left: 64px; }
.hsteps__list { display: grid; gap: clamp(36px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.hstep { display: grid; grid-template-columns: 44px minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 3vw, 44px); align-items: start; }
.hstep__num, .hstep__node { grid-column: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--c-brand); background: var(--c-paper);
  font: var(--fw-black) 16px/1 var(--font-ui); color: var(--c-brand-text); box-shadow: 0 0 0 calc(var(--lit-after, 0) * 10px) color-mix(in srgb, var(--c-brand) calc((1 - var(--lit-after, 0)) * 35%), transparent); }
.hstep__num[data-lit] { background: var(--c-brand); color: var(--c-on-brand); }
.hstep__node svg { width: 20px; height: 20px; }
.hstep__node[data-lit] { background: var(--c-brand); color: var(--c-on-brand); }
.hstep__text { padding-top: 4px; }
.hstep__title { font: var(--fw-black) clamp(22px, 2vw, 26px)/1.15 var(--font-display); color: var(--c-ink); }
.hstep__text p { margin-top: 8px; color: var(--c-ink-soft); }
.hstep__meta { font: var(--fw-bold) 14px/1.3 var(--font-ui); color: var(--c-brand-text) !important; }
.hstep--head { grid-template-columns: 44px minmax(0, 1fr); margin-bottom: clamp(28px, 3vw, 40px); }
.hstep--head .hsteps__head { margin-left: 0; }
.hstep--team { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

/* the designed ground, in a panel: navy, the circuit lines, the dial's ring */
.ground-panel { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink) url('../../img/ground.svg') 0 0 / 480px 480px; box-shadow: var(--shadow-m); min-height: 320px; padding: clamp(18px, 2.4vw, 30px); box-sizing: border-box; display: grid; align-items: end; }
.ground-panel::before { content: ''; position: absolute; left: 70%; top: 40%; width: 640px; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; border: 1px solid color-mix(in srgb, var(--c-brand-on-ink) 22%, transparent); box-shadow: inset 0 0 0 40px color-mix(in srgb, var(--c-brand-on-ink) 4%, transparent); pointer-events: none; }
.ground-panel > * { position: relative; }
.ground-panel > .stop { position: absolute; }
.hstep__groundscene--goal { max-width: 420px; justify-self: center; width: 100%; }
.ground-panel--tall { min-height: 600px; }
.hstep__groundscene--phone { position: absolute !important; inset: 20px; }

/* the photos of our steps, each scene in glass on the side with no face */
.hstep__media { aspect-ratio: auto; height: clamp(380px, 32vw, 440px); }
.hstep__media > .stop { top: 14px; bottom: auto; }
.hstep__media > .hstep__scene { inset: auto; display: grid; padding: 18px; box-sizing: border-box; }
.hstep__media--launch { --pos: 50%; }
.hstep__media--launch > .hstep__scene { right: 0; bottom: 0; width: min(420px, 58%); }
.hstep__media--leads { --pos: 60%; }
.hstep__media--leads > .hstep__scene { left: 0; top: 0; bottom: 0; width: min(420px, 58%); align-content: center; }
.hstep__media--tune { --pos: 30%; }
.hstep__media--tune > .hstep__scene { right: 0; bottom: 0; width: min(420px, 56%); }

/* the plan, full width */
.plan-cards { position: relative; margin-left: 64px; }
.plan-cards > .stop { position: absolute; right: 12px; top: 12px; }

@media (max-width: 899px) {
  .hstep, .hstep--team { grid-template-columns: 44px minmax(0, 1fr); }
  .hstep > .hstep__ground, .hstep > .hstep__media { grid-column: 1 / -1; }
  .hsteps__head, .plan-cards { margin-left: 0; }
}
@media (max-width: 759px) {
  .hstep__media { height: 620px; }
  .hstep__media > .hstep__scene { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100% !important; height: 380px; padding: 12px; align-content: end; }
  .hstep__media--launch { --pos-m: 50%; } .hstep__media--leads { --pos-m: 70%; } .hstep__media--tune { --pos-m: 25%; }
  .ground-panel--tall { min-height: 580px; }
}

/* the thread ends under the FAQ's button */
.thread-end { display: block; width: 2px; height: 30px; margin: 22px 0 0 24px; }

/* the close: the owner at the photo's left half, the words on the window's calm right */
.page-hiw .close { --pos: 30%; --pos-m: 40%; --chip-x: 4%; --chip-y: 10%; }
