.global-nav a[aria-current="page"] {
  color: var(--color-accent-strong);
}

.services-hero,
.services-index,
.service-showcase {
  overflow: hidden;
}

.services-hero .eyebrow,
.services-index .eyebrow {
  color: var(--color-accent-strong);
}

.services-hero {
  position: relative;
  padding: 5.5rem 0 3.4rem;
}

.services-hero::before {
  position: absolute;
  z-index: -1;
  top: -12rem;
  right: -14rem;
  width: min(88vw, 42rem);
  aspect-ratio: 1;
  border: 1px solid rgb(138 112 80 / 18%);
  border-radius: 50%;
  content: "";
}

.services-hero__inner {
  display: grid;
  gap: 2rem;
}

.services-hero__content h1 {
  max-width: none;
  margin: 0 0 1.4rem;
  color: var(--color-primary);
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  line-height: 1.28;
}

.services-hero__content > p:last-child {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  line-height: 1.95;
}

.service-photo {
  position: relative;
  border-radius: 0.15rem;
  box-shadow: 0 1.6rem 4rem rgb(16 26 34 / 9%);
}

.service-photo::before,
.service-photo::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.service-photo::before {
  inset: 0;
  background: linear-gradient(105deg, rgb(255 253 248 / 58%) 0%, rgb(255 253 248 / 20%) 35%, rgb(16 26 34 / 8%) 100%);
  mix-blend-mode: screen;
}

.service-photo::after {
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgb(16 26 34 / 26%), transparent);
}

.service-photo .photo-slot__surface {
  padding: 0;
}

.service-photo .photo-slot__surface::before,
.service-photo .photo-slot__surface::after {
  display: none;
}

.service-photo--hero {
  min-height: clamp(18rem, 72vw, 34rem);
}

.service-photo--hero .photo-slot__surface {
  background:
    radial-gradient(circle at 72% 28%, rgb(255 253 248 / 55%) 0 12%, transparent 13%),
    linear-gradient(118deg, rgb(255 253 248 / 82%) 0%, rgb(231 224 212 / 78%) 28%, rgb(142 132 116 / 48%) 58%, rgb(36 43 44 / 58%) 100%),
    url("../images/services/services-hero.jpg") center / cover,
    linear-gradient(90deg, #d8d0c3, #a99d8d);
}

.services-index {
  padding-block: 3.4rem;
  background: var(--color-surface);
}

.services-index__inner {
  display: grid;
  gap: 1.6rem;
}

.services-index h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 6vw, 3.25rem);
}

.services-hero__content h1 .typo-line,
.services-index h2 .typo-line {
  white-space: nowrap;
}

.services-index__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(32 39 44 / 13%);
  list-style: none;
}

.services-index__list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgb(32 39 44 / 13%);
  text-decoration: none;
}

.services-index__list span {
  color: var(--color-accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.services-index__list strong {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 5.8vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
}

.service-showcase {
  background: var(--color-background);
  scroll-margin-top: 5rem;
}

.service-showcase:nth-of-type(even) {
  background: var(--color-surface);
}

.service-showcase__inner {
  display: grid;
  gap: 1.45rem;
}

.service-showcase__photo {
  order: 1;
}

.service-showcase__content {
  order: 2;
  display: grid;
  gap: 1rem;
}

.service-showcase__number {
  margin-bottom: 0;
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.service-showcase h2 {
  margin-bottom: 0.1rem;
  color: var(--color-primary);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.service-showcase h2.service-showcase__title--consulting {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.service-showcase__lead {
  margin-bottom: 0;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 6.4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.48;
}

.service-showcase__body {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.95;
}

.service-examples {
  margin-top: 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(32 39 44 / 14%);
}

.service-examples p {
  margin-bottom: 0.8rem;
  color: var(--color-accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.service-examples ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-examples li {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgb(32 39 44 / 13%);
  border-radius: 999px;
  background: rgb(255 253 248 / 58%);
  color: var(--color-text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.service-project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: 1.1rem;
  padding: 1.35rem 0 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: clamp(1rem, 4.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.service-project-link span:last-child {
  flex: 0 0 auto;
  font-size: 1.45em;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--motion-fast) ease;
}

.service-project-link:hover span:last-child {
  transform: translate(0.2rem, 0.2rem);
}

.service-photo--produce,
.service-photo--consulting,
.service-photo--equipment {
  min-height: clamp(18.5rem, 78vw, 34rem);
}

.service-photo--produce .photo-slot__surface {
  background:
    linear-gradient(90deg, rgb(255 253 248 / 78%) 0%, rgb(255 253 248 / 34%) 34%, rgb(31 38 34 / 24%) 100%),
    radial-gradient(circle at 72% 36%, rgb(130 108 75 / 32%) 0 14%, transparent 15%),
    url("../images/services/services-produce.jpg") center / cover,
    linear-gradient(135deg, #d9d1c2 0%, #b3a58f 48%, #2e3534 100%);
}

.service-photo--consulting .photo-slot__surface {
  background:
    linear-gradient(105deg, rgb(255 253 248 / 82%) 0%, rgb(255 253 248 / 24%) 40%, rgb(32 39 44 / 16%) 100%),
    repeating-linear-gradient(0deg, rgb(32 39 44 / 8%) 0 1px, transparent 1px 3.2rem),
    url("../images/services/services-consulting.jpg") center / cover,
    linear-gradient(135deg, #ece6dc 0%, #b9ad9d 46%, #7f786d 100%);
}

.service-photo--equipment .photo-slot__surface {
  background:
    linear-gradient(118deg, rgb(255 253 248 / 72%) 0%, rgb(255 253 248 / 22%) 42%, rgb(16 26 34 / 26%) 100%),
    radial-gradient(circle at 76% 28%, rgb(255 253 248 / 34%) 0 10%, transparent 11%),
    url("../images/services/services-equipment.jpg") center / cover,
    linear-gradient(135deg, #c7bda9 0%, #eee8dc 45%, #5d625d 100%);
}

@media (max-width: 43.99rem) {
  .section {
    padding-block: 3.7rem;
  }

  .services-hero__content h1 {
    max-width: 100%;
  }

  .services-hero__content .typo-line,
  .service-showcase__lead .typo-line,
  .service-showcase__body .typo-line {
    display: block;
  }

  .service-showcase__content {
    padding-inline: 0.15rem;
  }
}

@media (min-width: 44rem) {
  .services-hero {
    padding: 7rem 0 4.5rem;
  }

  .services-hero__inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1.08fr);
    gap: clamp(2.4rem, 5vw, 4rem);
    align-items: center;
  }

  .service-photo--hero {
    min-height: 30rem;
  }

  .services-index__inner {
    grid-template-columns: minmax(0, 0.72fr) minmax(22rem, 1fr);
    gap: var(--space-5);
    align-items: end;
  }

  .services-index__inner > .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -0.8rem;
  }

  .services-index__list a {
    grid-template-columns: 4rem minmax(0, 1fr);
    padding-block: 1.35rem;
  }

  .service-showcase__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.8rem);
    align-items: center;
  }

  .service-showcase--reverse .service-showcase__photo {
    order: 2;
  }

  .service-showcase--reverse .service-showcase__content {
    order: 1;
  }

  .service-photo--produce,
  .service-photo--consulting,
  .service-photo--equipment {
    min-height: 33rem;
  }

  .service-examples {
    margin-top: 0.9rem;
  }

  .service-project-link {
    margin-top: 1.4rem;
    padding-top: 1.55rem;
  }
}

@media (min-width: 64rem) {
  .services-hero {
    min-height: 42rem;
    display: grid;
    align-items: center;
    padding: 7rem 0 4rem;
  }

  .services-hero__inner {
    grid-template-columns: minmax(0, 0.7fr) minmax(28rem, 1.3fr);
    gap: clamp(4rem, 7vw, 6.5rem);
  }

  .service-showcase {
    padding-block: 6.2rem;
  }

  .service-showcase__inner {
    grid-template-columns: minmax(24rem, 0.86fr) minmax(29rem, 1fr);
  }

  .service-showcase__content {
    gap: 1.15rem;
  }

  .service-photo--produce,
  .service-photo--consulting,
  .service-photo--equipment {
    min-height: 38rem;
  }
}
