.mi-contact-page {
  width: 100%;
  max-width: var(--mi-page-width);
  margin-inline: auto;
  background: var(--mi-color-surface-dark);
  color: #fff;
  overflow: hidden;
}

.mi-contact-intro {
  height: calc(603px * var(--mi-s));
}

.mi-contact-intro__body {
  position: relative;
  height: calc(479px * var(--mi-s));
  padding-inline: var(--mi-gutter);
}

.mi-contact-intro__title {
  position: relative;
  z-index: 2;
  font-size: var(--mi-fs-section);
  font-weight: 500;
  line-height: 1.1;
}

.mi-contact-intro__details {
  position: absolute;
  z-index: 2;
  top: calc(177px * var(--mi-s));
  left: var(--mi-gutter);
  display: grid;
  grid-template-columns: calc(318px * var(--mi-s)) calc(400px * var(--mi-s));
  grid-template-areas:
    "phone mail"
    "social social";
  column-gap: calc(229px * var(--mi-s));
  row-gap: calc(84px * var(--mi-s));
}

.mi-contact-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16px * var(--mi-s));
}

.mi-contact-detail--phone { grid-area: phone; }
.mi-contact-detail--mail { grid-area: mail; }
.mi-contact-detail--social { grid-area: social; }

.mi-contact-detail__label {
  font-size: var(--mi-fs-20);
  font-weight: 300;
  line-height: 1.5;
}

.mi-contact-detail__value {
  font-size: var(--mi-fs-40);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.mi-contact-detail__value--mail {
  text-decoration: underline;
  text-underline-offset: calc(4px * var(--mi-s));
}

.mi-contact-detail__social-groups {
  display: flex;
  align-items: flex-start;
  gap: calc(100px * var(--mi-s));
}

.mi-contact-detail__social-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16px * var(--mi-s));
}

.mi-contact-detail__social-group--mobile {
  display: none;
}

.mi-contact-detail__social-links {
  position: relative;
  display: flex;
  gap: calc(16px * var(--mi-s));
  height: calc(78px * var(--mi-s));
  max-width: none;
}

.mi-contact-detail__social-link {
  display: block;
  flex: 0 0 calc(78px * var(--mi-s));
  width: calc(78px * var(--mi-s));
  height: calc(78px * var(--mi-s));
  border-radius: 50%;
}

.mi-contact-detail__social-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.mi-contact-intro__wreath {
  position: absolute;
  z-index: 1;
  top: calc(-16px * var(--mi-s));
  right: var(--mi-gutter);
  width: calc(630px * var(--mi-s));
  height: calc(556px * var(--mi-s));
  max-width: none;
  object-fit: contain;
  transform: translate3d(
    var(--mi-contact-wreath-x, 0px),
    calc(var(--mi-contact-wreath-y, 0px) + var(--mi-contact-wreath-scroll-y, 0px)),
    0
  );
  will-change: transform;
}

.mi-contact-location {
  height: calc(911px * var(--mi-s));
  background: var(--mi-color-surface-dark);
}

.mi-contact-location__copy {
  display: flex;
  flex-direction: column;
  gap: calc(16px * var(--mi-s));
  height: calc(197px * var(--mi-s));
	padding: calc(80px * var(--mi-s)) var(--mi-gutter) 0;
}

.mi-contact-location__copy span {
  font-size: var(--mi-fs-20);
  font-weight: 300;
  line-height: 1.5;
}

.mi-contact-location__copy p {
  max-width: calc(650px * var(--mi-s));
  font-size: var(--mi-fs-24);
  font-weight: 500;
  line-height: 1.3;
}

.mi-contact-location__map,
.mi-contact-location__map iframe {
  width: 100%;
  height: calc(594px * var(--mi-s));
}

.mi-contact-location__map {
  position: relative;
  overflow: hidden;
}

.mi-contact-location__map iframe {
  display: block;
  position: absolute;
  inset: 0;
  min-width: 100%;
  min-height: 100%;
  border: 0;
}

.mi-project-contact {
  height: calc(842px * var(--mi-s));
  padding: 0 var(--mi-gutter) calc(120px * var(--mi-s));
  background: var(--mi-color-surface-dark);
}

.mi-project-contact__card {
  position: relative;
  display: grid;
  grid-template-columns: calc(650px * var(--mi-s)) calc(700px * var(--mi-s));
  width: 100%;
  height: calc(722px * var(--mi-s));
  padding: calc(80px * var(--mi-s)) calc(80px * var(--mi-s)) calc(80px * var(--mi-s)) calc(290px * var(--mi-s));
  border-radius: var(--mi-radius-card);
  background:
    radial-gradient(circle at 16% 100%, rgba(67, 133, 187, 0.9), transparent 38%),
    #0d304c;
  /* Let the capital of the left column project above the rounded card. */
  overflow: visible;
}

.mi-project-contact__column {
  position: absolute;
  z-index: 1;
  left: calc(-15px * var(--mi-s));
  top: calc(-39px * var(--mi-s));
  width: calc(306px * var(--mi-s));
  height: calc(761px * var(--mi-s));
  max-width: none;
  object-fit: cover;
  object-position: right center;
  /* Card remains open only above its top edge; the column box ends exactly at
     the card bottom, so its lower portion stays clipped. */
  clip-path: inset(calc(-60px * var(--mi-s)) 0 0 0);
}

.mi-project-contact__column img {
  position: absolute;
  top: calc(-19px * var(--mi-s));
  left: calc(-164px * var(--mi-s));
  width: calc(633px * var(--mi-s));
  height: calc(1104px * var(--mi-s));
  max-width: none;
}

.mi-project-contact__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: calc(80px * var(--mi-s));
}

.mi-project-contact__copy h2 {
  font-size: var(--mi-fs-64);
  font-weight: 500;
  line-height: 1.1;
}

.mi-project-contact__copy > p {
  width: calc(500px * var(--mi-s));
  margin-top: calc(40px * var(--mi-s));
  font-size: var(--mi-fs-20);
  font-weight: 300;
  line-height: 1.5;
}

.mi-project-contact__channels {
  display: flex;
  flex-direction: column;
  gap: calc(24px * var(--mi-s));
  margin-top: auto;
}

.mi-project-contact__channels strong {
  font-size: var(--mi-fs-24);
  font-weight: 500;
  line-height: 1.3;
}

.mi-project-contact__channels > div {
  display: flex;
  gap: calc(20px * var(--mi-s));
}

.mi-project-contact__channels a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12px * var(--mi-s));
  width: calc(213px * var(--mi-s));
  min-height: calc(78px * var(--mi-s));
  border-radius: var(--mi-radius-pill);
  background: #4385bb;
  font-size: var(--mi-fs-20);
  font-weight: 500;
  line-height: 1.5;
  transition: transform var(--mi-duration) var(--mi-ease), background-color var(--mi-duration) var(--mi-ease);
}

.mi-project-contact__channels a:hover {
  transform: translateY(calc(-2px * var(--mi-s)));
  background: #5597ce;
}

.mi-project-contact__channels img {
  width: calc(24px * var(--mi-s));
  height: calc(24px * var(--mi-s));
}

.mi-project-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: calc(20px * var(--mi-s));
  min-width: 0;
}

.mi-project-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(20px * var(--mi-s));
}

.mi-project-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(8px * var(--mi-s));
  min-width: 0;
}

.mi-project-phone-input { display: flex; align-items: center; box-sizing: border-box; width: 100%; min-height: calc(78px * var(--mi-s)); padding: 0 calc(40px * var(--mi-s)); border-radius: calc(16px * var(--mi-s)); background: var(--mi-color-surface-soft); }
.mi-project-phone-input b { flex: none; color: var(--mi-color-surface-dark); font: 500 var(--mi-fs-20) / 1.5 var(--mi-font); }
.mi-project-form__field .mi-project-phone-input input { height: 100%; min-height: 0; padding: 0 0 0 .35em; border-radius: 0; background: transparent; }

.mi-project-form__field label,
.mi-project-form__engine label {
  font-size: var(--mi-fs-16);
  font-weight: 300;
  line-height: 1.5;
}

.mi-project-form__field input,
.mi-project-form__field textarea,
.mi-project-form__engine input,
.mi-project-form__engine select {
  width: 100%;
  min-height: calc(78px * var(--mi-s));
  padding: calc(24px * var(--mi-s)) calc(40px * var(--mi-s));
  border: 0;
  border-radius: calc(16px * var(--mi-s));
  outline: 0;
  background: var(--mi-color-surface-soft);
  color: var(--mi-color-surface-dark);
  font: 300 var(--mi-fs-20) / 1.5 var(--mi-font);
  resize: none;
}

.mi-project-form__field input::placeholder,
.mi-project-form__field textarea::placeholder {
  color: rgba(17, 35, 49, 0.38);
}

.mi-project-form__field input:focus,
.mi-project-form__field textarea:focus {
  box-shadow: 0 0 0 2px #4385bb;
}

.mi-project-form__field .mi-project-phone-input input:focus,
.mi-project-form__field .mi-project-phone-input input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.mi-project-form__consents {
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--mi-s));
}

.mi-project-form__consents label {
  display: flex;
  align-items: flex-start;
  gap: calc(12px * var(--mi-s));
  font-size: var(--mi-fs-16);
  font-weight: 300;
  line-height: 1.35;
}

.mi-project-form__consents input {
  appearance: none;
  flex: 0 0 calc(20px * var(--mi-s));
  width: calc(20px * var(--mi-s));
  height: calc(20px * var(--mi-s));
  margin: 0;
  border: 1px solid #fff;
}

.mi-project-form__consents input:checked {
  background: #4385bb;
  box-shadow: inset 0 0 0 calc(4px * var(--mi-s)) #0d304c;
}

.mi-project-form__consents a {
  text-decoration: underline;
  text-underline-offset: calc(2px * var(--mi-s));
}

.mi-project-form__engine {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: calc(88px * var(--mi-s));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10px * var(--mi-s));
  width: 100%;
  padding: calc(20px * var(--mi-s));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(16px * var(--mi-s));
  background: #0d304c;
  box-shadow: 0 calc(18px * var(--mi-s)) calc(60px * var(--mi-s)) rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(12px * var(--mi-s)));
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.mi-project-form__engine.is-challenge-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.mi-project-form__recipient {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.mi-project-form__submit {
  width: 100%;
  min-height: calc(78px * var(--mi-s));
  margin-top: auto;
}

@media (max-width: 991px) {
  .is-contact-page .mi-breadcrumbs { height: 48px; gap: 12px; padding: 10px 16px 20px; font-size: 12px; }

  .mi-contact-page {
    max-width: none;
  }

  .mi-contact-intro {
    height: auto;
  }

  .mi-contact-intro__body {
    height: auto;
    min-height: 292px;
    padding: 0 16px;
  }

  .mi-contact-intro__title {
    font-size: 32px;
    line-height: 1.1;
  }

  .mi-contact-intro__details {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "phone" "mail" "social";
    gap: 20px;
    margin-top: 30px;
  }

  .mi-contact-detail {
    gap: 10px;
  }

  .mi-contact-detail__label {
    font-size: 14px;
  }

  .mi-contact-detail__value {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mi-contact-detail--social {
    gap: 10px;
  }

  .mi-contact-detail__social-groups {
    display: none;
  }

  .mi-contact-detail__social-group--mobile {
    display: flex;
    gap: 10px;
  }

  .mi-contact-detail__social-group--mobile .mi-contact-detail__label {
    font-size: 14px;
  }

  .mi-contact-detail__social-links--mobile {
    display: block;
    width: 176px;
    height: 48px;
  }

  .mi-contact-detail__social-links--mobile > img {
    display: block;
    width: 176px;
    height: 48px;
  }

  .mi-contact-detail__social-links--mobile .mi-contact-detail__social-link {
    position: absolute;
    top: 0;
    width: 48px;
    height: 48px;
  }

  .mi-contact-detail__social-links--mobile .mi-contact-detail__social-link:nth-of-type(1) { left: 0; }
  .mi-contact-detail__social-links--mobile .mi-contact-detail__social-link:nth-of-type(2) { left: 64px; }
  .mi-contact-detail__social-links--mobile .mi-contact-detail__social-link:nth-of-type(3) { left: 128px; }

  .mi-contact-intro__wreath {
    /* Figma 101:913: 258×227 source frame at x=234, y=163. */
    top: 65px;
    right: auto;
    left: 234px;
    width: 258px;
    height: 227px;
    /* The Figma mobile contact frame shows the wreath at full contrast. */
    opacity: 1;
    object-fit: cover;
    object-position: bottom;
  }

  .mi-contact-location {
    height: auto;
  }

  .mi-contact-location__copy {
    height: auto;
    gap: 10px;
    padding: 32px 16px;
  }

  .mi-contact-location__copy span { font-size: 14px; }
  .mi-contact-location__copy p { max-width: none; font-size: 18px; line-height: 1.3; }

  .mi-contact-location__map,
  .mi-contact-location__map iframe {
    height: 360px;
  }

  .mi-project-contact {
    height: auto;
    padding: 0 16px 24px;
  }

  .mi-project-contact__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: 836px;
    margin-top: 60px;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
  }

  .mi-project-contact__column {
    display: none;
    left: -80px;
    bottom: -40px;
    width: 330px;
    height: auto;
    opacity: 0.22;
  }

  .mi-project-contact__column img {
    top: -19px;
    left: -164px;
    width: 633px;
    height: 1104px;
  }

  .mi-project-contact__copy {
    padding: 0;
  }

  .mi-project-contact__copy h2 {
    font-size: 32px;
    line-height: 1.1;
  }

  .mi-project-contact__copy > p {
    width: auto;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .mi-project-contact__channels {
    margin-top: 20px;
  }

  .mi-project-contact__channels strong { font-size: 18px; line-height: 1.3; }
  .mi-project-contact__channels > div { flex-direction: row; gap: 20px; }
  .mi-project-contact__channels a { width: 54px; min-height: 54px; padding: 0; gap: 0; font-size: 0; }
  .mi-project-contact__channels img { width: 24px; height: 24px; }

  .mi-project-form {
    gap: 12px;
  }

  .mi-project-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mi-project-form__field { gap: 6px; }
  .mi-project-form__field label { font-size: 12px; line-height: 1.5; }

  .mi-project-phone-input { min-height: 49px; padding: 0 24px; border-radius: 12px; }
  .mi-project-phone-input b { font-size: 16px; }

  .mi-project-form__field input,
  .mi-project-form__field textarea,
  .mi-project-form__engine input,
  .mi-project-form__engine select {
    min-height: 49px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
  }

  .mi-project-form__field textarea { height: 49px; overflow: hidden; }

  .mi-project-form__consents label {
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  .mi-project-form__consents input {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  .mi-project-form__submit {
    min-height: 53px;
    margin-top: 0;
    font-size: 14px;
  }

  .mi-project-form__engine {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
    padding: 18px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-project-contact__channels a {
    transition: none;
  }
}
