/* Contact page — text column beside a full-height video. */

.contact_section {
  padding-top: 9rem;
  padding-bottom: 8rem;
  overflow-x: clip;
}

.contact_grid {
  grid-column-gap: 3rem;
  grid-row-gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  display: grid;
}

.contact_title {
  color: var(--primary-color);
  text-transform: uppercase;
  font-family: "Century Gothic", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

/* SplitType line mask — the words rise out of this, as the hero does. */
.contact_title .line {
  padding-bottom: .4rem;
  overflow: hidden;
}

.contact_details {
  grid-column-gap: 2.5rem;
  grid-row-gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
  display: grid;
}

.contact_subtitle {
  color: var(--primary-color);
  font-family: "Century Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 34rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.contact_detail-label {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .5rem;
  font-family: "Century Gothic", sans-serif;
  font-size: .95rem;
  font-weight: 700;
}

.contact_detail.is-wide {
  grid-column: 1 / -1;
  max-width: 34rem;
}

.contact_detail-value {
  color: var(--primary-color);
  font-family: "Century Gothic", sans-serif;
  font-size: .85rem;
  line-height: 1.5;
  text-decoration: none;
  display: block;
}

a.contact_detail-value {
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
}

/* underline that draws in on hover */
a.contact_detail-value:after {
  content: "";
  background-color: var(--primary-color);
  width: 100%;
  height: 1px;
  transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.25, .46, .45, .94);
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
}

a.contact_detail-value:hover:after {
  transform: scaleX(1);
}

.contact_media {
  /* background-color: #f2f2f2; */
  /* border-radius: .2rem; */
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  align-self: start;
  justify-self: end;
  position: relative;
  overflow: hidden;
  /* box-shadow: 0 1.4rem 2.8rem rgba(0, 0, 0, .18), 0 .35rem .9rem rgba(0, 0, 0, .09); */
}

.contact_video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* Compact footer: the homepage footer reveals itself over 200vh of scroll,
   which this page does not need. */
.footer.is-simple {
  min-height: auto;
  margin-top: 0;
}

.footer.is-simple .footer_wrapper {
  min-height: auto;
  position: static;
}

@media screen and (max-width: 991px) {
  .contact_title {
    font-size: 3.2rem;
  }

  .contact_media {
    max-width: 28rem;
  }
}

@media screen and (max-width: 767px) {
  .contact_section {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .contact_grid {
    grid-template-columns: 1fr;
  }

  /* video first on mobile, text after */
  .contact_media {
    order: -1;
    max-width: none;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .contact_details {
    margin-top: 2.5rem;
  }
}

@media screen and (max-width: 479px) {
  .contact_title {
    font-size: 2.6rem;
  }

  .contact_details {
    grid-row-gap: 2rem;
    grid-template-columns: 1fr;
  }
}
