/* services.css: the Services page (src\pages\services.mjs; plan.md, "Services (Part 2)"). Tokens only. */

/* the kit's header that changes its picture (kit.md), as it gives it */
[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); }

/* ---------- hero: split, the words left on white, the general shot in a tile with channels-merge over it ---------- */
.svc-hero { padding-block: clamp(2rem, 1.2rem + 2.4vw, 3.5rem) var(--section-y); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(1.5rem, 0.5rem + 2.4vw, 3rem); align-items: center; }
.svc-hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.04em; text-wrap: balance; }
.svc-hero__line { margin-top: 1.25rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--c-ink-soft); max-width: 32em; }
.svc-hero__line strong { color: var(--c-ink); font-weight: 650; }
.svc-hero__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.svc-hero__tile { height: 560px; }
.svc-hero__slide video, .svc-hero__slide .kit-first { object-position: var(--pos, 50% 50%); }
.svc-hero__grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: color-mix(in srgb, var(--c-ink) 24%, transparent); }
.scene.svc-hero__scene { position: absolute; inset: 18px; z-index: 4; }
.svc-hero__stop { left: 14px; bottom: 14px; }
@media (max-width: 1100px) {
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-hero__copy { max-width: 720px; }
}
/* the phone: the tile kept short enough for the first clip's still to stay sharp, the stop in a strip of footage over
   the scene, where the first screen shows it */
@media (max-width: 640px) {
  .svc-hero__tile { height: 548px; }
  .scene.svc-hero__scene { inset: 58px 10px 10px; }
  .svc-hero__stop { left: auto; bottom: auto; top: 10px; right: 10px; }
}

/* ---------- maps: the aerial full-bleed, the words left, geogrid lower right ---------- */
.svc-maps { min-height: 760px; display: grid; align-items: center; }
.svc-maps .chapter__bg { object-position: 50% 50%; }
.svc-maps__in { align-items: start; }
@media (min-width: 901px) { .svc-maps__in { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); } }
.svc-maps__stage { position: relative; height: 540px; margin-top: 5.5rem; }
.scene.svc-maps__scene { position: absolute; inset: 0; }
@media (max-width: 900px) {
  .svc-maps .chapter__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 45%, color-mix(in srgb, var(--c-ink) 30%, transparent) 100%); }
  .svc-maps__stage { margin-top: 0; height: 560px; }
}

/* ---------- ai: framed, split, the tile left, the words right ---------- */
.svc-ai__grid { display: grid; grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr); gap: clamp(1.5rem, 0.5rem + 2.4vw, 3rem); align-items: center; }
.svc-ai__tile { height: 560px; }
.svc-ai__tile > video { object-position: 50% 55%; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.svc-ai__shade { background: color-mix(in srgb, var(--c-ink) 18%, transparent); }
.scene.svc-ai__scene { position: absolute; inset: 24px; }
.svc-ai__stop { top: 14px; right: 14px; }
.svc-ai__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.035em; text-wrap: balance; }
.svc-ai__line { margin-top: 1.1rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--c-ink-soft); }
.svc-ai__line strong { color: var(--c-ink); font-weight: 650; }
@media (max-width: 1000px) {
  .svc-ai__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-ai__copy { order: -1; max-width: 720px; }
}
@media (max-width: 600px) {
  .svc-ai__tile { height: 646px; }
  .scene.svc-ai__scene { inset: 58px 12px 12px; }
  .svc-ai__stop { top: 10px; right: 12px; }
}

/* ---------- website: on the key field (pale), site-convert centered under its words ---------- */
.svc-web__stage { position: relative; max-width: 980px; height: 580px; margin-inline: auto; }
.scene.svc-web__scene { position: absolute; inset: 0; }
.svc-web__stop { top: -16px; right: -16px; }
@media (max-width: 640px) {
  .svc-web__stage { max-width: 380px; height: 740px; }
  .svc-web__stop { top: -14px; right: -6px; }
}

/* ---------- ads: split, the words left, the evening photo framed right with the funnel over its window side ---------- */
.svc-ads__grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.svc-ads__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.035em; text-wrap: balance; }
.svc-ads__line { margin-top: 1.1rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--c-ink-soft); }
.svc-ads__line strong { color: var(--c-ink); font-weight: 650; }
.svc-ads__tile { height: 640px; }
.svc-ads__tile > .tile__photo { object-position: 0% 45%; }
.svc-ads__shade { background: color-mix(in srgb, var(--c-ink) 14%, transparent); }
.scene.svc-ads__scene { position: absolute; left: 16px; top: 50%; width: min(452px, calc(100% - 32px)); height: 470px; transform: translateY(-50%); }
.svc-ads__stop { top: 14px; right: 14px; }
@media (max-width: 1100px) {
  .svc-ads__grid { grid-template-columns: 1fr; }
  .svc-ads__copy { max-width: 720px; }
  .svc-ads__tile { height: 600px; }
}
@media (max-width: 600px) {
  .svc-ads__tile { height: 560px; }
  .scene.svc-ads__scene { left: 12px; width: calc(100% - 24px); }
}

/* ---------- reviews: offset, the photo leads, the phone hangs over its right edge ---------- */
.svc-rev__head { max-width: 760px; }
.svc-rev__stage { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: auto 1fr; align-items: start; }
.svc-rev__photo { margin: 0; position: relative; z-index: 1; grid-column: 1; grid-row: 1; }
.svc-rev__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.svc-rev__note { grid-column: 1; grid-row: 2; margin-top: 1rem; max-width: 34em; font-size: var(--fs-body); color: var(--c-ink-soft); }
.svc-rev__note b { color: var(--c-ink); font-weight: 650; margin-right: .3em; }
.svc-rev__phone { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / span 2; height: 620px; margin-left: -96px; margin-top: 84px; }
.scene.svc-rev__scene { position: absolute; inset: 0; }
.svc-rev__stop { top: -50px; right: 0; }
/* the phone: photo, its line, then the review on the phone, with no overlap (the phone would hide the photo) */
@media (max-width: 900px) {
  .svc-rev__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .svc-rev__photo, .svc-rev__note, .svc-rev__phone { grid-column: auto; grid-row: auto; }
  .svc-rev__phone { margin: 4rem auto 0; width: min(380px, 100%); height: 620px; }
  .svc-rev__stop { top: -52px; right: 0; }
}

/* ---------- answered: the plumber's job full-bleed, the words left, voice-captions lower right ---------- */
.svc-ans { min-height: 880px; display: grid; align-items: center; }
.svc-ans .chapter__bg { object-position: 50% 30%; }
.svc-ans__in { align-items: end; }
@media (min-width: 901px) { .svc-ans__in { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); } }
.svc-ans__stage { position: relative; height: 480px; margin-top: 15rem; }
.scene.svc-ans__scene { position: absolute; inset: 0; }
@media (max-width: 900px) {
  .svc-ans .chapter__bg { object-position: 12% 50%; }
  .svc-ans .chapter__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 45%, color-mix(in srgb, var(--c-ink) 30%, transparent) 100%); }
  .svc-ans__stage { margin-top: 0; height: 520px; }
}
@media (max-width: 600px) {
  .svc-ans__stage { height: 660px; }
}

/* ---------- mix: on the key field (navy), mix-keys centered ---------- */
.svc-mix__stage { position: relative; max-width: 1000px; height: 560px; margin-inline: auto; }
.scene.svc-mix__scene { position: absolute; inset: 0; }
.svc-mix__stop { top: -16px; right: -16px; }
@media (max-width: 760px) {
  .svc-mix__stage { height: 640px; }
  .svc-mix__stop { top: -14px; right: -6px; }
}

/* ---------- faq: the head left, the questions right ---------- */
.svc-faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start; }
.svc-faq__head { margin-bottom: 0; }
.svc-faq__link { color: var(--c-ink); text-decoration: none; border-bottom: 2px solid var(--c-brand); }
.svc-faq__link:hover { border-bottom-color: var(--c-accent); }
@media (max-width: 900px) { .svc-faq__in { grid-template-columns: 1fr; } }

/* ---------- close: the plumber welcomed at the door, the words left ---------- */
.svc-close .close__bg { object-position: 72% 30%; }
@media (max-width: 760px) { .svc-close .close__bg { object-position: 78% 22%; } }

/* the home page's links name two parts by their plan's first names: their anchors sit at the top of the parts they mean */
.svc-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
