@import url("../arsenal/bento-live.css");
/* site\assets\css\pages\services.css: the Services page (plan.md, Services), the director's. Tokens from
   design\system.css only. Grounds (D1): the header white with its photo band, every service on the tint, Get found on
   its photo, the break green, the other groups white, the mix dark, the FAQ on the concrete, the close on its photo. */

:is(#found, .svc-row, #work) { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* ---------- hero: the h1 centered on white, the general shot as a full-bleed band, four steps landing ---------- */
.svc-hero { position: relative; background: var(--c-paper); }
.svc-hero__head { display: grid; justify-items: center; gap: var(--space-3); padding-block: clamp(2rem, 1rem + 2.6vw, 3.75rem) clamp(1.75rem, 1rem + 1.6vw, 2.5rem); text-align: center; }
.svc-hero__title { max-width: 17ch; font-size: var(--fs-display); text-wrap: balance; }
.svc-hero__line { max-width: 52ch; font-size: calc(var(--fs-body) * 1.12); color: var(--c-ink-soft); text-wrap: balance; }
.svc-hero__actions { display: grid; justify-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.svc-hero__cta-line { font-size: var(--fs-small); color: var(--c-ink-soft); }
/* the band shows the counter's foot, so the phone stands in the first screen */
.svc-hero__band { position: relative; height: clamp(400px, 34vw, 600px); overflow: hidden; background: var(--c-paper-alt); }
.svc-hero__media { position: absolute; inset: 0; overflow: hidden; }
.svc-hero__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 100%; }
/* the four steps behind a booking, left of the phone */
.svc-hero__demo { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: clamp(20px, 2.2vw, 32px); width: min(350px, 34%); }
.svc-hero__tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.svc-hero__tools .stop, .svc-all .bento-live__tools .stop, .svc-found__tools .stop, .svc-row__tools .stop, .svc-mix__tools .stop { position: relative; }
.svc-hero__chips { display: grid; gap: 10px; }
.svc-chip { display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-m); opacity: clamp(0, (var(--kit-in, 1) - 0.7) * 3.4, 1); }
/* the header's steps and the close's work order keep the kit's hold (their first item stays through the turn); every
   later item comes and goes quickly in place, never sinking back the way it came (step 13, #1 and #3) */
.svc-chip__ico { box-sizing: border-box; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--c-brand-light); fill: none; stroke: var(--c-brand-text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-chip--star .svc-chip__ico { background: color-mix(in srgb, var(--c-accent) 14%, var(--c-paper)); stroke: var(--c-accent-text); }
.svc-chip p { display: grid; gap: 1px; min-width: 0; }
.svc-chip b { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.svc-chip span { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--c-ink-soft); }
/* each step's block clicks into place as it lands */
.svc-chip__blk { width: 22px; height: 22px; transform: translateY(calc((1 - var(--kit-in, 1)) * -16px)); }

/* ---------- all: bento-live as it stands, in the site's work orders, on the tint ---------- */
/* the moments' small words in the text face (Saira, the site's label face, is too wide for the tiles' rows) */
.svc-all .bento-live { --bt-surface: var(--c-paper); --bt-face: var(--c-paper); --bt-line: var(--c-line); --font-ui: var(--font-text); }
.svc-all .bento-live__tools { justify-content: space-between; }
/* the sources' names: a line tall enough for the letters (at 1 they read as cut) */
.svc-all .bm-bars li > span { line-height: 1.4; }
.svc-all .bento-live__tile { border-radius: var(--radius-m); }
.svc-all .bento-live__title { font-weight: 800; font-stretch: var(--stretch-display); }
.svc-all__photo--rank { object-position: 50% 45%; }
.svc-all__photo--lead { object-position: 30% 22%; }

/* ---------- found: the homeowner asking her phone, the map climbing on the right, the group's card at the foot ---------- */
.svc-found { position: relative; overflow: hidden; background: var(--c-paper-alt); }
.svc-found__media { position: absolute; inset: 0; overflow: hidden; }
.svc-found__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 35% 22%; }
/* its height keeps the photo's file sharp at 1440 px (the photo is 1536 px wide) */
.svc-found__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); grid-template-areas: ". map" "card card"; row-gap: 20px; padding-block: 2.5rem; }
.svc-found__map { grid-area: map; margin: 0; }
.svc-found__tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.scene.svc-found__scene { height: 520px; }
/* Saira's letters stand taller than lmap's line of 1.3 (Lessons): the rows' names and lines get a line of 1.5, the
   margins giving back what it adds, so the rows keep their height */
.svc-found .scene[data-scene="lmap"] .lm-biz b { line-height: 1.5; margin-block: -1.4px; }
.svc-found .scene[data-scene="lmap"] .lm-biz small { line-height: 1.5; margin-block: -1.3px; }
/* the same for the funnel's tag (13 px on 1.2) and the new site's name in site-convert (17.5 px on 1) */
#groups [data-scene="funnel"] .fn-tag { line-height: 1.5; margin-block: -1.95px; }
#groups [data-scene="site-convert"] .n-logo > span { line-height: 1.5; margin-block: -4.4px; }
.svc-found__card { grid-area: card; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 1rem + 2.4vw, 3.5rem); padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-l); }
.svc-found__title { font-size: var(--fs-h2); text-wrap: balance; }
.svc-found__line { margin-top: var(--space-3); color: var(--c-ink-soft); font-size: calc(var(--fs-body) * 1.04); text-wrap: pretty; }
.svc-found__cta { margin-top: var(--space-4); }
.svc-found__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-content: center; }
.svc-found__list li:nth-last-child(2) { border-bottom: 0; }

/* ---------- break: the line set big, near-black on the green, its four blocks dropping in with the scroll ---------- */
.svc-break { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); text-align: center; }
.svc-break__in { display: grid; justify-items: center; }
.svc-break__title { max-width: 11ch; font-size: clamp(3rem, 1rem + 8.4vw, 8.25rem); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.svc-break__line { max-width: 34ch; margin: clamp(1rem, 0.75rem + 0.9vw, 1.5rem) auto 0; font-size: calc(var(--fs-body) * 1.12); text-wrap: balance; }
.svc-break__row { display: flex; gap: clamp(10px, 0.4rem + 1vw, 18px); margin-top: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
/* block i drops as the scroll's fill passes about i / 6.5, and locks (all four by 0.58, when the band stands whole
   on the screen); the row shifts a little against the pointer */
.svc-break__b { --p: clamp(0, calc(var(--fill, 1) * 9 - var(--i) * 1.4), 1); display: block; width: clamp(50px, 2rem + 3.2vw, 92px); height: clamp(50px, 2rem + 3.2vw, 92px); opacity: var(--p); transform: translate3d(calc(var(--fx, 0) * -6px), calc((1 - var(--p)) * -84px), 0); transition: transform 380ms var(--ease-out), opacity 300ms var(--ease-out); }
.svc-break__b .blk { width: 100%; height: 100%; }
.svc-break .blk__t { fill: var(--c-paper); }
.svc-break .blk__l { fill: color-mix(in srgb, var(--c-paper) 62%, var(--c-brand)); }
.svc-break .blk__r { fill: color-mix(in srgb, var(--c-ink) 52%, var(--c-brand)); }
.svc-break__b:last-child .blk__t { fill: var(--c-accent-2); }
.svc-break__b:last-child .blk__l { fill: var(--c-accent); }
.svc-break__b:last-child .blk__r { fill: color-mix(in srgb, var(--c-accent) 66%, var(--c-ink)); }
.svc-break__cta { margin-top: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
@media (prefers-reduced-motion: reduce) { .svc-break__b { opacity: 1; transform: none; transition: none; } }

/* ---------- groups: three rows, each a framed photo with its scene, the group's services beside it ---------- */
.svc-rows { display: grid; gap: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 1rem + 3.5vw, 4.5rem); }
.svc-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.svc-row--flip .svc-row__pic { order: 2; }
.svc-row__pic { position: relative; margin: 0; height: 700px; }
.svc-row__frame { position: absolute; inset: 0; }
.svc-row__tools { position: absolute; z-index: 4; top: 14px; display: flex; align-items: center; gap: 8px; }
.svc-row--ads .svc-row__tools, .svc-row--reviews .svc-row__tools { right: 14px; flex-direction: row-reverse; }
.svc-row--answer .svc-row__tools { left: 14px; }
.scene.svc-row__scene { position: absolute; z-index: 3; top: 56px; bottom: 0; }
/* the funnel on the right half (the roofer's face on the left) */
.scene.svc-row__scene--ads { right: 0; width: 56%; }
/* the website, as a phone, on the right (her face on the left) */
.scene.svc-row__scene--reviews { right: 0; width: max(52%, 360px); }
/* the call and the week on the pale wall, left (the engineer on the right): the stage spans the frame, so both
   cards show (callbook keeps them 324 wide at its left) */
.scene.svc-row__scene--answer { left: 0; width: 100%; }
.svc-row__photo, .svc-row__frame img { object-position: 50% 40%; }
.svc-row--ads .svc-row__frame img { object-position: 30% 35%; }
.svc-row--reviews .svc-row__frame img { object-position: 22% 30%; }
.svc-row--answer .svc-row__frame img { object-position: 70% 50%; }
.svc-row__title { font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.35rem); text-wrap: balance; }
.svc-row__line { max-width: 44ch; margin-top: var(--space-3); color: var(--c-ink-soft); font-size: calc(var(--fs-body) * 1.04); text-wrap: pretty; }
.svc-row__words .svc-list { margin-top: var(--space-4); }

/* ---------- mix: the signature, on the dark green ---------- */
.svc-mix__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); align-items: center; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.svc-mix__words .head__title { font-size: var(--fs-h2); text-wrap: balance; }
.svc-mix__words .head__line { margin-top: var(--space-3); }
.svc-mix__stage { position: relative; margin: 0; }
.svc-mix__tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.scene.svc-mix__scene { height: 540px; }

/* ---------- faq ---------- */
.svc-faq__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); align-items: start; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.svc-faq__head { margin-bottom: 0; }
.svc-faq__cta { margin-top: var(--space-3); }

/* ---------- close: the crew on the roof, the dark green panel over the sky, a booked job landing ---------- */
.svc-close .endband__media > img { object-position: 40% 42%; }
.svc-close__demo { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(28px, 4vw, 56px); width: min(290px, 30%); }
.svc-close__stop { top: -46px; right: 0; }
.svc-job { position: relative; padding-bottom: 16px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.svc-job__strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--c-line); border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--c-paper-alt); font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--c-ink-soft); }
.svc-job__title { padding: 14px 14px 6px; font-family: var(--font-display); font-stretch: var(--stretch-display); font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.svc-job__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 0 14px; }
.svc-job__meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; white-space: nowrap; color: var(--c-ink-soft); }
.svc-job__ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-job__stamp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 2px solid var(--c-brand-text); border-radius: var(--radius-s); color: var(--c-brand-text); font-family: var(--font-ui); font-size: 0.85rem; font-weight: 800; letter-spacing: var(--track-caps); text-transform: uppercase; transform: rotate(-5deg); }
.svc-job__stamp svg { width: 13px; height: 13px; fill: currentColor; }
.svc-job__arrive { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); font-family: var(--font-ui); font-weight: 700; white-space: nowrap; opacity: clamp(0, (var(--kit-in, 1) - 0.7) * 3.4, 1); }
.svc-job__arrive .svc-job__ico { color: var(--c-brand-text); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .svc-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .svc-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .svc-mix__in { grid-template-columns: minmax(0, 1fr); }
  .svc-mix__words { max-width: 640px; }
}
/* Below 900 px each scene keeps at least half of itself on its photo (as on the computer), laid over the photo's
   lower part with the faces clear above it; the tag and the stop icon under it. */
@media (max-width: 900px) {
  .svc-found__media { position: relative; inset: auto; height: 520px; }
  .svc-found__media > img { object-position: 30% 22%; }
  .svc-found__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "card"; margin-top: -304px; padding-top: 0; }
  .svc-found__map { justify-self: center; width: min(100%, 460px); }
  .svc-found__card { grid-template-columns: minmax(0, 1fr); }
  .svc-found__list { grid-template-columns: minmax(0, 1fr); }
  .svc-found__list li:nth-last-child(2) { border-bottom: 1px dashed var(--c-line); }
  .svc-row, .svc-row--flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .svc-row--flip .svc-row__pic { order: 0; }
  /* rows: the photo above the overlap (--top), the overlap (--o), the scene below the photo (--rest), the tools */
  .svc-row__pic { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) var(--o) var(--rest) auto; height: auto; }
  .svc-row__frame { position: relative; inset: auto; grid-row: 1 / 3; grid-column: 1; }
  .scene.svc-row__scene { position: relative; inset: auto; grid-row: 2 / 4; grid-column: 1; width: auto; height: auto; }
  .svc-row__tools, .svc-row--ads .svc-row__tools, .svc-row--reviews .svc-row__tools, .svc-row--answer .svc-row__tools { position: relative; inset: auto; grid-row: 4; grid-column: 1; flex-direction: row; justify-content: space-between; margin-top: 10px; }
  .svc-row--ads { --top: 230px; --o: 240px; --rest: 210px; }
  .svc-row--reviews { --top: 260px; --o: 300px; --rest: 260px; }
  .svc-row--answer { --top: 0px; --o: 560px; --rest: 0px; }
  .svc-faq__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* the phone's first screen: a tighter header, and the four steps as one-line chips, all above the cookie notice */
  .svc-hero__head { gap: var(--space-2); padding-block: 1.5rem 1.25rem; }
  .svc-hero__title { font-size: clamp(2rem, 1.1rem + 4.6vw, 2.5rem); }
  .svc-hero__line { font-size: 1rem; }
  .svc-hero__actions { margin-top: var(--space-1); }
  .svc-hero__band { height: auto; aspect-ratio: 4 / 5; max-height: 640px; }
  .svc-hero__media > img { object-position: 57% 50%; }
  .svc-hero__demo { left: 16px; right: 16px; top: 12px; bottom: auto; width: auto; }
  .svc-hero__tools { margin-bottom: 8px; }
  .svc-hero__tools .stop { width: 32px; height: 32px; }
  .svc-hero__chips { gap: 6px; }
  .svc-chip { grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 8px; padding: 5px 10px 5px 5px; }
  .svc-chip__ico { width: 26px; height: 26px; padding: 5px; }
  .svc-chip p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .svc-chip b, .svc-chip span { font-size: 0.875rem; }
  .svc-chip span::before { content: "· "; }
  .svc-chip__blk { width: 16px; height: 16px; }
  .scene.svc-mix__scene { height: 660px; }
  .svc-close__demo { left: 16px; right: auto; top: 16px; bottom: auto; width: min(250px, 66%); }
  .svc-close__stop { top: 0; right: auto; left: calc(100% + 10px); }
  .svc-job__title { font-size: 1.1rem; }
  .svc-job__arrive { padding: 9px 12px; font-size: 0.9rem; }
}
@media (max-width: 599px) {
  /* the website as a phone, 660 high */
  .svc-row--reviews { --top: 260px; --o: 340px; --rest: 320px; }
}
@media (max-width: 480px) {
  .svc-found__media { height: 420px; }
  .scene.svc-found__scene { height: 500px; }
  /* the call card alone, at the photo's foot */
  .svc-row--answer { --top: 200px; --o: 320px; --rest: 0px; }
}
