:root {
  --hero-height: 56.6vw;
  --hero-min-height: 360px;
  --hero-max-height: 100vh;
}

#hero {
  position: relative;
  height: var(--hero-height);
  min-height: var(--hero-min-height);
  max-height: var(--hero-max-height);
  color: #000;
  background: #fff;
  overflow: hidden;
  clip-path: inset(0 0 1px 0);
}

#hero .heading {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  line-height: 1.2em;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
  font-size: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media screen and (min-width: 580px) {
  #hero .heading {
    font-size: 1.45rem;
  }
}

@media screen and (min-width: 1200px) {
  #hero .heading {
    font-size: 2rem;
  }
}

#hero .heading h1 {
  line-height: 1.2em;
  font-size: 2.5em;
  margin: 0;
  font-weight: 900;
}

#hero .heading p {
  margin: 0;
  font-size: 1em;
  line-height: 1.2em;
}

#hero .bg {
  display: block;
  object-fit: cover;
  object-position: center center;
  position: fixed;
  width: 100%;
  height: var(--hero-height);
  min-height: var(--hero-min-height);
  max-height: var(--hero-max-height);
  overflow: hidden;
  background: #fff;
}

#hero .bg video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

@media screen and (min-width: 580px) {
  #hero .bg video {
    object-fit: cover;
    object-position: center center;
  }
}


#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hero-height);
  min-height: var(--hero-min-height);
  max-height: var(--hero-max-height);
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: screen;
  z-index: 1;
}

#hero .separator {
  margin: 1em auto;
}

#hero .arrow {
  display: none;
  height: 40px;
  width: 100%;
  animation: 1s ease-in-out infinite alternate pulse;
}

@media screen and (min-width: 580px) {
  #hero .arrow {
    display: block;
  }
}

@media screen and (min-width: 1200px) {
  #hero .arrow {
    height: 60px;
  }
}

@keyframes pulse {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

@media (prefers-color-scheme: dark) {
  #hero {
    background: #000;
    color: #fff;
  }

  #hero .bg {
    background: #000;
  }

  #hero .bg video {
    filter: invert(1);
  }

  #hero .overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0) 100%);
    mix-blend-mode: multiply;
  }

  #hero .arrow {
    filter: invert(1);
  }
}
