:root {
  --blue: #000000;
  --blue-deep: #000000;
  --navy: #000000;
  --gold: #ffffff;
  --gold-soft: #f2f2f2;
  --white: #ffffff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: Fraunces, "Times New Roman", serif;
  --font-body: Manrope, system-ui, sans-serif;
  --fs-hero: clamp(2.9rem, 13.5vw, 9.5rem);
  --fs-display: clamp(2.4rem, 7vw + 0.4rem, 6.25rem);
  --fs-lore: clamp(1.85rem, 2.4vw + 0.9rem, 3.15rem);
  --fs-plate: clamp(1.5rem, 1.4vw + 0.95rem, 2.35rem);
  --fs-title: clamp(1.7rem, 1.8vw + 0.9rem, 2.75rem);
  --fs-caption: clamp(1rem, 0.8vw + 0.7rem, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-ui: 0.75rem;
  --lh-display: 0.9;
  --lh-title: 1.14;
  --lh-body: 1.55;
  --track-ui: 0.14em;
  --pad: clamp(1.25rem, 4vw, 5rem);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: var(--fs-body);
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  filter: grayscale(1);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--blue);
}

.skip:focus {
  top: 16px;
}

/* Preloader */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--navy);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-inner img {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  object-fit: cover;
}

.preloader-count {
  font-family: var(--font-body);
  letter-spacing: var(--track-ui);
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--gold);
}

.preloader-line {
  width: 140px;
  height: 1px;
  margin: 16px auto 0;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
}

/* Nav */

.nav {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  height: 44px;
  max-width: calc(100vw - 24px);
  padding: 0 16px 0 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.nav.is-away {
  transform: translateX(-50%) translateY(-80px);
  opacity: 0;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-mark img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links a:hover {
  color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg {
  inset: -12% 0;
  background-image: url("../img/bg/hero.jpg?v=260902");
  filter: grayscale(1);
}

.hero-fog {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 30%, rgba(0, 0, 0, 0.28) 70%, var(--navy) 100%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-title {
  position: absolute;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0 var(--pad);
  text-align: center;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: -0.045em;
  color: var(--gold-soft);
  pointer-events: none;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  margin-top: 0.04em;
  font-style: italic;
  font-weight: 400;
  font-size: 0.34em;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.hero-cat {
  position: absolute;
  left: 50%;
  bottom: 5vh;
  z-index: 3;
  width: min(420px, 62vw);
  transform: translateX(-50%);
  filter: grayscale(1) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Lore */

.lore {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6rem var(--pad);
  overflow: hidden;
}

.lore-bg {
  position: absolute;
  inset: -16% 0;
  background: url("../img/bg/lore.jpg?v=260902") center / cover no-repeat;
  filter: grayscale(1);
  will-change: transform;
}

.lore-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.lore-mist {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 40%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.lore-panel {
  position: relative;
  z-index: 2;
  max-width: 28rem;
}

.lore-kicker,
.plate-kicker {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.lore h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-lore);
  line-height: var(--lh-title);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lore h2 .w {
  display: inline-block;
}

.lore p {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.82);
}

.lore-kicker {
  margin-bottom: 18px;
}

/* Type on stills */

.plates {
  background: var(--navy);
}

.plate {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.plate-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: max(2.5rem, 8vh);
  z-index: 2;
  max-width: 22rem;
}

.plate-copy-right {
  left: auto;
  margin-left: auto;
  text-align: right;
}

.plate-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-plate);
  line-height: var(--lh-title);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Descent through clouds */

.descent {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.descent-bg {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  background: url("../img/bg/clouds.jpg?v=260902") center / cover no-repeat;
  filter: grayscale(1);
  will-change: transform;
}

.descent-title {
  position: absolute;
  top: max(5rem, 7vh);
  left: var(--pad);
  right: var(--pad);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.descent-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding-top: 8vh;
  pointer-events: none;
}

.descent-video {
  display: block;
  width: min(760px, 78vw);
  aspect-ratio: 736 / 400;
  height: auto;
  object-fit: cover;
  background: #000000;
  border-radius: 16px;
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 0;
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.65);
  filter: grayscale(1);
  will-change: transform;
}

.descent-fog {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 60%, transparent 20%, rgba(0, 0, 0, 0.4) 80%);
  pointer-events: none;
}

/* Horizontal memes */

.journey {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.journey-title {
  position: absolute;
  top: max(5rem, 6vh);
  left: var(--pad);
  z-index: 3;
  pointer-events: none;
}

.journey-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100vh;
  height: 100dvh;
  padding: 0 10vw;
  width: max-content;
}

.journey-track figure {
  position: relative;
  margin: 0;
  flex: none;
  width: min(52vw, 620px);
  transform: scale(0.84);
  opacity: 0.38;
  transform-origin: center center;
  will-change: transform, opacity;
}

.journey-track figure.is-focus {
  transform: scale(1);
  opacity: 1;
}

.journey-track img {
  width: 100%;
  height: 68vh;
  object-fit: cover;
}

.journey-track figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-caption);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* Stickers */

.archive {
  position: relative;
  min-height: 110vh;
  overflow: hidden;
  padding: 7rem var(--pad) 6rem;
}

.archive-bg {
  position: absolute;
  inset: -12% 0;
  background: url("../img/bg/archive.jpg?v=260902") center / cover no-repeat;
  filter: grayscale(1);
}

.archive .display {
  position: relative;
  z-index: 2;
  margin: 0 0 3rem;
}

.float-field {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 18px;
  align-items: center;
  justify-items: center;
}

.float-field img {
  width: min(168px, 16vw);
  filter: grayscale(1) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.float-field img:nth-child(odd) {
  transform: rotate(-6deg);
}

.float-field img:nth-child(even) {
  transform: rotate(5deg);
}

/* Ending seal */

.ending {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ending-bg {
  position: absolute;
  inset: -12% 0;
  background: url("../img/bg/ending.jpg?v=260902") center / cover no-repeat;
  filter: grayscale(1);
}

.ending-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.58) 58%);
}

.ending-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-self: start;
  text-align: center;
  padding: clamp(4.5rem, 16vh, 9rem) var(--pad) 0;
}

.ending-seal {
  width: min(96px, 22vw);
  height: min(96px, 22vw);
  margin-bottom: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
}

.ending-title {
  max-width: 11em;
  font-size: var(--fs-lore);
  line-height: var(--lh-title);
  letter-spacing: -0.035em;
}

.ending-links {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.ending-links a:hover {
  color: var(--white);
}

/* Footer */

.foot {
  padding: 1.5rem var(--pad) calc(1.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.foot a:hover {
  color: var(--white);
}

.lost {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem var(--pad);
}

.lost img {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
}

.lost h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-lore);
  line-height: var(--lh-title);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.lost p {
  color: rgba(255, 255, 255, 0.65);
}

.lost a {
  display: inline-block;
  margin-top: 20px;
  border-bottom: 1px solid var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  :root {
    --fs-body: 1rem;
  }

  .nav {
    gap: 10px;
    height: 42px;
    padding: 0 12px 0 10px;
  }

  .nav-mark {
    font-size: 0.9375rem;
    gap: 8px;
  }

  .nav-links {
    gap: 10px;
  }

  .hero-title {
    top: calc(4.25rem + env(safe-area-inset-top, 0px));
  }

  .hero-title span {
    font-size: 0.38em;
    margin-top: 0.08em;
  }

  .hero-cat {
    width: min(280px, 72vw);
    bottom: 8vh;
  }

  .lore {
    padding: 5.5rem var(--pad) 3rem;
    align-items: end;
  }

  .lore-panel {
    max-width: none;
    padding-bottom: 1.5rem;
  }

  .lore h2 {
    margin-bottom: 0.85rem;
  }

  .plate-copy,
  .plate-copy-right {
    left: var(--pad);
    right: var(--pad);
    text-align: left;
    max-width: 20rem;
    margin-left: 0;
  }

  .journey-title {
    left: var(--pad);
    top: max(4.5rem, 5vh);
  }

  .descent-title {
    top: max(4.5rem, 5vh);
  }

  .descent-video {
    width: min(760px, 88vw);
  }

  .journey-track {
    padding: 0 12vw;
    gap: 1.15rem;
  }

  .journey-track figure {
    width: min(78vw, 22rem);
  }

  .journey-track img {
    height: 50vh;
    border-radius: 2px;
  }

  .float-field {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.75rem;
  }

  .float-field img {
    width: min(148px, 36vw);
  }

  .ending-title {
    max-width: 8.5em;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .nav-mark {
    font-size: 0;
    gap: 0;
  }

  .nav-mark img {
    width: 24px;
    height: 24px;
  }

  .nav-links {
    gap: 12px;
  }

  .hero-cat {
    width: min(240px, 70vw);
  }

  .scroll-hint {
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    animation: none !important;
    transition: none !important;
  }

  .descent-video {
    display: none;
  }

  .hero-cat,
  .ending-seal,
  .float-field img,
  .journey-track figure {
    will-change: auto;
  }
}
