.contact-page {
  padding: clamp(var(--space-12), 12vw, var(--space-20)) var(--page-gutter) var(--section-space);
}
.contact-page__layout {
  display: grid;
  gap: var(--space-5) var(--space-4);
}
.contact-page__intro p { margin: 0; }
.contact-page__intro h1 {
  max-width: 11em;
  margin: var(--space-2) 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.contact-page__intro a, .contact-form__privacy a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.contact-page__portrait {
  display: block;
  width: min(55%, 192px);
  height: auto;
}
.contact-form {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.contact-form__field label { display: block; margin-bottom: var(--space-1); }
.contact-form__field label span { color: var(--colours--grey); }
.contact-form__field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: var(--space-6);
  padding: var(--space-1) 0;
  border: 0;
  border-bottom: 1px solid var(--section-rule);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.contact-form__field select { padding-inline-end: var(--space-2); }
.contact-form__field textarea { resize: vertical; }
.contact-form__field textarea::placeholder { color: var(--colours--grey); }
.contact-form__field :is(input, select, textarea):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.contact-form__wide { grid-column: 1 / -1; }
.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.contact-form__privacy, .contact-form__status { margin: 0; }
.contact-form__submit {
  justify-self: start;
  min-height: var(--space-6);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--colours--light);
  background: var(--colours--light);
  color: var(--colours--dark);
  font: inherit;
  transition: background-color .2s, color .2s;
}
.contact-form__submit:hover { background: transparent; color: var(--colours--light); }
.contact-form__submit:disabled { opacity: .6; cursor: wait; }
.contact-form__status:empty { position: absolute; }

@media (min-width: 650px) {
  .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .contact-page__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
  .contact-page__intro, .contact-form { grid-column: 1 / 8; }
  .contact-page__portrait { grid-area: 1 / 10 / 3 / -1; width: 100%; align-self: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-page__intro > *,
  .contact-page__portrait,
  .contact-form > :not(.contact-form__trap) {
    animation: contact-arrive .65s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: calc(var(--contact-transition-delay, 0s) + var(--contact-step, 0s));
  }
  html[data-page-motion="enter"] .contact-page { --contact-transition-delay: .12s; }
  .contact-page__intro h1 { --contact-step: .06s; }
  .contact-page__intro p:last-child { --contact-step: .12s; }
  .contact-page__portrait { --contact-step: .21s; }
  .contact-form > :not(.contact-form__trap) { --contact-step: .18s; }
  .contact-form > :nth-child(n + 4) { --contact-step: .24s; }
  .contact-form > :nth-child(n + 6) { --contact-step: .30s; }
}

@keyframes contact-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
