/* Capabilities Section v5 */

.cap-section-outer {
  position: relative;
}

.cap-section-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cap-section-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Steps */
.cap-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0; padding: 0; list-style: none;
}

.cap-steps::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0; bottom: 0;
  width: 1.5px;
  z-index: 0;
}

.cap-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 20px;
  padding: 14px 0;
  position: relative;
  transition: padding 0.35s ease;
}

.cap-step.cap-active {
  padding: 18px 0;
}

.cap-step-number {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 0.8rem;
  z-index: 1; flex-shrink: 0; align-self: start; margin-top: 2px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.cap-step.cap-active .cap-step-number {
  color: #fff;
  transform: scale(1.1);
}

.cap-step-body { min-width: 0; }

.cap-step-title {
  line-height: 1.3;
  margin-bottom: 0;
  transition: color 0.35s ease;
}

/* Description and pill collapse when inactive */
.cap-step-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  line-height: 1.7;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.cap-step.cap-active .cap-step-desc {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

.cap-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.cap-step.cap-active .cap-step-tag {
  max-height: 60px;
  opacity: 1;
  margin-top: 10px;
}

.cap-step-tag svg {
  width: 12px; height: 12px;
  opacity: 0.65; flex-shrink: 0;
}
