.capabilities-page {
  background-color: #ffffff;
  color: #00263e;
}

.capabilities-page .capabilities-section {
  padding: 20px 0;
}

.capabilities-page .capabilities-section {
  margin-top: 2%;
}

/* Header alignment for immersive hero */
.capabilities-page #masthead {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 10;
}

.capabilities-page #masthead.bg--white #site-navigation {
  background: transparent;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  .navbar-inner {
  background: transparent;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item
  a.nav-link {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item
  a.nav-link
  span {
  color: #ffffff;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item.current-menu-ancestor
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item.show
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item.active
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item:hover
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item.current-menu-ancestor
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item.show
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item.active
  a.nav-link,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item:hover
  a.nav-link {
  border-bottom-color: #ffffff;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item.current-menu-ancestor
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item.show
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item.active
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop
  li.nav-item:hover
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item.current-menu-ancestor
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item.show
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item.active
  a.nav-link
  span,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  ul#menu-desktop-right
  li.nav-item:hover
  a.nav-link
  span {
  color: #ffffff;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  .menu-primary-menu-right-container
  li.social-li
  a.social-link
  svg {
  fill: #ffffff;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  button.navbar-toggler
  .hamburger-inner,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  button.navbar-toggler
  .hamburger-inner:before,
.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  button.navbar-toggler
  .hamburger-inner:after {
  background-color: #ffffff;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  .primary-site-logo {
  display: none;
}

.capabilities-page
  #masthead.bg--white
  #site-navigation:not(.main-navigation--scrolled)
  .alternative-site-logo {
  display: block;
}

/* Hero - mirror Technology page */
.wwa-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.wwa-hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 38, 70, 0.86) 0%,
    rgba(10, 38, 70, 0.65) 100%
  );
  display: flex;
  align-items: center;
}

.wwa-hero .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 10vh, 140px);
  padding-bottom: clamp(72px, 10vh, 140px);
}

.wwa-hero__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 600;
  padding-left: 5%;
}

.wwa-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 18px;
  line-height: 1.2;
  padding-top: 0;
  padding-left: 5%;
}

.capabilities-page .wwa-hero__title {
  padding-top: 30% !important;
}

.wwa-hero__description {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 5%;
}

/* Section layout */
.capabilities-section .container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.capabilities-intro h2,
.capabilities-description h2,
.capabilities-expertise h2,
.capabilities-development h2,
.capabilities-development h3,
.capabilities-testing h2,
.capabilities-approach h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: clamp(12px, 2vw, 20px);
  color: #002140;
}

.capabilities-intro p,
.capabilities-description p,
.capabilities-testing p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: #2f2f2f;
  margin-bottom: clamp(12px, 2vw, 18px);
}

.capabilities-image-block__media,
.capabilities-image-feature__media {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  margin: 0;
}

.capabilities-image-block__media img,
.capabilities-image-feature__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Expertise list */
.capabilities-expertise__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 14px;
}

.capabilities-expertise__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.capabilities-expertise__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #0078ba;
  background: transparent;
  box-shadow: none;
}

.capabilities-expertise__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.capabilities-expertise__text {
  display: inline-block;
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.6;
  color: #032742;
  font-weight: 500;
}

/* Development narrative */
.capabilities-development .container {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.capabilities-development__item h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: clamp(8px, 1.5vw, 16px);
  color: #003a64;
}

.capabilities-development__item p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: #2f2f2f;
}

.capabilities-development__note {
  margin-top: clamp(10px, 2vw, 16px);
  font-weight: 600;
  color: #003a64;
}

/* Capability cards */
.capabilities-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.capabilities-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.4vw, 16px);
  border-radius: 22px;
  border: 1px solid rgba(9, 74, 136, 0.16);
  background: #ffffff;
  box-shadow: 0 28px 44px rgba(10, 60, 110, 0.1);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.capabilities-card:hover,
.capabilities-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 36px 56px rgba(10, 60, 110, 0.14);
}

.capabilities-card__content {
  padding: 0 clamp(12px, 1.6vw, 16px) clamp(12px, 1.6vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1f2f3e;
  align-items: flex-start;
  min-height: clamp(140px, 16vw, 180px);
}

.capabilities-card__number {
  font-weight: 700;
  font-size: 1.25rem;
  color: #0078ba;
}

.capabilities-card__content h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  color: #012b4b;
  margin: 0;
}

.capabilities-card__content p {
  font-size: clamp(0.98rem, 1.5vw, 1.05rem);
  color: #2f3f4c;
  margin: 0;
  line-height: 1.55;
}

.capabilities-card__media {
  margin: 6px 0 0 0;
  padding: 6px;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
}

.capabilities-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* CTA band */
.capabilities-cta {
  position: relative;
  margin: clamp(20px, 4vw, 40px) 0 clamp(16px, 3vw, 28px);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
}

.capabilities-cta--full {
  padding: 0;
  min-height: clamp(220px, 36vw, 343px);
}

.capabilities-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.46) 100%
  );
  pointer-events: none;
}

.capabilities-cta .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.capabilities-cta__content {
  padding: clamp(16px, 3vw, 28px) 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.capabilities-cta__content h2 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.capabilities-cta__content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.capabilities-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 182px;
  min-height: 59px;
  border-radius: 40px;
  border: 2px solid #f7fd7b;
  color: #f7fd7b;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.capabilities-cta__label {
  display: inline-block;
}

.capabilities-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #f7fd7b;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.capabilities-cta__icon svg {
  display: block;
  transition: transform 0.3s ease;
}

.capabilities-cta__link:hover,
.capabilities-cta__link:focus {
  background: rgba(247, 253, 123, 0.15);
  color: #ffffff;
}

.capabilities-cta__link:hover .capabilities-cta__icon,
.capabilities-cta__link:focus .capabilities-cta__icon {
  color: #ffffff;
}

.capabilities-cta__link:hover .capabilities-cta__icon svg,
.capabilities-cta__link:focus .capabilities-cta__icon svg {
  transform: translate(2px, -2px);
}

.capabilities-approach .container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.capabilities-approach__wrapper {
  background: #e6e6e6;
  border-radius: 20px;
  padding: clamp(22px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vw, 22px);
  min-height: clamp(280px, 38vw, 360px);
  --indent-unit: clamp(18px, 3vw, 36px);
}

.capabilities-approach__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: clamp(16px, 2.8vw, 22px);
}

.capabilities-approach__step {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d2d6da;
  padding: clamp(12px, 1.8vw, 18px);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
  width: calc(100% - var(--indent-left, 0px));
  margin-left: var(--indent-left, 0px);
}

.capabilities-approach__step.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered, step-like indentation from top to bottom */
.capabilities-approach__step:nth-child(1) {
  --indent-left: calc(var(--indent-unit) * 1);
}
.capabilities-approach__step:nth-child(2) {
  --indent-left: calc(var(--indent-unit) * 2);
}
.capabilities-approach__step:nth-child(3) {
  --indent-left: calc(var(--indent-unit) * 3);
}
.capabilities-approach__step:nth-child(4) {
  --indent-left: calc(var(--indent-unit) * 4);
}

.capabilities-approach__icon {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.capabilities-approach__icon::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0078ba;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.capabilities-approach__content {
  font-size: 1rem;
  line-height: 1.5;
  color: #2a2a2a;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .capabilities-cta__content {
    max-width: none;
    padding: clamp(18px, 6vw, 28px) clamp(16px, 5vw, 32px);
  }

  .capabilities-cta--full {
    min-height: clamp(200px, 50vw, 300px);
  }

  .capabilities-approach .container {
    width: calc(100% - 40px);
  }

  .capabilities-approach__wrapper {
    min-height: clamp(300px, 60vw, 380px);
    border-radius: 18px;
  }
}

@media (max-width: 767px) {
  .capabilities-cta__content {
    padding: clamp(32px, 14vw, 60px) 0;
  }

  .capabilities-cta__link {
    width: 100%;
  }

  .capabilities-cards__grid {
    grid-template-columns: 1fr;
  }
  .capabilities-approach__steps {
    grid-template-columns: 1fr;
  }
  .capabilities-approach__step {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .capabilities-cta--full {
    min-height: clamp(180px, 80vw, 260px);
  }

  .capabilities-approach__wrapper {
    min-height: clamp(300px, 90vw, 360px);
    border-radius: 16px;
  }
}

@media (max-width: 920px) {
  .capabilities-expertise__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .capabilities-approach__steps {
    grid-template-columns: 1fr;
  }
}
