.contact-page { background: var(--review-panel); }
main:has(> .contact-page) + .review-footer { margin-top: 0; }

.contact-lead {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  grid-template-areas: "channels form";
  border-bottom: 1px solid var(--review-line);
}

.contact-channels {
  grid-area: channels;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-width: 0;
  padding: clamp(1.25rem, 5.4vw, 5.5rem);
  color: #f6f3ed;
  background: #211b18;
}

.contact-channels img,
.contact-channels::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-channels img { z-index: -2; object-fit: cover; object-position: 46% 52%; }
.contact-channels::before {
  content: "";
  z-index: -1;
  background: linear-gradient(12deg, rgb(16 13 11 / .62), transparent 70%);
}

.contact-channels-card {
  width: min(100%, 27rem);
  margin-top: clamp(4rem, 12vw, 12rem);
  padding: clamp(1.2rem, 3vw, 2.8rem);
  border: 1px solid rgb(245 238 225 / .22);
  border-top: 3px solid var(--review-cta);
  background: rgb(21 22 23 / .95);
}

.contact-channels-card h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 590; letter-spacing: -.034em; }
.contact-channels-card dl { margin: 1.25rem 0 1rem; display: grid; gap: .75rem; }
.contact-channels-card dt { color: #c5c0b9; font-size: .88rem; }
.contact-channels-card dd { margin: 0; }
.contact-channels-card a { color: inherit; overflow-wrap: anywhere; }
.contact-channels-card dd a { text-decoration: underline; text-underline-offset: .19em; }
.contact-channels-card a:hover { color: #ff9b65; }
.contact-channels-card .inline-link { font-size: .92rem; text-decoration-color: #ff9b65 !important; }
.contact-channels-card a:focus-visible { outline-color: #ff9b65; }

.contact-lead .home-contact-form {
  --contact-inset: clamp(1.1rem, 3.45vw, 3.8rem);
  grid-area: form;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "title title"
    "name email"
    "phone company"
    "message message"
    "consent consent"
    "direct direct"
    "send send"
    "feedback feedback";
  align-content: center;
  border-top: 0;
  padding-bottom: var(--contact-inset);
}

.contact-lead h1 {
  grid-area: title;
  padding: var(--contact-inset);
  border-bottom: 1px solid var(--review-line);
  font-size: clamp(2.2rem, 4.05vw, 4.45rem);
  font-weight: 550;
  letter-spacing: -.057em;
  text-wrap: balance;
}

.contact-lead .contact-email, .contact-lead .contact-company, .contact-lead .contact-message { border-inline-end: 0; }
.contact-lead .contact-direct { padding: 0 var(--contact-inset) 1rem; }
.contact-lead .contact-send { margin: 0 var(--contact-inset); min-height: clamp(3.65rem, 5.1vw, 5.2rem); }
.contact-lead .contact-feedback[data-ready] { margin-top: .95rem; }

.contact-next { background: var(--review-bg); border-bottom: 1px solid var(--review-line); }
.contact-next > .frame { padding-block: clamp(2.3rem, 5.2vw, 5.6rem); }
.contact-next h2 { font-size: clamp(1.5rem, 2.9vw, 2.7rem); font-weight: 555; letter-spacing: -.042em; }
.contact-next ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem clamp(1rem, 2.5vw, 2.75rem);
  padding: 0;
  margin: clamp(1.4rem, 3.4vw, 3.4rem) 0 0;
  list-style: none;
  counter-reset: contact-step;
}
.contact-next li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: .4rem .8rem;
  counter-increment: contact-step;
}
.contact-next li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--review-cta);
  color: var(--review-on-accent);
  font-weight: 650;
  content: counter(contact-step);
}
.contact-next h3 { padding-top: .35rem; font-size: 1.03rem; font-weight: 620; }
.contact-next p { grid-column: 2; color: var(--review-subtle); }

.contact-faq > .frame { padding-block: clamp(2.9rem, 7.2vw, 7.2rem) clamp(2.4rem, 5vw, 5.4rem); }
.contact-faq header { margin-bottom: clamp(1.5rem, 3.5vw, 3rem); }
.contact-faq h2 { font-size: clamp(2.1rem, 4vw, 4.1rem); font-weight: 560; letter-spacing: -.053em; }
.contact-faq header p { margin-top: .75rem; color: var(--review-subtle); }
.contact-faq summary { min-height: 3.6rem; padding-block: clamp(1rem, 1.8vw, 1.7rem); font-size: clamp(1.02rem, 1.55vw, 1.35rem); }
.contact-faq details p { max-width: 80ch; padding-bottom: 1.4rem; }

@media (max-width: 900px) {
  .contact-next ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .contact-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "channels"; }
  .contact-channels { padding: 1.2rem; }
  .contact-channels-card { margin-top: 4.75rem; }
}

@media (max-width: 445px) {
  .contact-lead .home-contact-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "name" "email" "phone" "company" "message" "consent" "direct" "send" "feedback";
  }
  .contact-lead .contact-field { border-inline-end: 0; }
  .contact-next ol { grid-template-columns: minmax(0, 1fr); }
}
