.hfp-process.hfp-section {
  position: relative;
  padding-bottom: clamp(32px, 3.5vw, 56px);
}

.hfp-process .hfp-section__head {
  margin-bottom: 0;
}

.hfp-process .hfp-section__head h2 {
  color: var(--brand-green);
}

.hfp-process .hfp-eyebrow {
  color: var(--brand-green);
  font-size: 15px;
  font-weight: 400;
}

.hfp-process .hfp-section__head > :last-child {
  margin-bottom: 0;
}

.hfp-process__timeline {
  width: 100%;
  padding-block: 50px 30px;
}

.hfp-process__viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d6 transparent;
}

.hfp-process__track {
  --process-node-size: 96px;
  --process-row-gap: 64px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(300px, 1fr));
  column-gap: 24px;
  row-gap: var(--process-row-gap);
  min-width: 1120px;
}

.hfp-process__route {
  position: absolute;
  z-index: 0;
  top: calc(var(--process-node-size) / 2);
  right: calc(var(--process-node-size) / 2 + 72px);
  left: calc(var(--process-node-size) / 2);
  height: calc((100% - var(--process-row-gap)) / 2 + var(--process-row-gap));
  border-top: 1px solid #bdbdbd;
  border-bottom: 1px solid #bdbdbd;
  pointer-events: none;
}

.hfp-process__route::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -72px;
  bottom: -1px;
  width: 72px;
  border: 1px solid #bdbdbd;
  border-left: 0;
  border-radius: 0 72px 72px 0;
}

.hfp-process__step {
  position: relative;
  min-width: 0;
  padding-right: 24px;
  scroll-snap-align: start;
  z-index: 1;
}

.hfp-process__step:nth-child(6) {
  grid-column: 4;
  grid-row: 2;
}

.hfp-process__step:nth-child(7) {
  grid-column: 3;
  grid-row: 2;
}

.hfp-process__step:nth-child(8) {
  grid-column: 2;
  grid-row: 2;
}

.hfp-process__step:nth-child(9) {
  grid-column: 1;
  grid-row: 2;
}

.hfp-process__node {
  position: relative;
  z-index: 1;
  width: var(--process-node-size);
  height: var(--process-node-size);
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-green);
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--white);
  font-weight: 600;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.hfp-process__node::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 42px;
  background: #bdbdbd;
  transform: translateX(-50%);
}

.hfp-process__icon {
  width: 48px;
  height: 48px;
  display: block;
  color: var(--white);
  fill: currentColor;
}

.hfp-process__icon path {
  fill: currentColor;
}

.hfp-process__icon .hfp-process__icon-cutout {
  fill: var(--brand-green);
}

.hfp-process--service .hfp-process__node {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hfp-process--service .hfp-process__node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 70.7107%;
  height: 70.7107%;
  box-sizing: border-box;
  border: 1px solid var(--brand-green);
  background: var(--brand-green);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.hfp-process--service .hfp-process__icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
}

.hfp-process--service .hfp-process__route,
.hfp-process--service .hfp-process__node::after {
  display: none;
}

.hfp-process--service .hfp-process__copy {
  padding-top: 18px;
}

.hfp-process--service .hfp-process__step {
  grid-column: auto;
  grid-row: auto;
}

.hfp-process__copy {
  max-width: 300px;
  padding-top: 58px;
  text-align: left;
}

.hfp-process__heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.hfp-process__number {
  color: #333333;
  font-family: "Manrope", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  transition: color .2s var(--ease);
}

.hfp-process__copy h3 {
  margin: 0;
  color: #333333;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: capitalize;
}

.hfp-process__copy p {
  margin: 10px 0 0 44px;
  color: #777777;
  font-size: 16px;
  transition: color .2s var(--ease);
}

.hfp-process__step:hover .hfp-process__node,
.hfp-process__step:focus-within .hfp-process__node {
  border-color: var(--brand-green);
  background-color: var(--brand-green);
  color: var(--white);
}

.hfp-process--service .hfp-process__step:hover .hfp-process__node,
.hfp-process--service .hfp-process__step:focus-within .hfp-process__node {
  border-color: transparent;
  background-color: transparent;
}

.hfp-process__copy h3 {
  transition: color .2s var(--ease);
}

.hfp-process__step:hover .hfp-process__number,
.hfp-process__step:hover .hfp-process__copy h3,
.hfp-process__step:hover .hfp-process__copy p,
.hfp-process__step:focus-within .hfp-process__number,
.hfp-process__step:focus-within .hfp-process__copy h3,
.hfp-process__step:focus-within .hfp-process__copy p {
  color: var(--brand-green);
}

@media (min-width: 1601px) {
  .hfp-process__track {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .hfp-process__timeline {
    padding-block: 50px 24px;
  }

  .hfp-process__viewport {
    scroll-padding-inline: 20px;
  }

  .hfp-process__track {
    min-width: 1040px;
    grid-template-rows: repeat(2, minmax(300px, 1fr));
  }

  .hfp-process__step {
    padding-right: 18px;
  }

  .hfp-process__copy {
    max-width: 240px;
    padding-top: 58px;
  }

  .hfp-process--service .hfp-process__copy {
    padding-top: 18px;
  }
}

@media (max-width: 1024px) {
  body.home .hfp-process__viewport {
    overflow-x: visible;
    scroll-snap-type: none;
  }

  body.home .hfp-process__track {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 48px 24px;
  }

  body.home .hfp-process__route,
  body.home .hfp-process__node::after {
    display: none;
  }

  body.home .hfp-process__step {
    grid-column: auto;
    grid-row: auto;
  }

  .hfp-process--service .hfp-process__viewport {
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .hfp-process--service .hfp-process__track {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 48px 24px;
  }
}

@media (max-width: 768px) {
  body.home .hfp-process__track {
    --process-node-size: 76.8px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
    gap: 28px;
  }

  body.home .hfp-process__step {
    display: grid;
    grid-template-columns: var(--process-node-size) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding-right: 0;
  }

  body.home .hfp-process__icon {
    width: 38.4px;
    height: 38.4px;
  }

  body.home .hfp-process__copy {
    max-width: none;
    padding-top: 0;
  }

  body.home .hfp-process__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body.home .hfp-process__number {
    line-height: 1.2;
  }

  body.home .hfp-process__copy p {
    margin: 8px 0 0;
  }

  .hfp-process--service .hfp-process__track {
    --process-node-size: 76.8px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
    gap: 28px;
  }

  .hfp-process--service .hfp-process__step {
    display: grid;
    grid-template-columns: var(--process-node-size) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding-right: 0;
  }

  .hfp-process--service .hfp-process__icon {
    width: 32px;
    height: 32px;
  }

  .hfp-process--service .hfp-process__copy {
    max-width: none;
    padding-top: 0;
  }

  .hfp-process--service .hfp-process__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hfp-process--service .hfp-process__number {
    line-height: 1.2;
  }

  .hfp-process--service .hfp-process__copy p {
    margin: 8px 0 0;
  }

  body.home .hfp-process__number,
  .hfp-process--service .hfp-process__number {
    font-size: 12px;
  }

  body.home .hfp-process__copy h3,
  .hfp-process--service .hfp-process__copy h3 {
    font-size: 22px;
  }
}
