:root {
  color-scheme: dark;
  --ink: #07070b;
  --paper: #f8f4ef;
  --muted: #b6b1b8;
  --pink: #ff4f9a;
  --cyan: #45d8e8;
  --gold: #ffc247;
  --scene-x: 0px;
  --scene-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050508;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.js .loader.is-finished {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader__content {
  width: min(460px, calc(100vw - 48px));
  text-align: center;
}

.loader__content img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: loader-logo 700ms 120ms ease forwards;
}

.loader__content p {
  margin: 26px 0 12px;
  color: #c9c4ca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.loader__meter {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: #28232a;
}

.loader__meter span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--pink);
  animation: loader-meter 900ms ease-in-out infinite;
}

.scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #080a14;
}

.city-pan {
  position: absolute;
  inset: -2%;
  transform: translate3d(var(--scene-x), var(--scene-y), 0) scale(1.04);
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.city-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: city-scroll 88s linear infinite;
}

.city-track img {
  display: block;
  flex: none;
  width: auto;
  height: 100%;
  user-select: none;
}

.scene__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 12, .1) 0%, rgba(4, 4, 7, .04) 42%, rgba(4, 4, 7, .78) 100%),
    linear-gradient(90deg, rgba(3, 3, 6, .32), transparent 22%, transparent 78%, rgba(3, 3, 6, .32));
}

.scene__scanline {
  position: absolute;
  right: -18vw;
  bottom: 13%;
  width: 46vw;
  height: 2px;
  opacity: .72;
  background: var(--cyan);
  box-shadow: 0 0 14px 2px rgba(69, 216, 232, .62);
  animation: street-light 11s linear infinite;
}

.portal {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 34px 18px;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: min(430px, 54vw);
  text-decoration: none;
}

.brand__kicker {
  margin: 0 0 6px 2px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.age-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(7, 7, 11, .58);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.worlds {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 12px 0 8px;
}

.worlds__heading {
  width: min(1240px, 100%);
  margin: 0 auto 14px;
}

.worlds__heading p {
  margin: 0 0 2px;
  color: #d5d0d5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.worlds__heading h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1240px, 100%);
  height: min(53vh, 500px);
  min-height: 350px;
  margin: 0 auto;
}

.path {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  outline: 0;
  background: rgba(5, 5, 8, .86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  text-decoration: none;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.path::before {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform 300ms ease;
}

.path::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(4, 4, 7, .2) 53%, #050508 78%);
  content: "";
  pointer-events: none;
}

.path__number {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(4, 4, 7, .64);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.path__art {
  position: absolute;
  z-index: 0;
  inset: 0 0 25%;
  overflow: hidden;
  background: #030305;
}

.path__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0;
  filter: saturate(.84) contrast(1.05);
  transform: scale(1.015);
  transition: filter 350ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.path__content {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  flex-direction: column;
  transform: translateZ(34px);
}

.path__eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.path__content strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.path__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #d7d3d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.path__action b {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 220ms ease;
}

.path:hover,
.path:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5), 0 0 24px color-mix(in srgb, var(--accent) 24%, transparent);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px);
}

.path:hover::before,
.path:focus-visible::before {
  transform: scaleX(1);
}

.path:hover .path__art img,
.path:focus-visible .path__art img {
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.07);
}

.path:hover .path__action b,
.path:focus-visible .path__action b {
  transform: translate(3px, -3px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #a7a2a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.footer__line {
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, .34);
}

@keyframes city-scroll {
  to {
    transform: translate3d(-33.333333%, 0, 0);
  }
}

@keyframes street-light {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-150vw);
  }
}

@keyframes loader-logo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-meter {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(245%);
  }
}

@media (max-width: 900px) {
  .portal {
    padding: 18px 16px 14px;
  }

  .brand {
    width: 280px;
    max-width: 72vw;
  }

  .brand__kicker {
    font-size: 9px;
  }

  .age-mark {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .worlds {
    padding-top: 8px;
  }

  .worlds__heading {
    margin-bottom: 10px;
  }

  .worlds__heading h1 {
    font-size: 27px;
  }

  .paths {
    grid-auto-columns: minmax(278px, 84vw);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 12px;
    width: calc(100vw - 16px);
    height: min(58vh, 460px);
    min-height: 330px;
    margin-right: -16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-right: 16px;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .paths::-webkit-scrollbar {
    display: none;
  }

  .path {
    scroll-snap-align: start;
  }

  .path__content strong {
    font-size: 32px;
  }

  .footer {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .portal {
    padding-top: 16px;
  }

  .brand {
    width: 320px;
  }

  .paths {
    height: 55vh;
    min-height: 320px;
  }

  .worlds__heading {
    margin-bottom: 8px;
  }

  .path__content strong {
    font-size: 30px;
  }
}

@media (max-height: 650px) {
  .brand__kicker,
  .footer,
  .worlds__heading p {
    display: none;
  }

  .worlds__heading h1 {
    font-size: 24px;
  }

  .paths {
    height: 62vh;
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .city-track {
    transform: translate3d(-12%, 0, 0);
  }
}
