@charset "UTF-8";

:root {
  color-scheme: dark;
  --ivory: #eeece1;
  --muted: #b2b8ae;
  --edge: clamp(24px, 4vw, 72px);
  --serif: "Songti SC", "STSong", "华文中宋", "SimSun", serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: #050706; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: #050706; color: var(--ivory); font: 14px/1.8 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::-webkit-scrollbar { display: none; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 1px solid #e8d3ae; outline-offset: 7px; }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
::selection { background: #a99979; color: #060a08; }

/* Native scrolling drives a fixed stage. There is no click gate or scroll snap. */
.scroll-track { height: 1780svh; pointer-events: none; }
.experience { position: fixed; inset: 0; height: 100dvh; overflow: hidden; isolation: isolate; background: #050706; }
.visual-world { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ambient-wash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 33%, #17322b40, transparent 61%), linear-gradient(155deg, #080e0e, #060a09 55%, #0b100d); }
.ambient-wash:after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 37%, #7c69341c, transparent 53%); opacity: var(--warmth, 0); }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 41%, transparent 30%, #01060545 100%); }
.grain { position: absolute; inset: 0; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.65' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }

.light-source { position: absolute; width: 220px; height: 220px; left: 50%; top: 34%; transform: translate(-50%, -50%); background: radial-gradient(circle, #ede3bc19, #a7b78f06 35%, transparent 68%); mix-blend-mode: screen; }
.light-source span { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff9de; box-shadow: 0 0 8px 2px #ffedbcaa, 0 0 28px 8px #e2d7a943, 0 0 70px 18px #d0c99820; }
#atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

.topline { position: absolute; top: max(30px, env(safe-area-inset-top)); left: var(--edge); right: var(--edge); z-index: 5; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; pointer-events: auto; }
.brand svg { width: 26px; height: 26px; stroke: #d8dccd; stroke-width: 1.3; }
.brand span { font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: .16em; }
.topline>p { font-size: 9px; letter-spacing: .18em; color: #a7ada1; }
.narrative, .scene { position: absolute; inset: 0; }
.narrative { z-index: 3; pointer-events: none; }
.scene { opacity: 0; visibility: hidden; }
.scene-origin { opacity: 1; visibility: visible; }
.scene-copy { position: absolute; width: calc(100% - 120px); max-width: 1100px; left: 50%; top: 73%; text-align: center; transform: translate(-50%, -50%); will-change: opacity, transform, filter; }
.eyebrow { color: #bac5b2; font-size: 9px; letter-spacing: .28em; font-weight: 400; margin-bottom: 25px; text-shadow: 0 1px 10px #000, 0 0 4px #000; }
.scene-copy h1, .scene-copy h2 { font-family: var(--serif); font-size: clamp(38px, 3.7vw, 65px); font-weight: 400; line-height: 1.42; letter-spacing: .035em; text-shadow: 0 2px 28px #0009, 0 0 100px #0004; }
.scene-copy h1>span, .scene-copy h2>span { color: #dccca9; }
.whisper { color: #c2c8ba; font-size: 12px; line-height: 2.1; letter-spacing: .12em; margin-top: 27px; text-shadow: 0 1px 16px #000; }
.scene-origin .eyebrow { font-size: 8px; color: #969d8d; letter-spacing: .22em; }
.scene-origin h1 { font-size: clamp(42px, 4.8vw, 80px); letter-spacing: .09em; }
.scene-origin .whisper { color: #909e8c; font-size: 11px; margin-top: 26px; }
.scene-origin .scene-copy { top: 60%; }
.scene-becoming .whisper { color: #cdc7b7; }
.split-copy h2 span { display: block; }
.split-copy h2 .line-left { color: #e4e7dd; }
.split-copy h2 .line-right { margin-top: 8px; color: #bfcbbd; }
.scene-home .scene-copy { top: 61%; }
.scene-home h2 { font-size: clamp(38px, 4.2vw, 72px); }
.scene-home h2 span { color: #dfcfad; }
.scene-home .whisper { font-size: 12px; color: #b6bcaa; margin-top: 24px; }
.portal-link { position: absolute; left: 50%; top: 34%; z-index: 4; width: 210px; height: 210px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.portal-link:after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #e0d5ab19, transparent 68%); opacity: 0; transition: opacity .5s; }
.portal-link:hover:after, .portal-link:focus-visible:after { opacity: 1; }
.entry-link { position: absolute; left: 50%; bottom: max(72px, calc(env(safe-area-inset-bottom) + 32px)); z-index: 4; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; min-width: 174px; min-height: 48px; padding: 11px 24px; overflow: hidden; isolation: isolate; border: 1px solid #d9ceaa70; border-radius: 28px; background: #cfbd8710; color: #e6dec7; font-size: 12px; letter-spacing: .18em; pointer-events: auto; transition: transform 1.15s cubic-bezier(.16,.84,.24,1), background 1.1s ease, border-color 1.1s ease, box-shadow 1.1s ease; }
.entry-link:before { content: ""; position: absolute; z-index: 1; top: -55%; bottom: -55%; left: -80%; width: 54%; pointer-events: none; opacity: 0; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, #fff6d85c 48%, #e3ce8e24 68%, transparent); filter: blur(1px); }
.entry-link:after { content: ""; position: absolute; z-index: 1; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 22%, #fff3c3 45%, #d8bb6e 53%, transparent 76%) 120% 0 / 250% 100% no-repeat; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.entry-link>span { position: relative; z-index: 2; }
.entry-link .entry-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.entry-link .entry-arrow { position: absolute; right: 21px; top: 50%; transform: translateY(-50%); font-size: 16px; line-height: 1; letter-spacing: 0; transition: transform 1.15s cubic-bezier(.16,.84,.24,1), opacity 1.1s ease; }
.entry-link:hover, .entry-link:focus-visible { transform: translate(-50%, -4px) scale(1.012); background: #cfbd8720; border-color: #e8d7a5b0; box-shadow: 0 9px 32px #03080680, 0 0 32px #cbbb781a; }
.entry-link:hover .entry-arrow, .entry-link:focus-visible .entry-arrow { transform: translate(2px, -50%); opacity: .92; }
.entry-link:hover:before, .entry-link:focus-visible:before { animation: entry-sweep 2.8s cubic-bezier(.22,.62,.2,1) both; }
.entry-link:hover:after, .entry-link:focus-visible:after { animation: entry-border-sweep 3.15s ease-in-out both; }

.scroll-cue { position: absolute; bottom: max(32px, env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; flex-direction: column; gap: 13px; transform: translateX(-50%); z-index: 4; pointer-events: none; }
.cue-label { font-size: 9px; letter-spacing: .18em; color: #afb6a6; }
.cue-line { display: block; height: 34px; width: 1px; background: #c4c7b72b; overflow: hidden; }
.cue-line i { display: block; width: 100%; height: 18px; background: linear-gradient(transparent, #d7d8bf); animation: scroll-light 2.4s ease-in-out infinite; }
@keyframes scroll-light { 0% { transform: translateY(-22px); } 75%, 100% { transform: translateY(36px); } }
@keyframes entry-sweep {
  0% { left: -80%; opacity: 0; }
  20% { opacity: .52; }
  76% { opacity: .28; }
  100% { left: 132%; opacity: 0; }
}
@keyframes entry-border-sweep {
  0% { opacity: 0; background-position: 120% 0; }
  20% { opacity: .7; }
  78% { opacity: .45; }
  100% { opacity: 0; background-position: -105% 0; }
}
.sound-toggle { position: absolute; bottom: max(39px, calc(env(safe-area-inset-bottom) + 22px)); left: var(--edge); z-index: 6; display: inline-flex; align-items: center; gap: 10px; min-width: 70px; padding: 8px 0; border: 0; background: transparent; opacity: .62; cursor: pointer; transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.24,1); }
.sound-toggle:hover, .sound-toggle:focus-visible { opacity: 1; transform: translateY(-2px); }
.sound-toggle:disabled { opacity: .28; cursor: default; }
.sound-bars { position: relative; width: 15px; height: 13px; display: flex; align-items: center; justify-content: space-between; }
.sound-bars i { display: block; width: 1px; height: 32%; border-radius: 1px; background: #d5d8c6; transform-origin: center; }
.sound-bars i:nth-child(2) { height: 72%; }
.sound-bars i:nth-child(3) { height: 100%; }
.sound-bars i:nth-child(4) { height: 52%; }
.sound-toggle[data-audio-state="playing"] .sound-bars i { animation: sound-breathe 2.8s ease-in-out infinite alternate; }
.sound-toggle[data-audio-state="playing"] .sound-bars i:nth-child(2) { animation-delay: -.8s; }
.sound-toggle[data-audio-state="playing"] .sound-bars i:nth-child(3) { animation-delay: -1.6s; }
.sound-toggle[data-audio-state="playing"] .sound-bars i:nth-child(4) { animation-delay: -2.2s; }
.sound-toggle[data-audio-state="muted"] .sound-bars { opacity: .46; }
.sound-toggle[data-audio-state="muted"] .sound-bars:after { content: ""; position: absolute; left: -1px; top: 6px; width: 17px; height: 1px; background: #aeb3a4; transform: rotate(-34deg); transform-origin: center; }
.sound-label { color: #aab1a2; font-size: 8px; line-height: 1; letter-spacing: .18em; white-space: nowrap; }
@keyframes sound-breathe { 0% { transform: scaleY(.42); opacity: .55; } 100% { transform: scaleY(1); opacity: 1; } }

.journey-progress { position: absolute; bottom: max(39px, calc(env(safe-area-inset-bottom) + 22px)); right: var(--edge); display: flex; align-items: center; gap: 15px; z-index: 6; }
.progress-count { display: flex; gap: 9px; font-size: 9px; letter-spacing: .12em; }
.progress-count b { color: #d4d8c8; font-weight: 400; }
.progress-count i { color: #777f74; font-style: normal; }
.progress-track { position: relative; width: 132px; height: 22px; cursor: pointer; touch-action: manipulation; }
.progress-line { position: absolute; left: 0; right: 0; top: 50%; display: block; height: 1px; background: #cbd0b826; transform: translateY(-50%); }
.progress-line i { display: block; height: 100%; background: #d2ccb0; transform: scaleX(0); transform-origin: left; }
.chapter-jump { position: absolute; left: calc(var(--stop) * 100%); top: 50%; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; }
.chapter-jump:before { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #777f74; transform: translate(-50%, -50%); transition: width .7s ease, height .7s ease, background .7s ease, box-shadow .7s ease; }
.chapter-jump:hover:before, .chapter-jump:focus-visible:before { width: 5px; height: 5px; background: #e0dcc6; }
.chapter-jump[aria-current="step"]:before { width: 6px; height: 6px; background: #ece7d0; box-shadow: 0 0 0 4px #d6ccaa12, 0 0 15px #e5dab15e; }
.no-script { position: fixed; inset: 0; z-index: 20; background: #09100d; display: flex; gap: 28px; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
.no-script h1 { font: 400 36px/1.6 var(--serif); }
.no-script a { border-bottom: 1px solid #b5b995; padding: 10px; }

@media (min-width: 1900px) {
  .scene-copy { max-width: 1400px; }
  .scene-copy h1, .scene-copy h2 { font-size: 72px; }
}
@media (max-width: 700px) {
  :root { --edge: 24px; }
  .topline { top: max(25px, env(safe-area-inset-top)); }
  .topline>p { font-size: 6px; letter-spacing: .13em; }
  .brand { gap: 8px; }
  .brand svg { width: 23px; height: 23px; }
  .brand span { font-size: 21px; }
  .scene-copy { width: calc(100% - 42px); top: 69%; }
  .scene-copy h1, .scene-copy h2, .scene-home h2 { font-size: clamp(30px, 7.8vw, 52px); line-height: 1.55; letter-spacing: .015em; }
  .scene-origin h1 { font-size: clamp(31px, 8.4vw, 52px); letter-spacing: .06em; }
  .eyebrow { font-size: 8px; margin-bottom: 23px; letter-spacing: .21em; }
  .scene-origin .eyebrow { font-size: 6px; letter-spacing: .16em; }
  .whisper, .scene-home .whisper { font-size: 10px; line-height: 2.1; margin-top: 22px; letter-spacing: .05em; }
  .scene-origin .whisper { font-size: 10px; }
  .light-source { top: 32%; }
  .portal-link { top: 32%; width: 154px; height: 154px; }
  .entry-link { bottom: max(70px, calc(env(safe-area-inset-bottom) + 46px)); min-width: 160px; min-height: 46px; font-size: 11px; }
  .sound-toggle { bottom: max(22px, calc(env(safe-area-inset-bottom) + 17px)); }
  .journey-progress { bottom: max(20px, calc(env(safe-area-inset-bottom) + 15px)); flex-direction: column; align-items: flex-end; gap: 2px; }
  .progress-track { width: 92px; height: 18px; }
  .chapter-jump { width: 18px; height: 18px; }
  .progress-count { font-size: 8px; gap: 5px; }
  .scroll-cue { bottom: 27px; gap: 11px; }
  .cue-label { font-size: 8px; }
  .cue-line { height: 25px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .topline { top: 21px; }
  .scene-copy { top: 65%; }
  .scene-copy h1, .scene-copy h2 { font-size: 25px; line-height: 1.35; }
  .eyebrow { margin-bottom: 9px; font-size: 7px; }
  .whisper, .scene-home .whisper { margin-top: 9px; font-size: 9px; line-height: 1.7; }
  .light-source { top: 29%; }
  .portal-link { top: 29%; width: 88px; height: 88px; }
  .entry-link { bottom: max(22px, env(safe-area-inset-bottom)); min-height: 38px; min-width: 152px; padding: 6px 21px; font-size: 10px; }
  .scroll-cue { bottom: 16px; gap: 7px; }
  .cue-line { height: 18px; }
  .sound-toggle, .journey-progress { bottom: max(25px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .cue-line i { transform: translateY(10px); }
}
