.what-we-do-page {
  background: #020909;
}

.what-we-do-page .navbar-toggler-icon {
  filter: none;
}

.what-we-do-page .wd-hero {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: #071015;
}

.wd-hero-image,
.wd-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wd-hero-image {
  object-fit: cover;
  object-position: center 43%;
}

.wd-hero-shade {
  background: linear-gradient(90deg, rgba(0, 6, 8, .66), rgba(0, 8, 10, .16) 54%, transparent 78%),
    linear-gradient(0deg, rgba(0, 7, 8, .22), transparent 50%);
}

.wd-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 24px 8px;
}

.wd-kicker {
  margin: 0 0 7px;
  color: var(--green);
  font-size: clamp(.75rem, 1.05vw, .95rem);
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wd-title {
  max-width: 670px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 3.8vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -.055em;
  word-spacing: .08em;
  line-height: .9;
  text-transform: uppercase;
}

.wd-title span,
.wd-services-title span {
  color: var(--green);
}

.wd-title .wd-title-word {
  margin-right: .14em;
  color: #fff;
}

.wd-services-title span {
  margin-left: .14em;
}

.wd-hero-copy {
  max-width: 430px;
  margin: 8px 0 13px;
  color: #f3f5f4;
  font-size: clamp(.9rem, 1.25vw, 1.1rem);
  line-height: 1.36;
}

.wd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wd-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 5px;
  color: #fff;
  font-size: .81rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}

.wd-action svg,
.wd-all-services svg,
.wd-card-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wd-action--primary {
  border-color: var(--green);
  background: var(--green);
  color: #04100a;
}

.wd-action:hover,
.wd-action:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #04100a;
}

.wd-slide-index {
  position: absolute;
  z-index: 2;
  top: 42px;
  right: max(3.4vw, 24px);
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-slide-index li {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  font-weight: 600;
}

.wd-slide-index li::after {
  content: "";
  width: 27px;
  height: 2px;
  background: rgba(255, 255, 255, .13);
}

.wd-slide-index li:first-child::after {
  background: var(--green);
}

.wd-services {
  padding: 30px 10px 40px;
  background: radial-gradient(ellipse at 88% 100%, rgba(5, 61, 43, .38), transparent 37%), #020a0a;
}

.wd-services-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.wd-services-intro {
  display: grid;
  grid-template-columns: minmax(310px, 1.06fr) minmax(320px, 1.45fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  min-height: 115px;
  padding: 0 20px 22px;
}

.wd-services-heading .wd-kicker {
  margin-bottom: 3px;
}

.wd-services-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 3.2vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -.06em;
  word-spacing: .08em;
  line-height: .9;
  text-transform: uppercase;
}

.wd-services-intro > p {
  max-width: 540px;
  margin: 0;
  padding-left: clamp(20px, 3vw, 45px);
  border-left: 1px solid rgba(255, 255, 255, .6);
  color: #e2e6e4;
  font-size: clamp(.84rem, 1.1vw, 1rem);
  line-height: 1.35;
}

.wd-all-services {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 160px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--green);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.wd-all-services svg {
  color: var(--green);
}

.wd-all-services:hover,
.wd-all-services:focus-visible {
  color: var(--green);
}

.wd-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  overflow: hidden;
  padding: 150px 19px 15px;
  border: 1px solid rgba(184, 210, 201, .32);
  border-radius: 6px;
  background: #071211;
  color: #fff;
  isolation: isolate;
  transition: border-color .2s, transform .2s;
}

.wd-card::before,
.wd-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
}

.wd-card::before {
  background-image: url("what-we-do-cards.webp");
  background-size: 500% 100%;
  background-position: var(--photo-position) center;
  transition: transform .35s;
}

.wd-card::after {
  background: linear-gradient(0deg, rgba(0, 11, 10, .98) 1%, rgba(0, 11, 10, .94) 28%, rgba(0, 11, 10, .44) 57%, transparent 88%);
}

.wd-card:hover,
.wd-card:focus-visible {
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.wd-card:hover::before,
.wd-card:focus-visible::before {
  transform: scale(1.035);
}

.wd-card--one { --photo-position: 0%; }
.wd-card--two { --photo-position: 25%; }
.wd-card--three { --photo-position: 50%; }
.wd-card--four { --photo-position: 75%; }
.wd-card--five { --photo-position: 100%; }

.wd-card-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 34px;
}

.wd-card-number {
  color: var(--green);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.wd-card-icon {
  width: 45px;
  height: 45px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wd-card h3 {
  min-height: 2.45em;
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(.96rem, 1.47vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.11;
  text-transform: uppercase;
}

.wd-card h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 8px;
  background: var(--green);
}

.wd-card p {
  margin: 0 0 12px;
  color: #e0e4e1;
  font-size: clamp(.73rem, .98vw, .87rem);
  line-height: 1.37;
}

.wd-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  .wd-services-intro {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.3fr);
  }
  .wd-all-services {
    display: none;
  }
  .wd-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .what-we-do-page .wd-hero {
    min-height: 470px;
  }
  .wd-hero-image {
    object-position: 67% center;
  }
  .wd-hero-shade {
    background: linear-gradient(90deg, rgba(0, 6, 8, .88), rgba(0, 8, 10, .38) 85%),
      linear-gradient(0deg, rgba(0, 7, 8, .54), transparent 70%);
  }
  .wd-hero-inner {
    padding: 40px 20px 28px;
  }
  .wd-title {
    max-width: 500px;
    font-size: clamp(2.45rem, 9vw, 4rem);
  }
  .wd-slide-index {
    display: none;
  }
  .wd-services {
    padding: 36px 14px 45px;
  }
  .wd-services-intro {
    display: block;
    min-height: 0;
    padding: 0 0 30px;
  }
  .wd-services-title {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }
  .wd-services-intro > p {
    margin-top: 18px;
    padding-left: 17px;
  }
  .wd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .what-we-do-page .wd-hero {
    min-height: 510px;
  }
  .wd-hero-inner {
    padding-top: 34px;
  }
  .wd-title {
    font-size: clamp(2.35rem, 10.8vw, 3.65rem);
  }
  .wd-actions {
    gap: 9px;
  }
  .wd-action {
    padding: 8px 11px;
    font-size: .66rem;
  }
  .wd-cards {
    grid-template-columns: 1fr;
  }
  .wd-card {
    min-height: 385px;
    padding-top: 145px;
  }
  .wd-card h3 {
    min-height: 0;
    font-size: 1.32rem;
  }
  .wd-card p {
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-card,
  .wd-card::before,
  .wd-action {
    transition: none;
  }
}
