/* ===== Section 4 — Services ===== */
.section4 {
  background: var(--light);
  color: var(--ink);
  padding: clamp(70px, 9vw, 130px) 0;
  overflow-x: clip; /* rows slide in from the right */
}

.section4__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}


.section4__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.95;
}
.section4__title .line { display: block; overflow: hidden; }
.section4__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.section4__title .line:nth-child(2) > span { transition-delay: 0.12s; }
.section4.is-visible .section4__title .line > span { transform: none; }

.services { list-style: none; }

.service { border-bottom: 1px solid rgba(20, 20, 22, 0.18); overflow: hidden; }

.service__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  isolation: isolate;
  transition: color 0.45s var(--ease), padding 0.45s var(--ease);
}
.service__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.service__num {
  font-size: 13px;
  color: var(--blue);
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.service__name { flex: 1; }
.service__link svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform 0.45s var(--ease), color 0.3s; }

.service__link:hover { color: var(--white); padding: 24px 22px; }
.service__link:hover::before { transform: scaleY(1); }
.service__link:hover .service__num { color: var(--green); }
.service__link:hover svg { transform: rotate(-45deg); color: var(--green); }

/* staggered reveal of rows */
.service { opacity: 0; transform: translateX(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.section4.is-visible .service { opacity: 1; transform: none; }
.section4.is-visible .service:nth-child(1) { transition-delay: 0.2s; }
.section4.is-visible .service:nth-child(2) { transition-delay: 0.3s; }
.section4.is-visible .service:nth-child(3) { transition-delay: 0.4s; }
.section4.is-visible .service:nth-child(4) { transition-delay: 0.5s; }


@media (max-width: 860px) {
  .section4__inner { grid-template-columns: 1fr; }
}
