@import url("../arsenal/thread.css");
/* How it works: one line of the logo's light runs through every part (the arsenal's thread, restyled here: the
   spectral line, the sparkle head, cut-corner numbers). Each part's ground and footage lie under the line, its content
   over it. Tokens of system.css only. */

/* ---------- the thread ---------- */
.thread { --thread-ink: var(--c-brand); --thread-bg: transparent; --thread-w: 2.5px; --thread-radius: 56px; --thread-tail: 120px; }
.thread > section { isolation: auto; }                 /* no part isolates itself, so the line shows on every ground */
.thread > .thread__svg { z-index: 2; }
.thread > .band > .shards { z-index: 0; }
.thread > section > .wrap { position: relative; z-index: 3; }
.thread > .close > .close__media { z-index: 0; }
.thread > .close::before { z-index: 1; }
.thread > .close::after { z-index: 3; }
.thread .thread__ink path, .thread .thread__tail path { stroke: url(#hiw-spectral); }
.thread .thread__glyph { fill: url(#hiw-spectral); }
.thread .thread__head { filter: drop-shadow(0 0 6px rgba(2, 246, 253, .75)); }
.hiw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 1000px) { .thread { --thread-narrow: 1; } }

/* a step's number: white with a hairline, the cut corner; lit, it fills with the brand and gives one ring of light */
.hiw-num { position: relative; isolation: isolate; display: grid; place-items: center; width: 64px; height: 64px; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.01em; color: color-mix(in srgb, #fff calc(var(--lit, 1) * 100%), var(--c-ink)); }
.hiw-num::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-brand) calc(var(--lit, 1) * 100%), var(--c-paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-brand) calc(var(--lit, 1) * 100%), var(--c-line)); -webkit-mask: linear-gradient(225deg, transparent 10px, #000 10.6px); mask: linear-gradient(225deg, transparent 10px, #000 10.6px); }
.hiw-num::after { content: ""; position: absolute; inset: -3px; z-index: -2; border-radius: 12px; border: 2px solid var(--c-cyan); opacity: calc(var(--lit, 1) * (1 - var(--lit-after, 1))); transform: scale(calc(1 + var(--lit-after, 1) * .75)); }

/* the node where the line turns toward the close */
.hiw-node { position: absolute; left: calc(var(--gutter) * -.5 - 14px); top: 4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-brand) calc(var(--lit, 1) * 100%), var(--c-line)); }
.hiw-node .spark { width: 14px; height: 14px; }
.hiw-node .spark path { fill: color-mix(in srgb, var(--c-brand) calc(var(--lit, 1) * 100%), var(--c-line)); }
@media (max-width: 1000px) { .hiw-node { display: none; } }

/* ---------- hero: full-bleed footage, the words on the right, the bookings stacking up on the left ---------- */
.hiw-hero { position: relative; overflow: clip; display: grid; align-items: center; min-height: clamp(660px, 100svh, 900px); margin-top: calc(-1 * var(--bar-h)); padding: calc(var(--bar-h) + clamp(32px, 6vh, 72px)) 0 clamp(64px, 10vh, 110px); background: var(--c-deep); color: var(--c-on-ink); }
.hiw-hero__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hiw-hero__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(270deg, rgba(1, 20, 55, .94) 0%, rgba(1, 20, 55, .86) 28%, rgba(1, 20, 55, .44) 48%, rgba(1, 20, 55, .12) 62%, rgba(1, 20, 55, .28) 100%), linear-gradient(180deg, rgba(1, 20, 55, .55) 0%, rgba(1, 20, 55, 0) 24%); }
.hiw-hero__slide video, .hiw-hero__slide img.kit-first { object-position: 42% 50%; }
.hiw-hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hiw-hero__copy { grid-column: 2; grid-row: 1; justify-self: end; display: grid; justify-items: start; max-width: 540px; }
.hiw-hero h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.025em; color: #fff; }
.hiw-hero__line { margin-top: clamp(16px, 2vw, 22px); max-width: 40ch; color: var(--c-on-ink-soft); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.hiw-hero__cta { margin-top: clamp(26px, 3vw, 36px); display: grid; justify-items: start; width: fit-content; }
.hiw-hero__cta .cta-note { color: var(--c-on-ink-soft); }
.scene.hiw-hero__scene { grid-column: 1; grid-row: 1; width: min(100%, 480px); height: 450px; }
.hiw-hero__stop { right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) {
  .hiw-hero { align-items: start; min-height: 0; padding: calc(var(--bar-h) + 36px) 0 24px; }
  .hiw-hero__stage { inset: auto 0 0 0; height: 430px; }
  .hiw-hero__stage::after { background: linear-gradient(180deg, rgba(1, 20, 55, 1) 0%, rgba(1, 20, 55, .2) 24%, rgba(1, 20, 55, 0) 50%, rgba(1, 20, 55, .3) 100%); }
  .hiw-hero__slide video, .hiw-hero__slide img.kit-first { object-position: 50% 50%; }
  .hiw-hero__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hiw-hero__copy { grid-column: 1; justify-self: start; }
  .scene.hiw-hero__scene { grid-column: 1; grid-row: 2; width: 100%; height: 330px; }
  .hiw-hero__stop { top: auto; bottom: 16px; }
}

/* ---------- the two timelines: the line down the middle, each step's number on it ---------- */
.hiw-head { max-width: min(560px, 44%); }
.tl { list-style: none; margin: clamp(44px, 5vw, 72px) 0 0; padding: 0; display: grid; gap: clamp(64px, 7vw, 104px); }
.tl__row { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; }
.tl__copy { grid-column: 1; grid-row: 1; justify-self: end; display: grid; gap: 10px; max-width: 420px; }
.tl__copy h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.tl__copy p { color: var(--c-ink-soft); font-size: 1.0625rem; line-height: 1.55; }
.tl__row .hiw-num { grid-column: 2; grid-row: 1; justify-self: center; }
.tl__pic { grid-column: 3; grid-row: 1; position: relative; }
.tl__row--b .tl__copy { grid-column: 3; justify-self: start; }
.tl__row--b .tl__pic { grid-column: 1; }
/* yours: the base scenes on the pale blue, each lit by a spectral line drawn as the thread passes */
.hiw-yours .tl__pic { display: grid; justify-items: center; padding-top: 16px; }
.hiw-yours .tl__pic::before { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 3px; border-radius: 2px; background: var(--g-spectral); transform: scaleX(var(--lit, 1)); transform-origin: 0 50%; }
/* each base scene is its own panel, as high as its content: never a fixed box with room left empty */
.scene.tl__scene { position: relative; width: min(100%, 440px); height: auto; }
.hiw-yours .tl__pic:has(> .tl__scene--goal) { min-height: 290px; align-content: end; }
.scene.tl__scene--bars { width: min(100%, 560px); }
.tl__stop { right: 0; bottom: -54px; }
.tl__foot { margin-top: clamp(40px, 4vw, 56px); display: flex; justify-content: center; }
.tl__chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); font: 600 .9375rem/1.2 var(--font-ui); color: var(--c-ink); }
.tl__chip .spark { width: 14px; height: 14px; }
.tl__chip .spark path { fill: var(--c-accent); }
/* ours: framed photos, each step's scene in glass on the side clear of faces */
.tl__frame { height: clamp(430px, 36vw, 500px); filter: saturate(calc(.45 + .55 * var(--lit, 1))); }
.tl__frame--launch .frame__media > img { object-position: 0% 50%; }
.tl__frame--leads .frame__media > img { object-position: 70% 50%; }
.tl__frame--tune { height: clamp(460px, 38vw, 530px); }
.tl__frame--tune .frame__media > img { object-position: 50% 50%; }
.scene.tl__glass { position: absolute; z-index: 2; }
.scene.tl__glass--launch { right: 16px; top: 16px; width: min(320px, 56%); height: auto; }
.scene.tl__glass--leads { left: 16px; top: 64px; width: min(360px, 62%); height: 290px; }
.scene.tl__glass--tune { right: 16px; bottom: 16px; width: min(330px, 58%); height: auto; }
.tl__frame-stop { right: 16px; bottom: 16px; }
@media (max-width: 1000px) {
  .hiw-head { max-width: 640px; }
  .tl { gap: 64px; }
  .tl__row, .tl__row--b { grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 24px; align-items: start; }
  .tl__row .hiw-num { grid-column: 1; grid-row: 1; }
  .tl__copy, .tl__row--b .tl__copy { grid-column: 2; grid-row: 1; justify-self: start; max-width: 560px; align-self: center; }
  .tl__pic, .tl__row--b .tl__pic { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 860px) {
  .tl__frame { height: clamp(520px, 128vw, 600px); }
  .tl__frame--launch .frame__media > img { object-position: 22% 50%; }
  .tl__frame--leads .frame__media > img { object-position: 84% 50%; }
  .tl__frame--tune .frame__media > img { object-position: 66% 50%; }
  .scene.tl__glass--launch, .scene.tl__glass--leads, .scene.tl__glass--tune { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; height: auto; }
  .scene.tl__glass--leads { height: 290px; }
  .tl__frame-stop { top: 14px; bottom: auto; }
}

/* ---------- inside: the free plan building itself, on the lavender ---------- */
.hiw-inside__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hiw-inside__stage { position: relative; padding-top: 16px; }
.hiw-inside__stage::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 3px; border-radius: 2px; background: var(--g-spectral); transform: scaleX(var(--lit, 1)); transform-origin: 0 50%; }
.scene.hiw-inside__scene { position: relative; height: 560px; }
.hiw-inside__stop { right: 0; bottom: -54px; }
@media (max-width: 1000px) {
  .hiw-inside__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .scene.hiw-inside__scene { height: 700px; }
  .hiw-inside__stop { top: 30px; right: 10px; bottom: auto; }
}

/* ---------- team: the owner at his van, his dashboard in glass over the van's door ---------- */
.hiw-team__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hiw-team__stage { position: relative; }
.hiw-team__frame { height: clamp(440px, 38vw, 520px); filter: saturate(calc(.45 + .55 * var(--lit, 1))); }
.hiw-team__frame .frame__media > img { object-position: 100% 50%; }
.hiw-team__stop { right: 14px; bottom: 14px; }
.dash { position: absolute; z-index: 2; left: 18px; top: 50%; width: min(300px, 50%); margin-top: -150px; display: grid; gap: 0; padding: 16px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--c-ink); border-radius: var(--radius-l); box-shadow: 0 26px 60px -24px rgba(1, 20, 55, .6); -webkit-mask: linear-gradient(225deg, transparent var(--cut), #000 calc(var(--cut) + .6px)); mask: linear-gradient(225deg, transparent var(--cut), #000 calc(var(--cut) + .6px)); }
.dash::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--g-spectral); }
.dash [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
/* the card grows as each item lands (the first holds), so it never stands as an empty pane of glass */
.dash [data-kit-at] + [data-kit-at] { max-height: calc(var(--kit-in, 1) * 150px); margin-top: calc(var(--kit-in, 1) * 10px); overflow: hidden; }
.dash b { display: block; font: 600 .9375rem/1.3 var(--font-display); color: var(--c-ink); }
.dash small { display: block; margin-top: 2px; font: 500 .8125rem/1.35 var(--font-ui); color: var(--c-ink-soft); }
.dash__head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.dash__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--c-deep); }
.dash__logo .spark { width: 16px; height: 16px; }
.dash__logo .spark path { fill: var(--c-cyan); }
.dash__row { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line); }
.dash__dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 18%, transparent); }
.dash__btn { justify-self: start; padding: 9px 16px; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font: 600 .875rem/1.2 var(--font-ui); scale: calc(.94 + .06 * var(--kit-in, 1)); }
.dash__msg { display: grid; gap: 3px; padding: 12px 14px; border-radius: 4px var(--radius-l) var(--radius-l) var(--radius-l); background: var(--c-deep); }
.dash__msg b { color: var(--c-cyan); font-size: .8125rem; }
.dash__msg span { color: var(--c-on-ink); font: 500 .9375rem/1.45 var(--font-ui); }
@media (max-width: 1000px) {
  .hiw-team__grid { grid-template-columns: minmax(0, 1fr); }
  .hiw-team__head { order: -1; }
}
@media (max-width: 860px) {
  .hiw-team__frame { height: clamp(560px, 150vw, 640px); }
  .hiw-team__frame .frame__media > img { object-position: 76% 50%; }
  .dash { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; margin-top: 0; }
  .hiw-team__stop { top: 14px; bottom: auto; }
}

/* ---------- close: the handshake; the line ends in its button ---------- */
.hiw-close .close__media > video { object-position: 50% 30%; }
/* the line wraps left of the woman's white collar, so it reads at every moment of the clip */
@media (min-width: 761px) { .hiw-close .close__copy p { max-width: 20ch; } }
@media (max-width: 760px) { .hiw-close .close__media > video { object-position: 52% 18%; } }
