/* Tie the single MAIF diagram to the repeatable-block drawing as it enters view. */
html body#baula-site.v4-page.infrastructure-page .energy-campus-core .energy-campus-factory-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 40px 0 0 auto !important;
  text-align: right;
  color: #657083 !important;
  font-family: 'Barlow Semi Condensed', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .025em;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

html body#baula-site.v4-page.infrastructure-page .product-details .repeatable-blocks-line {
  position: absolute;
  z-index: 2;
  /* Reach back to the end of the preceding section's bottom padding so the
     connector visibly starts just below the MAIF drawing. */
  top: calc(-1 * clamp(72px, 9vw, 120px));
  left: 72%;
  width: 1px;
  height: calc(clamp(150px, 24vh, 280px) + clamp(72px, 9vw, 120px));
  background: #3e6ae1;
  pointer-events: none;
  transform: scaleY(var(--line-progress, 0));
  transform-origin: top center;
  will-change: transform;
}

html body#baula-site.v4-page.infrastructure-page .site-specific-section {
  min-height: 350px;
  padding: clamp(80px, 10vw, 140px) var(--gutter) !important;
  background: #fff !important;
  color: #0b1022 !important;
}

/* Keep the repeatable-block content visually continuous with the section above. */
html body#baula-site.v4-page.infrastructure-page main > .product-details {
  background: #fff !important;
  overflow-x: clip;
  overflow-y: visible;
}

html body#baula-site.v4-page.infrastructure-page .site-specific-section .section-heading {
  margin: 0;
  align-items: start;
}

html body#baula-site.v4-page.infrastructure-page .site-specific-section h2 {
  max-width: 16ch;
  color: #0b1022 !important;
}

html body#baula-site.v4-page.infrastructure-page .site-specific-section p {
  max-width: 54ch;
  color: #0b1022 !important;
}

@media (max-width: 650px) {
  html body#baula-site.v4-page.infrastructure-page .product-details .repeatable-blocks-line {
    left: 50%;
  }

  html body#baula-site.v4-page.infrastructure-page .site-specific-section .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body#baula-site.v4-page.infrastructure-page .product-details .repeatable-blocks-line {
    transform: scaleY(1);
  }
}


/* Stack the site-specific eyebrow and its large copy on one shared left edge. */
html body#baula-site.v4-page.infrastructure-page .site-specific-section .site-specific-heading {
  display: block;
  width: min(42%, 504px);
  max-width: 504px;
  margin: 0;
  text-align: left;
}

@media (max-width: 900px) {
  html body#baula-site.v4-page.infrastructure-page .site-specific-section .site-specific-heading {
    width: 100%;
    max-width: 100%;
  }
}


/* Captions share the header's right margin, independent of oversized artwork. */
html body#baula-site.v4-page.infrastructure-page .infrastructure-model-diagram,
html body#baula-site.v4-page.infrastructure-page .repeatable-block-art,
html body#baula-site.v4-page.infrastructure-page .energy-flow-visual {
  position: static;
}
html body#baula-site.v4-page.infrastructure-page .infrastructure-diagram-caption {
  position: absolute;
  right: var(--gutter);
  display: block;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 16px 0 0;
  color: #657083;
  text-align: right;
  font-family: 'Barlow Semi Condensed', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.25;
  text-transform: uppercase;
}
html body#baula-site.v4-page.infrastructure-page .infrastructure-model-diagram .power-module-diagram {
  height: auto;
}
html body#baula-site.v4-page.infrastructure-page .energy-flow-visual .infrastructure-diagram-caption {
  margin: 0;
}
html body#baula-site.v4-page.infrastructure-page .energy-flow-visual .energy-flow-scene {
  margin-top: 36px;
}
