:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #05080b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #05080b;
  color: #fff;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  background: #00769f;
  mix-blend-mode: color;
  opacity: 0.78;
}

.hero::after {
  background:
    linear-gradient(105deg, rgba(1, 16, 27, 0.78) 0%, rgba(0, 58, 88, 0.38) 52%, rgba(0, 114, 145, 0.18) 100%),
    linear-gradient(0deg, rgba(1, 12, 20, 0.48) 0%, rgba(1, 12, 20, 0) 48%);
}

.hero__video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__content {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 6vh, 4rem);
  display: grid;
  gap: 0.3rem;
}

h1,
a {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

h1 {
  text-wrap: balance;
}

a {
  width: fit-content;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

@media (max-width: 700px) {
  .hero__content {
    right: 1.25rem;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  h1,
  a {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero {
    background: #05080b url("/assets/zms-poster.jpg") center / cover no-repeat;
  }
}
