.story-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.34) 0, var(--bg) 88vh),
    linear-gradient(
      90deg,
      rgba(5, 8, 12, 0.96) 0,
      rgba(5, 8, 12, 0.62) 58%,
      rgba(5, 8, 12, 0.8) 100%
    ),
    url('/art/monolith-bg.webp') center top / cover fixed;
}

.story-nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(139, 211, 255, 0.2);
}

.story-brand,
.story-return {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 800;
}

.story-brand {
  letter-spacing: 0.24em;
  font-size: var(--fs-lg);
}

.story-return {
  color: var(--accent);
  font-size: var(--fs-md);
}

.story-return:hover,
.story-return:focus-visible {
  color: #c9ecff;
}

.story-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 12vw, 150px) 0 100px;
}

.story-page.has-background-art .story-shell {
  padding-bottom: calc(100px + 100vh);
}

.story {
  width: min(740px, 100%);
  position: relative;
  z-index: 1;
}

.story-header {
  margin-bottom: clamp(48px, 8vw, 88px);
}

.story-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-header h1 {
  margin: 0;
  max-width: 8ch;
  font-family: var(--mono);
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.story-deck {
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.story-copy {
  max-width: 68ch;
  padding: clamp(26px, 5vw, 54px);
  background: rgba(12, 18, 24, 0.92);
  border: 1px solid rgba(139, 211, 255, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.story-copy p {
  margin: 0 0 1.5em;
  color: #dce5ee;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.78;
}

.story-copy p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 4.4em;
  font-weight: 900;
  line-height: 0.72;
}

.story-copy hr {
  width: 72px;
  margin: clamp(42px, 8vw, 74px) 0;
  border: 0;
  border-top: 3px solid var(--accent);
}

.story-callout h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.story-copy .godspeed {
  margin: clamp(54px, 9vw, 88px) 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-gallery {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.story-gallery.is-visible {
  opacity: 1;
}

.story-art {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity 620ms ease,
    transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-art.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .story-page {
    background-attachment: scroll;
  }

  .story-nav,
  .story-shell {
    width: min(100% - 28px, 1120px);
  }

  .story-nav {
    padding: 18px 0;
  }

  .story-brand {
    font-size: var(--fs-md);
  }

  .story-shell {
    padding-top: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-page {
    background-attachment: scroll;
  }

  .story-gallery,
  .story-art {
    transition: none;
  }
}
