/* services.css: the Services page's parts, placed and sized with the tokens of system.css (plan.md, "Services").
   Every scene stays on its photo or clip at every width (half of it at least, as the site check measures). The base
   scenes' own CSS comes after this file and sets their host's position, hence the section's class in front of each
   scene's placement. */

/* The services of a part, each its name and what it changes for the owner: solid dark cards over a picture. */
.svlist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.svlist__item { display: grid; gap: 3px; padding: 13px 16px 14px; border-radius: var(--radius-m); border: 1px solid var(--c-line-ink); background: var(--c-ink-2); color: var(--c-on-ink); box-shadow: var(--shadow-m); }
.svlist__item b { font: 700 1rem/1.3 var(--font-ui); }
.svlist__item span { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft-on-ink); }

/* ---------- hero: a phone lighting up with a new booking, the photo bleeding in from the left edge; every channel
   running into one inbox over the open wood; the words on solid ink at the right ---------- */
.svh { --h: clamp(600px, min(calc(100svh - 96px), 52vw), 820px); position: relative; display: grid; align-items: center; height: var(--h); overflow: hidden; isolation: isolate; background: var(--c-ink); color: var(--c-on-ink); }
.svh .cta-row__note { color: var(--c-ink-soft-on-ink); }
.svh__media { position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 58%; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 79%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 79%, transparent 100%); }
.svh__photo { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.svh__photo > img { object-position: 100% 50%; }
/* the phone's lit screen (designed at 300 x 650, laid on the photo's screen) */
.svh__screen { display: grid; align-content: start; width: 100%; height: 100%; padding: 150px 14px 0; background: var(--c-ink); }
.svh__note { display: grid; justify-items: start; gap: 4px; padding: 18px 16px 20px; border-radius: 22px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--c-ink) 80%, transparent); }
.svh__app { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 13px; background: var(--c-brand); color: var(--c-on-brand); }
.svh__app svg { width: 30px; height: 30px; }
.svh__note b { font: 800 32px/1.1 var(--font-ui); }
.svh__note span { font: 700 27px/1.25 var(--font-ui); }
.svh__note small { font: 600 25px/1.3 var(--font-ui); color: var(--c-ink-soft); }
.svh__inner { position: relative; }
.svh__copy { width: min(32rem, 31vw); margin-left: auto; }
.svh__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.2rem + 2.3vw, 3.7rem); line-height: 1.05; letter-spacing: -0.012em; }
.svh__sweep { width: 200px; margin-top: var(--space-4); }
.svh__line { margin-top: var(--space-4); font-size: 1.1875rem; line-height: 1.6; color: var(--c-ink-soft-on-ink); }
/* the inbox in its tall form over the wood, centered between the left edge and the phone (the photo is drawn to the
   header's height, so the phone's left edge is 58vw less 0.517 x that height) */
.svh .svh__scene { --sw: clamp(340px, 26vw, 420px); position: absolute; top: 50%; left: max(24px, calc((58vw - 0.517 * var(--h) - var(--sw)) / 2)); width: var(--sw); height: min(640px, calc(var(--h) - 72px)); translate: 0 -50%; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.svh__stop { position: absolute; z-index: 5; left: calc(58vw - 0.517 * var(--h)); bottom: var(--space-4); }
/* tablet: the same picture as a band across the top (the phone at its right, the inbox over the wood), the words under it */
@media (max-width: 1279px) {
  .svh { --hb: clamp(560px, min(64vw, 100svh - 240px), 680px); display: block; height: auto; padding-bottom: var(--section-y); }
  .svh__media { position: relative; z-index: 0; width: 100%; height: var(--hb); overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .svh .svh__scene { --sw: 340px; top: calc(var(--hb) / 2); left: max(20px, calc((min(65.5vw, 100vw - 0.5175 * var(--hb)) - var(--sw)) / 2)); height: calc(var(--hb) - 48px); }
  .svh__stop { top: calc(var(--hb) - 64px); bottom: auto; left: min(65.5vw, 100vw - 0.5175 * var(--hb)); }
  .svh__inner { padding-top: clamp(2rem, 5vw, 3rem); }
  .svh__copy { width: auto; max-width: 40rem; margin-left: 0; }
}
@media (min-width: 900px) and (max-width: 1279px) { .svh .svh__scene { --sw: 400px; } }
/* phone: the words first, then the inbox over the wooden table (the phone stays beyond the band's right edge) */
@media (max-width: 699px) {
  .svh { display: flex; flex-direction: column; }
  .svh__inner { order: 1; padding-top: var(--space-5); }
  .svh__media { order: 2; height: 720px; margin-top: var(--space-5); }
  .svh__photo > img { object-position: 0% 50%; }
  .svh .svh__scene { order: 3; position: relative; top: auto; left: auto; translate: none; width: min(420px, calc(100% - 2 * var(--gutter))); height: 640px; margin: -700px auto 0; }
  .svh__stop { top: auto; left: auto; right: var(--gutter); bottom: calc(var(--section-y) + 8px); }
}

/* ---------- found: the heading on the light ground, then a homeowner searching at her kitchen table, full-bleed,
   the four services on her left and the map on her right ---------- */
.svf { padding-bottom: 0; }
.svf .sec-head { margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.svf__band { position: relative; height: clamp(560px, 44vw, 680px); overflow: hidden; isolation: isolate; }
.svf__footage { position: absolute; z-index: -1; top: -1px; left: -1px; width: calc(100% + 2px); max-width: none; height: calc(100% + 2px); object-fit: cover; object-position: 50% 28%; }
.svf__inner { display: grid; grid-template-columns: clamp(240px, 21vw, 290px) minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: var(--space-4); height: 100%; }
.svf__list { grid-column: 1; }
.svf__scene { grid-column: 3; height: min(560px, calc(100% - 40px)); }
.svf__stop { position: absolute; z-index: 5; right: var(--gutter); top: var(--space-4); }
/* tablet and phone: the clip at the top of the band, the map over its lower half, the services under it */
@media (max-width: 899px) {
  .svf__band { height: auto; }
  .svf__footage { height: 481px; object-position: 36% 30%; }
  .svf__inner { grid-template-columns: minmax(0, 1fr); height: auto; padding-top: 200px; padding-bottom: var(--section-y); }
  .svf__scene { grid-column: 1; grid-row: 1; width: 100%; height: 520px; }
  .svf__list { grid-column: 1; grid-row: 2; }
  .svf__stop { top: 136px; }
}

/* ---------- ads: a large crisp frame, the plumber on his call by the truck, the funnel over the street at its
   right, the three services along its foot ---------- */
.sva__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-rows: minmax(0, 1fr) auto; min-height: clamp(600px, 50vw, 660px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-ink); box-shadow: var(--shadow-l); }
.sva__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.sva__scene { grid-column: 2; grid-row: 1 / 3; min-height: 480px; }
.sva__list { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 0 var(--space-4) var(--space-4); }
.sva__stop { position: absolute; z-index: 5; left: var(--space-4); top: var(--space-4); }
/* tablet and phone: the photo at the top of the frame, the plumber above the funnel, the services on ink under it */
@media (max-width: 899px) {
  .sva__frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding-top: 300px; }
  .sva__photo { height: 794px; object-position: 30% 12%; -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent); mask-image: linear-gradient(#000 calc(100% - 90px), transparent); }
  .sva__scene { grid-column: 1; grid-row: 1; min-height: 470px; }
  .sva__list { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); padding: 0 var(--space-3) var(--space-3); }
  .sva__stop { top: 240px; left: auto; right: var(--space-3); }
}

/* ---------- mix: the page's signature on the designed ground ---------- */
.mix__head { margin-inline: auto; text-align: center; }
.mix__head .sec-head__line { margin-inline: auto; }
.mix__stage { position: relative; }
.mix__scene { display: block; height: 560px; }
.mix__stop { position: absolute; z-index: 5; right: 0; bottom: 0; }
@media (max-width: 679px) {
  .mix__scene { height: 700px; }
  /* the stop beside the scene's two foot cards, so the scene and its stop fit in one phone screen */
  .mix .mix__scene .smx-foot { right: 56px; }
}

/* ---------- picked: the plumber at the door, the choice made, the island over the front yard; the four services
   beside it on paper ---------- */
.svp__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svp__frame { position: relative; height: clamp(520px, 44vw, 640px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-l); }
.svp__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 88% 30%; }
.svp .svp__scene { position: absolute; left: 0; bottom: 0; width: min(420px, 64%); height: 340px; }
.svp__stop { position: absolute; z-index: 5; right: var(--space-3); bottom: var(--space-3); }
.svp__copy .sec-head { margin-bottom: var(--space-4); }
.svp__list { gap: 0; border-bottom: 1px solid var(--c-line); }
.svp__list .svlist__item { padding: 14px 0 15px; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; background: none; box-shadow: none; color: var(--c-ink); }
.svp__list .svlist__item span { color: var(--c-ink-soft); }
@media (max-width: 899px) {
  .svp__grid { grid-template-columns: minmax(0, 1fr); }
  .svp__copy { order: -1; }
  .svp__frame { height: 540px; }
  .svp__photo { object-position: 92% 0%; }
  .svp .svp__scene { width: 100%; height: 300px; }
}

/* ---------- never: the plumber under a sink, full-bleed; the call that books itself over his legs, the words and
   the three services on a shade at the right ---------- */
.svn { position: relative; display: grid; align-items: center; min-height: clamp(660px, 52vw, 780px); padding: var(--section-y) 0; overflow: hidden; isolation: isolate; color: var(--c-on-ink); }
.svn__media { position: absolute; inset: 0; z-index: -1; }
.svn__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.svn__veil { position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0, color-mix(in srgb, var(--c-ink) 74%, transparent) 30%, transparent 54%); }
.svn__stop { position: absolute; z-index: 5; left: var(--gutter); bottom: var(--space-4); }
.svn .svn__scene { position: absolute; top: 50%; left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter))); width: 500px; height: min(600px, calc(100% - 64px)); translate: 0 -50%; }
.svn__inner { position: relative; }
.svn__copy { width: min(27rem, 32vw); margin-left: auto; }
.svn__copy .sec-head { margin-bottom: var(--space-4); }
/* tablet and phone: the words, then the photo with the call card over its lower part, then the services */
@media (max-width: 899px) {
  .svn { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .svn__media { position: relative; z-index: 0; order: 2; height: 720px; margin-top: var(--space-4); }
  .svn__veil { display: none; }
  .svn__stop { bottom: auto; top: var(--space-3); left: auto; right: var(--gutter); }
  .svn .svn__scene { position: relative; order: 3; top: auto; left: auto; translate: none; width: min(480px, calc(100% - 2 * var(--gutter))); height: 300px; margin: -316px auto 0; }
  .svn__inner, .svn__copy { display: contents; }
  .svn__copy .sec-head { order: 1; margin: 0 var(--gutter); }
  .svn__list { order: 4; margin: var(--space-5) var(--gutter) 0; }
}

/* ---------- close: the words and the picker on solid ink at the left; at the right, in a crisp frame, the job done
   (the plumber shows a smiling homeowner her repaired faucet), the job's cards landing at its lower left ---------- */
.svx { overflow: hidden; }
.svx__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svx__copy .picker { max-width: 34rem; }
.svx__frame { position: relative; height: clamp(520px, 44vw, 640px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-l); }
.svx__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.svx__stop { position: absolute; z-index: 5; right: var(--space-3); top: var(--space-3); }
.svx__cards { position: absolute; left: var(--space-3); bottom: var(--space-3); display: grid; gap: 10px; width: min(290px, 52%); }
.svx__card { display: flex; align-items: center; gap: 12px; padding: 12px 16px 13px; border-radius: var(--radius-m); border: 1px solid var(--c-line-ink); background: var(--c-ink-2); color: var(--c-on-ink); box-shadow: var(--shadow-m); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.svx__card b { display: block; font: 700 1rem/1.3 var(--font-ui); }
.svx__card small { display: block; font-size: var(--fs-small); line-height: 1.4; color: var(--c-ink-soft-on-ink); }
.svx__dot { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); }
.svx__dot::after { content: ""; position: absolute; left: 12px; top: 8px; width: 8px; height: 14px; border-right: 2.5px solid var(--c-on-brand); border-bottom: 2.5px solid var(--c-on-brand); transform: rotate(45deg); }
.svx__stars { flex: none; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--c-accent); }
.svx__sweep { width: 200px; }
.svx__title { margin-top: var(--space-4); max-width: 13ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.04; }
.svx__line { margin: var(--space-3) 0 var(--space-4); font-size: 1.125rem; color: var(--c-ink-soft-on-ink); }
@media (max-width: 899px) {
  .svx__grid { grid-template-columns: minmax(0, 1fr); }
  .svx__frame { order: -1; height: clamp(360px, 84vw, 500px); }
  .svx__photo { object-position: 62% 20%; }
  .svx__cards { width: min(290px, calc(100% - 2 * var(--space-3))); }
}
