.contact-page {
  min-height: 100dvh;
  background: var(--deep);
}

.contact-main {
  min-height: calc(100dvh - 204px);
  background: var(--deep);
}

.contact-section {
  padding: clamp(132px, 16vh, 176px) 0 clamp(72px, 9vh, 112px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: start;
}

.contact-copy {
  padding-top: 8px;
}

.contact-eyebrow {
  margin: 0 0 26px;
  color: var(--flame);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-copy h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--cream-text);
  font-family: var(--display);
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .94;
}

.contact-copy h1 em {
  color: var(--flame);
  font-style: italic;
  line-height: 1.1;
}

.contact-intro {
  max-width: 42ch;
  margin: 30px 0 0;
  color: #c9c3bc;
  font-size: 18px;
  line-height: 1.6;
}

.contact-expectation {
  max-width: 46ch;
  margin-top: clamp(44px, 7vh, 76px);
  padding-top: 20px;
  border-top: 1px solid var(--dark-border);
}

.contact-expectation span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-expectation p {
  margin: 12px 0 0;
  color: var(--cream-text);
  font-size: 15px;
  line-height: 1.6;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #343434;
  background: #121212;
}

.contact-form::before {
  position: absolute;
  inset: -1px auto auto -1px;
  width: 42px;
  height: 2px;
  background: var(--flame);
  content: '';
}

.contact-fields-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: var(--cream-text);
  font-size: 13px;
  font-weight: 600;
}

.contact-field label span,
.contact-field small {
  color: #aaa39c;
  font-weight: 400;
}

.contact-field small {
  font-size: 12px;
  line-height: 1.45;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #4a4a4a;
  border-radius: 0;
  background: #191919;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.contact-field input {
  min-height: 50px;
  padding: 11px 13px;
}

.contact-field textarea {
  min-height: 138px;
  resize: vertical;
  padding: 13px;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: #696969;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--flame);
  background: #1d1d1d;
  outline: 2px solid transparent;
}

.contact-field input[aria-invalid='true'],
.contact-field textarea[aria-invalid='true'] {
  border-color: #ff8a65;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 2px;
}

.contact-submit {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.contact-actions p {
  margin: 0;
  color: #aaa39c;
  font-size: 12px;
  text-align: right;
}

.contact-actions a {
  color: var(--cream-text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 91, 35, .7);
  text-underline-offset: 3px;
}

.contact-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: #bdb6af;
  font-size: 14px;
  line-height: 1.5;
}

.contact-status.is-success { color: #d6f0d1; }
.contact-status.is-error { color: #ffb29a; }

.contact-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.contact-noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 120;
  margin: 0;
  padding: 14px 18px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

@media (max-width: 860px) {
  .contact-section { padding-top: 116px; }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .contact-copy h1 { max-width: 11ch; }
  .contact-expectation { margin-top: 34px; }
}

@media (max-width: 580px) {
  .contact-section { padding-bottom: 64px; }
  .contact-fields-two { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 24px 20px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
  .contact-actions p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field input,
  .contact-field textarea { transition: none; }
}
