/* File: obsidian.css | Path: public/obsidian/obsidian.css | Purpose: Stable navigation and a fragmenting control around the obsidian scene. */
:root{color-scheme:light;--paper:#e9ebe4;--ink:#192225;--muted:#657174;--accent:#397d75}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:6px}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}
#experience{position:relative;width:100%;height:100%;isolation:isolate;overflow:hidden}#world{position:absolute;inset:0;width:100%;height:100%;z-index:-3}.grain{position:absolute;inset:0;pointer-events:none;z-index:8;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")}.ambient-word{position:absolute;left:41%;top:12%;font-size:clamp(160px,24vw,650px);letter-spacing:-.08em;font-weight:700;line-height:1;color:#22312c;opacity:.034;pointer-events:none;z-index:-2;transition:opacity 1s,transform 1.4s}body[data-phase='open'] .ambient-word,body[data-phase='opening'] .ambient-word{opacity:.016;transform:translateY(-12%)}
main::before{content:'';position:absolute;inset:100px auto 130px 0;width:40vw;background:linear-gradient(90deg,#e9ebe4f0 70%,transparent);z-index:1;pointer-events:none}
header{position:absolute;top:0;left:0;right:0;height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 4.5vw;border-bottom:1px solid #23312b14;z-index:10}.brand{font-size:22px;font-weight:700;letter-spacing:.17em;display:flex;align-items:center;gap:14px}.brand span{font-size:34px;color:var(--accent);font-weight:400}header>p{font-size:10px;letter-spacing:.19em;display:flex;align-items:center;gap:15px;margin-left:auto;margin-right:8vw}header i{height:3px;width:3px;background:var(--accent);border-radius:50%}nav{display:flex;align-items:center;gap:24px;font-size:12px}nav button{border:0;background:transparent;padding:10px 0;color:var(--accent)}
main{height:100%;pointer-events:none}#intro,#project-copy{position:absolute;left:6.2vw;top:27%;width:36vw;z-index:3;pointer-events:auto}#intro{transition:opacity .45s,transform .9s}body[data-phase='opening'] #intro,body[data-phase='open'] #intro{opacity:0;transform:translateX(-30px);pointer-events:none}.eyebrow{font-size:10px;letter-spacing:.19em;color:var(--accent);line-height:1.7;margin:0 0 30px}h1,h2{font-size:clamp(46px,4.4vw,140px);line-height:1.04;letter-spacing:-.055em;font-weight:500;margin:0}h1 em{font-style:normal;color:var(--accent)}.description{font-size:clamp(13px,.92vw,24px);line-height:1.7;color:var(--muted);margin:27px 0}.open-button{display:flex;align-items:center;justify-content:space-between;gap:60px;background:var(--ink);border:0;color:var(--paper);padding:20px 23px;font-size:13px;min-width:265px;transition:background .2s,transform .2s}.open-button:hover{background:var(--accent);transform:translateY(-2px)}.open-button b{font-weight:400;font-size:23px}.micro{margin-top:16px;font-size:9px;letter-spacing:.17em;color:var(--muted)}
#project-copy{top:30%;width:27vw;animation:copy-in .8s both}h2{font-size:clamp(42px,4.15vw,132px)}#project-copy .eyebrow{margin-bottom:20px}.project-notes{padding-top:21px;margin-top:28px;border-top:1px solid #24343030;font-size:11px;letter-spacing:.04em;color:var(--ink)}.project-notes p{font-size:11px;line-height:1.7;color:var(--muted);letter-spacing:0;margin-top:18px}.text-button{padding:14px 0;background:none;border:0;font-size:12px;color:var(--accent);display:flex;gap:40px;align-items:center}.text-button span{font-size:22px}#project-details{max-width:300px;color:var(--muted);font-size:12px;line-height:1.65}#project-details p{margin:6px 0}body[data-phase='closing'] #project-copy{opacity:0;pointer-events:none}body[data-phase='closing'] #intro{transition-delay:.2s}.object-caption{position:absolute;left:48%;right:6%;bottom:23%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.16em;color:var(--muted);pointer-events:none;transition:opacity .5s}body[data-phase='opening'] .object-caption,body[data-phase='open'] .object-caption{opacity:0}
footer{position:absolute;bottom:0;left:0;right:0;padding:23px 4.5vw 28px;min-height:132px;border-top:1px solid #23312b14;background:linear-gradient(0deg,var(--paper) 80%,transparent);display:flex;align-items:center;gap:4vw;z-index:10}.footer-caption{width:19vw;flex-shrink:0}.footer-caption>span{font-size:9px;letter-spacing:.12em;color:var(--muted)}.footer-caption p{font-size:12px;margin:10px 0 0;color:var(--accent)}.world-selector{display:flex;gap:2px;flex:1;max-width:830px}.world-selector button{flex:1;text-align:left;display:flex;gap:13px;align-items:center;white-space:nowrap;background:transparent;border:1px solid #25322e28;padding:19px 20px;color:var(--muted);font-size:13px;transition:color .25s,border-color .25s,background .25s}.world-selector button small{font-size:9px;opacity:.5;align-self:flex-start}.world-selector button span{margin-left:auto;color:var(--accent)}.world-selector button:hover,.world-selector button[aria-pressed='true']{background:#ffffff65;color:var(--ink);border-color:#25322e65}.journey{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:8px;letter-spacing:.12em;color:var(--muted)}.journey i{width:65px;height:1px;background:#26352e25;position:relative}.journey b{position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left}
#fallback{padding:10vh 8vw}#fallback h1{margin-top:20vh;font-size:clamp(34px,5vw,70px)}#fallback p{line-height:1.7;margin:25px 0}#fallback>a:last-child{text-decoration:underline}noscript{position:fixed;bottom:0;padding:20px;z-index:20;background:var(--paper)}
@keyframes copy-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1300px){header{height:80px}.eyebrow{font-size:8px;letter-spacing:.12em}#intro{top:24%}#project-copy{top:25%}.description{margin:20px 0}.journey{display:none}.world-selector button{padding:16px 14px;font-size:11px}.open-button{min-width:240px;padding:16px 20px}.object-caption{font-size:7px;bottom:24%}footer{min-height:110px}.project-notes{margin-top:20px;padding-top:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* The same real button owns both shapes; pointer/keyboard never target an animated decorative fragment. */
#crystal-toggle{position:absolute;left:0;top:0;z-index:12;border:0;background:transparent;padding:0;perspective:600px;overflow:visible;color:#fff0df;cursor:pointer}
#crystal-toggle>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.button-piece{fill:#282019;stroke:#e1ac76;stroke-width:.85;stroke-linejoin:round;transform-box:fill-box;transform-origin:center;backface-visibility:visible}
.toggle-label{position:absolute;left:22px;right:21px;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;align-items:center;font-size:12px;pointer-events:none;white-space:nowrap}
.toggle-label b{font-weight:400;font-size:24px}.toggle-caption{position:absolute;top:59px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:.12em;color:var(--accent);opacity:0;pointer-events:none}.is-close .button-piece{fill:#33261d}
.label-text{background:#282019;padding:4px 6px;margin-left:-6px;box-shadow:0 0 6px 3px #282019;font-size:13px}
footer{gap:3vw}.footer-caption{width:22vw}.project-navigation{display:flex;align-items:center;gap:16px;margin:auto;white-space:nowrap}.project-navigation button{border:1px solid #25322e28;background:#ffffff55;display:flex;gap:15px;align-items:center;color:var(--ink);padding:17px 18px;font-size:13px;transition:border-color .2s,background .2s}.project-navigation button:hover:not(:disabled){background:#f7fbf8;border-color:var(--accent)}.project-navigation button:disabled,.page-navigation button:disabled{opacity:.25;cursor:default}.project-navigation>span{font-size:10px;color:var(--muted);letter-spacing:.1em}.page-navigation{display:flex;align-items:center;gap:16px}.page-navigation button{width:45px;height:45px;background:transparent;border:1px solid #25322e40;font-size:22px;color:var(--accent)}.page-navigation button:hover:not(:disabled){background:#f7fbf8}.page-navigation>div{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:95px}.page-navigation small{font-size:7px;letter-spacing:.12em;color:var(--muted)}.page-navigation span{font-size:11px;color:var(--accent);letter-spacing:.1em}#page-name{font-size:12px;color:var(--accent)}
main::before{background:linear-gradient(90deg,#e9ebe4f0 70%,transparent)}
@media(max-width:1300px){footer{gap:16px}.footer-caption{width:19vw}.footer-caption>span{font-size:7px}.project-navigation{gap:10px}.project-navigation button{padding:14px 10px;font-size:10px;gap:8px}.page-navigation{gap:10px}.page-navigation>div{min-width:76px}.page-navigation small{font-size:6px}.page-navigation button{width:37px;height:37px}}

/* Fixed slot; fractured surfaces appear only on attention, with real CSS depth and drawn side walls. */
#crystal-toggle{color:#edf2f4;perspective:650px;transform-style:preserve-3d}
#crystal-toggle>svg{height:88px;transform-style:preserve-3d}
#crystal-toggle>svg g{transform-box:fill-box;transform-origin:center;transform-style:preserve-3d}
.button-piece{fill:#0a0e12;stroke:#b98954;stroke-width:.75;stroke-opacity:0}
.button-wall{fill:#050607;stroke:none}.button-ridge{fill:#c4d0d6;stroke:none}
.toggle-label{left:18px;right:16px;top:32px;font-size:13px}.toggle-label b{font-size:21px}
.label-text{background:#0a0e12;box-shadow:0 0 5px 2px #0a0e12;font-size:13px;padding:3px 4px}
.toggle-caption{top:80px;left:50%;color:var(--ink);font-size:8px;letter-spacing:.14em}
.is-close .button-piece{fill:#12181e}
@media(max-height:800px){#intro{top:23%}#intro h1{font-size:clamp(42px,3.8vw,70px)}#intro .description{font-size:12px;margin:17px 0}#load-status{font-size:7px}#project-copy{top:24%}#project-details{max-height:90px;overflow:auto}}

/* Photo V4: fragments stay visible around the protected copy, never over controls. */
body[data-phase="open"] main::before,body[data-phase="opening"] main::before{opacity:.10}
@media(min-width:900px) and (max-height:649px){header{height:64px}#intro,#project-copy{top:90px}#intro h1{font-size:clamp(34px,3.8vw,46px)}#intro .eyebrow,#project-copy .eyebrow{margin-bottom:12px}#intro .description,#project-copy .description{margin:12px 0;font-size:11px}#load-status{display:none}#project-copy h2{font-size:42px}footer{min-height:90px;padding-top:14px;padding-bottom:14px}.object-caption{bottom:27%}.project-notes{margin-top:12px;padding-top:12px}}
@media(min-width:900px) and (max-height:549px){#intro .description,#project-copy .description,.project-notes,#details{display:none}}

/* PHOTO V8: original transparent reference textures; the semantic hit slot stays fixed. */
#crystal-toggle>svg{height:100%;transform-style:preserve-3d;overflow:visible}
/* Native SVG matrices already encode each pivot. CSS must not apply a second origin. */
#crystal-toggle .photo-button-fragment,#crystal-toggle .photo-button-fragment g{transform-box:view-box;transform-origin:0 0;transform-style:preserve-3d}
.toggle-label{left:0;right:0;top:55px;justify-content:center;font-size:14px;font-weight:700;letter-spacing:.17em;color:#fff9ed;text-shadow:0 1px 2px #000,0 0 5px #000,0 0 9px #000}
.toggle-label b{display:none}.toggle-caption{top:119px;color:var(--ink);font-weight:600;font-size:9px;letter-spacing:.18em}
@media(max-width:1300px){.toggle-label{top:47.5px;font-size:12px}.toggle-caption{top:103px;font-size:8px}}

/* PHOTO V10: an exclusive control bay and sequential copy exposure managed by the render loop. */
:root{--dock-height:172px;--bay-width:252px}
footer{height:var(--dock-height);min-height:var(--dock-height);padding:12px 4.5vw;gap:16px;background:var(--paper)}
.crystal-control-bay{width:var(--bay-width);flex-shrink:0;align-self:stretch;border-right:1px solid #23312b20}
footer .footer-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#intro,#project-copy{bottom:calc(var(--dock-height) + 24px);overflow:auto;overscroll-behavior:contain;transition:none;animation:none;scrollbar-width:thin}
@media(max-width:1300px){:root{--dock-height:154px;--bay-width:214px}}
@media(max-height:800px){:root{--dock-height:154px}}
@media(max-height:649px){:root{--dock-height:142px}}
