/* Detail pass: the hero leaves the light, typography and pointer room to breathe. */
html { background: var(--void); scrollbar-color: var(--line-strong) transparent; }
body { background: var(--void); }
::selection { background: var(--pink); color: var(--void); }
.site-header { position: fixed; z-index: 60; border-color: transparent; transition: background .5s, border-color .5s; }
.site-header[data-scrolled=true] { background: rgba(4,4,8,.9); border-color: var(--line); }
.site-header nav a { color: var(--mute); }
.site-header nav a[aria-current=location] { color: var(--bone); }
.brand small, .eyebrow, .chapter-label { color: var(--dim); }
.header-actions { gap: 15px; }
.button { border-radius: 999px; transition: background .4s, color .4s, box-shadow .5s, border-color .4s; }
.button:hover { transform: none; }
.button.primary { background: var(--bone); color: #07070b; box-shadow: none; font-weight: 500; }
.button.primary:hover { box-shadow: 0 0 0 1px #ffffff66, 0 10px 50px -6px #a78bfaa6, 0 0 90px -10px #ff6b9d80; }
.button.outline { border-color: var(--line-strong); background: rgba(4,4,8,.25); }
.button.outline:hover { border-color: var(--bone); background: rgba(236,232,225,.08); }
.button span, .text-link span { transition: transform .5s var(--ease); }
.button:hover span, .text-link:hover span { transform: translateX(4px); }
.download-button.button { min-height: 44px; padding: 10px 23px; font-size: 14px; gap: 12px; color: var(--bone); }
.download-button.button:hover { color: var(--void); background: var(--bone); }
.motion-button { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.motion-button span { display: none; }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 90; width: 100%; height: 2px; background: var(--rainbow); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.hero { height: 100svh; min-height: 640px; max-height: none; border: 0; }
.hero-haze { background: #090810; }
.hero-haze:before, .hero-haze:after { content: ''; position: absolute; left: -8px; right: -8px; filter: blur(3px); }
.hero-haze:before { top: 0; height: 64%; background: radial-gradient(ellipse 44% 44% at 50% 100%, #804a6acc 0%, #804a6a8c 40%, #804a6a00 100%), linear-gradient(to top,#1f1330 0%,#191126 34%,#100c18 65%,#090810 100%); }
.hero-haze:after { top: 64%; bottom: 0; background: radial-gradient(ellipse 70% 105% at 50% 0%, #5a353f 0%, #3e2634 25%, #141019 55%, #05040a 90%); }
.hero:after { content: ''; position: absolute; top: 64%; left: 0; right: 0; height: 1px; z-index: 1; pointer-events: none; background: linear-gradient(90deg,#a78bfa05,#c796bf55 50%,#a78bfa05); box-shadow: 0 0 12px 3px #a78bfa18; }
.orbit-stage { top: 0; left: 0; right: 0; width: 100%; height: 100%; }
.orbit-stage canvas { touch-action: pan-y; }
.hero-copy { position: absolute; top: 18%; left: 4vw; right: 4vw; max-width: none; margin: 0; padding: 0; text-align: center; }
.hero h1 { font-family: var(--sans); font-size: clamp(48px, 6.8vw, 128px); font-weight: 200; line-height: 1.2; letter-spacing: .06em; text-align: center; margin: 22px 0 0; }
.hero h1 br { display: none; }
.hero h1 em { background: none; color: var(--bone); }
.hero-english { font: italic 200 clamp(17px, 1.6vw, 26px)/1.5 var(--sans); color: rgba(236,232,225,.82); margin: 0; }
.hero-hud { position: absolute; top: 13%; left: 5vw; right: 5vw; display: flex; justify-content: space-between; gap: 20px; z-index: 2; font: 10px var(--mono); letter-spacing: .2em; color: var(--dim); pointer-events: none; }
.hero-hud b { color: var(--mute); font-weight: 400; }
.hero-foot { position: absolute; left: 5vw; bottom: 9%; z-index: 3; max-width: 350px; }
.hero-lead { margin: 0; font-size: 14px; line-height: 1.95; color: var(--mute); }
.hero-foot .text-link { margin-top: 20px; font-size: 12px; color: var(--bone); }
.hero-scroll { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 11px; color: var(--mute); letter-spacing: .2em; white-space: nowrap; }
.hero-scroll i { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll i:after { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 45%; background: var(--bone); animation: scroll-light 2s cubic-bezier(.75,0,.2,1) infinite; }
.spark-button { position: absolute; z-index: 3; right: 5vw; bottom: 5%; left: auto; transform: none; padding: 10px 0; font-size: 11px; color: var(--dim); letter-spacing: .13em; display: flex; align-items: center; gap: 10px; }
.spark-button i { width: 7px; height: 7px; border: 1px solid var(--mute); border-radius: 50%; }
.spark-button:hover { color: var(--bone); }
.hero-preview-note { position: absolute; right: 5vw; bottom: 10%; font: 9px var(--mono); color: var(--dim); letter-spacing: .12em; }
.hero-copy, .hero-hud, .hero-foot { animation: none; }
@keyframes scroll-light { 0% { transform: translateY(-100%); } 70%,100% { transform: translateY(240%); } }

.chapter h2, .begin h2, .intro-title { font-family: var(--sans); font-weight: 200; line-height: 1.25; letter-spacing: .015em; }
.chapter h2 { font-size: clamp(38px, 4.5vw, 66px); }
.intro-title { font-size: clamp(40px, 4vw, 56px); line-height: 1.6; letter-spacing: .025em; margin-top: 30px; }
.intro-line { display: block; }
.intro-line + .intro-line { margin-top: .2em; }
.intro-title em { white-space: nowrap; }
.intro-note { font-size: 16px; margin-top: 32px; }
.chapter-description { color: var(--mute); }
.chapter-english { color: rgba(236,232,225,.72); }
.scene-panel { background: rgba(11,11,19,.7); border-color: var(--line); box-shadow: 0 24px 90px #00000033; border-radius: 18px; }
.scene-panel:before { background: var(--rainbow); opacity: .35; }
.scene-tabs button, .platform-choice button, .memory-steps button { color: var(--mute); border-color: var(--line-strong); transition: background .4s, border-color .4s, color .4s; }
.scene-tabs button { border-radius: 999px; }
.scene-tabs button.active, .platform-choice button.active { color: var(--bone); background: rgba(236,232,225,.06); border-color: rgba(236,232,225,.45); }
.companion-avatar { background: rgba(236,232,225,.06); color: var(--bone); border-color: var(--line-strong); }
.status-dot { background: var(--teal); box-shadow: 0 0 12px #5fe6c050; }
.scene-top-mark, .scene-top>div>span, .chat-date, .scene-footer { color: var(--mute); }
.message.mine { background: rgba(236,232,225,.085); color: var(--bone); }
.message.theirs { background: rgba(236,232,225,.035); color: rgba(236,232,225,.84); }
.scene-footer button { color: var(--bone); }
.task-scene-top, .task-progress li small, .task-result p, .platform-caption { color: var(--mute); }
.task-progress li.done { color: var(--bone); }
.task-progress li.done>span { color: var(--teal); background: #5fe6c00d; border-color: #5fe6c04d; }
.task-result { border-color: var(--line-strong); background: rgba(236,232,225,.025); }
.result-icon { color: var(--teal); background: #5fe6c00d; }
.platform-message>p { color: var(--bone); }
.platform-message>span { color: var(--mute); }
.orbit-line { border-color: #ece8e138; box-shadow: none; }
.platform-orbit>img { filter: drop-shadow(0 0 18px #ff6b9d22); }
.begin-glow { background: radial-gradient(ellipse at 50% 100%, #ff6b9d1a, transparent 75%), radial-gradient(ellipse at 45% 85%, #a78bfa15, transparent 70%); }

#memory { display: block; height: auto; min-height: 0; max-width: none; padding: 0; }
.memory-sticky { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1210px; margin: 0 auto; padding: 110px 35px 90px; }
.motion-enhanced #memory { height: 300svh; }
.motion-enhanced #memory .memory-sticky { position: sticky; top: 0; height: 100svh; min-height: 700px; }
.memory-scene { height: min(66svh, 560px); width: 100%; }
.motion-enhanced .memory-ring, .motion-enhanced .memory-node { display: none; }
.memory-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.memory-lines path { fill: none; stroke-width: .75; }
.memory-lines .ghost { stroke: rgba(190,168,218,.14); }
.memory-lines .living { stroke-width: 1; transition: stroke-dashoffset .45s var(--ease); }
.memory-lines .ring-light { transition: opacity .6s; }
.ring-light .halo { fill: var(--node-color); opacity: .5; filter: blur(3px); }
.ring-light .color { fill: var(--node-color); }
.ring-light .core { fill: #fff9f4; }
.memory-center strong { color: var(--bone); font-family: var(--sans); font-weight: 200; font-size: 76px; font-variant-numeric: tabular-nums; }
.memory-center span, .memory-center small, .orbit-word { color: var(--mute); }
.memory-steps button.active { color: var(--bone); border-color: var(--bone); }
.memory-fragment { border-color: var(--line-strong); }
.memory-fragment>span { color: var(--dim); }
.memory-fragment p { color: var(--bone); font-family: var(--sans); font-size: 16px; }
.motion-paused #memory { height: auto; }
.motion-paused #memory .memory-sticky { position: relative; height: auto; min-height: 0; }

.motion-enhanced .reveal-block { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.motion-enhanced .reveal-block.in { opacity: 1; transform: none; }
.line-clip { display: block; overflow: hidden; padding-bottom: .08em; }
.line-ink { display: inline-block; }
.motion-enhanced .reveal-heading .line-ink { transform: translateY(108%); transition: transform 1.3s var(--ease); }
.motion-enhanced .reveal-heading.in .line-ink { transform: none; }
.motion-enhanced .reveal-heading .line-clip:nth-child(2) .line-ink { transition-delay: .1s; }
.motion-paused .reveal-block { opacity: 1; transform: none; transition: none; }
.motion-paused .reveal-heading .line-ink { transform: none; transition: none; }
.pointer-orb { display: none; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; mix-blend-mode: difference; }
.pointer-dot, .pointer-ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.pointer-dot { width: 6px; height: 6px; margin: -3px; background: #fff; }
.pointer-ring { width: 40px; height: 40px; margin: -20px; border: 1px solid rgba(255,255,255,.7); transition: transform .13s ease-out, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
.pointer-orb.hover .pointer-ring { width: 60px; height: 60px; margin: -30px; background: #fff; }
@media (hover:hover) and (pointer:fine) { .has-fine-pointer .pointer-orb { display: block; } .has-fine-pointer, .has-fine-pointer body, .has-fine-pointer button, .has-fine-pointer a { cursor: none; } }

@media (max-width: 1200px) {
  .memory-sticky { gap: 40px; padding-left: 40px; padding-right: 40px; }
  .hero-copy { left: 3vw; right: 3vw; }
  .hero h1 { font-size: 7.2vw; }
}
@media (max-width: 800px) {
  .site-header { height: 74px; padding: 0 24px; gap: 15px; }
  .site-header nav { top: 74px; background: rgba(4,4,8,.95); }
  .header-actions { gap: 10px; }
  .download-button.button { min-height: 36px; padding: 8px 14px; font-size: 12px; gap: 8px; }
  .motion-button { width: 34px; height: 34px; font-size: 16px; }
  .hero { height: 100svh; min-height: 700px; }
  .hero-hud { top: 13%; left: 24px; right: 24px; font-size: 8px; letter-spacing: .12em; }
  .hero-hud>span:first-child { display: none; }
  .hero-hud>span:last-child { margin-left: auto; }
  .hero-copy { top: 19%; left: 24px; right: 24px; }
  .hero h1 { font-size: clamp(36px,10.6vw,64px); line-height: 1.22; margin-top: 18px; letter-spacing: .04em; }
  .hero h1 br { display: block; }
  .hero-english { font-size: 17px; }
  .hero-foot { bottom: 145px; left: 24px; right: 24px; max-width: none; }
  .hero-lead { font-size: 13px; }
  .hero-foot .text-link { margin-top: 12px; font-size: 11px; }
  .hero-scroll { bottom: 20px; font-size: 10px; gap: 12px; }
  .hero-scroll i { height: 40px; }
  .spark-button { bottom: 108px; right: 24px; left: auto; transform: none; font-size: 9px; }
  .hero-preview-note { display: none; }
  .chapter h2 { font-size: 40px; }
  .intro-title { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.65; letter-spacing: 0; margin-top: 24px; }
  .intro-line + .intro-line { margin-top: .5em; }
  .intro-note { font-size: 14px; margin-top: 26px; }
  .memory-sticky { grid-template-columns: 1fr; gap: 20px; padding: 90px 28px 50px; }
  .motion-enhanced #memory .memory-sticky { min-height: 0; padding: 94px 28px 24px; }
  .memory-sticky .chapter-copy { order: -1; }
  .memory-sticky .chapter-label { margin-bottom: 12px; }
  .memory-sticky h2 { font-size: 32px; }
  .memory-sticky .chapter-english { margin-top: 8px; font-size: 17px; }
  .memory-sticky .chapter-description { margin-top: 12px; font-size: 13px; line-height: 1.75; }
  .memory-steps { margin-top: 16px; }
  .memory-steps button { font-size: 11px; }
  .memory-fragment { margin-top: 14px; padding: 10px 0; }
  .memory-fragment p { font-size: 13px; }
  .memory-scene { height: 240px; max-width: 330px; margin: 0 auto; }
  .memory-center strong { font-size: 40px; }
  .memory-sticky .text-link { font-size: 11px; }
}
@media (max-width: 420px) {
  .site-header { gap: 9px; padding: 0 20px; }
  .brand>span { font-size: 24px; }
  .header-actions { gap: 8px; }
  .menu-button { padding-left: 3px; }
  .chapter h2 { font-size: 36px; }
  .memory-sticky h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-hud, .hero-foot { animation: none; }
  .motion-enhanced .reveal-block { opacity: 1; transform: none; }
  .motion-enhanced .reveal-heading .line-ink { transform: none; }
}
