@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600&family=Noto+Serif+KR:wght@300;400;500;600&display=swap');
:root{color-scheme:dark;--ink:#090d18;--paper:#eeeae7;--muted:#a4a8b8;--dim:#7a8298;--accent:#dec6bf;--accent2:#a8a7de;--line:rgba(236,231,237,.15);--ease:cubic-bezier(.22,1,.36,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100svh;overflow-x:hidden;background:#080c17;color:var(--paper);font-family:'DM Sans','Noto Sans KR',sans-serif;transition:background 1.2s ease}body[data-scene="breath"]{--accent:#b5dddb;--accent2:#8caec5}body[data-scene="time"]{--accent:#e8bc9f;--accent2:#a6a0d4}body[data-scene="life"]{--accent:#c3dab7;--accent2:#dfbea4}body[data-scene="perception"]{--accent:#d5c1f8;--accent2:#8dbfd2}body[data-scene="connection"]{--accent:#f3c4bc;--accent2:#b3c6e9}body[data-scene="echo"]{--accent:#f4dfb3;--accent2:#c6b8e8}
button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{color:inherit}::selection{background:rgba(205,190,228,.35)}
#cosmos{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;display:block;touch-action:pan-y}body[data-scene="life"] #cosmos,body[data-scene="connection"] #cosmos{cursor:crosshair;touch-action:manipulation}.grain,.vignette{pointer-events:none;position:fixed;inset:0;z-index:1}.grain{opacity:.085;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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E")} .vignette{background:linear-gradient(90deg,rgba(4,7,14,.58),transparent 39%,rgba(4,7,14,.09)),linear-gradient(0deg,rgba(4,7,14,.57),transparent 26%)}
.topbar{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:30px clamp(26px,4vw,72px);height:102px}.wordmark{padding:0;display:inline-flex;gap:15px;align-items:center;background:none;border:0;text-align:left}.sigil{display:block;position:relative;width:34px;height:37px;flex-shrink:0}.sigil i{position:absolute;left:8px;top:2px;width:18px;height:32px;border:1px solid rgba(233,222,239,.7);border-radius:50%;transform:rotate(45deg)}.sigil i:nth-child(2){transform:rotate(-45deg);border-color:rgba(185,216,219,.58)}.sigil i:nth-child(3){left:15px;top:15px;width:5px;height:5px;background:#eee2d8;border:0;box-shadow:0 0 15px #efe1c8}.brand-text{display:flex;flex-direction:column;gap:3px}.brand-text strong{font-family:'Noto Serif KR',serif;font-size:17px;letter-spacing:.12em;font-weight:500}.brand-text small{font-size:8px;letter-spacing:.22em;color:#aaa9b9;font-weight:600}.top-right{display:flex;gap:12px;align-items:center}.top-note{display:flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.06em;color:#adb0bc;margin-right:17px}.glow-dot{width:5px;height:5px;background:#c9ddd4;border-radius:50%;box-shadow:0 0 16px 4px #b7d5d354;animation:breatheDot 6s infinite}.icon-btn{display:grid;place-items:center;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.13);border-radius:50%;width:42px;height:42px;transition:background .3s,border .3s,color .3s}.icon-btn:hover,.icon-btn[aria-pressed="true"]{color:var(--accent);background:rgba(245,239,253,.1);border-color:rgba(255,255,255,.34)}.icon-btn svg{width:19px;height:19px}.icon-btn:not([aria-pressed="true"]) .sound-waves{opacity:.28}
.chapter-nav{position:fixed;z-index:9;top:50%;transform:translateY(-46%);left:clamp(30px,4vw,72px);display:flex;flex-direction:column;align-items:flex-start;gap:10px}.nav-spine{position:absolute;left:10px;top:12px;bottom:14px;width:1px;background:linear-gradient(transparent,rgba(230,226,241,.16) 12%,rgba(230,226,241,.16) 84%,transparent);pointer-events:none}.nav-item{border:none;background:transparent;text-align:left;display:flex;align-items:center;gap:17px;padding:5px 8px 5px 0;color:#737988;min-height:30px;transition:color .3s;position:relative}.nav-number{font-family:'DM Sans',sans-serif;display:grid;place-items:center;width:21px;height:21px;font-size:10px;font-weight:500;letter-spacing:.05em;z-index:1;background:#0b1020;border-radius:50%;border:1px solid transparent}.nav-name{font-size:12px;letter-spacing:.14em;opacity:.9;transition:transform .4s}.nav-item:hover{color:#e7dfec}.nav-item:hover .nav-name{transform:translateX(4px)}.nav-item.active{color:var(--paper)}.nav-item.active .nav-number{border-color:var(--accent);color:var(--accent);box-shadow:0 0 16px rgba(226,198,208,.14)}.nav-item.active .nav-name{color:var(--accent)}
.stage{position:relative;z-index:2;min-height:calc(100svh - 102px);pointer-events:none}.chapter-mark{position:absolute;top:8px;left:21.5%;display:flex;align-items:center;gap:14px;font-size:10px;color:rgba(209,207,221,.55);letter-spacing:.2em;font-weight:600}.mark-line{width:30px;height:1px;background:rgba(229,225,240,.27)}.story{position:absolute;top:clamp(100px,17vh,190px);left:21.5%;width:min(51vw,720px);transition:opacity .45s var(--ease),transform .45s var(--ease)}.story.out{opacity:0;transform:translateY(15px)}.eyebrow{margin:0 0 22px;color:var(--accent);font-size:10px;letter-spacing:.27em;font-weight:700}.story h1{margin:0;color:#faf4f0;font-family:'Noto Serif KR',Georgia,serif;font-size:clamp(38px,5vw,81px);font-weight:300;letter-spacing:-.077em;line-height:1.45;text-shadow:0 2px 26px rgba(12,10,20,.35);word-break:keep-all}.story h1 em{font-weight:400;color:var(--accent);font-style:normal}.description{color:#b9bbc8;font-size:clamp(13px,1.14vw,17px);line-height:2.1;font-weight:300;letter-spacing:-.03em;margin:27px 0 0;word-break:keep-all}.thought{display:flex;align-items:flex-start;gap:9px;margin-top:29px;line-height:1.8;color:#e0d6d3;font-family:'Noto Serif KR',serif;font-weight:300;font-size:12px;opacity:.87;max-width:440px}.thought-quote{color:var(--accent);font-family:Georgia,serif;font-size:25px;line-height:1.15}.world-hint{position:absolute;top:54%;right:clamp(25px,5.7vw,110px);display:flex;align-items:center;gap:10px;transform:rotate(-90deg) translateX(50%);transform-origin:right center;color:#a2a1ae;font-size:10px;letter-spacing:.04em;opacity:.67}.hint-line{display:inline-block;width:22px;height:1px;background:var(--accent);opacity:.7}.right-annotations{z-index:2;position:fixed;right:clamp(25px,4vw,73px);top:37%;display:flex;align-items:center;gap:12px;writing-mode:vertical-rl;font-size:9px;color:rgba(222,223,237,.42);letter-spacing:.2em}.vertical-line{height:48px;width:1px;background:rgba(221,223,234,.36)}
.dock{z-index:6;position:fixed;bottom:91px;left:21.5%;width:min(44vw,610px);background:linear-gradient(135deg,rgba(24,29,45,.76),rgba(19,25,39,.62));border:1px solid rgba(222,219,236,.15);border-radius:4px;padding:18px 24px 19px;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);box-shadow:0 23px 100px rgba(0,0,0,.1);transition:background .5s}.dock-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.chapter-small{font-size:10px;letter-spacing:.2em;color:var(--accent);font-weight:600}.trace-count{color:#868c9e;font-size:10px;letter-spacing:.04em}.trace-symbol{color:var(--accent);margin-right:6px}.controls{display:flex;align-items:center;gap:11px;flex-wrap:wrap;min-height:45px}.action{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:13px;border:1px solid rgba(228,221,235,.28);border-radius:2px;background:transparent;padding:13px 17px;min-height:44px;color:#ede9ec;font-size:12px;letter-spacing:.02em;transition:background .25s,border-color .25s,transform .25s;white-space:nowrap}.action:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.48);transform:translateY(-1px)}.action.primary{background:var(--accent);border-color:var(--accent);color:#161725;font-weight:600}.action.primary:hover{background:#f2e9e1;border-color:#f2e9e1}.action:disabled{opacity:.4;cursor:not-allowed;transform:none}.mini-note{font-size:11px;line-height:1.7;color:#a0a5b5;word-break:keep-all}.ctl-stack{display:flex;flex-direction:column;gap:10px;flex:1;min-width:190px}.ctl-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex:1}.range-row{display:flex;align-items:center;gap:15px;min-width:min(100%,300px);flex:1;color:#b4b1c1;font-size:11px}.range-row label{white-space:nowrap}.range-row input{accent-color:var(--accent);width:100%;min-width:100px;cursor:pointer}.range-value{width:32px;text-align:right;color:var(--accent);font-size:11px}.text-entry{background:rgba(7,11,22,.35);border:1px solid rgba(229,227,235,.23);border-radius:2px;padding:11px 13px;color:#f6eee9;min-height:44px;outline:none;flex:1;min-width:130px;font-size:12px}.text-entry:focus{border-color:var(--accent)}.text-entry::placeholder{color:#858a9b}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid rgba(226,224,239,.2);border-radius:999px;padding:7px 12px;font-size:11px;color:#c2bdc7;background:rgba(255,255,255,.03);transition:all .3s}.chip:hover,.chip:focus-visible{border-color:var(--accent);color:var(--accent);background:rgba(255,255,255,.08)}.chip.chosen{border-color:var(--accent);color:var(--accent)}.summary-text{font-size:11px;color:#aaaebe;line-height:1.6}.summary-text strong{color:var(--accent);font-weight:600}.mode-select{min-width:160px}.visually-hidden{position:absolute!important;overflow:hidden;width:1px;height:1px;clip:rect(0,0,0,0);white-space:nowrap}
.breath-guide{position:fixed;pointer-events:none;z-index:3;left:68%;top:43%;display:flex;flex-direction:column;align-items:center;gap:7px;transform:translate(-50%,-50%);text-align:center;font-family:'Noto Serif KR',serif;text-shadow:0 1px 20px #030711}.breath-guide[hidden],.time-guide[hidden]{display:none!important}.breath-guide #breathVerb{font-size:18px;letter-spacing:.18em;color:#e7f1ee}.breath-guide #breathCount{font-family:'DM Sans',sans-serif;font-size:38px;font-weight:300;color:var(--accent)}.breath-guide small{font-family:'Noto Sans KR',sans-serif;font-size:10px;color:#a8bfc1;letter-spacing:.04em}.time-guide{z-index:3;position:fixed;pointer-events:none;left:62%;top:69%;width:29vw;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#a9a2b6;font-size:10px;letter-spacing:.05em}.time-guide .now-tag{font-family:'Noto Serif KR',serif;color:#f2d8bd;font-size:13px}
.footerbar{z-index:7;position:fixed;left:clamp(26px,4vw,72px);right:clamp(26px,4vw,72px);bottom:0;display:flex;align-items:center;justify-content:space-between;height:70px;border-top:1px solid var(--line);color:#9298a8;font-size:10px;letter-spacing:.06em}.footer-left,.footer-center,.footer-actions{display:flex;align-items:center;gap:10px}.small-star{font-size:17px;color:var(--accent)}.footer-center{gap:8px;opacity:.75}.footer-sep{opacity:.4}.footer-actions{gap:18px}.quiet-link{display:flex;gap:11px;align-items:center;background:none;border:0;padding:9px 0;font-size:11px;color:#a7a8b3;transition:color .2s}.quiet-link:hover{color:var(--accent)}.quiet-link.strong{color:var(--paper)}.footer-divider{height:16px;width:1px;background:var(--line)}.toast{z-index:50;position:fixed;left:50%;bottom:110px;transform:translate(-50%,15px);pointer-events:none;opacity:0;padding:13px 20px;border:1px solid rgba(242,231,241,.2);border-radius:3px;background:rgba(22,26,41,.94);box-shadow:0 8px 40px rgba(0,0,0,.25);font-size:12px;color:#eee9e7;transition:opacity .3s,transform .3s;white-space:normal;max-width:min(90vw,500px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
.letter-layout{max-width:490px;display:flex;flex-direction:column;gap:10px}.letter-layout h2{font-family:'Noto Serif KR',serif;line-height:1.8;font-size:14px;font-weight:400;color:#f6e9d8;margin:0}.letter-layout p{font-family:'Noto Serif KR',serif;font-weight:300;font-size:12px;line-height:2;color:#b9b3c0;white-space:pre-line;margin:0}.letter-layout .epilogue-note{font-family:'Noto Sans KR',sans-serif;font-size:10px;color:#9095a4}.journal{width:100%;min-height:62px;max-height:100px;resize:vertical;line-height:1.7}.letter-actions{display:flex;flex-wrap:wrap;gap:8px}
@keyframes breatheDot{50%{opacity:.35;box-shadow:0 0 4px 1px #b7d5d324}}@keyframes reveal{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.story:not(.out){animation:reveal .65s var(--ease) both}
@media(min-width:1450px){.story{top:17.5vh}.dock{bottom:98px}.story h1{font-size:clamp(60px,5.2vw,91px)}}
@media(max-height:750px) and (min-width:801px){.story{top:16vh}.story h1{font-size:clamp(39px,4vw,64px);line-height:1.35}.description{margin-top:13px;line-height:1.8}.thought{margin-top:13px}.dock{bottom:77px;padding:12px 19px}.dock-top{margin-bottom:9px}.footerbar{height:60px}}
@media(max-width:1100px) and (min-width:801px){.chapter-nav{left:24px}.topbar{padding:22px 27px}.footerbar{left:27px;right:27px}.story,.chapter-mark,.dock{left:17.5%}.story{width:65vw}.dock{width:54vw}.right-annotations{right:20px}.world-hint{display:none}}
@media(max-width:800px){.topbar{height:75px;padding:15px 19px 10px}.brand-text strong{font-size:15px}.brand-text small{font-size:7px}.sigil{width:28px;height:34px;transform:scale(.88);transform-origin:left center;margin-right:-6px}.top-right{gap:7px}.top-note{display:none}.icon-btn{width:35px;height:35px}.icon-btn svg{width:16px;height:16px}.chapter-nav{position:relative;left:auto;top:auto;transform:none;padding:0 15px;overflow-x:auto;scrollbar-width:none;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:2px;height:49px;width:100%;border-bottom:1px solid rgba(226,225,233,.1)}.chapter-nav::-webkit-scrollbar{display:none}.nav-spine{display:none}.nav-item{flex:1;min-width:34px;display:flex;justify-content:center;padding:6px 2px;gap:3px;flex-direction:column;min-height:45px}.nav-number{font-size:9px;width:19px;height:19px}.nav-name{font-size:9px;white-space:nowrap;letter-spacing:0}.stage{min-height:clamp(385px,52svh,570px)}.chapter-mark{left:7%;top:23px;gap:9px;font-size:8px}.mark-line{width:13px}.story{left:7%;top:66px;width:86%;max-width:570px}.eyebrow{font-size:8px;margin-bottom:15px;letter-spacing:.17em}.story h1{font-size:clamp(37px,8.3vw,57px);line-height:1.37}.description{font-size:13px;line-height:1.8;margin-top:19px;max-width:340px}.thought{font-size:11px;line-height:1.7;margin-top:15px;max-width:310px}.right-annotations,.world-hint{display:none}.dock{position:relative;left:auto;bottom:auto;margin:2px 17px 23px;width:auto;max-width:none;padding:15px 16px 16px}.dock-top{margin-bottom:12px}.trace-count{font-size:9px}.controls{gap:9px}.action{font-size:11px;padding:11px 13px;min-height:42px}.mini-note{font-size:10px}.footerbar{position:relative;left:auto;right:auto;bottom:auto;height:62px;margin:0 17px;padding:0 0 8px}.footer-left{display:none}.footer-center{font-size:9px}.footer-actions{gap:12px}.quiet-link{font-size:10px}.breath-guide{position:absolute;left:75%;top:63%;transform:translate(-50%,-50%)}.breath-guide #breathVerb{font-size:12px}.breath-guide #breathCount{font-size:28px}.breath-guide small{font-size:8px}.time-guide{position:absolute;left:34%;top:85%;width:58%;font-size:8px}.time-guide .now-tag{font-size:10px}.toast{bottom:25px}#cosmos{height:100svh}}
@media(max-width:410px){.stage{min-height:400px}.story h1{font-size:36px}.story{top:66px}.description{font-size:12px}.thought{font-size:10px}.trace-count{max-width:130px;text-align:right}.action.primary{padding-left:13px;padding-right:13px}}
@media(max-height:690px) and (max-width:800px){.stage{min-height:420px}.story{top:57px}.story h1{font-size:34px}.description{margin-top:9px}.thought{margin-top:9px}.chapter-mark{top:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.glow-dot{animation:none}.story:not(.out){animation:none}*,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important}}

/* The epilogue becomes a two-page letter: the poem lives beside, never on top of, its title. */
@media (min-width:801px){
  body[data-scene="echo"] .story{top:clamp(100px,14vh,155px);width:33vw}
  body[data-scene="echo"] .story h1{font-size:clamp(36px,3.2vw,58px);line-height:1.53}
  body[data-scene="echo"] .story .description{max-width:425px}
  body[data-scene="echo"] .dock{left:auto;right:8.2vw;width:min(37vw,520px);bottom:95px}
  body[data-scene="echo"] .dock .action{padding:11px 12px;font-size:11px}
}

/* A tiny interactive philosophical oracle: a sentence that can be turned over. */
.thought{background:transparent;border:0;padding:0;text-align:left;pointer-events:auto;cursor:pointer;transition:color .2s}
.thought:hover{color:#fff6ed}
.thought-cycle{font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.5;color:var(--accent);opacity:.58;transition:opacity .2s,transform .3s}
.thought:hover .thought-cycle{opacity:1;transform:rotate(55deg)}
