/* Low Slope / TPO page cleanup, loaded after the shared interior theme. */
main#main-content,
body > main {
  width: 100%;
  margin: 0;
  padding: 0 0 clamp(56px, 8vw, 90px);
}

.service-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.78fr);
  align-items: stretch;
  width: min(1180px, calc(100% - 32px));
  min-height: 0;
  padding: clamp(34px, 5vw, 64px) 0 clamp(30px, 5vw, 60px);
  gap: clamp(18px, 3vw, 36px);
}

.hero-panel {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 48vw, 560px);
  padding: clamp(30px, 5vw, 56px);
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background: rgba(8, 38, 29, 0.68);
}

.hero-media {
  order: 2;
  min-height: clamp(420px, 48vw, 560px);
  overflow: hidden;
  border-radius: 28px;
  background: rgba(8, 38, 29, 0.46);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-panel h1 {
  max-width: 660px;
  color: #fff;
  font-size: clamp(3.45rem, 6.2vw, 6rem);
  line-height: 0.88;
}

.hero-panel p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
}

.hero-actions {
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .button {
  min-height: 50px;
  padding: 13px 20px;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}

.hero-panel .button-outline {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto clamp(18px, 3vw, 34px);
  padding: 14px;
  border-radius: 24px;
  background: rgba(8, 38, 29, 0.46);
}

.trust-strip span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.related-service-rail,
.section,
.proof-split,
.diagnostic-band,
.final-cta {
  width: min(1180px, calc(100% - 32px));
}

.related-service-rail {
  margin: 0 auto clamp(42px, 6vw, 70px);
}

.section,
.proof-split {
  padding: clamp(44px, 7vw, 78px) 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-heading h2,
.system-grid h3,
.process-grid h3,
.proof-split h2 {
  color: #fff;
}

.section-heading p,
.system-grid p,
.process-grid p,
.proof-split p {
  color: rgba(255, 255, 255, 0.82);
}

.system-grid,
.process-grid,
.gallery-grid {
  gap: 14px;
}

.system-grid article,
.process-grid article,
.proof-split > div {
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(8, 38, 29, 0.54);
}

.system-grid img {
  height: 215px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.diagnostic-band {
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(8, 38, 29, 0.62);
  box-shadow: var(--portfolio-shadow);
  backdrop-filter: blur(12px);
}

.diagnostic-band img,
.proof-split img {
  max-height: 520px;
}

.gallery-section .section-heading {
  display: block;
}

.gallery-section .gallery-grid img,
.gallery-section .gallery-grid img:first-child,
.gallery-section .gallery-grid img:nth-child(2) {
  height: clamp(230px, 25vw, 310px);
}

.final-cta {
  margin: clamp(34px, 6vw, 64px) auto 0;
  padding: clamp(44px, 6vw, 70px) clamp(18px, 4vw, 42px);
  border-radius: 28px;
  background: rgba(8, 38, 29, 0.62);
}

@media (max-width: 1040px) {
  .service-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-media {
    min-height: auto;
  }

  .hero-media img {
    min-height: clamp(320px, 52vw, 460px);
  }
}

@media (max-width: 760px) {
  .service-hero,
  .related-service-rail,
  .section,
  .proof-split,
  .diagnostic-band,
  .final-cta,
  .trust-strip {
    width: calc(100% - 28px);
  }

  .hero-panel {
    padding: 26px;
  }

  .hero-panel h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .related-service-rail,
  .section-heading,
  .diagnostic-band,
  .proof-split {
    grid-template-columns: 1fr;
  }

  .system-grid,
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-section .gallery-grid img,
  .gallery-section .gallery-grid img:first-child,
  .gallery-section .gallery-grid img:nth-child(2) {
    height: 280px;
  }
}

/* Liquid-glass cleanup pass for the Low Slope / TPO page. */
:root {
  --low-glass: rgba(10, 42, 34, 0.58);
  --low-glass-strong: rgba(9, 38, 31, 0.7);
  --low-glass-soft: rgba(255, 255, 255, 0.09);
  --low-border: rgba(255, 255, 255, 0.28);
  --low-highlight: rgba(255, 255, 255, 0.18);
}

.service-hero,
.trust-strip,
.section,
.diagnostic-band,
.proof-split,
.final-cta {
  position: relative;
}

.hero-panel,
.hero-media,
.trust-strip,
.system-grid article,
.process-grid article,
.diagnostic-band,
.proof-split > div,
.proof-split img,
.gallery-grid img,
.final-cta {
  border: 1px solid var(--low-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.08)),
    var(--low-glass);
  box-shadow:
    inset 0 1px 0 var(--low-highlight),
    0 24px 70px rgba(0, 22, 17, 0.32);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.hero-panel,
.hero-media,
.diagnostic-band,
.final-cta {
  border-radius: 22px;
}

.service-hero {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(24px, 4vw, 42px);
}

.hero-panel {
  padding: clamp(34px, 5vw, 62px);
}

.hero-media {
  background: rgba(8, 38, 29, 0.42);
}

.hero-media img {
  opacity: 0.94;
}

.hero-panel h1 {
  max-width: 620px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero-panel p:not(.eyebrow) {
  max-width: 600px;
}

.hero-panel .hero-subhead {
  margin: 18px 0 0;
  max-width: 620px;
  color: #fff;
  font-family: "Barlow Condensed", "Barlow", "Trebuchet MS", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-panel .hero-subhead + p {
  margin-top: 22px;
}

.trust-strip {
  justify-content: flex-start;
  margin-bottom: clamp(28px, 5vw, 56px);
  padding: 12px;
}

.trust-strip span {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.section,
.proof-split {
  padding-top: clamp(36px, 6vw, 70px);
  padding-bottom: clamp(36px, 6vw, 70px);
}

.section-heading {
  display: block;
  max-width: 840px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 720px;
}

.system-grid,
.process-grid {
  gap: 16px;
}

.system-grid article,
.process-grid article,
.proof-split > div {
  border-radius: 18px;
  overflow: hidden;
}

.system-grid div,
.process-grid article,
.proof-split > div {
  padding: clamp(20px, 3vw, 28px);
}

.system-grid img {
  height: clamp(205px, 21vw, 260px);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid strong {
  color: var(--brand-accent);
}

.diagnostic-band {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 5vw, 56px);
}

.diagnostic-band li {
  border-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.diagnostic-band img,
.proof-split img {
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 48px rgba(0, 22, 17, 0.24);
}

.proof-split {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
}

.gallery-section .section-heading {
  margin-bottom: 20px;
}

.gallery-grid {
  gap: 12px;
}

.gallery-grid img,
.gallery-section .gallery-grid img:first-child,
.gallery-section .gallery-grid img:nth-child(2) {
  height: clamp(220px, 24vw, 300px);
  border-radius: 16px;
}

.final-cta {
  text-align: center;
}

.final-cta .hero-actions {
  justify-content: center;
}

@media (max-width: 1080px) {
  .service-hero,
  .diagnostic-band,
  .proof-split {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-panel,
  .hero-media,
  .diagnostic-band,
  .final-cta {
    border-radius: 16px;
  }

  .trust-strip {
    justify-content: center;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Final shape pass: keep Low Slope / TPO consistent with the softer liquid-glass pages. */
.hero-panel,
.hero-media,
.trust-strip,
.diagnostic-band,
.final-cta {
  border-radius: clamp(26px, 3vw, 34px);
}

.system-grid article,
.process-grid article,
.proof-split > div,
.proof-split img,
.gallery-grid img,
.gallery-section .gallery-grid img:first-child,
.gallery-section .gallery-grid img:nth-child(2) {
  border-radius: 28px;
}

.system-grid article,
.process-grid article,
.proof-split > div {
  overflow: hidden;
}

.system-grid img {
  border-radius: 28px 28px 0 0;
}

.diagnostic-band li,
.trust-strip span {
  border-radius: 999px;
}

.hero-media img {
  border-radius: 0;
}

@media (max-width: 760px) {
  .hero-panel,
  .hero-media,
  .trust-strip,
  .diagnostic-band,
  .final-cta,
  .system-grid article,
  .process-grid article,
  .proof-split > div,
  .proof-split img,
  .gallery-grid img,
  .gallery-section .gallery-grid img:first-child,
  .gallery-section .gallery-grid img:nth-child(2) {
    border-radius: 22px;
  }

  .system-grid img {
    border-radius: 22px 22px 0 0;
  }
}

/* Round the intro cards that lead each Low Slope / TPO content section. */
.systems-section .section-heading,
.process-section .section-heading {
  max-width: 860px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--low-border);
  border-radius: clamp(26px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.08)),
    var(--low-glass);
  box-shadow:
    inset 0 1px 0 var(--low-highlight),
    0 24px 70px rgba(0, 22, 17, 0.32);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.systems-section .section-heading h2,
.process-section .section-heading h2 {
  max-width: 780px;
}

.systems-section .section-heading p,
.process-section .section-heading p {
  max-width: 720px;
}

.systems-section .section-heading {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#project-photos .section-heading {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 760px) {
  .systems-section .section-heading,
  .process-section .section-heading {
    border-radius: 22px;
  }
}
