/* The Services page: each part placed and sized with the tokens of system.css; the components are in components.css. */

/* ---------- hero: split on white, the planner filling up in a tall cut-corner frame ---------- */
.svc-hero { padding-block: clamp(36px, 5vw, 76px) clamp(64px, 7vw, 108px); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.svc-hero__copy { display: grid; justify-items: start; }
.svc-hero__title { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.025em; max-width: 14ch; }
.svc-hero__line { margin-top: clamp(16px, 2vw, 22px); max-width: 42ch; color: var(--c-ink-soft); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.svc-hero__cta { margin-top: clamp(26px, 3vw, 36px); }
.svc-hero__stage { position: relative; }
.svc-hero__frame { height: clamp(500px, 46vw, 660px); }
/* one still grade over both clips, under the card */
.svc-hero__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(1, 20, 55, .46) 0%, rgba(1, 20, 55, .12) 38%, rgba(1, 20, 55, 0) 56%); }
.svc-hero__slide--a video, .svc-hero__slide--a img.kit-first { object-position: 74% 50%; }
.svc-hero__slide--b video { object-position: 62% 50%; }
.scene.svc-hero__scene { position: absolute; z-index: 4; left: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); width: min(360px, calc(100% - 28px)); }
.svc-hero__stop { right: 16px; bottom: 16px; }
@media (max-width: 860px) {
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-hero__frame { height: clamp(440px, 118vw, 560px); }
  .svc-hero__slide--a video, .svc-hero__slide--a img.kit-first { object-position: 70% 50%; }
  .svc-hero__slide--b video { object-position: 66% 50%; }
  .svc-hero__stop { top: 16px; bottom: auto; }
}

/* ---------- feat: a stage of the path on full-bleed footage, its scene on the side clear of faces ---------- */
.feat { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center; min-height: clamp(640px, 52vw, 780px); padding-block: var(--section-y); background: var(--c-deep); color: var(--c-on-ink); }
.feat__media { position: absolute; inset: -40px 0; z-index: -2; }
.feat__media > img, .feat__media > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.feat__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feat__copy { display: grid; gap: clamp(22px, 2.6vw, 30px); max-width: 520px; }
.feat .head h2 { color: #fff; }
.feat .head p { color: var(--c-on-ink-soft); }
.feat__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.feat__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 1.0625rem; line-height: 1.5; color: var(--c-on-ink-soft); }
.feat__list b { color: #fff; font-weight: 600; }
.feat__ico { display: block; width: 18px; height: 18px; margin-top: 4px; }
.feat__ico .spark path { fill: var(--c-cyan); }
.feat__stage { position: relative; min-height: 560px; }
.scene.feat__scene { position: absolute; inset: 0; }
.feat__stop { right: 0; bottom: -8px; }

/* found: the words on the left, the map over the wall on the right; her face between them */
.feat--found .feat__media > img { object-position: 50% 58%; }
.feat--found::before { background: linear-gradient(90deg, rgba(1, 20, 55, .94) 0%, rgba(1, 20, 55, .86) 24%, rgba(1, 20, 55, .56) 33%, rgba(1, 20, 55, 0) 44%); }
.feat--found .feat__copy { max-width: 430px; }
.feat--found .feat__stage { min-height: 540px; }

/* click: the ad panel over the patient's back on the left, the words low on the right, under the dentist's face */
.feat--click .feat__media > video { object-position: 50% 30%; }
.feat--click::before { background: linear-gradient(0deg, rgba(1, 20, 55, .92) 0%, rgba(1, 20, 55, .72) 30%, rgba(1, 20, 55, .16) 52%, rgba(1, 20, 55, 0) 64%), linear-gradient(90deg, rgba(1, 20, 55, .3) 0%, rgba(1, 20, 55, 0) 40%); }
.feat--click .feat__in { align-items: end; }
.feat--click .feat__stage { align-self: center; min-height: 470px; }
.feat--click .feat__copy { justify-self: end; padding-top: 220px; }

/* leads: the call and the week on the right over the sky, the words low on the left under the crew */
.feat--leads .feat__media > img { object-position: 40% 40%; }
.feat--leads::before { background: linear-gradient(0deg, rgba(1, 20, 55, .94) 0%, rgba(1, 20, 55, .76) 34%, rgba(1, 20, 55, .2) 56%, rgba(1, 20, 55, 0) 66%), linear-gradient(90deg, rgba(1, 20, 55, .5) 0%, rgba(1, 20, 55, 0) 46%); }
.feat--leads .feat__in { align-items: end; }
.feat--leads .feat__copy { padding-top: 240px; }
.feat--leads .feat__stage { align-self: center; min-height: 580px; }
.feat--leads .feat__stop { left: 0; right: auto; }

/* phone and tablet: the words on the pale ground, then the footage at the part's foot with its scene in glass over its
   lower part and the face above the scene, so each scene stays on its picture at every width (no drift here) */
@media (max-width: 860px) {
  .feat { --mh: 600px; --sh: 440px; --sb: 16px; --sw: 480px; display: block; min-height: 0; padding-block: var(--section-y) 0; background: var(--c-paper-alt); color: var(--c-ink); }
  .feat__media { inset: auto 0 0 0; height: var(--mh); overflow: hidden; transform: none; }
  .feat::before { inset: auto 0 0 0; height: var(--mh); background: linear-gradient(0deg, rgba(1, 20, 55, .34) 0%, rgba(1, 20, 55, 0) 42%) !important; }
  .feat__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat__copy { order: -1; max-width: none; padding-top: 0 !important; justify-self: stretch !important; }
  .feat .head h2 { color: var(--c-ink); }
  .feat .head p { color: var(--c-ink-soft); }
  .feat__list li { color: var(--c-ink-soft); }
  .feat__list b { color: var(--c-ink); }
  .feat__ico .spark path { fill: var(--c-brand); }
  .feat__stage, .feat--found .feat__stage, .feat--click .feat__stage, .feat--leads .feat__stage { align-self: stretch; min-height: var(--mh); }
  .scene.feat__scene { inset: auto 0 var(--sb); margin-inline: auto; width: min(100%, var(--sw)); height: var(--sh); }
  .feat__stop, .feat--leads .feat__stop { left: auto; right: 0; top: auto; bottom: 12px; }
  /* found: her face high in the box, the photo drawn larger than the box so the map card stays below her face */
  .feat--found { --mh: 840px; --sh: 490px; --sb: 60px; }
  .feat--found .feat__media > img { inset: auto; top: -316px; left: calc(50% - 800px); width: 1740px; height: 1160px; }
  /* click: the dentist's face in the box's upper part all through the clip (the camera pulls back, her chin down to
     40% of its height), the ad panel under it, the stop icon on the wall at the top left */
  .feat--click { --mh: 800px; }
  .feat--click .feat__media > video { object-position: 80% 0%; }
  .feat--click .feat__stop { top: 14px; bottom: auto; left: 0; right: auto; }
  /* leads: the crew on the roof at the top, the call card under them */
  .feat--leads { --mh: 600px; --sh: 300px; --sb: 60px; --sw: 440px; }
  .feat--leads .feat__media > img { object-position: 14% 0%; }
}
@media (max-width: 480px) {
  .scene.feat__scene { left: calc(10px - var(--gutter)); right: calc(10px - var(--gutter)); width: auto; margin-inline: 0; }
}

/* ---------- promise: the path in four words, lit on the navy ---------- */
.promise { padding-block: clamp(72px, 7.5vw, 112px); }
.promise .wrap { position: relative; }
.scene.promise__scene { height: 320px; }
.promise__stop { right: 0; bottom: -12px; }
@media (max-width: 1000px) { .scene.promise__scene { height: 380px; } }
@media (max-width: 480px) { .scene.promise__scene { height: 420px; } }

/* ---------- picked: the comparison won, over a framed photo, beside the work we built ---------- */
.pick__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pick__copy { display: grid; gap: clamp(22px, 2.6vw, 30px); }
.pick .feat__list li { color: var(--c-ink-soft); }
.pick .feat__list b { color: var(--c-ink); }
.pick .feat__ico .spark path { fill: var(--c-accent); }
.pick__built { display: grid; gap: 12px; margin-top: 4px; }
.pick__built-title { font: 600 1.0625rem/1.3 var(--font-display); color: var(--c-ink); }
.pick__sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pick__site { display: grid; gap: 8px; align-content: start; color: var(--c-ink); text-decoration: none; }
.pick__shot { display: block; aspect-ratio: 16 / 10; border: 1px solid var(--c-line); box-shadow: var(--shadow-m); transition: transform var(--dur-med) var(--ease-out); }
.pick__shot img { object-position: 50% 0; }
.pick__site:hover .pick__shot { transform: translateY(-3px); }
.pick__site-name { font: 600 1rem/1.3 var(--font-display); }
.pick__site .link-arrow { font-size: .9375rem; }
.pick__stage { position: relative; }
.pick__frame { height: clamp(460px, 40vw, 560px); }
.pick__frame .frame__media > img { object-position: 70% 50%; }
.scene.pick__scene { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: min(420px, 58%); }
.pick__stop { right: 16px; bottom: 16px; }
@media (max-width: 860px) {
  .pick__grid { grid-template-columns: minmax(0, 1fr); }
  .pick__stage { order: -1; }
  .pick__frame { height: clamp(500px, 132vw, 580px); }
  .pick__frame .frame__media > img { object-position: 74% 50%; }
  .scene.pick__scene { width: auto; right: 0; top: auto; height: 300px; }
  .pick__stop { top: 16px; bottom: auto; }
}

/* ---------- mix: one budget through the prism, on the pale blue ---------- */
.mix__stage { position: relative; margin-top: clamp(36px, 4vw, 56px); }
.scene.mix__scene { height: 500px; }
.mix__stop { right: 0; bottom: -56px; }
/* stacked (phone and tablet): the stop icon in the card's top corner, its title kept clear of it, so the icon and the
   whole picture fit one view */
@media (max-width: 860px) {
  .scene.mix__scene { height: 640px; }
  .mix__stop { top: 18px; right: 16px; bottom: auto; }
  .scene.mix__scene .pm-title { padding-right: 52px; }
}
@media (max-width: 480px) { .scene.mix__scene { height: 720px; } }

/* ---------- close: the door opened for a booked job ---------- */
.svc-close .close__media > video { object-position: 50% 26%; }
.svc-close .close__copy { max-width: 800px; }
.svc-close h2 { font-size: var(--fs-h2); }
@media (max-width: 760px) { .svc-close .close__media > video { object-position: 42% 16%; } }
