/* Contact section and footer */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px); align-items: start;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(72px, 13vh, 184px) var(--gutter) clamp(88px, 14vh, 160px);
  scroll-margin-top: 24px;
}
.contact-intro h2 {
  margin: 0; font-weight: 300; font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact-intro p { max-width: 44ch; margin: 24px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.contact-intro a { color: var(--ink); }
.contact-intro .contact-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.9375rem; }

.compose {
  position: relative;
  background: rgb(21 18 15 / 0.82);
  border: 1px solid var(--line); border-top: 2px solid var(--red);
  padding: clamp(24px, 3.4vw, 44px);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font: 400 0.8125rem/1.3 var(--mono); color: var(--muted); }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; padding: 10px 0 12px;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: 300 1.0625rem/1.5 var(--display);
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 148px; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red-text); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--red-text); }
.field [aria-invalid='true'] { border-bottom-color: var(--red-text); }
.field-error { margin: 8px 0 0; font: 400 0.8125rem/1.4 var(--mono); color: var(--red-text); }

.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
.privacy { margin: 0; max-width: 34ch; color: var(--faint); font-size: 0.875rem; line-height: 1.5; }
.privacy a { color: var(--muted); }
.send {
  flex: none; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 28px;
  background: var(--red); color: var(--ink); border: 0; border-radius: 2px; cursor: pointer;
  font: 500 1rem/1 var(--display); letter-spacing: 0.01em;
  transition: background-color 0.25s ease;
}
.send:hover { background: var(--red-hover); }
.send:active { background: var(--red-pressed); }
.send-arrow { font-family: var(--mono); transition: transform 0.35s var(--ease-out); }
.send:hover .send-arrow { transform: translateX(4px); }
.send[aria-busy='true'] { cursor: progress; background: var(--red-pressed); }
.send[aria-busy='true'] .send-arrow { opacity: 0; }

.status { margin: 0 0 28px; padding: 14px 16px; font-size: 0.9375rem; line-height: 1.5; }
.status-ok { background: rgb(240 232 224 / 0.06); border-left: 2px solid var(--ink); }
.status-error { background: rgb(153 23 23 / 0.14); border-left: 2px solid var(--red-text); color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font: 400 0.8125rem/1.4 var(--mono); color: var(--faint);
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .compose-foot { flex-direction: column; align-items: stretch; }
  .send { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .send-arrow, .field input, .field textarea, .send { transition: none; }
}
