:root {
  --ink: #0a0907;
  --paper: #eadfca;
  --muted: rgba(234, 223, 202, 0.6);
  --muted-2: rgba(234, 223, 202, 0.26);
  --cyan: #b9974f;
  --cyan-bright: #e0c37a;
  --amber: #765630;
  --violet: #4a3520;
  --line: rgba(210, 179, 116, 0.2);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mx: 50%;
  --my: 50%;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--paper); }
body { overflow: hidden; font-family: Arial, Helvetica, sans-serif; cursor: crosshair; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 1px solid var(--cyan); outline-offset: 5px; }

.loading-screen { position: fixed; inset: 0; z-index: 30; background: #0d0b08; display: grid; place-items: center; align-content: center; gap: 18px; transition: opacity .8s var(--ease-out), visibility .8s; }
.loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-mark { width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; position: relative; font: 600 12px/1 monospace; letter-spacing: .18em; }
.loading-mark i { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid transparent; border-top-color: var(--cyan); animation: spin 1.3s linear infinite; }
.loading-screen p, .loading-screen small { margin: 0; font: 10px/1 monospace; letter-spacing: .26em; color: var(--muted); }
.loading-track { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loading-track span { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .15s linear; }

#glCanvas, #sceneCanvas { position: fixed; inset: 0; width: 100%; height: 100%; }
#glCanvas { z-index: 0; opacity: .9; mix-blend-mode: screen; }
#sceneCanvas { z-index: 1; opacity: .52; }
#inkCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: .72; pointer-events: none; mix-blend-mode: screen; }
body[data-scene="archive"] #glCanvas, body[data-scene="archive"] #sceneCanvas { transform: scale(1.1) rotate(-1deg); transition: transform 1.4s var(--ease-out); }
body[data-scene="method"] #glCanvas, body[data-scene="method"] #sceneCanvas { transform: scale(.92) rotate(1.2deg); transition: transform 1.4s var(--ease-out); }
body[data-scene="home"] #glCanvas, body[data-scene="home"] #sceneCanvas { transform: scale(1) rotate(0); transition: transform 1.4s var(--ease-out); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), transparent 0 19%, rgba(0, 0, 0, .16) 45%, rgba(0, 0, 0, .88) 100%); }
.grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: .06; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); animation: grain .18s steps(2) infinite; }

.site-shell { position: relative; z-index: 3; min-height: 100vh; transition: filter .6s var(--ease-out); }
.site-shell.is-dimmed { filter: blur(4px) brightness(.45); }
.transition-flash { display: none; }
.travel-stage { position: fixed; z-index: 13; inset: 0; overflow: hidden; pointer-events: none; visibility: hidden; opacity: 0; perspective: 1100px; background: radial-gradient(ellipse at 50% 48%, rgba(54,39,17,.18), rgba(5,4,3,.78) 72%, rgba(2,2,1,.94)); }
.travel-stage::before, .travel-stage::after { content: ""; position: absolute; inset: -18%; pointer-events: none; }
.travel-stage::before { background: radial-gradient(ellipse at 50% 50%, transparent 12%, rgba(185,151,79,.12) 38%, transparent 66%), repeating-linear-gradient(108deg, transparent 0 15%, rgba(185,151,79,.035) 15.2% 15.5%, transparent 16% 32%); mix-blend-mode: screen; transform: scale(.55); }
.travel-stage::after { background: radial-gradient(ellipse at 50% 50%, transparent 0 31%, rgba(2,2,1,.52) 78%, rgba(2,2,1,.92) 100%); }
body.is-traveling .travel-stage { visibility: visible; opacity: 1; }
.travel-horizon { position: absolute; left: 50%; top: 51%; width: 27vw; height: 11vw; min-width: 230px; min-height: 95px; border: 1px solid rgba(224,195,122,.25); border-radius: 50%; transform: translate(-50%, -50%) rotate(-8deg); box-shadow: 0 0 55px rgba(185,151,79,.13), inset 0 0 35px rgba(185,151,79,.08); opacity: .5; }
.travel-horizon::before, .travel-horizon::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(185,151,79,.12); border-radius: 50%; }
.travel-horizon::after { inset: 29%; border-color: rgba(234,223,202,.1); }
.travel-rings { position: absolute; inset: -12%; transform-style: preserve-3d; }
.travel-ring { position: absolute; left: 50%; top: 50%; display: block; width: 68vw; height: 30vw; min-width: 440px; min-height: 190px; border: 1px solid rgba(185,151,79,.13); border-radius: 50%; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-18deg); box-shadow: 0 0 36px rgba(185,151,79,.08); opacity: 0; }
.ring-b { width: 42vw; height: 19vw; transform: translate(-50%, -50%) rotateX(67deg) rotateZ(26deg); border-color: rgba(234,223,202,.1); }
.ring-c { width: 92vw; height: 40vw; transform: translate(-50%, -50%) rotateX(69deg) rotateZ(6deg); border-color: rgba(126,92,49,.14); }
.travel-streaks { position: absolute; inset: -15%; transform-style: preserve-3d; }
.travel-streaks i { position: absolute; top: 50%; width: 1px; height: 32vh; display: block; transform-origin: 50% 100%; background: linear-gradient(180deg, transparent, rgba(224,195,122,.48) 45%, rgba(126,92,49,.18) 82%, transparent); opacity: 0; filter: blur(.2px); }
.travel-streaks i:nth-child(1) { left: 8%; --delay: .02s; transform: rotate(-18deg); }
.travel-streaks i:nth-child(2) { left: 17%; --delay: .15s; height: 25vh; transform: rotate(-12deg); }
.travel-streaks i:nth-child(3) { left: 26%; --delay: .28s; height: 45vh; transform: rotate(-8deg); }
.travel-streaks i:nth-child(4) { left: 35%; --delay: .08s; height: 21vh; transform: rotate(-4deg); }
.travel-streaks i:nth-child(5) { left: 43%; --delay: .36s; height: 38vh; transform: rotate(-2deg); }
.travel-streaks i:nth-child(6) { left: 50%; --delay: .11s; height: 49vh; background: linear-gradient(180deg, transparent, rgba(234,223,202,.32) 42%, transparent); }
.travel-streaks i:nth-child(7) { left: 57%; --delay: .24s; height: 34vh; transform: rotate(3deg); }
.travel-streaks i:nth-child(8) { left: 65%; --delay: .04s; height: 44vh; transform: rotate(7deg); }
.travel-streaks i:nth-child(9) { left: 74%; --delay: .31s; height: 23vh; transform: rotate(11deg); }
.travel-streaks i:nth-child(10) { left: 83%; --delay: .18s; height: 39vh; transform: rotate(16deg); }
.travel-streaks i:nth-child(11) { left: 91%; --delay: .42s; height: 28vh; transform: rotate(20deg); }
.travel-streaks i:nth-child(12) { left: 97%; --delay: .22s; height: 52vh; transform: rotate(24deg); }
.travel-fragments { position: absolute; inset: 0; transform-style: preserve-3d; }
.travel-fragments span { position: absolute; display: block; color: rgba(224,195,122,.46); font: 400 clamp(28px, 5vw, 76px)/1 Georgia, serif; text-shadow: 0 0 24px rgba(185,151,79,.2); opacity: 0; }
.travel-fragments span:nth-child(1) { left: 11%; top: 23%; --delay: .16s; transform: rotate(-12deg); }
.travel-fragments span:nth-child(2) { left: 74%; top: 19%; --delay: .3s; transform: rotate(9deg); }
.travel-fragments span:nth-child(3) { left: 18%; top: 66%; --delay: .42s; transform: rotate(7deg); }
.travel-fragments span:nth-child(4) { left: 78%; top: 68%; --delay: .24s; transform: rotate(-8deg); }
.travel-fragments span:nth-child(5) { left: 43%; top: 14%; --delay: .5s; transform: rotate(-4deg); }
.travel-fragments span:nth-child(6) { left: 48%; top: 76%; --delay: .36s; transform: rotate(12deg); }
body.is-traveling.travel-forward .travel-stage { animation: travelStageForward 1.95s var(--ease-out) both; }
body.is-traveling.travel-reverse .travel-stage { animation: travelStageReverse 1.85s var(--ease-out) both; }
body.is-traveling.travel-forward .travel-ring { animation: ringForward 1.9s var(--ease-out) both; }
body.is-traveling.travel-reverse .travel-ring { animation: ringReverse 1.8s var(--ease-out) both; }
body.is-traveling.travel-forward .travel-streaks i { animation: streakForward 1.75s cubic-bezier(.16,.72,.2,1) var(--delay) both; }
body.is-traveling.travel-reverse .travel-streaks i { animation: streakReverse 1.6s cubic-bezier(.18,.7,.22,1) var(--delay) both; }
body.is-traveling.travel-forward .travel-fragments span { animation: fragmentForward 1.7s cubic-bezier(.16,.72,.2,1) var(--delay) both; }
body.is-traveling.travel-reverse .travel-fragments span { animation: fragmentReverse 1.55s cubic-bezier(.18,.7,.22,1) var(--delay) both; }
body.is-traveling .scene { pointer-events: none !important; }
body.is-traveling.travel-forward .scene-home .hero-copy { animation: heroFragmentsForward 1.08s cubic-bezier(.22,.74,.18,1) both; }
body.is-traveling.travel-forward .scene-home .hero-copy h1 span { animation: titleFragmentA .98s cubic-bezier(.2,.76,.18,1) both; }
body.is-traveling.travel-forward .scene-home .hero-copy h1 i { animation: titleFragmentB 1.12s cubic-bezier(.2,.76,.18,1) .04s both; }
body.is-traveling.travel-forward .scene-home .hero-glyph { animation: heroGlyphForward 1.5s cubic-bezier(.2,.75,.18,1) both; }
body.is-traveling.travel-forward .scene-home .home-orbit { animation: orbitForward 1.75s cubic-bezier(.16,.72,.2,1) both; }
body.is-traveling.travel-forward .scene-home .home-footer { animation: footerForward 1.05s cubic-bezier(.22,.74,.18,1) both; }
body.is-traveling.travel-reverse .scene-archive { animation: archiveReverse 1.3s cubic-bezier(.2,.75,.18,1) both; }
body.is-traveling.travel-reverse.travel-arrive .scene-home.is-active { animation: homeLand 1s cubic-bezier(.2,.75,.18,1) both; }
body.is-traveling.travel-forward.travel-arrive .scene-archive.is-active { animation: archiveLand 1.05s cubic-bezier(.2,.8,.2,1) both; }
body.is-traveling.travel-forward.travel-arrive .scene-archive.is-active .archive-intro { animation: archiveIntroLand .95s cubic-bezier(.2,.8,.2,1) .08s both; }
body.is-traveling.travel-forward.travel-arrive .scene-archive.is-active .archive-grid { animation: archiveGridLand 1.2s cubic-bezier(.2,.8,.2,1) .16s both; }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 28px 38px; mix-blend-mode: screen; }
.wordmark { display: flex; align-items: center; gap: 11px; text-align: left; }
.wordmark-symbol { font-size: 22px; line-height: 1; color: var(--cyan); transform: rotate(45deg); display: inline-block; }
.wordmark-copy { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: .9; letter-spacing: .22em; }
.wordmark-copy em { color: var(--cyan); font-style: normal; }
.wordmark-index { color: var(--muted-2); font: 10px monospace; margin-left: 7px; }
.topbar-meta { position: absolute; left: 50%; transform: translateX(-50%); font: 9px monospace; letter-spacing: .25em; color: var(--muted); }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); margin-right: 8px; animation: pulse 1.8s ease-in-out infinite; }
.menu-toggle { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; gap: 5px; transition: border-color .3s, transform .3s; }
.menu-toggle:hover { border-color: var(--cyan); transform: rotate(90deg); }
.menu-toggle span { width: 13px; height: 1px; background: var(--paper); display: block; }

main { position: relative; min-height: 100vh; }
.scene { position: absolute; inset: 0; min-height: 100vh; padding: 120px 8vw 80px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(28px) scale(.985); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), visibility .8s; }
.scene.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.scene-home { display: flex; align-items: center; }
.scene-rail { position: fixed; z-index: 4; top: 50%; display: flex; align-items: center; gap: 12px; color: var(--muted-2); font: 9px monospace; letter-spacing: .22em; }
.scene-rail-left { left: 38px; transform: rotate(-90deg) translateX(-50%); transform-origin: left center; }
.scene-rail-right { right: 25px; transform: rotate(90deg) translateX(50%); transform-origin: right center; }
.rail-rule { width: 46px; height: 1px; background: var(--line); }
.rail-number { color: var(--cyan); }
.rail-label-vertical { color: var(--muted-2); }

.hero-copy { position: relative; z-index: 3; width: min(680px, 66vw); margin: 0 auto 0 9vw; }
.eyebrow { margin: 0 0 25px; color: var(--muted); font: 10px/1.4 monospace; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow span { color: var(--cyan); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(58px, 8.8vw, 140px); line-height: .82; letter-spacing: -.08em; font-weight: 400; }
h1 span, h1 i { display: block; }
h1 i, h2 i { color: var(--cyan); font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.07em; font-weight: 400; }
.hero-deck { width: 285px; margin-left: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.magnetic-button { display: inline-flex; align-items: center; gap: 28px; border: 1px solid rgba(185, 151, 79, .52); padding: 14px 17px 14px 19px; border-radius: 999px; color: var(--cyan-bright); font: 10px monospace; letter-spacing: .12em; transition: background .35s, border-color .35s, transform .35s var(--ease-out); }
.magnetic-button b { font-size: 16px; font-weight: 400; line-height: .7; }
.magnetic-button:hover { background: rgba(185, 151, 79, .12); border-color: var(--cyan); transform: translateY(-3px); }
.text-button { color: var(--muted); font: 11px monospace; letter-spacing: .08em; padding: 8px 0; transition: color .3s; }
.text-button span { margin-left: 7px; color: var(--cyan); font-size: 15px; }
.text-button:hover { color: var(--paper); }
.hero-glyph { position: absolute; z-index: 1; top: 50%; left: 58%; transform: translate(-50%, -55%) rotate(-12deg); color: rgba(185, 151, 79, .14); font-family: Georgia, serif; font-size: min(62vw, 700px); line-height: .8; pointer-events: none; text-shadow: 0 0 70px rgba(185,151,79,.16); animation: glyphFloat 9s ease-in-out infinite; }
.home-orbit { position: absolute; top: 50%; left: 63%; border: 1px solid rgba(185,151,79,.16); border-radius: 50%; pointer-events: none; }
.orbit-a { width: min(70vw, 820px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(22deg) skewX(-13deg); animation: orbitSpin 27s linear infinite; }
.orbit-b { width: min(38vw, 440px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-36deg) skewX(13deg); border-color: rgba(118,86,48,.22); animation: orbitSpin 18s linear reverse infinite; }
.home-footer { position: fixed; left: 8vw; right: 8vw; bottom: 34px; display: flex; align-items: end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; }
.status-block { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.status-block span, .scroll-cue span { color: var(--muted-2); font: 9px monospace; letter-spacing: .2em; }
.status-block b { font: 10px monospace; letter-spacing: .08em; font-weight: 400; }
.status-block b i { font-style: normal; color: var(--muted); }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { display: block; width: 45px; height: 1px; background: var(--cyan); position: relative; }
.scroll-cue i::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-right: 1px solid var(--cyan); border-top: 1px solid var(--cyan); transform: rotate(45deg); }

.scene-archive { padding-top: 128px; overflow: auto; }
.archive-intro { width: min(500px, 60vw); margin-left: 5vw; }
.archive-intro h2, .method-copy h2 { margin: 0 0 17px; font-size: clamp(46px, 6vw, 92px); line-height: .87; letter-spacing: -.08em; font-weight: 400; }
.archive-deck { width: 255px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.archive-controls { position: absolute; top: 136px; right: 8vw; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; max-width: 440px; }
.search-field { display: flex; align-items: center; gap: 10px; width: 250px; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--muted); }
.search-field span { font-size: 20px; transform: rotate(-20deg); }
.search-field input { width: 100%; background: none; border: 0; outline: none; color: var(--paper); font: 11px monospace; }
.search-field input::placeholder { color: var(--muted-2); }
.filter-button { padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 10px monospace; letter-spacing: .08em; transition: color .3s, border-color .3s, background .3s; }
.filter-button sup { color: var(--muted-2); margin-left: 3px; }
.filter-button:hover, .filter-button.active { color: var(--cyan); border-color: rgba(185,151,79,.68); background: rgba(185,151,79,.1); }
.archive-grid { margin: 62px 5vw 18px; display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 13px; padding-bottom: 28px; }
.myth-card { min-height: 270px; perspective: 900px; transition: opacity .45s, transform .6s var(--ease-out); }
.myth-card.is-hidden { display: none; }
.myth-card-open { --px: 0px; --py: 0px; --tilt-x: 0deg; --tilt-y: 0deg; --light-x: 50%; --light-y: 50%; --focus: 0; position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%; height: 270px; padding: 18px; text-align: left; border: 1px solid rgba(234,223,202,.2); background: linear-gradient(145deg, rgba(234,223,202,.08), rgba(234,223,202,.018)); transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(calc(7px + var(--focus) * 12px)); will-change: transform; transition: transform .5s var(--ease-out), border-color .35s, background .35s; }
.myth-card-open:hover { border-color: rgba(185,151,79,.76); background: rgba(185,151,79,.07); }
.card-index { position: relative; z-index: 5; display: block; color: var(--muted); font: 9px monospace; letter-spacing: .14em; transform: translate3d(calc(var(--px) * .9), calc(var(--py) * .9), 38px); transition: color .35s; }
.card-art { position: absolute; z-index: 0; inset: 0; pointer-events: none; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .58; filter: saturate(.64) sepia(.15) contrast(1.12) brightness(.72); mix-blend-mode: screen; transform: translate3d(calc(var(--px) * .72), calc(var(--py) * .72), -14px) scale(1.045); animation: cardArtDrift 15s ease-in-out infinite alternate; transition: opacity .55s var(--ease-out), filter .55s var(--ease-out); }
.card-art::before, .card-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.card-art::before { background: radial-gradient(ellipse at 48% 44%, transparent 18%, rgba(8,8,8,.13) 57%, rgba(8,8,8,.72) 100%); }
.card-art::after { background: linear-gradient(180deg, rgba(8,8,8,.62), transparent 22%, transparent 61%, rgba(8,8,8,.86)); opacity: .86; }
.card-yaoguai .card-art { background-image: url("assets/myth-card-art/yaoguai-fox.png"); }
.card-jingwei .card-art { background-image: url("assets/myth-card-art/jingwei-sea.png"); }
.card-erlang .card-art { background-image: url("assets/myth-card-art/erlang-third-eye.png"); }
.card-nuwa .card-art { background-image: url("assets/myth-card-art/nuwa-repair.png"); }
.card-baize .card-art { background-image: url("assets/myth-card-art/baize-knowing-beast.png"); }
.card-zhongkui .card-art { background-image: url("assets/myth-card-art/zhongkui-gatekeeper.png"); }
.myth-card-open:hover .card-art { opacity: .66; filter: saturate(.7) sepia(.13) contrast(1.13) brightness(.77); animation-play-state: paused; }
.card-atmosphere { position: absolute; z-index: 1; inset: -12%; pointer-events: none; background: radial-gradient(ellipse at 24% 28%, rgba(185,151,79,.12), transparent 42%), radial-gradient(ellipse at 75% 68%, rgba(74,61,42,.22), transparent 55%); opacity: .46; transform: translate3d(calc(var(--px) * .32), calc(var(--py) * .32), -36px) scale(1.08); transition: opacity .55s var(--ease-out); }
.card-glyph { position: absolute; z-index: 3; left: 50%; top: 43%; transform: translate3d(calc(-50% + var(--px) * 1.25), calc(-50% + var(--py) * 1.25), 24px) rotate(calc(-8deg + var(--tilt-y) * .12)) scale(calc(1 + var(--focus) * .04)); font: 155px/1 Georgia, serif; color: rgba(185,151,79,.22); text-shadow: 0 0 22px rgba(185,151,79,.12); transition: color .4s; }
.myth-card-open:hover .card-glyph { color: rgba(185,151,79,.36); }
.card-planet { position: absolute; z-index: 2; width: 120px; height: 120px; right: -20px; bottom: -32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(234,223,202,.16), rgba(185,151,79,.07) 50%, transparent 72%); filter: blur(1px); transform: translate3d(calc(var(--px) * .5), calc(var(--py) * .5), 10px); }
.card-light { position: absolute; z-index: 4; inset: -16%; pointer-events: none; opacity: calc(.12 + var(--focus) * .16); background: radial-gradient(circle at var(--light-x) var(--light-y), rgba(224,195,122,.2), transparent 28%), linear-gradient(112deg, transparent 34%, rgba(224,195,122,.08) 50%, transparent 67%); mix-blend-mode: screen; transform: translate3d(calc(var(--px) * .18), calc(var(--py) * .18), 30px); transition: opacity .5s var(--ease-out); }
.card-particles { position: absolute; z-index: 5; inset: 0; pointer-events: none; opacity: calc(.22 + var(--focus) * .52); transform: translate3d(calc(var(--px) * 1.8), calc(var(--py) * 1.8), 48px); transition: opacity .45s var(--ease-out); }
.card-particles i { position: absolute; display: block; width: 2px; height: 2px; border-radius: 50%; background: rgba(224,195,122,.68); box-shadow: 0 0 7px rgba(185,151,79,.3); }
.card-particles i:nth-child(1) { left: 23%; top: 32%; }
.card-particles i:nth-child(2) { left: 78%; top: 24%; width: 1px; height: 1px; }
.card-particles i:nth-child(3) { left: 69%; top: 72%; width: 1px; height: 1px; }
.card-foot { position: absolute; z-index: 6; bottom: 16px; left: 18px; display: flex; flex-direction: column; gap: 5px; transform: translate3d(calc(var(--px) * 1.5), calc(var(--py) * 1.5), 34px); }
.card-foot b { font: 15px monospace; letter-spacing: .16em; }
.card-foot small { color: var(--muted); font: 9px monospace; letter-spacing: .11em; }
.card-arrow { position: absolute; z-index: 6; right: 17px; bottom: 17px; font-size: 17px; color: var(--cyan); transform: translate3d(calc(var(--px) * 1.5), calc(var(--py) * 1.5), 34px); }
.myth-card.is-near-focus { opacity: .7; transform: translate3d(0, 2px, -14px) scale(.975); }
.myth-card.is-hovered .myth-card-open { border-color: rgba(185,151,79,.76); }
.card-jingwei .card-glyph, .card-nuwa .card-glyph { color: rgba(126,92,49,.36); }
.card-erlang .card-glyph { color: rgba(154,116,52,.4); }
.card-baize .card-glyph { color: rgba(234,223,202,.28); }
.archive-empty { margin: 60px 5vw; color: var(--muted); font: 11px monospace; }

.scene-method { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto 1fr auto; column-gap: 10vw; padding-left: 13vw; padding-right: 13vw; }
.method-topline { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted-2); font: 9px monospace; letter-spacing: .2em; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.method-copy { align-self: center; }
.method-copy h2 { font-size: clamp(58px, 8vw, 120px); }
.method-copy p:last-child { width: 280px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.method-steps { align-self: center; display: flex; flex-direction: column; gap: 2px; }
.method-step { display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; gap: 4px 13px; padding: 17px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted-2); transition: color .3s, padding-left .4s var(--ease-out); }
.method-step span { grid-row: 1 / 3; color: var(--muted-2); font: 10px monospace; }
.method-step b { font: 12px monospace; letter-spacing: .17em; }
.method-step small { font: 11px Arial, sans-serif; color: var(--muted-2); }
.method-step:hover, .method-step.active { color: var(--paper); padding-left: 10px; }
.method-step.active span, .method-step.active b { color: var(--cyan); }
.method-quote { align-self: end; color: var(--muted); font: italic 18px/1.35 Georgia, serif; max-width: 370px; }
.method-cta { align-self: end; justify-self: end; }

.site-footer { position: fixed; z-index: 5; left: 38px; right: 38px; bottom: 24px; display: flex; justify-content: space-between; color: var(--muted-2); font: 9px monospace; letter-spacing: .15em; pointer-events: none; }
.site-footer button { pointer-events: auto; color: var(--cyan); font: 9px monospace; letter-spacing: .15em; }
.site-footer i { color: var(--cyan); font-style: normal; }

.dossier { position: fixed; inset: 0; z-index: 18; visibility: hidden; pointer-events: none; }
.dossier.is-open { visibility: visible; pointer-events: auto; }
.dossier-backdrop { position: absolute; inset: 0; background: rgba(2,2,1,.78); opacity: 0; transition: opacity .6s; }
.dossier.is-open .dossier-backdrop { opacity: 1; }
.dossier-panel { position: absolute; top: 4vh; right: 4vw; bottom: 4vh; width: min(880px, 92vw); background: #110e09; border: 1px solid rgba(185,151,79,.3); display: grid; grid-template-columns: .9fr 1.1fr; transform: translateX(35px); opacity: 0; transition: transform .8s var(--ease-out), opacity .7s; overflow: hidden; }
.dossier.is-open .dossier-panel { transform: none; opacity: 1; }
.dossier-close { position: absolute; z-index: 4; right: 20px; top: 20px; color: var(--muted); font: 10px monospace; letter-spacing: .14em; }
.dossier-close span { display: inline-grid; place-items: center; margin-left: 10px; border: 1px solid var(--line); width: 26px; height: 26px; border-radius: 50%; font-size: 18px; font-family: Arial; }
.dossier-art { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 45% 45%, rgba(185,151,79,.15), transparent 55%), linear-gradient(140deg, rgba(185,151,79,.08), rgba(118,86,48,.07)); }
.dossier-art::before, .dossier-art::after { content: ''; position: absolute; width: 75%; aspect-ratio: 1; border: 1px solid rgba(185,151,79,.23); border-radius: 50%; transform: rotate(23deg) skewX(-15deg); }
.dossier-art::after { width: 45%; border-color: rgba(118,86,48,.4); transform: rotate(-34deg) skewX(12deg); }
.dossier-glyph { position: relative; z-index: 2; color: var(--cyan); font: 240px/1 Georgia, serif; opacity: .58; text-shadow: 0 0 60px rgba(185,151,79,.3); animation: glyphFloat 8s ease-in-out infinite; }
.dossier-orbit { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); animation: orbitDot 6s linear infinite; }
.dossier-body { display: flex; flex-direction: column; padding: 112px 62px 42px; }
.dossier-body h2 { margin: 0; font: 38px/1 monospace; letter-spacing: .06em; }
.dossier-subtitle { margin: 10px 0 45px; color: var(--cyan); font: 11px monospace; letter-spacing: .15em; }
.dossier-text { max-width: 360px; margin: 0; color: var(--muted); font: 18px/1.45 Georgia, serif; }
.dossier-meta { display: flex; gap: 40px; margin-top: auto; padding: 20px 0; border-top: 1px solid var(--line); }
.dossier-meta span { display: flex; flex-direction: column; gap: 8px; }
.dossier-meta small { color: var(--muted-2); font: 9px monospace; letter-spacing: .14em; }
.dossier-meta b { font: 11px monospace; letter-spacing: .05em; font-weight: 400; }
.dossier-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 17px; color: var(--muted-2); font: 9px monospace; }

/* The dossier stays a cinematic reading surface while making the research
   legible and spoiler-safe. */
.dossier-body { overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(192,156,84,.35) transparent; }
.dossier-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.dossier-heading .dossier-subtitle { margin-bottom: 0; }
.spoiler-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; padding-top: 2px; min-width: 152px; }
.spoiler-toggle { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); cursor: pointer; }
.spoiler-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.spoiler-toggle > span:last-child { display: flex; flex-direction: column; gap: 2px; text-align: right; font: 9px/1.1 monospace; letter-spacing: .13em; }
.spoiler-toggle small { color: var(--cyan); font: 9px monospace; letter-spacing: .18em; }
.toggle-track { position: relative; display: inline-block; width: 31px; height: 16px; border: 1px solid rgba(194,158,87,.55); border-radius: 99px; }
.toggle-track i { position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); transition: transform .25s ease, background .25s ease; }
.spoiler-toggle input:not(:checked) + .toggle-track i { transform: translateX(15px); background: var(--muted); }
.progress-control { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font: 9px monospace; letter-spacing: .12em; }
.progress-control select { max-width: 118px; border: 1px solid var(--line); border-radius: 0; padding: 5px 6px; color: var(--muted); background: rgba(10,9,7,.72); font: 10px monospace; }
.dossier-reading { display: flex; flex-direction: column; gap: 24px; margin-top: 34px; padding-right: 10px; }
.dossier-section { padding-top: 17px; border-top: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 11px; color: var(--muted-2); font: 9px monospace; letter-spacing: .13em; }
.section-label em { color: rgba(194,158,87,.8); font-style: normal; font-size: 8px; }
.dossier-section > p, .game-context-content, .spoiler-gate { max-width: 600px; margin: 0; color: var(--muted); font: 15px/1.55 Georgia, serif; }
.dossier-section > p strong, .game-context-content strong { color: var(--paper); font-weight: 400; }
.game-context-content:empty { display: none; }
.spoiler-gate { padding: 16px 17px; border: 1px solid rgba(194,158,87,.26); background: linear-gradient(120deg, rgba(194,158,87,.06), rgba(8,7,5,.2)); }
.spoiler-gate .gate-title { margin: 0 0 7px; color: var(--cyan); font: 10px monospace; letter-spacing: .15em; }
.spoiler-gate p:not(.gate-title) { margin: 0; color: var(--muted-2); font: 13px/1.45 monospace; }
.reveal-button { margin-top: 13px; color: var(--cyan); }
.dossier-sources ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.dossier-sources li { padding-left: 14px; position: relative; color: var(--muted-2); font: 11px/1.45 monospace; }
.dossier-sources li::before { content: '↗'; position: absolute; left: 0; color: var(--cyan); }
.dossier-sources a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(194,158,87,.25); }
.dossier-sources a:hover { color: var(--cyan); }
.dossier-body .dossier-meta { margin-top: 28px; }
.dossier-body .dossier-footer { margin-top: 20px; }

/* Card-to-dossier camera move. The selected artwork travels on its own layer;
   the archive remains underneath so the reading surface feels like a landing
   point in the same world rather than a replacement modal. */
.dossier-art-image { position: absolute; inset: -8%; z-index: 0; background-image: var(--dossier-art-image, none); background-position: center; background-size: cover; opacity: .34; filter: saturate(.42) sepia(.28) contrast(1.12) brightness(.62); mix-blend-mode: screen; transform: scale(1.16); -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0 36%, transparent 83%); mask-image: radial-gradient(ellipse at 50% 45%, #000 0 36%, transparent 83%); }
.dossier-art::before { z-index: 1; }
.dossier-glyph, .dossier-orbit { z-index: 2; }
.dossier-glyph { opacity: .76; }
.dossier-panel { transform-origin: 50% 56%; }
.dossier.is-open .dossier-panel { animation: dossierPanelLand .95s cubic-bezier(.16,.8,.2,1) both; }
.dossier.is-closing .dossier-panel { animation: dossierPanelLeave .65s cubic-bezier(.65,.05,.8,.2) both; }
.dossier.is-open .dossier-art-image { animation: dossierArtworkReveal 1.15s cubic-bezier(.16,.72,.2,1) .08s both; }
.dossier.is-open .dossier-glyph { animation: dossierGlyphReveal 1s cubic-bezier(.16,.72,.2,1) .12s both; }
.dossier.is-open .dossier-orbit { animation: dossierOrbitReveal 1.1s cubic-bezier(.16,.72,.2,1) .18s both, orbitDot 6s linear 1.25s infinite; }
.dossier.is-open .dossier-heading > div:first-child { animation: dossierHeadingReveal .72s cubic-bezier(.16,.72,.2,1) .26s both; }
.dossier.is-open .spoiler-controls { animation: dossierControlsReveal .62s cubic-bezier(.16,.72,.2,1) .42s both; }
.dossier.is-open .dossier-section { animation: dossierSectionReveal .68s cubic-bezier(.16,.72,.2,1) both; }
.dossier.is-open .dossier-section:nth-child(1) { animation-delay: .38s; }
.dossier.is-open .dossier-section:nth-child(2) { animation-delay: .47s; }
.dossier.is-open .dossier-section:nth-child(3) { animation-delay: .56s; }
.dossier.is-open .dossier-section:nth-child(4) { animation-delay: .65s; }
.dossier.is-open .dossier-section:nth-child(5) { animation-delay: .74s; }
.dossier.is-open .dossier-meta, .dossier.is-open .dossier-footer { animation: dossierSectionReveal .68s cubic-bezier(.16,.72,.2,1) .82s both; }
.dossier-flight { position: fixed; z-index: 25; left: var(--flight-left); top: var(--flight-top); width: var(--flight-width); height: var(--flight-height); overflow: hidden; pointer-events: none; border: 1px solid rgba(224,195,122,.7); background: #0d0b08 var(--flight-art) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(185,151,79,.14), 0 24px 90px rgba(0,0,0,.64); transform-origin: 50% 50%; transform: translate3d(0,0,0) scale(1); transition: transform 1.02s cubic-bezier(.12,.76,.16,1), filter 1.02s cubic-bezier(.12,.76,.16,1), border-color .7s ease; }
.dossier-flight::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 10%, rgba(8,7,5,.2) 58%, rgba(8,7,5,.84) 100%), linear-gradient(180deg, rgba(8,7,5,.25), transparent 35%, rgba(8,7,5,.82)); }
.dossier-flight::after { content: ''; position: absolute; inset: 10%; border: 1px solid rgba(224,195,122,.2); transform: rotate(-7deg) scale(.86); }
.dossier-flight .flight-glyph { position: absolute; z-index: 1; left: 50%; top: 45%; color: rgba(224,195,122,.55); font: 150px/1 Georgia, serif; transform: translate(-50%,-50%) rotate(-8deg); text-shadow: 0 0 30px rgba(185,151,79,.18); }
.dossier-flight .flight-name { position: absolute; z-index: 1; left: 18px; bottom: 16px; color: var(--paper); font: 13px monospace; letter-spacing: .14em; }
.dossier-flight.is-travelling { transform: translate3d(var(--flight-dx),var(--flight-dy),0) scale(var(--flight-scale)) rotate(var(--flight-rotate)); filter: saturate(.72) brightness(1.18) contrast(1.05); border-color: rgba(234,223,202,.72); }
body.is-dossier-opening .scene-archive.is-active { transform: perspective(1200px) translateZ(55px) scale(1.055); filter: blur(.7px) brightness(.62); transition: transform 1.05s cubic-bezier(.12,.76,.16,1), filter .7s ease; }
body.is-dossier-opening .archive-intro, body.is-dossier-opening .archive-controls { opacity: .18; transform: translate3d(0,-2vh,-80px); filter: blur(2px); transition: opacity .55s ease, transform .95s cubic-bezier(.12,.76,.16,1), filter .7s ease; }
body.is-dossier-opening .myth-card { opacity: .12; filter: blur(2.5px) saturate(.5); transform: translate3d(0,2vh,-120px) scale(.78) rotateX(7deg); transition: opacity .62s ease, filter .78s ease, transform 1s cubic-bezier(.12,.76,.16,1); }
body.is-dossier-opening .myth-card.is-selected { opacity: .02; transform: translate3d(0,0,120px) scale(1.1); }
body.is-dossier-closing .scene-archive.is-active { transform: perspective(1200px) translateZ(30px) scale(1.025); filter: blur(.35px) brightness(.82); transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .55s ease; }
.dossier.is-closing .dossier-backdrop { opacity: .18; transition: opacity .62s ease; }

@keyframes dossierPanelLand { 0% { opacity: 0; transform: translate3d(0,12vh,-180px) scale(.86) rotateX(2deg); filter: blur(4px); } 52% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes dossierPanelLeave { 0% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translate3d(0,8vh,-150px) scale(.9); filter: blur(3px); } }
@keyframes dossierArtworkReveal { 0% { opacity: 0; transform: scale(1.36) translate3d(0,3%,0); filter: saturate(.18) sepia(.5) contrast(1.4) brightness(.3); } 100% { opacity: .34; transform: scale(1.02); filter: saturate(.42) sepia(.28) contrast(1.12) brightness(.62); } }
@keyframes dossierGlyphReveal { 0% { opacity: 0; transform: translate(-50%,-40%) scale(1.42) rotate(-18deg); filter: blur(8px); } 62% { opacity: .74; } 100% { opacity: .76; transform: translate(-50%,-55%) scale(1) rotate(-8deg); filter: blur(0); } }
@keyframes dossierOrbitReveal { 0% { opacity: 0; transform: scale(.2) rotate(-40deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes dossierHeadingReveal { 0% { opacity: 0; transform: translate3d(3vw,3vh,0); filter: blur(5px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes dossierControlsReveal { 0% { opacity: 0; transform: translate3d(1vw,2vh,0); } 100% { opacity: 1; transform: none; } }
@keyframes dossierSectionReveal { 0% { opacity: 0; transform: translate3d(2vw,3vh,0); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }

.menu-panel { position: fixed; inset: 0; z-index: 7; background: rgba(7,6,4,.96); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility .5s; }
.menu-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-panel-inner { width: min(560px, 80vw); margin: 25vh auto 0; }
.menu-link { display: flex; align-items: center; gap: 24px; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--paper); text-align: left; font: 42px/1 monospace; letter-spacing: -.05em; transition: color .3s, padding-left .4s var(--ease-out); }
.menu-link span { color: var(--muted-2); font: 10px monospace; letter-spacing: .1em; }
.menu-link i { margin-left: auto; color: var(--cyan); font-style: normal; font-size: 28px; }
.menu-link:hover { color: var(--cyan); padding-left: 14px; }
.menu-note { margin-top: 55px; color: var(--muted); font: italic 24px/1.15 Georgia, serif; }

[data-theme="ember"] { --cyan: #a8783a; --cyan-bright: #d7af63; --amber: #704d28; }
[data-theme="ember"] .hero-glyph, [data-theme="ember"] .dossier-glyph { color: rgba(168,120,58,.22); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.65); } }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(3%,-2%); } 50% { transform: translate(-2%,3%); } 75% { transform: translate(-3%,-1%); } 100% { transform: translate(1%,2%); } }
@keyframes glyphFloat { 0%,100% { transform: translate(-50%, -55%) rotate(-12deg) scale(1); } 50% { transform: translate(-50%, -52%) rotate(-7deg) scale(1.025); } }
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(382deg) skewX(-13deg); } }
@keyframes orbitDot { to { transform: rotate(360deg) translateX(155px) rotate(-360deg); } }
@keyframes sceneCut { 0% { opacity: 0; transform: scale(.7); } 18% { opacity: .85; } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes cardArtDrift { from { transform: translate3d(calc(var(--px) * .72 - .35%), calc(var(--py) * .72 + .25%), -14px) scale(1.045); } to { transform: translate3d(calc(var(--px) * .72 + .5%), calc(var(--py) * .72 - .45%), -14px) scale(1.075); } }
@keyframes travelStageForward { 0% { opacity: .08; transform: scale(.72); } 22% { opacity: .46; transform: scale(.92); } 67% { opacity: .88; transform: scale(1.04); } 100% { opacity: .98; transform: scale(1); } }
@keyframes travelStageReverse { 0% { opacity: .96; transform: scale(1); } 42% { opacity: .82; transform: scale(1.04); } 78% { opacity: .38; transform: scale(.9); } 100% { opacity: .04; transform: scale(.72); } }
@keyframes ringForward { 0% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-18deg) scale(.16); } 28% { opacity: .54; } 100% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(32deg) scale(2.8); } }
@keyframes ringReverse { 0% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(32deg) scale(2.6); } 35% { opacity: .5; } 100% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-18deg) scale(.12); } }
@keyframes streakForward { 0% { opacity: 0; transform: translate3d(0, 18vh, -700px) scaleY(.15); } 18% { opacity: .28; } 66% { opacity: .86; } 100% { opacity: 0; transform: translate3d(0, -8vh, 520px) scaleY(4.8); } }
@keyframes streakReverse { 0% { opacity: 0; transform: translate3d(0, -8vh, 480px) scaleY(4.4); } 25% { opacity: .74; } 100% { opacity: 0; transform: translate3d(0, 18vh, -680px) scaleY(.12); } }
@keyframes fragmentForward { 0% { opacity: 0; transform: translate3d(0, 0, -500px) scale(.35) rotate(-12deg); filter: blur(4px); } 30% { opacity: .5; } 72% { opacity: .22; } 100% { opacity: 0; transform: translate3d(var(--drift, 4vw), -5vh, 360px) scale(2.2) rotate(8deg); filter: blur(1px); } }
@keyframes fragmentReverse { 0% { opacity: 0; transform: translate3d(var(--drift, -4vw), -5vh, 360px) scale(2.1) rotate(8deg); filter: blur(1px); } 32% { opacity: .38; } 100% { opacity: 0; transform: translate3d(0, 0, -500px) scale(.32) rotate(-10deg); filter: blur(4px); } }
@keyframes heroFragmentsForward { 0% { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); } 42% { opacity: .84; } 100% { opacity: 0; transform: translate3d(-8vw, -2vh, 280px) scale(.76); filter: blur(3px); } }
@keyframes titleFragmentA { 0% { transform: translate3d(0,0,0) rotate(0); opacity: 1; } 100% { transform: translate3d(-9vw, -3vh, 250px) rotate(-4deg); opacity: 0; filter: blur(2px); } }
@keyframes titleFragmentB { 0% { transform: translate3d(0,0,0) rotate(0); opacity: 1; } 100% { transform: translate3d(10vw, 4vh, 320px) rotate(5deg); opacity: 0; filter: blur(3px); } }
@keyframes heroGlyphForward { 0% { opacity: 1; transform: translate(-50%, -55%) rotate(-12deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -55%) rotate(12deg) scale(2.8); filter: blur(7px); } }
@keyframes orbitForward { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(22deg) skewX(-13deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(54deg) skewX(-13deg) scale(2.3); } }
@keyframes footerForward { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12vh); filter: blur(2px); } }
@keyframes archiveLand { 0% { opacity: .2; transform: translate3d(0, 9vh, -280px) scale(.84); filter: blur(3px); } 52% { opacity: .82; } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes archiveIntroLand { 0% { opacity: 0; transform: translate3d(0, -3vh, 180px); } 100% { opacity: 1; transform: none; } }
@keyframes archiveGridLand { 0% { opacity: 0; transform: translate3d(0, 8vh, 260px) scale(.72); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes archiveReverse { 0% { opacity: 1; transform: translateZ(0) scale(1); } 100% { opacity: 0; transform: translate3d(0, 4vh, -220px) scale(.8); filter: blur(3px); } }
@keyframes homeLand { 0% { opacity: 0; transform: translate3d(0, -3vh, 220px) scale(.82); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }

@media (max-width: 820px) {
  body { cursor: default; }
  .topbar { padding: 20px 20px; }
  .topbar-meta { display: none; }
  .scene { padding: 100px 25px 85px; }
  .scene-rail { display: none; }
  .hero-copy { width: 90vw; margin: 0; align-self: center; }
  h1 { font-size: clamp(56px, 17vw, 110px); }
  .hero-glyph { left: 72%; top: 44%; font-size: 95vw; opacity: .8; }
  .home-orbit { left: 72%; }
  .home-footer { left: 25px; right: 25px; bottom: 20px; }
  .status-block:first-child { display: none; }
  .status-block b { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .scroll-cue { display: none; }
  .archive-intro { margin-left: 0; width: 100%; }
  .archive-controls { position: static; justify-content: flex-start; margin-top: 34px; max-width: none; }
  .search-field { width: 100%; }
  .archive-grid { margin: 34px 0 80px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myth-card, .myth-card-open { min-height: 230px; height: 230px; }
  .card-glyph { font-size: 115px; }
  .travel-stage { background: radial-gradient(ellipse at 50% 48%, rgba(54,39,17,.14), rgba(5,4,3,.84) 74%, rgba(2,2,1,.97)); }
  .travel-ring { min-width: 300px; min-height: 130px; }
  .travel-streaks i:nth-child(2n) { display: none; }
  .travel-fragments span { font-size: clamp(25px, 10vw, 52px); }
  .site-footer { left: 20px; right: 20px; bottom: 16px; }
  .scene-method { display: flex; flex-direction: column; gap: 24px; overflow: auto; padding-bottom: 100px; }
  .method-topline { flex: none; }
  .method-copy { margin-top: 50px; }
  .method-copy p:last-child { width: auto; }
  .method-steps { margin-top: 25px; }
  .method-quote { margin-top: 15px; }
  .method-cta { align-self: flex-start; margin-top: 10px; }
  .dossier-panel { top: 0; right: 0; bottom: 0; width: 100%; display: flex; flex-direction: column; overflow: auto; }
  .dossier-art { min-height: 42vh; flex: none; }
  .dossier-body { padding: 34px 25px 30px; min-height: 55vh; max-height: 58vh; }
  .dossier-subtitle { margin-bottom: 28px; }
  .dossier-text { font-size: 17px; }
  .dossier-heading { flex-direction: column; gap: 18px; }
  .spoiler-controls { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .spoiler-toggle > span:last-child { text-align: left; }
  .dossier-reading { margin-top: 25px; gap: 20px; }
  .dossier-section > p, .game-context-content, .spoiler-gate { font-size: 14px; }
  .dossier-sources li { font-size: 10px; }
  .menu-panel-inner { width: auto; margin: 24vh 25px 0; }
  .menu-link { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
