/* Services (plan.md, Services): its own artifact for a header, then chapters on a photo, a framed photo, a before and
   after, the mix on the designed ground, the questions and the close. Only the tokens of system.css. */

/* ---------- hero: the owner's board, the page's own artifact ---------- */
.svc-hero { overflow: hidden; isolation: isolate; padding-block: clamp(44px, 5vw, 68px) clamp(84px, 8vw, 116px);
  background: radial-gradient(64% 58% at 50% 74%, var(--c-ink-3) 0%, var(--c-ink) 72%); }
.svc-hero__echo { position: absolute; inset: 44% -24% -10%; z-index: -1; opacity: .5; filter: blur(20px); pointer-events: none; }
.svc-hero__echo svg { display: block; width: 100%; height: 100%; animation: svc-drift 26s var(--ease-in-out) infinite alternate paused; }
.svc-hero[data-run] .svc-hero__echo svg { animation-play-state: running; }
.svc-hero:has([data-stop][aria-pressed="true"]) .svc-hero__echo svg { animation-play-state: paused; }
@keyframes svc-drift { from { transform: translateX(-3.5%); } to { transform: translateX(3.5%); } }
.echo__lane rect { fill: color-mix(in srgb, var(--c-on-ink) 7%, transparent); }
.echo__lane circle { fill: color-mix(in srgb, var(--c-on-ink) 18%, transparent); }
.echo__lane--lit circle { fill: var(--c-brand-on-ink); fill-opacity: .55; }
.svc-hero__in { display: grid; justify-items: center; gap: clamp(36px, 4vw, 52px); }
.svc-hero__words { display: grid; justify-items: center; max-width: 1120px; text-align: center; }
.svc-hero__title { margin: 0; font: var(--fw-display) var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: var(--ls-display); text-wrap: balance; }
.svc-hero__title em { font-style: normal; color: var(--c-brand-on-ink); }
.svc-hero__line { margin: 18px 0 0; max-width: 640px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--c-on-ink-soft); text-wrap: balance; }
.svc-hero__go { justify-content: center; margin-top: 28px; }
.svc-hero__board { position: relative; width: min(100%, 940px); }
.svc-hero__scene { width: 100%; height: 480px; }
.svc-hero__stop { right: 0; bottom: -54px; }
.svc-hero__ticks { top: auto; bottom: 0; transform: scaleY(-1); }

/* ---------- glass and light lists: each service with what it gives the owner ---------- */
.glist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.glist__item { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: var(--radius-m); }
.glist__item b { font: 650 var(--fs-ui)/1.3 var(--font-ui); }
.glist__item span { font-size: var(--fs-small); line-height: 1.45; }
.glist--glass .glist__item { color: var(--c-on-ink); background: color-mix(in srgb, var(--c-ink-2) 62%, transparent); border: 1px solid var(--c-line-ink); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.glist--glass .glist__item span { color: var(--c-on-ink-soft); }
.glist--light .glist__item { background: var(--c-paper-alt); border: 1px solid var(--c-line); }
.glist--light .glist__item span { color: var(--c-ink-soft); }

/* ---------- chapters on a full-bleed photo: found, picked (#trust) ---------- */
.svc-ch { overflow: hidden; isolation: isolate; padding-block: clamp(96px, 8vw, 124px) clamp(40px, 4vw, 56px); }
.svc-ch__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svc-ch__photo { position: absolute; top: -1px; right: -1px; width: calc(130% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 100% 35%; }
.svc-ch__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 11, .9) 0%, rgba(11, 12, 11, .74) 25%, rgba(11, 12, 11, .2) 40%, rgba(11, 12, 11, .1) 62%, rgba(11, 12, 11, .38) 100%),
    linear-gradient(0deg, rgba(11, 12, 11, .86) 0%, rgba(11, 12, 11, 0) 30%); }
.svc-ch__in { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr) 440px; grid-template-areas: "words . stage" "list list list"; column-gap: 32px; row-gap: clamp(32px, 4vw, 48px); align-items: center; }
.svc-ch__words { grid-area: words; }
.svc-ch__words .head { margin-bottom: 0; }
.svc-ch__words .head__title { font-size: clamp(2rem, 1.15rem + 1.9vw, 2.85rem); }
.svc-ch__stage { grid-area: stage; position: relative; height: 560px; }
.svc-ch__stage--island { height: 440px; }
.svc-ch__scene { width: 100%; height: 100%; } /* a scene's own CSS makes its host relative: sized, never placed by inset */
.svc-ch__stop { right: 0; top: -52px; }
.svc-ch__list { grid-area: list; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-ch--picked .svc-ch__photo { object-position: 100% 40%; }
/* found: its photo is 1536 px wide, so it is drawn at most 117% of the screen; the map stands out into the right margin,
   clear of the woman's face */
.svc-ch--found .svc-ch__photo { width: calc(117% + 2px); }
.svc-ch--found .svc-ch__in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr) 400px; }
.svc-ch--found .svc-ch__stage { margin-right: calc(24px - max(var(--gutter), (100vw - var(--max-w)) / 2)); }

/* Narrower: the photo becomes a band with its scene standing on it (never below it), the words and the list under it. */
@media (max-width: 1099px) {
  .svc-ch { --ch-h: 640px; --st-h: 540px; padding-block: 0 clamp(48px, 7vw, 72px); }
  .svc-ch__media { position: relative; inset: auto; z-index: 0; height: var(--ch-h); }
  .svc-ch__photo, .svc-ch--found .svc-ch__photo { left: -1px; right: auto; width: calc(100% + 2px); object-position: 50% 40%; }
  .svc-ch__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, rgba(11, 12, 11, 0) 22%), linear-gradient(90deg, rgba(11, 12, 11, .35), rgba(11, 12, 11, 0) 45%); }
  .svc-ch__in, .svc-ch--found .svc-ch__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "words" "list"; padding-top: 36px; }
  .svc-ch__stage, .svc-ch--found .svc-ch__stage { position: absolute; top: calc(var(--ch-h) - var(--st-h) - 20px); left: var(--gutter); width: 400px; height: var(--st-h); margin: 0; }
  .svc-ch--picked { --st-h: 340px; }
  .svc-ch--picked .svc-ch__stage { left: auto; right: var(--gutter); width: 420px; }
  .svc-ch__stop { right: 0; top: -50px; }
  .svc-ch__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A phone: the found photo shows its window and its stained ceiling (no face under the map); the picked photo keeps the
   man's face above the shape. */
@media (max-width: 767px) {
  .svc-ch--found { --ch-h: 760px; }
  .svc-ch--found .svc-ch__photo { object-position: 0% 30%; }
  .svc-ch--picked { --ch-h: 560px; }
  .svc-ch--picked .svc-ch__photo { object-position: 60% 30%; }
  .svc-ch__stage, .svc-ch--found .svc-ch__stage, .svc-ch--picked .svc-ch__stage { left: var(--gutter); right: var(--gutter); width: auto; }
  .svc-ch__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- click: the problem itself, framed, with the ads working over it ---------- */
.svc-click__frame { position: relative; isolation: isolate; overflow: hidden; height: clamp(560px, 50vw, 660px); border-radius: var(--radius-l); background: var(--c-ink); }
.svc-click__photo { position: absolute; inset: -1px; z-index: -1; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 55%; }
.svc-click__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 12, 11, .5) 0%, rgba(11, 12, 11, 0) 40%, rgba(11, 12, 11, 0) 60%, rgba(11, 12, 11, .5) 100%); }
.svc-click__stage { position: absolute; left: clamp(16px, 2.6vw, 32px); top: 50%; width: 440px; height: 460px; translate: 0 -50%; }
.svc-click__scene { width: 100%; height: 100%; }
.svc-click__list { position: absolute; right: clamp(16px, 2.6vw, 32px); top: 50%; width: min(340px, 30%); translate: 0 -50%; }
.svc-click__stop { right: 16px; bottom: 16px; }

/* Narrower: a tall framed photo with the ads standing on its lower part (the pipes and the drip above them), the list
   under the frame. */
@media (max-width: 899px) {
  .svc-click__frame { --fr-h: clamp(760px, 190vw, 860px); height: auto; overflow: visible; border-radius: 0; background: none; }
  .svc-click__photo { position: relative; inset: auto; z-index: 0; display: block; width: 100%; height: var(--fr-h); border-radius: var(--radius-l); object-position: 50% 45%; }
  .svc-click__frame::before { display: none; }
  .svc-click__stage { left: 12px; right: 12px; top: calc(var(--fr-h) - 472px); width: auto; height: 460px; translate: none; }
  .svc-click__list { position: relative; right: auto; top: auto; width: auto; margin-top: 12px; translate: none; }
  .svc-click__stop { top: calc(var(--fr-h) - 524px); right: 12px; bottom: auto; } /* just above the ads, on the photo */
}

/* ---------- calls (#leads): one call, two endings ---------- */
.svc-calls__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-calls__side { position: relative; isolation: isolate; overflow: hidden; height: 600px; margin: 0; border-radius: var(--radius-l); background: var(--c-ink); }
.svc-calls__media { position: absolute; inset: 0; z-index: -1; }
.svc-calls__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.svc-calls__side--without .svc-calls__photo { object-position: 55% 50%; filter: var(--grade) contrast(.84) brightness(.8); }
.svc-calls__side--with .svc-calls__photo { object-position: 30% 50%; }
.svc-calls__photo--flip { transform: scaleX(-1); }
.svc-calls__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 11, .55) 0%, rgba(11, 12, 11, 0) 46%); }
.svc-calls__tag { position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 650 14px/1 var(--font-ui); color: var(--c-on-ink); background: color-mix(in srgb, var(--c-ink) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.svc-calls__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-on-ink-soft); }
.svc-calls__tag--us { left: auto; right: 20px; } /* the call card takes the top left */
.svc-calls__tag--us::before { background: var(--c-brand-on-ink); }
.svc-calls__cards { position: absolute; left: 20px; bottom: 20px; display: grid; gap: 10px; width: min(320px, calc(100% - 40px)); margin: 0; padding: 0; list-style: none; }
.svc-calls__card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); color: var(--c-on-ink); background: color-mix(in srgb, var(--c-ink-2) 72%, transparent); border: 1px solid var(--c-line-ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: var(--kit-in, 1); } /* the tag stays through the turn (the first item); the three cards go as one */
.svc-calls__card i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--c-on-ink-soft); background: color-mix(in srgb, var(--c-on-ink) 9%, transparent); }
.svc-calls__card b { display: block; font: 650 15px/1.3 var(--font-ui); }
.svc-calls__card small { display: block; font-size: 13px; line-height: 1.35; color: var(--c-on-ink-soft); }
.svc-calls__card--lost { border-color: color-mix(in srgb, var(--c-on-ink) 26%, transparent); }
.svc-calls__scene { width: 100%; height: 100%; }
.svc-calls__stop { right: 0; top: -56px; }
.svc-calls__list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }

@media (max-width: 899px) {
  .svc-calls__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-calls__side { height: 560px; }
  .svc-calls__side--with { height: 600px; }
  .svc-calls__side--without .svc-calls__photo { object-position: 50% 50%; }
  .svc-calls__side--with .svc-calls__photo { object-position: 22% 50%; }
  .svc-calls__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- mix: the signature, on the designed ground ---------- */
.svc-mix__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; container: mixstage / inline-size; }
.svc-mix__scene { width: min(100%, 1000px); height: 520px; }
.svc-mix__goals { display: flex; align-items: center; gap: 10px; width: min(100%, 1000px); padding-left: 57px; }
.svc-mix__pick { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svc-mix__goal { min-width: 64px; height: 46px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 999px; font: 700 17px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--c-ink); background: var(--c-paper); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.svc-mix__goal:hover { border-color: var(--c-ink-soft); }
.svc-mix__goal[aria-pressed="true"] { color: var(--c-on-brand); background: var(--c-brand); border-color: var(--c-brand); }
.svc-mix__stop { right: 0; top: 0; }
@container mixstage (max-width: 900px) { .svc-mix__goals { padding-left: 37px; } }
@container mixstage (max-width: 759px) {
  .svc-mix__goals { order: -1; justify-content: center; flex-wrap: wrap; padding-left: 0; }
  .svc-mix__pick { position: static; width: 100%; height: auto; overflow: visible; clip-path: none; text-align: center; font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-ink-soft); }
  .svc-mix__scene { height: auto; }
  .svc-mix__stop { top: 104px; } /* beside the dial's top, under the goals */
}

/* The close: the door clip's two faces sit in its top third, so the words start under them at every width
   (on the phone its crop puts the two faces at the band's edges, clear of the words). */
#close .band__video { object-position: 50% 0%; }
#close.close { padding-top: clamp(250px, 19vw, 280px); }
@media (max-width: 700px) {
  #close .band__video { object-position: 50% 14%; }
  #close.close { padding-top: clamp(96px, 11vw, 160px); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-hero__echo svg { animation: none; }
  .svc-mix__goal { transition: none; }
}
