body.redesign.reference-home .reference-process {
  padding-block: 60px;
  background: #fff;
  color: #111;
}

body.redesign.reference-home .reference-process h2 {
  margin: 0 0 38px;
  color: #111;
  font-size: clamp(30px, 2.8125vw, 44px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.reference-process__layout--interactive {
  display: grid;
  grid-template-columns: minmax(174px, 17.5%) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.reference-process__tabs[hidden],
.reference-process__panel[hidden] {
  display: none;
}

.reference-process__tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reference-process__tabs button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 0;
  border-inline-start: 4px solid transparent;
  background: #fff;
  color: #171717;
  font: 500 15px/1.2 var(--font);
  text-align: left;
  cursor: pointer;
}

.reference-process__tabs button span,
.reference-process__copy > span {
  color: #626269;
  font-size: 13px;
  font-weight: 400;
}

.reference-process__tabs button[aria-selected="true"] {
  border-inline-start-color: #c45465;
  background: #f1f2f7;
}

.reference-process__tabs button:hover {
  background: #f1f2f7;
}

.reference-process__tabs button:focus-visible,
.reference-process__panel:focus-visible {
  outline: 2px solid #a34052;
  outline-offset: 2px;
}

.reference-process__panel {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 429px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 5px;
  background: #f1f2f7;
}

.reference-process__panel + .reference-process__panel {
  margin-top: 20px;
}

.reference-process__layout--interactive .reference-process__panel {
  margin-top: 0;
}

.reference-process__panel > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-process__copy {
  box-sizing: border-box;
  justify-self: end;
  width: min(345px, 100%);
  min-height: 228px;
  margin-inline-end: min(8.3vw, 93.75px);
  padding: 28px 30px;
  background: #fff;
  color: #161616;
}

body.redesign.reference-home .reference-process__copy h3 {
  margin: 10px 0 12px;
  color: #161616;
  font-size: 28px;
  line-height: 1.1;
}

.reference-process__copy p {
  margin: 0;
  color: #34343a;
  font-size: 15px;
  line-height: 1.45;
}

.reference-process__copy a {
  display: inline-block;
  margin-top: 14px;
  color: #1a1a1d;
  font-size: 14px;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  body.redesign.reference-home .reference-process {
    padding-block: 48px;
  }

  body.redesign.reference-home .reference-process h2 {
    margin-bottom: 22px;
  }

  .reference-process__layout--interactive {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .reference-process__tabs {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    padding: 3px;
  }

  .reference-process__tabs button {
    flex: none;
    min-height: 52px;
    padding: 6px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .reference-process__tabs button[aria-selected="true"] {
    border-bottom-color: #c45465;
  }

  .reference-process__panel {
    min-height: 0;
  }

  .reference-process__panel > img {
    position: static;
    height: auto;
    aspect-ratio: 1.45;
  }

  .reference-process__copy {
    width: 100%;
    min-height: 0;
    margin-inline-end: 0;
    padding: 20px;
  }
}
