/* home.css: places and sizes the home page's parts, with the tokens of system.css only. */

/* framework */
.fw-panel .panel__media video { object-position: 50% 45%; }
.fw-panel .panel__grade { background: linear-gradient(90deg, rgba(8, 24, 49, 0.12) 0%, rgba(8, 24, 49, 0.28) 46%, rgba(8, 24, 49, 0.74) 100%); }
#framework .rail { margin-top: 28px; }
@media (max-width: 860px) {
  .fw-panel .panel__media video { object-position: 46% 40%; }
  .fw-panel .panel__grade { background: linear-gradient(180deg, rgba(8, 24, 49, 0.1) 0%, rgba(8, 24, 49, 0.2) 40%, rgba(8, 24, 49, 0.82) 100%); }
}
@media (max-width: 520px) { .fw-panel .panel__media video { object-position: 48% 30%; } }

/* diagnosis: the report cards over the clinic's front desk, blurred into a soft wash */
.dg-stage { min-height: 600px; }
.dg-stage .panel__media { filter: blur(5px) saturate(1.05); transform: scale(1.03); }
.dg-stage .panel__media video { object-position: 45% 40%; }
.dg-stage .panel__grade { background: linear-gradient(135deg, rgba(8, 24, 49, 0.46), rgba(245, 200, 74, 0.12)); }
@media (max-width: 600px) { .dg-stage { min-height: 650px; } }

/* results: the front desk at the top, the four tiles over the deep grade below it */
.res-panel { display: grid; align-content: end; padding: clamp(240px, 22vw, 330px) 24px 24px; }
.res-panel .panel__media video { object-position: 50% 28%; }
.res-panel .panel__grade { background: linear-gradient(180deg, rgba(8, 24, 49, 0.16) 0%, rgba(8, 24, 49, 0.34) 30%, rgba(8, 24, 49, 0.78) 58%, rgba(8, 24, 49, 0.9) 100%); }
.res-panel .panel__stage { pointer-events: none; }
.res-panel .stop { top: 16px; bottom: auto; left: 16px; right: auto; }
@media (max-width: 1000px) { .res-panel .panel__media video { object-position: 40% 26%; } }
@media (max-width: 600px) {
  .res-panel { padding: 250px 14px 14px; }
  .res-panel .panel__media { bottom: auto; height: 330px; }
  .res-panel .panel__media video { object-position: 34% 30%; }
  .res-panel .panel__grade { background: linear-gradient(180deg, rgba(8, 24, 49, 0.12) 0, rgba(8, 24, 49, 0.3) 150px, var(--c-brand) 330px); }
}
/* results, Edson's block (comments of 4 Nov): his short label over the title; under the numbers, how they were
   measured, then his own row (no section of its own, so the part stays compact; the photo above the words on a phone) */
.res-title { display: grid; gap: 14px; justify-items: start; }
.res-label { font-family: var(--font-ui); font-size: 15px; font-weight: var(--w-strong); line-height: 1.3; color: var(--c-accent); }
.res-when { white-space: nowrap; }
.res-foot { display: grid; gap: 22px; max-width: 880px; margin-top: 28px; }
.res-note { font-size: var(--fs-body); line-height: 1.6; color: var(--c-on-brand-soft); }
.res-who { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 18px; }
.res-who__photo { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--glass-line); }
.res-who__name { font-family: var(--font-ui); font-size: 16px; font-weight: var(--w-strong); line-height: 1.3; color: var(--c-on-brand); }
.res-who__line { margin-top: 3px; font-size: var(--fs-small); line-height: 1.55; color: var(--c-on-brand-soft); }
@media (max-width: 600px) {
  .res-foot { gap: 18px; margin-top: 22px; }
  .res-who { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .res-who__photo { width: 56px; height: 56px; }
}

/* execute: the worker in the left half (the clip scaled from its right edge), the engine board on the right */
.ex-panel { aspect-ratio: auto; min-height: 600px; }
.ex-panel .panel__media video { object-position: 50% 55%; transform: scale(1.3); transform-origin: 100% 55%; }
.ex-panel .panel__grade { background: linear-gradient(90deg, rgba(8, 24, 49, 0.32) 0%, rgba(8, 24, 49, 0.42) 45%, rgba(4, 13, 29, 0.86) 100%); }
@media (max-width: 760px) {
  .ex-panel { min-height: 640px; }
  .ex-panel .panel__media video { object-position: 69% 50%; transform: none; }
  .ex-panel .panel__grade { background: linear-gradient(180deg, rgba(8, 24, 49, 0.2) 0%, rgba(8, 24, 49, 0.35) 30%, rgba(4, 13, 29, 0.9) 62%); }
}

/* faq: the heading beside the questions on wide screens */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); gap: 24px 64px; align-items: start; }
.faq-wrap .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h, 64px) + 40px); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section__head { position: static; margin-bottom: 8px; } }

/* close: the owner's evening on the right, the words and the picker on the left */
.close-band .panel__media video { object-position: 60% 40%; }
@media (max-width: 860px) { .close-band .panel__media video { object-position: 79% 40%; } }
@media (max-width: 860px) { .close-band .stop { top: 16px; bottom: auto; } }
