:root{color-scheme:dark;--font-display:"Playfair Display",serif;--font-interface:"Raleway",sans-serif;--bg:#080808;--panel:#111;--soft:#171717;--line:#303030;--text:#f3f1ea;--muted:#a5a29a;--accent:#ffe100;--danger:#f0a5a5;--header-h:92px}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:var(--font-interface)}
button,a{font:inherit;color:inherit}
button{cursor:pointer}
body{overflow:hidden}
.app{min-height:100svh;background:#050505}
.gallery-header{position:fixed;z-index:80;top:0;left:0;right:0;height:var(--header-h);display:flex;align-items:center;padding:16px 28px;background:rgba(7,7,7,.98);border-bottom:1px solid #232323}
.archive-mark{display:grid;gap:3px;color:var(--text);text-decoration:none;min-width:220px}
.archive-mark small{color:var(--muted);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}
.primary-nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:4px}
.primary-nav button,.mobile-menu{border:0;background:transparent;color:#b5b2aa;padding:8px 10px;font-size:.82rem;letter-spacing:.035em}
.primary-nav button:hover,.primary-nav button:focus-visible,.primary-nav button.is-active{color:var(--text)}
.river-word{margin-left:auto;border:0;background:transparent;padding:7px 0;color:var(--accent);font-family:var(--font-display);font-style:italic;font-size:1.08rem;letter-spacing:.02em;cursor:pointer;transition:color .18s ease}
.river-word:hover,.river-word:focus-visible,.river-word.is-active{color:#fff}
.mobile-menu{display:none;margin-left:auto}
.work-mode .primary-nav{display:none}
.work-mode .mobile-menu{display:block;margin-left:auto}
.work-mode .river-word{margin-left:14px}
.current-work-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;display:grid;gap:2px;text-align:center;max-width:min(40vw,620px);pointer-events:none;color:var(--text)}
.current-work-mark[hidden]{display:none}
.current-work-mark strong{font-size:.96rem;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.current-work-mark span{font-size:.69rem;line-height:1.2;color:var(--muted);letter-spacing:.055em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.experience-shell{position:fixed;z-index:20;top:var(--header-h);left:0;right:0;bottom:0;background:#050505;display:grid;grid-template-columns:minmax(0,1fr) 0}
.experience-shell.panel-open{grid-template-columns:minmax(0,1fr) min(430px,38vw)}
.stage{position:relative;min-width:0;height:calc(100svh - var(--header-h));overflow:hidden;background:radial-gradient(circle at 50% 40%,#101010 0,#060606 65%,#030303 100%);display:grid;grid-template-columns:minmax(0,1fr) clamp(176px,14vw,218px);gap:clamp(20px,2.2vw,34px);padding:40px clamp(30px,3.2vw,54px)}
.experience-shell.is-threshold .stage{grid-template-columns:1fr;gap:0;padding:24px clamp(28px,4vw,64px)}
.experience-shell.is-threshold .control-rail{display:none}
.experience-shell.is-work[data-work="flor-de-lotus-2"] .stage{padding-top:10px;padding-bottom:10px}
.artwork-area{position:relative;min-width:0;min-height:0;overflow:hidden;display:grid;place-items:center}
.artwork-view{position:absolute;inset:0;display:grid;place-items:center;opacity:0;visibility:hidden;transition:opacity .55s ease;pointer-events:none}
.artwork-view.is-active{opacity:1;visibility:visible}
.artwork-view iframe{display:block;border:0;background:#000;pointer-events:none;max-width:100%;max-height:100%}
.preload-veil{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;background:#080808;color:#9e9b94;letter-spacing:.08em;font-size:.8rem;text-transform:uppercase;transition:opacity .65s ease,visibility .65s ease}
.artwork-view.is-loaded .preload-veil{opacity:0;visibility:hidden}

.control-rail{min-width:0;min-height:0;display:grid;grid-template-rows:1fr;align-items:stretch}
.entry-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.control-zone{min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:14px}
.controls{position:relative;z-index:6;display:flex;flex-direction:column;gap:7px;align-items:stretch;padding:8px;background:rgba(10,10,10,.82);border:1px solid #3a3a3a;backdrop-filter:blur(14px);transition:opacity .35s ease,transform .35s ease}
.controls.is-receded{opacity:.28;transform:translateX(4px)}
.controls:hover,.controls:focus-within{opacity:1;transform:none}
.controls button,.listen-prompt{border:1px solid #3d3d3d;background:#141414;padding:11px 13px;white-space:nowrap;text-align:left}
.controls button{width:100%}
.controls button:hover,.controls button:focus-visible,.listen-prompt:hover,.listen-prompt:focus-visible{border-color:#999;background:#1d1d1d}
.controls .leave{margin-top:5px;border-color:#5e4545;color:#f0dada}
.listen-prompt{position:relative;z-index:7;width:100%;min-height:96px;display:grid;align-content:center;gap:5px;padding:16px;border-color:color-mix(in srgb,var(--accent) 68%,#3d3d3d);background:rgba(15,15,15,.98);backdrop-filter:blur(14px)}
.listen-prompt span{color:#bbb;font-size:.82rem;letter-spacing:.02em}
.listen-prompt strong{color:var(--accent);font-size:clamp(1.35rem,2vw,1.75rem);line-height:1}
.listen-prompt[hidden]{display:none}

.threshold-intro{position:absolute;z-index:20;inset:0;display:grid;place-items:center;padding:clamp(28px,5vw,76px);visibility:hidden;pointer-events:none;isolation:isolate}
.threshold-intro::before{content:"";position:absolute;z-index:0;inset:0;background:rgba(3,3,3,.76);opacity:0;transition:opacity 3s ease;backdrop-filter:blur(1.5px)}
.threshold-intro.is-active{visibility:visible;pointer-events:auto}
.threshold-intro.is-darkening::before{opacity:1}
.threshold-intro[hidden]{display:none}
.threshold-wall{position:relative;z-index:1;width:min(900px,80vw);display:grid;justify-items:center;gap:0;margin:0 auto;text-align:center;opacity:0;pointer-events:none;transition:opacity 3s ease}
.threshold-intro.is-copy-visible .threshold-wall{opacity:1;pointer-events:auto}
.threshold-intro.is-closing::before,.threshold-intro.is-closing .threshold-wall{opacity:0;transition-duration:.45s;transition-delay:0s}
.threshold-eyebrow{margin:0 0 9px;color:var(--accent);font-size:.76rem;letter-spacing:.14em;text-transform:uppercase}
.threshold-wall h1{font-family:var(--font-display);font-weight:400;font-size:clamp(3.4rem,6.25vw,5rem);line-height:.92;letter-spacing:-.045em;margin:0 0 24px}
.threshold-invitation{max-width:760px;font-size:clamp(1.15rem,1.8vw,1.5rem);line-height:1.4;margin:0 auto 18px;color:#e8e5dd}
.threshold-proposition{max-width:760px;font-size:clamp(1.25rem,1.9vw,1.5rem);line-height:1.38;letter-spacing:-.012em;margin:0 auto}
.threshold-scope{max-width:710px;color:#b4b1a8;line-height:1.52;margin:17px auto 0}
.now-flowing{width:min(650px,100%);margin:34px auto 0;padding-top:18px;border-top:1px solid #555;display:grid;justify-items:center;gap:4px}
.now-flowing>span,.threshold-dock>div>span{color:var(--accent);font-size:.7rem;letter-spacing:.13em;text-transform:uppercase}
.now-flowing strong{font-size:1.35rem;font-weight:600}
.now-flowing small{color:#bbb;text-transform:uppercase;letter-spacing:.055em}
.now-flowing p{color:#aaa;margin:6px 0 0;line-height:1.45}
.threshold-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px}
.threshold-actions button,.threshold-dock button{border:1px solid #555;background:#141414;padding:12px 15px}
.threshold-actions button:hover,.threshold-actions button:focus-visible,.threshold-dock button:hover,.threshold-dock button:focus-visible{border-color:#aaa;background:#666;color:#fff}
.threshold-actions .threshold-primary:hover,.threshold-actions .threshold-primary:focus-visible{background:#666;border-color:#666;color:#fff}
.threshold-actions .threshold-primary{background:var(--accent);border-color:var(--accent);color:#111;font-weight:700}
.threshold-actions .quiet-action{border-color:transparent;background:transparent;color:#c0bdb5;padding-left:8px;padding-right:8px}
.threshold-dock{position:absolute;z-index:16;left:50%;bottom:20px;transform:translateX(-50%);width:min(930px,calc(100% - 48px));display:flex;justify-content:space-between;align-items:center;gap:26px;padding:12px 14px 12px 16px;background:rgba(8,8,8,.88);border:1px solid #3b3b3b;backdrop-filter:blur(16px)}
.threshold-dock[hidden]{display:none}
.threshold-dock>div:first-child{display:grid;gap:3px;min-width:0}
.threshold-dock strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.threshold-dock small{color:#aaa;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.threshold-dock-actions{display:flex;gap:8px;flex-shrink:0}
.threshold-dock-actions button:first-child{border-color:#6b6b6b;font-weight:600}

.info-panel{min-width:0;height:100%;background:rgba(17,17,17,.98);border-left:1px solid var(--line);padding:22px;overflow:auto;transform:translateX(100%);transition:transform .5s ease}
.panel-open .info-panel{transform:translateX(0)}
.panel-head{display:flex;justify-content:space-between;align-items:start;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.panel-head p{margin:0;color:var(--accent);text-transform:uppercase;letter-spacing:.11em;font-size:.72rem}
.panel-head button{border:0;background:transparent;color:#ccc;padding:0 0 5px;border-bottom:1px solid #555}
#panelContent{padding:24px 0 50px}
#panelContent h2{font-size:2rem;letter-spacing:-.04em;font-weight:500;margin:0 0 20px}
#panelContent h3{font-size:1rem;font-weight:600;margin:28px 0 8px}
#panelContent p,#panelContent li{color:#b5b2aa;line-height:1.55}
.related-list{display:grid;gap:10px}
.related-item,.evidence-item{border-top:1px solid var(--line);padding:16px 0}
.related-item h3,.evidence-item h3{margin:0 0 7px!important;color:var(--text)}
.related-item button{margin-top:8px;border:0;border-bottom:1px solid #666;background:transparent;padding:4px 0;color:var(--text)}

.global-panel{position:fixed;z-index:70;top:var(--header-h);left:0;right:0;bottom:0;background:rgba(8,8,8,.965);overflow:auto;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s ease}
.global-panel.is-visible{opacity:1;visibility:visible}
.global-panel[hidden]{display:none}
.global-panel-head{position:sticky;z-index:3;top:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:66px;padding:12px clamp(20px,4vw,60px);background:rgba(8,8,8,.98);border-bottom:1px solid #2e2e2e}
.global-panel-head p{margin:0;color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;text-align:center}
.global-panel-head button{border:0;background:transparent;color:#ccc;padding:6px 0;border-bottom:1px solid #555;justify-self:start}
#globalClose{justify-self:end}
.global-panel-content{padding:clamp(30px,5vw,74px) clamp(22px,5vw,78px) 90px}
.global-panel-content>h2{font-family:var(--font-display);font-size:clamp(3.4rem,7vw,7rem);line-height:.9;font-weight:400;letter-spacing:-.045em;margin:0 0 18px}
.global-lead{max-width:770px;color:#bbb8b0;font-size:clamp(1.05rem,1.7vw,1.3rem);line-height:1.55;margin:0 0 42px}
.global-lead>strong{color:var(--accent)}
.room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.room-card{min-height:330px;border:1px solid #383838;background:#101010;padding:18px;display:flex;flex-direction:column;justify-content:space-between;gap:26px;transition:border-color .2s ease,transform .2s ease,background .2s ease}
.room-card:hover{border-color:#777;background:#141414;transform:translateY(-2px)}
.room-number{color:var(--accent);font-family:var(--font-display);font-style:italic;font-size:.95rem}
.room-card h3{font-size:clamp(1.5rem,2.2vw,2.2rem);font-weight:500;line-height:1.02;letter-spacing:-.035em;margin:8px 0 14px}
.room-card p{color:#aaa79f;line-height:1.48;margin:0}
.room-card .room-count{margin-top:12px;color:#777;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}
.room-card button,.work-overview-card button,.room-work button{align-self:flex-start;border:0;background:transparent;padding:7px 0;color:var(--accent);text-decoration:none;transition:color .18s ease}
.room-card button:hover,.room-card button:focus-visible,.work-overview-card button:hover,.work-overview-card button:focus-visible,.room-work button:hover,.room-work button:focus-visible{color:#fff;text-decoration:none}
.room-detail{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:clamp(32px,6vw,100px);align-items:start}
.room-detail h2{font-family:var(--font-display);font-size:clamp(3.5rem,8vw,8rem);line-height:.88;font-weight:400;letter-spacing:-.05em;margin:0 0 28px}
.room-focus{font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.48;margin:0;color:#d6d3cb}
.room-question{margin:36px 0 0;padding-top:20px;border-top:1px solid #444;color:var(--accent);font-size:1.1rem;line-height:1.45}
.room-side h3{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;color:#aaa;margin:0 0 14px}
.room-side ul{list-style:none;padding:0;margin:0;display:grid;gap:8px;color:#d0cdc5}
.room-work-list{display:grid;gap:8px;margin-top:36px}
.room-work{border-top:1px solid #3a3a3a;padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}
.room-work small{display:block;color:#8f8c84;margin-top:4px}
.works-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.work-overview-card{border:1px solid #383838;padding:18px;min-height:260px;background:#101010;display:flex;flex-direction:column;justify-content:space-between;gap:24px}
.work-overview-card h3{font-size:1.7rem;line-height:1.05;font-weight:500;margin:0 0 10px}
.work-overview-card p{color:#aaa;margin:0;line-height:1.45}
.text-section{max-width:850px}
.text-section h2{font-family:var(--font-display);font-size:clamp(3.5rem,8vw,7.5rem);font-weight:400;line-height:.9;letter-spacing:-.05em;margin:0 0 28px}
.text-section p{font-size:1.15rem;color:#bbb8b0;line-height:1.65}

.error-state{position:fixed;z-index:100;inset:0;background:#0a0a0a;display:grid;place-items:center;text-align:center;padding:30px}
.error-state[hidden]{display:none}
.error-state h2{font-weight:500}
.error-state button{border:1px solid #555;background:#151515;padding:10px 14px;margin:5px}
.stage.focus-view{position:fixed;inset:0;z-index:90;height:100svh}
.stage:fullscreen,.stage.focus-view{height:100svh;padding-top:40px;padding-bottom:40px}
.stage.is-fullscreen-mode{grid-template-columns:minmax(0,1fr) 220px}
.stage.is-fullscreen-mode .control-zone{justify-content:center}
.stage.is-fullscreen-mode .listen-prompt{display:none!important}
.stage.is-fullscreen-mode .controls{padding:0;border:0;background:transparent;backdrop-filter:none}
.stage.is-fullscreen-mode .controls button{display:none}
.stage.is-fullscreen-mode .controls button[data-action="fullscreen"]{display:block;border-color:#777;background:#161616;padding:14px 16px;text-align:center}

@media(max-width:1100px){
  .primary-nav{gap:0}.primary-nav button{padding-left:7px;padding-right:7px;font-size:.77rem}
  .current-work-mark{max-width:34vw}.current-work-mark span{display:none}
  .room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .primary-nav{display:none}.mobile-menu{display:block}.river-word{margin-left:14px}
  .experience-shell.panel-open{grid-template-columns:1fr}
  .stage{grid-template-columns:minmax(0,1fr) 176px;gap:20px;padding-left:28px;padding-right:28px}
  .experience-shell.is-threshold .stage{grid-template-columns:1fr;padding-left:20px;padding-right:20px}
  .info-panel{position:absolute;z-index:30;left:0;right:0;bottom:0;height:min(80%,760px);border-left:0;border-top:1px solid var(--line);transform:translateY(100%)}
  .panel-open .info-panel{transform:translateY(0)}
  .threshold-wall{width:min(900px,88vw)}
  .room-detail{grid-template-columns:1fr}.works-overview{grid-template-columns:1fr}
}
@media(max-width:680px){
  :root{--header-h:78px}
  .gallery-header{padding:12px 14px}.archive-mark{min-width:0}.archive-mark small{font-size:.64rem}.river-word{display:inline-block;font-size:.9rem;margin-left:8px}.current-work-mark{left:auto;right:14px;transform:translateY(-50%);max-width:45vw;text-align:right}.current-work-mark span{display:none}
  .stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:24px 12px max(14px,env(safe-area-inset-bottom))}
  .experience-shell.is-threshold .stage{grid-template-columns:1fr;grid-template-rows:1fr;padding:12px}
  .control-zone{display:grid;gap:8px}.controls{flex-direction:row;overflow:auto;padding:7px}.controls button{width:auto}.controls .leave{margin-top:0}.listen-prompt{min-height:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 14px}.listen-prompt strong{font-size:1.25rem}
  .threshold-intro{padding:24px 18px;overflow:auto;place-items:start center}.threshold-wall{width:100%;padding:10px 0 44px}.threshold-wall h1{font-size:clamp(3rem,15vw,4rem)}.threshold-proposition{font-size:1.15rem}.threshold-actions{align-items:stretch;width:100%}.threshold-actions button{width:100%;text-align:center}
  .threshold-dock{left:12px;right:12px;bottom:12px;transform:none;width:auto;display:grid;gap:10px}.threshold-dock-actions{display:grid;grid-template-columns:1fr 1fr}.threshold-dock button{padding:10px}
  .global-panel-head{grid-template-columns:auto 1fr auto;padding:10px 14px}.global-panel-head p{text-align:left}.global-panel-content{padding:28px 14px 70px}.room-grid{grid-template-columns:1fr}.room-card{min-height:270px}
  .stage.is-fullscreen-mode{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:12px}.stage.is-fullscreen-mode .control-zone{display:block}.stage.is-fullscreen-mode .controls{display:block}.stage.is-fullscreen-mode .controls button[data-action="fullscreen"]{width:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .artwork-view,.preload-veil,.controls,.info-panel,.global-panel,.room-card{animation:none!important;transition-duration:.01ms!important;transition-delay:0s!important}
  .threshold-intro::before,.threshold-wall{transition-duration:3s!important;transition-delay:0s!important}
  .threshold-intro.is-closing::before,.threshold-intro.is-closing .threshold-wall{transition-duration:.45s!important;transition-delay:0s!important}
}


/* Core build content integration */
.archive-mark em,.threshold-wall h1 em{font-weight:inherit}
.room-wall{margin-top:32px;padding-top:22px;border-top:1px solid #3c3c3c;max-width:760px}
.room-wall p{color:#b9b6ae;line-height:1.65;margin:0}
.room-side>.room-work-list{margin-top:0}
.room-side>.room-work-list .room-work:first-child{border-top:0;padding-top:0}
.related-item small{display:block;color:#85827b;margin:0 0 8px;line-height:1.4}
.works-year{max-width:980px;margin:52px 0 0}
.works-year>h3{font-family:var(--font-display);font-size:3rem;font-weight:400;margin:0 0 14px}
.works-list{border-top:1px solid #3a3a3a}
.work-index-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:16px 0;border-bottom:1px solid #303030}
.work-index-row strong{display:block;font-size:1.05rem;font-weight:500}
.work-index-row small{display:block;color:#8f8c84;margin-top:5px;line-height:1.4}
.work-index-row button{flex:0 0 auto;border:0;background:transparent;color:var(--accent);padding:6px 0;text-decoration:none}
.work-index-row button:hover,.work-index-row button:focus-visible{color:#fff}
.chronology article,.about-page section,.evidence-overview article{border-top:1px solid #3a3a3a;padding:24px 0}
.chronology article small{color:var(--accent);letter-spacing:.08em;text-transform:uppercase}
.chronology article h3,.about-page section h3,.evidence-overview article h3{font-size:1.35rem;font-weight:500;margin:8px 0 10px;color:var(--text)}
.chronology article p,.about-page section p,.evidence-overview article p{margin:0;color:#aaa79f;line-height:1.62}
.about-page a{color:var(--text)}
@media(max-width:680px){
  .work-index-row{align-items:flex-start;flex-direction:column;gap:10px}
  .room-wall{margin-top:24px}
}

/* Robust prototype v0.2 */
.related-item button{border:0;border-bottom:1px solid var(--accent);background:transparent;color:var(--text);padding:7px 0;margin-top:8px;cursor:pointer}
.related-item button:hover,.related-item button:focus-visible{color:var(--accent)}
.room-work button,.work-index-row button{cursor:pointer}
.room-work button:hover,.room-work button:focus-visible,.work-index-row button:hover,.work-index-row button:focus-visible{color:var(--accent);border-color:var(--accent)}


/* Archive and curatorial modals */
.artifact-modal{position:fixed;z-index:140;inset:0;background:rgba(0,0,0,.84);display:grid;place-items:center;padding:clamp(14px,3vw,40px);opacity:0;visibility:hidden;transition:opacity .24s ease,visibility .24s ease;backdrop-filter:blur(8px)}
.artifact-modal.is-visible{opacity:1;visibility:visible}
.artifact-modal[hidden]{display:none}
.artifact-dialog{width:min(1120px,100%);max-height:calc(100svh - 40px);overflow:auto;background:#101010;border:1px solid #4a4a4a;box-shadow:0 26px 90px rgba(0,0,0,.55)}
.artifact-head{position:sticky;z-index:4;top:0;min-height:62px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:rgba(12,12,12,.97);border-bottom:1px solid #353535;backdrop-filter:blur(14px)}
.artifact-head p{margin:0;color:var(--accent);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase}
.artifact-head button{border:0;background:transparent;color:#d4d1c9;padding:6px 0;border-bottom:1px solid #666}
.artifact-content{padding:clamp(24px,4vw,58px)}
.artifact-content h2{font-family:var(--font-display);font-size:clamp(2.7rem,6vw,6rem);font-weight:400;line-height:.93;letter-spacing:-.045em;margin:0 0 18px}
.artifact-content h3{font-size:1.15rem;font-weight:600;margin:30px 0 9px}
.artifact-content p,.artifact-content li{color:#bbb8b0;line-height:1.66;font-size:1.02rem}
.artifact-lead{max-width:820px;font-size:clamp(1.1rem,1.8vw,1.35rem)!important;color:#dedbd3!important;margin:0 0 28px}
.artifact-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin:28px 0}
.artifact-media figure{margin:0;background:#080808;border:1px solid #303030;padding:10px;display:grid;align-content:start;gap:9px}
.artifact-media img{display:block;width:100%;max-height:72svh;object-fit:contain;background:#050505}
.artifact-media figcaption{color:#8f8c84;font-size:.82rem;line-height:1.45}
.artifact-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.artifact-actions button{border:1px solid #555;background:#151515;color:#fff;padding:11px 14px}
.artifact-actions button:hover,.artifact-actions button:focus-visible{background:#666;color:#fff;border-color:#777}
.artifact-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 18px}
.artifact-tabs button{border:1px solid #555;background:#151515;color:#bbb;padding:10px 13px}
.artifact-tabs button[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#111;font-weight:700}
.artifact-tab-panel[hidden]{display:none}
.translation-text{max-width:850px}
.translation-text p{margin:0 0 16px}
.translation-text ol{padding-left:1.35rem}
.translation-text li{margin:0 0 14px}
.series-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:26px}
.series-grid article{border:1px solid #363636;background:#0c0c0c;padding:18px;display:flex;flex-direction:column;align-items:flex-start}
.series-grid h3{margin:0 0 8px}.series-grid small{color:#929087;line-height:1.5}.series-grid button{margin-top:auto;border:0;background:transparent;color:var(--accent);padding:18px 0 0}
.series-grid button:hover,.series-grid button:focus-visible{color:#fff}
.peter-thanks{font-weight:700!important;color:var(--text)!important}
@media(max-width:680px){.artifact-modal{padding:8px}.artifact-dialog{max-height:calc(100svh - 16px)}.artifact-content{padding:24px 15px 44px}.series-grid{grid-template-columns:1fr}.artifact-media{grid-template-columns:1fr}}

.now-flowing p:empty{display:none}
.about-page section{scroll-margin-top:90px}
.about-routes{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.about-routes button{border:0;background:transparent;color:var(--accent);padding:4px 0;margin-right:14px;text-decoration:none}
.about-routes button:hover,.about-routes button:focus-visible{color:#fff}
.about-page .section-label{color:var(--accent);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}
.artifact-claim{max-width:880px;border-left:3px solid var(--accent);padding:13px 16px;margin:24px 0;color:#dedbd3;background:#151515}


/* v0.5 readability and mobile masthead corrections */
.about-page section p + p{margin-top:1.15em}
.about-page section h3 + p{margin-top:.7em}

@media(max-width:900px){
  .work-mode{--header-h:118px}
  .work-mode .gallery-header{align-items:flex-start;padding:12px 14px 42px}
  .work-mode .archive-mark{min-width:0;max-width:calc(100vw - 190px)}
  .work-mode .archive-mark span,.work-mode .archive-mark small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .work-mode .mobile-menu{position:absolute;top:12px;right:94px;margin:0;z-index:4}
  .work-mode .river-word{position:absolute;top:12px;right:14px;margin:0;z-index:4}
  .work-mode .current-work-mark{left:14px;right:14px;top:auto;bottom:10px;transform:none;max-width:none;text-align:center;display:block}
  .work-mode .current-work-mark strong{display:block;max-width:100%;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .work-mode .current-work-mark span{display:none}
}
@media(max-width:480px){
  .work-mode{--header-h:108px}
  .work-mode .gallery-header{padding-bottom:36px}
  .work-mode .archive-mark{max-width:calc(100vw - 164px)}
  .work-mode .archive-mark span{font-size:.92rem}
  .work-mode .archive-mark small{display:none}
  .work-mode .mobile-menu{right:82px;padding-left:6px;padding-right:6px}
  .work-mode .river-word{font-size:.86rem}
  .work-mode .current-work-mark{bottom:9px}
  .work-mode .current-work-mark strong{font-size:.86rem}
}


/* Homepage refined-copy test v0.1 */
.threshold-wall{width:min(980px,84vw)}
.threshold-eyebrow{margin:0 0 12px;font-size:clamp(.76rem,1.15vw,.9rem);font-weight:650;letter-spacing:.075em;text-transform:none}
.threshold-wall h1{font-size:clamp(3.4rem,6.5vw,5.6rem);line-height:.93;margin:0 0 22px}
.threshold-proposition{max-width:850px;font-size:clamp(1.08rem,1.52vw,1.3rem);line-height:1.43;letter-spacing:-.01em;margin:0 auto}
.threshold-scope{max-width:790px;font-size:clamp(.94rem,1.18vw,1.06rem);line-height:1.48;margin:14px auto 0}
.now-flowing{margin-top:24px;padding-top:15px}
.threshold-actions{margin-top:20px}

@media(max-height:900px) and (min-width:681px){
  .threshold-intro{padding:clamp(18px,3vh,34px) clamp(28px,5vw,76px)}
  .threshold-wall{width:min(980px,86vw)}
  .threshold-eyebrow{margin-bottom:8px;font-size:.76rem}
  .threshold-wall h1{font-size:clamp(3.1rem,5.7vw,4.8rem);margin-bottom:15px}
  .threshold-proposition{font-size:clamp(1rem,1.35vw,1.16rem);line-height:1.37}
  .threshold-scope{font-size:.94rem;line-height:1.42;margin-top:10px}
  .now-flowing{margin-top:17px;padding-top:12px;gap:3px}
  .now-flowing p{margin-top:5px}
  .threshold-actions{margin-top:15px}
  .threshold-actions button{padding-top:10px;padding-bottom:10px}
}

@media(max-height:760px) and (min-width:681px){
  .threshold-intro{padding:14px 4vw}
  .threshold-wall h1{font-size:clamp(2.75rem,5.1vw,4.15rem);margin-bottom:12px}
  .threshold-proposition{font-size:clamp(.94rem,1.22vw,1.05rem);line-height:1.32;max-width:900px}
  .threshold-scope{font-size:.88rem;line-height:1.36;margin-top:8px}
  .now-flowing{margin-top:13px;padding-top:10px}
  .threshold-actions{margin-top:12px}
  .threshold-actions button{padding:9px 13px}
}

@media(max-width:680px){
  .threshold-wall{width:100%;padding:4px 0 34px}
  .threshold-eyebrow{font-size:.75rem;line-height:1.3;margin-bottom:9px}
  .threshold-wall h1{font-size:clamp(2.75rem,13.5vw,3.75rem);line-height:.94;margin-bottom:18px}
  .threshold-proposition{font-size:1.02rem;line-height:1.42}
  .threshold-scope{font-size:.92rem;line-height:1.43;margin-top:12px}
  .now-flowing{margin-top:20px;padding-top:13px}
  .threshold-actions{margin-top:16px}
}


/* v0.6 homepage hierarchy and global artifact-title spacing */
.threshold-title-line{display:block}
.artifact-content h2 > small{
  display:block;
  margin-top:22px;
}

/* Two-line headline: preserve the hierarchy without pushing actions below the viewport. */
.threshold-wall h1{
  font-size:clamp(3.2rem,5.7vw,5.2rem);
  line-height:.88;
  margin-bottom:18px;
}

@media(max-height:900px) and (min-width:681px){
  .threshold-wall h1{
    font-size:clamp(2.9rem,5vw,4.35rem);
    line-height:.88;
    margin-bottom:13px;
  }
}

@media(max-height:760px) and (min-width:681px){
  .threshold-wall h1{
    font-size:clamp(2.55rem,4.45vw,3.75rem);
    line-height:.87;
    margin-bottom:10px;
  }
}

@media(max-width:680px){
  .threshold-wall h1{
    font-size:clamp(2.55rem,12.5vw,3.5rem);
    line-height:.89;
    margin-bottom:16px;
  }
  .artifact-content h2 > small{margin-top:15px}
}


/* v0.7: explicit homepage headline break */
.threshold-title-break{display:block}


/* v0.8 approved global typography */
html,body,button,input,select,textarea{
  font-family:var(--font-interface);
}
.threshold-wall h1,
.global-panel-content>h2,
.room-detail h2,
.text-section h2,
.works-year>h3,
.artifact-content h2,
.river-word,
.room-number{
  font-family:var(--font-display);
}
.threshold-wall h1 em,
.river-word,
.room-number{
  font-style:italic;
}


/* v0.9 final subtitle and homepage micro-headline typography */
.threshold-eyebrow{
  font-family:var(--font-interface);
  font-size:13px;
  line-height:1.3;
  font-weight:400;
  letter-spacing:.5px;
  color:#FFE100;
  text-transform:none;
}

.artifact-content h2 > small,
.artifact-subtitle{
  display:block;
  margin-top:22px;
  font-family:var(--font-interface);
  font-size:.34em;
  line-height:1.3;
  font-weight:500;
  font-style:normal;
  letter-spacing:0;
  color:#aaa;
}

@media(max-width:680px){
  .artifact-content h2 > small,
  .artifact-subtitle{
    margin-top:15px;
  }
}


/* v1.0: larger approved presentation for all mirror-box works */
.experience-shell.is-work[data-work="tear"] .stage,
.experience-shell.is-work[data-work="colcha-3"] .stage,
.experience-shell.is-work[data-work="flor-de-lotus-1"] .stage,
.experience-shell.is-work[data-work="flor-de-lotus-2"] .stage,
.experience-shell.is-work[data-work="flor-de-lotus-3"] .stage{
  padding-top:10px;
  padding-bottom:10px;
}


/* v1.2: preserve the canonical lowercase spelling in About */
#about-riverrun .section-label{
  text-transform:none;
}


/* v1.3: prominent link from About to the English Computerese Archive */
.archive-site-callout{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:26px;
  align-items:end;
  margin-top:26px;
  padding:24px 26px;
  border:1px solid #454545;
  background:#0c0c0c;
  color:var(--text);
  text-decoration:none;
  transition:border-color .2s ease,background-color .2s ease,color .2s ease;
}
.archive-site-callout:hover,
.archive-site-callout:focus-visible{
  border-color:var(--accent);
  background:#121212;
  color:#fff;
}
.archive-site-callout:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}
.archive-site-callout-copy{
  display:flex;
  flex-direction:column;
  gap:9px;
  min-width:0;
}
.archive-site-callout-title{
  font-family:var(--font-display);
  font-size:clamp(1.65rem,3vw,2.55rem);
  font-weight:600;
  line-height:1.08;
}
.archive-site-callout-description{
  max-width:760px;
  color:#aaa79f;
  font-size:.98rem;
  line-height:1.55;
}
.archive-site-callout-action{
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  color:var(--accent);
  font-size:1rem;
  font-weight:600;
}
.archive-site-callout:hover .archive-site-callout-action,
.archive-site-callout:focus-visible .archive-site-callout-action{
  color:#fff;
}
.archive-site-callout-arrow{
  display:inline-block;
  font-size:1em;
  font-weight:400;
  line-height:.75;
  transform:translateY(-1px);
}

@media(max-width:680px){
  .archive-site-callout{
    grid-template-columns:1fr;
    gap:18px;
    padding:20px;
  }
  .archive-site-callout-action{
    white-space:normal;
  }
}


/* ================================================================
   C07 Atemporal Gallery v1.4
   Approved usability changes, July 2026
   ================================================================ */

/* Make the work-mode Menu command fully visible. */
.mobile-menu{
  color:#fff;
}

/* Equal homepage spacing:
   headline → first paragraph = first paragraph → second paragraph. */
.threshold-wall{
  --homepage-copy-gap:26px;
}
.threshold-wall h1{
  line-height:.92;
  margin-bottom:var(--homepage-copy-gap);
}
.threshold-scope{
  margin-top:var(--homepage-copy-gap);
}

/* Simplified work controls:
   sound, random discovery, collapsed More, and Leave Work. */
.controls-v14{
  gap:9px;
  overflow:visible;
}
.controls-v14.is-receded{
  opacity:1;
  transform:none;
}
.controls-v14 > button,
.controls-v14 .more-toggle,
.controls-v14 .more-menu button{
  text-align:center;
}

.sound-toggle{
  min-height:92px;
  display:grid;
  place-items:center;
  gap:7px;
  border-color:#6e6e6e!important;
}
.sound-toggle[hidden]{
  display:none!important;
}
.sound-toggle-icon{
  width:44px;
  height:44px;
  display:block;
}
.sound-toggle-icon svg{
  display:block;
  width:100%;
  height:100%;
}
.sound-toggle-label{
  font-size:.76rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sound-toggle.is-on{
  border-color:var(--accent)!important;
  background:#191919!important;
  color:var(--accent);
}
.sound-toggle.is-off{
  color:#fff;
}
.sound-toggle.is-blocked{
  border-color:#9b6d4c!important;
  color:#f1c8a8;
}

.random-work{
  min-height:58px;
  border-color:#6d6d6d!important;
  color:#fff;
  font-weight:600;
  white-space:normal!important;
  line-height:1.25;
}

.more-control{
  position:relative;
}
.more-toggle{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.more-toggle-mark{
  position:absolute;
  right:14px;
  top:50%;
  color:var(--accent);
  font-size:1.35rem;
  line-height:1;
  transform:translateY(-50%);
  transition:transform .2s ease;
}
.more-toggle[aria-expanded="true"] .more-toggle-mark{
  transform:translateY(-50%) rotate(45deg);
}
.more-menu{
  display:grid;
  gap:6px;
  margin-top:7px;
  padding:7px;
  border:1px solid #3b3b3b;
  background:#0d0d0d;
}
.more-menu[hidden]{
  display:none;
}
.more-menu button{
  border-color:#333!important;
  background:#101010!important;
  color:#c9c6be;
  font-size:.86rem;
}

.controls-v14 .leave{
  margin-top:2px;
}

/* Full screen keeps only the return-size control visible. */
.stage.is-fullscreen-mode .more-menu{
  display:grid;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
.stage.is-fullscreen-mode .more-menu button{
  display:none;
}
.stage.is-fullscreen-mode .more-menu button[data-action="fullscreen"]{
  display:block;
}

/* Works index: identify the Brasil High Tech grouping. */
.works-year-note{
  margin:-4px 0 18px;
  color:#9e9b94;
  font-size:.84rem;
  letter-spacing:.04em;
}

@media(max-width:680px){
  .threshold-wall{
    --homepage-copy-gap:22px;
  }

  .controls-v14{
    display:grid;
    grid-template-columns:auto minmax(140px,1fr) auto auto;
    align-items:stretch;
    overflow:visible;
  }
  .sound-toggle{
    min-height:54px;
    min-width:62px;
    padding:7px!important;
  }
  .sound-toggle-icon{
    width:30px;
    height:30px;
  }
  .sound-toggle-label{
    display:none;
  }
  .random-work{
    min-height:54px;
  }
  .more-control{
    min-width:72px;
  }
  .more-menu{
    position:absolute;
    right:0;
    bottom:calc(100% + 7px);
    min-width:180px;
    z-index:20;
    box-shadow:0 12px 30px rgba(0,0,0,.45);
  }
  .controls-v14 .leave{
    margin-top:0;
  }
}
