:root {
  --paper: #f5f5f1;
  --ink: #111111;
  --body: #5e6572;
  --blue: #4d88f7;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glow-opacity: 0.08;
  --glow-y: 12%;
  --glow-size: 34rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.story-home,
.story-return {
  position: fixed;
  z-index: 20;
  top: 30px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 12px;
  line-height: 1;
  transition: color 400ms ease, opacity 400ms ease;
}

.story-home {
  left: clamp(24px, 4vw, 60px);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.story-return {
  right: clamp(24px, 4vw, 60px);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
  background: rgba(245, 245, 241, 0.8);
  color: var(--ink);
  transition: transform 300ms var(--ease), background-color 300ms ease;
}

.story-home:hover,
.story-return:hover {
  color: var(--ink);
}

.story-return::before,
.story-return::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.story-return::before { transform: translate(-50%, -50%) rotate(45deg); }
.story-return::after { transform: translate(-50%, -50%) rotate(-45deg); }
.story-return:hover { background: #fff; transform: scale(1.04); }
.story-return:focus-visible { outline: 2px solid rgba(17, 17, 17, .55); outline-offset: 3px; }

.story {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  isolation: isolate;
}

.story::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 28%),
    var(--paper);
}

.story-light {
  position: fixed;
  z-index: -2;
  left: 50%;
  top: var(--glow-y);
  width: var(--glow-size);
  height: var(--glow-size);
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--glow-opacity);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(132, 184, 255, 0.68) 0%, rgba(174, 207, 255, 0.28) 32%, transparent 72%);
  transition: opacity 700ms ease-out, width 900ms ease-out, height 900ms ease-out;
}

.story-line {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.88;
}

.story-narrative {
  position: relative;
  width: 100%;
}

.story-opening,
.story-passage,
.story-ending {
  position: relative;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-inline: clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.story-opening {
  min-height: 180svh;
  justify-content: flex-start;
  padding-top: max(138px, 18svh);
}

.story-label {
  margin: 0;
  color: #747b86;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-title {
  margin: clamp(28px, 5vh, 54px) 0 0;
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.072em;
}

.story-title span,
.story-title-cn span,
.ending-en span,
.ending-cn span {
  display: block;
}

.story-title-cn {
  margin: clamp(38px, 6vh, 68px) 0 0;
  color: var(--body);
  font-size: clamp(23px, 2.35vw, 35px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.opening-question {
  margin-top: clamp(200px, 32vh, 360px);
}

.scroll-note {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: clamp(28px, 5vh, 54px);
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: rgba(45, 54, 68, 0.7);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.62), rgba(230, 239, 252, 0.3));
  box-shadow: 0 10px 30px rgba(57, 84, 121, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.015em;
  transform: translateX(-50%);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  will-change: opacity, transform;
}

.scroll-note::before {
  content: "";
  position: absolute;
  inset: 1px 25% auto 4%;
  height: 50%;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.72), transparent);
  pointer-events: none;
}

.scroll-note.is-hidden {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}

.scroll-note span {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 19px;
  overflow: hidden;
  border: 1px solid rgba(90, 118, 155, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
}

.scroll-note span::after {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: rgba(78, 130, 204, 0.68);
  box-shadow: 0 0 7px rgba(101, 158, 239, 0.56);
  animation: scrollCue 2.4s ease-in-out infinite;
}

.story-passage {
  min-height: 132svh;
}

.passage-language,
.passage-birth,
.passage-future {
  min-height: 152svh;
}

.passage-belief {
  min-height: 144svh;
}

.passage-change {
  min-height: 160svh;
}

.prose {
  width: min(760px, 100%);
}

.prose p {
  margin: 0;
  color: var(--body);
  font-size: clamp(20px, 2.15vw, 31px);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: -0.035em;
}

.prose p + p {
  margin-top: 0.2em;
}

.prose .prose-statement {
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.prose .prose-emphasis {
  color: var(--ink);
  font-weight: 400;
}

.prose .prose-brand {
  color: var(--ink);
  font-size: clamp(43px, 5.6vw, 78px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.prose .prose-pause {
  margin-top: clamp(28px, 4vh, 54px);
}

.prose .prose-display {
  margin-top: clamp(20px, 3vh, 34px);
  color: var(--ink);
  font-size: clamp(62px, 10vw, 146px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.prose-space {
  margin-top: clamp(34px, 5.5vh, 68px);
}

.prose-muted p,
.prose p.prose-muted {
  color: #7c828c;
}

.prose-definitions {
  margin-top: clamp(62px, 9vh, 112px);
}

.prose-definitions p {
  display: flex;
  justify-content: center;
  gap: 0.45em;
}

.prose-definitions strong {
  color: var(--ink);
  font-weight: 400;
}

.prose-highlight {
  color: var(--ink) !important;
  font-size: clamp(28px, 3.3vw, 47px) !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
}

.answer-statement {
  margin-top: clamp(94px, 15vh, 180px);
}

.story-ending {
  min-height: 180svh;
  padding-top: 28svh;
  padding-bottom: 10svh;
  justify-content: flex-start;
}

.ending-lockup {
  position: relative;
}

.ending-brand {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: clamp(72px, 12vw, 174px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.ending-brand span {
  position: absolute;
  right: -0.12em;
  top: 0.05em;
  width: 0.09em;
  height: 0.09em;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 28px rgba(77, 136, 247, 0.42);
}

.ending-message {
  margin: clamp(30px, 5vh, 56px) 0 0;
  color: var(--body);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.ending-message + .ending-message {
  margin-top: 0.14em;
}

.ending-belief {
  margin-top: clamp(200px, 32vh, 360px);
}

.ending-en,
.ending-cn {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.ending-cn {
  margin-top: clamp(56px, 8vh, 96px);
  color: var(--body);
  font-size: clamp(20px, 2.25vw, 31px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.035em;
}

.ending-home {
  margin-top: auto;
  color: #737984;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.ending-home:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(24px);
  transition:
    opacity 1.4s var(--ease),
    filter 1.4s var(--ease),
    transform 1.4s var(--ease);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@keyframes scrollCue {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  35% {
    opacity: 1;
  }
  70%, 100% {
    opacity: 0;
    transform: translateY(11px);
  }
}

@media (max-width: 700px) {
  .story-home,
  .story-return {
    top: 24px;
  }

  .story-home {
    font-size: 16px;
  }

  .story-return {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .story-opening,
  .story-passage,
  .story-ending {
    padding-inline: 25px;
  }

  .story-opening {
    min-height: 168svh;
    padding-top: max(125px, 16svh);
  }

  .story-title {
    font-size: clamp(43px, 13vw, 62px);
    line-height: 0.98;
  }

  .story-title span:first-child {
    white-space: nowrap;
    font-size: 0.82em;
  }

  .opening-question {
    margin-top: 27vh;
  }

  .story-passage {
    min-height: 124svh;
  }

  .passage-language,
  .passage-birth,
  .passage-future,
  .passage-change {
    min-height: 148svh;
  }

  .prose p {
    font-size: 19px;
    line-height: 1.75;
  }

  .prose .prose-statement {
    font-size: 29px;
  }

  .prose .prose-brand {
    font-size: 47px;
  }

  .prose-definitions p {
    display: block;
  }

  .prose-definitions strong {
    display: block;
  }

  .prose-highlight {
    font-size: 29px !important;
  }

  .story-ending {
    min-height: 168svh;
    padding-top: 25svh;
  }

  .ending-brand {
    font-size: clamp(64px, 21vw, 94px);
  }

  .ending-belief {
    margin-top: 30vh;
  }

  .scroll-note {
    bottom: 24px;
    max-width: calc(100vw - 48px);
    padding: 9px 13px 9px 9px;
    font-size: 10px;
  }
}

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

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .scroll-note span::after {
    animation: none;
  }

  .story-light {
    transition: none;
  }
}
