/* CFO Advisory and Performance Analytics: its own sizes and crops only (design\components.md, "Inner-page patterns"). */

/* ---------- #change: the monthly review on footage, the card at its left ---------- */
.cfo-change__media { height: clamp(580px, 46vw, 680px); }
.cfo-change__media video { object-position: 50% 12%; }
.cfo-change .chapter__grade { background: linear-gradient(90deg, rgba(7,18,37,0.6) 0%, rgba(7,18,37,0.2) 36%, rgba(7,18,37,0) 52%), linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0) 14%); }
.cfo-shift-box { top: 50%; left: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); width: 400px; height: 442px; transform: translateY(-50%); }
@media (max-width: 1099px) { .cfo-shift-box { width: 380px; height: 420px; } }
@media (max-width: 699px) {
  /* the faces in the photo's top; the card stands on its lower part, a little past its foot */
  .cfo-change { padding-bottom: var(--section-y); }
  .cfo-change__media { overflow: visible; height: 700px; }
  .cfo-change__media video { object-position: 52% 20%; }
  .cfo-change .chapter__grade { background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0) 12%, rgba(11,27,51,0) 50%, rgba(7,18,37,0.45) 100%); }
  .cfo-shift-box { top: auto; bottom: -60px; left: 50%; width: min(380px, calc(100vw - 20px)); height: 420px; transform: translateX(-50%); }
}

/* ---------- #review: the month on the ground ---------- */
.cfo-month-box { position: relative; }
.cfo-month-box > .scene { position: relative; height: var(--cm-h, 620px); }
.cfo-month-box > .stop { top: -48px; right: 0; }

/* ---------- #included: the owner on his floor, the card over the frame's right edge ---------- */
.cfo-inc { position: relative; display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 1000px) { .cfo-inc { grid-template-columns: minmax(0, 1fr) 420px; gap: 0; } }
.cfo-inc__photo { height: clamp(520px, 46vw, 620px); }
.cfo-inc__photo img { object-position: 24% 30%; }
.cfo-inc__photo .frame__grade { background: linear-gradient(270deg, rgba(7,18,37,0.3) 0%, rgba(7,18,37,0) 30%); }
.cfo-inc__card { position: relative; z-index: 3; width: 400px; height: 590px; justify-self: start; }
.cfo-inc__card > .scene { position: absolute; inset: 0; }
.cfo-inc__card > .stop { top: -46px; right: 0; }
@media (min-width: 1000px) { .cfo-inc__card { margin-left: -60px; } } /* over the frame's edge, clear of the therapists */
@media (max-width: 999px) {
  .cfo-inc__photo { height: 480px; }
  .cfo-inc__card { justify-self: center; width: min(380px, calc(100vw - 20px)); height: 560px; margin-top: calc(-1 * var(--space-4) - 140px); }
  .cfo-inc__card > .stop { top: 12px; right: 12px; }
}

/* ---------- #close: the owner at his desk in the evening at left, the words and the form at right ---------- */
.cfo-close { min-height: 0; padding-block: var(--section-y); }
.cfo-close .closeband__media video { object-position: 40% 45%; }
.cfo-close .closeband__grade { background: linear-gradient(270deg, rgba(7,18,37,0.92) 0%, rgba(7,18,37,0.76) 36%, rgba(7,18,37,0.2) 58%, rgba(7,18,37,0.1) 100%); }
.cfo-close .closeband__inner { display: flex; justify-content: flex-end; }
.cfo-close .closeband__copy { max-width: 520px; }
@media (max-width: 899px) {
  .cfo-close { display: block; padding-top: 0; }
  .cfo-close .closeband__media { position: relative; inset: auto; height: 380px; margin-bottom: var(--space-5); }
  .cfo-close .closeband__media video { object-position: 40% 45%; }
  .cfo-close .closeband__grade { background: linear-gradient(180deg, rgba(11,27,51,0) 55%, var(--c-navy-900) 100%); }
  .cfo-close .closeband__inner { display: block; }
  .cfo-close .closeband__copy { max-width: none; }
}
