/* Layout and copy QA: isolate editorial elements from the global site header/footer. */
.legacy-content > header {
  height: auto;
  min-height: 0;
  padding: 0 0 42px;
  background: transparent;
  color: inherit;
  position: static;
  z-index: auto;
  align-items: end;
}

.legacy-content > footer.legacy-future {
  padding: 28px 0 0;
  background: transparent;
  color: inherit;
  align-items: start;
}

/* The logo fills from top to bottom; no beam, scan line or falling laser. */
.logo-loader::before,
.logo-loader::after,
.logo-loader .plastic-flow {
  display: none !important;
  content: none !important;
}

.logo-loader .logo-fill {
  animation-name: logoFillCycle !important;
}

/* Guardrails against text collisions and overly tight section transitions. */
.legacy-story,
.manifesto,
.types,
.materials,
.infrastructure,
.process,
.turnkey,
.services,
.contact {
  overflow: clip;
}

.legacy-content,
.legacy-content > *,
.legacy-pillars section,
.legacy-quality > div {
  min-width: 0;
}

.legacy-content h2,
.legacy-pillars h3,
.legacy-quality h3,
.section-title h2,
.materials h2,
.infrastructure h2,
.process h2,
.turnkey h2,
.service-heading h2,
.contact h2 {
  text-wrap: balance;
}

.legacy-article > p,
.legacy-pillars p,
.legacy-quality p,
.legacy-future p {
  text-wrap: pretty;
}

@media (max-width: 1100px) {
  .legacy-story { grid-template-columns: minmax(115px,.26fr) minmax(0,1.74fr); gap: 4vw; }
  .legacy-content header { grid-template-columns: .42fr 1.58fr; gap: 2.5vw; }
  .legacy-content h2 { font-size: clamp(48px,6vw,72px); }
}

@media (max-width: 900px) {
  .legacy-story { grid-template-columns: 1fr; gap: 48px; }
  .legacy-content > header { display: grid; padding: 0 0 34px; }
  .legacy-content > footer.legacy-future { display: grid; padding: 26px 0 0; }
  .legacy-content h2 { font-size: clamp(44px,10vw,64px); }
  .legacy-article { gap: 24px; }
  .legacy-quality { gap: 18px; }
}

@media (max-width: 560px) {
  .legacy-story { gap: 36px; }
  .legacy-rail { grid-template-columns: auto minmax(36px,1fr) auto; }
  .legacy-rail strong { font-size: 58px; }
  .legacy-content h2 { font-size: clamp(40px,12vw,50px); line-height: .96; }
  .legacy-lead { margin-top: 18px; line-height: 1.65; }
  .legacy-article { margin-top: 30px; }
  .legacy-pillars h3 { margin-top: 28px; }
  .legacy-quality { margin-top: 30px; }
}
