.services-page {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}


.services-intro {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}


.services-kicker {
  margin: 0 0 14px;
  color: #d9f43d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}


.services-title {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -.065em;
  line-height: .96;
}


.services-copy {
  max-width: 560px;
  margin: clamp(18px, 2.5vw, 24px) 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}


.service-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #171e19;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}


.service-card:focus-within {
  border-color: rgba(217, 244, 61, .7);
  transform: translateY(-3px);
}
@media (hover: hover) and (pointer: fine) {.service-card:hover {
  border-color: rgba(217, 244, 61, .7);
  transform: translateY(-3px);
}}


.service-number {
  display: block;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: #d9f43d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}


.service-detail {
  margin: 0;
  max-height: calc(1.65em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  line-height: 1.65;
}


.service-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9f43d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}


.service-card-more::after {
  content: "↓";
  font-size: 14px;
}


.service-card.is-expanded .service-detail {
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  display: block;
}


.service-card.is-expanded .service-card-more::after {
  content: "↑";
}


.services-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(30px, 5vw, 54px);
  border-radius: 8px;
  background: #d9f43d;
  color: #111;
}


.services-cta .services-kicker {
  margin-bottom: 12px;
  color: #3f4800;
}


.services-cta h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -.06em;
  line-height: .96;
}


.services-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}


@media (max-width: 820px) {
  
.services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  
.service-card {
    min-height: 220px;
    padding: 24px;
  }

  
.service-number {
    margin-bottom: clamp(16px, 2vw, 24px);
  }

  
.services-cta {
    align-items: flex-start;
    flex-direction: column;
  }

}


@media (max-width: 600px) {
  
.services-page {
    width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
  }

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

  
.services-cta a {
    width: 100%;
    justify-content: center;
  }

}



.service-card-more[hidden] { display: none; }



/* Uniform service card sizing — compact, responsive, no oversized bottom space. */


.service-card {
  box-sizing: border-box;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  overflow: hidden;
}



@media (max-width: 820px) {
  
.service-card {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }

}



@media (max-width: 600px) {
  
.service-card {
    height: 175px;
    min-height: 175px;
    max-height: 175px;
    padding: 20px;
  }

}




/* Image-supported service cards. Existing card click/read-more behavior is preserved. */


.service-card {
  display: flex;
  flex-direction: column;
  height: clamp(286px, 27vw, 322px);
  min-height: 286px;
  max-height: 322px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}


.service-card-image {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(108px, 12vw, 132px);
  object-fit: cover;
  object-position: center;
  background: #202a22;
}


.service-card-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(15px, 1.8vw, 20px);
}


.service-card-body .service-number {
  margin-bottom: clamp(10px, 1.2vw, 14px);
}


.service-card-body .service-detail {
  flex: 0 1 auto;
  max-height: calc(1.55em * 3);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.55;
}


.service-card-body .service-card-more {
  margin-top: auto;
  padding-top: 10px;
}


@media (max-width: 820px) {
  
.service-card {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  
.service-card-image {
    height: 122px;
  }

}


@media (max-width: 600px) {
  
.service-card {
    height: 286px;
    min-height: 286px;
    max-height: 286px;
  }

  
.service-card-image {
    height: 118px;
  }

  
.service-card-body {
    padding: 16px 18px;
  }

}



/* Compact image cards: size each card to its own content instead of reserving empty space. */


.services-grid {
  align-items: start;
}


.service-card {
  align-self: start;
  height: auto;
  min-height: 0;
  max-height: none;
}


.service-card-body {
  flex: 0 0 auto;
}


.service-card-body .service-card-more {
  margin-top: 12px;
  padding-top: 0;
}


@media (max-width: 820px) {
  
.service-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

}


@media (max-width: 600px) {
  
.service-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

}




/* Consistent responsive breathing room around the yellow bottom CTA. */


.services-cta {
  margin-block: clamp(10px, 1.5vw, 18px);
}
/* Remove the browser's default tap flash from controls and navigation on touchscreens. */
a, button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"], summary, .menu-toggle {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
