@import url("../arsenal/thread.css");
/* How it works: the page's own layout (plan.md, How it works). The line is the arsenal's `thread` as a frame, restyled
   here into the site's growth line: the violet-to-orchid gradient of the logo's divider is the drawn line's ink, each
   step's number a node of it, a branch growing at each. Parts inside the thread take no z-index and no isolation, and
   their grounds lie under the line at z-index -1. */
.hiw { --thread-ink: var(--c-brand-light); --thread-bg: var(--c-ink); --thread-w: 3px; --thread-radius: 56px; --thread-tail: 120px; --thread-track-ink: rgb(255 255 255 / 0.22); }
.hiw .thread__head { filter: drop-shadow(0 0 10px var(--c-glow)); }
.hiw > section { isolation: auto; }

/* a step's number: a node of the growth line, filling as the line reaches it */
.hnum { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; box-sizing: border-box; background: var(--c-ink); border: 2px solid var(--c-brand-light); color: var(--c-on-ink); font: 650 1.0625rem/1 var(--font-display); letter-spacing: -0.01em; box-shadow: 0 0 0 calc(var(--lit, 1) * 6px) rgb(88 0 255 / 0.22), 0 0 calc(var(--lit, 1) * 26px) var(--c-glow); }
.hnum[data-lit] { background: var(--c-brand); }
.twig { position: absolute; left: 44px; bottom: 34px; width: 110px; height: 60px; overflow: visible; pointer-events: none; }
.twig path { fill: none; stroke: var(--c-brand-light); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - 100 * var(--lit-after, 1)); }
.twig circle { fill: var(--c-accent); opacity: var(--lit-after, 1); }
@media (prefers-reduced-motion: reduce) { .twig path { stroke-dashoffset: 0; } .twig circle { opacity: 1; } }

/* the header: the phone and its notifications left, the words right */
.hhero { box-sizing: border-box; display: flex; align-items: center; min-height: min(780px, calc(100svh - 73px)); padding-block: clamp(48px, 6vw, 88px); overflow: hidden; }
.hhero__media { position: absolute; inset: 0; z-index: -1; background: var(--c-ink); }
/* the clip turned round so the phone lies left, and drawn smaller than the page, low and left, so the notifications rise over the phone; its top and its outer edge melt into the ink */
.hhero__media video { inset: auto auto -72px max(0px, calc((100vw - var(--max-w)) / 2 - 60px)); width: min(82%, 1240px); max-width: none; height: auto; aspect-ratio: 16 / 9; transform: scaleX(-1); -webkit-mask-image: linear-gradient(to left, transparent, #000 14%), linear-gradient(to right, transparent, #000 12%), linear-gradient(to bottom, transparent, #000 16%); mask-image: linear-gradient(to left, transparent, #000 14%), linear-gradient(to right, transparent, #000 12%), linear-gradient(to bottom, transparent, #000 16%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hhero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgb(11 6 19 / 0.92) 0%, rgb(11 6 19 / 0.7) 34%, rgb(11 6 19 / 0.06) 60%, transparent 100%), linear-gradient(180deg, transparent 84%, var(--c-ink) 100%); }
.hhero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hhero__pic { position: relative; align-self: start; width: min(500px, 100%); margin-top: -28px; }
.hhero__pic .stop { top: 8px; right: 0; }
.hhero__scene { height: 310px; }
.hhero__words > p { margin-top: 20px; max-width: 500px; color: var(--c-on-ink-soft); font-size: 1.1875rem; line-height: 1.55; }
.hhero .action { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.hhero .fear { flex-direction: column; gap: 3px; margin-top: 0; }
@media (max-width: 1000px) {
  .hhero { display: block; padding-block: 36px 258px; }
  .hhero__in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hhero .fear { flex-direction: row; gap: 3px 16px; }
  .hhero__words { order: -1; }
  .hhero__pic { align-self: auto; width: min(470px, 100%); margin: 0 auto; }
  .hhero__pic .stop { top: auto; bottom: -86px; }
  .hhero__media video { inset: auto -1px -1px -1px; width: calc(100% + 2px); height: 420px; aspect-ratio: auto; object-position: 100% 50%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%); mask-image: linear-gradient(to bottom, transparent, #000 24%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hhero__media::after { background: linear-gradient(180deg, transparent 84%, var(--c-ink) 100%); }
  .hhero__scene { height: 130px; }
}

/* the owner's three steps: on the designed ground, the line plugging into each number */
.hyours { padding-block: var(--section-y); }
.hyours__ground { position: absolute; inset: 0; z-index: -1; isolation: auto; }
.hsteps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; margin: clamp(36px, 4.5vw, 60px) 0 0; padding: 0; }
.hstep { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hstep .hnum { position: relative; }
.hstep h3 { margin-top: 18px; }
.hstep > p { margin-top: 8px; min-height: 3.1em; color: var(--c-on-ink-soft); font-size: var(--fs-small); line-height: 1.5; }
.hstep__scene { width: 100%; height: 340px; margin-top: 16px; }
.hstep .hstep__scene .lbx { height: 100%; box-sizing: border-box; border: 1px solid var(--c-hair); box-shadow: none; }
.hstep__pic { position: relative; align-self: stretch; margin-top: 16px; }
.hstep__pic .hstep__scene { margin-top: 0; }
.hstep__pic .stop { top: -52px; right: 0; }
/* from step 3 the line runs on to the row's end before it turns down, so it passes behind the picture and never through the words */
.hstep { position: relative; }
.hstep__turn { position: absolute; right: 2px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); opacity: var(--lit, 1); box-shadow: 0 0 12px var(--c-glow); }
@media (max-width: 1000px) {
  .hsteps { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hstep { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .hstep .hnum { grid-row: 1 / span 2; }
  .hstep h3 { grid-column: 2; margin-top: 2px; padding-right: 52px; }
  .hstep > p { grid-column: 2; min-height: 0; }
  .hstep__pic { grid-column: 1 / -1; width: min(420px, 100%); margin-inline: auto; }
  .hstep__scene { grid-column: 1 / -1; width: min(420px, 100%); margin-inline: auto; }
  .hstep__turn { display: none; }
}

/* the agency's three steps: a lane of numbers down the left, a framed picture each, sides alternating */
.hours { padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
.hours__head { padding-left: 84px; }
.hruns { display: grid; gap: clamp(56px, 6vw, 88px); list-style: none; margin: clamp(36px, 4.5vw, 60px) 0 0; padding: 0; }
.hrun { position: relative; display: grid; grid-template-columns: 56px minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 0 28px; align-items: center; }
.hrun--flip { grid-template-columns: 56px minmax(0, 1.28fr) minmax(0, 0.72fr); }
.hrun > .hnum { position: relative; align-self: start; margin-top: 8px; }
.hrun--flip .hrun__words { order: 3; }
.hrun__words h3 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.hrun__words p { margin-top: 12px; color: var(--c-on-ink-soft); font-size: 1.125rem; line-height: 1.55; }
.hrun__pic { position: relative; height: clamp(440px, 36vw, 500px); }
.hrun__pic .frame { position: absolute; inset: 0; }
.hrun__pic .stop { top: 14px; right: 14px; }
.hrun__scene { position: absolute; z-index: 2; left: clamp(14px, 2vw, 26px); top: 50%; translate: 0 -50%; width: 340px; height: 330px; }
.hrun .hrun__scene .ld-av, .hrun .hrun__scene .ld-who small { font-size: 14px; }
.hrun .hrun__scene .ld-top span { font-size: 15px; }
.hrun--flip .hrun__scene { width: 384px; }
.hrun .frame img, .hrun .frame video { object-position: 50% 30%; }
.hrun:first-child .frame img { object-position: 0% 30%; }
@media (max-width: 1100px) {
  .hours__head { padding-left: 0; }
  .hrun, .hrun--flip { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
  .hrun--flip .hrun__words { order: 0; }
  .hrun__pic { grid-column: 1 / -1; }
  .hrun > .hnum { margin-top: 0; }
  .twig { display: none; }
  .hrun__pic { height: auto; }
  .hrun__pic .frame { position: relative; inset: auto; height: 340px; }
  .hrun__scene, .hrun--flip .hrun__scene { position: relative; left: auto; top: auto; translate: none; width: min(400px, 100%); height: 300px; margin: -170px auto 0; }
}

/* what the plan holds: the photo framed, the three cards on the side clear of his face */
.hinside { padding-block: calc(var(--section-y) * 0.6) var(--section-y); }
.hinside .section-head { padding-left: 84px; }
.hinside__pic { position: relative; height: clamp(520px, 44vw, 620px); margin-top: clamp(28px, 3vw, 44px); }
.hinside__pic .frame { position: absolute; inset: 0; }
.hinside__pic .stop { top: 14px; right: 14px; }
.hinside__img { width: 128% !important; left: auto !important; right: -1px; object-position: 100% 34%; }
.hinside__scene { position: absolute; z-index: 2; right: clamp(10px, 2vw, 24px); top: 50%; translate: 0 -50%; width: min(700px, 58%); }
/* the photo is the stage here: the cards stand straight on it */
.hinside .hinside__scene[data-scene] .pc-stage { background: none; border: 0; box-shadow: none; }
.hinside .hinside__scene[data-scene] .pc-stage::before { background: none; }
@media (max-width: 899.98px) {
  .hinside .section-head { padding-left: 0; }
  .hinside__pic { height: auto; }
  .hinside__pic .frame { position: relative; inset: auto; height: 460px; }
  .hinside__img { width: calc(100% + 2px) !important; object-position: 42% 0; }
  .hinside__scene { position: relative; right: auto; top: auto; translate: none; width: 100%; margin-top: -240px; }
}

/* who runs it: their work on a laptop's screen, a person a tap away */
.hteam { padding-block: 0 var(--section-y); }
.hteam__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hteam__words p { margin-top: 14px; color: var(--c-on-ink-soft); font-size: 1.125rem; line-height: 1.55; }
.hteam__frame { height: clamp(420px, 40vw, 540px); }
.hteam__frame .stop { top: 14px; right: 14px; }
.hteam__shot { position: absolute; width: 184%; left: -25%; top: -27%; }
@media (max-width: 899.98px) {
  .hteam__in { grid-template-columns: minmax(0, 1fr); }
  .hteam__frame { height: auto; aspect-ratio: 358 / 300; }
  .hteam__shot { width: 232%; left: -56%; top: -55%; }
}

/* the questions: no ground of their own, a lane for the line in the gap between the head and the list */
.hqa { background: none; border-top: 0; padding-block: 0 var(--section-y); }
.hqa .qa__in { position: relative; }
.hqa__lane { position: absolute; left: calc(40% + 0.1 * clamp(32px, 6vw, 96px)); width: 2px; height: 2px; }
.hqa__lane--top { top: 0; }
.hqa__lane--foot { bottom: 0; }
@media (max-width: 900px) { .hqa__lane { left: calc(var(--gutter) / 2); } }

/* the close: the band under the line; the line ends in the main button, which lights orchid */
.hclose { isolation: auto; }
.hclose .band__video { object-position: 62% 30%; }
.hclose .endband__words { width: min(460px, 100%); }
.hclose .button[data-lit] { box-shadow: 0 0 0 4px var(--c-accent), 0 10px 34px var(--c-glow); }
.hclose .endband__pop { right: max(var(--gutter), 6%); bottom: 16%; }
