/* Services: places and sizes its parts, with the tokens of system.css and the components of components.css. */

/* ---------- hero: the general shot, full-bleed; the words low on the left, the clients on the right ---------- */
.page-hero--bleed { position: relative; min-height: min(calc(100svh - 76px), 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--c-brand-dark); 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--bleed .page-hero__media { position: absolute; inset: 0; }
.page-hero--bleed .page-hero__words { position: relative; z-index: 4; padding-block: clamp(3rem, 7vw, 6rem); }
.page-hero--bleed .page-hero__title { font-size: var(--fs-display); max-width: 11.5em; }
.page-hero--bleed .page-hero__line { margin: var(--space-3) 0 var(--space-4); font-size: clamp(1.05rem, 0.98rem + 0.32vw, 1.22rem); line-height: 1.55; color: var(--c-on-dark-soft); max-width: 31rem; }
.page-hero--bleed .page-hero__scene { position: absolute; z-index: 4; right: max(var(--gutter), calc((100vw - var(--max-w)) / 2)); top: 50%; transform: translateY(-50%); width: min(420px, 34vw); height: 440px; }
.page-hero--bleed .page-hero__scene .scene { width: 100%; height: 100%; }
.page-hero__grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(23, 20, 62, 0.92) 0%, rgba(23, 20, 62, 0.74) 38%, rgba(23, 20, 62, 0.2) 62%, rgba(23, 20, 62, 0.42) 100%); }
.page-hero__stop { top: 18px; right: 18px; z-index: 6; }
/* the clips' edges, as the home hero's (progress.md, 28 Oct): each clip stops under a band of the header's indigo */
#hero .page-hero__slide video { inset: 3px 0 -1px; width: 100%; height: calc(100% - 2px); max-width: none; }
/* the calendar was shot from across the desk: turned, so its dates read upright and the hand comes up from below */
#hero .page-hero__slide video, #hero .page-hero__slide img { transform: rotate(180deg); }
#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--bleed::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: 860px) {
  .page-hero--bleed { display: block; min-height: 0; background: var(--c-brand); }
  .page-hero--bleed .page-hero__media { position: relative; inset: auto; height: 460px; overflow: hidden; }
  .page-hero--bleed .page-hero__words { padding-block: 2.2rem 2.4rem; }
  .page-hero--bleed { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .page-hero--bleed .page-hero__scene { right: 12px; left: 12px; width: auto; top: auto; bottom: 16px; transform: none; height: 330px; }
  .page-hero__grade { background: linear-gradient(180deg, rgba(23, 20, 62, 0.15), rgba(23, 20, 62, 0.42)); }
}

/* ---------- chapters ---------- */
.chapter__stage--grid { height: 540px; }
.chapter__stage--ask { height: 560px; }
.chapter--porch .footage img { object-position: 78% 40%; }
#found .footage { --shade: linear-gradient(90deg, rgba(23, 20, 62, 0.93) 0%, rgba(23, 20, 62, 0.8) 34%, rgba(23, 20, 62, 0.28) 62%, rgba(23, 20, 62, 0.4) 100%); }
#picked .footage { --shade: linear-gradient(90deg, rgba(23, 20, 62, 0.94) 0%, rgba(23, 20, 62, 0.86) 34%, rgba(23, 20, 62, 0.35) 58%, rgba(23, 20, 62, 0) 82%); }
#picked .chapter__in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 0.42fr); }
@media (max-width: 1180px) { #picked .chapter__in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr); } }
@media (max-width: 860px) {
  #picked .chapter__in { grid-template-columns: minmax(0, 1fr); }
  #found .footage, #picked .footage { --shade: linear-gradient(180deg, rgba(23, 20, 62, 0.86), rgba(23, 20, 62, 0.78)); }
  .chapter__stage--grid { height: 540px; }
  .chapter__stage--ask { height: 580px; }
}

/* ---------- framed chapters ---------- */
#ads .framed__stage--left { left: -34px; bottom: 26px; width: 442px; height: 470px; }
#ads .frame img { object-position: 72% 50%; }
.framed__stage--call { right: 0; top: 18px; bottom: 18px; width: 500px; }
.framed__stage--call .scene { height: 100%; }
#leads .frame img { object-position: 66% 50%; }
.frame--see { aspect-ratio: 860 / 660; }
#see .frame img { object-position: 78% 50%; }
.framed__stage--flow { right: 14px; top: 26px; bottom: 26px; width: 400px; }
.framed__stage--flow .scene { height: 100%; }
@media (max-width: 860px) {
  #ads .framed__stage--left, .framed__stage--call, .framed__stage--flow { position: relative; inset: auto; width: 100%; margin-top: 14px; }
  #ads .framed__stage--left { height: 470px; }
  .framed__stage--call { height: 340px; }
  .framed__stage--flow { height: 660px; }
  .frame--see { aspect-ratio: 4 / 3; }
  #see .frame img { object-position: 40% 50%; }
}

/* ---------- the mix ---------- */
.mix__stage { position: relative; }
.mix__stage .scene { width: 100%; }
.mix__stop { top: -54px; right: 0; }

/* ---------- questions ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- close ---------- */
.band--lawn .footage video { object-position: 70% 22%; }
.band--lawn .footage { --shade: linear-gradient(90deg, rgba(23, 20, 62, 0.88) 0%, rgba(23, 20, 62, 0.6) 42%, rgba(23, 20, 62, 0.05) 70%); }

/* ---------- fixes from the first site check ---------- */
#found .chapter__in { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.08fr); }
.chapter--bleed .footage video, .chapter--bleed .footage img, .band--lawn .footage video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.chapter__stage--ask { height: 610px; }
.framed__stage > .framed__stop { top: -8px; right: -8px; }
.framed__stage--call > .framed__stop { right: auto; left: 0; top: 0; }
.framed__stage--flow > .framed__stop { top: -14px; right: -6px; }
@media (max-width: 860px) {
  #found .chapter__in { grid-template-columns: minmax(0, 1fr); }
  .chapter__stage { margin-top: 44px; }
  .chapter__stage--ask { margin-inline: -8px; }
  .chapter--porch .footage { bottom: auto; height: 1100px; }
  .chapter--porch .footage::after { background: linear-gradient(180deg, rgba(23, 20, 62, 0.82), rgba(23, 20, 62, 0.8) 80%, var(--c-brand-dark)); }
  /* each scene stays on its photo, under the face: the frame stands taller and the scene rises over its lower part */
  #ads .frame { aspect-ratio: auto; height: 560px; }
  #ads .frame img { object-position: 76% 30%; }
  #ads .framed__stage--left { margin-top: -330px; }
  #leads .frame { aspect-ratio: auto; height: 460px; }
  #leads .frame img { object-position: 42% 40%; }
  .framed__stage--call { height: 300px; margin-top: -292px; }
  .framed__stage--call > .framed__stop { left: auto; right: 8px; top: -32px; }
  #see .frame { aspect-ratio: auto; height: 600px; }
  #see .frame img { object-position: 44% 30%; }
  .framed__stage--flow { height: 660px; margin-top: -360px; width: calc(100% - 16px); margin-inline: 8px; }
  .framed__stage--flow > .framed__stop { top: -22px; right: 8px; }
  .framed__stage > .framed__stop { top: -22px; right: 8px; }
  .band--lawn .footage { --shade: linear-gradient(180deg, rgba(23, 20, 62, 0.82), rgba(23, 20, 62, 0.62)); }
  .band--lawn .footage video { object-position: 22% 50%; }
}
