/* Landfill Design & Capping — visual and readability refinement, v40 */

body {
  --landfill-copy: clamp(18px, 0.28vw + 15px, 21px);
  --landfill-support: clamp(16px, 0.16vw + 14.5px, 18px);
}

body .hero-lead {
  max-width: 800px;
  font-size: clamp(20px, 0.35vw + 16px, 23px) !important;
  line-height: 1.62;
}

body .hero-proof {
  max-width: none;
  gap: 14px;
}

body .hero-proof div {
  min-height: 126px;
  padding: 21px 22px;
}

body .hero-proof strong {
  font-size: clamp(18px, 0.22vw + 16px, 20px) !important;
  line-height: 1.25 !important;
}

body .hero-proof span {
  margin-top: 8px;
  font-size: clamp(16px, 0.16vw + 14.5px, 18px) !important;
  line-height: 1.5 !important;
}

/* Interactive landfill anatomy */
.system-builder {
  min-height: 660px;
  padding: 28px;
  border-radius: 34px;
  transform: none !important;
}

.builder-head {
  padding: 2px 2px 20px;
}

.builder-head > span {
  font-size: 15px;
  line-height: 1.35;
}

.builder-head h2 {
  max-width: 760px;
  margin-top: 9px;
  font-size: clamp(1.85rem, 2.1vw, 2.55rem);
  line-height: 1.1;
}

.builder-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 7px;
  border-radius: 18px;
}

.builder-tab {
  min-height: 56px;
  padding: 10px 16px;
  font-size: clamp(16px, 0.18vw + 14px, 18px);
  letter-spacing: 0.035em;
  text-transform: none;
}

.landfill-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 16px;
  margin-top: 16px;
}

.landfill-stack,
.landfill-detail {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #082123;
}

.landfill-stack {
  position: relative;
  padding: 19px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    #082123;
  background-size: 34px 34px;
}

.landfill-stack::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -105px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(52, 227, 224, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.landfill-stack-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  color: #dcebea;
  font-size: var(--landfill-support);
  font-weight: 800;
}

.landfill-stack-head span:last-child {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landfill-layers {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.landfill-layer {
  position: relative;
  width: 100%;
  min-height: var(--layer-depth, 58px);
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  display: grid;
  grid-template-columns: minmax(145px, 0.72fr) minmax(170px, 1.28fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.12), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 7px, transparent 7px 14px),
    var(--layer-colour, #176f70);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.17);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.landfill-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 64%, rgba(6, 23, 25, 0.18));
  pointer-events: none;
}

.landfill-layer:hover,
.landfill-layer:focus-visible,
.landfill-layer.active {
  z-index: 3;
  transform: translateX(7px);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.26), 0 0 0 3px rgba(52, 227, 224, 0.08);
  filter: saturate(1.1) brightness(1.08);
  outline: none;
}

.landfill-layer-name,
.landfill-layer-role {
  position: relative;
  z-index: 2;
}

.landfill-layer-name {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(17px, 0.22vw + 15px, 20px);
  font-weight: 800;
  line-height: 1.22;
}

.landfill-layer-role {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15.5px, 0.14vw + 14px, 17px);
  font-weight: 650;
  line-height: 1.35;
}

.landfill-ground {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: #91aaa6;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landfill-ground::before,
.landfill-ground::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(52, 227, 224, 0.34));
}

.landfill-ground::after {
  background: linear-gradient(90deg, rgba(52, 227, 224, 0.34), transparent);
}

.landfill-detail {
  position: relative;
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 227, 224, 0.14), transparent 38%),
    linear-gradient(150deg, #0d3031, #071d1f);
}

.landfill-detail::after {
  content: "";
  position: absolute;
  right: -115px;
  bottom: -145px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(216, 173, 86, 0.16);
  border-radius: 50%;
}

.landfill-detail-copy,
.landfill-detail-facts {
  position: relative;
  z-index: 2;
}

.landfill-detail-kicker {
  display: block;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landfill-detail h3 {
  margin: 15px 0 13px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.65rem, 2.1vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.landfill-detail p {
  margin: 0;
  color: #abc1bd;
  font-size: clamp(17px, 0.2vw + 15px, 19px) !important;
  line-height: 1.58;
}

.landfill-detail-facts {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.landfill-fact {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.landfill-fact span {
  display: block;
  color: var(--teal-bright);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landfill-fact strong {
  display: block;
  margin-top: 5px;
  color: #eef8f6;
  font-size: clamp(16px, 0.16vw + 14.5px, 18px);
  line-height: 1.4;
}

.builder-footer {
  padding-top: 18px;
  color: #b0c4c0;
  font-size: clamp(15px, 0.13vw + 14px, 17px);
  letter-spacing: 0.025em;
  text-transform: none;
}

.builder-footer strong {
  color: var(--teal-bright);
}

/* Page-wide readability and space use */
body .section-heading {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
}

body .section-heading > p {
  max-width: 820px;
  justify-self: end;
  font-size: clamp(19px, 0.28vw + 16px, 22px) !important;
  line-height: 1.62;
}

body .risk-card {
  min-height: 330px;
  padding: 33px;
}

body .risk-card > span,
body .scope-number,
body .interface-card > span,
body .failure-condition > span,
body .failure-response > span,
body .input-card > span,
body .experience-strip > span {
  font-size: clamp(15.5px, 0.13vw + 14px, 17px) !important;
  line-height: 1.35;
}

body .risk-card h3 {
  margin-top: 24px;
  font-size: clamp(1.5rem, 1.55vw, 1.9rem);
}

body .risk-card p,
body .risk-card li,
body .scope-card p,
body .interface-intro p,
body .interface-card p,
body .failure-response p,
body .input-card p,
body .experience-strip p,
body .cta-card p {
  font-size: var(--landfill-copy) !important;
  line-height: 1.58;
}

body .risk-card li {
  padding-left: 22px;
}

body .scope-card {
  min-height: 310px;
  padding: 32px;
}

body .scope-card h3 {
  margin: 23px 0 13px;
  font-size: clamp(1.42rem, 1.45vw, 1.78rem);
  line-height: 1.2;
}

body .interface-intro {
  min-height: 520px;
  padding: 42px;
}

body .interface-intro h3 {
  font-size: clamp(2.2rem, 3.35vw, 3.75rem);
}

body .interface-note {
  font-size: clamp(17px, 0.18vw + 15px, 19px);
  line-height: 1.5;
}

body .interface-card {
  min-height: 250px;
  padding: 29px;
}

body .interface-card h3,
body .input-card h3 {
  font-size: clamp(1.3rem, 1.35vw, 1.62rem);
  line-height: 1.26;
}

body .failure-row {
  min-height: 138px;
  grid-template-columns: minmax(360px, 0.76fr) minmax(0, 1.24fr);
}

body .failure-condition,
body .failure-response {
  padding: 28px 31px;
}

body .failure-condition strong,
body .failure-response strong {
  font-size: clamp(19px, 0.24vw + 16px, 22px);
  line-height: 1.38;
}

body .input-card {
  min-height: 235px;
  padding: 30px;
}

body .experience-strip {
  gap: 34px;
  padding: 30px 34px;
}

body .cta-card {
  padding: clamp(44px, 4vw, 66px);
}

@media (min-width: 1181px) {
  body main > .hero {
    min-height: 790px !important;
    padding-bottom: 56px !important;
  }

  body .hero-grid {
    grid-template-columns: minmax(590px, 0.86fr) minmax(720px, 1.14fr) !important;
    gap: clamp(34px, 2.7vw, 54px) !important;
  }
}

@media (max-width: 1360px) {
  .landfill-explorer {
    grid-template-columns: 1fr;
  }

  .landfill-detail {
    min-height: 330px;
  }

  .system-builder {
    min-height: 0;
  }

  body .hero-grid {
    grid-template-columns: minmax(500px, 0.9fr) minmax(620px, 1.1fr) !important;
  }
}

@media (max-width: 1180px) {
  body .hero-grid,
  body .section-heading {
    grid-template-columns: 1fr !important;
  }

  body .section-heading > p {
    justify-self: start;
    max-width: 960px;
  }

  .system-builder {
    width: min(980px, 100%);
  }

  body .failure-row {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 820px) {
  .system-builder {
    padding: 18px;
    border-radius: 28px;
  }

  .builder-tabs {
    grid-template-columns: 1fr;
  }

  .landfill-stack {
    padding: 14px;
  }

  .landfill-layer {
    min-height: 72px;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }

  .landfill-layer:hover,
  .landfill-layer:focus-visible,
  .landfill-layer.active {
    transform: none;
  }

  .landfill-detail {
    min-height: 0;
    padding: 25px;
  }

  body .scope-grid,
  body .input-grid {
    grid-template-columns: 1fr;
  }

  body .risk-card,
  body .scope-card,
  body .interface-card,
  body .input-card {
    min-height: 0;
  }

  body .failure-row {
    grid-template-columns: 1fr;
  }

  body .experience-strip {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .landfill-stack-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .landfill-detail h3 {
    font-size: 1.8rem;
  }

  body .hero-proof div {
    min-height: 0;
  }

  body .interface-intro,
  body .cta-card {
    padding: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landfill-layer {
    transition: none;
  }
}
