/* services.css: the Services page's parts (plan.md "Services (Part 2)"), from system.css's tokens only. */

/* ---------- the services inside each group's visual: a name and one line each ---------- */
.svcs { display: grid; margin: 0; padding: 0; list-style: none; }
.svcs li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-content: start; padding: 14px 0; border-top: 1px solid var(--c-line); }
.svcs li:first-child { border-top: 0; padding-top: 0; }
.svcs__tick { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand); }
.svcs__tick svg { width: 16px; height: 16px; }
.svcs b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.svcs li > span:last-child { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.45; }
/* frosted, over footage */
.svcs--glass { grid-template-columns: 1fr 1fr; gap: 0 22px; padding: 20px 22px; border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow-l); color: var(--c-ink); }
.svcs--glass li:nth-child(2) { border-top: 0; padding-top: 0; }
/* two columns on the paper */
.svcs--grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.svcs--grid li:nth-child(2) { border-top: 0; padding-top: 0; }
/* on the navy, in a row */
.svcs--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svcs--row li, .svcs--row li:first-child { padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--c-on-ink) 14%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--c-on-ink) 5%, transparent); }
.svcs--ink { color: var(--c-on-ink); }
.svcs--ink .svcs__tick { background: color-mix(in srgb, var(--c-teal) 22%, transparent); color: var(--c-brand-on-ink); }
.svcs--ink li > span:last-child { color: color-mix(in srgb, var(--c-on-ink) 78%, transparent); }
@media (max-width: 899px) {
  .svcs--row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .svcs--row li, .svcs--row li:first-child { padding: 16px 18px; }
}
@media (max-width: 560px) {
  .svcs--glass, .svcs--grid { grid-template-columns: minmax(0, 1fr); }
  .svcs--glass li:nth-child(2), .svcs--grid li:nth-child(2) { border-top: 1px solid var(--c-line); padding-top: 14px; }
}

/* ---------- hero: a split on white, the general shot in a frame that runs to the screen's edge ---------- */
/* the kit's header CSS (kit.md), as it is */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }

.sv-hero { position: relative; display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--max-w) * .45)) minmax(0, calc(var(--max-w) * .55)) minmax(var(--gutter), 1fr); align-items: center; min-height: clamp(600px, calc(100svh - 76px), 760px); padding: clamp(40px, 5vw, 72px) 0; background: var(--c-paper); }
.sv-hero__copy { grid-column: 2; display: grid; gap: 22px; padding-right: clamp(24px, 4vw, 64px); }
.sv-hero__title { font-size: clamp(2.3rem, 1.25rem + 3.1vw, 3.85rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.sv-hero__line { max-width: 42ch; font-size: 1.1875rem; line-height: 1.55; color: var(--c-ink-soft); }
.sv-hero__acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; margin-top: 8px; }
.sv-hero__frame { grid-column: 3 / 5; position: relative; height: clamp(500px, 44vw, 620px); }
.sv-hero__clips { position: absolute; inset: 0; overflow: hidden; border-radius: 28px 0 0 28px; background: var(--c-ink); box-shadow: var(--shadow-l); }
.sv-hero__clips video, .sv-hero__clips .kit-first { object-position: 50% 60%; }
.sv-hero__stop { top: 18px; right: 18px; }
.scene.sv-hero__scene { position: absolute; z-index: 3; left: -44px; bottom: 34px; width: 340px; }
@media (max-width: 1100px) {
  .scene.sv-hero__scene { left: -20px; width: 320px; }
}
@media (max-width: 899px) {
  .sv-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px 0 0; }
  .sv-hero__copy { grid-column: 1; padding: 0 var(--gutter); }
  .sv-hero__acts .cta, .sv-hero__acts .btn { width: 100%; }
  /* narrower, the clip grows tall and the card (about 300 px once full) stands in its upper part, all of it on the clip,
     the phone on the table below it */
  .sv-hero__frame { grid-column: 1; height: clamp(520px, 140vw, 620px); margin: 32px 0 0 var(--gutter); }
  .sv-hero__clips video, .sv-hero__clips .kit-first { object-position: 64% 60%; }
  .scene.sv-hero__scene { left: auto; right: calc(var(--gutter) * .5 + 12px); bottom: auto; top: 58px; width: min(360px, calc(100vw - 2 * var(--gutter) - 24px)); }
  .sv-hero { padding-bottom: 32px; }
  .sv-hero__stop { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* ---------- found: the homeowner searching, Northgate's map in glass beside her ---------- */
.sv-found { padding-top: var(--section-y); background: var(--c-paper); }
.sv-found .head { margin-bottom: 44px; }
.sv-found__band { position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: 820px; background: var(--c-ink); }
.sv-found__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sv-found__video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 50%; transform: scale(1.12); transform-origin: 100% 50%; }
.sv-found__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 38%, color-mix(in srgb, var(--c-ink) 30%, transparent) 62%, color-mix(in srgb, var(--c-ink) 45%, transparent) 100%); }
.sv-found__panel { position: relative; align-self: center; justify-self: end; display: grid; gap: 16px; width: min(700px, 50%); margin-right: max(var(--gutter), calc((100vw - var(--max-w)) / 2)); padding: 72px 0 48px; }
.scene.sv-found__scene { height: 520px; }
.sv-found__stop { top: 22px; left: 22px; }
/* on a narrow screen the footage stays the ground under the map: her face in its upper part, the map over its lower part */
@media (max-width: 899px) {
  .sv-found__band { display: block; min-height: 0; background: var(--c-ink); }
  .sv-found__media { inset: 0 0 auto; height: 940px; }
  .sv-found__video { transform: none; object-position: 37% 50%; }
  .sv-found__media::after { background: linear-gradient(180deg, transparent 0%, transparent 82%, var(--c-ink) 100%); }
  .sv-found__panel { width: auto; margin: 0; padding: 380px var(--gutter) 48px; }
  .scene.sv-found__scene { height: 540px; }
  .sv-found__stop { top: 12px; left: auto; right: 12px; width: 36px; height: 36px; }
}

/* ---------- ads: the plumber taking the call, the ad turning into a booked job in glass over the frame ---------- */
.sv-ads { padding: var(--section-y) 0; background: var(--c-paper-alt); }
.sv-ads__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px) minmax(var(--gutter), calc((100vw - var(--max-w)) / 2)); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
.sv-ads__frame { position: relative; overflow: hidden; height: clamp(520px, 44vw, 620px); border-radius: 0 28px 28px 0; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
.sv-ads__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 0% 30%; }
.sv-ads__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 38%, transparent) 0%, transparent 46%); }
.scene.sv-ads__scene { position: absolute; z-index: 2; right: 20px; top: 50%; width: 380px; height: 480px; transform: translateY(-50%); }
.sv-ads__stop { top: 18px; right: 18px; }
.sv-ads__words { display: grid; gap: 30px; }
@media (max-width: 1100px) {
  .sv-ads__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .sv-ads__frame { border-radius: 0; height: clamp(500px, 56vw, 580px); }
  .sv-ads__photo { object-position: 0% 22%; }
  .sv-ads__words { padding: 0 var(--gutter); max-width: 760px; }
}
/* on a phone the photo stays the ground under the ad: his face in its upper part, the panel over its lower part */
@media (max-width: 699px) {
  .sv-ads__frame { height: 680px; }
  .sv-ads__photo { object-position: 30% 0%; }
  .sv-ads__frame::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 40%, transparent) 0%, transparent 50%); }
  .scene.sv-ads__scene { top: auto; bottom: 12px; left: 0; right: 0; transform: none; width: auto; height: 456px; }
  .sv-ads__stop { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* ---------- leads: the night over the rooftops, on the navy with the ribbon's light ---------- */
.sv-night { position: relative; isolation: isolate; overflow: hidden; padding: var(--section-y) 0; color: var(--c-on-ink); background: radial-gradient(110% 60% at 50% 100%, color-mix(in srgb, var(--c-teal) 20%, var(--c-ink)) 0%, var(--c-ink) 62%), var(--c-ink); }
.sv-night__ribbon { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.sv-night__stage { position: relative; margin: 48px 0 40px; }
.scene.sv-night__scene { height: 420px; }
.sv-night__stop { top: 12px; right: max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
@media (max-width: 899px) {
  .sv-night__stop { top: 8px; right: 12px; width: 36px; height: 36px; }
}
@media (max-width: 599px) {
  .sv-night__stage { margin: 32px 0; }
  .scene.sv-night__scene { height: 500px; }
}

/* ---------- trust: the job done, the review landing on Northgate's card ---------- */
.sv-picked { padding: var(--section-y) 0; background: var(--c-paper); }
.sv-picked__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 40px; }
.sv-picked__frame { position: relative; overflow: hidden; height: clamp(540px, 46vw, 640px); border-radius: 28px; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
.sv-picked__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 15%; }
.sv-picked__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 32%, transparent) 0%, transparent 34%); }
.sv-picked__stage { position: absolute; z-index: 2; top: 0; bottom: 0; right: 16px; width: 360px; }
.scene.sv-picked__scene { position: absolute; inset: 0; }
.sv-picked__stop { top: 18px; left: -52px; }
/* narrower, the photo stays the ground: the faces in its upper part, the phone over the sink and the hands below them */
@media (max-width: 1100px) {
  .sv-picked__top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sv-picked__frame { height: 960px; border-radius: 22px; }
  .sv-picked__photo { object-position: 50% 50%; }
  .sv-picked__frame::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 30%, transparent) 0%, transparent 45%); }
  .sv-picked__stage { top: auto; bottom: 20px; right: auto; left: 50%; width: min(380px, calc(100% - 24px)); height: 600px; transform: translateX(-50%); }
  .sv-picked__stop { top: 0; left: auto; right: 0; width: 36px; height: 36px; }
}
@media (max-width: 559px) {
  .sv-picked__frame { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .sv-picked__photo { object-position: 63% 50%; }
  .sv-picked__stage { width: min(380px, 100%); }
}

/* ---------- mix: the signature, on the designed ground (the cool gray, the ribbon faint across it) ---------- */
.sv-mix { position: relative; isolation: isolate; overflow: hidden; padding: var(--section-y) 0; background: var(--c-paper-alt); }
.sv-mix__ribbon { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.sv-mix__in { position: relative; display: grid; justify-items: center; gap: 44px; }
.sv-mix__stage { position: relative; width: 100%; max-width: 1040px; }
.scene.sv-mix__scene { width: 100%; height: 560px; }
.sv-mix__stop { top: -48px; right: 0; }
@media (max-width: 899px) {
  .scene.sv-mix__scene { height: 460px; }
  .sv-mix__in { gap: 32px; }
}
@media (max-width: 639px) {
  .scene.sv-mix__scene { height: 680px; }
  .sv-mix__stop { top: -40px; right: 0; width: 36px; height: 36px; }
}

/* ---------- close: the plumber between jobs, a booking landing, the words centered at the foot ---------- */
.sv-close { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(620px, 50vw, 720px); background: var(--c-ink); color: var(--c-on-ink); }
.sv-close__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sv-close__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.sv-close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 94%, transparent) 0%, color-mix(in srgb, var(--c-ink) 72%, transparent) 30%, transparent 62%); }
.sv-close__card { position: absolute; z-index: 2; top: 13%; left: 63%; }
.sv-close__in { display: grid; justify-items: center; gap: 16px; padding-top: 72px; padding-bottom: clamp(56px, 6vw, 88px); text-align: center; }
.sv-close__in h2 { font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.sv-close__in > p { max-width: 46ch; font-size: 1.1875rem; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.sv-close__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 16px; margin-top: 10px; }
.sv-close__stop { top: 20px; right: 20px; }
@media (max-width: 899px) {
  .sv-close { display: block; min-height: 0; }
  .sv-close__media { position: relative; inset: auto; height: clamp(280px, 70vw, 460px); z-index: 0; }
  .sv-close__media::after { background: linear-gradient(180deg, transparent 60%, var(--c-ink) 100%); }
  .sv-close__card { top: calc(clamp(280px, 70vw, 460px) - 116px); left: 12px; }
  .sv-close__in { padding-top: 12px; }
  .sv-close__acts { width: 100%; }
  .sv-close__acts .cta, .sv-close__acts .btn { width: 100%; }
  .sv-close__stop { top: 12px; right: 12px; width: 36px; height: 36px; }
}
