/* SERVICES SECTION */
.services{
  /* override your global section margins so it can go full-bleed like the mock */
  margin: 0;
  /* background: var(--secondary-background); */
  color: var(--dark-color);
}

/* Lead block */
.services__lead{
  position: relative;
  background: var(--primary-color);
  padding: clamp(56px, 7vw, 120px) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
}

.services__lead-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}

.services__lead-heading{
  min-width: 0;
}

.services__lead-eyebrow{
  margin: 0 0 clamp(14px, 1.4vw, 22px) 0;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.services__lead-text{
  margin: 0;
  max-width: 15ch;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: rgba(255,255,255,0.96);
}

/* Marker-style highlight — editorial, sits on the baseline */
.services__lead-mark{
  background-image: linear-gradient(
    to top,
    var(--highlight-color) 0%,
    var(--highlight-color) 58%,
    transparent 58%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 100%;
  padding: 0 0.08em;
  margin: 0 -0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: rgba(255,255,255,0.96);
}

.services__lead-body{
  min-width: 0;
  padding-bottom: 6px;
}

.services__lead-sub {
  margin: 0 0 clamp(14px, 1.4vw, 20px) 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
}

.services__lead-sub:last-child{
  margin-bottom: 0;
}

/* Services pill rail */
.services__rail{
  list-style: none;
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding: 0 clamp(20px, 3vw, 40px);
  max-width: 1360px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
}

.services__rail li{
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.04);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  cursor: default;
}

.services__rail li:hover{
  background: var(--highlight-color);
  color: var(--dark-color);
  border-color: var(--highlight-color);
  transform: translateY(-1px);
}

@media (max-width: 900px){
  .services__lead-grid{
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
    align-items: start;
  }
  .services__lead-body{
    padding-bottom: 0;
  }
}


/* Diagonal cut */
.services__cut{
  position: absolute;
  left: 0;
  bottom: -1px; /* prevents 1px seam */
  width: 100%;
  height: clamp(90px, 14vw, 180px);
  display: block;
}

.services__cut polygon{
  fill: var(--secondary-background);
}

/* Body */
.services__body{
  padding: clamp(56px, 6vw, 90px) 0;
  background: 0;

}

.services__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  /* background: rgba(255,255,255,0.5); */
  /* backdrop-filter: blur(16px); */
  padding: 25px;

}

/* Type */
.services__title{
  margin: 0 0 10px 0;
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700; /* matches your strong headers */
  color: var(--dark-color);
}

.services__copy{
  margin: 0;
  max-width: 36ch;
  color: #8D8D8D; /* matches your p colour */
  line-height: 1.6;
}

/* Big right-hand block */
.services__item--big .services__title--big{
  font-size: clamp(44px, 5vw, 78px);
}

.services__copy--big{
  max-width: 46ch;
}

/* Mobile */
@media (max-width: 900px){
  .services__grid{
    grid-template-columns: 1fr;
  }

  .services__copy{
    max-width: 52ch;
  }
}
