html,
body {
  overflow-x: clip;
}

html {
  scrollbar-color: rgba(255, 255, 255, 0.28) #050708;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: #050708;
}

html::-webkit-scrollbar-thumb {
  border: 2px solid #050708;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: max(100svh, 720px);
  min-height: max(100dvh, 720px);
  overflow: hidden;
  padding-top: 0;
  color: var(--white);
  background: #050708;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(850px, 64vw);
  min-height: max(100svh, 720px);
  min-height: max(100dvh, 720px);
  justify-content: center;
  padding: calc(var(--header-height) + clamp(64px, 9vh, 108px))
    var(--page-pad) clamp(54px, 8vh, 92px);
  border-right: 0;
}

.hero-copy .eyebrow {
  margin-bottom: clamp(24px, 3.5vh, 40px);
  color: rgba(255, 255, 255, 0.68);
}

.hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(58px, 5.2vw, 86px);
  font-weight: 560;
  text-shadow: 0 3px 34px rgba(0, 0, 0, 0.34);
}

.hero-definition {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.46);
}

.hero-room {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 0;
  margin: 0;
  background: #050708;
}

.hero-room > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(0.68) contrast(1.08) brightness(0.78);
  transform: scale(1.012);
}

.hero-room-shade {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 7, 0.9) 0%,
      rgba(4, 6, 7, 0.7) 30%,
      rgba(4, 6, 7, 0.3) 52%,
      rgba(4, 6, 7, 0.06) 78%
    ),
    linear-gradient(
      0deg,
      rgba(4, 6, 7, 0.62) 0%,
      rgba(4, 6, 7, 0.08) 54%,
      rgba(4, 6, 7, 0.48) 100%
    );
}

.hero .button-dark {
  border-color: var(--optic-white);
  color: var(--carbon);
  background: var(--optic-white);
}

.hero .button-dark:hover {
  color: var(--white);
  background: rgba(5, 7, 8, 0.32);
}

.hero .text-link {
  color: var(--white);
}

.site-header:not(.is-scrolled) {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 7, 0.66) 0%,
    rgba(4, 6, 7, 0) 100%
  );
}

.site-header:not(.is-scrolled) .wordmark {
  color: var(--white);
}

.site-header:not(.is-scrolled) .nav-contact {
  color: var(--carbon);
  background: var(--optic-white);
}

@media (min-width: 821px) {
  .hero {
    height: 100dvh;
  }
}

@media (max-width: 820px) {
  .hero,
  .hero-copy {
    min-height: max(100svh, 720px);
    min-height: max(100dvh, 720px);
  }

  .hero-copy {
    width: 100%;
    justify-content: flex-end;
    padding: calc(var(--header-height) + 72px) var(--page-pad)
      clamp(44px, 7vh, 70px);
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(48px, 10.4vw, 72px);
  }

  .hero-room {
    height: auto;
    max-height: none;
  }

  .hero-room > img {
    object-position: 58% center;
  }

  .hero-room-shade {
    background:
      linear-gradient(
        90deg,
        rgba(4, 6, 7, 0.76) 0%,
        rgba(4, 6, 7, 0.36) 74%,
        rgba(4, 6, 7, 0.18) 100%
      ),
      linear-gradient(
        0deg,
        rgba(4, 6, 7, 0.88) 0%,
        rgba(4, 6, 7, 0.34) 60%,
        rgba(4, 6, 7, 0.58) 100%
      );
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-copy {
    min-height: max(100svh, 740px);
    min-height: max(100dvh, 740px);
  }

  .hero-copy {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-definition {
    color: rgba(255, 255, 255, 0.82);
  }

  .hero-room > img {
    object-position: 60% center;
  }
}
