/* services.css: places and sizes the Services page's parts, with the tokens of system.css and the components of
   design\components.css. */

/* ---------- Header: a phone on a dark table at the left, its own lock screen lighting up; the words on the right ---------- */
.svc-hero { position: relative; display: grid; align-items: center; min-height: min(54rem, calc(100svh - 4.25rem)); overflow: clip; background: var(--c-ground); }
.svc-hero__media { position: absolute; inset: 0; }
.svc-hero__photo { position: absolute; inset: 0; margin: 0; }
.svc-hero__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgb(13 27 42 / 0.93) 0%, rgb(13 27 42 / 0.8) 34%, rgb(13 27 42 / 0.2) 58%, rgb(13 27 42 / 0) 72%), linear-gradient(0deg, rgb(13 27 42 / 0.5), transparent 30%); }
.svc-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.svc-hero__words { grid-column: 2; display: grid; gap: var(--space-2); padding-block: var(--space-6); }
.svc-hero .page-title { max-width: 15ch; }
.svc-hero .cta-row { margin-top: var(--space-4); }
.svc-hero__card { display: none; }
@media (max-width: 899px) {
  /* on a phone the photo's screen is too small to read: the lock screen plays as a card over the photo's foot */
  .svc-hero { min-height: 0; align-items: start; padding-top: clamp(13rem, 56vw, 19rem); }
  .svc-hero__photo { bottom: auto; height: clamp(28rem, 118vw, 38rem); }
  .svc-hero__photo .ls-top, .svc-hero__photo .ls-list { visibility: hidden; }
  .svc-hero__media::after { background: linear-gradient(180deg, rgb(13 27 42 / 0) 0%, rgb(13 27 42 / 0) clamp(12rem, 52vw, 18rem), rgb(13 27 42 / 0.96) clamp(27rem, 114vw, 37rem)); }
  .svc-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .svc-hero__card { display: block; justify-self: center; width: 300px; max-width: 100%; margin-bottom: var(--space-5); }
  .scene.svc-hero__ls { position: relative; height: 540px; border-radius: 30px; overflow: hidden; border: 1px solid var(--c-line-ink-strong); box-shadow: var(--shadow-l); }
  .svc-hero__words { grid-column: 1; padding-block: 0 var(--space-6); }
  .svc-hero > .stop--corner { top: calc(clamp(13rem, 56vw, 19rem) - 3.25rem); bottom: auto; }
}

/* ---------- Chapters on footage: the words, the scene, and the clip's subject free on the right ---------- */
.svc-found .chapter__inner { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 0.45fr); }
.svc-picked .chapter__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 0.8fr); }
@media (min-width: 900px) {
  .svc-found .chapter__media::after { background: linear-gradient(90deg, rgb(13 27 42 / 0.94) 0%, rgb(13 27 42 / 0.78) 32%, rgb(13 27 42 / 0.3) 62%, rgb(13 27 42 / 0.15) 100%); }
  .svc-picked .chapter__media::after { background: linear-gradient(90deg, rgb(13 27 42 / 0.94) 0%, rgb(13 27 42 / 0.8) 30%, rgb(13 27 42 / 0.35) 52%, rgb(13 27 42 / 0) 70%); }
  .svc-picked .chapter__media .fill { object-position: 62% 40%; }
}
.scene.svc-found__scene { height: 540px; }
.scene.svc-picked__scene { height: 440px; }
@media (min-width: 900px) and (max-width: 1099px) {
  .svc-found .chapter__inner, .svc-picked .chapter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-picked .chapter__media .fill { object-position: 78% 40%; }
}
@media (max-width: 899px) {
  .svc-found .chapter__inner, .svc-picked .chapter__inner { grid-template-columns: minmax(0, 1fr); }
  .scene.svc-found__scene { height: 520px; }
  .scene.svc-picked__scene { height: 360px; }
  /* the dentist's face above the words: the words start lower, under the component's shade */
  .chapter.svc-picked { padding-top: clamp(18rem, 84vw, 24rem); }
  .svc-picked .chapter__media .fill { object-position: 68% 0%; }
  .svc-picked .chapter__media::after { background: linear-gradient(180deg, rgb(13 27 42 / 0) 0%, rgb(13 27 42 / 0.1) clamp(12rem, 56vw, 18rem), rgb(13 27 42 / 0.88) clamp(18rem, 84vw, 24rem), rgb(13 27 42 / 0.82) 100%); }
}

/* ---------- The services of a group in glass over the photo's free edge ---------- */
.svc-glass { position: absolute; z-index: 1; box-sizing: border-box; width: min(22rem, calc(100% - 2rem)); padding: 1rem 1.15rem; }
.svc-glass .svc-list { margin: 0; }

/* ---------- The click: the words above, the photo with its services, the funnel overlapping its right edge ---------- */
.svc-ads__head, .svc-leads__head { margin-bottom: var(--space-5); }
.svc-ads__stage { display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: end; }
.svc-ads__frame { grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 16 / 10.5; margin-right: -5rem; border-radius: var(--radius-l); overflow: clip; box-shadow: var(--shadow-l); }
.svc-ads__frame .fill { object-position: 45% 30%; }
.svc-ads__list { left: 1rem; bottom: 1rem; }
.scene.svc-ads__scene { grid-column: 2; grid-row: 1; position: relative; z-index: 2; height: 470px; margin-bottom: -2.5rem; }

/* ---------- Never missed: the words above, the photo with its services on the left, the call card beside it ---------- */
.svc-leads__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.svc-leads__frame { position: relative; min-height: 560px; border-radius: var(--radius-l); overflow: clip; box-shadow: var(--shadow-l); }
.svc-leads__frame .fill { object-position: 62% 30%; }
.svc-leads__list { left: 1rem; bottom: 1rem; }
.scene.svc-leads__scene { height: 560px; }

@media (max-width: 1099px) {
  .svc-ads__stage { grid-template-columns: minmax(0, 1fr) 400px; }
  .svc-leads__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .svc-ads__stage, .svc-leads__stage { grid-template-columns: minmax(0, 1fr); }
  .svc-ads__frame, .svc-leads__frame { margin-right: 0; aspect-ratio: auto; min-height: 0; overflow: visible; box-shadow: none; display: grid; }
  .svc-ads__frame > picture, .svc-ads__frame > .fill, .svc-leads__frame > picture, .svc-leads__frame > .fill { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-l); }
  .svc-glass { position: relative; left: auto; bottom: auto; width: auto; margin: calc(-1 * var(--space-5)) var(--space-3) 0; }
  .scene.svc-ads__scene { grid-column: 1; grid-row: auto; margin: var(--space-4) 0 0; height: 460px; }
  .scene.svc-leads__scene { margin-top: var(--space-2); height: 560px; }
}
@media (max-width: 480px) { .scene.svc-leads__scene { height: 300px; } }

/* ---------- The mix (the signature), on the designed ground ---------- */
.scene.svc-mix__scene { max-width: 1100px; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__grid .section-head { position: sticky; top: 6.5rem; }
@media (max-width: 899px) { .faq__grid { grid-template-columns: 1fr; } .faq__grid .section-head { position: static; margin-bottom: var(--space-3); } }
