/* How it works: its parts' place and size. Only the tokens of system.css. The header centered over a hand filling a
   planner (two slides, the kit's rotate), the route across its lower third; the steps beside the pinned gem on the
   designed ground; the plan on a framed photo (offset); the team's answer over a full-bleed owner (the head centered). */

.stage-stop { top: -50px; right: 0; }

/* ---------- hero ---------- */
.hw-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(2rem, 1rem + 2vw, 3.5rem); text-align: center; }
.hw-hero__stage { position: absolute; inset: 0; z-index: -1; }
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
/* one still grade over both slides: dark in the middle behind the words, the ink at the foot under the route */
.hw-hero__stage::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(52% 44% at 50% 26%, color-mix(in srgb, var(--c-ink) 74%, transparent), transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 40%, transparent) 0%, color-mix(in srgb, var(--c-ink) 30%, transparent) 45%, color-mix(in srgb, var(--c-ink) 62%, transparent) 80%, var(--c-ink) 100%); }
.hw-hero__in { display: grid; justify-items: center; gap: clamp(2rem, 1rem + 3vw, 3.5rem); width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.hw-hero__words { max-width: 48rem; }
.hw-hero__title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; }
.hw-hero__line { max-width: 36rem; margin: var(--space-4) auto 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--c-on-ink-soft); }
.hw-hero__act { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.hw-hero__act .cta-note { justify-content: center; }
.hw-hero__route { position: relative; width: 100%; max-width: 1100px; }
.hw-hero__scene { width: 100%; height: 440px; }
@media (max-width: 699px) {
  .hw-hero__scene { height: 760px; }
  /* room for the stop icon above the route, clear of the line under the main button */
  .hw-hero__route { margin-top: 1.75rem; }
  /* the clips behind the route's lower part (the first poster drawn no wider than its file), the words on the ink */
  .hw-hero__stage { top: auto; bottom: clamp(2rem, 1rem + 2vw, 3.5rem); height: 540px; }
  .hw-hero__stage::after { background: linear-gradient(180deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 45%, transparent) 22%, color-mix(in srgb, var(--c-ink) 45%, transparent) 80%, var(--c-ink) 100%); }
  .hw-hero__act .btn { width: 100%; }
}

/* ---------- steps: the six steps beside the pinned gem, on the designed ground ---------- */
.hw-steps { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-y); }
.hw-steps__ground { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 75% 40%, color-mix(in srgb, var(--glow-b) 22%, transparent), transparent 72%), var(--c-night-1); }
.hw-steps__ground::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(60deg, color-mix(in srgb, var(--c-spark) 8%, transparent) 0 1px, transparent 1px 56px), repeating-linear-gradient(-60deg, color-mix(in srgb, var(--c-spark) 8%, transparent) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(50% 60% at 72% 45%, #000 10%, transparent 80%); -webkit-mask-image: radial-gradient(50% 60% at 72% 45%, #000 10%, transparent 80%); }
.hw-steps__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.hw-list { display: grid; margin: 0; padding: 0; list-style: none; }
.hw-step { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; align-content: center; min-height: 64vh; padding-block: var(--space-5); opacity: .42; transition: opacity var(--dur-med); }
.hw-step.is-active { opacity: 1; }
.hw-step__num { display: grid; justify-items: center; align-content: start; gap: 8px; font: 700 var(--fs-ui-l)/1 var(--font-display); color: var(--c-on-ink-soft); }
.hw-step__gem svg { display: block; width: 56px; height: auto; }
.hw-step__gem polygon { fill: color-mix(in srgb, var(--c-on-ink) 5%, transparent); }
.hw-step__gem polygon.is-you { fill: var(--c-brand-light); }
.hw-step__gem polygon.is-us { fill: var(--c-accent-light); }
.hw-step__gem path { fill: none; stroke: color-mix(in srgb, var(--c-spark) 70%, transparent); stroke-width: 5; stroke-linejoin: round; }
.hw-step__time { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-small)/1 var(--font-ui); color: var(--c-spark-text); }
.hw-step__time::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--c-spark); }
.hw-step--us .hw-step__time { color: var(--c-accent-on-ink); }
.hw-step__title { margin-top: var(--space-2); font-size: var(--fs-h3); }
.hw-step__line { margin-top: var(--space-2); max-width: 30rem; color: var(--c-on-ink-soft); }
.hw-step__own { display: none; }
.hw-stage { position: relative; }
.hw-stage__pin { position: sticky; top: calc(var(--header-h) + 3vh); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 18px; min-height: calc(100vh - var(--header-h) - 6vh); align-content: center; }
/* one stop icon shows at each width: on the gem's corner beside the stage, or over the first step where there is none */
.hw-steps__grid { position: relative; }
.hw-list__stop { display: none; }
.hw-stage__stop { top: 0; right: -52px; }
.hw-stage__gem { position: relative; grid-column: 1; grid-row: 1; justify-self: center; width: min(100%, 300px); }
.hw-gem { display: block; width: 100%; height: auto; overflow: visible; }
.hw-gem__f { fill: color-mix(in srgb, var(--c-on-ink) 3%, transparent); transition: fill var(--dur-med), opacity var(--dur-med); }
.hw-gem__f--you.is-lit { fill: url(#hw-you); opacity: .5; }
.hw-gem__f--us.is-lit { fill: url(#hw-us); opacity: .5; }
.hw-gem__f.is-on { opacity: 1; }
.hw-gem__edge { fill: none; stroke: color-mix(in srgb, var(--c-spark) 70%, transparent); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hw-stop-a { stop-color: var(--c-brand-light); }
.hw-stop-b { stop-color: var(--c-brand); }
.hw-stop-c { stop-color: var(--c-accent); }
.hw-stage__cap { grid-column: 2; grid-row: 1; margin: 0; padding: 8px 14px; border: 1px solid var(--c-night-line); border-radius: 999px; font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink-muted); background: color-mix(in srgb, var(--c-night-2) 70%, transparent); transition: color var(--dur-med), border-color var(--dur-med); }
.hw-stage__cap--you { align-self: start; margin-top: 12%; }
.hw-stage__cap--us { align-self: end; margin-bottom: 26%; }
.hw-stage__cap b { color: var(--c-on-ink-soft); }
.hw-stage[data-side="you"] .hw-stage__cap--you, .hw-stage[data-side="us"] .hw-stage__cap--us { color: var(--c-on-ink); border-color: color-mix(in srgb, var(--c-brand-light) 50%, transparent); }
.hw-stage[data-side="you"] .hw-stage__cap--you b { color: var(--c-brand-on-ink); }
.hw-stage[data-side="us"] .hw-stage__cap--us b { color: var(--c-accent-on-ink); }
.hw-stage__scenes { position: relative; grid-column: 1 / -1; grid-row: 2; justify-self: center; display: grid; justify-items: center; width: min(100% - 60px, 520px); margin-top: -28px; }
.hw-stage__scene { grid-area: 1 / 1; width: min(100%, 440px); opacity: 0; visibility: hidden; transition: opacity var(--dur-med), visibility 0s var(--dur-med); }
.hw-stage__scene.is-on { opacity: 1; visibility: visible; transition: opacity var(--dur-med); }
.hw-stage__scene--leadbars { width: min(100%, 520px); }
.hw-stage__inner { width: 100%; min-height: 300px; }
.hw-steps__act { margin-top: var(--space-5); }
/* the phone and the tablet: no stage; each step its words, then its own scene, its small gem beside its number */
@media (max-width: 999px) {
  .hw-steps__grid { grid-template-columns: 1fr; }
  .hw-stage { display: none; }
  .hw-list__stop { display: grid; top: 56px; right: 0; }
  .hw-step:first-child .hw-step__text { padding-right: 48px; }
  .hw-step { min-height: 0; opacity: 1; padding-block: var(--space-4); }
  .hw-step__own { display: block; grid-column: 1 / -1; margin-top: var(--space-4); }
  .hw-step__scene { width: min(100%, 460px); min-height: 280px; margin-inline: auto; }
}
@media (max-width: 479px) {
  .hw-step { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  .hw-step__gem svg { width: 44px; }
}

/* ---------- inside: the carpenter with his plan, the plan built on the calm wall on the left ---------- */
.hw-inside { padding-block: var(--section-y); }
.hw-inside__frame { position: relative; isolation: isolate; aspect-ratio: 16 / 8.6; min-height: 680px; border: 1px solid var(--c-night-line); border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-2); }
.hw-inside__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hw-inside__frame::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-0) 55%, transparent) 0%, transparent 55%); }
.hw-inside__stage { position: absolute; left: clamp(16px, 2.6vw, 36px); top: 50%; transform: translateY(-50%); width: min(620px, 52%); }
.hw-inside__scene { width: 100%; height: 600px; }
/* narrower: a tall frame, his face in its upper part, the plan standing on its lower part */
@media (max-width: 1099px) {
  .hw-inside__frame { aspect-ratio: auto; min-height: 0; height: 960px; }
  .hw-inside__img { object-position: 85% 30%; }
  .hw-inside__frame::before { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--c-night-0) 70%, transparent) 80%); }
  .hw-inside__stage { top: auto; left: 16px; right: 16px; bottom: 16px; transform: none; width: auto; max-width: 720px; margin-inline: auto; }
  .hw-inside__scene { height: 560px; }
}
@media (max-width: 760px) {
  .hw-inside__frame { height: 1200px; }
  .hw-inside__img { object-position: 72% 30%; }
}
@media (max-width: 599px) { .hw-inside__scene { height: 700px; } }

/* ---------- team: the head centered, then the owner at her pickup, the dashboard on the truck bed's calm side ---------- */
.hw-team { padding-top: var(--section-y); }
.hw-team__head { margin-inline: auto; text-align: center; }
.hw-team__head .sec__line { margin-inline: auto; }
.hw-team__box { position: relative; isolation: isolate; min-height: 660px; }
.hw-team__media { position: absolute; inset: 0; z-index: -2; }
.hw-team__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.hw-team__box::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 78%, transparent) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 40%, transparent 60%), linear-gradient(180deg, var(--c-ink) 0%, transparent 16%, transparent 84%, var(--c-ink) 100%); }
.hw-team__in { display: flex; align-items: center; min-height: 660px; width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.hw-team__stage { position: relative; width: min(460px, 44%); }
.dash { display: grid; gap: 12px; padding: 18px; border: 1px solid color-mix(in srgb, var(--c-on-ink) 16%, transparent); border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-night-1) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-l); }
.dash [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.dash__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-night-line); }
.dash__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-main); flex: none; }
.dash__mark svg { width: 22px; height: 22px; fill: none; stroke: var(--c-on-brand); stroke-width: 1.8; stroke-linejoin: round; }
.dash__who { display: grid; gap: 2px; margin-right: auto; font: 700 var(--fs-ui)/1.2 var(--font-ui); }
.dash__who small { font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--c-on-ink-muted); }
.dash__human { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 700 var(--fs-small)/1 var(--font-ui); color: var(--c-on-brand); background: var(--grad-main); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow-a) 22%, transparent); white-space: nowrap; }
.dash__human .ico { width: 16px; height: 16px; }
.dash__msg { display: grid; gap: 4px; max-width: 86%; padding: 12px 14px; border-radius: 16px; font: 500 var(--fs-ui)/1.45 var(--font-ui); }
.dash__msg small { font: 700 13px/1 var(--font-ui); color: var(--c-on-ink-muted); }
.dash__msg--you { justify-self: end; border-bottom-right-radius: 4px; color: var(--c-on-brand); background: color-mix(in srgb, var(--c-brand) 78%, var(--c-accent)); }
.dash__msg--you small { color: color-mix(in srgb, var(--c-on-brand) 75%, transparent); }
.dash__msg--team { justify-self: start; border-bottom-left-radius: 4px; border: 1px solid var(--c-night-line); background: var(--c-night-2); }
.dash__note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--c-brand-light) 36%, transparent); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-night-2) 90%, transparent); font: 500 var(--fs-small)/1.35 var(--font-ui); color: var(--c-on-ink-soft); }
.dash__note b { display: block; font: 700 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-on-ink); }
.dash__dot { width: 10px; height: 10px; transform: rotate(45deg); background: var(--c-spark); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-spark) 22%, transparent); flex: none; }
/* narrower: a tall box, her face in its upper part, the dashboard standing on its lower part */
@media (max-width: 1099px) {
  .hw-team__box { min-height: 0; height: 860px; margin-top: var(--space-4); }
  .hw-team__img { object-position: 95% 30%; }
  .hw-team__box::before { background: linear-gradient(180deg, var(--c-ink) 0%, transparent 12%, transparent 44%, color-mix(in srgb, var(--c-ink) 60%, transparent) 72%, var(--c-ink) 100%); }
  .hw-team__in { position: absolute; left: 0; right: 0; bottom: 16px; min-height: 0; justify-content: center; }
  .hw-team__stage { width: min(100%, 480px); }
}
@media (max-width: 760px) {
  .hw-team__img { object-position: 77% 30%; }
}

/* ---------- the page's rhythm ---------- */
.hw-team + .faq, .faq { padding-block: var(--section-y); }
