/* site\assets\css\pages\services.css: the Services page (plan.md, Services). Tokens from design\system.css only;
   the components from design\components.css. On the computer each chapter lays its scene beside the person in its
   footage; under 1180 px (under 820 for the ads) the footage becomes a band at the frame's top and the scene stands
   over the band's foot, so no card ever covers a face. */

.items--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .items--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .items--four { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 1. the header: the frame on the left, the notes landing beside the phone, the words on the right ---------- */
.svc-hero { padding: clamp(28px, 3.6vw, 56px) 0 clamp(72px, 8vw, 120px); }
.svc-hero__in { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(64px, 7vw, 112px); align-items: center; }
.svc-hero__media { position: relative; }
.svc-hero__frame { aspect-ratio: 5 / 6; max-height: calc(100svh - 150px); min-height: 540px; box-shadow: var(--shadow-m); }
.svc-hero__frame > video, .svc-hero__frame > img { object-position: 41% 50%; }
.svc-hero__notes { position: absolute; z-index: 4; top: 50%; right: -44px; width: min(330px, 58%); display: grid; gap: 12px; transform: translateY(-50%); }
.svc-note { width: 100%; max-width: none; }
.svc-hero__notes [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.svc-note .note__icon svg { display: block; }
.svc-hero__stop { left: 16px; bottom: 16px; }
.svc-hero__title { font-size: var(--fs-h1); text-wrap: balance; }
.svc-hero__line { margin-top: 20px; max-width: 520px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--c-ink-soft); }
@media (max-width: 1023px) {
  .svc-hero__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .svc-hero__copy { order: -1; max-width: 680px; }
  .svc-hero__frame { aspect-ratio: 16 / 10; max-height: none; min-height: 0; }
  .svc-hero__frame > video, .svc-hero__frame > img { object-position: 30% 50%; }
  .svc-hero__notes { right: 16px; width: min(330px, 46%); }
}
@media (max-width: 639px) {
  .svc-hero { padding-bottom: 48px; }
  .svc-hero__frame { aspect-ratio: 3 / 4; }
  .svc-hero__frame > video, .svc-hero__frame > img { object-position: 34% 50%; }
  /* the notes stand over the frame's foot (more than half of them on the footage), under the phone's lit screen */
  .svc-hero__notes { position: relative; top: auto; right: auto; width: auto; margin: -128px 12px 0; transform: none; gap: 6px; }
  .svc-note { padding: 9px 14px 9px 9px; gap: 10px; }
  .svc-note .note__icon { width: 32px; height: 32px; }
  .svc-hero__stop { left: auto; right: 12px; top: 12px; bottom: auto; }
}

/* ---------- 2. what changes: the same three cards over a slow week and a full one ---------- */
.svc-changes { padding: var(--section-y) 0; }
.svc-changes__head { margin-inline: auto; text-align: center; }
.svc-changes__head p { margin-inline: auto; max-width: 640px; }
.svc-changes__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.svc-side { position: relative; margin: 0; }
.svc-side__frame { aspect-ratio: 1.15; }
.svc-side--before .svc-side__img { object-position: 80% 50%; filter: saturate(.82); }
.svc-side--after .svc-side__img { object-position: 50% 40%; }
.svc-side__tag { position: absolute; z-index: 3; top: 18px; left: 18px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: rgb(var(--c-shade) / .8); color: var(--c-on-brand); font-family: var(--font-ui); font-size: 14px; font-weight: 600; }
.svc-side__tag--after { background: var(--c-brand-dark); }
.svc-side__cards { position: absolute; z-index: 2; left: 18px; top: 64px; width: min(272px, 46%); display: grid; gap: 10px; }
.svc-side .mini { box-shadow: var(--shadow-m); }
.svc-side .mini__big { line-height: 1.15; }
/* Thursday: three slots, open (dashed) on both sides; on the after side each fills as its booking lands */
.svc-thu__slots { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.svc-thu__slot { position: relative; display: flex; align-items: center; min-height: 28px; border: 1px dashed color-mix(in srgb, var(--c-ink) 24%, transparent); border-radius: 999px; }
.svc-thu__open { padding: 0 11px; font-size: 13px; line-height: 1.35; color: var(--c-ink-soft); }
.svc-thu__booked { position: absolute; inset: -1px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 999px; background: var(--c-brand-light); font-size: 13px; line-height: 1.35; color: var(--c-ink); white-space: nowrap; }
.svc-thu__booked b { font-family: var(--font-ui); font-weight: 700; color: var(--c-brand-text); }
.svc-thu__count { display: block; margin-top: 8px; font-family: var(--font-ui); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--c-brand-text); }
.svc-thu__count--none { font-weight: 600; color: var(--c-ink-soft); }
.svc-thu [data-kit-at] { opacity: var(--kit-in, 1); }
/* a booked slot hides its "Open" under the booking, so no text sits covered */
.svc-thu__open { transition: opacity .25s ease, visibility 0s linear 0s; }
.svc-thu__slot:has(> .svc-thu__booked[data-kit-on]) .svc-thu__open { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.svc-thu__count[data-kit-at] { transform: translateY(calc((1 - var(--kit-in, 1)) * 6px)); }
.svc-stars { display: flex; gap: 2px; margin-top: 4px; color: var(--c-accent); }
.svc-changes__stop { right: 16px; bottom: 16px; }
@media (min-width: 760px) and (max-width: 1023px) {
  .svc-side__frame { aspect-ratio: .85; }
  .svc-side--after .svc-side__img { object-position: 60% 40%; }
}
@media (max-width: 759px) {
  .svc-changes__pair { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-side__frame { aspect-ratio: 4 / 3; }
  .svc-side--after .svc-side__img { object-position: 45% 40%; }
  /* Thursday first, its upper part over the photo's foot (below every face) */
  .svc-side__cards { position: relative; left: auto; top: auto; width: auto; margin: -100px 12px 0; }
  .svc-changes__stop { top: 12px; right: 12px; bottom: auto; }
}

/* ---------- 3 and 5. the chapters on footage: full-bleed in the inset frame ---------- */
.svc-found, .svc-picked { position: relative; padding: 12px 12px var(--section-y); }
.svc-found .items, .svc-picked .items { margin-top: clamp(40px, 4vw, 56px); }
.svc-found__frame, .svc-picked__frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l); background: var(--c-navy); }
.svc-found__clip, .svc-picked__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; z-index: -2; }
.svc-found__shade, .svc-picked__shade { position: absolute; inset: 0; z-index: -1; }
/* the words sit before the frame in the page and over it on the computer (the section's 12 px inset counted) */
.svc-found__copy, .svc-picked__copy { position: absolute; z-index: 3; top: calc(12px + clamp(44px, 4.6vw, 68px)); width: min(560px, 46%); color: var(--c-on-brand); }
.svc-found__copy h2, .svc-picked__copy h2 { font-size: var(--fs-h2); color: var(--c-on-brand); text-wrap: balance; }
.svc-found__copy p, .svc-picked__copy p { margin-top: 14px; max-width: 500px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--c-on-brand); }
.svc-found__stop, .svc-picked__stop { top: 20px; right: 20px; }

/* found: the customer stands in the right part (the clip grown from its left edge), the words and the map on the left */
.svc-found__frame { min-height: clamp(780px, 58vw, 860px); }
.svc-found__clip { object-position: 50% 35%; transform: scale(1.3); transform-origin: 0% 35%; }
.svc-found__shade { background: linear-gradient(90deg, rgb(var(--c-shade) / .9) 0%, rgb(var(--c-shade) / .78) 34%, rgb(var(--c-shade) / .28) 55%, rgb(var(--c-shade) / 0) 66%); }
.svc-found__copy { left: calc(12px + max(var(--gutter), calc((100% - 24px - var(--max-w)) / 2))); }
.scene.svc-found__grid { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(36px, 4vw, 56px); width: min(720px, 50%); height: 470px; }

/* picked: the customer on the left (the clip grown from its right edge), the words and the review on the right */
.svc-picked__frame { min-height: clamp(860px, 64vw, 900px); }
.svc-picked__clip { object-position: 100% 35%; transform: scale(1.12); transform-origin: 100% 35%; }
.svc-picked__shade { background: linear-gradient(270deg, rgb(var(--c-shade) / .9) 0%, rgb(var(--c-shade) / .78) 34%, rgb(var(--c-shade) / .28) 55%, rgb(var(--c-shade) / 0) 66%); }
.svc-picked__copy { right: calc(12px + max(var(--gutter), calc((100% - 24px - var(--max-w)) / 2))); }
.scene.svc-picked__ask { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(36px, 4vw, 56px); width: min(740px, 51%); height: 560px; }

/* Under 1180 px: the words above the frame; the footage a band at the frame's top (--band tall), the person in it above
   the scene, which starts at --top so that half of it or more stands on the footage (sitecheck: a card stays on its photo
   at every width) and never on a face. */
@media (max-width: 1179px) {
  .svc-found__copy, .svc-picked__copy { position: static; width: auto; max-width: 720px; padding: 0 calc(var(--gutter) - 12px) 28px; color: var(--c-ink); }
  .svc-found__copy h2, .svc-picked__copy h2 { color: var(--c-ink); }
  .svc-found__copy p, .svc-picked__copy p { color: var(--c-ink-soft); }
  .svc-found__frame, .svc-picked__frame { min-height: 0; padding-top: var(--top); }
  .svc-found__clip, .svc-picked__clip { inset: -1px -1px auto -1px; height: calc(var(--band) + 2px); transform: none; }
  .svc-found__shade, .svc-picked__shade { background: linear-gradient(180deg, rgb(var(--c-shade) / 0) calc(var(--band) - 140px), rgb(var(--c-shade) / .6) calc(var(--band) - 1px), var(--c-navy) var(--band)); }
  .scene.svc-found__grid, .scene.svc-picked__ask { position: relative; left: auto; right: auto; bottom: auto; width: calc(100% - 48px); max-width: 800px; margin: 0 auto 24px; }
  .svc-found__frame { --band: 560px; --top: 220px; }
  .svc-found__clip { object-position: 57% 20%; }
  .scene.svc-found__grid { height: 520px; }
  .svc-picked__frame { --band: 720px; --top: 410px; }
  .svc-picked__clip { object-position: 34% 30%; }
  .scene.svc-picked__ask { height: 600px; }
  .svc-found__stop, .svc-picked__stop { top: 16px; right: 16px; }
}
@media (max-width: 639px) {
  .svc-found, .svc-picked { padding: 8px 8px var(--section-y); }
  .svc-found__copy, .svc-picked__copy { padding-inline: calc(var(--gutter) - 8px); }
  .svc-found__frame, .svc-picked__frame { border-radius: var(--radius-m); }
  .svc-found__frame { --band: 460px; --top: 170px; }
  .scene.svc-found__grid { width: calc(100% - 16px); height: 540px; margin-bottom: 8px; }
  .svc-picked__frame { --band: 760px; --top: 432px; }
  .scene.svc-picked__ask { width: calc(100% - 8px); height: 620px; margin-bottom: 4px; }
}

/* ---------- 4. the ads, on the navy band: the words, the framed clip with the funnel over its left ---------- */
.svc-ads__in { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.svc-ads__copy .section-head { margin-bottom: 0; }
.svc-ads__frame { aspect-ratio: 1.47; min-height: 480px; background: color-mix(in srgb, var(--c-navy) 82%, var(--c-paper)); }
.svc-ads__clip { object-position: 100% 40%; }
.scene.svc-ads__funnel { position: absolute; z-index: 2; left: 0; top: 50%; width: 488px; height: 460px; transform: translateY(-50%); }
.svc-ads__stop { right: 16px; bottom: 16px; }
@media (max-width: 1179px) {
  .svc-ads__in { grid-template-columns: minmax(0, 1fr); }
  .svc-ads__copy { max-width: 720px; }
  .svc-ads__frame { aspect-ratio: auto; height: 500px; }
}
@media (max-width: 819px) {
  .svc-ads__frame { --band: 400px; --top: 150px; height: auto; padding: var(--top) 0 12px; }
  .media-frame > .svc-ads__clip { inset: -1px -1px auto -1px; height: calc(var(--band) + 2px); object-position: 77% 25%; }
  .scene.svc-ads__funnel { position: relative; left: auto; top: auto; width: 100%; max-width: 488px; height: 460px; margin: 0 auto; transform: none; }
  .svc-ads__stop { top: 12px; right: 12px; bottom: auto; }
}

/* ---------- 6. calls answered: the words above, one wide frame, the call over its left half ---------- */
.svc-answered { padding: var(--section-y) 0; }
.svc-answered__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.svc-answered__head { margin-bottom: 0; }
.svc-answered__items { margin-top: 0; }
.svc-answered__frame { --band: min(52vw, 500px); aspect-ratio: 2 / 1; min-height: 520px; }
.svc-answered__clip { object-position: 50% 30%; transform: scale(1.15); transform-origin: 0% 30%; }
.scene.svc-answered__call { position: absolute; z-index: 2; left: clamp(16px, 2.4vw, 32px); top: 50%; width: min(720px, 57%); aspect-ratio: 820 / 520; transform: translateY(-50%); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.svc-answered__stop { right: 16px; bottom: 16px; }
@media (max-width: 1179px) {
  .svc-answered__top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .svc-answered__frame { --band: 440px; --top: 150px; aspect-ratio: auto; min-height: 0; padding: var(--top) 0 16px; background: var(--c-navy); }
  .media-frame > .svc-answered__clip { inset: -1px -1px auto -1px; height: calc(var(--band) + 2px); object-position: 57% 15%; transform: none; }
  .scene.svc-answered__call { position: relative; left: auto; top: auto; width: calc(100% - 32px); max-width: 820px; margin: 0 auto; transform: none; }
  .svc-answered__stop { top: 12px; right: 12px; bottom: auto; }
}
@media (max-width: 639px) {
  .svc-answered__frame { --band: 480px; --top: 140px; border-radius: var(--radius-m); }
  .scene.svc-answered__call { aspect-ratio: auto; width: calc(100% - 24px); max-width: 460px; height: 660px; }
}

/* ---------- 7. the signature, on the designed ground ---------- */
.svc-mix__head { margin-inline: auto; text-align: center; }
.svc-mix__head p { margin-inline: auto; max-width: 640px; }
.svc-mix__stage { position: relative; max-width: 1000px; margin: 0 auto; }
.scene.svc-mix__pill { width: 100%; aspect-ratio: 1000 / 460; }
.svc-mix__stop { right: -64px; bottom: 0; }
@media (max-width: 1159px) { .svc-mix__stop { right: 0; bottom: -60px; } }
@media (max-width: 819px) {
  .scene.svc-mix__pill { width: min(100%, 540px); margin: 0 auto; aspect-ratio: 360 / 480; }
}

/* ---------- 8. where every client came from: the words, the framed photo with the lanes over its left ---------- */
.svc-known { padding: var(--section-y) 0; }
.svc-known__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 4.5vw, 72px); align-items: center; }
.svc-known__copy .section-head { margin-bottom: 0; }
.svc-known__frame { --band: min(56vw, 520px); aspect-ratio: 1.15; min-height: 660px; }
.svc-known__img { object-position: 100% 40%; }
.scene.svc-known__flow { position: absolute; z-index: 2; left: 24px; top: 24px; bottom: 24px; width: clamp(340px, 50%, 420px); }
.svc-known__stop { right: 16px; bottom: 16px; }
@media (max-width: 1179px) {
  .svc-known__in { grid-template-columns: minmax(0, 1fr); }
  .svc-known__copy { max-width: 720px; }
  .svc-known__frame { --band: 560px; --top: 270px; aspect-ratio: auto; min-height: 0; padding: var(--top) 0 16px; background: var(--c-navy); }
  .media-frame > .svc-known__img { inset: -1px -1px auto -1px; height: calc(var(--band) + 2px); object-position: 68% 40%; }
  .scene.svc-known__flow { position: relative; left: auto; top: auto; bottom: auto; width: calc(100% - 32px); max-width: 900px; height: 480px; margin: 0 auto; }
  .svc-known__stop { top: 12px; right: 12px; bottom: auto; }
}
@media (max-width: 639px) {
  .svc-known__frame { --band: 620px; --top: 290px; border-radius: var(--radius-m); }
  .svc-known__stop { top: calc(var(--top) - 56px); right: auto; left: 12px; }
  .scene.svc-known__flow { width: calc(100% - 24px); height: 640px; }
}

/* ---------- 9. the questions ---------- */
.svc-faq { padding: 0 0 var(--section-y); }
.svc-faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-faq__head { margin-bottom: 0; }
@media (max-width: 899px) { .svc-faq__in { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- 10. the close: the crew at work in the right half ---------- */
.svc-close .close-band__clip { object-position: 70% 50%; }
