.contact-email-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 42, 34, 0.62);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

html {
  scroll-behavior: auto !important;
  scroll-padding-top: 118px;
}

a[href^="#"] {
  touch-action: manipulation;
}

section[id],
div[id="main-content"] {
  scroll-margin-top: 118px;
}

.button,
.nav-cta,
.floating-contact,
.text-link,
.header-email,
.portfolio-arrow,
.portfolio-dots button {
  touch-action: manipulation;
}

.contact-email-backdrop[hidden] {
  display: none;
}

.contact-email-banner {
  position: relative;
  width: min(470px, 100%);
  direction: rtl;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(206, 217, 195, 0.48), transparent 52%),
    var(--paper);
  border: 1px solid rgba(147, 101, 65, 0.42);
  padding: 38px 42px 34px;
  box-shadow: 0 32px 90px rgba(8, 29, 23, 0.38);
  animation: popup-rise 0.38s var(--ease-flow) both;
}

.contact-email-banner::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(147, 101, 65, 0.18);
}

.contact-email-banner > img {
  width: 130px;
  height: 70px;
  object-fit: contain;
  margin: -12px auto 4px;
}

.contact-email-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  width: 35px;
  height: 35px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(251, 246, 235, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
}

.contact-email-kicker {
  color: var(--gold-deep);
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 650;
}

.contact-email-banner h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 470;
  line-height: 1.25;
}

.contact-email-banner > p:not(.contact-email-kicker) {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
}

.contact-email-address {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 63, 53, 0.28);
  padding: 14px 16px 12px;
  text-align: center;
}

.contact-email-address strong,
.contact-email-address small {
  display: block;
}

.contact-email-address strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-email-address small {
  color: var(--ink-soft);
  margin-top: 3px;
  font-size: 11px;
}

.contact-email-address:hover,
.contact-email-address:focus-visible {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.contact-email-compose {
  position: relative;
  z-index: 1;
  min-height: 51px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 650;
}

.contact-email-compose:hover,
.contact-email-compose:focus-visible {
  color: var(--ink);
  background: transparent;
}

.lead-popup .popup-message {
  grid-column: 1 / -1;
}

.lead-popup .popup-message textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  outline: none;
  padding: 10px 12px;
}

.lead-popup .popup-message textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(24, 63, 53, 0.08);
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 88px;
  }

  section[id],
  div[id="main-content"] {
    scroll-margin-top: 88px;
  }

  .contact-email-backdrop {
    padding: 14px;
  }

  .contact-email-banner {
    padding: 32px 22px 25px;
  }

  .contact-email-banner > img {
    width: 112px;
    height: 59px;
  }

  .contact-email-banner h2 {
    font-size: 30px;
  }

  .contact-email-address strong {
    font-size: 18px;
  }
}
