.contact-redesign .contact-hero .gallery-hero__feature img {
  object-position: center;
  filter: saturate(1.08) contrast(1.08) brightness(.96);
}

.contact-redesign .contact-hero .gallery-hero__feature picture {
  border-radius: 22px 88px 22px 22px;
  background: #dbe8ec;
  box-shadow: 0 32px 80px rgba(11, 34, 57, .23);
}

.contact-redesign .contact-hero .gallery-hero__feature::before {
  inset: 22px -20px -22px 30px;
  border-radius: 18px 76px 18px 18px;
  transform: rotate(1.2deg);
}

.contact-redesign .contact-hero .gallery-hero__veil {
  border-radius: 22px 88px 22px 22px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, .04),
    rgba(0, 180, 216, .035) 48%,
    rgba(0, 59, 92, .08)
  );
}

.contact-redesign .contact-hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
}

.contact-redesign .contact-hero__actions > .btn {
  height: 46px;
  min-height: 46px;
}

.contact-redesign .contact-hero__actions .text-link {
  position: relative;
  min-height: 46px;
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
  align-items: center;
  font-weight: 800;
}

.contact-redesign .contact-hero__actions .text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--aqua);
}

.contact-redesign .contact-hero__actions .contact-email-action {
  position: relative;
  min-height: 46px;
  padding: 0;
  border-radius: 0;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  background: transparent;
  box-shadow: none;
}

.contact-redesign .contact-hero__actions .contact-email-action::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--aqua);
}

.contact-redesign .contact-hero__actions .contact-email-action:hover {
  box-shadow: none;
}

.contact-redesign .process-card {
  display: flex;
  flex-direction: column;
}

.contact-redesign .process-card a {
  margin-top: auto;
  color: var(--navy);
  font-weight: 800;
  font-size: .85rem;
}

.contact-redesign .contact-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--navy);
  font: 800 .75rem/1.35 Montserrat, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
}

.contact-redesign .contact-service-link span {
  color: var(--aqua);
  transition: transform .22s ease;
}

.contact-redesign .contact-service-link:hover span,
.contact-redesign .contact-service-link:focus-visible span {
  transform: translateX(4px);
}

@media (min-width: 861px) {
  .contact-redesign .gallery-standards__grid {
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: clamp(42px, 5vw, 76px);
    align-items: center;
  }

  .contact-redesign .gallery-standards__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border-top: 0;
  }

  .contact-redesign .gallery-standards__list article {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    min-height: 190px;
    border: 1px solid rgba(11, 34, 57, .11);
    border-radius: 14px;
    padding: 20px 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 34px rgba(11, 34, 57, .055);
  }
}

.contact-redesign .gallery-cta__panel {
  grid-template-columns: 1.15fr auto;
}

.contact-redesign .gallery-cta__panel h2 {
  max-width: 720px;
}

/*
 * Contact is content-first: animation may enhance these elements, but it must
 * never be responsible for making them visible. These rules also neutralize
 * Gallery's hidden hero-caption starting state.
 */
.contact-redesign [data-animate],
.contact-redesign [data-process-card],
.contact-redesign .gallery-hero__feature figcaption,
.contact-redesign .gallery-hero__feature figcaption span,
.contact-redesign .gallery-hero__feature figcaption strong {
  opacity: 1;
  visibility: visible;
}

.contact-redesign .gallery-hero__feature figcaption {
  clip-path: inset(0 0 0 0);
}

.contact-redesign .gallery-hero__feature figcaption span,
.contact-redesign .gallery-hero__feature figcaption strong {
  transform: none;
}

@media (max-width: 700px) {
  .contact-redesign .gallery-standards__list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-redesign .gallery-cta__panel {
    grid-template-columns: 1fr;
  }

  .contact-redesign .contact-hero__actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .contact-redesign .contact-hero__actions .btn {
    width: min(100%, 360px);
    justify-content: center;
  }

  .contact-redesign .contact-hero__actions .text-link,
  .contact-redesign .process-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 860px) {
  .contact-redesign .contact-hero .gallery-hero__feature {
    order: -1;
  }
}

/*
 * Keep Contact on the same full-width mobile header system as Home/About.
 * Gallery's bundled stylesheet uses a page-specific floating capsule on phones;
 * Contact intentionally overrides that treatment until the shared PHP include
 * becomes authoritative.
 */
@media (max-width: 640px) {
  body.contact-redesign .topline {
    position: relative;
    top: auto;
    z-index: 31;
    background:
      linear-gradient(90deg, rgba(0, 180, 216, .12), transparent 48%),
      var(--ink);
  }

  body.contact-redesign .topline__inner {
    min-height: 38px;
    gap: 10px;
  }

  body.contact-redesign .topline p {
    display: none;
  }

  body.contact-redesign .topline__left {
    flex: 1;
  }

  body.contact-redesign .topline__pills {
    gap: 7px;
    overflow: hidden;
  }

  body.contact-redesign .topline__pills span {
    min-height: 22px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    font-size: .62rem;
  }

  body.contact-redesign .topline__pills span + span::before {
    content: "/";
    margin-right: 7px;
    color: rgba(255, 255, 255, .42);
  }

  body.contact-redesign .topline__pills span:nth-child(3) {
    display: none;
  }

  body.contact-redesign .topline a {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, .92);
    font-size: .70rem;
  }

  body.contact-redesign .site-header {
    top: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(0, 59, 92, .08);
    border-radius: 0;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 12px 30px rgba(11, 34, 57, .10);
    overflow: visible;
  }

  body.contact-redesign .nav {
    width: 100%;
    min-height: 50px;
    gap: 12px;
    padding-inline: 10px;
  }

  body.contact-redesign .brand img {
    width: 146px;
  }

  body.contact-redesign .nav-cta {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: .74rem;
  }

  body.contact-redesign .menu-toggle {
    width: 30px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body.contact-redesign .menu-toggle span {
    width: 16px;
  }

  body.contact-redesign .mobile-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    border: 1px solid rgba(0, 59, 92, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(11, 34, 57, .18);
    backdrop-filter: blur(16px);
  }

  body.contact-redesign .mobile-nav.is-open {
    max-height: 360px;
  }

  body.contact-redesign .mobile-nav a {
    width: auto;
    margin-inline: 16px;
  }

  body.contact-redesign .mobile-nav a:last-child {
    margin-bottom: 8px;
    color: var(--white);
    justify-content: center;
    border-radius: 999px;
    background: var(--navy);
  }
}

@media (max-width: 520px) {
  .contact-redesign .contact-hero .gallery-hero__feature {
    width: calc(100% - 8px);
    margin: 0 8px 26px 0;
  }
}
