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

.contactModal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow-y: auto;
  background: rgba(7, 7, 9, 0.68);
  backdrop-filter: blur(12px) saturate(0.82);
  -webkit-backdrop-filter: blur(12px) saturate(0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.contactModal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contactModal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  width: min(1180px, 100%);
  min-height: 670px;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 236, 0.2);
  border-radius: 2px;
  background: #111113;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(101, 173, 255, 0.04) inset;
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 320ms ease, transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contactModal.is-open .contactModal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contactModal__dialog::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -190px;
  width: 460px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 173, 255, 0.22), rgba(130, 117, 255, 0.1) 34%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.contactModal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(16, 16, 17, 0.2);
  border-radius: 50%;
  color: #101011;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.contactModal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.contactModal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.contactModal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contactModal__close:hover {
  color: var(--white);
  background: #101011;
  transform: rotate(5deg);
}

.contactModal__close:focus-visible,
.contactForm input:focus-visible,
.contactForm textarea:focus-visible,
.contactForm__check input:focus-visible+.contactForm__checkBox,
.contactForm__submit:focus-visible,
.contactFormSuccess button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.contactModal__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 34px 42px 38px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 44%),
    radial-gradient(circle at 92% 86%, rgba(130, 117, 255, 0.24), transparent 31%),
    #101011;
}

.contactModal__intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: -90px;
  width: 230px;
  height: 100%;
  border-left: 1px solid rgba(243, 240, 236, 0.12);
  background: linear-gradient(180deg, rgba(101, 173, 255, 0.05), rgba(211, 106, 243, 0.12));
  transform: skewX(-10deg);
  pointer-events: none;
}

.contactModal__introTop,
.contactModal__facts {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(243, 240, 236, 0.58);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.contactModal__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contactModal__availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8dd89a;
  box-shadow: 0 0 0 5px rgba(141, 216, 154, 0.1);
}

.contactModal__introContent {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 92px 0 72px;
}

.contactModal__eyebrow {
  margin-bottom: 22px;
  color: var(--sand);
  font-family: var(--display);
  letter-spacing: 0.16em;
}

.contactModal__title {
  color: var(--white);
  text-wrap: balance;
}

.contactModal__title::after {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
}

.contactModal__description {
  max-width: 43ch;
  margin-top: 28px;
  color: rgba(243, 240, 236, 0.66);
}

.contactModal__facts {
  justify-content: flex-start;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 240, 236, 0.13);
}

.contactModal__facts span {
  padding-right: 20px;
}

.contactModal__facts span+span {
  padding-left: 20px;
  border-left: 1px solid rgba(243, 240, 236, 0.16);
}

.contactModal__formSide {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  padding: 72px 64px 50px;
  color: #101011;
  background: #e8ded3;
}

.contactForm,
.contactFormSuccess {
  grid-area: 1 / 1;
}

.contactForm {
  display: flex;
  flex-direction: column;
  transition: opacity 220ms ease, transform 280ms ease, visibility 220ms ease;
}

.contactModal.is-complete .contactForm {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
}

.contactForm__heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  color: rgba(16, 16, 17, 0.55);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.contactForm__field {
  position: relative;
  margin-bottom: 24px;
}

.contactForm__field label {
  display: block;
  margin-bottom: 9px;
  color: rgba(16, 16, 17, 0.74);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contactForm__field label span,
.contactForm__check em {
  color: #7164dc;
  font-style: normal;
}

.contactForm input[type="text"],
.contactForm input[type="tel"],
.contactForm textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(16, 16, 17, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #101011;
  font-size: 17px;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contactForm input[type="text"],
.contactForm input[type="tel"] {
  height: 47px;
  padding: 0 0 12px;
}

.contactForm textarea {
  min-height: 88px;
  padding: 2px 48px 13px 0;
  resize: none;
}

.contactForm input::placeholder,
.contactForm textarea::placeholder {
  color: rgba(16, 16, 17, 0.34);
}

.contactForm input:focus,
.contactForm textarea:focus {
  border-color: #7164dc;
  box-shadow: 0 1px 0 #7164dc;
}

.contactForm__field.has-error input,
.contactForm__field.has-error textarea {
  border-color: #a94444;
}

.contactForm__error {
  min-height: 16px;
  margin-top: 6px;
  color: #943838;
  font-size: 11px;
  line-height: 1.35;
}

.contactForm__counter {
  position: absolute;
  right: 0;
  bottom: 30px;
  color: rgba(16, 16, 17, 0.38);
  font-size: 10px;
}

.contactForm__counter b {
  font-weight: 500;
}

.contactForm__consent {
  margin: 0 0 22px;
}

.contactForm__check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  cursor: pointer;
}

.contactForm__check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contactForm__checkBox {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(16, 16, 17, 0.4);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contactForm__checkBox svg {
  width: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 180ms ease;
}

.contactForm__check input:checked+.contactForm__checkBox {
  border-color: #101011;
  background: #101011;
}

.contactForm__check input:checked+.contactForm__checkBox svg {
  opacity: 1;
  transform: scale(1);
}

.contactForm__check>span:last-child {
  color: rgba(16, 16, 17, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.contactForm__consent.has-error .contactForm__checkBox {
  border-color: #a94444;
}

.contactForm__submit {
  display: grid;
  grid-template-columns: 1fr 56px;
  align-items: center;
  min-height: 58px;
  margin-top: auto;
  padding-left: 22px;
  overflow: hidden;
  color: var(--white);
  background: #101011;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  transition: transform 200ms ease, background 240ms ease;
}

.contactForm__submit b {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #101011;
  background: var(--sand);
  transition: transform 240ms ease, background 240ms ease;
}

.contactForm__submit b svg {
  width: 18px;
}

.contactForm__submit:hover {
  background: #202024;
}

.contactForm__submit:hover b {
  background: #d9c8b8;
  transform: translateX(3px);
}

.contactForm__submit:active {
  transform: scale(0.99);
}

.contactForm__status {
  min-height: 15px;
  margin-top: 9px;
  color: #943838;
  font-size: 11px;
  text-align: center;
}

.contactFormSuccess {
  align-self: center;
  max-width: 450px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 340ms ease, visibility 280ms ease;
}

.contactModal.is-complete .contactFormSuccess {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.contactFormSuccess__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  border: 1px solid rgba(16, 16, 17, 0.28);
  border-radius: 50%;
  font-size: 20px;
}

.contactFormSuccess__eyebrow {
  margin-bottom: 18px;
  color: #7164dc;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contactFormSuccess>p:not(.contactFormSuccess__eyebrow) {
  max-width: 39ch;
  margin-top: 24px;
  color: rgba(16, 16, 17, 0.66);
  font-size: 14px;
  line-height: 1.6;
}

.contactFormSuccess button {
  margin-top: 34px;
  border-bottom: 1px solid currentColor;
  color: #101011;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contactModal__title {
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.contactFormSuccess h3 {
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-h3);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.contactModal__description {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.contactModal__eyebrow {
  font-size: var(--fs-meta);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .contactModal {
    place-items: start center;
    padding: 18px;
  }

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

  .contactModal__close {
    position: fixed;
    top: 30px;
    right: 30px;
    border-color: rgba(243, 240, 236, 0.25);
    color: var(--white);
    background: rgba(16, 16, 17, 0.6);
    backdrop-filter: blur(8px);
  }

  .contactModal__intro {
    min-height: 330px;
    padding: 28px 30px 30px;
  }

  .contactModal__introContent {
    margin: 60px 0 44px;
  }

  .contactModal__description {
    max-width: 58ch;
  }

  .contactModal__formSide {
    min-height: 620px;
    padding: 42px 30px 34px;
  }
}

@media (max-width: 560px) {
  .contactModal {
    padding: 0;
  }

  .contactModal__dialog {
    width: 100%;
    min-height: 100dvh;
    border: 0;
  }

  .contactModal__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .contactModal__intro {
    min-height: 285px;
    padding: 22px 20px 24px;
  }

  .contactModal__availability {
    display: none;
  }

  .contactModal__introContent {
    margin: 48px 0 32px;
  }

  .contactModal__eyebrow {
    margin-bottom: 14px;
  }

  .contactModal__title::after {
    margin-top: 18px;
  }

  .contactModal__description {
    margin-top: 18px;
  }

  .contactModal__facts {
    gap: 10px;
    font-size: 9px;
  }

  .contactModal__facts span {
    padding-right: 10px;
  }

  .contactModal__facts span+span {
    padding-left: 10px;
  }

  .contactModal__formSide {
    min-height: 600px;
    padding: 34px 20px 28px;
  }

  .contactForm__heading span:last-child {
    display: none;
  }

  .contactForm__field {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .contactModal,
  .contactModal__dialog,
  .contactForm,
  .contactFormSuccess {
    transition: none;
  }
}

/* Contact Form 7 inside the global modal. The same CF7 form is reused on /contacts/. */
.contactForm__cf7,
.contactForm__cf7 .wpcf7,
.contactForm__cf7 .wpcf7-form {
  width: 100%;
}

.contactForm__cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
}

.contactForm__cf7 .contactFormFields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.contactForm__cf7 .contactFormFields>p:last-child {
  grid-column: 1 / -1;
}

.contactForm__cf7 .contactFormField {
  display: block;
  min-width: 0;
}

.contactForm__cf7 .contactFormField--message {
  grid-column: 1 / -1;
}

.contactForm__cf7 .contactFormField__label {
  display: block;
  margin-bottom: 8px;
  color: rgba(16, 16, 17, 0.62);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contactForm__cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contactForm__cf7 input[type="text"],
.contactForm__cf7 input[type="email"],
.contactForm__cf7 input[type="tel"],
.contactForm__cf7 textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(16, 16, 17, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #101011;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contactForm__cf7 input[type="text"],
.contactForm__cf7 input[type="email"],
.contactForm__cf7 input[type="tel"] {
  min-height: 48px;
  padding: 8px 0 10px;
}

.contactForm__cf7 textarea {
  min-height: 92px;
  padding: 8px 0 10px;
  resize: vertical;
}

.contactForm__cf7 input::placeholder,
.contactForm__cf7 textarea::placeholder {
  color: rgba(16, 16, 17, 0.34);
}

.contactForm__cf7 input:focus,
.contactForm__cf7 textarea:focus {
  border-color: #7164dc;
  box-shadow: 0 1px 0 #7164dc;
}

.contactForm__cf7 .contactFormConsent {
  margin-top: 24px;
}

.contactForm__cf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.contactForm__cf7 .wpcf7-acceptance input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
  accent-color: #101011;
}

.contactForm__cf7 .wpcf7-list-item {
  margin: 0;
}

.contactForm__cf7 .wpcf7-list-item-label {
  color: rgba(16, 16, 17, 0.64);
  font-size: 12px;
  line-height: 1.5;
}

.contactForm__cf7 .contactFormSubmit,
.contactForm__cf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid #101011;
  border-radius: 0;
  background: #101011;
  color: var(--white);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 220ms ease, transform 220ms ease;
}

.contactForm__cf7 .contactFormSubmit:hover,
.contactForm__cf7 input[type="submit"]:hover {
  background: #202024;
}

.contactForm__cf7 .contactFormSubmit:active,
.contactForm__cf7 input[type="submit"]:active {
  transform: scale(0.99);
}

.contactForm__cf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

.contactForm__cf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #943838;
  font-size: 11px;
  line-height: 1.4;
}

.contactForm__cf7 .wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(16, 16, 17, 0.2);
  color: rgba(16, 16, 17, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.contactForm__fallback {
  padding: 18px;
  border: 1px solid rgba(16, 16, 17, 0.16);
  color: rgba(16, 16, 17, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.contactForm__fallback a {
  display: inline-block;
  margin-top: 10px;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
}

@media (max-width: 560px) {
  .contactForm__cf7 .contactFormFields {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contactForm__cf7 .contactFormField--message {
    grid-column: auto;
  }
}

/* Viewport-height fit for the contact modal. */
@media (min-width: 901px) {
  .contactModal {
    padding: clamp(12px, 3vh, 32px);
  }

  .contactModal__dialog {
    min-height: 0;
    height: min(670px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }

  .contactModal__intro,
  .contactModal__formSide {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .contactModal__intro {
    padding: 24px 32px 26px;
  }

  .contactModal__introContent {
    margin: 38px 0 28px;
  }

  .contactModal__eyebrow {
    margin-bottom: 12px;
  }

  .contactModal__title {
    font-size: clamp(32px, 6vh, 44px);
  }

  .contactModal__title::after {
    margin-top: 16px;
  }

  .contactModal__description {
    margin-top: 16px;
  }

  .contactModal__facts {
    padding-top: 14px;
  }

  .contactModal__formSide {
    padding: 30px 44px 24px;
  }

  .contactForm__heading {
    margin-bottom: 20px;
  }

  .contactForm__field {
    margin-bottom: 14px;
  }

  .contactForm input[type="text"],
  .contactForm input[type="tel"] {
    height: 40px;
  }

  .contactForm textarea {
    min-height: 62px;
  }

  .contactForm__consent {
    margin-bottom: 14px;
  }

  .contactForm__submit {
    min-height: 50px;
  }

  .contactForm__cf7 .contactFormFields {
    gap: 16px 18px;
  }

  .contactForm__cf7 input[type="text"],
  .contactForm__cf7 input[type="email"],
  .contactForm__cf7 input[type="tel"] {
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 7px;
  }

  .contactForm__cf7 textarea {
    min-height: 66px;
  }

  .contactForm__cf7 .contactFormConsent {
    margin-top: 16px;
  }

  .contactForm__cf7 .contactFormSubmit,
  .contactForm__cf7 input[type="submit"] {
    min-height: 50px;
    margin-top: 18px;
  }

  .contactForm__cf7 .wpcf7 form .wpcf7-response-output {
    margin-top: 10px;
  }
}

@media (min-width: 901px) and (max-height: 680px) {
  .contactModal__dialog {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .contactModal__intro {
    padding: 20px 28px 22px;
  }

  .contactModal__introContent {
    margin: 26px 0 20px;
  }

  .contactModal__description {
    margin-top: 12px;
    font-size: 14px;
  }

  .contactModal__formSide {
    padding: 22px 36px 18px;
  }
}

@media (max-width: 900px) and (max-height: 760px) {
  .contactModal {
    overscroll-behavior: contain;
  }

  .contactModal__intro {
    min-height: 0;
  }

  .contactModal__formSide {
    min-height: 0;
  }
}