.vertex-process {
  padding: clamp(4rem, 8vw, 8rem) 5%;
  border-block: 1px solid #c5a64d30;
  background: linear-gradient(155deg, #141414, #080808 78%);
  color: #f6f4ee;
}

.vertex-process__layout {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
  width: min(100%, 1190px);
  margin-inline: auto;
}

.vertex-process__copy h2 {
  margin: 0;
  font-family: var(--vertex-heading);
  font-size: clamp(2.55rem, 4.3vw, 4.4rem);
  line-height: 1.02;
}

.vertex-process__copy h2 em {
  display: block;
  color: var(--vertex-accent-light);
}

.vertex-process__lead {
  max-width: 31rem;
  margin: 1.45rem 0 1.7rem;
  padding-top: 1.05rem;
  border-top: 1px solid #c5a64d66;
  color: #e1ded5;
  font-size: 1.04rem;
}

.vertex-process__copy .button {
  gap: 1rem;
  min-height: 58px;
  border-radius: .65rem;
  background: linear-gradient(110deg, var(--vertex-accent), var(--vertex-accent-light));
  color: #181307;
}

.vertex-process__copy .button:hover {
  background: var(--vertex-accent-light);
}

.vertex-process__slider {
  min-width: 0;
}

.vertex-process__track {
  --step-gap: .9rem;
  --step-width: calc((100% - var(--step-gap)) / 2);
  display: flex;
  gap: var(--step-gap);
  margin: 0;
  padding: .25rem .15rem .6rem;
  overflow-x: auto;
  list-style: none;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a98a41 #171717;
}

.vertex-process__track::after {
  flex: 0 0 var(--step-width);
  content: "";
}

.vertex-process__card {
  position: relative;
  flex: 0 0 var(--step-width);
  min-height: clamp(255px, 29vw, 370px);
  padding: clamp(1.35rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid #ffffff27;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #060606 10%, #202020 100%);
  scroll-snap-align: start;
}

.vertex-process__card::before {
  position: absolute;
  inset: 0 auto auto 1.5rem;
  width: 3.5rem;
  height: .3rem;
  border-radius: 0 0 .35rem .35rem;
  background: var(--vertex-accent);
  content: "";
}

.vertex-process__number {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  margin-block: .15rem 1.3rem;
  place-items: center;
  border-radius: .7rem;
  background: var(--vertex-accent);
  color: #181307;
  font-size: .84rem;
  font-weight: 750;
}

.vertex-process__card h3 {
  margin-bottom: .7rem;
  color: var(--vertex-accent-light);
  font-size: 1.13rem;
}

.vertex-process__card p {
  margin: 0;
  color: #e1ded5;
  line-height: 1.55;
}

.vertex-process__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-top: .55rem;
}

.vertex-process__controls[hidden] {
  display: none;
}

.vertex-process__controls button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #ffffff33;
  border-radius: 2rem;
  background: #101010;
  color: var(--vertex-accent-light);
  cursor: pointer;
}

.vertex-process__controls button:disabled {
  opacity: .35;
  cursor: default;
}

.vertex-process__controls button:enabled:hover {
  border-color: var(--vertex-accent);
}

.vertex-process__dots {
  display: flex;
}

.vertex-process__dots button {
  border: 0;
  background: transparent;
}

.vertex-process__dots button::before {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #eee;
  content: "";
}

.vertex-process__dots button[aria-current="step"]::before {
  background: var(--vertex-accent);
  box-shadow: 0 0 0 3px #c5a64d35;
}

.vertex-process__autoplay {
  display: block;
  min-height: 44px;
  margin: .25rem auto 0;
  padding: .15rem .65rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--vertex-accent-light);
  font-size: .8rem;
  cursor: pointer;
}

.vertex-process__autoplay:hover {
  text-decoration: underline;
}

.vertex-process__autoplay[hidden] {
  display: none;
}

@media (max-width: 840px) {
  .vertex-process__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .vertex-process__track {
    --step-width: 100%;
  }

  .vertex-process__track::after {
    display: none;
  }
}
