.contact-page {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(
      oklch(0.025 0 0 / 0.88),
      oklch(0.025 0 0 / 0.88)
    ),
    url("../../media/pogom-slide-focus.jpg") 58% center / cover fixed no-repeat;
}

.contact-header .desktop-nav a[aria-current="page"] {
  color: var(--brand-orange);
}

.contact-header .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.contact-main {
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(3.5rem, 6vw, 7rem);
  width: min(100%, 100rem);
  min-height: calc(100dvh - 6.5rem);
  margin-inline: auto;
  padding:
    clamp(3.5rem, 6vh, 5rem)
    clamp(1.25rem, 4vw, 4.5rem)
    clamp(3.5rem, 6vh, 5rem);
}

.contact-intro {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: clamp(3rem, 9vh, 6rem) 0 3rem;
}

.contact-hero-title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-barlow), Arial, sans-serif;
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 100;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-hero-title-split {
  white-space: normal;
  display: inline-grid;
  line-height: 0.72;
  gap: 0;
}

.contact-hero-title .hero-title-brand {
  color: var(--brand-orange);
  display: block;
  line-height: 0.85;
}

.contact-hero-title .hero-title-region {
  display: block;
  line-height: 0.85;
}

.contact-hero-title .hero-title-dot {
  color: var(--brand-orange);
}

.contact-intro p {
  max-width: 27rem;
  margin: clamp(2.25rem, 5vh, 3.5rem) 0 0;
  color: var(--muted-white);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.contact-email {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 180ms ease-out;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--brand-orange);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: clamp(2rem, 4vh, 3.25rem) clamp(1.5rem, 3vw, 2.5rem);
  align-self: center;
  width: 100%;
}

.contact-brand-art {
  grid-column: 2;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  background: oklch(0.11 0.02 38 / 0.9);
  box-shadow: none;
}

.contact-brand-art-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: drop-shadow(0 0 24px oklch(0.2 0.06 38 / 0.25));
  display: block;
}

.form-field {
  display: grid;
  gap: 0.7rem;
}

.form-field label,
.form-topics legend {
  color: var(--white);
  font-family: var(--font-barlow), Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 0;
  outline: 2px solid transparent;
  background: transparent;
  color: var(--white);
  caret-color: var(--brand-orange);
  font: 400 1rem/1.3 var(--font-barlow), Arial, sans-serif;
  overflow-wrap: anywhere;
  transition:
    border-color 180ms ease-out,
    background-color 180ms ease-out,
    box-shadow 180ms ease-out;
}

.form-field input:hover,
.form-field textarea:hover {
  border-bottom-color: var(--line);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: oklch(0.13 0.01 38 / 0.58);
  box-shadow: none;
}

.form-field input:focus::placeholder,
.form-field textarea:focus::placeholder {
  color: oklch(0.7 0 0);
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: var(--brand-orange);
  background: oklch(0.13 0.01 38 / 0.58);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--brand-orange);
  background: oklch(0.13 0.01 38 / 0.58);
}

.form-field .form-error {
  margin: 0.32rem 0 0;
  color: var(--brand-orange);
  font-size: 0.85rem;
  line-height: 1.15;
  font-family: var(--font-barlow), Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.015em;
  display: none;
}

.form-field.is-invalid .form-error {
  display: block;
}

.form-topics {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-topics legend {
  margin-bottom: 0.95rem;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.topic-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  cursor: pointer;
  color: var(--muted-white);
  font-size: 0.92rem;
  line-height: 1.2;
}

.topic-options input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  outline: 2px solid transparent;
  appearance: none;
  cursor: pointer;
  transition:
    border-color 160ms ease-out,
    box-shadow 160ms ease-out;
}

.topic-options input:checked {
  border-color: var(--brand-orange);
  box-shadow: inset 0 0 0 0.3rem var(--near-black);
  background: var(--brand-orange);
}

.topic-options input:focus-visible {
  outline-color: var(--white);
  outline-offset: 3px;
}

.topic-options label:hover {
  color: var(--white);
}

.form-message {
  grid-column: 1 / -1;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  margin: -1.6rem 0 0;
  color: oklch(0.7 0 0);
  font-size: 0.88rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.85rem;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 0;
  background: var(--brand-orange);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-barlow), Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out;
}

.contact-submit svg {
  overflow: visible;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--white);
  color: var(--near-black);
}

.contact-submit:hover svg,
.contact-submit:focus-visible svg {
  transform: translateX(0.3rem);
}

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

.form-status {
  grid-column: 1 / -1;
  margin: -1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted-white);
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.form-status[data-type="error"] {
  color: oklch(0.77 0.15 30);
}

.form-status[data-type="success"] {
  color: oklch(0.82 0.14 145);
}

@media (max-width: 64rem) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    min-height: 0;
  }

  .contact-intro {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .contact-hero-title {
    font-size: clamp(5rem, 15vw, 8.5rem);
  }

  .contact-intro p {
    margin-top: 1.75rem;
  }

  .contact-form {
    align-self: start;
  }

  .contact-brand-art {
    grid-column: 1;
    align-self: center;
    justify-self: stretch;
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
  }

  .contact-brand-art-image {
    width: 100%;
  }
}

@media (max-width: 54rem) {
  .contact-page {
    background-attachment: scroll;
    background-position: 62% center;
  }

  .contact-header .mobile-nav a[aria-current="page"] {
    color: var(--brand-orange);
  }

  .contact-layout {
    padding-top: 3.5rem;
  }
}

@media (max-width: 36rem) {
  .contact-layout {
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .contact-intro {
    padding: 1.5rem 0 2.25rem;
  }

  .contact-hero-title {
    font-size: clamp(3.55rem, 18vw, 5.3rem);
  }

  .contact-intro p {
    max-width: 25rem;
    margin-top: 1.5rem;
    font-size: 1.08rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .form-field,
  .form-topics,
  .form-message,
  .form-note,
  .contact-submit,
  .form-status {
    grid-column: 1;
  }

  .topic-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
  }

  .form-note {
    margin-top: -1rem;
  }

  .contact-submit {
    min-height: 3.7rem;
  }
}
