.subject {
  position: fixed;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  color: var(--text);
  font-family: "Roboto Condensed", Georgia, serif;
}

.contact-page {
  position: relative;
  z-index: 1;
  background: var(--ink);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-page > header,
.contact {
  position: relative;
  z-index: 1;
}

.contact {
  flex: 1;
  width: 100%;
  display: grid;
  align-content: center;
  gap: 40px;
  padding-block: 48px 64px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 0vh, 40px);
}

.contact-quote {
  margin: 0;
  max-width: 11em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--paper);
  animation: rise-in 1.4s ease both;
  animation-delay: .2s;
}
.contact-quote em {
  font-style: italic;
  color: var(--ash);
}

.contact-text {
  display: flex;
  flex-direction: column;
  margin: 0;
  max-width: 36em;
  font-size: clamp(30px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
  animation: rise-in 1.4s ease both;
  animation-delay: .7s;
}
.contact-a {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}
a:hover {
  color: var(--paper);
  text-decoration: none;
}

.nowrap { white-space: nowrap; }

.contact-form {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  justify-self: center;
  animation: rise-in 2s ease both;
  animation-delay: .4s;
}
.contact-form canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 860px) {
  .contact {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
  .contact-form {
    width: 100%;
    max-width: min(620px, 74svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-quote, .contact-text, .contact-form { animation: none; }
}
