@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2-variations");
}

:root {
  --ink: #061118;
  --white: #f7f8f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  overscroll-behavior-y: none;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  color: var(--white);
  font-family: "Manrope Variable", "Manrope", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.scroll-story {
  position: relative;
  height: 460svh;
  background: var(--ink);
}

.fixed-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.scenery {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #33474c url("/assets/ambient/human-motion-poster.jpg") center / cover no-repeat;
}

.scenery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(1.13) contrast(1.04);
  transform: scale(1.012);
}

.color-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 18%, rgb(218 149 181 / 16%), transparent 42%),
    linear-gradient(125deg, rgb(35 91 116 / 22%), transparent 48%, rgb(82 58 105 / 19%)),
    linear-gradient(180deg, rgb(4 14 19 / 12%), rgb(4 13 18 / 4%) 42%, rgb(4 13 18 / 24%));
  pointer-events: none;
}

.film-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 22% 18%, transparent 0 1px, rgb(255 255 255 / 18%) 1.6px 2px, transparent 2.4px 5px),
    repeating-radial-gradient(circle at 73% 64%, transparent 0 1px, rgb(0 0 0 / 14%) 1.5px 1.9px, transparent 2.3px 6px);
  background-size: 9px 11px, 13px 15px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: clamp(1.9rem, 3.35vw, 3.05rem);
  font-weight: 590;
  line-height: 0.92;
  letter-spacing: -0.056em;
  will-change: opacity, transform;
}

.sentence-field {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-word {
  position: absolute;
  color: var(--white);
  font-size: clamp(1.15rem, 2.15vw, 1.85rem);
  font-weight: 570;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow:
    0 1px 4px rgb(0 0 0 / 52%),
    0 2px 12px rgb(0 0 0 / 20%);
  white-space: nowrap;
  will-change: left, top, opacity, transform;
}

.story-word > span {
  display: inline-block;
  will-change: opacity, transform;
}

.globe-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(5.4rem, 7.5vw, 6.7rem);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.58);
  will-change: opacity, transform;
}

.globe-mark canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 0.7rem rgb(241 247 249 / 14%));
}

.motion-fallback {
  display: none;
  position: absolute;
  top: calc(50% + 3.25rem);
  left: 50%;
  width: min(28rem, calc(100vw - 3rem));
  margin: 0;
  transform: translateX(-50%);
  color: rgb(247 248 244 / 82%);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 450;
  line-height: 1.45;
  text-align: center;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.8rem;
  border-radius: 0.25rem;
  background: var(--white);
  color: var(--ink);
  font: 600 0.875rem/1 "Manrope Variable", sans-serif;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html:not(.js) .scroll-story,
html:not(.js) .fixed-stage {
  height: 100svh;
}

html:not(.js) .motion-fallback {
  display: block;
}

html:not(.js) .sentence-field,
html:not(.js) .globe-mark {
  display: none;
}

@media (max-width: 640px) {
  .scroll-story {
    height: 420svh;
  }

  .story-word {
    font-size: clamp(1.05rem, 5vw, 1.4rem);
  }

  .scenery video {
    object-position: 54% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-story,
  .fixed-stage {
    height: 100svh;
  }

  .motion-fallback {
    display: block;
  }

  .sentence-field,
  .globe-mark {
    display: none;
  }

  .wordmark {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
  }
}
