:root {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1b1c19;
  background: #f5f5f1;
  font-synthesis: none;
  --journey: 0;
  --dark: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #9998 transparent; overscroll-behavior-y: none; }
body { margin: 0; min-width: 280px; position: relative; isolation: isolate; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 1px solid currentColor; outline-offset: 7px; }
button[hidden] { display: none; }
::selection { background: #8887; }
.skip { position: fixed; top: -80px; left: 24px; z-index: 30; padding: 12px 18px; color: #f5f5f1; background: #1b1c19; font-size: 12px; }
.skip:focus { top: 20px; }
#scene { position: fixed; inset: 0; width: 100%; height: 100svh; z-index: 0; pointer-events: none; }
.header { position: fixed; inset: 0 0 auto; z-index: 10; height: 112px; padding: 29px 5.5%; display: flex; align-items: center; justify-content: space-between; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.header a, .header button { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 22px; }
.brand img { display: block; width: 78px; height: auto; filter: brightness(0) invert(1); }
.brand > span { border-left: 1px solid #ffffff4d; padding-left: 22px; font-size: 11px; line-height: 1; letter-spacing: .045em; opacity: .8; }
.language { border: 0; background: none; padding: 15px 0 15px 15px; font-size: 10px; letter-spacing: .04em; }
.language > span { display: inline-block; padding-left: 9px; transition: transform .3s ease; }
.language:hover > span { transform: translate(2px,-2px); }
.story { position: relative; z-index: 1; }
.passage { height: 100svh; min-height: 680px; position: relative; pointer-events: none; }
.passage-copy { position: absolute; left: 7%; top: 42%; width: 43%; max-width: 670px; transform: translateY(-50%); }
.passage h1, .passage h2 { margin: 0 0 28px; font-size: clamp(42px,4.7vw,74px); font-weight: 450; line-height: 1.28; letter-spacing: -.065em; text-wrap: balance; }
.passage p { margin: 0; color: #777971; font-size: 14px; font-weight: 400; line-height: 2; letter-spacing: .015em; }
.passage-dark { color: #f5f5f1; }
.passage-dark p { color: #b4b4ae; }
.passage-final .passage-copy { top: 65%; left: 50%; width: 90%; max-width: 900px; text-align: center; transform: translateX(-50%); }
.passage-final h2 { font-size: clamp(35px,3.5vw,58px); line-height: 1.35; margin-bottom: 22px; letter-spacing: -.055em; }
.passage-final p { font-size: 12px; line-height: 1.9; }
.footer { position: fixed; z-index: 2; bottom: 27px; left: 5.5%; right: 5.5%; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .045em; color: #94958f; opacity: 0; visibility: hidden; pointer-events: none; }
.is-finished .footer { opacity: 1; visibility: visible; }
.lens-target { position: fixed; z-index: 3; border: 0; background: transparent; color: #8e9189; border-radius: 100px; min-width: 70px; min-height: 70px; cursor: grab; touch-action: none; }
.lens-target:focus-visible { outline: 1px dashed currentColor; outline-offset: 5px; }
.lens-target:active { cursor: grabbing; }
.scroll-cue { position: fixed; z-index: 8; left: 7%; bottom: 35px; display: flex; align-items: center; gap: 19px; font-size: 9px; line-height: 18px; letter-spacing: .04em; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.scroll-arrow { font-size: 15px; line-height: 18px; }
.journey-line { position: fixed; right: 5.5%; bottom: 43px; width: 88px; height: 1px; z-index: 8; background: #8885; pointer-events: none; overflow: hidden; }
.journey-fill { display: block; width: 100%; height: 100%; background: #888; transform-origin: 0 50%; transform: scaleX(var(--journey)); }
.fallback-art { position: fixed; top: 46%; left: 70%; width: 50%; z-index: 0; transform: translate(-50%,-50%); pointer-events: none; filter: invert(var(--dark)); }
.fallback-art img { display: block; width: 100%; height: auto; }
.webgl .fallback-art { display: none; }
html:not(.webgl) .passage-dark { background: #161714; }
html:not(.webgl) .passage-dark .passage-copy, html:not(.webgl) .passage-dark .footer { z-index: 1; }
[lang="en"] .passage h1, [lang="en"] .passage h2 { font-size: clamp(40px,4.55vw,72px); line-height: 1.13; letter-spacing: -.055em; }
[lang="en"] .passage p { font-size: 13px; letter-spacing: 0; }
[lang="en"] .passage-final h2 { font-size: clamp(34px,3.4vw,56px); line-height: 1.16; }
@media (min-width: 1600px) { .passage-copy { left: 8%; } }
@media (min-width: 701px) and (max-width: 1000px) {
  .header { padding-inline: 5%; }
  .passage-copy { left: 6%; width: 44%; }
  .passage h1, .passage h2 { font-size: 4.9vw; }
  .passage p { font-size: 12px; }
  .passage-final h2 { font-size: 4.1vw; }
}
@media (max-width: 700px) {
  .header { height: 88px; padding: 21px 24px; }
  .brand { gap: 15px; }
  .brand img { width: 62px; }
  .brand > span { padding-left: 15px; font-size: 9px; }
  .language { font-size: 9px; }
  .language > span { padding-left: 7px; }
  .passage { height: 100svh; min-height: 700px; }
  .passage-copy { top: 17%; left: 24px; width: calc(100% - 48px); max-width: none; transform: none; text-align: center; }
  .passage h1, .passage h2 { margin-bottom: 18px; font-size: clamp(34px,9.4vw,49px); line-height: 1.27; letter-spacing: -.065em; }
  .passage p { font-size: 11px; line-height: 1.95; letter-spacing: .01em; }
  .passage-final .passage-copy { top: 68%; left: 24px; width: calc(100% - 48px); transform: none; }
  .passage-final h2 { font-size: clamp(27px,7.6vw,39px); margin-bottom: 17px; line-height: 1.34; }
  .passage-final p { font-size: 10px; line-height: 1.9; }
  .footer { bottom: 24px; left: 24px; right: 24px; font-size: 8px; }
  .scroll-cue { bottom: 29px; left: 25px; font-size: 8px; gap: 13px; }
  .scroll-arrow { font-size: 13px; }
  .journey-line { right: 25px; bottom: 37px; width: 49px; }
  .fallback-art { top: 56%; left: 50%; width: 86%; }
  [lang="en"] .passage h1, [lang="en"] .passage h2 { font-size: clamp(33px,9vw,47px); line-height: 1.12; }
  [lang="en"] .passage p { font-size: 10px; }
  [lang="en"] .passage-final h2 { font-size: clamp(27px,7.4vw,38px); line-height: 1.18; }
  [lang="en"] .scroll-cue { max-width: 230px; }
}
@media (max-width: 359px) {
  .header { padding-inline: 20px; }
  .brand { gap: 11px; }
  .brand > span { padding-left: 11px; font-size: 8px; }
  .passage-copy { left: 20px; width: calc(100% - 40px); }
  .passage h1, .passage h2 { font-size: 32px; }
  .passage-final .passage-copy { left: 20px; width: calc(100% - 40px); }
  .passage-final h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #scene { display: none; }
  .lens-target { display: none; }
  .webgl .fallback-art { display: block; }
  body { background: rgb(calc(245 - 223 * var(--dark)), calc(245 - 222 * var(--dark)), calc(241 - 221 * var(--dark))); }
  html:not(.webgl) .passage-dark { background: transparent; }
}

/* The reading cue leaves after the opening; the ending stays quiet. */
.has-scrolled .scroll-cue { opacity: 0; visibility: hidden; }
.is-finished .journey-line { opacity: 0; }
.js:not(.webgl) body { background: rgb(calc(245 - 223 * var(--dark)), calc(245 - 222 * var(--dark)), calc(241 - 221 * var(--dark))); }
.js:not(.webgl) .passage-dark { background: transparent; }
.is-finished .fallback-art { top: 40%; left: 50%; width: 56%; }
@media (max-width: 700px) { .is-finished .fallback-art { width: 87%; } }

/* Copy dissolves in place so it never scrolls through the letterforms. */
.js .passage-copy { position: fixed; opacity: 0; will-change: opacity; }

/* A reading pause belongs to each completed pose, followed by one full
   viewport of continuous transition. The recognition beat has extra room. */
.js .passage:not(.passage-final) { height: calc(100svh + var(--dwell, 65svh)); min-height: calc(680px + var(--dwell, 65svh)); }
.passage[data-scene="4"] { --dwell: 85svh; }
.passage[data-scene="6"] { --dwell: 130svh; }
@media (max-width: 700px) {
  .js .passage:not(.passage-final) { min-height: calc(700px + var(--dwell, 65svh)); }
}
