.contact-main {
  width: var(--page);
  margin: 0 auto;
  padding: 78px 0 108px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: 72px;
  align-items: start;
  padding-bottom: 76px;
  border-bottom: 1px solid var(--ink);
}

.contact-copy h1 {
  max-width: 780px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.98;
}

.contact-copy .lede {
  max-width: 680px;
}

.contact-alert {
  max-width: 680px;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--signal);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.contact-alert strong {
  color: var(--signal-dark);
}

.contact-direct {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  max-width: 680px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.contact-direct a {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 18px 20px;
  color: inherit;
}

.contact-direct span,
.contact-direct small {
  color: rgb(243 241 234 / 64%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.contact-direct strong {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 500;
}

.contact-copy-email-button {
  min-height: 100%;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid #4a4942;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.contact-copy-email-button:hover {
  background: var(--lime);
  color: var(--ink);
}

.contact-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.wechat-card {
  position: sticky;
  top: 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 12px 12px 0 var(--signal);
}

.wechat-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid #4a4942;
  color: rgb(243 241 234 / 60%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.wechat-card figure {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px 22px 0;
}

.wechat-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid var(--paper);
  background: #fff;
}

.wechat-card figcaption {
  color: rgb(243 241 234 / 56%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}

.wechat-card-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.wechat-card-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.wechat-card-copy p {
  margin: 0;
  color: rgb(243 241 234 / 66%);
  font-size: 12px;
  line-height: 1.7;
}

.wechat-card-copy a {
  width: fit-content;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  text-underline-offset: 4px;
}

.contact-steps {
  padding: 74px 0;
  border-bottom: 1px solid var(--ink);
}

.contact-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}

.contact-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.contact-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.contact-step-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
}

.contact-step-grid span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 10px;
}

.contact-step-grid h3 {
  margin: 48px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.contact-step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.contact-step-grid code {
  display: inline;
  overflow: visible;
  padding: 2px 4px;
  background: var(--paper-2);
  color: var(--ink);
  line-height: 1.4;
}

.contact-note {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding: 60px 0 0;
}

.contact-note h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.contact-note p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.contact-mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.contact-mail-button:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 900px) {
  .contact-hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .wechat-card {
    position: static;
    width: min(100%, 460px);
  }

  .contact-section-head,
  .contact-note {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-main {
    padding: 54px 0 78px;
  }

  .contact-direct {
    grid-template-columns: 1fr;
  }

  .contact-copy-email-button {
    min-height: 46px;
    border-top: 1px solid #4a4942;
    border-left: 0;
  }

  .wechat-card {
    box-shadow: 7px 7px 0 var(--signal);
  }

  .contact-step-grid article {
    min-height: 0;
  }

  .contact-step-grid h3 {
    margin-top: 28px;
  }
}
