.contact-page {
  overflow-x: hidden;
}

.contact-reference-hero {
  --contact-hero-gold: #faba3e;
  --contact-hero-teal: #5aafaa;
  --contact-hero-teal-soft: #77b8b0;
  --contact-hero-line: rgba(23, 139, 142, 0.56);
  min-height: clamp(640px, calc(100svh - 84px), 900px);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  padding-block: 0 !important;
  background:
    linear-gradient(110deg, var(--contact-hero-teal-soft) 0%, #69b5af 38%, var(--contact-hero-teal) 72%, #54aaa7 100%) !important;
}

.contact-reference-hero::before {
  opacity: 0.72;
  mix-blend-mode: normal;
  background-image:
    radial-gradient(circle 330px at 88% 68%, transparent 99%, var(--contact-hero-line) 99.3%, transparent 100%),
    radial-gradient(circle 270px at 47% 28%, transparent 99%, var(--contact-hero-line) 99.3%, transparent 100%),
    radial-gradient(circle 420px at 54% 112%, transparent 99%, var(--contact-hero-line) 99.3%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 224px, var(--contact-hero-line) 225px 227px),
    repeating-linear-gradient(90deg, transparent 0 320px, var(--contact-hero-line) 321px 323px);
  background-size: auto;
}

.contact-reference-hero::after {
  display: none;
}

.contact-reference-hero__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr) !important;
  align-items: stretch !important;
  gap: clamp(28px, 4vw, 64px) !important;
  min-height: inherit;
}

.contact-reference-hero .page-hero-copy {
  z-index: 3;
  grid-column: 1;
  align-self: start;
  width: min(100%, 680px);
  margin: 0;
  padding-top: clamp(92px, 10.5vw, 150px);
  justify-self: start;
  align-content: start;
  text-align: right !important;
}

.contact-reference-hero .page-hero-copy::after {
  display: none;
}

.contact-reference-hero .eyebrow {
  order: 1;
  padding: 0.55rem 1rem;
  border: 0 !important;
  background: var(--contact-hero-gold) !important;
  color: #ffffff !important;
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  font-weight: 600;
  backdrop-filter: none;
}

.contact-reference-hero .page-hero-copy h1 {
  order: 2;
  margin-block: 0.9rem 0.65rem;
  color: var(--contact-hero-gold) !important;
  font-size: clamp(3.2rem, 6.1vw, 6.8rem) !important;
  font-weight: 800;
  line-height: 1 !important;
  text-shadow: none;
}

.contact-reference-hero .page-hero-copy p {
  max-width: 660px;
  color: #ffffff !important;
  font-size: clamp(1.02rem, 1.55vw, 1.35rem);
  font-weight: 500;
  line-height: 2;
  text-shadow: 0 3px 18px rgba(20, 88, 87, 0.14);
}

.contact-reference-hero .page-hero-copy p:first-of-type {
  order: 3;
}

.contact-reference-hero .page-hero-copy p:last-of-type {
  order: 5;
  margin-top: clamp(3.5rem, 9vh, 6.5rem) !important;
  color: var(--contact-hero-gold) !important;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 700 !important;
}

.contact-reference-hero .hero-related-actions {
  order: 4;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.contact-reference-hero .hero-related-link {
  min-width: 148px;
  border-color: var(--contact-hero-gold) !important;
  background: var(--contact-hero-gold) !important;
  color: #176b68 !important;
  box-shadow: 0 14px 28px rgba(67, 116, 107, 0.14);
}

.contact-reference-hero .hero-related-link:hover {
  border-color: #ffd16c !important;
  background: #ffd16c !important;
  color: #0f5d5a !important;
}

.contact-reference-hero__mark.page-hero-media {
  position: absolute;
  inset: 6% auto auto calc((100vw - 100%) / -2);
  display: block;
  width: 47vw;
  height: 88%;
  min-height: 0 !important;
  overflow: hidden;
  direction: ltr;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

.contact-reference-hero__mark.page-hero-media::after {
  display: none;
}

.contact-reference-hero__mark.page-hero-media img {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 185.9%;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: fill;
  border-radius: 0 !important;
  filter: none !important;
}

[data-theme="dark"] .contact-reference-hero {
  background:
    linear-gradient(110deg, var(--contact-hero-teal-soft) 0%, #69b5af 38%, var(--contact-hero-teal) 72%, #54aaa7 100%) !important;
}

@media (max-width: 899px) {
  .contact-reference-hero {
    min-height: auto;
    padding-block: 0 !important;
  }

  .contact-reference-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }

  .contact-reference-hero .page-hero-copy {
    width: min(100%, 680px);
    padding-top: 72px;
    justify-self: center;
  }

  .contact-reference-hero .page-hero-copy p:last-of-type {
    margin-top: 2rem !important;
  }

  .contact-reference-hero__mark.page-hero-media {
    position: relative;
    inset: auto;
    grid-column: 1;
    left: 0;
    width: 100%;
    height: clamp(330px, 78vw, 520px);
    min-height: clamp(330px, 78vw, 520px) !important;
    margin: 0;
  }
}

@media (max-width: 560px) {
  .contact-reference-hero {
    padding-block: 0 !important;
  }

  .contact-reference-hero .page-hero-copy {
    padding-top: 52px;
    text-align: right !important;
  }

  .contact-reference-hero .page-hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.8rem) !important;
  }

  .contact-reference-hero .page-hero-copy p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .contact-reference-hero .hero-related-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .contact-reference-hero .hero-related-link {
    min-width: 0;
    width: 100%;
  }

  .contact-reference-hero__mark.page-hero-media {
    left: 0;
    width: 100%;
    height: min(94vw, 430px);
    min-height: min(94vw, 430px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-reference-hero .hero-related-link {
    transition: none;
  }
}
