/* Keep the burnout cycle compact while retaining the SVG scale and touch targets. */
@media screen {
  .product-opening ~ #burnout { padding-block: 24px; }
  .product-opening ~ #burnout .burnout-title { margin-bottom: 22px; }
  .product-opening ~ #burnout .chart-shell { padding: 17px 20px 14px; }
  .product-opening ~ #burnout .burnout-chart { max-height: 280px; }
  .product-opening ~ #burnout .chart-label,
  .product-opening ~ #burnout .chart-time { font-size: 15px; }
  .product-opening ~ #burnout .chart-top { margin-bottom: 8px; }
  .product-opening ~ #burnout .chart-caption { margin-top: 8px; }
  .product-opening ~ #burnout .burnout-steps { margin-top: 12px; }
}
@media screen and (max-width: 760px) {
  .product-opening ~ #burnout { padding-block: 18px; }
  .product-opening ~ #burnout .burnout-title { margin-bottom: 14px; }
  .product-opening ~ #burnout .burnout-title > p { margin-top: 12px; }
  .product-opening ~ #burnout .chart-shell { padding: 12px; }
}
@media screen {
  .product-opening > .shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - var(--product-header-height,76px));
  }
  .product-opening :is(.hero-layout,[class$="-hero-layout"]) { flex: 1 0 auto; align-content: center; }
}
@media screen and (max-width: 760px) {
  .product-opening > .shell { min-height: calc(100vh - 66px); min-height: calc(100dvh - var(--product-header-height,66px)); }
}
/* Give each product chapter the space below its sticky product menu. */
@media screen {
  html:has(.product-opening) { scroll-padding-block-start:0; }
  body:has(.product-opening) > header { scroll-snap-align:start; }
  .product-opening ~ section[id] {
    min-height:calc(100dvh - var(--product-menu-height,54px));
    scroll-margin-block-start:var(--product-menu-height,54px);
    scroll-snap-align:start;
    display:flex;flex-direction:column;justify-content:center;
  }
  .product-opening ~ #overview .casting-visual img { max-height:clamp(280px,48dvh,525px); }
  body:has(.product-opening) > footer { scroll-snap-align:end; }
}
@media screen and (min-width:761px) and (prefers-reduced-motion:no-preference) {
  html:has(.product-opening) { scroll-snap-type:y mandatory; }
  .product-opening ~ section[id] { scroll-snap-stop:always; }
}
@media screen and (max-width:760px) {
  .product-opening ~ #overview .casting-visual img { max-height:clamp(215px,32dvh,310px); }
}
@media screen {
  .product-opening ~ #contact {
    min-height:clamp(180px,33dvh,340px);
    padding-block:clamp(20px,3dvh,34px);
    scroll-snap-align:end;
  }
  #contact.product-closing .contact-layout { width:var(--contact-width,calc(100% - 2 * var(--gutter))); }
  #contact.product-closing h2 { font-size:clamp(30px,3.1vw,46px);margin-top:8px; }
  #contact.product-closing p:not(.eyebrow) { margin-top:10px; }
}
@media screen and (max-width:760px) {
  .product-opening ~ #contact { min-height:0;padding-block:22px; }
  #contact.product-closing .contact-action { margin-top:14px; }
}
