@import url("../arsenal/thread.css");
/* How it works: places and sizes its parts, with system.css's tokens. The thread runs down a lane (--lane) at the left
   of the parts after the header: no text stands in it, and every part's node or number sits on it. */
.page-hiw section[id] { scroll-margin-top: 80px; }
.hiw-thread { --lane: 4rem; --thread-ink: var(--c-brand-on-ink); --thread-track-ink: rgba(255, 255, 255, 0.16); --thread-bg: var(--c-ink); --thread-w: 2px; }
/* the thread's parts take no position (their grounds stay under the line, their photos and cards over it) */
.hiw-thread > .section { position: static; }
.lane { position: relative; padding-left: calc(var(--gutter) + var(--lane)); }

/* a node on the lane: the line plugs into it and it lights */
.lane-node { position: absolute; z-index: 2; left: calc(var(--lane) / -2); top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-rule-strong); color: var(--c-text-meta); transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.lane-node svg { fill: currentColor; }
.lane-node[data-lit] { background: var(--c-brand); color: var(--c-on-brand); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.lane-node::after, .hiw-step > .hiw-num::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 calc(var(--lit-after, 1) * 14px) rgba(0, 207, 221, calc(0.45 - var(--lit-after, 1) * 0.45)); }
.hiw-num { position: relative; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-rule-strong); font: 700 var(--fs-mono)/1 var(--font-mono); color: var(--c-text-soft); transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
/* lit: the deeper violet, so its small white digits keep AA */
.hiw-num[data-lit] { background: var(--c-brand-text); color: var(--c-on-brand); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.hiw-step__scene--leads { --c-brand: var(--c-brand-text); }
/* a photo the line passes comes to full color */
.hiw-step__frame > img, .hiw-inside__frame > img, .hiw-team__frame > img { filter: saturate(calc(0.62 + var(--lit, 1) * 0.38)); }

/* ===== hero: centered, the thread starting under the button, the path landing over the owner at her desk ===== */
.hiw-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(4.5rem, 8vw, 7rem); }
.hiw-hero__words { text-align: center; }
.hiw-hero__title { max-width: 17em; margin: 0 auto; font-size: var(--fs-h1); font-weight: var(--fw-display); line-height: 1.04; letter-spacing: -0.03em; color: var(--c-text); }
.hiw-hero__line { max-width: 34rem; margin: 1rem auto 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--c-text-soft); }
.hiw-hero__words .cta-row { margin-top: 1.75rem; padding-bottom: 0.5rem; }
.hiw-hero__frame { margin-top: clamp(2.25rem, 4vw, 3.25rem); aspect-ratio: 16 / 6.4; }
.hiw-hero__frame > img { object-position: 62% 16%; }
.hiw-hero__frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13, 14, 21, 0.5) 0%, rgba(13, 14, 21, 0.2) 40%, rgba(13, 14, 21, 0) 60%); }
.hiw-hero__path { position: absolute; inset: 0; z-index: 2; }
.hiw-hero__stamp { position: absolute; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
/* the path rises from the lower left, as the live line does */
/* the loop's soft blink (how-it-works.js): every readout dims and blurs as one while they reset in place */
.hiw-hero__path [data-kit-at] { transition: filter 0.3s ease; }
.hiw-hero__path[data-blink-out] [data-kit-at] { filter: opacity(0.45) blur(3px); transform: none; }
.hiw-hero__stamp--1 { left: 3.5%; bottom: 8%; }
.hiw-hero__stamp--2 { left: 10%; bottom: 37%; }
.hiw-hero__stamp--3 { left: 16.5%; bottom: 66%; }
.hiw-hero__stop { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 6; }

/* ===== yours: three scenes on the designed ground, under one bracket ===== */
.bracket { position: relative; display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.75rem; }
.bracket__label { color: var(--c-accent); white-space: nowrap; }
.bracket__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-brand-on-ink), var(--c-rule)); }
.hiw-yours__board { position: relative; }
/* on the steps' title row, at its right, just above the scenes */
.hiw-yours__stop { position: absolute; right: 0; top: 3rem; }
.hiw-yours__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.hiw-yours__step { display: flex; flex-direction: column; align-items: flex-start; }
.hiw-yours__title { margin: 0.75rem 0 0.2rem; font: 800 var(--fs-h3)/1.25 var(--font-display); color: var(--c-text); }
.hiw-yours__text { margin: 0 0 1rem; font-size: var(--fs-small); color: var(--c-text-soft); }
.hiw-yours__scene.scene { align-self: stretch; height: 460px; }

/* ===== ours: three framed photos stepping down, sides alternating, each number on the lane ===== */
.hiw-ours__board { position: relative; }
/* in the first photo's lower right, beside its scene */
.hiw-ours__stop { position: absolute; right: 0.9rem; bottom: 1.25rem; }
.hiw-ours__steps { display: grid; gap: clamp(3rem, 6vw, 5rem); margin: 0; padding: 0; list-style: none; }
.hiw-step { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hiw-step--right { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
.hiw-step--right .hiw-step__frame { order: 2; }
.hiw-step > .hiw-num { position: absolute; z-index: 2; left: calc(var(--lane) / -2); top: 1.25rem; transform: translateX(-50%); }
.hiw-step__frame { aspect-ratio: 4 / 3; }
.hiw-step__scene.scene { position: absolute; z-index: 2; left: 1.25rem; bottom: 1.25rem; width: min(390px, 58%); height: 310px; }
.hiw-step__frame--hiw-roof > img { object-position: 72% 30%; }
.hiw-step__frame--hiw-pool > img { object-position: 78% 40%; }
/* the showing mirrored: the agent and the couple on the left, the curtains on the right under its scene */
.hiw-step__frame--hiw-realty > img { transform: scaleX(-1); object-position: 0% 40%; }
.hiw-step__frame--hiw-realty .hiw-step__scene.scene { left: auto; right: 1.25rem; width: min(300px, 46%); height: 350px; }
.hiw-step__title { margin: 0; font: 800 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--c-text); }
.hiw-step__text p { margin: 0.7rem 0 1rem; color: var(--c-text-soft); }
.hiw-step__tag { color: var(--c-accent); }

/* ===== inside: the plan building itself over the owner at his laptop ===== */
.hiw-lane-head { position: relative; }
.hiw-lane-head > .lane-node { top: 1.15rem; }
.hiw-inside__frame { height: clamp(560px, 46vw, 620px); }
.hiw-inside__frame > img { object-position: 70% 50%; }
.hiw-inside__frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13, 14, 21, 0.6) 0%, rgba(13, 14, 21, 0.35) 50%, rgba(13, 14, 21, 0) 72%); }
.hiw-inside__scene.scene { position: absolute; z-index: 2; left: 1.75rem; top: 1.75rem; bottom: 1.75rem; width: min(700px, 63%); }
.hiw-inside__stop { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 6; }

/* ===== team: the words split above, the plumber framed (mirrored, so he stands left) and his board on the right ===== */
.hiw-team__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hiw-team__top .head { margin-bottom: 0; }
.hiw-team__chip { justify-self: end; display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.6rem 0.95rem; border-radius: 999px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-rule-strong); font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-text); }
.hiw-team__frame { height: clamp(540px, 46vw, 600px); }
.hiw-team__frame > img { transform: scaleX(-1); object-position: 28% 30%; }
.hiw-team__frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(270deg, rgba(13, 14, 21, 0.55) 0%, rgba(13, 14, 21, 0.3) 45%, rgba(13, 14, 21, 0) 65%); }
.hiw-team__scene.scene { position: absolute; z-index: 2; right: 1.5rem; top: 1.5rem; bottom: 1.5rem; width: min(660px, 60%); }
.hiw-team__stop { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 6; }

/* ===== faq and close ===== */
.hiw-close { padding-bottom: 0; }
.hiw-close__words { text-align: center; }
.hiw-close__title { margin: 0; font-size: var(--fs-display); font-weight: var(--fw-display); line-height: 1; letter-spacing: -0.035em; color: var(--c-text); }
.hiw-close__line { max-width: 32rem; margin: 1rem auto 0; font-size: 1.125rem; color: var(--c-text-soft); }
.hiw-close__band { position: relative; overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); height: clamp(380px, 38vw, 560px); }
.hiw-close__band > .hiw-close__bg { position: absolute; inset: -1px; display: block; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 62%; }
.hiw-close__band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--c-ink) 0%, rgba(13, 14, 21, 0) 22%); }

@media (max-width: 1100px) {
  .hiw-step, .hiw-step--right { grid-template-columns: 1fr; }
  .hiw-step--right .hiw-step__frame { order: 0; }
  .hiw-team__top { grid-template-columns: 1fr; }
  .hiw-team__chip { justify-self: start; }
}
@media (max-width: 900px) {
  .hiw-yours__steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .hiw-yours__scene--goal.scene { height: 300px; }
  .hiw-yours__scene--scan.scene { height: 450px; }
  .hiw-yours__scene--leadbars.scene { height: 390px; }
  /* the plan and the board: the photo's room above, the scene over its lower part (more than half on the photo) */
  .hiw-inside__frame, .hiw-team__frame { container-type: inline-size; height: auto; padding: min(var(--ph-top), 380px) 0.6rem 0.6rem; }
  .hiw-inside__frame > img, .hiw-team__frame > img { top: -1px; bottom: auto; height: calc(min(var(--ph-top-cq), 380px) + var(--scene-h) * 0.55); }
  .hiw-inside__frame::before, .hiw-team__frame::before { inset: 0 0 auto; height: calc(min(var(--ph-top-cq), 380px) + var(--scene-h) * 0.55 + 2px); background: linear-gradient(180deg, rgba(13, 14, 21, 0) 40%, rgba(13, 14, 21, 0.55) 80%, var(--c-panel) 100%); }
  .hiw-inside__scene.scene, .hiw-team__scene.scene { position: relative; inset: auto; width: auto; height: var(--scene-h); }
  .hiw-inside__frame { --ph-top: 46%; --ph-top-cq: 46cqw; --scene-h: 700px; }
  .hiw-inside__frame > img { object-position: 82% 50%; }
  .hiw-team__frame { --ph-top: 70%; --ph-top-cq: 70cqw; --scene-h: 640px; }
  /* object-position picks the crop before the mirror: 80% keeps him in it */
  .hiw-team__frame > img { object-position: 80% 30%; }
  /* the stop icons just above their scenes, at the photo's right */
  .hiw-team__stop, .hiw-inside__stop { left: auto; right: 0.9rem; top: calc(min(var(--ph-top-cq), 380px) - 3.25rem); }
}
@media (max-width: 760px) {
  /* no lane on the phone: the line is hidden (data-narrow="hide"), the numbers stand with their steps */
  .hiw-thread { --lane: 0rem; }
  .lane-node { display: none; }
  .hiw-step > .hiw-num { position: relative; left: auto; top: auto; transform: none; justify-self: start; }
  .hiw-hero__frame { aspect-ratio: 343 / 600; }
  .hiw-hero__frame > img { object-position: 57% 0%; }
  .hiw-hero__frame::before { background: linear-gradient(180deg, rgba(13, 14, 21, 0) 40%, rgba(13, 14, 21, 0.45) 100%); }
  .hiw-hero__stamp { left: 0.75rem; right: 0.75rem; }
  .hiw-hero__stamp--1 { left: 0.75rem; bottom: 0.75rem; }
  .hiw-hero__stamp--2 { left: 0.75rem; bottom: calc(0.75rem + 5.6rem); }
  .hiw-hero__stamp--3 { left: 0.75rem; bottom: calc(0.75rem + 11.2rem); }
  .hiw-hero__stamp .live-card { max-width: none; width: 100%; }
  /* each step: the photo's room above, its scene over the lower part */
  .hiw-step__frame { container-type: inline-size; aspect-ratio: auto; padding: 52% 0.6rem 0.6rem; }
  .hiw-step__frame > img { top: -1px; bottom: auto; height: calc(52cqw + 310px * 0.6); }
  .hiw-step__frame::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 0; height: calc(52cqw + 310px * 0.6 + 2px); pointer-events: none; background: linear-gradient(180deg, rgba(13, 14, 21, 0) 40%, rgba(13, 14, 21, 0.5) 80%, var(--c-panel) 100%); }
  .hiw-step__scene.scene, .hiw-step__frame--hiw-realty .hiw-step__scene.scene { position: relative; left: auto; right: auto; bottom: auto; width: auto; }
  .hiw-step__frame--hiw-realty > img { object-position: 62% 40%; }
  .hiw-ours__stop { bottom: auto; top: calc(52cqw - 3.25rem); }
  .hiw-close__band { height: 300px; }
}
