.esg-impact-page {
  --esg-ink: var(--soil-brown);
  --esg-olive: var(--herb-sage);
  --esg-olive-deep: var(--soil-brown);
  --esg-sage-wash: var(--sage-soft);
  --esg-oat: var(--linen-oat);
  --esg-gold: var(--sunflower-gold);
  --esg-line: rgba(89, 66, 45, .12);
  overflow: hidden;
  background: #fffdf9;
}

.esg-impact-page > .front-section {
  position: relative;
  padding-top: clamp(76px, 8vw, 108px);
  padding-bottom: clamp(76px, 8vw, 108px);
}

.esg-impact-page .section-heading {
  margin-bottom: clamp(32px, 4vw, 50px);
}

.esg-impact-page .section-heading h2 {
  max-width: 780px;
  line-height: 1.08;
}

.esg-page-hero {
  background:
    radial-gradient(circle at 76% 18%, rgba(220, 164, 56, .13), transparent 25%),
    linear-gradient(135deg, #f8f1e5 0%, #f2eadc 100%);
}

.esg-page-hero .hero-visual {
  box-sizing: border-box;
  height: 460px;
  min-height: 0;
  border: 0;
  box-shadow: 0 28px 70px rgba(73, 57, 40, .17);
}

.esg-page-hero .hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 54%, rgba(33, 35, 27, .2));
  content: "";
  pointer-events: none;
}

.esg-page-hero .hero-visual img {
  object-position: center center;
}

@media (min-width: 1500px) {
  .esg-page-hero .hero-visual {
    width: 100%;
    max-width: 580px;
    justify-self: start;
  }
}

.esg-page-hero .hero-caption {
  right: 28px;
  left: auto;
  bottom: 28px;
  width: min(270px, calc(100% - 56px));
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 22px;
  background: rgba(62, 49, 35, .92);
  box-shadow: 0 18px 38px rgba(62, 49, 35, .2);
  color: #fff;
  backdrop-filter: blur(14px);
}

.esg-page-hero .hero-caption small {
  color: rgba(255, 255, 255, .76);
}

.esg-page-hero .hero-caption b {
  margin-top: 12px;
  color: #fff;
  font-size: 26px;
}

.esg-process-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(138, 149, 114, .1), transparent 22%),
    #fffdf9;
}

.esg-process-section .kpi-grid article {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, #fff 0%, #fbf7ef 100%);
  box-shadow: 0 18px 44px rgba(75, 58, 39, .08);
}

.esg-process-section .kpi-grid article::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border: 18px solid rgba(220, 164, 56, .1);
  border-radius: 50%;
  content: "";
}

.esg-process-section .kpi-grid b {
  display: inline-grid;
  width: 48px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--esg-oat);
  color: var(--esg-olive-deep);
  font-size: 14px;
  letter-spacing: .08em;
}

.esg-process-section .kpi-grid strong {
  margin-top: 30px;
  font-size: 21px;
}

.esg-impact-summary,
.esg-result-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, .7), transparent 24%),
    var(--esg-sage-wash);
}

.esg-impact-summary .kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--esg-line);
  border-bottom: 1px solid var(--esg-line);
}

.esg-impact-summary .kpi-grid article,
.esg-result-section .kpi-grid article {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(92, 70, 48, .08);
}

.esg-impact-summary .kpi-grid article {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .48);
  box-shadow: none;
  text-align: center;
}

.esg-impact-summary .kpi-grid article + article {
  border-left: 1px solid var(--esg-line);
}

.esg-impact-summary .kpi-grid article::before,
.esg-result-section .kpi-grid article::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--esg-gold), #edc974);
  content: "";
}

.esg-impact-summary .kpi-grid article::before {
  display: none;
}

.esg-impact-summary .kpi-grid b,
.esg-result-section .kpi-grid b {
  color: var(--esg-olive-deep);
}

.esg-impact-summary .kpi-grid b {
  color: var(--sunflower-gold);
  margin-bottom: 12px;
}

.esg-impact-summary .kpi-grid strong {
  color: var(--muted-brown);
  line-height: 1.45;
  margin: 0;
}

.esg-impact-summary .distance-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-sand);
  border-radius: 999px;
  background: var(--linen-oat);
  color: var(--soil-brown);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 18px;
  padding: 8px 16px;
}

.esg-impact-page .kpi-grid .route-count {
  display: block;
  margin-top: 8px;
}

.esg-calculator-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(220, 164, 56, .12), transparent 24%),
    #f7f1e7;
}

.esg-calculator-section .case-card {
  align-items: stretch;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.esg-calculator-section .contact-form,
.esg-calculator-section .contact-info {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(74, 57, 38, .1);
  padding: clamp(28px, 4vw, 46px);
}

.esg-calculator-section .contact-form {
  background: rgba(255, 255, 255, .94);
}

.esg-calculator-section .contact-form > label.wide {
  font-size: 18px;
}

.esg-calculator-section .contact-form input {
  min-height: 66px;
  border: 2px solid rgba(201, 174, 136, .35);
  background: #fffdf9;
  color: var(--esg-ink);
  font-size: 24px;
  font-weight: 900;
}

.esg-calculator-section .button-row {
  margin-top: 4px;
}

.esg-calculator-section .filter-row {
  margin-top: 6px;
}

.esg-calculator-section :is(.button-row, .filter-row) .btn {
  min-height: 46px;
  border-radius: 999px;
  background: #fff;
}

.esg-calculator-section #chips .btn[aria-pressed="true"] {
  border-color: var(--esg-olive-deep);
  background: var(--esg-olive-deep);
  color: #fff;
}

@media (min-width: 641px) {
  .esg-calculator-section #chips {
    display: grid;
    grid-template-columns: .7fr .8fr .85fr 1fr 1.65fr;
    gap: 8px;
  }

  .esg-calculator-section #chips .btn {
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
  }
}

.esg-calculator-section .contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 164, 65, .34), transparent 34%),
    linear-gradient(145deg, var(--soil-brown), var(--soil-deep));
  color: #fff;
}

.esg-calculator-section .contact-info .eyebrow,
.esg-calculator-section .contact-info h2,
.esg-calculator-section .contact-info p {
  color: #fff;
}

.esg-calculator-section .contact-info .eyebrow::before {
  background: rgba(255, 255, 255, .5);
}

.esg-calculator-section .contact-info h2 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.04;
}

.esg-calculator-section .contact-info p {
  margin: 4px 0;
  opacity: .82;
}

.esg-calculator-section .contact-info h2 + p {
  margin-top: 28px;
}

.esg-result-section .section-heading:last-child {
  max-width: none;
  border: 1px solid rgba(92, 70, 48, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
  margin: 24px 0 0;
  padding: 20px 24px;
}

.esg-result-section .section-heading:last-child p {
  max-width: none;
  font-size: 14px;
  line-height: 1.75;
}

.esg-circular-section {
  background: linear-gradient(135deg, #f8f1e6, #f2eadc);
}

.esg-circular-section .impact-panel {
  grid-template-columns: 1fr;
  gap: 16px;
  border: 0;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 24px 65px rgba(76, 59, 40, .09);
  padding: 16px;
}

.esg-circular-section .impact-panel > div {
  border-radius: 26px;
  padding: clamp(30px, 4vw, 54px);
}

.esg-circular-section .impact-panel > .contact-info {
  border: 0;
  background: linear-gradient(145deg, var(--soil-brown), var(--soil-deep));
  color: #fff;
}

.esg-circular-section .contact-info :is(.eyebrow, h2, p) {
  color: #fff;
}

.esg-methodology-section {
  background: #fffdf9;
}

.esg-methodology-section .featured-article {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.esg-methodology-section .featured-article p {
  min-width: 0;
  border: 1px solid var(--esg-line);
  border-radius: 22px;
  background: #f8f2e8;
  margin: 0;
  padding: 28px;
  line-height: 1.75;
}

.esg-methodology-section .featured-article strong {
  display: block;
  color: var(--esg-olive-deep);
  font-size: 17px;
  margin-bottom: 10px;
}

.esg-cta-section {
  background:
    radial-gradient(circle at 86% 18%, rgba(217, 164, 65, .3), transparent 28%),
    linear-gradient(135deg, var(--soil-brown), var(--soil-deep));
}

.esg-cta-section :is(h2, p) {
  color: #fff;
}

.esg-cta-section .eyebrow {
  color: #edc974;
}

.esg-cta-section .eyebrow::before {
  background: rgba(237, 201, 116, .6);
}

.esg-cta-section .btn-gold {
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 16px 34px rgba(30, 27, 22, .2);
}

@media (max-width: 1020px) {
  .esg-page-hero .hero-visual {
    height: 420px;
    min-height: 0;
  }

  .esg-page-hero .hero-caption {
    right: 24px;
    left: auto;
    bottom: 24px;
  }

  .esg-process-section .kpi-grid article,
  .esg-impact-summary .kpi-grid article,
  .esg-result-section .kpi-grid article {
    min-height: 0;
  }

  .esg-methodology-section .featured-article {
    grid-template-columns: 1fr;
  }

  .esg-circular-section .impact-panel h2 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .esg-impact-page > .front-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .esg-page-hero .hero-visual {
    height: 360px;
  }

  .esg-page-hero .hero-caption {
    right: 16px;
    bottom: 16px;
    width: 228px;
    padding: 18px;
  }

  .esg-page-hero .hero-caption b {
    font-size: 22px;
  }

  .esg-process-section .kpi-grid article {
    padding: 24px;
  }

  .esg-process-section .kpi-grid strong {
    margin-top: 18px;
  }

  .esg-impact-summary .kpi-grid {
    grid-template-columns: 1fr;
    border-top: 0;
    border-bottom: 0;
  }

  .esg-impact-summary .kpi-grid article {
    min-height: 0;
    border-radius: 20px;
    padding: 28px 22px;
  }

  .esg-impact-summary .kpi-grid article + article {
    border-top: 1px solid var(--esg-line);
    border-left: 0;
  }

  .esg-calculator-section .contact-form,
  .esg-calculator-section .contact-info {
    border-radius: 22px;
    padding: 24px;
  }

  .esg-calculator-section .contact-form input {
    min-height: 60px;
    font-size: 21px;
  }

  .esg-calculator-section :is(.button-row, .filter-row) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esg-calculator-section #chips .btn:last-child {
    grid-column: 1 / -1;
  }

  .esg-circular-section .impact-panel {
    padding: 10px;
  }

  .esg-methodology-section .featured-article p {
    border-radius: 18px;
    padding: 22px;
  }

  .esg-cta-section {
    align-items: flex-start;
  }
}
