:root {
  color-scheme: dark;
  --black: #050505;
  --white: #f5f3ee;
  --muted: rgba(245, 243, 238, 0.56);
  --line: rgba(245, 243, 238, 0.22);
  --gold: #c9a45d;
  --error: #e5a08d;
  --edge: clamp(1.15rem, 2.3vw, 2.7rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 18rem;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

.page-transition {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: var(--black);
  pointer-events: none;
  animation: page-arrival 700ms ease forwards;
  transition: opacity 650ms ease;
}

.page-transition.is-leaving {
  opacity: 1;
  visibility: visible;
  animation: none;
}

.contact-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  padding: 0 var(--edge);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent);
}

.contact-brand {
  font-family: "Eurostile Extended", "Eurostile Ext", "Microgramma D Extended", "Arial Black", Arial, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.05rem, 2.25vw, 3.2rem);
}

.contact-nav a,
.contact-nav span {
  position: relative;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-nav a::after,
.contact-nav span::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.contact-nav span::after,
.contact-nav a:hover::after,
.contact-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(28rem, 1.28fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  width: min(88%, 82rem);
  margin: 0 auto;
  padding: clamp(8.5rem, 15vh, 11rem) 0 5rem;
}

.contact-intro {
  position: sticky;
  top: 9rem;
  align-self: start;
}

.contact-intro > p:first-child {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-intro h1 {
  margin: 0;
  color: var(--white);
  font-family: "Eurostile Extended", "Eurostile Ext", "Microgramma D Extended", "Arial Black", Arial, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.contact-intro__note {
  max-width: 34ch;
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.inquiry-form {
  display: grid;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.form-field {
  position: relative;
  display: grid;
  gap: 0.65rem;
}

.form-field label,
.date-fieldset legend {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-field label span,
.date-fieldset legend span {
  color: var(--white);
}

.form-field label .optional-label {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.52rem;
}

.form-field input,
.form-field select,
.form-field textarea,
.project-date input {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  transition: border-color 220ms ease;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.55;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 0.8rem) 50%,
    calc(100% - 0.5rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
}

.form-field select option {
  background: #111;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.project-date input:focus {
  border-color: var(--gold);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.project-date input[aria-invalid="true"] {
  border-color: var(--error);
}

.character-count {
  position: absolute;
  right: 0;
  bottom: -1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}

.date-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.date-fieldset legend {
  margin-bottom: 0.75rem;
}

.project-dates {
  display: grid;
  gap: 0.85rem;
}

.project-date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.remove-date,
.add-date {
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.add-date {
  margin-top: 0.9rem;
}

.remove-date:hover,
.remove-date:focus-visible,
.add-date:hover,
.add-date:focus-visible {
  color: var(--white);
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.45;
}

.consent-field input {
  width: 1rem;
  height: 1rem;
  margin: 0.08rem 0 0;
  accent-color: var(--gold);
}

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

.turnstile-slot:empty {
  display: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-success {
  color: var(--white);
}

.submit-inquiry {
  min-width: 10rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease;
}

.submit-inquiry:hover,
.submit-inquiry:focus-visible {
  background: transparent;
  color: var(--white);
}

.submit-inquiry:disabled {
  cursor: wait;
  opacity: 0.56;
}

.thank-you-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--edge);
  background: rgba(5, 5, 5, 0.97);
  opacity: 1;
  transition: opacity 550ms ease;
}

.thank-you-screen[hidden] {
  display: none;
}

.thank-you-screen__content {
  width: min(100%, 47rem);
  text-align: center;
  animation: receipt-arrival 700ms ease both;
}

.thank-you-screen__content > p:first-child {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thank-you-screen h2 {
  margin: 0;
  color: var(--white);
  font-family: "Eurostile Extended", "Eurostile Ext", "Microgramma D Extended", "Arial Black", Arial, sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.thank-you-screen h2 + p {
  max-width: 38rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}

.thank-you-screen__reference {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thank-you-screen a {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease;
}

.thank-you-screen a:hover,
.thank-you-screen a:focus-visible {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.35rem;
}

@keyframes page-arrival {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes receipt-arrival {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .contact-page {
    grid-template-columns: 1fr;
    width: min(86%, 42rem);
  }

  .contact-intro {
    position: static;
  }

  .contact-intro__note {
    max-width: 45ch;
  }
}

@media (max-width: 600px) {
  .contact-header {
    min-height: 5.4rem;
  }

  .contact-brand {
    font-size: 0.8rem;
  }

  .contact-nav {
    gap: 0.8rem;
  }

  .contact-nav a,
  .contact-nav span {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
  }

  .contact-page {
    padding-top: 7rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-inquiry {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    animation-duration: 1ms;
    transition-duration: 1ms;
  }

  .thank-you-screen__content {
    animation-duration: 1ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
