/* services.css: places and sizes the Services page's parts (the components live in components.css). The two arsenal
   compositions are restyled here into this site's own: the statement's window is the mark at its largest, rising out of
   the band's foot; the stack's cards are whole pictures, with a rail of the mark's bars at their side. */
@import url("../arsenal/statement.css");
@import url("../arsenal/stack-cards.css");

/* ---------- hero: the two clips of the general shot and the search over them ---------- */
.svc-slide--a video, .svc-slide--a .kit-first { transform: translateX(-12.5%) rotate(180deg) scale(1.25); }
.page-services .page-hero__grade { background: linear-gradient(90deg, rgb(16 19 23 / 0) 42%, rgb(16 19 23 / 0.5) 100%); }
.page-services .page-hero__stage { width: 100%; min-height: 400px; }
.page-services .page-hero__scene { right: clamp(14px, 2.4vw, 32px); top: calc(50% - 24px); translate: 0 -50%; width: min(470px, calc(100% - 28px)); }
/* the toast stands under the list, clear of its third row */
.page-services .page-hero__scene .sd-pop { bottom: -49px; }
.page-services .page-hero__stop { left: 18px; bottom: 18px; }
@media (max-width: 899px) {
  .page-services .page-hero__stage { min-height: 440px; }
  .page-services .page-hero__scene { left: 50%; right: auto; top: auto; bottom: 22px; translate: -50% 0; }
  .page-services .page-hero__stop { left: 14px; top: 14px; bottom: auto; }
}
/* a small phone: the card takes the scene's whole width, so the first name and the toast stay on one line */
@media (max-width: 420px) {
  .page-services .page-hero__scene { padding-inline: 0; }
}

/* ---------- promise: the sentence, and the mark at its largest ---------- */
#promise { --st-word: var(--c-accent); --win: clamp(520px, 44.5vw, 660px); display: flex; align-items: center; box-sizing: border-box; min-height: clamp(560px, 45vw, 680px); padding-block: clamp(72px, 7vw, 112px); }
#promise .statement__text { width: 100%; font: 800 clamp(2.75rem, 1rem + 3.9vw, 4.75rem) / 1.04 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: -0.028em; word-spacing: 0; }
#promise[data-window="mark"] .statement__win { position: absolute; z-index: 0; right: calc(max(var(--gutter), (100% - var(--max-w)) / 2) - var(--win) * 0.125); bottom: calc(var(--win) * -0.125); width: var(--win); height: var(--win); margin: 0; background: var(--c-ink-raised); transform-origin: 100% 100%; }
#promise .statement__l { position: relative; z-index: 1; }
#promise .stop { background: var(--c-ink); }
/* each picture placed in the three bars: its person in the tall bar, what they work with in the other two. The script
   scales each by 1.12 about its middle, so these boxes are drawn that much larger. Two are mirrored by the scale
   property, which leaves the script's transform alone. */
#promise .statement__win > .promise__pic { inset: auto; }
#promise .statement__win > .promise__pic--word-roofer { left: -81%; top: 18.7%; width: 182%; height: 102.4%; }
#promise .statement__win > .promise__pic--word-dentist { left: -4.3%; top: 18.4%; width: 178.6%; height: 99.8%; }
#promise .statement__win > .promise__pic--word-landscaper { left: -7%; top: 9.6%; width: 116%; height: 77.2%; scale: -1 1; }
#promise .statement__win > .promise__pic--word-lawyer { left: 13.7%; top: 15.1%; width: 103.6%; height: 69.1%; scale: -1 1; }
@media (max-width: 899px) {
  #promise { --win: 100%; display: block; min-height: 0; padding-block: clamp(64px, 12vw, 96px) 0; }
  #promise[data-window="mark"] .statement__win { position: relative; display: block; right: auto; bottom: auto; width: 100%; height: auto; aspect-ratio: 1; margin: 28px 0 -12.5%; }
  #promise .statement__text { font-size: clamp(2.5rem, 1.4rem + 5vw, 3.75rem); }
}

/* ---------- groups: each group one whole picture, stacked ---------- */
.groups { position: relative; background: var(--c-ink); padding-block: clamp(8px, 2vw, 24px) var(--section-y); }
.groups .stack-cards { --stack-top: calc(var(--header-h) + 18px); --stack-peek: 12px; --stack-h: clamp(560px, calc(100vh - var(--header-h) - 76px), 740px); --stack-gap: 16vh; }
.groups .groups__stop { position: sticky; top: calc(var(--header-h) + 34px); z-index: 7; display: grid; margin: 0 0 -40px calc(38% - 56px); }
/* the rail: the index restyled into the mark's bars, in the gutter beside the stack, one lit gold per card as it arrives */
.groups .stack-cards__index { position: sticky; top: calc(50vh - 56px); z-index: 6; display: block; width: 0; height: 0; margin: 0; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.groups .stack-cards__index-bars { position: absolute; left: calc(var(--gutter) * -1 + 4px); top: 0; display: flex; align-items: flex-end; gap: 3px; width: 29px; height: 112px; }
.groups .stack-cards__index-bars i { flex: none; width: 5px; border-radius: 2px 2px 0 0; background: var(--c-line-on-ink); }
.groups .stack-cards__index-bars i:nth-child(1) { height: 28%; }
.groups .stack-cards__index-bars i:nth-child(2) { height: 52%; }
.groups .stack-cards__index-bars i:nth-child(3) { height: 76%; }
.groups .stack-cards__index-bars i:nth-child(4) { height: 100%; }
.groups .stack-cards__index-bars i::after { background: var(--c-accent); transform-origin: 50% 100%; transform: scaleY(var(--fill, 0)); }
/* a card: the picture fills it, the words stand on its left under a shade, the scene at its right */
/* the cards keep their size as the next covers them (the script's shrink took a scene's 13 px words under the limit): the
   shade and the edges in sight tell the stack */
.groups .stack-cards__inner { display: block; padding: 0; border-radius: var(--radius-l); background: var(--c-ink-raised); box-shadow: 0 0 0 1px var(--c-line-on-ink), var(--shadow-l); transform: none !important; }
.groups .stack-cards__media { position: absolute; inset: 0; border-radius: 0; background: var(--c-ink); }
.groups .stack-cards__media > .svc-card__clip { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.groups .svc-card__clip--found, .groups .svc-card__clip--leads { transform: scale(1.25); transform-origin: 0% 30%; }
.groups .svc-card__clip--ads { transform: scale(1.11); transform-origin: 0% 40%; }
.svc-card__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 19 23 / 0.96) 0%, rgb(16 19 23 / 0.9) 30%, rgb(16 19 23 / 0.28) 41%, rgb(16 19 23 / 0) 52%); }
.groups .stack-cards__text { position: relative; z-index: 2; box-sizing: border-box; width: 36.5%; height: 100%; padding: clamp(22px, 2.7cqi, 34px) 0 clamp(22px, 2.7cqi, 34px) clamp(22px, 2.7cqi, 34px); }
.groups .stack-cards__num { font: 500 clamp(2.5rem, 4.6cqi, 3.5rem) / 1 var(--font-mono); letter-spacing: -0.04em; color: var(--c-on-ink-soft); }
.groups .stack-cards__title { padding-top: 16px; max-width: none; font: 800 clamp(1.625rem, 2.9cqi, 2.25rem) / 1.08 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: -0.022em; color: var(--c-on-ink); }
.groups .stack-cards__body { margin-top: 10px; font: 400 1rem / 1.45 var(--font-text); color: var(--c-on-ink-soft); }
.groups .stack-cards__points { margin-top: 14px; padding-top: 14px; gap: 9px; border-color: var(--c-line-on-ink); }
.groups .stack-cards__points li { grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font: 400 0.9375rem / 1.35 var(--font-text); color: var(--c-on-ink-soft); }
.groups .stack-cards__points svg { width: 13px; height: 13px; margin-top: 3px; fill: var(--c-accent); }
.groups .stack-cards__points b { display: block; font-weight: 700; color: var(--c-on-ink); }
.groups .svc-card__scene { position: absolute; z-index: 1; }
.groups .svc-card__scene--lmap { right: 20px; top: 50%; translate: 0 -50%; width: min(430px, 36%); min-width: 372px; height: min(560px, calc(100% - 24px)); }
.groups .svc-card__scene--funnel { right: 20px; top: 50%; translate: 0 -50%; width: 440px; height: min(470px, calc(100% - 24px)); }
.groups .svc-card__scene--island { right: 3%; bottom: 0; width: min(400px, 34%); min-width: 343px; height: 320px; }
.groups .svc-card__scene--callbook { right: 4px; top: 0; bottom: 0; width: 500px; }
@container (width < 760px) {
  .groups .stack-cards__card { position: static; height: auto; min-height: 0; margin-bottom: 0; }
  .groups .stack-cards__list { gap: 20px; }
  .groups .stack-cards__list::after, .groups .stack-cards__index { display: none; }
  .groups .stack-cards__inner { display: flex; flex-direction: column; gap: 0; padding: 0 0 24px; border-radius: var(--radius-l); }
  /* each picture reaches well under its scene, the face in the part left clear above it */
  .groups .stack-cards__media { position: relative; order: 0; inset: auto; flex: none; height: 490px; border-radius: 0; }
  .groups #ads .stack-cards__media { height: 440px; }
  .groups #trust .stack-cards__media { height: 290px; }
  .groups #leads .stack-cards__media { height: 300px; }
  .svc-card__shade { background: linear-gradient(0deg, var(--c-ink-raised) 0%, rgb(26 31 38 / 0) 30%); }
  .groups .svc-card__clip--found, .groups .svc-card__clip--leads, .groups .svc-card__clip--ads { transform: none; }
  .groups .svc-card__clip--found { object-position: 34% 30%; }
  .groups .svc-card__clip--leads { object-position: 30% 20%; }
  .groups .svc-card__clip--ads { object-position: 40% 30%; }
  .groups .svc-card__clip--trust { object-position: 66% 30%; }
  .groups .svc-card__scene { position: relative; order: 1; inset: auto; translate: none; flex: none; width: 100%; min-width: 0; }
  .groups .svc-card__scene--lmap { height: 500px; margin-top: -262px; }
  .groups .svc-card__scene--funnel { height: 470px; margin-top: -246px; }
  .groups .svc-card__scene--island { height: 300px; margin-top: -176px; }
  .groups .svc-card__scene--callbook { height: 320px; margin-top: -176px; }
  .groups .stack-cards__text { order: 2; width: auto; height: auto; padding: 18px 46px 0 18px; }
  .groups .stack-cards__top { display: none; }
  .groups .stack-cards__title { padding-top: 0; font-size: 1.75rem; }
}
@media (max-width: 899px) { .groups .groups__stop { margin: 0 -8px -40px auto; } }

/* ---------- change: the same hour, before and after ---------- */
.change { position: relative; background: var(--c-ink); }
.change__seq { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(600px, 84vh, 780px); padding-block: clamp(56px, 6vw, 88px); box-sizing: border-box; }
.change__pic { position: absolute; inset: 0; z-index: -3; }
.change__pic--after { z-index: -2; opacity: var(--kit-in, 0); }
.change__photo, .change__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.change__photo { transform: scaleX(-1); object-position: 50% 10%; }
.change__clip { object-position: 50% 100%; }
.change__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 19 23 / 0.92) 0%, rgb(16 19 23 / 0.8) 32%, rgb(16 19 23 / 0.18) 54%, rgb(16 19 23 / 0) 72%); }
.change__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 80px); align-items: center; width: 100%; box-sizing: border-box; }
.change__copy { max-width: 520px; }
.change__copy h2 { font-size: var(--fs-display); }
.turn { margin: 0; padding: 8px 22px; background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.turn__row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.turn__row:first-child { border-top: 0; }
.turn__k { color: var(--c-ink-soft); }
.turn__v { display: grid; margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.turn__before, .turn__after { grid-area: 1 / 1; }
.turn__before { color: var(--c-ink-soft); opacity: calc(1 - var(--kit-in, 0)); transform: translateY(calc(var(--kit-in, 0) * -8px)); }
.turn__after { font-weight: 700; opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 8px)); }
.change__stop { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 18px; }
@media (max-width: 899px) {
  /* the words on ink, the picture under them, the card hanging from its foot, so the table and the faces stay in sight */
  .change__seq { display: block; min-height: 0; padding-block: 0; }
  .change__pic { inset: 170px 0 auto; height: 560px; overflow: hidden; }
  .change__in { grid-template-columns: 1fr; gap: 0; padding-block: 44px 24px; min-height: 980px; grid-template-rows: auto 1fr; }
  .change__shade { background: linear-gradient(180deg, var(--c-ink) 170px, rgb(16 19 23 / 0.5) 250px, rgb(16 19 23 / 0) 340px); }
  .change__photo { object-position: 31% 50%; }
  .change__clip { object-position: 55% 50%; }
  .turn { align-self: end; }
  .change__stop { right: var(--gutter); top: 12px; bottom: auto; }
}

/* ---------- system: the track, on the mark's bars ---------- */
.system { position: relative; overflow: hidden; isolation: isolate; background: var(--c-ink); padding-block: var(--section-y) clamp(40px, 5vw, 72px); }
.foot-bars { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: clamp(110px, 16vw, 230px); max-width: none; fill: var(--c-ink-raised); }
.foot-bars__live { fill: var(--c-accent); }
.system__head { display: grid; justify-items: center; text-align: center; }
.system__stage { position: relative; margin-top: clamp(24px, 3.4vw, 44px); }
.system__stage .system__scene { position: relative; display: block; height: 520px; }
.system__stop { right: var(--gutter); top: -8px; }
@media (max-width: 1099px) { .system__stage .system__scene { height: 480px; } }
@media (max-width: 767px) { .system__stage .system__scene { height: 640px; } .system__stop { top: -48px; } }

/* ---------- see: which part brings the jobs ---------- */
.see__head { max-width: 780px; }
.see__frame { position: relative; overflow: hidden; margin-top: clamp(28px, 3.4vw, 44px); height: clamp(660px, 54vw, 700px); border-radius: var(--radius-l); background: var(--c-ink); }
.see__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 42%; }
.see__frame .see__scene { position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 470px; height: 640px; }
.see__frame .see__scene[data-scene][data-look] { background: transparent; } /* over the photo the card stands alone, with no box of ink around it */
.see__stop { left: 20px; right: auto; }
@media (max-width: 899px) {
  .see__stop { left: auto; right: 12px; top: 342px; }
  .see__frame { height: 1040px; }
  .see__photo { height: 720px; object-position: 48% 50%; }
  .see__frame .see__scene { left: 50%; right: auto; top: auto; bottom: 8px; translate: -50% 0; width: min(470px, calc(100% - 16px)); }
}

/* ---------- plan: the mix, in shares ---------- */
.mix { position: relative; overflow: hidden; isolation: isolate; background: var(--c-ink); }
.mix__photo { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 0%; transform: scale(1.14); transform-origin: 50% 0%; }
.mix__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 19 23 / 0.94) 0%, rgb(16 19 23 / 0.82) 30%, rgb(16 19 23 / 0.1) 46%, rgb(16 19 23 / 0) 100%); }
.mix__in { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 470px); justify-content: space-between; gap: 28px; align-items: center; min-height: clamp(600px, 46vw, 680px); padding-block: clamp(64px, 7vw, 96px); box-sizing: border-box; }
.mix__copy h2 { font-size: var(--fs-h1); }
.mix__copy .lede { max-width: 42ch; }
.mix__action { margin-top: 26px; }
.mix__in .mix__scene { display: block; position: relative; width: 100%; }
.mix .mix__stop { top: auto; bottom: 18px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
@media (max-width: 899px) {
  .mix .mix__stop { top: 182px; bottom: auto; right: var(--gutter); }
  .mix__photo { inset: -1px -1px auto; height: 430px; transform: none; object-position: 54% 50%; }
  .mix__shade { background: linear-gradient(180deg, rgb(16 19 23 / 0) 215px, var(--c-ink) 430px); }
  .mix__in { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; gap: 32px; min-height: 0; padding-block: 236px 64px; }
}

/* ---------- faq ---------- */
.svc-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 859px) { .svc-faq__grid { grid-template-columns: 1fr; } }
