/* site\assets\css\pages\services.css: the Services page (src\pages\services.mjs). It only places and sizes its parts,
   with the tokens of system.css; the components are design\components.css's. */

/* ---------- hero: the phone on the table lights up with what we run (full-bleed, words left, cards right) ---------- */
.svh { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(calc(100svh - 72px), 820px); background: var(--c-paper-alt); }
.svh__photo { position: absolute; inset: 0; z-index: -2; margin: 0; transform-origin: 72% 50%; animation: svh-push 32s var(--ease-out) both; }
@keyframes svh-push { from { transform: scale(1); } to { transform: scale(1.06); } }
.svh:has(.svh__stop[aria-pressed="true"]) .svh__photo { animation-play-state: paused; }
.svh::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c-paper-alt) 95%, transparent) 0%, color-mix(in srgb, var(--c-paper-alt) 84%, transparent) 36%, color-mix(in srgb, var(--c-paper-alt) 0%, transparent) 58%); }
.svh__in { position: relative; z-index: 2; }
.svh__copy { max-width: min(560px, 44vw); padding-block: clamp(48px, 7vh, 88px); }
.svh__title { font-size: var(--fs-h1); }
.svh__line { max-width: 470px; margin: 20px 0 30px; color: var(--c-ink-soft); font-size: var(--fs-lead); line-height: 1.5; }
.svh__stop { top: 20px; right: 20px; }
/* the three notifications sit on the phone's glass, between its clock and its check: the band between them is
   centered on the photo's middle at every width (the photo covers the header from its center), so the cards are
   centered on the header's middle (their stack, 200 px, hangs 30 px under the host); across, on the phone (73.7%) */
.scene.svh__feed { position: absolute; z-index: 3; left: calc(73.7% - 240px); top: calc(50% - 130px); width: 480px; height: 200px; }
/* the lock screen laid on the phone's glass (h.screen, designed at 300 x 634): the clock high, the check low */
.lock { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding-top: 40px; background: var(--c-brand-dark); color: var(--c-on-brand); }
.lock__time { font: 700 104px/1 var(--font-display); letter-spacing: -0.045em; }
.lock__mk { display: grid; place-items: center; width: 74px; height: 74px; margin-top: auto; margin-bottom: 36px; border-radius: 50%; background: var(--c-accent); color: var(--c-brand); }
@media (prefers-reduced-motion: reduce) { .svh__photo { animation: none; } }
@media (max-width: 999px) {
  .svh { display: block; min-height: 0; }
  .svh::before { display: none; }
  .svh__photo { position: relative; inset: auto; z-index: 0; height: clamp(300px, 60vw, 520px); }
  .svh__photo > img { object-position: 70% 50%; }
  .svh__copy { max-width: 640px; padding-block: 32px 56px; }
  .scene.svh__feed { left: 16px; right: auto; top: 20px; width: min(480px, calc(100% - 32px)); height: calc(clamp(300px, 60vw, 520px) - 72px); }
  /* the cards lie over the phone's lower glass here: its check would only peek out between them; and the stop sits over
     the dark phone, so it takes the light circle */
  .svh .lock__mk { visibility: hidden; }
  .svh__stop { background: color-mix(in srgb, var(--c-paper) 94%, transparent); color: var(--c-brand); box-shadow: var(--shadow-s); }
}

/* ---------- found: Megan's search, and the area turning to the top 3 ---------- */
.svf { position: relative; }
.svf__band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 7vw, 104px) clamp(96px, 9vw, 136px); background: var(--c-brand-dark); }
.svf__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.svf__band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand-dark) 90%, transparent) 0%, color-mix(in srgb, var(--c-brand-dark) 70%, transparent) 36%, color-mix(in srgb, var(--c-brand-dark) 0%, transparent) 62%); }
.svf__side { max-width: 600px; }
.svf__head { margin-bottom: 56px; }
.svf__head h2 { color: var(--c-on-brand); }
.svf__head .head__line { color: var(--c-on-brand-soft); }
.svf__stage { position: relative; }
.scene.svf__grid { width: 100%; height: 440px; }
.svf__stop { top: -48px; right: 0; }
.svf__cards { position: relative; z-index: 2; margin-top: -56px; }
/* narrower: the card stays on her photo (more than half of it at every width): the head on the photo's shaded top,
   her hands and phone in the clear band under it, the card over the photo's lower part, the band's navy under its foot */
@media (max-width: 899px) {
  .svf__band { padding: 32px 0 72px; }
  .svf__band::before { background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand-dark) 92%, transparent) 0, color-mix(in srgb, var(--c-brand-dark) 86%, transparent) 200px, color-mix(in srgb, var(--c-brand-dark) 0%, transparent) 300px, color-mix(in srgb, var(--c-brand-dark) 0%, transparent) 600px, var(--c-brand-dark) 760px); }
  .svf__photo { inset: 0 0 auto; height: 760px; object-position: 72% 50%; }
  .svf__head { margin-bottom: 240px; }
  .scene.svf__grid { height: 520px; }
}

/* ---------- called: the ad, the lead, the call back ---------- */
.svcl__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 470px; align-items: center; margin-bottom: 28px; }
.svcl__tile { position: relative; grid-area: 1 / 1; aspect-ratio: 16 / 10; margin-right: -130px; overflow: hidden; border-radius: var(--radius-l); background: var(--c-brand-dark); box-shadow: var(--shadow-m); }
.svcl__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 42% 40%; }
.svcl__stop { top: 16px; left: 16px; }
.scene.svcl__funnel { position: relative; z-index: 2; grid-area: 1 / 2; width: 100%; height: 470px; }
@media (max-width: 899px) {
  .svcl__stage { grid-template-columns: 1fr; }
  .svcl__tile { margin-right: 0; }
  .scene.svcl__funnel { grid-area: 2 / 1; justify-self: center; width: min(100%, 470px); margin-top: -72px; }
}

/* ---------- chosen: the site rebuilds itself and books (on the designed ground) ---------- */
.svx__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 44px); align-items: center; }
.svx__stage { position: relative; }
.scene.svx__site { width: 100%; height: clamp(540px, 42vw, 600px); }
.svx__stop { top: -48px; right: 0; }
@media (max-width: 1099px) { .svx__in { grid-template-columns: 1fr; } .svcs--col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .svcs--col { grid-template-columns: 1fr; } .svx__stage { margin-top: 28px; } }
@media (max-width: 599px) { .scene.svx__site { height: 640px; } }

/* ---------- answered: the same call, two ways ---------- */
.sva__pair { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); margin-bottom: 28px; }
.sva__shot { position: relative; aspect-ratio: 5 / 4; margin: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-m); }
.sva__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sva__shot--own .sva__img { object-position: 30% 50%; }
.sva__shot--us .sva__img { object-position: 50% 30%; }
.sva__tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 9px 15px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--c-ink) 74%, transparent); color: var(--c-on-ink); font: 700 0.9375rem/1 var(--font-ui); }
.sva__tag--us { background: var(--c-accent); color: var(--c-brand); }
.sva__stop { top: 16px; right: 16px; }
.acards { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: grid; gap: 8px; width: min(320px, calc(100% - 32px)); }
.acard { display: flex; align-items: center; gap: 11px; padding: 10px 14px 10px 10px; background: var(--c-paper); border-radius: var(--radius-m); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.acard__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-paper-alt); color: var(--c-ink-soft); }
.acards--us .acard__ic { background: var(--c-brand-light); color: var(--c-brand); }
.acards--us .acard--end .acard__ic { border-radius: 50%; background: var(--c-accent); color: var(--c-brand); }
.acard__text { min-width: 0; }
.acard__text b { display: block; color: var(--c-ink); font: 700 0.975rem/1.25 var(--font-display); letter-spacing: -0.005em; }
.acards--us .acard--end b { color: var(--c-brand); }
.acard__text small { display: block; margin-top: 2px; color: var(--c-ink-soft); font-size: 0.8125rem; }
@media (max-width: 899px) { .sva__pair { grid-template-columns: 1fr; } .sva__shot { aspect-ratio: 4 / 3.6; } }

/* ---------- week: the signature, on the navy ground ---------- */
.svw__stage { position: relative; max-width: 1100px; margin: 0 auto; container-type: inline-size; }
.scene.svw__week { width: 100%; height: 430px; }
.svw__stop { top: -52px; right: 0; }
/* the planner's height follows its own width (its layouts turn at 760 and 480 px of it), measured at the point with
   every job landed: the whole week, with at most a little to spare */
@container (max-width: 999px) { .scene.svw__week { height: 470px; } }
@container (max-width: 899px) { .scene.svw__week { height: 500px; } }
@container (max-width: 759px) { .scene.svw__week { height: 690px; } }
@container (max-width: 480px) { .scene.svw__week { height: 660px; } }
@container (max-width: 430px) { .scene.svw__week { height: 730px; } }
@container (max-width: 360px) { .scene.svw__week { height: 760px; } }
@container (max-width: 336px) { .scene.svw__week { height: 800px; } }

/* ---------- mix: the plan, cut for each business ---------- */
.svm__in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; }
.svm__photo { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.svm__photo > img { object-position: 40% 50%; }
.svm__stage { position: relative; z-index: 2; margin-left: -72px; }
.scene.svm__mix { width: 100%; height: 500px; }
.svm__stop { top: -46px; right: 0; }
/* the laptop's screen (h.screen, designed at 480 x 300) */
.lap { box-sizing: border-box; display: grid; align-content: center; justify-items: start; gap: 12px; width: 100%; height: 100%; padding: 30px 40px; background: var(--c-paper); color: var(--c-brand); }
.lap__mk { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--c-brand); color: var(--c-accent); }
.lap__title { font: 800 46px/1.02 var(--font-display); letter-spacing: -0.035em; }
.lap__biz { color: var(--c-ink-soft); font: 600 24px/1.2 var(--font-text); }
.lap__ready { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-brand); font: 800 22px/1 var(--font-display); }
@media (max-width: 1099px) { .svm__in { grid-template-columns: 1fr; } .svm__photo { max-width: 760px; } .svm__stage { margin: -56px 0 0; } .svm__stop { top: -46px; } }
@media (max-width: 599px) { .scene.svm__mix { height: 600px; } .lap__biz, .lap__ready { display: none; } }
