/* The Million Dollar Growth Plan: its own sizes and crops only (design\components.md, "Inner-page patterns"). */

/* ---------- #top: hands writing the week's appointments, the words centered high, the chat low right ---------- */
.mdgp-slide video { object-position: 50% 55%; }
.phead--center .phead__grade {
  background: linear-gradient(180deg, rgba(7,18,37,0.9) 0%, rgba(7,18,37,0.78) 38%, rgba(7,18,37,0.45) 66%, rgba(7,18,37,0.55) 100%); }
/* over 300 px wide the chat takes its taller size (330 high), so no message is ever half hidden */
.mdgp-chat { right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); bottom: 28px; width: 320px; height: 440px; }
@media (max-width: 1199px) {
  .phead--center .phead__grade { background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0.2) 16%, rgba(11,27,51,0.1) 60%, rgba(11,27,51,0.55) 100%); }
  .mdgp-chat { width: min(320px, calc(100% - 2 * var(--gutter))); height: 440px; margin: -490px auto 0; }
}

/* ---------- #your-part: the owner at her desk, the chat's question and her market's check over the clear wall ---------- */
.mdgp-your { padding-bottom: 0; }
.mdgp-your__media { position: relative; overflow: hidden; isolation: isolate; background: var(--c-paper-alt); }
.mdgp-your__media > img { position: absolute; inset: -1px; z-index: 0; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 62% 40%; }
.mdgp-your__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7,18,37,0.4) 0%, rgba(7,18,37,0.16) 45%, rgba(7,18,37,0) 64%); }
.mdgp-your__media > .stop { top: 18px; right: 18px; }
.mdgp-your__scenes { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: var(--space-4); min-height: clamp(620px, 46vw, 680px); padding-block: 56px; }
.mdgp-your__scenes > .scene-box { position: relative; flex: none; }
.mdgp-your__goal { width: 400px; height: 300px; }
.mdgp-your__scan { width: 420px; height: 330px; }
@media (max-width: 1339px) {
  /* the two cards one above the other at the left, her face clear at the right */
  .mdgp-your__media > img { object-position: 70% 40%; }
  .mdgp-your__scenes { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 0; }
  .mdgp-your__scan { width: 380px; }
}
@media (max-width: 699px) {
  /* the photo's top shows her face; the cards stand on its lower part, the second one's foot past its edge */
  .mdgp-your { padding-bottom: var(--section-y); }
  .mdgp-your__media { overflow: visible; background: none; }
  .mdgp-your__media > img { inset: 0 auto auto 0; width: 100%; height: 980px; object-position: 78% 50%; }
  .mdgp-your__grade { inset: 0 0 auto 0; height: 980px; background: linear-gradient(180deg, rgba(7,18,37,0) 42%, rgba(7,18,37,0.34) 100%); }
  .mdgp-your__scenes { display: grid; gap: 12px; padding: 450px var(--gutter) 0; }
  .mdgp-your__scenes > .scene-box { width: 100%; }
  .mdgp-your__goal { height: 300px; }
  .mdgp-your__scan { height: 380px; }
}

/* ---------- #our-part: the trio's crops ---------- */
.mdgp-trio--launch img { object-position: 50% 40%; }
.mdgp-trio--new img { object-position: 40% 24%; }
.mdgp-trio--tune img { object-position: 52% 26%; }
.trio__frame .frame__grade { background: linear-gradient(180deg, rgba(7,18,37,0) 40%, rgba(7,18,37,0.42) 100%); }

/* ---------- #inside: the plan's three cards over her café table ---------- */
.mdgp-inside__head { display: grid; gap: var(--space-4); align-items: end; margin-bottom: var(--space-5); }
.mdgp-inside__head .sect-head { margin-bottom: 0; }
@media (min-width: 1000px) { .mdgp-inside__head { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: var(--space-5); } }
.mdgp-inside__photo { height: clamp(260px, 24vw, 340px); }
.mdgp-inside__photo img { object-position: 62% 40%; }
.mdgp-cards { position: relative; }
.mdgp-cards > .stop { top: 14px; right: 14px; }

/* ---------- #partners: their own portraits, the meeting card on the photos' edge ---------- */
.mdgp-partners { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1000px) { .mdgp-partners { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.mdgp-partners__copy { display: grid; gap: var(--space-3); justify-items: start; }
.mdgp-partners__copy .sect-head { margin-bottom: 0; }
.mdgp-partners__people { display: grid; gap: 52px; }
.mdgp-partners__photos, .mdgp-partners__names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.mdgp-partners__photos { position: relative; }
.mdgp-partner__photo { aspect-ratio: 4 / 5; }
.mdgp-partner__photo img { object-position: 50% 22%; }
.mdgp-partner { margin: 0; display: grid; gap: 4px; align-content: start; font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
.mdgp-partner b { font: 600 1rem/1.35 var(--font-ui); color: var(--c-ink); }
.mdgp-meet { position: absolute; z-index: 3; left: 50%; bottom: 0; margin: 0; transform: translate(-50%, 50%); display: grid; gap: 2px; width: max-content; max-width: calc(100% - 24px);
  padding: 12px 18px; border-radius: var(--radius-m); background: var(--c-navy-900); color: var(--c-on-ink); box-shadow: var(--shadow-glass); border-top: 3px solid var(--c-gold); font-size: var(--fs-small); text-align: center; }
.mdgp-meet b { font: 600 1rem/1.3 var(--font-ui); color: var(--c-gold-light); }
.mdgp-meet span { color: var(--c-on-ink-soft); }

/* ---------- #close: the words and the plan building at left on the ground, the owner at right ---------- */
.mdgp-close { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--section-y); }
.mdgp-close__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; z-index: 0; overflow: hidden; }
.mdgp-close__photo > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 79% 40%; }
.mdgp-close__grade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--c-navy-900) 0%, rgba(11,27,51,0.45) 16%, rgba(11,27,51,0) 38%); }
.mdgp-close__inner { position: relative; z-index: 2; }
.mdgp-close__col { display: grid; gap: var(--space-5); max-width: min(660px, calc(60vw - var(--gutter) - 40px)); }
.mdgp-close .closeband__copy { color: var(--c-on-ink); }
.mdgp-builder { position: relative; width: 100%; height: 560px; }
.mdgp-builder > .scene { position: absolute; inset: 0; }
.mdgp-builder > .stop { top: -46px; right: 0; }
@media (max-width: 1099px) { .mdgp-builder { width: min(100%, 380px); height: 700px; } }
@media (max-width: 699px) {
  .mdgp-close { padding-top: 0; }
  .mdgp-close__photo { position: relative; width: auto; height: 420px; margin-bottom: var(--space-5); }
  .mdgp-close__photo > img { object-position: 84% 40%; }
  .mdgp-close__grade { background: linear-gradient(180deg, rgba(11,27,51,0) 58%, var(--c-navy-900) 100%); }
  .mdgp-close__col { max-width: none; }
  .mdgp-builder { width: 100%; max-width: 380px; }
}
