.home-services {
  padding: 72px 0 82px;
  background: #f5f6f7;
}

.home-services-shell {
  width: min(100% - 56px, 1540px);
  margin: 0 auto;
}

@media (min-width: 641px) {
  .home-services-shell {
    box-sizing: border-box;
    padding-right: 60px;
  }
}

.home-services-heading {
  max-width: 790px;
  margin: 0 0 62px;
  text-align: left;
}

.home-services-kicker {
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 14px;
  line-height: 1.4;
}

.home-services-heading h2 {
  margin: 0;
  color: #17191c;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
}

.home-services-heading > p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: #69717b;
  font-size: 15px;
  line-height: 1.85;
}

.home-services-nowrap {
  white-space: nowrap;
}

.home-process-grid {
  display: flex;
  height: 416px;
  gap: 8px;
}

@media (min-width: 901px) {
  .home-process-card {
    cursor: pointer;
  }

  .home-process-card.is-active {
    flex-grow: 5;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .home-process-card:not(.is-active) .home-process-copy {
    padding-right: 8px;
    padding-left: 8px;
  }

  .home-process-card:not(.is-active) .home-process-copy h3 {
    font-size: 15px;
  }

  .home-process-card:not(.is-active) .home-process-summary {
    display: none;
  }
}

.home-process-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #33383d;
  isolation: isolate;
}

.home-process-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.home-process-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgb(12 15 18 / 0%) 34%, rgb(12 15 18 / 22%) 58%, rgb(12 15 18 / 82%) 100%);
  content: "";
  pointer-events: none;
}

.home-process-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-process-card:nth-child(3) img {
  object-position: center;
}

.home-process-card:nth-child(3).is-active {
  background: #f7f7f7;
}

.home-process-card:nth-child(3).is-active img {
  object-fit: contain;
  object-position: center 25%;
  transform: none;
}

.home-process-card:nth-child(5) img {
  object-position: 68% center;
}

.home-process-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 11px 16px;
  color: #fff;
}

.home-process-number {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.home-process-copy > div {
  min-width: 0;
}

.home-process-card:not(.is-active) .home-process-copy {
  display: block;
}

.home-process-card:not(.is-active) .home-process-number {
  margin-bottom: 8px;
}

.home-process-card:not(.is-active) .home-process-eyebrow,
.home-process-card:not(.is-active) .home-process-title-expanded,
.home-process-card:not(.is-active) .home-process-detail,
.home-process-card.is-active .home-process-title-compact,
.home-process-card.is-active .home-process-summary {
  display: none;
}

.home-process-card.is-active .home-process-detail {
  display: block;
}

.home-process-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: rgb(255 255 255 / 78%);
  font-size: 12px;
  line-height: 1.4;
}

.home-process-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-process-copy p {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.home-process-card.is-active .home-process-copy {
  gap: 10px;
  padding: 22px 23px 21px;
}

.home-process-card.is-active .home-process-number {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: 12px;
}

.home-process-card.is-active .home-process-copy h3 {
  font-size: 21px;
}

.home-process-card.is-active .home-process-copy p {
  max-width: 480px;
  font-size: 13px;
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .home-process-card {
    transition: flex-grow .6s cubic-bezier(.16,1,.3,1);
  }

  .home-process-card img {
    transition: transform .72s cubic-bezier(.25,.65,.3,1);
  }

  .home-process-card[data-expand-from="right"] img {
    transform-origin: right center;
  }

  .home-process-card[data-expand-from="left"] img {
    transform-origin: left center;
  }

  .home-process-card.is-active img {
    transform: scale(1.065, 1.035);
  }

  .home-process-card.is-active .home-process-copy h3,
  .home-process-card.is-active .home-process-detail {
    animation: home-process-copy-in .35s ease-out .14s both;
  }
}

@keyframes home-process-copy-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .home-process-grid {
    display: grid;
    height: 620px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1.15fr 1fr;
  }

  .home-process-card-featured {
    grid-column: 1 / -1;
  }

  .home-process-copy {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-process-card:not(.is-active) .home-process-copy {
    display: flex;
  }

  .home-process-card:not(.is-active) .home-process-number {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .home-services {
    padding: 52px 0 58px;
  }

  .home-services-shell {
    width: min(100% - 36px, 520px);
  }

  .home-services-heading {
    margin-bottom: 30px;
  }

  .home-services-kicker {
    margin-bottom: 9px;
    font-size: 13px;
  }

  .home-services-heading h2 {
    font-size: 28px;
  }

  .home-services-heading > p:last-child {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.75;
  }

  .home-process-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 9px;
  }

  .home-process-card {
    min-height: 210px;
    border-radius: 10px;
  }

  .home-process-card-featured {
    min-height: 250px;
    grid-column: 1 / -1;
  }

  .home-process-copy {
    gap: 7px;
    padding: 12px 10px 13px;
  }

  .home-process-card:not(.is-active) .home-process-copy {
    display: flex;
  }

  .home-process-number {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 10px;
  }

  .home-process-copy h3 {
    font-size: 15px;
  }

  .home-process-copy p {
    font-size: 11px;
  }

  .home-process-card-featured .home-process-copy {
    padding: 17px 15px 16px;
  }

  .home-process-card-featured .home-process-copy h3 {
    font-size: 18px;
  }

  .home-process-card-featured .home-process-copy p {
    font-size: 12px;
  }
}
