/* home.css: the home page's own placing and sizing, with the tokens of system.css only. */

/* The header's slides: each clip's crop and its booking card on the side with no face. */
.hero__slide--business video, .hero__slide--business img { object-position: 10% 50%; }
.hero__slide--business .book { right: clamp(20px, 3vw, 40px); bottom: clamp(96px, 9vw, 120px); }
.hero__slide--roofing video, .hero__slide--roofing img { object-position: 30% 50%; }
.hero__slide--roofing .book { right: clamp(20px, 3vw, 40px); bottom: clamp(96px, 9vw, 120px); }
.hero__slide--landscaping .book { left: clamp(20px, 3vw, 40px); bottom: clamp(96px, 9vw, 120px); }
.hero__slide--dental video, .hero__slide--dental img { object-position: 15% 50%; }
.hero__slide--dental .book { right: clamp(20px, 3vw, 40px); bottom: clamp(96px, 9vw, 120px); }
.hero__slide--law .book { left: clamp(20px, 3vw, 40px); bottom: clamp(96px, 9vw, 120px); }

/* The line's chapters: each scene beside the face in its clip. */
.chapter--demand .chapter__media video { object-position: 100% 50%; }
.chapter__scene--demand { top: 84px; right: 26px; width: min(390px, 60%); }
.chapter--booked .chapter__stage { height: 620px; }
.chapter .chapter__scene--booked { position: absolute; inset: 70px 0 0 0; }
.chapter--capacity .chapter__media video { object-position: 100% 50%; }
.chapter__scene--capacity { top: 50%; right: 24px; width: min(360px, 56%); transform: translateY(-46%); }
.chapter--revenue .chapter__media video { object-position: 100% 50%; }
.chapter__scene--revenue { top: 50%; right: 24px; width: min(380px, 58%); transform: translateY(-46%); }

/* The tour's scenes speak in sentence case, as the brief asks. */
#steps .yp-lbl, #steps .es-title, #steps .es-stamp { text-transform: none; letter-spacing: 0.01em; }

@media (max-width: 899px) {
  .hero__slide .book { left: 12px; right: auto; bottom: 14px; max-width: calc(100% - 76px); }
  .chapter--booked .chapter__stage { height: auto; }
  .chapter__scene--demand, .chapter__scene--capacity, .chapter__scene--revenue { top: auto; right: auto; width: auto; transform: none; }
  .chapter--demand .chapter__media video { object-position: 80% 50%; }
  .chapter--booked .chapter__media video { object-position: 85% 30%; }
  .chapter--booked .chapter__media { height: 300px; }
  .chapter .chapter__scene--booked { position: relative; inset: auto; height: 290px; margin-top: -200px; }
}

/* Fix round F2: the proof band's and the sample's crops, each face clear of its cards. */
.proof__media video, .proof__media img { object-position: 50% 8%; }
.sample__media video, .sample__media img { object-position: 30% 40%; }
@media (max-width: 899px) {
  .proof__media video, .proof__media img { object-position: 62% 18%; }
  .sample__media video, .sample__media img { object-position: 36% 22%; }
}
