@import url("../arsenal/thread.css");
/* How it works: places and sizes its parts, with the tokens of system.css and the components of components.css. */

/* ---------- the trail: the climb's dashed trail, in the lavender on indigo and the indigo on the light parts ---------- */
.thread { --thread-ink: var(--c-brand); --thread-bg: var(--c-paper); --thread-inset: 48px; --thread-w: 3px; }
@media (max-width: 760px) { .thread { --thread-narrow: 1; } }

/* ---------- hero: stacked, the words on indigo over a wide band of the general shot ---------- */
.page-hero--stacked { background: var(--c-brand); color: var(--c-on-brand); --btn-bg: var(--c-brand-light); --btn-fg: var(--c-brand-dark); --soft: var(--c-on-dark-soft); }
.page-hero--stacked .page-hero__words { padding-block: clamp(2.6rem, 5vw, 4.4rem) clamp(2rem, 3.4vw, 3rem); }
.page-hero--stacked .page-hero__title { font-size: var(--fs-display); max-width: 16em; }
.page-hero--stacked .page-hero__line { margin: var(--space-3) 0 var(--space-4); font-size: clamp(1.05rem, 0.98rem + 0.32vw, 1.22rem); color: var(--c-on-dark-soft); max-width: 36rem; }
.page-hero--stacked .page-hero__media { position: relative; height: clamp(380px, 38vw, 500px); overflow: hidden; background: var(--c-brand-dark); }
.page-hero__grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(23, 20, 62, 0.1) 0%, rgba(23, 20, 62, 0.15) 46%, rgba(23, 20, 62, 0.62) 78%, rgba(23, 20, 62, 0.72) 100%); }
.page-hero--stacked .page-hero__scene { position: absolute; z-index: 4; right: max(var(--gutter), calc((100vw - var(--max-w)) / 2)); top: 28px; bottom: 28px; width: min(440px, 40vw); }
.page-hero--stacked .page-hero__scene .scene { width: 100%; height: 100%; }
.page-hero__stop { top: 16px; left: 16px; right: auto; z-index: 6; }
/* the clips' edges, as the home hero's (progress.md, 28 Oct): each clip stops under a band of the indigo */
#hero .page-hero__slide video { inset: 3px 0 -1px; width: 100%; height: calc(100% - 2px); max-width: none; }
#hero:has([data-kit-slide][data-prev]) .page-hero__slide[data-kit-on] video { clip-path: inset(0 0 0 min(1px, calc((1 - var(--kit-move, 1)) * 10000px))); }
#hero .page-hero__media::before { content: ''; position: absolute; z-index: 5; left: 0; right: 0; top: -1px; height: 5px; background: var(--c-brand); pointer-events: none; }
@media (max-width: 760px) {
  .page-hero--stacked .page-hero__media { height: 480px; }
  .page-hero--stacked .page-hero__scene { left: 12px; right: 12px; width: auto; top: 90px; bottom: 16px; }
  .page-hero__grade { background: linear-gradient(180deg, rgba(23, 20, 62, 0.05), rgba(23, 20, 62, 0.5)); }
}

/* ---------- the steps: the number on the trail's lane at the left ---------- */
.trail__in { position: relative; z-index: 2; }
.trail .head { padding-left: 88px; }
.trail-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.4rem, 5vw, 4.4rem); }
.trail-step { display: grid; grid-template-columns: 56px minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(20px, 2.6vw, 32px); align-items: center; }
.trail-step--flip { grid-template-columns: 56px minmax(0, 1.28fr) minmax(0, 0.72fr); }
.trail-num { align-self: start; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: 520 1.5rem/1 var(--font-display); background: var(--c-white); color: var(--c-brand-text); box-shadow: 0 0 0 2px var(--c-brand); transition: background 0.2s, color 0.2s; }
.trail-num[data-lit] { background: var(--c-brand); color: var(--c-white); }
.trail-step__words h3 { margin-bottom: 6px; }
.trail-step__words p { color: var(--c-ink-soft); }
.trail-step__time { font: 600 0.9rem/1.3 var(--font-ui); color: var(--c-accent-text) !important; margin-bottom: 6px; }
.trail-step__scene { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.trail-step__scene .scene { width: 100%; }
/* the chat grows as it plays: its box keeps the full height from the start, so nothing beside or under it moves */
.trail-step__scene--goal { max-width: 420px; height: 310px; }
.trail-step__scene--goal .scene { height: 100%; }
.trail-step__scene--bars .scene { min-height: 440px; }
.trail__stop { top: -6px; right: -6px; }
.trail-handover { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 32px); margin-top: clamp(2.4rem, 5vw, 4rem); padding-bottom: clamp(5rem, 12vw, 11rem); font: 520 var(--fs-h3)/1.2 var(--font-display); }
.trail-node { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-brand); color: var(--c-brand-light); }
#yours { padding-bottom: 0; }

/* ---------- the agency's steps: a framed photo, its scene on the side clear of the face ---------- */
.trail-step--photo { grid-template-columns: 56px minmax(0, 0.54fr) minmax(0, 1.46fr); align-items: start; }
.trail-frame { position: relative; }
.trail-frame .frame { aspect-ratio: 760 / 480; }
.trail-frame__scene { position: absolute; z-index: 2; top: 22px; bottom: 22px; width: 400px; right: 22px; }
.trail-frame__scene .scene { width: 100%; }
.trail-frame__scene .framed__stop { top: -8px; right: -8px; }
.trail-frame--left .trail-frame__scene { right: auto; left: 22px; }
.trail-frame--right .frame img { object-position: 0% 50%; }
.trail-frame__scene--board { top: auto; bottom: 22px; }
/* the board tilts as it comes in: its smallest words start larger, so they never read under the floor */
.trail-frame__scene--board [data-scene="leads"] .ld-top span, .trail-frame__scene--board [data-scene="leads"] .ld-av { font-size: 14px; }
#ours .trail-step:nth-child(2) .frame img { object-position: 40% 30%; }
/* this deep indigo vanishes on the dark card: the falling line and its marks take the site's lavender */
#ours [data-scene="tune"] .tn-line { stroke: var(--c-brand-light); }
#ours [data-scene="tune"] .tn-head { border-color: var(--c-brand-light); }
#ours [data-scene="tune"] .tn-ic { color: var(--c-brand-light); }

/* ---------- the plan and who runs it ---------- */
.framed__in--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
#inside .framed__words, #team .framed__words { align-self: center; }
#inside .framed__words { padding-left: 88px; }
.frame--plan { aspect-ratio: 800 / 660; }
.frame--plan img { object-position: 20% 40%; }
.framed__stage--plan { right: 14px; top: 14px; bottom: 14px; width: 430px; }
.frame--team { aspect-ratio: 780 / 640; }
.frame--team img { object-position: 100% 40%; }
.framed__stage--tap { left: 22px; top: 22px; bottom: 22px; width: 310px; }
.framed__stage > .framed__stop { top: -14px; right: -14px; }
#team .framed__in { padding-left: 88px; }

/* ---------- questions ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
#faq .head { padding-left: 88px; }

/* ---------- close ---------- */
.band--home .footage video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.band--home .footage { --shade: linear-gradient(90deg, rgba(23, 20, 62, 0.9) 0%, rgba(23, 20, 62, 0.76) 38%, rgba(23, 20, 62, 0.08) 62%); }

/* ---------- the phone ---------- */
@media (max-width: 860px) {
  .trail .head, #inside .framed__words, #team .framed__in, #faq .head { padding-left: 0; }
  .faq-wrap { grid-template-columns: 1fr; }
  .framed__in--flip { grid-template-columns: minmax(0, 1fr); }
  #team .framed__words { order: -1; }
  .trail-step, .trail-step--flip, .trail-step--photo { grid-template-columns: 44px minmax(0, 1fr); }
  .trail-num, .trail-node { width: 44px; height: 44px; font-size: 1.2rem; }
  .trail-step__scene, .trail-frame { grid-column: 1 / -1; }
  .trail-step__words { grid-column: 2; }
  .trail-step--flip .trail-step__words { grid-row: 1; }
  .trail-step--flip .trail-num { grid-row: 1; }
  .trail-step--flip .trail-step__scene { grid-row: 2; }
  .trail-frame .frame { aspect-ratio: auto; height: 480px; }
  .trail-frame__scene, .trail-frame--left .trail-frame__scene { position: relative; inset: auto; width: calc(100% - 20px); margin: -270px 10px 0; }
  .trail-frame__scene--board { margin-top: -300px; }
  #ours .trail-step:nth-child(1) .frame img { object-position: 12% 30%; }
  #ours .trail-step:nth-child(3) .frame img { object-position: 70% 30%; }
  /* the florist and the technician stand taller, so each card sits below the face and stays on the photo */
  #ours .trail-step:nth-child(1) .frame, #ours .trail-step:nth-child(3) .frame { height: 640px; }
  #ours .trail-step:nth-child(3) .trail-frame__scene { margin-top: -390px; }
  .trail-frame__scene .framed__stop { top: -22px; right: 6px; }
  .frame--plan, .frame--team { aspect-ratio: auto; height: 620px; }
  .framed__stage--plan { position: relative; inset: auto; width: calc(100% - 16px); height: 700px; margin: -400px 8px 0; }
  .frame--team { height: 760px; }
  .frame--team img { object-position: 78% 30%; }
  .framed__stage--tap { position: relative; inset: auto; width: min(320px, calc(100% - 24px)); height: 400px; margin: -420px auto 0; }
  .framed__stage > .framed__stop { top: -22px; right: 6px; }
  .band--home { padding-top: 220px; }
  .band--home .footage { --shade: linear-gradient(180deg, rgba(23, 20, 62, 0.05) 0%, rgba(23, 20, 62, 0.05) 26%, rgba(23, 20, 62, 0.86) 42%, rgba(23, 20, 62, 0.86) 100%); }
}
