/* Services page - an editorial overview with clear points of entry */
.services-hero {
  overflow: visible;
  padding-top: clamp(3.5rem, 5.5vw, 5.25rem);
  padding-bottom: clamp(2.8rem, 4.5vw, 4rem);
}

.services-hero::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: max(-8rem, -8vw);
  width: min(49rem, 58vw);
  height: min(43rem, 72vh);
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 32%, rgba(142, 154, 65, 0.16), transparent 38%),
    radial-gradient(circle at 76% 68%, rgba(201, 155, 63, 0.10), transparent 33%);
}

.services-hero__layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5.25rem);
  align-items: center;
}

.services-hero__copy {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.3rem);
  align-content: start;
  max-width: 44rem;
}

.services-hero__copy h1 {
  max-width: 9.5em;
}

.services-hero__lead {
  max-width: 39rem;
  color: var(--ink-2);
}

.services-hero__visual {
  position: relative;
  width: min(100%, 40.5rem);
  margin: 0;
  justify-self: end;
  filter: drop-shadow(0 1.5rem 2.8rem rgba(23, 34, 31, 0.08));
}

.services-hero__visual::after {
  content: "";
  position: absolute;
  inset: 8% 6% 6% 12%;
  z-index: -1;
  border-radius: 44% 56% 48% 52%;
  background: rgba(225, 235, 228, 0.55);
  filter: blur(2.2rem);
}

.services-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Model review */
.services-review {
  display: grid;
  gap: var(--section-grid-gap);
  align-items: start;
}

.services-review__heading {
  display: grid;
  gap: var(--section-heading-gap);
}

.services-review__heading h2 {
  max-width: 11.5em;
}

.services-review__copy {
  display: grid;
  gap: 1.2rem;
  padding-top: 0.15rem;
}

.services-review__signal {
  max-width: 48rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1vw + 1rem, 1.85rem);
  font-weight: var(--weight-semibold);
  line-height: 1.36;
  letter-spacing: -0.024em;
}

.services-review__copy > p:not(.services-review__signal),
.service-feature p,
.implementation-service p {
  color: var(--ink-2);
  font-size: clamp(0.98rem, 0.18vw + 0.95rem, 1.05rem);
  line-height: 1.68;
}

/* Forecasting and optimisation */
.services-planning {
  display: grid;
  gap: clamp(2.5rem, 4.8vw, 4.3rem);
}

.services-chapter-intro {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.25rem);
  align-items: start;
}

.services-chapter-intro > div {
  display: grid;
  gap: var(--section-heading-gap);
}

.services-chapter-intro h2 {
  max-width: 14em;
}

.services-chapter-intro > p {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.08rem);
  line-height: 1.7;
}

.services-planning__grid {
  display: grid;
  gap: clamp(1.15rem, 2.5vw, 1.7rem);
}

.service-feature {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1.45rem, 3.1vw, 2.15rem);
  background: var(--surface);
  border: 1px solid rgba(198, 206, 198, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(23, 34, 31, 0.08);
}

.service-feature__label {
  color: var(--green);
  font-size: var(--label-size-sm) !important;
  font-weight: var(--weight-heavy);
  letter-spacing: var(--label-tracking);
  line-height: var(--label-line-height) !important;
  text-transform: uppercase;
}

.service-feature h3 {
  max-width: 18em;
  color: var(--ink);
}

.service-feature p:not(.service-feature__label) {
  max-width: 52ch;
}

/* Implementation */
.services-implementation {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.services-implementation__intro {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.65rem, 3.5vw, 2.45rem);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 155, 63, 0.21), transparent 36%),
    linear-gradient(145deg, var(--green-3), var(--green-2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
}

.services-implementation__intro::after {
  content: "";
  position: absolute;
  right: -4.5rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.5rem rgba(255, 255, 255, 0.025),
    0 0 0 5rem rgba(255, 255, 255, 0.02);
}

.services-implementation__intro h2 {
  position: relative;
  z-index: 1;
  max-width: 12em;
  color: white;
}

.services-implementation__intro > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.68;
}

.services-implementation__list {
  display: grid;
  align-content: start;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.implementation-service {
  padding: clamp(1.35rem, 2.8vw, 1.95rem);
  border-bottom: 1px solid var(--line);
}

.implementation-service:last-child {
  border-bottom: 0;
}

.implementation-service > div {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.implementation-service h3 {
  color: var(--ink);
}

.implementation-service__lead {
  color: var(--ink) !important;
  font-size: 0.94rem !important;
  font-weight: var(--weight-bold);
  line-height: 1.5 !important;
}

.implementation-service p:last-child {
  max-width: 58ch;
  font-size: 0.92rem;
  line-height: 1.62;
}

@media (min-width: 920px) {
  .services-hero__layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(410px, 0.84fr);
  }

  .services-review {
    grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.15fr);
  }

  .services-chapter-intro {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 0.72fr);
    gap: var(--section-grid-gap);
  }

  .services-chapter-intro > p {
    padding-top: 0.35rem;
  }

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

  .services-implementation {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  }

  .services-implementation__intro {
    min-height: 100%;
  }
}

@media (max-width: 919px) {
  .services-hero__visual {
    width: min(100%, 35rem);
    justify-self: center;
  }

  .services-hero__copy h1,
  .services-review__heading h2,
  .services-chapter-intro h2 {
    max-width: none;
  }
}

@media (max-width: 559px) {
  .services-hero {
    padding-top: 3rem;
    padding-bottom: 2.8rem;
  }

  .services-hero__visual {
    width: 106%;
    margin-inline: -3%;
  }

  .service-feature {
    border-radius: var(--radius);
  }

  .services-implementation__intro,
  .services-implementation__list {
    border-radius: var(--radius);
  }

}

@media print {
  .site-header {
    position: static !important;
    backdrop-filter: none;
  }

  .menu-toggle,
  .site-nav {
    display: none !important;
  }

  .services-hero,
  .section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .services-hero__layout,
  .services-review,
  .services-chapter-intro,
  .services-planning__grid,
  .services-implementation {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .services-hero__visual {
    display: block !important;
    width: 100%;
  }

  .service-feature,
  .implementation-service {
    break-inside: avoid-page;
  }

  .services-implementation__intro {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
