@font-face {
  font-family: "Galano Grotesque";
  src: url("assets/fonts/GalanoGrotesque-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Galano Grotesque";
  src: url("assets/fonts/GalanoGrotesque-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --white: #fff;
  --background: #101311;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--background);
}

body {
  overflow: hidden;
  color: var(--white);
  font-family: "Galano Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--background);
}

.hero__poster,
.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__poster {
  z-index: -3;
  background: var(--background) url("assets/images/slctd-poster.jpg") center / cover no-repeat;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 900ms ease;
}

.hero__video {
  z-index: -2;
  border: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero.is-video-ready .hero__video {
  opacity: 1;
}

.hero.is-video-ready .hero__poster {
  opacity: 0;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .18), rgba(5, 8, 7, .30)),
    radial-gradient(circle at center, rgba(5, 8, 7, .02) 0%, rgba(5, 8, 7, .20) 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(88vw, 760px);
  padding: 32px 20px max(32px, env(safe-area-inset-bottom));
  text-align: center;
  animation: reveal 1.1s cubic-bezier(.22, .61, .36, 1) both;
}

.hero__logo {
  display: block;
  width: clamp(210px, 28vw, 360px);
  height: auto;
  margin-bottom: clamp(30px, 4.5vh, 56px);
}

h1 {
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .08em;
}

p {
  margin-top: clamp(18px, 2.3vh, 28px);
  font-size: clamp(.72rem, .9vw, .88rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .84;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero__video {
    object-position: center;
  }

  .hero__content {
    transform: translateY(-1vh);
  }

  .hero__logo {
    width: min(72vw, 280px);
  }

  h1 {
    letter-spacing: .055em;
  }

  p {
    letter-spacing: .22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content {
    animation: none;
  }

  .hero__poster,
  .hero__video {
    transition: none;
  }
}
