/* The Services page (plan.md, "Services"): where each part's scene and panel sit over its picture. The shared patterns
   (the inner header, the chapter, before and after, the extras, the signature stage, the close) are in components.css. */

/* the header: two clips of hands on a phone taking turns, the search climbing over them */
.svc-hero { aspect-ratio: 4 / 3.15; }
.svc-hero__scene { right: 1rem; bottom: 1rem; width: min(470px, calc(100% - 2rem)); }
.svc-hero .svc-hero__scene .sd-card { padding-bottom: 36px; } /* room under the third result: the new request lands below its words */
@media (max-width: 900px) {
  .svc-hero { aspect-ratio: auto; height: 27rem; }
  .svc-hero__scene { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
}

/* found: the kitchen across the band, the map over its left part, the services over its right part */
.found__wrap { position: relative; }
.found__stage { height: clamp(560px, 46vw, 660px); }
.found__photo { object-position: 54% 50%; }
.found__map { left: 1.25rem; top: 50%; translate: 0 -50%; width: min(430px, 37%); height: 540px; }
.found__panel { position: absolute; z-index: 2; right: 1.25rem; top: 50%; translate: 0 -50%; width: min(25rem, 33%); }
@media (max-width: 1080px) {
  .found__map { width: min(430px, 50%); }
  .found__panel { position: static; translate: none; width: auto; margin-top: 1.25rem; background: var(--c-paper); color: var(--c-ink); border-color: var(--c-ground-line); box-shadow: var(--shadow-s); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .found__panel .svc-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); column-gap: 2rem; }
  .found__panel .svc-list b { color: var(--c-ink); }
  .found__panel .svc-list span { color: var(--c-ink-soft); }
}
@media (max-width: 760px) {
  .found__stage { height: 800px; }
  .found__photo { object-position: 55% 30%; }
  .found__map { left: 0; right: 0; top: auto; bottom: 0; translate: none; width: auto; height: 490px; }
  .found__stage .svc-stop--top { top: auto; bottom: 498px; } /* just above the map, so both fit in one view */
}

/* ads: the words and the three ad services at the left; the van lower at the right, the ads at work over the van */
.ads__grid { align-items: start; }
.ads__stage { margin-top: clamp(0rem, -2rem + 7vw, 5rem); aspect-ratio: 16 / 10.1; min-height: 460px; }
.ads__photo { object-position: 100% 40%; }
.ads__funnel { left: 0.5rem; top: 0; bottom: 0; width: min(352px, 46%); }
@media (max-width: 900px) {
  .ads__stage { margin-top: 0.5rem; aspect-ratio: auto; height: 760px; }
  .ads__photo { object-position: 62% 0%; }
  .ads__funnel { left: 0; right: 0; top: auto; bottom: 0; height: 450px; width: auto; }
  .ads__stage .svc-stop--top { top: auto; bottom: 458px; }
}

/* picked: the finished kitchen across the band; the words and services on glass at the left, the island at the right */
.chapter--bleed { min-height: 46rem; display: grid; align-items: center; }
.picked__photo { object-position: 50% 40%; }
.picked__shade { background: linear-gradient(90deg, rgba(var(--c-shade), 0.72) 0%, rgba(var(--c-shade), 0.42) 34%, rgba(var(--c-shade), 0) 52%, rgba(var(--c-shade), 0) 74%, rgba(var(--c-shade), 0.35) 100%); }
.picked__in { display: grid; grid-template-columns: minmax(0, 29rem) minmax(0, 1fr) minmax(0, 25rem); align-items: end; gap: 2rem; }
.picked__panel h2 { font-size: var(--fs-h2); line-height: var(--lh-head); color: #fff; text-wrap: balance; }
.picked__panel .lead { margin-top: 0.75rem; color: var(--c-mist); font-size: 1.125rem; }
.picked__panel .svc-list { margin-top: 1.25rem; }
.picked__in .picked__island { grid-column: 3; height: 420px; } /* two classes: the scene's own style sets position: relative */
@media (max-width: 1080px) {
  .picked__in { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); }
  .picked__in .picked__island { grid-column: 2; }
}
/* on a narrow screen the photo is a tall strip at the top and the island stays on it, under the two faces */
@media (max-width: 900px) {
  .chapter--bleed { display: block; min-height: 0; padding-top: 0; }
  .picked__photo { inset: -1px -1px auto; height: 30rem; object-position: 48% 22%; }
  .picked__shade { inset: 0 0 auto; height: 30rem; background: linear-gradient(180deg, rgba(var(--c-shade), 0) 0%, rgba(var(--c-shade), 0) 62%, rgba(var(--c-shade), 1) 100%); }
  .picked__in { position: relative; grid-template-columns: 1fr; padding-top: 29rem; }
  .picked__in .picked__island { position: absolute; grid-column: auto; left: 0; right: 0; top: 9rem; height: 19rem; }
  .chapter--bleed > .stop--corner { top: 1rem; bottom: auto; }
}

/* leads: the stop icon over the two pictures */
.ba { position: relative; }
.ba + .svc-cards { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.ba__side--before .frame__media { object-position: 50% 40%; }
.ba__side--after .frame__media { object-position: 70% 40%; }
.ba__side--after .ba__card { left: 1rem; }
.ba__side .ba__tag ~ .ba__card { bottom: 1rem; }
.ba .svc-stop--top { top: 0.85rem; right: 0.85rem; }
@media (max-width: 760px) {
  .ba__side { aspect-ratio: 4 / 5.2; }
  .ba__side--before .frame__media { object-position: 50% 30%; }
  .ba__side--after .frame__media { object-position: 76% 30%; }
}

/* more: two extras, level; their stop icon in the second picture's upper corner */
.extras { position: relative; }
.more__stop { top: 0.85rem; right: 0.85rem; }
.extra:first-child .frame__media { object-position: 50% 14%; }
.extra__photo--strategy { object-position: 20% 40%; }

/* plan: the mix on the navy designed ground */
.plan__scene { width: 100%; padding-top: 6px; }
.plan__stop { top: -3.6rem; right: 0; }

/* the close: the plumber at the door, the words over the street */
.close__photo { object-position: 60% 40%; }
@media (max-width: 760px) { .pclose .band__photo { inset: -1px -1px auto; height: 19rem; object-position: 62% 30%; } }
