.site-header,
.motion-ready .site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  transform: none;
  background: rgb(15 18 16 / 64%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.motion-ready .site-header.is-scrolled {
  background: rgb(15 18 16 / 87%);
}
.site-header::after {
  background: rgb(255 255 255 / 24%);
}

.hero-stage {
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: max(39rem, 100vh);
  min-height: max(39rem, 100svh);
  padding-top: 116px;
  color: #fff;
  background: #212823;
}
.motion-ready .hero-stage {
  animation: none;
}
.hero-stage > .hero-image {
  position: absolute;
  inset: 0;
}
.hero-shade {
  inset: 0;
  background: rgb(0 0 0 / 20%);
}
.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgb(10 15 11 / 68%), transparent 25%),
    linear-gradient(90deg, rgb(10 15 11 / 72%), rgb(10 15 11 / 36%) 40%, transparent 73%);
}

.hero-intro,
.hero-rail {
  width: 100%;
  position: relative;
  z-index: 4;
}
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: clamp(1.25rem, 2.8vh, 2.5rem);
  padding-block: clamp(3rem, 8vh, 7.5rem);
}
.hero-intro > div {
  max-width: fit-content;
}
.hero .hero-intro .eyebrow {
  font-size: .75rem;
  color: #faf9f4;
  letter-spacing: .2em;
  margin-bottom: 1.15rem;
}
.hero-aside {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
}
.hero-aside p {
  max-width: 39ch;
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}
.hero-aside .text-link {
  margin: 0;
  color: white;
  font-size: .875rem;
}
.hero-rail {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.5rem);
  padding-block: 1.4rem 1.7rem;
}
.hero-rail::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: rgb(255 255 255 / 46%);
}
.hero-image-footer,
.hero-controls {
  position: static;
  flex: 1;
  height: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
}
.hero-image-footer {
  align-items: center;
}
.hero-image-footer .eyebrow {
  font-size: .72rem;
}
.hero-image-footer p {
  font-size: .78rem;
  line-height: 1.5;
}
.view-project {
  flex-shrink: 0;
  font-size: .82rem;
}
.hero-controls .slideshow-toggle,
.hero-controls .counter {
  color: #fff;
  font-size: .75rem;
}
.hero-controls .slide-progress {
  background: rgb(255 255 255 / 40%);
}
.hero-controls .slide-progress span {
  background: #fff;
}

@media (min-width: 1681px) {
  .site-header {
    padding-inline: calc((100% - 1680px) / 2 + var(--gutter));
  }
}
@media (max-width: 900px) {
  .hero-image-footer .view-project > span:last-child {
    display: none;
  }
}
@media (max-width: 700px) {
  .hero-stage {
    padding-top: 76px;
    padding-bottom: calc(7.4rem + env(safe-area-inset-bottom, 0px));
  }
  .hero-intro {
    padding-block: 2.8rem;
  }
  .hero .hero-intro .eyebrow {
    font-size: .68rem;
  }
  .hero-shade::after {
    background:
      linear-gradient(0deg, rgb(10 15 11 / 70%), transparent 40%),
      linear-gradient(90deg, rgb(10 15 11 / 68%), rgb(10 15 11 / 30%) 65%, transparent);
  }
  .hero-rail {
    display: grid;
    gap: .35rem;
    padding-block: .7rem .35rem;
  }
  .hero-image-footer .eyebrow {
    font-size: .65rem;
  }
  .hero-image-footer p {
    font-size: .72rem;
  }
  .hero-controls .arrow-button,
  .hero-rail .view-project {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 380px) {
  .hero #hero-heading {
    font-size: clamp(1.65rem, 7.7vw, 1.95rem);
  }
}
