/* The home page: places and sizes its parts (design\components.css holds the components). Tokens only. */

/* ---------- the kit's header that changes its picture (kit.md: kept as it is) ---------- */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
.hero [data-kit-slide] video { object-position: var(--pos, 50% 50%); }

/* ---------- 1. the hero ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: min(880px, calc(100svh - var(--header-h))); background: var(--c-navy-900); color: var(--c-on-ink); overflow: hidden; }
.hero__stage { position: absolute; top: 0; bottom: 0; left: 47%; right: 0; }
.hero__slides { position: absolute; inset: 0; overflow: hidden; background: var(--c-navy-950); }
.hero__grade { position: absolute; inset: 0 0 0 -2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, var(--c-navy-900) 0%, rgba(11,27,51,0.62) 9%, rgba(11,27,51,0.16) 30%, rgba(11,27,51,0.08) 100%),
              linear-gradient(0deg, rgba(7,18,37,0.55) 0%, rgba(7,18,37,0) 42%); }
.hero__stop { top: 18px; right: 18px; z-index: 6; }
.hero__scene { position: absolute; z-index: 5; left: 36px; bottom: 56px; width: 430px; height: 348px; }
.hero__scene .scene { width: 100%; height: 100%; overflow: visible; }
.hero__inner { position: relative; z-index: 4; padding-block: clamp(2rem, 4.5vh, 4rem); }
.hero__copy { display: grid; gap: 1.25rem; max-width: 610px; }
.hero h1 { font-size: clamp(2.5rem, 1.45rem + 2.9vw, 4rem); max-width: 13.5em; }
.hero__line { font-size: 1.125rem; line-height: 1.55; color: var(--c-on-ink-soft); max-width: 36rem; }
.hero__picker { max-width: 530px; }
.hero__picker .chip span { height: 46px; }
.hero__foot { display: grid; gap: 0.9rem; max-width: 540px; }
.hero [data-kit-slide]:nth-child(2) video { filter: brightness(0.78) saturate(0.88) contrast(1.05); }
.hero__foot .link-more { justify-self: start; }
.hero__proof { display: flex; align-items: center; gap: 0.9rem; }
.hero__proof p { font-size: var(--fs-small); line-height: 1.45; color: var(--c-on-ink-soft); }
.hero__faces { display: flex; flex: none; }
.hero__faces img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-navy-900); box-shadow: 0 0 0 1px rgba(201,164,92,0.6); background: var(--c-paper); }
.hero__faces img + img { margin-left: -12px; }
@media (min-width: 900px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2.5rem, 1.2rem + 2.4vw, 3.4rem); }
  .hero__copy { gap: 1rem; }
  .hero__scene { bottom: 54px; }
}
@media (max-width: 1199px) {
  .hero__stage { left: 52%; }
  .hero__scene { left: 24px; width: 380px; height: 330px; }
}
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__inner { order: 1; padding-block: 1.75rem 2.25rem; }
  .hero__stage { order: 2; position: relative; inset: auto; height: clamp(470px, 122vw, 620px); }
  .hero__grade { inset: 0; background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0.06) 14%, rgba(11,27,51,0.06) 45%, rgba(7,18,37,0.75) 100%); }
  .hero__scene { left: var(--gutter); right: auto; width: min(400px, calc(100% - 2 * var(--gutter))); top: auto; bottom: 16px; height: 236px; }
  .hero__stop { top: auto; bottom: 252px; right: calc(var(--gutter) + 4px); }
  .hero h1 { max-width: none; }
}

/* ---------- 2. credentials ---------- */
.creds__stage { position: relative; box-sizing: border-box; padding: 20px 0; container-type: inline-size; border-radius: var(--radius-l); background-color: var(--c-paper-alt);
  background-image: linear-gradient(to right, rgba(11,27,51,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,27,51,0.05) 1px, transparent 1px); background-size: 64px 64px; }
/* The scene switches to its tall layout under 900 px of its own width, so the stage's height follows the stage's width,
   not the screen's (from 900 to 971 px of screen the tall layout stood cut in the wide stage's 370 px). */
.creds__stage .scene { width: 100%; height: 560px; }
@container (width >= 900px) { .creds__stage .scene { height: 330px; } }
.creds__stop { top: auto; bottom: 12px; right: 12px; }
.creds__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.creds__list li { display: grid; gap: 0.3rem; padding-top: 1rem; border-top: 1px solid var(--c-line); position: relative; }
.creds__list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--c-gold); }
.creds__list b { font: 600 1.0625rem/1.3 var(--font-ui); }
.creds__list span { font-size: var(--fs-small); color: var(--c-ink-soft); }
@media (max-width: 899px) { .creds__list { grid-template-columns: 1fr 1fr; } }

/* ---------- 3. practices ---------- */
.growth__media .frame__grade { background: linear-gradient(90deg, rgba(7,18,37,0.0) 30%, rgba(7,18,37,0.42) 100%); }
.growth__media > img { object-position: 55% 40%; }
.growth__scene { position: absolute; z-index: 3; top: 7%; right: 4%; bottom: 7%; width: min(56%, 470px); }
.growth__scene .scene { width: 100%; height: 100%; overflow: visible; }
.growth__media > .stop { left: 14px; right: auto; }
.tax__media .frame__grade { background: linear-gradient(0deg, rgba(7,18,37,0.55) 0%, rgba(7,18,37,0) 55%); }
.tax__media img { object-position: 100% 30%; }
.tax__scene { position: absolute; z-index: 3; left: 4%; bottom: 5%; width: min(70%, 370px); height: 172px; }
@media (min-width: 900px) { #practices .panel--half .panel__media { min-height: 440px; } }
.tax__scene .scene { width: 100%; height: 100%; overflow: visible; }
/* the CFO panel looks onto the owner's monitor (since 15 Nov): the photo fills the frame, the forecast app runs on its
   screen (drawn at 300x172, laid on the corners by core.js); the crop keeps the whole screen in view at every width */
.cfo__desk { position: absolute; inset: 0; margin: 0; }
.cfo__desk > img { object-position: 64% 50%; }
.cfo__desk .screen > .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cfo__media > .stop, .tax__media > .stop { top: 14px; right: 14px; }
.tax__media > .stop { left: 14px; right: auto; }
@media (max-width: 899px) {
  .growth__media { min-height: 600px; }
  .growth__scene { left: 4%; right: 4%; width: auto; top: auto; bottom: 16px; height: 300px; }
  .growth__media > img { top: auto; height: 118%; object-position: 25% 50%; }
  .tax__media { min-height: 460px; }
  .cfo__media { min-height: 440px; }
  .cfo__desk > img { object-position: 100% 50%; }
  .tax__scene { width: auto; left: 4%; right: 4%; }
}
@media (max-width: 599px) {
  .cfo__media { min-height: 0; aspect-ratio: 16 / 17; }
  .cfo__desk > img { object-position: 63% 50%; }
}

/* ---------- 4. outcomes ---------- */
.outcomes .case__route { color: var(--c-gold); }
.outcomes__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--c-line-on-ink); }

/* ---------- 5. the framework ---------- */
.framework { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 0; }
.framework__media { grid-row: 1; grid-column: 1; aspect-ratio: 16 / 6.4; min-height: 380px; }
.framework__media video { object-position: 50% 35%; }
.framework__media .frame__grade { background: linear-gradient(0deg, rgba(7,18,37,0.45) 0%, rgba(7,18,37,0) 45%), linear-gradient(90deg, rgba(7,18,37,0.35) 0%, rgba(7,18,37,0) 40%); }
.framework__steps { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-3); margin: 0; padding: 120px 0 0; list-style: none; counter-reset: none; }
.fstep { display: grid; align-content: start; gap: 0.45rem; padding-top: 1.1rem; }
.fstep__n { font: 500 0.9375rem/1 var(--font-mono); color: var(--c-gold-text); }
.fstep__name { font-size: var(--fs-h3); }
.fstep__line { color: var(--c-ink-soft); font-size: var(--fs-body); }
.framework__media .framework__scene { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.framework__media .framework__scene .scene { position: absolute; inset: 0; overflow: visible; }
.framework__route { grid-row: 2; grid-column: 1; position: relative; pointer-events: none; z-index: 4; }
.framework__steps { background-image: linear-gradient(to right, rgba(11,27,51,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,27,51,0.05) 1px, transparent 1px); background-size: 64px 64px; padding-bottom: 32px; }
.framework__stop { top: 14px; right: 14px; }
@media (max-width: 899px) {
  .framework__media { aspect-ratio: 4 / 3.4; min-height: 0; }
  .framework__media video { object-position: 12% 50%; }
  .framework__steps { grid-template-columns: 1fr; row-gap: var(--space-3); padding: 40px 0 0 40px; }
}
@media (max-width: 519px) {
  .framework__media { aspect-ratio: 11 / 10; }
  .framework__media video { object-position: 0% 50%; }
}

/* ---------- 6. AI ---------- */
.ai__grid { display: grid; gap: var(--space-4); align-items: center; }
.ai__head { margin-bottom: 0; }
.ai__head .link-more { justify-self: start; margin-top: var(--space-1); }
.ai__media { min-height: 520px; }
/* since 15 Nov the AI desk scene fills the whole frame (Harsh: a dashboard in place of the footage); the stop icon at
   the top right sits over the top bar's empty end */
.ai__media { border: 1px solid rgba(255,255,255,0.12); box-shadow: var(--shadow-l); }
.ai__scene { position: absolute; z-index: 3; inset: 0; }
.ai__scene .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1000px) { .ai__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-5); } .ai__media { min-height: 560px; } }

/* ---------- 7. leadership: its layout is the profile component's (design\components.css) ---------- */

/* ---------- 8. media ---------- */
.media__guest { margin-top: var(--space-4); }
.vtile--feature { position: relative; }
.vtile--feature .vtile__media { aspect-ratio: 16 / 9; }
.vtile__stop { top: 14px; right: 14px; }
.vtile--feature .vtile__btn { left: 24px; top: auto; bottom: 24px; margin: 0; }
@media (max-width: 899px) { .vtile .vtile__btn { left: 16px; top: auto; bottom: 16px; margin: 0; } }
/* the small tiles: a closer crop from the top, so the shows' burned-in captions stay out of the thumbnail */
.vtile:not(.vtile--feature) .vtile__media img { top: -1px; bottom: auto; height: 132%; object-position: 50% 0; }

/* ---------- 9. the close ---------- */
.close__grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1000px) { .close__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.close__text { display: grid; gap: var(--space-4); }
.close__text .sect-head { margin-bottom: 0; }
.close__fear { font: 500 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink-soft); }
.calc__picture { position: relative; height: 230px; margin-top: var(--space-1); }
.calc__picture svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ml-label { position: absolute; left: 0; margin: 0; transform: translateY(calc(-100% - 6px)); font: 500 var(--fs-micro)/1.2 var(--font-mono); color: var(--c-accent-on-ink); white-space: nowrap; }
.ml-cross { position: absolute; margin: 0; padding: 5px 9px; border-radius: var(--radius-s); background: var(--c-gold-grad); color: var(--c-on-gold); font: 600 var(--fs-micro)/1.2 var(--font-ui); white-space: nowrap;
  transform: translate(12px, 9px); transition: opacity var(--dur-med) var(--ease-out); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.6); }
.ml-cross[data-side="left"] { transform: translate(calc(-100% - 12px), 9px); }
.ml-cross[data-side="left-up"] { transform: translate(calc(-100% - 12px), calc(-100% - 9px)); }
.ml-node { position: absolute; width: 11px; height: 11px; margin: -6px 0 0 -6px; background: var(--c-gold-light); box-shadow: 0 0 0 4px rgba(201,164,92,0.25); transition: opacity var(--dur-med) var(--ease-out); }
.ml-months { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; margin: 0; font: 500 var(--fs-micro)/1 var(--font-mono); color: var(--c-on-ink-soft); }

