/* services.css: the Services page's parts, placed and sized with the tokens of system.css. */

/* ================= hero: the words on the navy, a framed laptop whose screen fills up, the search over its corner ================= */
.svc-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 60px) var(--gutter) clamp(72px, 8vw, 104px); background: var(--c-ink) url('../../img/circuit-ink.svg') center top / cover no-repeat; color: var(--c-on-ink); }
.svc-hero__words { position: relative; z-index: 0; text-align: center; }
/* the circuit fades out behind the words, so no line or ring runs through them */
.svc-hero__words::before { content: ""; position: absolute; z-index: -1; inset: -16px -6% -8px; background: radial-gradient(closest-side, var(--c-ink) 74%, transparent); }
.svc-hero__title { margin: 0 0 16px; font-size: min(5.4rem, 6.4vw); line-height: 1.02; letter-spacing: -0.025em; }
.svc-hero__title em { font-style: normal; color: var(--c-accent); white-space: nowrap; }
.svc-hero__line { margin: 0 auto 24px; max-width: 34em; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.svc-hero__cta { justify-content: center; }
.svc-hero__cta .cta-note { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.svc-hero__cta .cta-note .icon-tick { background: var(--c-accent); color: var(--c-on-accent); }
.svc-hero__stage { position: relative; width: min(100%, 1120px); margin: clamp(32px, 4vw, 48px) auto 0; }
.svc-hero__frame { position: relative; overflow: hidden; width: calc(100% - 200px); aspect-ratio: 2.02; border: 2px solid var(--c-ink); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-pop-accent); }
/* the laptop stands left of the frame's middle, clear of the search that hangs over the frame's right side */
.svc-hero__fig { position: absolute; left: -20%; top: 50%; width: 120%; aspect-ratio: 16 / 9; margin: 0; transform: translateY(-50%); }
.svc-hero__cal { width: 100%; height: 100%; background: var(--c-paper); }
/* the calendar fits the laptop's screen whole, four rows, its days readable at the size the screen is drawn */
.svc-hero__fig .svc-hero__cal .fc-card { padding: 12px 20px; }
.svc-hero__fig .svc-hero__cal .fc-days { margin-bottom: 8px; }
.svc-hero__fig .svc-hero__cal .fc-days span { font-size: 16px; }
.svc-hero__fig .svc-hero__cal .fc-slot { height: 52px; }
.svc-hero__stage .svc-hero__search { position: absolute; right: 0; bottom: 8px; width: 450px; overflow: visible; }
/* the new-request card lands under the results, never on their words */
.svc-hero__stage .svc-hero__search .sd-pop { bottom: -52px; }
.svc-hero__stop { top: 12px; right: 212px; }
@media (max-width: 1099px) {
  /* the search stands on the frame's foot at every width */
  .svc-hero__frame { width: 100%; aspect-ratio: 1.45; }
  .svc-hero__fig { left: 0; width: 100%; }
  .svc-hero__fig .svc-hero__cal .fc-days span { font-size: 26px; }
  .svc-hero__stage .svc-hero__search { position: relative; right: auto; bottom: auto; width: min(100%, 460px); margin: -204px auto 0; }
  .svc-hero__stop { right: 12px; }
}
@media (max-width: 760px) {
  .svc-hero__title { font-size: min(3.3rem, 10.6vw); }
  .svc-hero__title em { display: block; }
  .svc-hero__frame { aspect-ratio: .8; }
  .svc-hero__fig { width: 190%; left: -45%; top: -40px; transform: none; }
}

/* ================= found: Dana's search, the map on the side clear of her ================= */
/* the picture's phone and leak stay clear in the middle: the map on the left, over the cupboards; the words on the right */
.found .band__clip img { object-position: 0 50%; }
.found .chapter__shade { background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 96%, transparent) 0%, color-mix(in srgb, var(--c-ink) 90%, transparent) 28%, transparent 40%); }
.found .chapter__in { grid-template-columns: minmax(0, 430px) minmax(0, 1fr) minmax(0, 390px); gap: 0; }
.found .chapter__words { grid-column: 3; grid-row: 1; }
.found .head__title { font-size: clamp(2.3rem, 1.6rem + 1.9vw, 3.1rem); }
.found__stage { position: relative; grid-column: 1; grid-row: 1; }
.found__map { height: 560px; }
.found__stop { top: 6px; right: 6px; }
/* base scenes draw an icon on a lime chip in the brand's text color: on this site it takes the ink */
.found__map, .ads__funnel, .trust__island { --c-on-brand: var(--c-on-accent); }
@media (max-width: 1099px) {
  .found .chapter__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .found .chapter__words { grid-column: 2; }
}
@media (max-width: 899px) {
  /* on the phone the map stands on the picture's foot, the words under it on the navy */
  .found { --found-top: min(62vw, 300px); padding-top: var(--found-top); }
  .found .band__clip { bottom: auto; height: calc(var(--found-top) + 300px); }
  .found .band__clip img { object-position: 30% 50%; }
  .found .chapter__shade { background: linear-gradient(180deg, transparent 0, transparent calc(var(--found-top) + 170px), var(--c-ink) calc(var(--found-top) + 300px)); }
  .found .chapter__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .found .chapter__words { grid-column: 1; grid-row: 2; }
  .found__stage { grid-column: 1; grid-row: 1; }
  .found__map { height: 540px; }
}

/* ================= ads: a framed clip, the funnel over its edge ================= */
/* the photo's point is the hand on the tablet, so the funnel stands on the photo's edge, never over them */
.ads__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.ads__stage { position: relative; }
.ads__media { width: 60%; aspect-ratio: .86; }
.ads__media img { object-position: 38% 50%; }
.ads__stage .ads__funnel { position: absolute; right: 0; top: 50%; width: 400px; height: 460px; margin-top: -230px; overflow: visible; }
.ads__stop { top: 12px; left: 12px; right: auto; }
.ads__words .head { margin-bottom: 24px; }
.ads__words .head__title { font-size: clamp(2.3rem, 1.6rem + 1.9vw, 3rem); }
.svc-card--brand { box-shadow: var(--shadow-pop-brand); }
@media (max-width: 1139px) {
  .ads__grid { grid-template-columns: 1fr; gap: 32px; }
  .ads__words { order: -1; }
}
@media (max-width: 899px) {
  .ads__media { width: 100%; aspect-ratio: 1.5; }
  .ads__media img { object-position: 50% 50%; }
  .ads__stage .ads__funnel { position: relative; right: auto; top: auto; width: min(100%, 440px); height: 460px; margin: -56px auto 0; }
}

/* ================= turn: the sentence wired together, the wire drawn by the scroll ================= */
.turn { overflow: hidden; padding-block: clamp(96px, 13vw, 176px); isolation: isolate; }
.turn__wires { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.turn__wires path { fill: none; stroke: var(--c-accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.turn__wires circle { fill: var(--c-blue); stroke: var(--c-accent); stroke-width: 3; }
.turn__wires circle[data-lit] { fill: var(--c-accent); }
.turn__title { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(20px, 3vw, 44px); margin: 0; font-size: min(6.6rem, 7.4vw); line-height: 1; letter-spacing: -0.03em; }
.turn__title em { font-style: normal; color: var(--c-accent); }
.turn__w { white-space: nowrap; }
.turn__w--1 { grid-column: 1 / span 5; }
.turn__w--2 { grid-column: 6 / -1; justify-self: end; }
.turn__w--3 { grid-column: 1 / span 5; }
.turn__w--4 { grid-column: 6 / -1; justify-self: end; }
@media (max-width: 760px) {
  .turn__title { grid-template-columns: 1fr; padding-left: 34px; font-size: min(3.5rem, 10.8vw); row-gap: 18px; }
  .turn__w { grid-column: 1 !important; justify-self: start !important; }
}

/* ================= trust: the comparing, on the laptop ================= */
.trust__stage { position: relative; align-self: end; }
.trust__island { height: 340px; }
@media (max-width: 899px) { .trust__island { height: 320px; } }

/* ================= leads: Dana on the phone, the call that books itself ================= */
.leads__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(72px, 9vw, 136px); align-items: center; }
.leads__stage { position: relative; }
.leads__media { aspect-ratio: 1.08; }
.leads__media img { object-position: 12% 50%; }
.leads__stage .leads__book { position: absolute; left: 0; right: -64px; top: 50%; height: 560px; margin-top: -280px; overflow: visible; }
.leads__stop { top: 12px; left: 12px; right: auto; }
.leads__words .head { margin-bottom: 24px; }
@media (max-width: 899px) {
  .leads__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .leads__words { order: -1; }
  .leads__media { aspect-ratio: auto; height: 470px; }
  .leads__media img { object-position: 38% 30%; }
  .leads__stage .leads__book { position: relative; left: auto; right: auto; top: auto; height: 320px; margin: -172px 0 0; }
}

/* ================= mix: the plan as a wiring board ================= */
.mix__stage { position: relative; }
.mix__stop { top: 6px; right: 6px; z-index: 2; }
.mix__head { margin-bottom: clamp(24px, 3vw, 40px); }
.mix__board { height: 560px; }
.mix__cta { margin-top: clamp(28px, 3.4vw, 44px); }
.mix__cta .cta-row { justify-content: center; }
.mix__cta .cta-note { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.mix__cta .cta-note .icon-tick { background: var(--c-accent); color: var(--c-on-accent); }
@media (max-width: 759px) { .mix__board { height: 720px; } }

/* ================= day: the same week, before and after, in pairs ================= */
.day__board { position: relative; }
.day__stop { top: 12px; right: 12px; z-index: 7; }
.day__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.day__frame { grid-row: 1; aspect-ratio: 1.12; }
.day__frame--before { grid-column: 1; }
.day__frame--after { grid-column: 2; }
.day__frame--before img { filter: grayscale(1) contrast(.94) brightness(.92); object-position: 40% 50%; }
.day__tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 7px 13px; border: 2px solid var(--c-ink); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 800 1rem/1 var(--font-display); }
.day__tag--after { background: var(--c-accent); color: var(--c-on-accent); }
.day__row { display: contents; }
.day__card { position: relative; z-index: 3; grid-row: 1; align-self: end; justify-self: start; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 28px); margin: 0 0 var(--at) 14px; padding: 10px 14px; border: 2px solid var(--c-ink); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font: 500 1.02rem/1.2 var(--font-ui); box-shadow: 3px 3px 0 var(--c-ink); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.day__card b { font-weight: 800; }
.day__card--before { grid-column: 1; }
.day__card--after { grid-column: 2; }
.day__card svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; }
.day__card--before svg { background: var(--c-bad); color: var(--c-on-brand); }
.day__card--after svg { background: var(--c-accent); color: var(--c-on-accent); }
.day__row--1 { --at: 130px; }
.day__row--2 { --at: 74px; }
.day__row--3 { --at: 18px; }
@media (max-width: 759px) {
  .day__pair { grid-template-columns: 1fr; }
  .day__frame--before { grid-column: 1; grid-row: 1; }
  .day__frame--after { grid-column: 1; grid-row: 2; }
  .day__card--after { grid-column: 1; grid-row: 2; }
  .day__frame { aspect-ratio: 1.02; }
}

/* ================= see: the owner on the job, the lanes on the van's plain door ================= */
.see { min-height: clamp(760px, 92vh, 920px); }
.see .band__clip img { object-position: 60% 50%; }
.see__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 74%, transparent) 40%, transparent 62%); }
.see__in { width: 100%; }
.see__in .head { max-width: 640px; margin-bottom: 22px; }
.see__stage { position: relative; width: min(100%, 640px); }
.see__flow { height: 480px; }
.see__stop { top: -16px; right: -16px; }
@media (max-width: 899px) {
  /* on the phone the lanes stand on the picture's foot, the words under them on the navy */
  .see { min-height: 0; padding-top: 0; }
  .see .band__clip { bottom: auto; height: 650px; }
  .see .band__clip img { object-position: 78% 30%; }
  .see__shade { background: linear-gradient(180deg, transparent 0, transparent 490px, var(--c-ink) 650px); }
  .see__in { display: flex; flex-direction: column; }
  .see__in .head { order: 2; margin: 28px 0 0; }
  .see__stage { order: 1; width: 100%; margin-top: 316px; }
  .see__flow { height: 640px; }
  .see__stop { top: -46px; right: 0; }
}

/* ================= close: the moment the plumber is welcomed in, the plan's card under their faces ================= */
.svc-close { min-height: 880px; display: grid; align-items: end; padding-top: 372px; padding-bottom: 44px; }
.svc-close .band__clip video { object-position: 50% 0; }
.svc-close__in { width: 100%; display: grid; justify-items: center; }
.svc-close__card { width: min(100%, 560px); padding: 26px 28px 22px; background: var(--c-paper); color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-pop-brand); }
.svc-close__card .head { margin-bottom: 18px; }
.svc-close__card .head__title { font-size: clamp(2rem, 1.3rem + 1.9vw, 2.7rem); }
.svc-close__card .head__title em { color: var(--c-brand-text); }
.svc-close__card .head__line { color: var(--c-ink-soft); font-size: 1.05rem; }
.svc-close .cta-note { color: var(--c-ink-soft); }
@media (max-width: 899px) {
  .svc-close { min-height: 0; padding-top: 60vw; padding-bottom: 36px; }
  .svc-close .band__clip { bottom: auto; height: 68vw; }
}
