@import url(https://fonts.googleapis.com/css?family=Josefin+Sans:300,400);

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

html,
body {
  min-height: 100%;
  filter: blur(60px);
  opacity: 0;
  transition: filter 800ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 800ms ease;
  will-change: filter, opacity;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior-y: none;
}

body {
  background-color: #000;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: "Josefin Sans", sans-serif;
}

section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4rem);
}

section::after {
  position: absolute;
  inset: 20% 0 0 0;
  content: "";
  background: linear-gradient(
    to bottom,
    hsla(0, 0%, 0%, 0) 0,
    hsla(0, 0%, 0%, 0.3) 40%,
    hsla(0, 0%, 0%, 0.6) 60%,
    hsla(0, 0%, 0%, 0.9) 100%
  );
  background: -webkit-linear-gradient(
    top,
    hsla(0, 0%, 0%, 0) 0,
    hsla(0, 0%, 0%, 0.3) 40%,
    hsla(0, 0%, 0%, 0.6) 60%,
    hsla(0, 0%, 0%, 0.9) 100%
  );
  pointer-events: none;
}

#jk::after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    hsla(0, 0%, 0%, 0.8) 0,
    hsla(0, 0%, 0%, 0.6) 15%,
    hsla(0, 0%, 0%, 0.25) 40%,

    hsla(0, 0%, 0%, 0.25) 60%,
    hsla(0, 0%, 0%, 0.5) 80%,
    hsla(0, 0%, 0%, 0.9) 100%
  );
  background: -webkit-linear-gradient(
    top,
    hsla(0, 0%, 0%, 0.8) 0,
    hsla(0, 0%, 0%, 0.6) 15%,
    hsla(0, 0%, 0%, 0.3) 25%,
    hsla(0, 0%, 0%, 0.25) 40%,

    hsla(0, 0%, 0%, 0.25) 60%,
    hsla(0, 0%, 0%, 0.3) 75%,
    hsla(0, 0%, 0%, 0.5) 80%,
    hsla(0, 0%, 0%, 0.9) 100%
  );
}

section h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 4rem);
  text-align: center;
  white-space: nowrap;
}

#henlo {
  background: url(https://picsum.photos/1366/768?random=1) center center / cover
    no-repeat;
}

#jk {
  background: url(https://picsum.photos/1366/768?random=2) center center / cover
    no-repeat;
}

#thanks {
  background-color: #fff;
}

#thanks::after {
  content: none;
}

#thanks div {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  text-align: center;
}

#thanks h2 {
  white-space: nowrap;
  margin-bottom: 2rem;
  color: #333;
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

#thanks p {
  color: #333;
  font-weight: 400;
  font-size: 1.1rem;
  animation: pulse 750ms infinite alternate ease-in-out;
}

#thanks .back-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.7;
  animation: pulse 1500ms infinite alternate ease;
}

#thanks .back-link:hover {
  color: #111;
  opacity: 1;
}

#thanks .back-link > span {
  font-size: 1.1rem;
  display: inline-block;
  animation: scroll-up 2s infinite ease;
  animation-fill-mode: both;
  transform-origin: center center;
}


.scroll-link {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.scroll-link--down {
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(1.25rem, 4vh, 2.5rem));
}

.scroll-link--up {
  top: clamp(2rem, 7vh, 4rem);
}

.scroll-link:hover {
  opacity: 0.6;
}

.scroll-icon {
  width: clamp(1.2rem, 2.2vh, 1.6rem);
  height: clamp(1.2rem, 2.2vh, 1.6rem);
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  box-sizing: border-box;
}

.scroll-icon--down {
  transform: rotate(-45deg);
  animation: scroll-down 1.75s infinite ease;
}

.scroll-icon--up {
  transform: rotate(135deg);
  animation: scroll-up 1.75s infinite ease;
}

.scroll-label {
  line-height: 1;
}

a.scroll-link--down {
  flex-direction: column-reverse;
}

a:has(span.scroll-link--up) {
  flex-direction: column;
}

h1, h2, p, a, span {
  text-shadow: 0px 0px 3px #ffffefcc;
}

@keyframes pulse {
  0% {transform: scale(1.0);}
  50% {transform: scale(1.02);}
  100% {transform: scale(1.0);}
}


@keyframes scroll-up {
  0% {
    transform: translateY(6px) rotatex(180deg) rotatey(180deg) rotatez(-45deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(-6px) rotatex(180deg) rotatey(-180deg) rotatez(-45deg);
    opacity: 0;
  }
}

@keyframes scroll-down {
  0% {
    transform: translateY(-6px) rotatex(180deg) rotatey(-180deg) rotatez(135deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(6px) rotatex(180deg) rotatey(180deg) rotatez(135deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  section {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.5rem);
  }

  .scroll-link--down {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  }
}

@media only screen and (orientation: portrait) and (max-width: 1200px) {
    html {
        font-size: clamp(1.75rem, 3.75vw, 4rem)!important;
    }
}
