@font-face{font-family:"Matter";src:url('./assets/fonts/Matter-Regular.woff2?v=matter-dream-1') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Matter";src:url('./assets/fonts/Matter-Medium.woff2?v=matter-dream-1') format('woff2');font-style:normal;font-weight:500;font-display:swap}
/* The wordmark and header links are set in Figtree; headlines stay in Matter. */
@font-face{font-family:"Figtree";src:url('./assets/fonts/figtree-medium-500.woff2?v=testsite-2e') format('woff2');font-style:normal;font-weight:500;font-display:swap}
/* Regular and SemiBold are only fetched when a film or reading panel opens. */
@font-face{font-family:"Figtree";src:url('./assets/fonts/figtree-text-400.woff2?v=testsite-2g') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Figtree";src:url('./assets/fonts/figtree-semibold-600.woff2?v=testsite-2g') format('woff2');font-style:normal;font-weight:600;font-display:swap}
:root{--entry-paper:#eeeeee;--entry-green:#74865f;--entry-copy:#f2f1e9;--entry-ghost-opacity:.17;--paper:#eeefeb;--ink:#141713;--accent:#2544e7;--inset:clamp(30px,3vw,58px);--top:94px;--size:clamp(66px,6.2vw,100px);--leading:1;color:var(--ink);background:var(--paper);font-family:"Matter",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scrollbar-width:none;scroll-behavior:auto;overflow-anchor:none}html::-webkit-scrollbar{display:none}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0}a{color:inherit;text-decoration:none}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:6px}::selection{background:#d0e92f;color:#141713}[hidden]{display:none!important}
.room{position:fixed;inset:0;background:var(--paper);overflow:hidden}.fallback-floor{position:absolute;inset:0;background:radial-gradient(ellipse at 72% 75%,#fffdf5,transparent 65%)}.has-room .fallback-floor{display:none!important}#room-canvas{display:block;width:100%;height:100%;opacity:0}.has-room #room-canvas{opacity:1}#cony-canvas{position:fixed;inset:0;width:100%;height:100%;visibility:hidden;pointer-events:none;z-index:20}
.site-header{position:fixed;inset:26px var(--inset) auto;display:flex;justify-content:space-between;align-items:center;z-index:35;font-size:13px}.site-header>a{padding:8px 0}.site-header #wordmark-target{visibility:hidden;font:500 21px/1.2 "Figtree","Matter",sans-serif;letter-spacing:-.01em;padding:11px 17px}
#moving-wordmark{position:fixed;left:0;top:0;z-index:36;transform-origin:top left;font-family:"Figtree","Matter",sans-serif;font-weight:500;line-height:1.2;letter-spacing:-.01em;white-space:nowrap;visibility:hidden;overflow:visible;will-change:transform}
#story{position:fixed;inset:0;pointer-events:none;z-index:12}.story-panel{position:absolute;top:var(--top);left:var(--inset);right:var(--inset);opacity:0;visibility:hidden;overflow:visible;will-change:opacity;clip-path:none}.headline{margin:0;font-family:"Matter",sans-serif;font-size:var(--size);font-weight:500;line-height:var(--leading);letter-spacing:0;text-wrap:nowrap;padding-block-end:.16em;overflow:visible}.line{display:block;width:max-content;max-width:100%;overflow:visible}.text-letter{display:inline;overflow:visible}.friend .headline{font-size:clamp(54px,4.7vw,76px)}.colourful .headline{font-size:clamp(42px,3.6vw,62px);line-height:1}
.invitation{pointer-events:none}

#continue-button,#pause-button{position:fixed;right:var(--inset);bottom:24px;width:44px;height:44px;padding:0;background:transparent;font-size:28px;font-weight:400;line-height:1;z-index:35}#continue-button{transition:transform .25s}#continue-button:hover{transform:translateY(4px)}#pause-button{right:calc(var(--inset) + 52px);font-size:18px}#pause-button[aria-disabled="true"]{opacity:.25;cursor:default}
#object-controls,#film-controls{position:fixed;inset:0;pointer-events:none}.object-hit{position:absolute;width:56px;height:56px;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;background:transparent;opacity:0}.object-hit:focus-visible{opacity:1;background:#ffffff26;outline-offset:0}#object-controls{z-index:10}#film-controls{z-index:16}.film-watch{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;width:44px;height:44px;border:1px solid #ffffff6b;border-radius:50%;background:#ffffff24;color:#fffef4;padding:0;display:grid;place-items:center;box-shadow:0 2px 12px #10171220;backdrop-filter:blur(5px);transition:background .2s,border-color .2s}.film-watch::before{content:'';width:0;height:0;margin-left:3px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor;filter:drop-shadow(0 1px 2px #10171240)}.film-watch:hover{background:#ffffff45;border-color:#ffffffb3}.film-watch:focus-visible{outline-offset:3px}.film-label{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);font:12px/1.2 "Matter",sans-serif;white-space:nowrap;text-shadow:0 1px 5px #101712;pointer-events:none;opacity:0;transition:opacity .2s}.film-watch:hover .film-label,.film-watch:focus-visible .film-label{opacity:1}
/* The only voice UI is fixed in the page, separate from Cony's position. */
#conversation{position:fixed;z-index:38;left:50%;bottom:28px;transform:translateX(-50%);max-width:calc(100vw - 40px);font:13px/1.4 "Matter",sans-serif;text-align:center}
#mic-consent{display:flex;align-items:center;gap:18px;padding:11px 13px 11px 17px;background:#fffdf5ed;border:1px solid #282b301c;border-radius:12px;box-shadow:0 6px 28px #272c3910;backdrop-filter:blur(10px)}
#mic-consent p{margin:0;white-space:nowrap}#mic-consent>div{display:flex;gap:6px}#mic-consent button{min-height:38px;padding:9px 13px;border-radius:7px;background:transparent;font-size:13px;white-space:nowrap}#mic-consent button:hover{background:#e7e8e080}#mic-allow{background:var(--ink)!important;color:var(--paper)}
#voice-status{margin:8px 0 0;font-size:12px;color:#253022;text-shadow:0 1px 5px #ffffffe0}#voice-transcript{pointer-events:none}
#cony-status{position:fixed;left:var(--inset);bottom:28px;z-index:30;font-size:13px;background:#ffffffdc;padding:9px 12px}

#scroll-space{height:760svh;pointer-events:none}#beginning{position:absolute;top:0}dialog{width:min(1040px,calc(100vw - 32px));padding:12px;border:0;border-radius:30px;overflow:visible;color:#1d2f25;font-family:"Figtree","Matter",sans-serif;background:linear-gradient(135deg,#ffffff70,#ffffff4d 52%,#ffffff61);box-shadow:0 18px 70px #0a1c1438;backdrop-filter:blur(26px) saturate(1.3);-webkit-backdrop-filter:blur(26px) saturate(1.3)}dialog::backdrop{background:#0c1a1466;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}dialog>button,.reading-toolbar #thesis-close{width:44px;height:44px;padding:0;border-radius:50%;display:grid;place-items:center;color:#1d2f25;font:400 26px/1 "Figtree","Matter",sans-serif;background:linear-gradient(135deg,#ffffff84,#ffffff6b 52%,#ffffff7a);box-shadow:0 4px 18px #132b2514;backdrop-filter:blur(18px) saturate(1.25);-webkit-backdrop-filter:blur(18px) saturate(1.25)}dialog>button{position:absolute;right:0;top:-56px}#cinema-video{display:block;width:100%;max-height:calc(100dvh - 150px);aspect-ratio:16/9;object-fit:contain;background:#090b09;border-radius:20px}#film-status{font-size:14px;font-weight:500;margin:12px 8px 4px}.modal-open{overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link{position:fixed;top:10px;left:16px;z-index:101;transform:translateY(-200%);padding:12px 16px;background:white;font-size:13px}.skip-link:focus{transform:none}
@media(min-width:1700px){:root{--top:100px;--inset:48px}}
@media(max-width:1000px) and (min-width:761px){:root{--size:6.2vw}.friend .headline{font-size:4.7vw}.colourful .headline{font-size:3.6vw}}
@media(max-width:760px){:root{--inset:20px;--top:100px;--size:clamp(40px,11.2vw,82px);--leading:1}.site-header{top:26px;font-size:12px}.site-header #wordmark-target{font-size:19px}.friend .headline{font-size:clamp(34px,9.36vw,69px);line-height:1}.colourful .headline{font-size:clamp(30px,8.2vw,61px);line-height:1.01}.colourful .line{max-width:100%;white-space:normal;text-wrap:balance}#continue-button,#pause-button{bottom:18px}#conversation{bottom:76px;max-width:calc(100vw - 32px)}#mic-consent{gap:10px}dialog{width:calc(100vw - 20px);padding:8px;border-radius:24px}#cinema-video{border-radius:17px}#thesis-dialog{border-radius:26px}}
@media(max-height:520px) and (orientation:landscape){:root{--top:78px;--size:9.6vh}.friend .headline{font-size:8vh}.colourful .headline{font-size:7.2vh}.site-header{top:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.story-panel,#moving-wordmark{will-change:auto}}

/* Meadow: the source rig stays full-size for pose/hit mapping; only its world
   projection is visible. Native UI remains outside the scene focus pass. */
#cony-canvas{opacity:0!important;visibility:hidden!important}
.headline{filter:drop-shadow(0 1px 14px #ffffff35)}

/* Same typography over the low-key orbital opening, no backing panel. */
.earth-opening .site-header,.earth-opening #moving-wordmark,.earth-opening #story,.earth-opening #continue-button,.earth-opening #pause-button{color:#f2efda;text-shadow:0 1px 9px #11233342}

/* The story keeps one upper-left measure; the invitation ends in its action. */
.story-panel .headline{font-size:clamp(48px,7.34375vw,118px);line-height:1.12}
@media(max-width:760px){.story-panel .headline{font-size:clamp(29px,8vw,58px)}}

/* The lower contour of the actual Matter question mark is the only trigger. */
#dot-entry{position:fixed;inset:0;z-index:100;background:var(--entry-green);color:var(--entry-copy);pointer-events:none;visibility:hidden}
.dot-gated #dot-entry{visibility:visible;pointer-events:auto}
.entry-headline{position:absolute;z-index:1;top:var(--top);left:var(--inset);font-size:clamp(48px,5.78125vw,94px);line-height:1.13;filter:none;color:var(--entry-copy)}
.entry-phrase:is([data-opening="1"],[data-opening="2"]){font-size:clamp(29px,3.59375vw,58px);line-height:1.26;letter-spacing:0}
.entry-question-word{white-space:nowrap}
.entry-question{position:relative;display:inline-block;width:.496em;height:.714em;vertical-align:-.006em}
.question-hook{position:absolute;inset:0;width:100%;height:100%;fill:currentColor;pointer-events:none;opacity:0}
#birth-dot{position:absolute;left:calc(.226em - 22px);top:calc(.6435em - 22px);width:44px;height:44px;transform:none;padding:0;margin:0;border:0;background:none;color:#000;font:inherit;letter-spacing:inherit;line-height:inherit;overflow:visible;pointer-events:none}
.question-dot-ink{position:absolute;left:50%;top:50%;width:.144em;height:.141em;transform:translate(-50%,-50%);fill:currentColor;pointer-events:none}
#birth-dot:not(:disabled){pointer-events:auto;cursor:pointer}
#birth-dot:focus-visible{outline:1px solid #000;outline-offset:2px}
.dot-invitation{position:absolute;z-index:1;left:var(--period-screen-x);top:var(--period-screen-y);width:280px;height:108px;opacity:var(--dot-label,1);pointer-events:none}
.dot-invitation svg{position:absolute;fill:none;stroke:#000;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.invitation-arrow{inset:0;width:155px;height:92px}
.hand-lettering{left:160px;top:42px;width:100px;height:27px;opacity:1}
.dot-invitation path{stroke-dasharray:1;stroke-dashoffset:1}
.entry-running #dot-entry{animation:entry-clock 86400s linear both}
.entry-phrase{position:relative;visibility:hidden;margin:0 0 28px}
.entry-phrase:last-child{margin-bottom:0}
/* Only the letter clock gates ink. A delayed parent visibility animation must
   not hide an already written phrase or collide with a later line box. */
.entry-running .entry-phrase{visibility:visible}
.entry-phrase #birth-dot{opacity:0}
/* Retained paragraph boxes never collapse when their individual letters fade.
   WAAPI alone owns all opening ink opacity, including the native contours. */
.entry-headline{right:var(--inset);text-wrap:wrap}.entry-headline .line{width:auto}.entry-word{white-space:nowrap}
.entry-glyph{display:inline-block;vertical-align:baseline;padding:.35em .18em .45em;margin:-.35em -.18em -.45em;overflow:visible;opacity:0;mask:none;-webkit-mask:none;clip-path:none;filter:none;animation:none}
.entry-running .entry-glyph,.entry-running .question-hook,.entry-running #birth-dot{animation:none}
.entry-running .hand-lettering path{animation:invitation-draw .0806s calc(10.258s + var(--pen-order,0)*.062s) linear both}
.hand-lettering path:nth-child(2){--pen-order:1}.hand-lettering path:nth-child(3){--pen-order:2}.hand-lettering path:nth-child(4){--pen-order:3}.hand-lettering path:nth-child(5){--pen-order:4}
.entry-running .arrow-curve{animation:invitation-draw .3224s 10.4936s cubic-bezier(.22,.55,.45,1) both}
.entry-running .arrow-head{animation:invitation-draw .1116s 10.816s linear both}
:is(.entry-hidden,.entry-modal,.entry-pagehide) #dot-entry,:is(.entry-hidden,.entry-modal,.entry-pagehide) #dot-entry *,:is(.entry-hidden,.entry-modal,.entry-pagehide) #dot-entry :is(.entry-field-pan,.entry-pool-front)::after{animation-play-state:paused!important}
.dot-gated{overflow:hidden;background:var(--entry-green)}.dot-gated body{background:var(--entry-green)}
.dot-gated body>:not(:where(#dot-entry,.room,script)){opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.dot-gated .room{background:var(--entry-green)}
.dot-opening #dot-entry{z-index:0;background:transparent;pointer-events:none}
.dot-opening .room{z-index:1;background:transparent}
.dot-opening .entry-headline,.dot-opening .dot-invitation{visibility:hidden!important}
/* Animated child visibility must not escape the entry's exit state. */
html:not(.dot-gated) #dot-entry *,html.dot-opening #dot-entry>:not(.entry-field,.entry-grain),html.dot-opening #dot-entry>:not(.entry-field,.entry-grain) *{visibility:hidden!important}
.dot-opening #birth-dot{pointer-events:none}
.consumed-opening [data-panel="0"]{opacity:0!important;visibility:hidden!important}
@keyframes entry-clock{from{--entry-clock:0}to{--entry-clock:1}}
@keyframes invitation-draw{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){
  .entry-running .dot-invitation path{animation-duration:.001s}
}
@media(max-width:760px){.entry-headline{font-size:clamp(29px,8vw,58px)}}

/* The existing heading paints above the green-to-space aperture. Difference
   blending follows the same live field and universe beneath each glyph. */
html.early-copy body>#story{opacity:1!important;visibility:visible!important;z-index:101;mix-blend-mode:difference;color:#f2efda;text-shadow:none;pointer-events:none!important}
html.early-copy #story [data-panel="1"]{opacity:1!important;visibility:visible!important}
html.early-copy #story [data-panel="1"] .headline{filter:none;text-shadow:none}
html.early-copy #story [data-panel="1"] .text-letter{opacity:1!important}
html.early-copy #story [data-panel]:not([data-panel="1"]){opacity:0!important;visibility:hidden!important}

/* A small ambient control shares the journey controls' existing measure. */
#sound-button{position:fixed;right:calc(var(--inset) + 104px);bottom:24px;width:44px;height:44px;padding:12px;background:none;color:inherit;opacity:.64;z-index:35}
#sound-button:hover,#sound-button:focus-visible{opacity:1}#sound-button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
#sound-button .sound-slash,.sound-muted .sound-wave{display:none}.sound-muted .sound-slash{display:block!important}
.earth-opening #sound-button{color:#f2efda}
@media(max-width:760px){#sound-button{bottom:18px}}

/* A transparent membrane sits over the opening ink; all hit testing passes through. */
#entry-liquid{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;pointer-events:none}

/* The same opaque green pools continue beneath the transparent birth resolve.
   Only the real universe aperture covers them; the surface never fades white. */
.entry-field,.entry-grain{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.entry-field{opacity:1;background:var(--entry-green)}
.entry-field-pan{position:absolute;inset:-5%;background:var(--entry-green);opacity:1;transform:translate3d(var(--field-pointer-x,0px),var(--field-pointer-y,0px),0);transition:transform 2.8s cubic-bezier(.2,.65,.35,1)}
.entry-pool{position:absolute;inset:-12%;will-change:transform;transform-origin:50% 50%}
.entry-pool-back{background:radial-gradient(ellipse 48% 60% at 83% 12%,#dcebd5 0%,#bad0b4 28%,transparent 76%),radial-gradient(ellipse 56% 44% at 4% 8%,#8a996e 0%,transparent 83%),radial-gradient(ellipse 54% 63% at 80% 88%,#1e392f 0%,#40563e 37%,transparent 80%),radial-gradient(ellipse 49% 48% at 9% 91%,#a6af84 0%,transparent 80%),linear-gradient(135deg,#707e50,#7d916f 52%,#40563f);animation:entry-back-glide 5.6s ease-in-out infinite alternate,entry-back-slide 3.9s ease-in-out infinite alternate,entry-back-turn 8.7s ease-in-out infinite alternate,entry-back-breathe 6.7s ease-in-out infinite alternate}
.entry-pool-front{background:radial-gradient(ellipse 45% 25% at 38% 25%,#b7c49922,transparent 95%),radial-gradient(ellipse 29% 50% at 13% 57%,#2d48367a 0%,transparent 86%),radial-gradient(ellipse 31% 45% at 70% 43%,#d0e6d388 0%,transparent 93%),radial-gradient(ellipse 51% 22% at 38% 95%,#7a8b6fcc,transparent 95%);animation:entry-front-glide 4.9s ease-in-out infinite alternate,entry-front-slide 6.5s ease-in-out infinite alternate,entry-front-turn 7.7s ease-in-out infinite alternate,entry-front-breathe 5.3s ease-in-out infinite alternate}
/* The field should drift like liquid, not sit still. Each layer glides, slides,
   turns and breathes on its own clock, so the pools never repeat one path, and
   two loose pools of light and shade wander across them. Every cycle starts
   from the pose the inline first-paint styles hold, so nothing jumps on load. */
.entry-field-pan::after,.entry-pool-front::after{content:"";position:absolute;border-radius:50%;pointer-events:none;will-change:transform,opacity;opacity:0}
.entry-field-pan::after{left:10%;top:4%;width:60%;height:68%;background:radial-gradient(closest-side,#e4f1de70,#cfe2cb38 46%,#cfe2cb00);animation:entry-accent-in 2.4s ease-out .3s forwards,entry-light-across 7.1s ease-in-out infinite alternate,entry-light-down 5.3s ease-in-out infinite alternate}
.entry-pool-front::after{left:38%;top:32%;width:54%;height:60%;background:radial-gradient(closest-side,#1b372c75,#2a45393d 50%,#2a453900);animation:entry-accent-in 2.4s ease-out .3s forwards,entry-shade-across 8.1s ease-in-out infinite alternate,entry-shade-up 6.1s ease-in-out infinite alternate}
.entry-grain{opacity:.075;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23808080' filter='url(%23n)' opacity='.42' d='M0 0h180v180H0z'/%3E%3C/svg%3E");background-size:180px 180px;mix-blend-mode:soft-light}
@keyframes entry-back-glide{from{transform:translate3d(-2%,1%,0) rotate(-4deg) scale(1.02)}to{transform:translate3d(3.5%,-3%,0) rotate(-4deg) scale(1.02)}}
@keyframes entry-back-slide{from{translate:0 0}to{translate:-2.5% 4%}}
@keyframes entry-back-turn{from{rotate:0deg}to{rotate:8deg}}
@keyframes entry-back-breathe{from{scale:1}to{scale:1.13}}
@keyframes entry-front-glide{from{transform:translate3d(3%,-2%,0) rotate(5deg) scale(1.04)}to{transform:translate3d(-4%,3%,0) rotate(5deg) scale(1.04)}}
@keyframes entry-front-slide{from{translate:0 0}to{translate:3% 3.5%}}
@keyframes entry-front-turn{from{rotate:0deg}to{rotate:-9deg}}
@keyframes entry-front-breathe{from{scale:1}to{scale:1.14}}
@keyframes entry-accent-in{to{opacity:1}}
@keyframes entry-light-across{from{transform:translate3d(-14%,0,0) scale(.94)}to{transform:translate3d(36%,0,0) scale(1.12)}}
@keyframes entry-light-down{from{translate:0 -4%}to{translate:0 30%}}
@keyframes entry-shade-across{from{transform:translate3d(10%,0,0) scale(1.06)}to{transform:translate3d(-40%,0,0) scale(.92)}}
@keyframes entry-shade-up{from{translate:0 14%}to{translate:0 -30%}}
/* The rainbow belongs to the lower font contour. Its position/size never pulse. */
.entry-running .question-dot-ink{animation:entry-spectrum 1.1s 8.4724s steps(1,end) infinite}
@keyframes entry-spectrum{0%,100%{color:#ff394c}16.667%{color:#ff73bd}33.333%{color:#b181ff}50%{color:#3592ff}66.667%{color:#ffe34b}83.333%{color:#8ce772}}
@media(prefers-reduced-motion:reduce){.entry-running .question-dot-ink{animation:none;color:#ffe34b}}

/* Neutral frost protects the ink even when a pill crosses dark tree canopies.
   The pills carry no outline: no border and no inset edge highlight. */
.reading-links,#moving-wordmark{color:#20352b;background:linear-gradient(135deg,#ffffff84,#ffffff6b 52%,#ffffff7a);border:0;border-radius:999px;box-shadow:0 4px 18px #132b2514;backdrop-filter:blur(18px) saturate(1.25);-webkit-backdrop-filter:blur(18px) saturate(1.25);text-shadow:0 1px 2px #ffffff50}
#moving-wordmark{padding:11px 17px;filter:none}
.reading-links{display:flex;align-items:center;gap:22px;padding:0 18px;white-space:nowrap;font-family:"Figtree","Matter",sans-serif;font-size:13px;font-weight:500;line-height:1.2}
.reading-links a,#film-access button{display:inline-flex;align-items:center;min-height:44px;padding:0;background:none;color:inherit;font:inherit;text-shadow:inherit;white-space:nowrap}
#film-access{display:flex;align-items:center;gap:22px}
.reading-links a:hover,#film-access button:hover{text-decoration:underline;text-underline-offset:4px}
.reading-links :is(a,button):focus-visible,#moving-wordmark:focus-visible{outline:2px solid #f2f1e9;outline-offset:4px}
/* Reading is a taller pane of the same glass, with more frost than the pills
   so long text stays easy to read over the meadow. No opaque sheet. */
#thesis-dialog{width:min(1080px,calc(100vw - 40px));height:min(900px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;overflow:auto;overscroll-behavior:contain;color:#1b2b22;font:400 19px/1.6 "Figtree","Matter",sans-serif;background:linear-gradient(135deg,#ffffffc7,#ffffffad 52%,#ffffffbd);backdrop-filter:blur(34px) saturate(1.35);-webkit-backdrop-filter:blur(34px) saturate(1.35);scrollbar-width:thin;scrollbar-color:#1d2f2540 transparent}
#thesis-dialog::backdrop{background:#0c1a1452;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.reading-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:16px 18px 10px 22px}
/* Text dissolves into frost as it scrolls under the floating controls. */
.reading-toolbar::before{content:"";position:absolute;inset:0 0 -22px;z-index:-1;pointer-events:none;background:linear-gradient(#ffffffd6 45%,#ffffff00);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);mask-image:linear-gradient(#000 55%,#0000);-webkit-mask-image:linear-gradient(#000 55%,#0000)}
.reading-toolbar nav{display:flex;gap:2px;padding:0 4px;border-radius:999px;background:linear-gradient(135deg,#ffffff84,#ffffff6b 52%,#ffffff7a);box-shadow:0 4px 18px #132b2514}.reading-toolbar nav button{min-height:44px;padding:0 16px;border:5px solid #0000;border-radius:999px;background:none;background-clip:padding-box;font:500 13px/1 "Figtree","Matter",sans-serif;color:#1d2f25b0}.reading-toolbar nav [aria-pressed="true"]{color:#1d2f25;background-color:#ffffffd9}
.reading-content{max-width:780px;margin:0 auto;padding:40px 36px 84px;overflow-wrap:break-word}
.reading-content h1{font-size:clamp(36px,4.2vw,56px);font-weight:600;line-height:1.06;letter-spacing:-.028em;margin:0 0 22px;text-wrap:balance}
.reading-content h2{font-size:28px;font-weight:600;line-height:1.2;letter-spacing:-.018em;margin:48px 0 18px}.reading-content p{margin:0 0 24px}.reading-content strong,.reading-content b{font-weight:600}.reading-content .byline,.reading-content .date{font-size:14px;font-weight:500;color:#1d2f25a6;line-height:1.5}.reading-content header{margin-bottom:38px}.reading-content .date{margin-top:5px}.reading-content img{display:block;width:100%;height:auto;border-radius:18px}.reading-content .hero{margin-top:32px}.reading-content figure{margin:36px -20px}.reading-content figcaption{font-size:14px;line-height:1.5;color:#1d2f25a6;margin-top:16px}.reading-content .refs{margin-top:48px;font-size:15px;line-height:1.55}.reading-content li{margin-bottom:12px}.reading-content article a{text-decoration:underline;text-underline-offset:3px}.reading-content .entry{display:block;padding:24px 0;border-top:1px solid #1d2f2524}.reading-content .entry h2{margin:14px 0;font-size:32px}.reading-content .entry:hover h2{text-decoration:underline;text-underline-offset:5px}.reading-content .tag{margin-right:16px}.reading-content h1:focus{outline:none}
@media(max-width:760px){.reading-content{padding:30px 26px 72px}.reading-toolbar{padding:14px 12px 8px 14px}}
@media(prefers-reduced-motion:reduce){.entry-field-pan::after,.entry-pool-front::after{display:none}.entry-pool,.entry-running .question-dot-ink{animation:none!important}.entry-pool{will-change:auto}.entry-field-pan{transform:none;transition:none}.entry-field{will-change:auto}}

.earth-opening .reading-links,.earth-opening #moving-wordmark{color:#f2f1e9;text-shadow:0 1px 3px #091b30a0;background:linear-gradient(135deg,#1723319e,#17233166 52%,#17233180)}
/* Phones and touch. Below about 520px the wordmark and the four links cannot share a line, so the menu sits
   under the wordmark and the story text starts below both. Fixed controls keep clear of the notch and the
   home indicator (the entry page asks for viewport-fit=cover; every inset is 0 elsewhere, so nothing moves
   on a desktop). Taps and drags on the scene never select text, call up the system menu, zoom on a double
   tap or pull the page to refresh. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
html{overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,.site-header,#conversation{touch-action:manipulation}
.site-header,#moving-wordmark,#dot-entry,#story,#room-canvas,#cony-canvas,#continue-button,#pause-button,#sound-button,#conversation{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.site-header,.story-panel{left:max(var(--inset),var(--safe-left));right:max(var(--inset),var(--safe-right))}
.entry-headline{left:max(var(--inset),var(--safe-left));right:max(var(--inset),var(--safe-right))}
#continue-button{right:max(var(--inset),var(--safe-right))}
#pause-button{right:calc(max(var(--inset),var(--safe-right)) + 52px)}
#sound-button{right:calc(max(var(--inset),var(--safe-right)) + 104px)}
#continue-button,#pause-button,#sound-button,#conversation{margin-bottom:var(--safe-bottom)}
/* The hand-written hint says "tap here" where the main input is a finger. */
.touch-lettering{display:none}
@media(hover:none) and (pointer:coarse){.hand-lettering:not(.touch-lettering){display:none}.touch-lettering{display:block}}
/* A full-screen blend mode costs a phone an extra pass over every pixel of the intro on each frame; the grain
   is faint enough that plain blending at a lower strength looks the same there. */
@media(hover:none) and (pointer:coarse){.entry-grain{mix-blend-mode:normal;opacity:.05}}
@media(max-width:520px){
  .site-header{flex-direction:column;align-items:flex-start;gap:8px;top:max(20px,var(--safe-top))}
  .reading-links,#film-access{gap:18px}
  .reading-links{padding:0 16px}
  .reading-links a,#film-access button{min-height:42px}
  .story-panel{top:calc(var(--top) + 42px)}
}
/* Safari on iOS 26 colours its top and bottom bars from a solid fixed strip lying on each screen edge.
   browser-edges.js lays the strips and keeps their colours in step with the scene. They belong to the
   browser's frame, not to the page, so the intro's gate does not hide them. */
.browser-edge{position:fixed;left:0;right:0;z-index:200;pointer-events:none}
.browser-edge[data-edge=top]{top:0}
.browser-edge[data-edge=bottom]{bottom:0}
.dot-gated body>.browser-edge{opacity:1!important;visibility:visible!important}
/* Focus rings are for keyboard use. Safari also draws one on a control that a script focuses after a tap
   or a click, such as the close button of a panel; story.js notes which input came last. */
html[data-input=pointer] :focus-visible{outline:none!important}
/* Burst variants (?burst=NAME, burst-style.js). The intro page stays under the
   opening canvas until the burst covers it, so the burst can swallow or carry it. */
html[data-burst].dot-gated.dot-opening #dot-entry :is(.entry-headline,.dot-invitation),html[data-burst].dot-gated.dot-opening #dot-entry :is(.entry-headline,.dot-invitation) *{visibility:visible!important}
/* Nova's held breath: the field dims a little under the lettering. */
html[data-burst=nova] #dot-entry::after{content:"";position:absolute;inset:0;background:#10162b;opacity:var(--burst-dim,0);pointer-events:none}
/* Layers the burst scales are promoted before the tap, so the first scaled frame
   is not a fresh raster of the field and lettering (a 250 ms stall otherwise). */
html[data-burst] #dot-entry :is(.entry-field,.entry-headline,.dot-invitation){will-change:transform}
