/* Contact page specific styles */

.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 48px 6vw;
}

.contact-page-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.contact-page-stage {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 0;
  place-items: center;
  container-type: inline-size;
}

.contact-page-three {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  font-size: min(38cqw, 26vw, calc(100svh - 144px), 320px);
  color: #000;
  transition: opacity 240ms ease, transform 320ms ease, visibility 0s 320ms;
}

.contact-page-you {
  position: relative;
  flex: none;
  /* Add the same 12% ink width to the layout box, preserving side spacing. */
  width: 0.8736em;
  height: 1em;
  font-family: "Arial Black", "Arial", sans-serif;
  font-weight: 900;
}

.contact-page-you-glyph {
  position: absolute;
  left: var(--you-left, 0.0323em);
  top: var(--you-top, -0.1839em);
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0;
  transform: scale(var(--you-scale-x, 0.9770), var(--you-scale-y, 1.2573));
  transform-origin: 0 0;
}

.contact-page-plus {
  position: relative;
  flex: none;
  width: 0.32em;
  height: 0.32em;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 300ms ease-in-out;
}

.contact-page-plus::before,
.contact-page-plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 0.065em;
  background: currentColor;
}

.contact-page-plus::after {
  transform: rotate(90deg);
}

.contact-page-three-image {
  display: block;
  flex: none;
  width: 1em;
  height: auto;
  /* Balance the whitespace already present inside the unchanged logo image. */
  margin-inline: -0.1em;
}

@media (hover: hover) and (pointer: fine) {
  .contact-page-three:hover .contact-page-plus {
    transform: rotate(45deg);
  }
}

.contact-page.is-revealed .contact-page-plus {
  transform: rotate(45deg);
}

.contact-page-three:focus-visible,
.contact-page-email:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 10px;
}

.contact-page-email {
  grid-area: 1 / 1;
  min-width: 0;
  max-width: 100%;
  padding: 12px 0;
  font-family: var(--font-value-en);
  font-size: clamp(32px, 4.8vw, 76px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 360ms ease 120ms, transform 360ms ease 120ms;
}

.contact-page-email:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.contact-page.is-revealed .contact-page-three {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  pointer-events: none;
}

.contact-page.is-revealed .contact-page-email,
.contact-page-email--fallback {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 768px) {
  body.is-contact-page .site-main {
    padding-top: 0;
  }

  .contact-page {
    min-height: calc(100svh - var(--mobile-header-block-size));
    padding: 32px 6vw;
  }

  .contact-page-three {
    font-size: min(38cqw, 34vw, calc(100svh - var(--mobile-header-block-size) - 96px), 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page-three,
  .contact-page .contact-page-three .contact-page-plus,
  .contact-page-email {
    transition: none;
    transform: none;
  }
}
