/* BLOCK: MASTHEAD */
.masthead.section {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 720px;
  min-height: clamp(400px, 60vw, 720px);
  z-index: 1;
  overflow: hidden;
}

.masthead.section .masthead-slide {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
  padding: 8.5rem 0 3.5rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  z-index: 1;
}

.masthead.section .masthead-slide.active {
  opacity: 1;
  z-index: 2;
}

.masthead.section .masthead-canvas {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 100%;
          flex: 1 1 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
  width: 100%;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.masthead.section .masthead-content {
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
  position: relative;
  width: 100%;
  margin-top: calc(min(6.25vw, 8.5rem));
}

.masthead.section .masthead-bg {
  z-index: 1;
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.masthead.section .masthead-subtitle {
  color: var(--color-brand);
}

.masthead.section .masthead-copy {
  margin-bottom: var(--gap-md);
}

@media only screen and (max-width: 1024px) {
  .masthead.section .masthead-copy p {
    font-size: 1.125rem;
    -webkit-hyphens: auto;
        -ms-hyphens: auto;
            hyphens: auto;
  }
}

@media only screen and (max-width: 768px) {
  .masthead.section .masthead-action {
    margin-top: 2rem;
  }
}

.masthead.section.masthead--full {
  min-height: 890px;
  min-height: clamp(400px, 60vw, 890px);
}

.masthead.section.masthead--medium {
  min-height: 830px;
  min-height: clamp(400px, 60vw, 830px);
}

.masthead.section .masthead-slide.masthead--text-white .masthead-content {
  color: #ffffff;
}

.masthead.section .masthead-slide.masthead--line-length .masthead-content {
  width: 65%;
  max-width: 600px;
}

.masthead.section .masthead-slide.masthead--line-length .masthead-title {
  max-width: 600px;
}

.masthead-controls {
  z-index: 5;
  -ms-flex-item-align: end;
      align-self: flex-end;
  margin-bottom: var(--gap);
}

.masthead-controls .masthead-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row nowrap;
          flex-flow: row nowrap;
  margin: 0;
}

.masthead-controls .masthead-nav .masthead-navlink {
  display: block;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 2px solid var(--color-text);
  text-indent: 9999px;
  -webkit-transition: .2s;
  transition: .2s;
  margin: 0 5px;
}

.masthead-controls .masthead-nav .masthead-navlink.active {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.masthead-controls .masthead-nav .masthead-navlink:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  cursor: pointer;
}

@media only screen and (min-width: 768px) {
  .masthead.section:not(.masthead--still) .masthead-title, .masthead.section:not(.masthead--still)
  .masthead-subtitle, .masthead.section:not(.masthead--still)
  .masthead-copy, .masthead.section:not(.masthead--still)
  .masthead-action {
    opacity: 0;
  }
  .masthead.section:not(.masthead--still) .active .masthead-title, .masthead.section:not(.masthead--still) .active
  .masthead-subtitle, .masthead.section:not(.masthead--still) .active
  .masthead-copy, .masthead.section:not(.masthead--still) .active
  .masthead-action {
    -webkit-animation-duration: 300ms;
            animation-duration: 300ms;
    -webkit-animation-delay: 500ms;
            animation-delay: 500ms;
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
  }
  .masthead.section:not(.masthead--still) .active .masthead-title,
  .masthead.section:not(.masthead--still) .active .masthead-subtitle,
  .masthead.section:not(.masthead--still) .active .masthead-copy {
    -webkit-animation-name: masthead-in-reverse;
            animation-name: masthead-in-reverse;
  }
  .masthead.section:not(.masthead--still) .active .masthead-action {
    -webkit-animation-name: masthead-in;
            animation-name: masthead-in;
  }
  .masthead.section:not(.masthead--still) .active .masthead-title {
    -webkit-animation-delay: 700ms;
            animation-delay: 700ms;
  }
  .masthead.section:not(.masthead--still) .active .masthead-copy {
    -webkit-animation-delay: 900ms;
            animation-delay: 900ms;
  }
  .masthead.section:not(.masthead--still) .active .masthead-action {
    -webkit-animation-delay: 1200ms;
            animation-delay: 1200ms;
  }
  .masthead.section:not(.masthead--still) .masthead-bg {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
    -webkit-transition: 1250ms;
    transition: 1250ms;
  }
  .masthead.section:not(.masthead--still) .active .masthead-bg {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  .masthead.section:not(.masthead--still) .masthead-slide {
    -webkit-transition: 750ms;
    transition: 750ms;
  }
}

@-webkit-keyframes masthead-in {
  from {
    -webkit-transform: translateY(0.75rem);
            transform: translateY(0.75rem);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

@keyframes masthead-in {
  from {
    -webkit-transform: translateY(0.75rem);
            transform: translateY(0.75rem);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes masthead-in-reverse {
  from {
    -webkit-transform: translateY(-0.75rem);
            transform: translateY(-0.75rem);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

@keyframes masthead-in-reverse {
  from {
    -webkit-transform: translateY(-0.75rem);
            transform: translateY(-0.75rem);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

@media only screen and (max-width: 1700px) {
  .masthead.section .masthead-canvas {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .masthead.section .masthead-content {
    margin-top: 2.5rem;
  }
  .masthead.section .masthead-controls {
    right: var(--gap-x);
    position: absolute;
  }
}

@media only screen and (max-width: 1500px) {
  .masthead.section .masthead-content {
    margin-top: 1.5rem;
  }
}

@media only screen and (max-width: 1000px) {
  .masthead.section .masthead-slide {
    padding: 5.5rem 0 3.5rem;
  }
  .masthead.section .masthead-content {
    max-width: 70% !important;
  }
}

@media only screen and (max-width: 768px) {
  .masthead.section {
    min-height: auto !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-flow: colum-reverse nowrap;
            flex-flow: colum-reverse nowrap;
  }
  .masthead.section .masthead-slide {
    padding: 0;
  }
  .masthead.section .masthead-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding-top: calc( 1.75 * var(--gap-y));
    padding-bottom: calc( 1.75 * var(--gap-y));
  }
  .masthead.section .masthead-content .masthead-copy {
    margin: 0;
  }
  .masthead.section .masthead-bg {
    position: relative;
    height: 50vw;
    background-position: right center !important;
    background-size: 180% !important;
    border-top: 1px solid var(--color-alternate);
    border-bottom: 1px solid var(--color-alternate);
    -webkit-transition: 0;
    transition: 0;
  }
  .masthead.section .masthead-slide {
    position: relative;
    display: none !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-flow: column-reverse nowrap;
            flex-flow: column-reverse nowrap;
  }
  .masthead.section .masthead-slide.active {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  .masthead.section .masthead-controls {
    right: auto;
    position: relative;
  }
}
