:root {
  --story-ink: #00070d;
  --story-deep: #001421;
  --story-blue: #48cae4;
  --story-ice: #c9f6ff;
  --story-white: #f4f7f9;
}

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

body.story-documentary-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--story-ink);
  color: var(--story-white);
}

.story-documentary-page .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0, 7, 13, .76), transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.story-documentary-page .nav__logo-img {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 0 1px rgba(143, 245, 255, .24);
}

.story-documentary-page .nav__links a {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .65);
}

.story-documentary-page .nav__hamburger {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
}

.story-documentary-page .nav__hamburger span {
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}

.story-doc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--story-ink);
}

.story-doc__chapter {
  position: relative;
  min-height: 118svh;
  overflow: hidden;
  background: var(--story-deep);
}

.story-doc__chapter--vision {
  min-height: 126svh;
}

.story-doc__chapter--today {
  min-height: 110svh;
}

.story-doc__image,
.story-doc__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-doc__image {
  z-index: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  animation: storyImageDrift 18s ease-in-out infinite alternate;
}

.story-doc__chapter--moment .story-doc__image {
  object-position: 52% center;
}

.story-doc__chapter--search .story-doc__image {
  object-position: 50% center;
}

.story-doc__chapter--vision .story-doc__image {
  object-position: 56% center;
}

.story-doc__chapter--today .story-doc__image {
  object-position: 55% center;
}

.story-doc__shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 7, 13, .64) 0%, rgba(0, 10, 18, .12) 31%, rgba(0, 8, 14, .18) 53%, rgba(0, 5, 10, .94) 100%),
    linear-gradient(90deg, rgba(0, 6, 11, .62), transparent 78%);
}

.story-doc__chapter--search .story-doc__shade,
.story-doc__chapter--today .story-doc__shade {
  background:
    linear-gradient(180deg, rgba(0, 7, 13, .78) 0%, rgba(0, 8, 14, .18) 35%, rgba(0, 5, 10, .92) 100%),
    linear-gradient(90deg, rgba(0, 6, 11, .72), transparent 84%);
}

.story-doc__chapter::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12%;
  left: -35%;
  width: 105%;
  height: 68%;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 34%, rgba(143, 245, 255, .09) 50%, transparent 66%);
  filter: blur(16px);
  transform-origin: top center;
  animation: storyLightShift 13s ease-in-out infinite alternate;
}

.story-doc__content {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  width: min(100%, 720px);
  padding-inline: 24px;
}

.story-doc__content--top {
  top: clamp(104px, 14svh, 142px);
}

.story-doc__content--bottom {
  bottom: clamp(48px, 8svh, 88px);
}

.story-doc__eyebrow {
  margin: 0 0 15px;
  color: var(--story-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.story-doc__title {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(64px, 19vw, 128px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: .79;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 38px rgba(0, 0, 0, .44);
}

.story-doc__copy {
  max-width: 540px;
  margin-top: 34px;
  color: rgba(244, 247, 249, .82);
  font-size: clamp(18px, 4.9vw, 24px);
  font-weight: 400;
  line-height: 1.48;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
}

.story-doc__copy p {
  margin: 0 0 7px;
}

.story-doc__copy--opening {
  max-width: 520px;
}

.story-doc__copy--rhythm {
  font-size: clamp(18px, 4.7vw, 23px);
}

.story-doc__question,
.story-doc__statement,
.story-doc__silence {
  color: #fff;
  font-weight: 700;
}

.story-doc__question {
  margin-top: 20px !important;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.18;
}

.story-doc__pause {
  margin-top: 22px !important;
  color: rgba(244, 247, 249, .62);
}

.story-doc__statement,
.story-doc__silence {
  margin-top: 18px !important;
  color: var(--story-ice);
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.18;
}

.story-doc__manifesto {
  margin: 28px 0 0;
  color: var(--story-ice);
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 76px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .92;
  text-transform: uppercase;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .8);
}

.story-doc__finale {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 110px 24px;
  background: linear-gradient(180deg, #00070d, #000308 68%, #000);
  text-align: center;
}

.story-doc__finale-light {
  position: absolute;
  top: -34%;
  left: 50%;
  width: min(760px, 150vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 202, 228, .17), transparent 68%);
  filter: blur(22px);
  transform: translateX(-50%);
  animation: storyFinaleLight 9s ease-in-out infinite alternate;
}

.story-doc__finale .story-doc__eyebrow,
.story-doc__finale-title,
.story-doc__welcome {
  position: relative;
  z-index: 1;
}

.story-doc__finale .story-doc__eyebrow {
  margin-bottom: 26px;
}

.story-doc__finale-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(56px, 16vw, 112px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .86;
  text-transform: uppercase;
}

.story-doc__welcome {
  margin: 52px 0 0;
  color: var(--story-blue);
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 600;
}

.story-doc__ambient {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-doc__ambient span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(201, 246, 255, .34);
  border-radius: 50%;
  opacity: .28;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .28);
  animation: storyBubbleRise 12s ease-in-out infinite alternate;
}

.story-doc__ambient span:nth-child(1) { top: 12%; left: 11%; animation-delay: -3s; }
.story-doc__ambient span:nth-child(2) { top: 27%; left: 83%; width: 11px; height: 11px; animation-delay: -7s; }
.story-doc__ambient span:nth-child(3) { top: 48%; left: 17%; width: 5px; height: 5px; animation-delay: -5s; }
.story-doc__ambient span:nth-child(4) { top: 68%; left: 78%; width: 9px; height: 9px; animation-delay: -1s; }
.story-doc__ambient span:nth-child(5) { top: 88%; left: 26%; width: 6px; height: 6px; animation-delay: -9s; }

.story-motion-ready [data-story-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

.story-motion-ready [data-story-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-documentary-page .footer {
  background: linear-gradient(180deg, #000 0%, #010914 55%, #000 100%);
}

.story-documentary-page .footer__aurora {
  opacity: .35;
}

@keyframes storyImageDrift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(0, -1.2%, 0); }
}

@keyframes storyLightShift {
  from { opacity: .48; transform: rotate(-3deg) translateX(-2%); }
  to { opacity: .9; transform: rotate(4deg) translateX(7%); }
}

@keyframes storyBubbleRise {
  from { transform: translate3d(0, 90px, 0) scale(.7); opacity: .05; }
  to { transform: translate3d(16px, -90px, 0) scale(1.12); opacity: .35; }
}

@keyframes storyFinaleLight {
  from { opacity: .45; transform: translateX(-50%) scale(.9); }
  to { opacity: .9; transform: translateX(-50%) scale(1.08); }
}

@media (min-width: 769px) {
  .story-documentary-page .nav {
    padding: 18px 40px;
  }

  .story-doc__content {
    left: max(3vw, calc((100vw - 1180px) / 2));
    padding-inline: 40px;
  }

  .story-doc__content--top {
    top: 15svh;
  }

  .story-doc__content--bottom {
    bottom: 10svh;
  }

  .story-doc__image {
    object-position: center 44%;
  }
}

@media (max-width: 768px) {
  .story-documentary-page .nav__links--open {
    z-index: 1;
    top: 0;
    min-height: 100svh;
    padding: 110px 28px 40px;
    justify-content: flex-start;
    background: rgba(0, 7, 13, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .story-documentary-page .nav__links--open a {
    color: #fff;
    font-size: 15px;
  }

  .story-documentary-page .nav__links--open + .nav__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .story-documentary-page .nav__links--open + .nav__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .story-documentary-page .nav__links--open + .nav__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .story-doc__chapter--moment {
    min-height: 132svh;
  }

  .story-doc__chapter--search {
    min-height: 122svh;
  }
}

@media (max-width: 390px) {
  .story-doc__content {
    padding-inline: 20px;
  }

  .story-doc__copy,
  .story-doc__copy--rhythm {
    font-size: 17px;
  }

  .story-doc__question,
  .story-doc__statement,
  .story-doc__silence {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-doc__image,
  .story-doc__chapter::before,
  .story-doc__ambient span,
  .story-doc__finale-light {
    animation: none;
    transform: none;
  }

  .story-motion-ready [data-story-reveal],
  .story-motion-ready [data-story-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
