@font-face {
  font-family: Jakarta;
  src: url("../assets/fonts/plus-jakarta.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: GeistFace;
  src: url("../assets/fonts/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  color: #102f46;
  font-family: GeistFace, ui-sans-serif, system-ui, sans-serif;
}

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(155deg, #9fd7f2, #d8effb 48%, #d7e6f4 76%, #e5d4b7);
}

.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 12%, rgba(255, 222, 163, .3), transparent 34%),
    radial-gradient(ellipse at 76% 4%, rgba(255, 255, 255, .72), transparent 38%),
    radial-gradient(ellipse at 12% 82%, rgba(199, 215, 250, .38), transparent 42%);
}

.layer {
  position: absolute;
  inset: -10%;
  overflow: hidden;
}

.track {
  display: flex;
  width: 200%;
  height: 100%;
}

.field {
  position: relative;
  flex: 0 0 50%;
  height: 100%;
}

.field img {
  position: absolute;
  height: auto;
  object-fit: contain;
}

.far { opacity: .72; }
.mid { opacity: .8; }
.near { opacity: .62; }

.far .field img { opacity: .52; filter: blur(1.4px); }
.mid .field img { opacity: .7; }
.near .field img { opacity: .48; }

.far .track { animation: drift 62s linear infinite; }
.mid .track { animation: drift 44s linear infinite; }
.near .track { animation: drift 32s linear infinite; }

@keyframes drift {
  to { transform: translate3d(-50%, 0, 0); }
}

.mark {
  position: fixed;
  z-index: 5;
  left: 2.2vw;
  top: 2vh;
  width: 64px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
}

.xlink {
  position: fixed;
  z-index: 6;
  top: 2.4vh;
  right: 2.4vw;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #102f46;
  opacity: .68;
  text-decoration: none;
}

.xlink:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.copy {
  position: fixed;
  z-index: 6;
  left: 7.5vw;
  top: 15vh;
  width: min(560px, 36vw);
  display: grid;
  gap: 20px;
  animation: rise .5s cubic-bezier(.22, 1, .36, 1);
}

.copy h1 {
  margin: 0;
  color: #102f46;
  font: 650 clamp(58px, 7.2vw, 112px) / .94 Jakarta, sans-serif;
  letter-spacing: -.055em;
}

.copy p {
  margin: 0;
  max-width: 32ch;
  color: #102f46c7;
  font: 470 clamp(22px, 2.4vw, 32px) / 1.32 GeistFace, sans-serif;
}

.copy strong {
  font-weight: 700;
  color: #102f46;
}

.go {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: fit-content;
  height: 58px;
  margin-top: 10px;
  padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: #0c1016e6;
  color: #f4f1ea;
  font: 650 16px / 1 GeistFace, sans-serif;
  box-shadow: 0 16px 36px #080a1047;
  cursor: pointer;
}

.go:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.go:hover {
  transform: translateY(-1px);
}

footer {
  position: fixed;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 2.4vh;
  text-align: center;
  color: #102f469e;
  font: 500 13px / 1 GeistFace, sans-serif;
  letter-spacing: .01em;
}

footer a {
  color: #102f46db;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 47, 70, .22);
}

footer a:hover {
  color: #102f46;
  border-color: #102f46;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .mark {
    left: 18px;
    top: 14px;
    width: 52px;
    height: 52px;
  }

  .copy {
    left: 50%;
    top: auto;
    bottom: 5vh;
    width: min(520px, 88vw);
    transform: translateX(-50%);
    justify-items: center;
    text-align: center;
    animation: none;
  }

  .copy h1 {
    font-size: clamp(40px, 11vw, 64px);
  }

  .xlink {
    top: 1.6vh;
    right: 4vw;
    width: 30px;
    height: 30px;
  }

  footer {
    bottom: 1.4vh;
    font-size: 12px;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .copy {
    top: 11vh;
    gap: 14px;
  }

  .copy h1 {
    font-size: clamp(46px, 5.4vw, 78px);
  }

  .copy p {
    font-size: clamp(18px, 1.8vw, 24px);
  }

  .go {
    height: 50px;
    padding: 0 26px;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track, .copy {
    animation: none;
  }
}
