.contact-modal {
  width: min(70rem, calc(100vw - 4rem));
  max-width: none;
  max-height: min(56rem, calc(100vh - 4rem));
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: rgb(238 232 223 / 98%);
  box-shadow: 0 2.5rem 8rem rgb(24 21 18 / 22%);
  overflow-x: hidden;
  overflow-y: auto;
}

.contact-modal::backdrop {
  background: rgb(24 21 18 / 54%);
  backdrop-filter: blur(12px) saturate(0.72);
}

.contact-modal[open] {
  animation: contact-modal-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes contact-modal-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.985);
  }

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

.contact-modal__shell {
  position: relative;
  display: grid;
  min-height: min(43rem, calc(100vh - 4rem));
  grid-template-columns: minmax(0, 1.02fr) minmax(26rem, 0.98fr);
}

.contact-modal__close {
  position: absolute;
  z-index: 3;
  top: 1.15rem;
  right: 1.15rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font: 400 2.4rem/1 "Manrope", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 180ms ease, background 180ms ease;
}

.contact-modal__close span {
  display: none;
}

.contact-modal__close::before,
.contact-modal__close::after {
  position: absolute;
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.contact-modal__close::before {
  transform: rotate(45deg);
}

.contact-modal__close::after {
  transform: rotate(-45deg);
}

.contact-modal__close:hover,
.contact-modal__close:focus-visible {
  color: var(--signal);
  background: transparent;
}

.contact-modal__close:focus-visible,
.contact-modal__channels a:focus-visible,
.contact-form__footer button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

body.is-contact-modal-open,
body.is-contact-success-modal-open {
  overflow: hidden;
}

.contact-modal__visual {
  position: relative;
  min-height: min(43rem, calc(100vh - 4rem));
  color: #fff9f0;
  background: #0e0e0d;
  overflow: hidden;
  isolation: isolate;
}

.contact-modal__visual > img,
.contact-modal__visual-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-modal__visual > img {
  z-index: -2;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(0.9) contrast(1.02);
}

.contact-modal__visual-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 8 7 / 24%) 0%, rgb(8 8 7 / 4%) 38%, rgb(8 8 7 / 78%) 100%),
    linear-gradient(90deg, rgb(8 8 7 / 52%) 0%, transparent 58%);
}

.contact-modal__visual-copy,
.contact-modal__channels {
  position: absolute;
  right: clamp(1.6rem, 3vw, 2.8rem);
  left: clamp(1.6rem, 3vw, 2.8rem);
}

.contact-modal__visual-copy {
  top: clamp(2rem, 4vw, 3.4rem);
}

.contact-modal__eyebrow,
.contact-modal__index,
.contact-modal__channels span,
.contact-modal__channels nav,
.contact-modal__channels > p,
.contact-form label > span,
.contact-form__footer p {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.contact-modal__eyebrow {
  margin: 0 0 1.2rem;
  color: rgb(255 249 240 / 72%);
}

.contact-modal__statement {
  max-width: 9ch;
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(3.25rem, 5.6vw, 6.25rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.84;
  text-transform: uppercase;
}

.contact-modal__channels {
  bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.contact-modal__channels > div {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgb(255 249 240 / 34%);
}

.contact-modal__channels span,
.contact-modal__channels > p {
  color: rgb(255 249 240 / 62%);
}

.contact-modal__channels a {
  color: inherit;
  text-decoration: none;
}

.contact-modal__channels > div a {
  justify-self: start;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.contact-modal__channels nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-modal__channels nav a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgb(255 249 240 / 44%);
}

.contact-modal__channels a:hover,
.contact-modal__channels a:focus-visible {
  color: #f17649;
}

.contact-modal__channels > p {
  margin: 1rem 0 0;
}

.contact-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 6.5vw, 6.5rem) clamp(2rem, 4vw, 4rem) clamp(2.3rem, 4vw, 3.6rem);
}

.contact-modal__index {
  margin: 0 0 1rem;
  color: var(--signal);
}

.contact-modal__intro {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  font-size: clamp(0.72rem, 0.88vw, 0.88rem);
  font-weight: 650;
  line-height: 1.55;
}

.contact-form,
.contact-form label {
  display: grid;
}

.contact-form {
  gap: 1rem;
}

.contact-form label.contact-form__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  gap: 0.42rem;
}

.contact-form label > span {
  color: rgb(24 21 18 / 66%);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgb(24 21 18 / 38%);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: 700 0.76rem/1.4 "Manrope", sans-serif;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 2.6rem;
  padding: 0.45rem 0;
}

.contact-form select {
  cursor: pointer;
}

.contact-form textarea {
  min-height: 6.2rem;
  padding: 0.55rem 0;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgb(24 21 18 / 43%);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 1px 0 var(--signal);
}

.contact-form__footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.contact-form__footer button {
  display: inline-flex;
  min-width: 9.8rem;
  min-height: 2.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font: 800 0.62rem/1 "Manrope", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form__footer button span:last-child {
  color: var(--signal);
  font-size: 1rem;
}

.contact-form__footer button:hover,
.contact-form__footer button:focus-visible {
  color: var(--ink);
  background: var(--signal);
  transform: translateY(-0.15rem);
}

.contact-form__footer button:hover span:last-child,
.contact-form__footer button:focus-visible span:last-child {
  color: var(--ink);
}

.contact-form__footer button:disabled {
  color: rgb(238 232 223 / 72%);
  background: rgb(24 21 18 / 72%);
  cursor: wait;
  transform: none;
}

.contact-form__footer p {
  max-width: 20rem;
  margin: 0;
  color: rgb(24 21 18 / 56%);
  font-size: 0.5rem;
  line-height: 1.5;
}

.contact-form__footer p[data-state="error"] {
  color: #9d3022;
}

.contact-form__footer p[data-state="success"] {
  color: #356044;
}

.contact-success-modal {
  width: min(52rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgb(238 232 223 / 34%);
  color: var(--paper);
  background: #161411;
  box-shadow: 0 2.5rem 8rem rgb(8 7 6 / 46%);
  overflow: hidden;
}

.contact-success-modal::backdrop {
  background: rgb(24 21 18 / 68%);
  backdrop-filter: blur(14px) saturate(0.65);
}

.contact-success-modal[open] {
  animation: contact-success-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes contact-success-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.97);
  }

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

.contact-success-modal__shell {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.45fr);
  min-height: 28rem;
}

.contact-success-modal__signal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: var(--ink);
  background: var(--signal);
  overflow: hidden;
}

.contact-success-modal__signal::after {
  content: "THANK YOU";
  position: absolute;
  right: -0.12em;
  bottom: -0.15em;
  color: rgb(24 21 18 / 9%);
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.72;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.contact-success-modal__mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.contact-success-modal__signal-copy,
.contact-success-modal__eyebrow,
.contact-success-modal__footer p {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-success-modal__signal-copy {
  position: relative;
  z-index: 1;
  max-width: 8rem;
}

.contact-success-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.75rem clamp(2rem, 5vw, 4.5rem) 3rem;
}

.contact-success-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  min-width: 4.5rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgb(238 232 223 / 54%);
  color: var(--paper);
  background: transparent;
  font: 800 0.56rem/1 "Manrope", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-success-modal__close:hover,
.contact-success-modal__close:focus-visible {
  border-color: var(--signal);
  color: var(--ink);
  background: var(--signal);
}

.contact-success-modal__eyebrow {
  margin: 0 0 1.25rem;
  color: var(--signal);
}

.contact-success-modal h2 {
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-transform: uppercase;
}

.contact-success-modal h2 em {
  color: var(--signal);
  font-style: normal;
}

.contact-success-modal__message {
  max-width: 32rem;
  margin: 1.5rem 0 2rem;
  color: rgb(238 232 223 / 76%);
  font-size: clamp(0.76rem, 1vw, 0.94rem);
  font-weight: 650;
  line-height: 1.7;
}

.contact-success-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(238 232 223 / 22%);
}

.contact-success-modal__footer button {
  display: inline-flex;
  min-width: 11rem;
  min-height: 2.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--signal);
  color: var(--ink);
  background: var(--signal);
  font: 800 0.62rem/1 "Manrope", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-success-modal__footer button:hover,
.contact-success-modal__footer button:focus-visible {
  color: var(--paper);
  background: transparent;
  transform: translateY(-0.15rem);
}

.contact-success-modal__footer p {
  margin: 0;
  color: rgb(238 232 223 / 46%);
  text-align: right;
}

.contact-success-modal__close:focus-visible,
.contact-success-modal__footer button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

@media (max-height: 760px) and (min-width: 621px) {
  .contact-modal {
    max-height: calc(100vh - 2rem);
  }

  .contact-modal__shell,
  .contact-modal__visual {
    min-height: calc(100vh - 2rem);
  }

  .contact-modal__content {
    padding: 3.8rem 2.5rem 1.6rem;
  }

  .contact-modal__index {
    margin-bottom: 1.2rem;
  }

  .contact-modal__intro {
    margin-bottom: 1rem;
  }

  .contact-form {
    gap: 0.72rem;
  }

  .contact-form textarea {
    min-height: 4.6rem;
  }
}

@media (max-width: 900px) and (min-width: 621px) {
  .contact-modal {
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
  }

  .contact-modal__shell {
    min-height: calc(100vh - 2rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
  }

  .contact-modal__content {
    padding-right: 2.25rem;
    padding-left: 2.25rem;
  }
}

@media (max-width: 620px) {
  .contact-modal {
    width: calc(100vw - 1.4rem);
    max-height: calc(100vh - 1.4rem);
  }

  .contact-modal__shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .contact-modal__visual {
    min-height: 19rem;
  }

  .contact-modal__visual > img {
    object-position: center 33%;
  }

  .contact-modal__visual-shade {
    background:
      linear-gradient(180deg, rgb(8 8 7 / 20%) 0%, rgb(8 8 7 / 4%) 28%, rgb(8 8 7 / 88%) 100%),
      linear-gradient(90deg, rgb(8 8 7 / 50%) 0%, transparent 62%);
  }

  .contact-modal__visual-copy,
  .contact-modal__channels {
    right: 1.25rem;
    left: 1.25rem;
  }

  .contact-modal__visual-copy {
    top: 1.2rem;
  }

  .contact-modal__eyebrow {
    margin-bottom: 0.65rem;
  }

  .contact-modal__statement {
    font-size: 2.7rem;
  }

  .contact-modal__channels {
    bottom: 1.15rem;
  }

  .contact-modal__channels > div {
    padding-bottom: 0.65rem;
  }

  .contact-modal__channels > div a {
    font-size: 1.55rem;
  }

  .contact-modal__channels nav {
    margin-top: 0.65rem;
  }

  .contact-modal__channels > p {
    margin-top: 0.55rem;
    font-size: 0.48rem;
  }

  .contact-modal__content {
    padding: 2.2rem 1.4rem 1.6rem;
  }

  .contact-modal__index {
    margin-bottom: 1.15rem;
  }

  .contact-modal__intro {
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
  }

  .contact-form__row,
  .contact-form__footer {
    grid-template-columns: 1fr;
  }

  .contact-form__footer {
    gap: 0.75rem;
  }

  .contact-form__footer button {
    width: 100%;
  }

  .contact-success-modal {
    width: calc(100vw - 1.4rem);
    max-height: calc(100vh - 1.4rem);
    overflow-y: auto;
  }

  .contact-success-modal__shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact-success-modal__signal {
    min-height: 8.5rem;
    flex-direction: row;
    align-items: flex-start;
    padding: 1.25rem;
  }

  .contact-success-modal__signal::after {
    right: -0.03em;
    bottom: -0.12em;
    font-size: 4.8rem;
    line-height: 0.72;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .contact-success-modal__mark {
    width: 3.3rem;
    height: 3.3rem;
    font-size: 1.25rem;
  }

  .contact-success-modal__signal-copy {
    align-self: flex-end;
    text-align: right;
  }

  .contact-success-modal__content {
    padding: 4.4rem 1.4rem 1.5rem;
  }

  .contact-success-modal__close {
    top: 1.1rem;
    right: 1.1rem;
  }

  .contact-success-modal h2 {
    font-size: clamp(3.25rem, 15vw, 4.5rem);
  }

  .contact-success-modal__message {
    margin: 1.25rem 0 1.5rem;
    font-size: 0.72rem;
  }

  .contact-success-modal__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-success-modal__footer button {
    width: 100%;
  }

  .contact-success-modal__footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal[open],
  .contact-success-modal[open] {
    animation: none;
  }
}
