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

:root {
  --index: calc(1vh + 1vw);
}
@font-face {
  font-family: kamerik-k;
  src: url(../fonts/kamerik205-heavy.woff2);
}

body {
  font-family: kamerik-k;
  color: #fff;
  overflow-x: hidden;
}

.scene {
  height: 500vh;
}

.layer {
  height: 100vh;
  width: 100vw;
  background-position: center;
  background-size: cover;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-timeline: scroll();
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-range: 0 300vh;
}

.layer:nth-child(1) {
  animation-name: animation-1;
}

@keyframes animation-1 {
  to {
    scale: 1.25;
  }
}

.layer:nth-child(2) {
  animation-name: animation-2;
}

@keyframes animation-2 {
  to {
    scale: 1.275;
  }
}

.layer:nth-child(3) {
  animation-name: animation-3;
}

@keyframes animation-3 {
  to {
    scale: 1.5;
  }
}

.layer:nth-child(4) {
  animation-name: animation-4;
}

@keyframes animation-4 {
  to {
    scale: 2;
  }
}

.layer:nth-child(5) {
  opacity: 0;
  animation-range: 250vh 300vh;
  animation-name: animation-end;
}

@keyframes animation-end {
  to {
    opacity: 1;
  }
}

.layer__content {
  padding: 5vh 5vw;
  backdrop-filter: blur(25px) brightness(0.98);
  animation-timeline: scroll();
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-range: 0 50vh;
  animation-name: animation-head;
}

@keyframes animation-head {
  to {
    opacity: 0;
    filter: blur(25px);
  }
}

.layer__content h1 {
  text-transform: uppercase;
  font-size: calc(var(--index) * 4.25);
  text-align: center;
  line-height: 0.9em;
  letter-spacing: -0.15vw;
}

.layer__end h3 {
  font-size: 4rem;
  position: relative;
}

.layer__end::before {
  content: "";
  background-color: #01122b;
  inset: 0;
  position: absolute;
  animation-timeline: scroll();
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-range: 300vh 450vh;
  animation-name: animation-bg;
}

@keyframes animation-bg {
  to {
    opacity: 1;
  }
}
