/* ── Our capabilities — Figma 1231:1486 ── */
/* Specs from Dev Mode CSS export — 1440 artboard */

/* ── Banner hero (600px) ── */
.cap-banner {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: #000;
  overflow: hidden;
  isolation: isolate;
}

.cap-banner__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/capabilities/hero.jpg');
  background-size: cover;
  background-position: center bottom;
}

.cap-banner__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.76) 24.083%,
    rgba(102, 102, 102, 0) 59.25%
  );
  pointer-events: none;
}

.cap-banner .section-rail__dot {
  top: 285px;
}

.cap-banner .section-rail__label {
  display: none;
}

.cap-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 282px 222px 40px 210px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cap-banner__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  max-width: 1009px;
}

.cap-banner__title {
  margin: 0;
  width: 100%;
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.09em;
  color: #ffffff;
}

.cap-banner__divider {
  width: 945.5px;
  max-width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid #ffffff;
  margin: 0;
}

/* ── Section highlight pills (hover only — never pre-selected) ── */
.cap-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 881px;
}

.cap-pills__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cap-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 0.5px solid #ffffff;
  box-sizing: border-box;
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -1px;
  color: #e5e5e5;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cap-pill:hover,
.cap-pill:focus-visible {
  background: #27e3ff;
  border-color: #27e3ff;
  color: #231f20;
  outline: none;
}

/* ── Capability sections (620px each) ── */
.cap-section {
  position: relative;
  width: 100%;
  height: 620px;
  background-color: #000;
  overflow: hidden;
}

.cap-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cap-section__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90.07deg,
    rgba(26, 26, 26, 0.882) 41.67%,
    rgba(0, 0, 0, 0.09) 77.23%
  );
  pointer-events: none;
}

/* Numbers sit to the RIGHT of the rail line — never cut through it */
.cap-section .section-rail__label {
  top: 160px;
}

.cap-section .section-rail__number {
  line-height: 16px;
}

.cap-section__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px 0 155px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.cap-section__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  max-width: 775px;
  width: 100%;
}

.cap-section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-section__title {
  margin: 0;
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.09em;
  color: #27e3ff;
}

.cap-section__subtitle {
  margin: 0;
  font-family: 'Lexend Giga', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #abaaaa;
}

.cap-section__subtitle--regular {
  font-weight: 400;
}

.cap-section__list {
  margin: 0;
  padding-left: 30px;
  list-style: disc;
  font-family: 'Blinker', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  color: #ffffff;
}

.cap-section__list li {
  margin: 0;
}

.cap-section__list li + li {
  margin-top: 0;
}

.cap-section__para {
  margin: 0;
  font-family: 'Blinker', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  color: #ffffff;
  max-width: 728px;
}

/* ── Center Figma 1440 artboard on wide viewports (rail must stay aligned) ── */
@media (min-width: 1441px) {
  .cap-banner .section-rail,
  .cap-section .section-rail,
  .contact-cta .section-rail {
    left: calc((100% - 1440px) / 2 + 98px);
  }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .cap-banner__inner {
    padding: 200px 48px 40px 140px;
  }

  .cap-banner__title {
    font-size: 48px;
  }

  .cap-section__content {
    padding-left: 120px;
  }

  .cap-section__title {
    font-size: 34px;
  }
}

@media (max-width: 1024px) {
  .cap-banner {
    height: auto;
    min-height: 520px;
  }

  .cap-banner__inner {
    padding: 160px 40px 48px 72px;
    height: auto;
  }

  .cap-banner__title {
    font-size: 40px;
  }

  .cap-pill {
    white-space: normal;
    text-align: left;
  }

  .cap-section {
    height: auto;
    min-height: 520px;
  }

  .cap-section__content {
    padding: 80px 32px 80px 72px;
    align-items: flex-start;
  }

  .cap-section__grad {
    background: linear-gradient(
      90deg,
      rgba(26, 26, 26, 0.92) 45%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  .cap-section__title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .cap-banner__inner {
    padding: 120px 20px 36px 48px;
  }

  .cap-banner__title {
    font-size: 32px;
  }

  .cap-section__content {
    padding: 64px 20px 64px 48px;
  }

  .cap-section__title {
    font-size: 26px;
  }

  .cap-section__subtitle,
  .cap-section__list,
  .cap-section__para {
    font-size: 16px;
  }
}
