/* Advanced Tax Planning Strategies: its own sizes and crops only (design\components.md, "Inner-page patterns"). */

/* ---------- #top: the advisor and the partner at left-center, the words and the form at right, the memo low left ---------- */
.tax-slide--1 video { object-position: 50% 40%; transform: scale(1.3); transform-origin: 100% 38%; }
.tax-slide--2 video { object-position: 40% 40%; }
.phead--right .phead__grade {
  background: linear-gradient(270deg, rgba(7,18,37,0.92) 0%, rgba(7,18,37,0.8) 32%, rgba(7,18,37,0.3) 52%, rgba(7,18,37,0.06) 70%, rgba(7,18,37,0.12) 100%),
              linear-gradient(0deg, rgba(7,18,37,0.55) 0%, rgba(7,18,37,0) 42%); }
.tax-memo-box { left: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); bottom: 32px; width: 340px; height: 330px; }
@media (max-width: 1099px) {
  .tax-slide--1 video { transform: none; object-position: 52% 35%; }
  .tax-slide--2 video { object-position: 40% 35%; }
  .phead--right .phead__grade { background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0.15) 16%, rgba(11,27,51,0.05) 50%, rgba(11,27,51,0.55) 100%); }
  .tax-memo-box { width: min(340px, calc(100vw - 20px)); height: 330px; margin: -300px auto 0; }
}

/* ---------- #year: the pinned year ---------- */
.tax-year .sect-head { margin-bottom: var(--space-4); }

/* ---------- #change: the before and after ---------- */
/* each pane a little wider than tall at the start, so each photo's people stand whole in their own half: the owner at
   his kitchen table (8-67% across his photo; the crop holds 6-77%, his paper clear of the knob) and the advisor with the
   owner at her desk (47-100% across theirs) */
.tax-compare { --compare-ratio: 2.15; }
.tax-compare .compare__side--before { --focus: 20% 30%; }
.tax-compare .compare__side--after { --focus: 100% 30%; }
/* both photos hold their people's heads near the top: the tags go to the bottom corners, on the table and the desk */
.tax-compare .compare__tag { top: auto; bottom: 16px; }
@media (max-width: 699px) { .tax-compare .compare__tag { bottom: 10px; } }

/* ---------- #plan: the six strategies on the ground ---------- */
.tax-board-box { position: relative; }
.tax-board-box > .scene { position: relative; height: var(--tb-h, 640px); }
.tax-board-box > .stop { top: -48px; right: 0; }

/* ---------- #lead: Harsh, then his clients' words ---------- */
.tax-lead { display: grid; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); }
@media (min-width: 800px) { .tax-lead { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: var(--space-5); } }
.tax-lead__photo { aspect-ratio: 4 / 5; max-width: 420px; box-shadow: var(--shadow-m); }
.tax-lead__photo img { object-position: 50% 28%; }
.tax-lead__copy { display: grid; gap: var(--space-3); justify-items: start; }
.tax-lead__copy .sect-head { margin-bottom: 0; }
.tax-lead__bio { color: var(--c-ink-soft); max-width: 36rem; }
.tax-reviews .review { margin: 0; }
.tax-reviews blockquote { margin: 0; }
/* .review__who: in components.css (the role under each review's name, on every page) */
@media (min-width: 700px) {
  .tax-reviews { display: block; columns: 2 300px; column-gap: var(--space-2); overflow: visible; padding-bottom: 0; }
  .tax-reviews .review { break-inside: avoid; margin-bottom: var(--space-2); }
}
@media (min-width: 1100px) { .tax-reviews { columns: 3; } }

/* ---------- #close: the owner on her call at right, the words and the form at left ---------- */
.tax-close { min-height: 0; padding-block: var(--section-y); }
.tax-close .closeband__media video { object-position: 64% 40%; }
.tax-close .closeband__grade { background: linear-gradient(90deg, rgba(7,18,37,0.9) 0%, rgba(7,18,37,0.74) 34%, rgba(7,18,37,0.2) 56%, rgba(7,18,37,0.1) 100%); }
.tax-close .closeband__copy { max-width: 520px; }
@media (max-width: 899px) {
  .tax-close { display: block; padding-top: 0; }
  .tax-close .closeband__media { position: relative; inset: auto; height: 380px; margin-bottom: var(--space-5); }
  .tax-close .closeband__media video { object-position: 66% 40%; }
  .tax-close .closeband__grade { background: linear-gradient(180deg, rgba(11,27,51,0) 55%, var(--c-navy-900) 100%); }
  .tax-close .closeband__copy { max-width: none; }
}
