/* Business Growth & AI Solutions: its own sizes and crops only (design\components.md, "Inner-page patterns"). */

/* ---------- #top: full-bleed footage that changes its picture, the words at left, the search card low right ---------- */
.phead--bleed { min-height: clamp(700px, 56vw, 830px); display: grid; align-items: center; padding-block: var(--space-5); }
.bga-slide--1 video { object-position: 62% 30%; }
.bga-slide--2 video { object-position: 50% 40%; transform: scaleX(-1); }
.phead--bleed .phead__grade {
  background: linear-gradient(90deg, rgba(7,18,37,0.9) 0%, rgba(7,18,37,0.74) 30%, rgba(7,18,37,0.24) 52%, rgba(7,18,37,0.06) 72%, rgba(7,18,37,0.1) 100%),
              linear-gradient(0deg, rgba(7,18,37,0.55) 0%, rgba(7,18,37,0) 38%); }
.phead--bleed .phead__copy { max-width: 35rem; }
.phead--bleed .phead__pick { max-width: 28rem; }
.phead--bleed > .stop { z-index: 6; }
.bga-search { right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); bottom: 30px; width: 470px; height: 470px; }
@media (max-width: 1199px) { .bga-search { width: 420px; } }
@media (max-width: 1023px) { .phead--bleed .phead__copy { max-width: 31rem; } .bga-search { width: 380px; bottom: 28px; } }
@media (max-width: 899px) {
  /* the words first, then the footage with the search card standing on its lower part */
  .phead--bleed { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: var(--space-4) 0 var(--space-5); }
  .phead--bleed .phead__inner { order: 1; }
  .phead--bleed > .stop { order: 2; position: relative; top: auto; right: auto; align-self: flex-end; margin: var(--space-4) var(--gutter) -48px 0; }
  .phead--bleed .phead__media { order: 3; position: relative; inset: auto; height: 540px; }
  .phead--bleed .phead__grade { background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0) 14%, rgba(11,27,51,0) 60%, rgba(11,27,51,0.55) 100%); }
  .bga-slide--1 video { object-position: 72% 20%; }
  .bga-slide--2 video { object-position: 40% 40%; }
  .phead--bleed .phead__copy, .phead--bleed .phead__pick { max-width: none; }
  .bga-search { order: 4; position: relative; right: auto; bottom: auto; width: auto; height: 470px; margin: -320px var(--gutter) 0; }
}

/* ---------- #change: the before and after ---------- */
/* both photos mirrored, each owner turned toward the other side; each pane a little wider than tall at the start, so each
   owner stands whole in his own half: the dentist at the front desk with his phone and lamp (the crop holds 28-100% of
   his photo, the lamp at the outer edge), the owner with his tablet (15-87%, his tablet clear of the line) */
.bga-compare { --compare-ratio: 2.15; }
.bga-compare .compare__side img { transform: scaleX(-1); }
.bga-compare .compare__side--before { --focus: 100% 40%; }
.bga-compare .compare__side--after { --focus: 53% 30%; }

/* ---------- #found: the stacked chapter, the AI answer over the kitchen ---------- */
.bga-found { height: clamp(600px, 50vw, 740px); }
.bga-found img { object-position: 30% 40%; }
.bga-found .chapter__grade { background: linear-gradient(270deg, rgba(7,18,37,0.62) 0%, rgba(7,18,37,0.2) 40%, rgba(7,18,37,0) 60%), linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0) 16%); }
.bga-ai { top: 50%; right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); width: 640px; height: 560px; transform: translateY(-50%); }
/* narrower: the photo mirrored (her face to the right) and the answer card, in its own narrow layout, at the left over it */
@media (max-width: 1239px) {
  .bga-found { height: 660px; }
  .bga-found img { transform: scaleX(-1); object-position: 30% 35%; }
  .bga-found .chapter__grade { background: linear-gradient(90deg, rgba(7,18,37,0.62) 0%, rgba(7,18,37,0.2) 45%, rgba(7,18,37,0) 65%), linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0) 14%); }
  .bga-ai { top: 30px; transform: none; right: auto; left: var(--gutter); width: 460px; height: 600px; }
}
@media (max-width: 899px) { .bga-ai { width: 380px; } }
@media (max-width: 599px) {
  .bga-found { height: auto; overflow: visible; padding-bottom: var(--section-y); }
  .bga-found > img, .bga-found > picture, .bga-found > picture > img { position: relative; inset: auto; display: block; width: 100%; height: 660px; object-fit: cover; }
  .bga-found img { transform: none; object-position: 28% 30%; }
  .bga-found .chapter__grade { height: 660px; background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0) 14%, rgba(11,27,51,0) 50%, rgba(7,18,37,0.5) 100%); }
  .bga-ai { position: relative; top: auto; left: auto; width: calc(100% - 2 * var(--gutter)); height: 610px; margin: -340px auto 0; }
  .chapter--stack .bga-found > .stop { top: 270px; }
}

/* ---------- #chosen: the front desk in a frame, the island over its clear wall ---------- */
.bga-split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 1000px) { .bga-split { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: var(--space-5); } }
.bga-chosen { height: clamp(480px, 42vw, 580px); }
.bga-chosen img { object-position: 78% 50%; }
.bga-chosen .frame__grade { background: linear-gradient(180deg, rgba(7,18,37,0.32) 0%, rgba(7,18,37,0) 45%); }
.bga-chosen__scene { position: absolute; z-index: 3; top: 0; right: 0; width: 46%; min-width: 330px; height: 270px; }
.bga-chosen > .stop { top: 14px; left: 14px; right: auto; }
@media (max-width: 699px) {
  /* taller, so her face sits under the island's reach; the island hangs over the wall as on the computer */
  .bga-chosen { height: 640px; }
  .bga-chosen img { object-position: 80% 50%; }
  .bga-chosen__scene { width: 100%; min-width: 0; height: 290px; }
}

/* ---------- #answer: the hallway, the call that books itself beside him ---------- */
.bga-answer { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 1000px) { .bga-answer { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--space-5); } }
.bga-answer__frame { height: clamp(560px, 46vw, 620px); }
.bga-answer__frame img { object-position: 86% 30%; }
.bga-answer__frame .frame__grade { background: linear-gradient(90deg, rgba(7,18,37,0.42) 0%, rgba(7,18,37,0) 60%); }
.bga-answer__scene { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 520px; }
.bga-answer__copy { display: grid; gap: var(--space-3); justify-items: start; }
.bga-answer__copy .sect-head { margin-bottom: 0; }
@media (max-width: 699px) {
  .bga-answer__frame { height: 560px; }
  .bga-answer__frame img { object-position: 84% 20%; }
  .bga-answer__scene { top: auto; width: auto; right: 0; height: 320px; }
}

/* ---------- #mix: the signature on the designed ground ---------- */
.mix__stage { position: relative; aspect-ratio: 1000 / 520; }
.mix__stage > .scene { position: absolute; inset: 0; }
.mix__stage > .stop { left: 0; bottom: 0; top: auto; right: auto; }
@media (max-width: 899px) {
  .mix__stage { aspect-ratio: auto; height: min(1000px, calc((100vw - 2 * var(--gutter)) * 2.22)); margin-top: 56px; }
  .mix__stage > .stop { top: -48px; right: 0; bottom: auto; left: auto; }
}

/* ---------- #who and #proof ---------- */
.bga .who__photo img { object-position: 50% 35%; }
.quote__route path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- #close: on the designed ground, the plan's estimate as its picture ---------- */
.bga-close__grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1000px) { .bga-close__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bga-close .closeband__copy { max-width: 34rem; }
.bga-close .closeband__copy h2 { font-size: var(--fs-h2); }
.bga-estimate { position: relative; width: min(540px, 100%); height: 460px; justify-self: center; }
.bga-estimate > .scene { position: absolute; inset: 0; }
.bga-estimate > .stop { top: 0; right: 0; }
@media (max-width: 599px) { .bga-estimate { height: 420px; } }
