/* The Services page's parts: their place and size. Only the tokens of system.css. The groups alternate their sides:
   found (the panel left, Dana's face right), click (the board over the laptop, the faces right), picked (the photo
   turned, the column right), leads (the face left, the call right). */

/* ---------- a group's head and its services (each: what it changes, then its name) ---------- */
.grp__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-3); font-size: 24px; color: var(--c-on-brand); border-radius: 14px; background: var(--grad-main); box-shadow: 0 8px 22px -8px var(--glow-a); transform: rotate(45deg) scale(.86); }
.grp__icon .ico { transform: rotate(-45deg) scale(1.1); stroke-width: 1.9; }
.grp__head .sec__line { max-width: 34rem; }
.grp__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.grp__list li { display: flex; align-items: flex-start; gap: 12px; }
.grp__list .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--c-brand-on-ink); stroke-width: 1.9; }
.grp__list b { display: block; font: 600 var(--fs-ui)/1.4 var(--font-ui); color: var(--c-on-ink); }
.grp__list small { display: block; margin-top: 3px; font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink-muted); }
.grp__list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.grp--glass { border: 1px solid var(--c-night-line); border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-night-2) 74%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-l); }
@media (max-width: 639px) { .grp__list--two { grid-template-columns: 1fr; } }
/* a group's stop icon rides with its scene, just above its corner, at every width */
.sv-found__stage, .sv-click__stage, .sv-picked__stage, .sv-leads__stage { position: relative; }
.stage-stop { top: -50px; right: 0; }

/* ---------- hero: the clip of a phone lighting up at night, the words left, the inbox right ---------- */
.sv-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(780px, calc(100svh - var(--header-h))); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.sv-hero__media { position: absolute; inset: 0; z-index: -2; }
.sv-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.sv-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 56%, transparent) 34%, color-mix(in srgb, var(--c-ink) 8%, transparent) 56%, color-mix(in srgb, var(--c-ink) 22%, transparent) 100%),
    linear-gradient(180deg, transparent 70%, var(--c-ink) 100%),
    radial-gradient(40% 50% at 78% 50%, color-mix(in srgb, var(--glow-b) 26%, transparent), transparent 70%); }
.sv-hero__in { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.sv-hero__title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; }
.sv-hero__line { margin-top: var(--space-4); max-width: 30rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--c-on-ink-soft); }
.sv-hero__act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-5); }
.sv-hero__stage { position: relative; }
.sv-hero__scene { width: 100%; height: clamp(460px, 36vw, 540px); }
.sv-hero__stage { padding-top: 0; }
@media (max-width: 999px) {
  .sv-hero { min-height: 0; }
  .sv-hero__in { grid-template-columns: 1fr; }
  .sv-hero__words { max-width: 40rem; }
  .sv-hero__scene { height: 480px; }
}
@media (max-width: 639px) {
  .sv-hero__scene { width: min(100%, 420px); height: 640px; margin-inline: auto; }
  .sv-hero__act .btn { width: 100%; }
  /* the clip behind the inbox (its poster drawn no wider than its file), the words on the ink and the glow above it */
  .sv-hero__media { top: auto; bottom: 48px; height: 560px; }
  .sv-hero::before { background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink) calc(100% - 660px), color-mix(in srgb, var(--c-ink) 40%, transparent) calc(100% - 480px), color-mix(in srgb, var(--c-ink) 55%, transparent) calc(100% - 60px), var(--c-ink) 100%), radial-gradient(80% 26% at 30% 12%, color-mix(in srgb, var(--glow-a) 26%, transparent), transparent 70%); }
}

/* ---------- found: Dana in her dated kitchen, the group's panel with the map on the left ---------- */
.sv-found { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); }
.sv-found__media { position: absolute; inset: 0; z-index: -2; }
.sv-found__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.sv-found::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 60%, transparent) 45%, transparent 72%), linear-gradient(180deg, var(--c-ink) 0%, transparent 14%, transparent 86%, var(--c-ink) 100%); }
.sv-found__panel { width: min(100%, 720px); padding: clamp(22px, 2.6vw, 40px); }
.sv-found__stage { margin: var(--space-4) 0 var(--space-5); }
.sv-found__scene { width: 100%; height: 440px; }
/* On the phone: the head, then a tall photo (Dana's face in its upper part) with the map standing on its lower part,
   then the services. */
@media (max-width: 760px) {
  .sv-found { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sv-found__in, .sv-found__panel { display: contents; }
  .sv-found::before { display: none; }
  .sv-found .grp__head { grid-row: 1; margin: 0 var(--gutter) var(--space-4); }
  .sv-found__media { grid-row: 2; grid-column: 1; position: relative; inset: auto; height: 960px; }
  .sv-found__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-ink) 0%, transparent 10%, transparent 42%, color-mix(in srgb, var(--c-ink) 55%, transparent) 70%, var(--c-ink) 100%); }
  .sv-found__img { object-position: 71% 40%; }
  .sv-found__stage { grid-row: 2; grid-column: 1; align-self: end; z-index: 1; margin: 0 var(--gutter) 24px; }
  .sv-found__scene { height: 520px; }
  .sv-found .grp__list { grid-row: 3; margin: var(--space-5) var(--gutter) 0; }
}

/* ---------- click: the head and the services, then the couple at their laptop with the week's board ---------- */
.sv-click { padding-block: var(--section-y); }
.sv-click__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--space-4) clamp(2rem, 4vw, 4rem); align-items: end; margin-bottom: var(--space-5); }
.sv-click__top .grp__list { padding: var(--space-4) 0 0; border-top: 1px solid var(--c-night-line); }
.sv-click__frame { position: relative; isolation: isolate; aspect-ratio: 16 / 8.6; min-height: 520px; border: 1px solid var(--c-night-line); border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-2); }
.sv-click__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; }
.sv-click__frame::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(160deg, color-mix(in srgb, var(--c-night-0) 70%, transparent) 0%, transparent 55%); }
/* the board on the frame's dark upper left (the curtain and the wall), clear of both faces, in view as the part arrives */
.sv-click__stage { position: absolute; left: clamp(14px, 2.4vw, 32px); top: clamp(14px, 2.4vw, 32px); width: min(600px, 52%); }
.sv-click__scene { width: 100%; aspect-ratio: 820 / 520; }
.sv-click__stage .stage-stop { top: 0; right: -52px; }
/* Narrower: a tall frame, the couple's faces in its upper part, the board standing on its lower part (the table). */
@media (max-width: 1099px) {
  .sv-click__top { grid-template-columns: 1fr; }
  .sv-click__frame { aspect-ratio: auto; min-height: 0; height: 900px; }
  .sv-click__img { object-position: 90% 40%; }
  .sv-click__frame::before { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--c-night-0) 75%, transparent) 78%); }
  .sv-click__stage { position: absolute; top: auto; left: 16px; right: 16px; bottom: 16px; width: auto; max-width: 720px; margin-inline: auto; }
  .sv-click__stage .stage-stop { top: -50px; right: 0; }
}
@media (max-width: 760px) {
  .sv-click__frame { height: 1240px; }
  .sv-click__img { object-position: 70% 40%; }
}
@media (max-width: 599px) { .sv-click__scene { aspect-ratio: auto; height: 640px; } }

/* ---------- picked: the homeowner in her new kitchen (turned, her face left), the review asked on the right ---------- */
.sv-picked { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); }
.sv-picked__media { position: absolute; inset: 0; z-index: -2; }
.sv-picked__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scaleX(-1); }
.sv-picked::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 66%, transparent) 46%, transparent 70%), linear-gradient(180deg, var(--c-ink) 0%, transparent 14%, transparent 86%, var(--c-ink) 100%); }
.sv-picked__in { display: flex; justify-content: flex-end; }
.sv-picked__col { width: min(100%, 760px); }
.sv-picked__stage { margin: var(--space-4) 0 var(--space-4); }
.sv-picked__scene { width: 100%; height: 600px; }
.sv-picked__col .grp__list { padding: clamp(18px, 2vw, 26px); }
/* On the phone: the head, then a tall photo (her face in its upper part) with the phone and the card on its lower part,
   then the services. */
@media (max-width: 760px) {
  .sv-picked { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sv-picked__in, .sv-picked__col { display: contents; }
  .sv-picked::before { display: none; }
  .sv-picked .grp__head { grid-row: 1; margin: 0 var(--gutter) var(--space-4); }
  .sv-picked__media { grid-row: 2; grid-column: 1; position: relative; inset: auto; height: 1160px; }
  .sv-picked__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-ink) 0%, transparent 10%, transparent 44%, color-mix(in srgb, var(--c-ink) 55%, transparent) 70%, var(--c-ink) 100%); }
  .sv-picked__img { object-position: 75% 40%; }
  .sv-picked__stage { grid-row: 2; grid-column: 1; align-self: end; z-index: 1; margin: 0 var(--gutter) 24px; }
  .sv-picked__scene { height: 600px; }
  .sv-picked .grp__list { grid-row: 3; margin: var(--space-5) var(--gutter) 0; }
}

/* ---------- leads: the contractor at dusk reading his phone on the right, the evening call written up on the calm left, the services at the foot ---------- */
.sv-leads { padding-block: var(--section-y); }
.sv-leads__head { margin-inline: auto; text-align: center; }
.sv-leads__head .grp__icon { margin-inline: auto; }
.sv-leads__head .sec__line { margin-inline: auto; }
.sv-leads__frame { position: relative; isolation: isolate; aspect-ratio: 16 / 9.4; min-height: 620px; border: 1px solid var(--c-night-line); border-radius: var(--radius-l); overflow: hidden; background: var(--c-night-2); }
.sv-leads__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.sv-leads__frame::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-0) 62%, transparent) 0%, transparent 55%), linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c-night-0) 80%, transparent) 100%); }
.sv-leads__stage { position: absolute; top: clamp(14px, 2.4vw, 32px); left: clamp(14px, 2.4vw, 32px); width: min(600px, 50%); }
.sv-leads__scene { width: 100%; aspect-ratio: 820 / 520; }
.sv-leads__stage .stage-stop { top: 0; left: auto; right: -52px; }
.sv-leads__box { position: relative; }
.grp__list--strip { position: absolute; left: clamp(14px, 2.4vw, 32px); right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px 20px; border: 1px solid var(--c-night-line); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-night-1) 76%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* Narrower: a tall frame, the photo filling only its upper part and fading out (his face sits mid-height in the
   photo), so the face clears the call while the call stands more than half on the photo; the services under the frame. */
@media (max-width: 1099px) {
  .sv-leads__frame { aspect-ratio: auto; min-height: 0; height: 900px; }
  .sv-leads__img { height: 720px; object-position: 100% 40%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .sv-leads__frame::before { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--c-night-0) 75%, transparent) 78%); }
  .sv-leads__stage { top: auto; right: 16px; left: 16px; bottom: 16px; width: auto; max-width: 720px; margin-inline: auto; }
  .sv-leads__stage .stage-stop { top: -50px; right: 0; left: auto; }
  .grp__list--strip { position: static; margin-top: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--c-night-2); }
}
@media (max-width: 760px) {
  .sv-leads__frame { height: 1060px; }
  .sv-leads__img { height: 900px; object-position: 75% 40%; }
}
@media (max-width: 599px) {
  .sv-leads__frame { height: 1140px; }
  .sv-leads__img { height: 820px; }
  .sv-leads__scene { aspect-ratio: auto; height: 660px; }
  .grp__list--strip { grid-template-columns: 1fr; }
}

/* ---------- changes: the compare (components.css), its after side's cards kept under the crew's faces ---------- */
.sv-changes .after .cmp__img { object-position: 50% 30%; }
.sv-changes .after .cmp__cards { top: auto; bottom: clamp(14px, 3vw, 40px); transform: none; }
.sv-changes .before .cmp__img { object-position: 50% 30%; }

/* ---------- mix: the signature on the designed ground (the night navy, a faint facet grid, the glow behind the gem) ---------- */
.sv-mix { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); }
.sv-mix__ground { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 46% at 70% 52%, color-mix(in srgb, var(--glow-b) 30%, transparent), transparent 72%),
    radial-gradient(30% 40% at 58% 60%, color-mix(in srgb, var(--glow-a) 18%, transparent), transparent 70%),
    var(--c-night-1); }
.sv-mix__ground::after { content: ''; position: absolute; inset: 0; opacity: .55;
  background-image: repeating-linear-gradient(60deg, color-mix(in srgb, var(--c-spark) 9%, transparent) 0 1px, transparent 1px 56px), repeating-linear-gradient(-60deg, color-mix(in srgb, var(--c-spark) 9%, transparent) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(55% 70% at 66% 50%, #000 15%, transparent 78%); -webkit-mask-image: radial-gradient(55% 70% at 66% 50%, #000 15%, transparent 78%); }
.sv-mix__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.sv-mix__stage { position: relative; }
.sv-mix__scene { width: 100%; height: 460px; }
.sv-mix__stop { top: -52px; right: 0; }
@media (max-width: 999px) {
  .sv-mix__in { grid-template-columns: 1fr; }
  .sv-mix__stop { top: -48px; }
}
@media (max-width: 599px) { .sv-mix__scene { height: 560px; } }

/* ---------- the page's rhythm ---------- */
.sv-changes, .faq { padding-block: var(--section-y); }
.sv-mix + .faq { padding-top: calc(var(--section-y) * 0.8); }
