.contact-page {
  min-height: 100vh;
  background: var(--sand);
}

.contact-header {
  color: var(--ink);
}

.contact-hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}

.contact-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.contact-background::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 244, 236, 0.98) 0%, rgba(246, 244, 236, 0.9) 45%, rgba(246, 244, 236, 0.28) 100%),
    linear-gradient(0deg, rgba(246, 244, 236, 0.78) 0%, transparent 35%);
  content: "";
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  padding-top: 132px;
  padding-bottom: 86px;
}

.contact-intro {
  max-width: 720px;
}

.contact-intro h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.93;
}

.contact-intro > p:last-child {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.72;
}

.contact-card {
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid rgba(36, 40, 39, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-card-kicker {
  margin: 0 0 18px;
  color: var(--reed);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0;
  color: var(--reed-dark);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-card > p:not(.contact-card-kicker, .contact-card-note) {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.contact-email {
  width: 100%;
  min-height: 58px;
  margin-top: 30px;
  padding-inline: 22px;
  overflow-wrap: anywhere;
  text-align: center;
}

.contact-card-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.contact-guide {
  padding-block: clamp(90px, 10vw, 150px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.contact-guide-heading {
  display: grid;
  max-width: 820px;
  gap: 18px;
}

.contact-guide-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 76px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contact-steps li {
  min-height: 260px;
  padding: 34px clamp(24px, 3.2vw, 46px) 28px;
  border-left: 1px solid var(--line);
}

.contact-steps li:first-child {
  border-left: 0;
  padding-left: 0;
}

.contact-step-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--reed);
  border-radius: 50%;
  color: var(--reed);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-steps h3 {
  margin: 30px 0 0;
  color: var(--reed-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.contact-steps p {
  margin: 17px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.contact-return {
  padding-block: 72px;
  background: var(--sand);
}

.contact-return-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 28px;
  background: var(--reed-dark);
  color: white;
}

.contact-return .section-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.contact-return h2 {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.contact-return .button--ghost {
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  box-shadow: none;
  color: white;
}

.contact-return .button--ghost:hover {
  border-color: white;
  background: white;
  box-shadow: none;
  color: var(--reed-dark);
}

.footer-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 960px) {
  .contact-hero {
    min-height: 0;
  }

  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 140px;
    padding-bottom: 78px;
  }

  .contact-intro {
    max-width: 760px;
  }

  .contact-card {
    max-width: 620px;
  }

  .contact-return-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .contact-page {
    padding-bottom: 0;
  }

  .contact-background::after {
    background:
      linear-gradient(180deg, rgba(246, 244, 236, 0.94) 0%, rgba(246, 244, 236, 0.84) 65%, rgba(246, 244, 236, 0.94) 100%);
  }

  .contact-hero-inner {
    gap: 42px;
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .contact-intro h1 {
    font-size: clamp(3.35rem, 15vw, 4.25rem);
  }

  .contact-intro > p:last-child {
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .contact-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .contact-card h2 {
    font-size: 2.25rem;
  }

  .contact-email {
    min-height: 56px;
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  .contact-guide {
    padding-block: 82px;
  }

  .contact-guide-heading h2 {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }

  .contact-steps {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .contact-steps li,
  .contact-steps li:first-child {
    min-height: 0;
    padding: 30px 0 34px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .contact-steps li:last-child {
    border-bottom: 0;
  }

  .contact-steps h3 {
    margin-top: 22px;
  }

  .contact-return {
    padding-block: 32px;
  }

  .contact-return-inner {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .contact-return .button {
    width: 100%;
  }
}
