.dark-section {
  position: relative;
  color: var(--white);
  background-color: #020713;
  background-size: cover;
  background-position: center bottom;
  padding-top: 82px;
  padding-bottom: 68px;
  isolation: isolate;
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 7, 19, 0.42);
  pointer-events: none;
}

.dark-section > .shell {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  justify-items: center;
}

.services-slide {
  display: flex;
  justify-content: center;
}

.services-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.services-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.services-dots button.is-active {
  background: var(--orange);
}

.services-cta {
  display: flex;
  width: max-content;
  min-width: 230px;
  margin: 62px auto 0;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 2, 14, 0.18);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.services-cta:hover,
.services-cta:focus-visible {
  border-color: var(--orange);
  background: var(--orange);
  color: #00020e;
  transform: translateY(-1px);
}

.service-card {
  position: relative;
  width: min(100%, 382px);
  height: 435px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 10px;
  background: rgba(0, 2, 14, 0.473);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    0 4px 4px rgba(0, 0, 0, 0.548);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  outline: 0 solid transparent;
  outline-offset: -2px;
  transition:
    outline-color 180ms ease,
    outline-width 180ms ease;
}

.card-photo {
  width: 100%;
  height: 236px;
  flex-shrink: 0;
  background-color: #17283a;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
}

.service-copy {
  flex: 1;
  padding: 30px 24px 42px;
  background: rgba(0, 2, 14, 0);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  transition:
    background-color 180ms ease,
    backdrop-filter 180ms ease;
}

.service-copy h3 {
  margin: 0;
  color: var(--white);
  font-size: var(--font-title);
  line-height: var(--leading-title);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 180ms ease;
}

.service-copy h3 span {
  display: inline-block;
  color: var(--orange);
  font-size: var(--font-h3);
  line-height: 1;
  font-weight: var(--font-regular);
  transition: transform 180ms ease;
}

.service-copy p {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-body);
  line-height: var(--leading-body);
  font-weight: var(--font-regular);
}

.service-card:hover,
.service-card:focus-within,
.service-card:focus-visible {
  border-color: var(--orange);
  box-shadow:
    inset 1px 0 0 rgba(255, 91, 24, 0.18),
    inset -1px 0 0 rgba(255, 91, 24, 0.18),
    0 4px 4px rgba(0, 0, 0, 0.548);
}

.service-card:hover::after,
.service-card:focus-within::after,
.service-card:focus-visible::after {
  outline: 2px solid var(--orange);
}

.service-card:hover .service-copy,
.service-card:focus-within .service-copy,
.service-card:focus-visible .service-copy {
  background: #00131c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.service-card:hover .service-copy h3,
.service-card:focus-within .service-copy h3,
.service-card:focus-visible .service-copy h3 {
  color: var(--orange);
}

.service-card:hover .service-copy h3 span,
.service-card:focus-within .service-copy h3 span,
.service-card:focus-visible .service-copy h3 span {
  transform: translateX(5px);
}

@media (max-width: 1180px) {
  .service-card {
    height: auto;
    min-height: 435px;
  }

  .service-copy {
    padding: 26px 20px 34px;
  }

  .service-copy h3 {
    font-size: var(--font-body);
  }

  .service-copy p {
    font-size: var(--font-ui);
  }
}

@media (max-width: 900px) {
  .services-slider {
    overflow: hidden;
  }

  .services-grid {
    display: flex;
    gap: 0;
    justify-items: stretch;
    transition: transform 520ms ease;
    will-change: transform;
  }

  .services-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1px;
  }

  .service-card {
    width: min(100%, 430px);
  }

  .services-dots {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-grid {
    transition: none;
  }
}
