/* A full-width opening photograph anchors each chapter; the examples follow in normal flow. */
#health.scene--health,
#nutrition.scene.scene--nutrition,
#clinic.scene--clinic { padding-top: 0; }

:is(#health, #nutrition, #clinic) .chapter-film {
  --film-edge: max(clamp(22px, 6vw, 100px), calc((100% - 1320px) / 2));
  position: relative;
  isolation: isolate;
  display: grid;
}
:is(#health, #nutrition) .chapter-film { min-height: clamp(470px, 70svh, 790px); }
:is(#health, #nutrition, #clinic) .chapter-film > .chapter-photo {
  margin: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}
:is(#health, #nutrition) .chapter-film > .chapter-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: -1;
}
:is(#health, #nutrition, #clinic) .chapter-film img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#health .chapter-film img { object-position: 50% 22%; }
#nutrition .chapter-film img { object-position: 50% 53%; }
:is(#health, #nutrition) .chapter-film > .chapter-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(11 17 12 / 90%) 0%, rgb(11 17 12 / 75%) 12%, rgb(11 17 12 / 40%) 31%, transparent 59%);
}
:is(#health, #nutrition) .chapter-film__title {
  align-self: end;
  padding: 64px var(--film-edge) clamp(28px, 4.6vw, 76px);
  color: #fff;
}
:is(#health, #nutrition, #clinic) .chapter-film__title .eyebrow {
  margin: 0 0 clamp(10px, 1.15vw, 19px);
  padding: 0;
  color: inherit;
  font-size: clamp(.74rem, .86vw, .88rem);
  line-height: 1.4;
  letter-spacing: .12em;
}
.chapter-film__title :is(#healthTitle, #nutritionTitle, #clinicTitle) {
  max-width: 19ch;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  font-weight: 620;
  line-height: .99;
  letter-spacing: -.054em;
  color: inherit;
  text-wrap: balance;
}
:is(#health, #nutrition, #clinic) > .band__inner { padding-top: clamp(34px, 4.8vw, 76px); }
#health .film-instruction {
  margin: 0 0 clamp(22px, 2.7vw, 40px);
  max-width: 50ch;
  color: var(--dark-ink-2);
}
#health .limits-controls, #health .verdict-big { align-content: start; }
#nutrition .split__copy > p:first-child {
  font-weight: 530;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  letter-spacing: -.028em;
  line-height: 1.4;
  color: var(--ink);
}

/* Keep the CMD identity and the sign in daylight. The controls have their own panel under the photo. */
#clinic .chapter-film__title {
  padding: clamp(48px, 5.5vw, 88px) var(--film-edge) clamp(26px, 3.3vw, 55px);
  color: var(--cmd-deep);
}
#clinic .chapter-film__title .eyebrow { display: flex; align-items: center; gap: 12px; }
#clinic .chapter-film__title .eyebrow::before { content: ""; width: 26px; border-top: 3px solid #00b388; }
#clinic .chapter-film__title h2 { max-width: none; }
#clinic .chapter-film > .chapter-photo {
  grid-area: auto;
  height: clamp(420px, 61svh, 690px);
  background: #f2f6fe;
}
#clinic .chapter-film img { object-position: 50% 17%; }
#clinic .clinic-overview {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "intro preview" "benefits preview";
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(32px, 5.7vw, 92px);
}
#clinic .clinic-intro .lead {
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  font-weight: 520;
  line-height: 1.39;
  letter-spacing: -.025em;
}
#clinic .clinic-benefits {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 15px;
}
#clinic .clinic-benefits dd { max-width: 45ch; }

@media (max-width: 759px) {
  :is(#health, #nutrition, #clinic) .chapter-film { --film-edge: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  :is(#health, #nutrition) .chapter-film { min-height: clamp(360px, 119vw, 580px); }
  :is(#health, #nutrition) .chapter-film__title { padding-block: 45px 30px; }
  .chapter-film__title :is(#healthTitle, #nutritionTitle, #clinicTitle) { font-size: clamp(2.55rem, 9.7vw, 4rem); line-height: 1.01; }
  #health .chapter-film img { object-position: 48% 41%; }
  #nutrition .chapter-film img { object-position: 48% 50%; }
  #clinic .chapter-film__title { padding-block: 40px 24px; }
  #clinic .chapter-film > .chapter-photo { height: auto; aspect-ratio: 1.18; }
  #clinic .chapter-film img { object-position: 55% 27%; }
  #clinic .clinic-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "preview" "benefits";
    grid-template-rows: auto;
    row-gap: 23px;
  }
  #clinic .clinic-benefits { gap: 15px; }
  :is(#clinic .clinic-intro .lead, #nutrition .split__copy > p:first-child) { font-size: 1.14rem; }
}
