/* Services only. The original stylesheet remains unchanged. */
#services .services-timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}
#services .services-intro { position: sticky; top: 110px; }
#services .section-heading { margin-bottom: 36px; }
#services .section-heading h2 { font-size: clamp(30px, 3.1vw, 46px); }
#services .service-visual { min-height: 440px; }
#services .abstract-browser { top: 75px; }
#services .services-timeline { position: relative; min-width: 0; }
#services .service-list { position: relative; }
#services .service-item {
  position: relative;
  padding: 32px 20px 64px 0;
  min-height: 310px;
  border: 0;
  gap: 22px;
}
#services .service-item:last-child { padding-bottom: 32px; }
#services .service-item > div:last-child {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
#services .service-icon {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  background: #fafbf7;
  transition: background-color 300ms ease, border-color 300ms ease, border-radius 300ms ease, box-shadow 320ms ease;
}
#services .service-icon svg { grid-area: 1 / 1; transition: opacity 250ms ease; }
#services .timeline-check { display: block; opacity: 0; }
#services .service-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7c9a60;
  opacity: 0;
  transform: scale(.75);
  transition: opacity 250ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}
#services .timeline-rail { display: none; }
#services.timeline-ready .timeline-rail {
  display: block;
  position: absolute;
  left: 21px;
  top: var(--rail-top, 75px);
  height: var(--rail-height, 620px);
  width: 2px;
  background: #dfe6da;
}
#services .timeline-fill {
  display: block;
  height: 100%;
  background: linear-gradient(to bottom, #7c9a60, #66874e);
  box-shadow: 0 0 6px rgb(124 154 96 / 24%);
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
}
#services.timeline-ready .timeline-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--timeline-progress, 0) * 100%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #91ac72;
  box-shadow: 0 0 8px rgb(124 154 96 / 35%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#services .is-active > div:last-child {
  background: #f0f4e9;
  border-color: #dfe8d5;
  box-shadow: 0 7px 18px -14px rgb(79 110 56 / 20%);
}
#services .is-active .service-icon {
  border-radius: 50%;
  border-color: #98b47c;
  box-shadow: 0 0 0 7px rgb(233 239 223 / 85%), 0 0 22px rgb(124 154 96 / 24%);
  background: #f4f7ed;
}
#services .is-active .service-icon svg { opacity: 0; }
#services .is-active .service-icon::after { opacity: 1; transform: scale(1); }
#services .is-past .service-icon { border-radius: 50%; background: #eaf0df; border-color: #cedcbd; }
#services .is-past .service-icon > svg:first-child { opacity: 0; }
#services .is-past .timeline-check { opacity: 1; }
#services .timeline-status {
  display: none;
  align-items: center;
  gap: 24px;
  margin-left: 87px;
  color: #718064;
  font-size: 12px;
  letter-spacing: .12em;
}
#services.timeline-ready .timeline-status { display: flex; }
#services .timeline-meter { width: 110px; height: 2px; background: #dfe6da; }
#services .timeline-meter > span {
  display: block;
  height: 100%;
  background: #7c9a60;
  transform: scaleX(var(--timeline-progress, 0));
  transform-origin: left;
}
@media (max-width: 850px) {
  #services .services-timeline-layout { grid-template-columns: 1fr; }
  #services .services-intro { position: static; }
  #services .service-visual { min-height: 440px; max-width: 520px; }
  #services .service-item { min-height: 280px; padding-right: 0; gap: 16px; }
  #services .service-icon { width: 43px; height: 43px; }
  #services .service-item > div:last-child { padding: 18px; }
  #services .timeline-status { margin-left: 77px; }
}
@media (min-width: 851px) and (max-height: 980px) {
  #services .services-intro { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  #services .service-item > div:last-child,
  #services .service-icon,
  #services .service-icon svg,
  #services .service-icon::after { transition: none; }
  #services .services-intro { position: static; }
}

/* Quiet emphasis follows the existing scroll-driven active step. */
@media (prefers-reduced-motion: no-preference) {
  #services .service-item > div:last-child {
    transition: background-color 480ms cubic-bezier(.22, 1, .36, 1), border-color 480ms ease, box-shadow 480ms ease, transform 480ms cubic-bezier(.22, 1, .36, 1);
  }
  #services .is-active > div:last-child {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -15px rgb(79 110 56 / 30%);
  }
  #services .abstract-browser { transition: box-shadow 600ms ease; }
  #services .browser-sculpture div { transition: filter 650ms ease; }
  #services[data-service-active="0"] .browser-sculpture div { filter: brightness(1.05); }
  #services[data-service-active="1"] .abstract-browser { box-shadow: 12px 23px 35px #294c2d24, 0 0 24px #81a87320; }
  #services[data-service-active="2"] .browser-sculpture div { filter: saturate(1.13); }
}
