/* --- full-screen contact -------------------------------------------------- */

body.has-contact { position: fixed; width: 100%; overflow: hidden; }
html:has(body.has-contact) { overflow: hidden; }

.contact {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contact[open] { display: flex; flex-direction: column; }
.contact::backdrop { background: var(--bg); }

.contact__header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: none;
  gap: 20px;
  height: var(--site-header-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.contact__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  color: var(--fg-muted);
}
.contact__close:hover { color: var(--fg); }
.contact__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 7vw, 112px);
  width: 100%;
  max-width: 1392px;
  margin: auto;
  padding: 80px var(--gutter);
}
.contact__intro { padding-top: 4px; }
.contact .eyebrow { color: var(--fg-muted-2); margin-bottom: 28px; }
.contact__title { font-size: clamp(42px, 4.7vw, 68px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.contact__title:focus { outline: none; }
.contact__description { max-width: 340px; margin-top: 28px; font-size: 18px; line-height: 1.6; color: var(--fg-4); }
.contact__aside { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-4); font-size: 13px; line-height: 1.8; color: var(--fg-muted); }
.contact__form { display: grid; gap: 26px; min-width: 0; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__field { display: grid; gap: 10px; min-width: 0; }
.contact__field label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.contact__field label span { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--fg-muted-2); }
.contact__field input,
.contact__field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--surface-3);
  border: 1px solid var(--line-6);
  border-radius: 8px;
  transition: border-color .15s ease;
}
.contact__field textarea { resize: vertical; min-height: 150px; }
.contact__field input::placeholder,
.contact__field textarea::placeholder { color: var(--fg-muted-2); opacity: 1; }
.contact__field input:focus,
.contact__field textarea:focus { border-color: var(--fg-muted); outline: 2px solid #ffffff45; outline-offset: 3px; }
.contact__actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact__actions p { color: var(--fg-muted); font-size: 12px; line-height: 1.6; }
.contact__actions .btn { flex: none; box-shadow: none; }
.contact__actions .btn span { margin-left: 16px; }
.contact__status { padding: 14px 16px; border: 1px solid var(--line-7); border-radius: 8px; color: var(--fg-3); font-size: 14px; line-height: 1.5; }
.contact .footer { flex: none; }

.early-access__body {
  width: 100%;
  max-width: 680px;
  margin: auto;
  padding: 64px var(--gutter);
}
.early-access__body .contact__title { margin-bottom: 40px; }

@media (max-width: 760px) {
  .contact__body { grid-template-columns: 1fr; gap: 36px; padding-block: 40px; }
  .contact__close span { display: none; }
  .contact .eyebrow { margin-bottom: 20px; }
  .contact__description { margin-top: 20px; font-size: 16px; }
  .contact__aside { display: none; }
  .contact__row { grid-template-columns: 1fr; gap: 26px; }
  .contact__actions { align-items: stretch; flex-direction: column-reverse; gap: 20px; }
  .contact__actions p { text-align: center; }
  .contact__actions p br { display: none; }
}
