body.thought-open{overflow:hidden}
#thought-space{position:fixed;inset:0;max-width:none;max-height:none;width:100%;height:100%;height:100dvh;margin:0;padding:0;border:0;background:var(--thought-bg,#161d1b);color:#e8e3d7;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;isolation:isolate;scroll-behavior:auto}
#thought-space::backdrop{background:#151d19;backdrop-filter:none}
.thought-cosmos{position:fixed;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}
.thought-vignette{position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,var(--thought-bg) 0%,transparent 95%)}
#thought-space .thought-bar{position:fixed;inset:0 0 auto;z-index:5;display:flex;align-items:center;gap:25px;padding:24px 4%;background:linear-gradient(var(--thought-bg),transparent);color:#e8e3d7}
.thought-return,.thought-position{font:10px 'DM Mono',monospace;letter-spacing:.05em}.thought-position{margin-left:auto;opacity:.55}.thought-close{background:none;border:1px solid #e8e3d744;border-radius:50%;width:44px;height:44px;color:inherit;font:22px 'DM Sans';transition:background .2s,transform .2s}.thought-close:hover{background:#e8e3d719;transform:rotate(90deg)}
.thought-progress{position:fixed;left:0;top:0;height:2px;width:100%;transform:scaleX(var(--read,0));transform-origin:left;background:var(--thought-accent);z-index:6}
#thought-space .thought-intro{position:relative;inset:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:100svh;padding:140px 8% 100px;color:inherit;z-index:auto;text-align:left}
#thought-space .thought-kicker{font:10px 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--thought-accent);margin:0 0 30px}
#thought-space h2{font-size:clamp(58px,7.7vw,126px);line-height:.96;letter-spacing:-.065em;max-width:960px;width:78%;margin:0;text-wrap:balance;outline:none}
#thought-space .thought-read-cue{font:italic 23px Italiana,serif;margin:45px 0 0;opacity:.6}.thought-read-cue span{display:inline-block;margin-left:28px;font:26px 'DM Sans'}
.thought-passages{position:relative;padding:0 8%;max-width:100%}
#thought-space .thought-passage{position:relative;display:flex;align-items:center;min-height:70svh;max-width:650px;width:57%;font-size:clamp(22px,2.25vw,35px);line-height:1.65;letter-spacing:-.025em;margin:0;padding:100px 0;opacity:.46;transition:opacity .7s;text-wrap:pretty}
#thought-space .thought-passage.reading{opacity:1}
#thought-space .thought-passage:before{content:attr(data-passage);position:absolute;left:-40px;top:50%;font:10px 'DM Mono',monospace;letter-spacing:0;color:var(--thought-accent)}
#thought-space .thought-passage:nth-child(3n+2){font-family:Italiana,serif;font-size:clamp(29px,3vw,45px);line-height:1.5}
#thought-space .thought-ending{position:relative;inset:auto;min-height:85svh;padding:120px 8%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:28px;text-transform:none;font-family:'DM Sans',sans-serif;letter-spacing:0;background:linear-gradient(transparent,var(--thought-bg))}
.thought-ending>span{font:10px 'DM Mono',monospace;opacity:.5;text-transform:uppercase;letter-spacing:.1em}.next-thought{display:block;border:0;border-top:1px solid #e8e3d733;padding:30px 0 0;background:none;text-align:left;max-width:900px;font-size:clamp(35px,5vw,70px);line-height:1.1;letter-spacing:-.05em;color:inherit}.next-thought i{font-style:normal;color:var(--thought-accent);margin-left:20px}.next-thought:hover{color:var(--thought-accent)}.thought-return-end{background:none;border:0;border-bottom:1px solid #e8e3d755;padding:12px 0;font:11px 'DM Mono',monospace;color:inherit;margin-top:30px}
@media(max-width:700px){#thought-space .thought-bar{padding:16px 6%;gap:12px}.thought-return{font-size:9px}.thought-position{font-size:9px}.thought-close{width:38px;height:38px}#thought-space .thought-intro{padding:120px 8% 75px;justify-content:flex-end;min-height:95svh}#thought-space h2{font-size:clamp(48px,12.5vw,80px);width:100%}#thought-space .thought-kicker{max-width:230px;font-size:9px;line-height:1.7}#thought-space .thought-read-cue{font-size:22px;margin-top:30px}.thought-vignette{background:linear-gradient(0deg,var(--thought-bg),transparent 170%),linear-gradient(90deg,var(--thought-bg),transparent 150%)}.thought-passages{padding:0 9% 0 11%}#thought-space .thought-passage{width:100%;min-height:75svh;font-size:23px;padding:80px 0;opacity:.65}#thought-space .thought-passage:nth-child(3n+2){font-size:29px}#thought-space .thought-passage:before{left:-24px;font-size:8px}#thought-space .thought-ending{padding:90px 8%;min-height:80svh}.next-thought{font-size:38px}}
@media(prefers-reduced-motion:reduce){#thought-space .thought-passage{opacity:1;transition:none}}
/* The entry is a descent through the selected thought, with no page-like masthead. */
#thought-space .thought-intro{align-items:center;justify-content:center;text-align:center;padding:120px 12%;min-height:100svh}
#thought-space h2{width:100%;max-width:780px;font-size:clamp(48px,5.5vw,84px);text-shadow:0 3px 65px var(--thought-bg)}
.thought-vignette{background:radial-gradient(ellipse at center,rgba(15,23,22,.8) 0%,rgba(15,23,22,.35) 40%,transparent 76%)}
.thought-passages{padding:0 10%}
#thought-space .thought-passage{width:100%;max-width:700px;margin:0 auto;min-height:100svh;padding:120px 0;text-shadow:0 2px 25px var(--thought-bg);opacity:.35}
#thought-space .thought-passage:before{display:none}
#thought-space .thought-position{display:none}
#thought-space .thought-bar{background:none;justify-content:space-between;padding:20px 3%}
.thought-return{opacity:.65}.thought-close{border:0;background:#18232188}
#thought-space .thought-ending{align-items:center;text-align:center;min-height:100svh;background:none}.next-thought{text-align:center;max-width:760px;border:0}.thought-ending>span{display:none}
@media(max-width:700px){#thought-space .thought-intro{padding:100px 9%}#thought-space h2{font-size:clamp(42px,11vw,65px)}.thought-passages{padding:0 9%}#thought-space .thought-passage{min-height:90svh;padding:110px 0;font-size:22px}#thought-space .thought-passage:nth-child(3n+2){font-size:28px}}
@media(prefers-reduced-motion:reduce){#thought-space .thought-passage{opacity:1}}

/* Keep the opaque artwork outside the scrolling layer. No clipped fixed descendants. */
#thought-space{overflow:hidden}
.thought-cosmos{position:absolute;z-index:0;background:var(--thought-bg);transform-origin:center}
.thought-vignette{position:absolute;z-index:1}
.thought-scroll{position:absolute;inset:0;z-index:2;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto}
#thought-space .thought-bar,#thought-space .thought-progress{position:absolute}

/* Long articles must not become animated compositor surfaces while scrolling. */
#thought-space .thought-essay{transform:none;opacity:1}
#thought-space .thought-passage,#thought-space .thought-passage.reading{opacity:1;transition:none}
.thought-cosmos{transform:none;opacity:1;contain:paint}
.thought-scroll{isolation:isolate}
