@font-face {
  font-family: "Vercetti";
  src: url("media/vercetti.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #000;
}

.scroll-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

.scroll-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.end-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  color: #f4f4f2;
  font-family: "Vercetti", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.end-title.is-visible {
  opacity: 1;
  transition-duration: 1200ms;
}

.scroll-track {
  position: relative;
  z-index: 1;
  height: 900svh;
  min-height: 900vh;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .end-title,
  .end-title.is-visible {
    transition-duration: 160ms;
  }
}
