@font-face{font-family:"Pen Cyr";src:url("/assets/fonts/caveat-cyrillic-500.woff2") format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{color-scheme:light;--paper:#f4f4f0;--ink:#30332f;--black:#151614;--muted:#777a73;--pink:#ffd9f2;--carbon:#2f3f8f;--ease:cubic-bezier(.22,.75,.18,1);--spring:cubic-bezier(.25,1.35,.4,1);--grot:"Helvetica Neue",Helvetica,Arial,sans-serif;--pen:"Pen Cyr","Noteworthy","Bradley Hand","Segoe Print","Helvetica Neue",sans-serif;--chalk-blue:#5b8bc6;--chalk-pink:#cf6482}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper)}body{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:5px}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:12px;min-height:44px;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #727b65;outline-offset:4px}button:hover{color:#000}[hidden]{display:none!important}header{position:fixed;inset:0 0 auto;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:25px 36px;font-size:13px;pointer-events:none}header a{pointer-events:auto;min-height:44px;display:flex;align-items:center}.wordmark{font-weight:650;letter-spacing:-.5px}#contact{gap:.42em}.room-name{font-size:11px;color:var(--muted);align-self:center}main{min-height:100svh}.intro{position:absolute;left:6%;top:21%;z-index:2;pointer-events:none;transition:opacity .3s,transform .7s var(--ease)}.intro p{font-size:12px;color:var(--muted);margin:0 0 20px}.intro h1{font-size:clamp(68px,8.2vw,124px);font-weight:440;letter-spacing:-.075em;line-height:.91;margin:0}.intro .intro-note{margin-top:30px;line-height:1.75;font-size:11px}#room-stage{position:fixed;inset:0;touch-action:none;user-select:none;-webkit-user-select:none}#room-canvas{width:100%;height:100%;display:block;outline:none}#object-labels{position:absolute;inset:0;pointer-events:none}.object-label{position:absolute;left:0;top:0;transform:translate(-50%,-50%);white-space:nowrap;font-size:10px;letter-spacing:.035em;min-width:52px;min-height:44px;padding:12px 9px;pointer-events:auto;color:#666c63;opacity:0;transition:opacity .25s;background:transparent;border-radius:3px}.scene-ready .object-label{opacity:1}.object-label:hover,.object-label:focus-visible{color:#20271d;background:#fafbf6c9}.object-label .arrow-icon{margin-left:6px;opacity:0;transition:opacity .2s}.object-label:hover .arrow-icon,.object-label:focus-visible .arrow-icon{opacity:1}.room-hint{position:fixed;bottom:87px;left:60%;transform:translateX(-50%);font-size:11px;color:#898c83;pointer-events:none;margin:0;opacity:0;transition:opacity .4s}.scene-ready .room-hint{opacity:1}footer{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:15px 36px;color:#81857b;font-size:11px;pointer-events:none}footer button{font-size:11px;pointer-events:auto;padding-right:0}.eyebrow{font-size:10px;color:#7c8076;letter-spacing:.06em;margin:0 0 22px}.credit{font-size:10px;line-height:1.7;color:#7e8279;margin:0 0 20px}.links{display:flex;flex-wrap:wrap;gap:20px;font-size:12px;margin:10px 0 28px}.links a{display:flex;align-items:center;min-height:44px}body[data-view=project] .intro{opacity:0;transform:translateY(-12px)}body[data-view=project] #object-labels,body[data-view=project] .room-hint{visibility:hidden}body[data-view=project] footer>span{opacity:.45}.project-index{position:relative;z-index:25;background:var(--paper);padding:40px;max-width:780px;margin:130px auto 100px}.scene-ready .project-index{position:fixed;top:100px;right:36px;bottom:90px;width:410px;max-width:calc(100% - 48px);overflow:auto;margin:0;padding:30px;background:#f9f9f6f5;border:1px solid #e6e8df;box-shadow:0 20px 70px #272e1510;backdrop-filter:blur(12px);animation:arrive .3s var(--ease)}.index-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.index-heading h2{font-size:24px;font-weight:450;letter-spacing:-.045em;margin:0}.index-heading button{font-size:11px;padding-right:0}#fallback-note{font-size:12px;color:#888;line-height:1.6}#index-items{margin-top:22px}.index-item{width:100%;text-align:left;border-top:1px solid #dfe2d8;display:flex;align-items:center;gap:18px;padding:16px 0}.index-item img{width:42px;height:42px;object-fit:contain;background:#fff}.index-item .item-copy{flex:1}.index-item strong{display:block;font-size:13px;font-weight:500}.index-item small{display:block;font-size:10px;line-height:1.5;color:#85897f;margin-top:5px}.index-item:hover{padding-left:7px;transition:padding .2s}.skip{position:fixed;z-index:60;top:-80px;left:20px;padding:12px;background:white}.skip:focus{top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}body:not(.scene-ready) #room-stage,body:not(.scene-ready) .rotate-hint{display:none}body.scene-failed #project-index{display:block!important}body.scene-failed #project-detail{position:relative;inset:auto;width:auto;max-width:760px;overflow:visible;margin:140px auto 0;padding:25px 40px 40px;-webkit-mask:none;mask:none}body.scene-failed .back-mark{top:84px}body.scene-failed footer{background:var(--paper)}
@keyframes arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){header{padding:12px 22px;font-size:12px}.room-name{display:none}.intro{top:100px;left:26px}.intro p{margin-bottom:12px;font-size:11px}.intro h1{font-size:64px}.intro .intro-note{position:absolute;left:185px;top:32px;white-space:nowrap;font-size:10px;margin:0}#room-stage{inset:0}.room-hint{left:50%;bottom:76px;font-size:10px}footer{padding:10px 24px;font-size:10px}footer button{font-size:10px}.object-label{font-size:9px;letter-spacing:0;min-width:44px;padding:12px 3px}.object-label .arrow-icon{display:none}body[data-view=project] #room-stage{inset:0}.eyebrow{margin-bottom:13px;font-size:9px}.credit{font-size:10px}.links{margin:0 0 18px;gap:18px}.scene-ready .project-index{top:80px;right:24px;bottom:75px;width:calc(100% - 48px);padding:24px}.project-index{margin:95px 20px;padding:20px}}
@media(max-width:380px){.intro h1{font-size:54px}.intro .intro-note{left:155px;font-size:9px}.intro{top:90px}}
@media(max-height:650px) and (min-width:761px){.intro{top:23%}.intro h1{font-size:72px}.room-hint{bottom:65px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Exhibition wayfinding: ordinary HTML targets follow the signs on real surfaces. */
.scene-ready[data-view=room] .intro{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);pointer-events:none}
.scene-ready[data-view=room] .object-label{opacity:0;color:transparent;background:transparent;width:44px;min-width:44px;overflow:hidden}
.scene-ready[data-view=room] .object-label:hover{opacity:0;background:transparent}
.scene-ready[data-view=room] .object-label:focus-visible{opacity:1;color:#30372c;background:#f9faf5;overflow:visible;width:auto}
.scene-ready[data-view=room] .object-label:focus-visible .arrow-icon{display:none}
.scene-ready[data-view=room] header,.scene-ready[data-view=room] footer{inset:0;padding:0;pointer-events:none}
.scene-ready[data-view=room] .room-name,.scene-ready[data-view=room] footer>span{display:none}
.scene-ready[data-view=room] header a,.scene-ready[data-view=room] footer button{position:fixed;left:0;top:0;transform:translate(var(--surface-x),var(--surface-y)) translate(-50%,-50%);width:var(--surface-width);height:44px;min-height:44px;display:block;padding:0;font-size:0;color:transparent;pointer-events:auto;border:0;background:transparent}
.scene-ready[data-view=room] header a:focus-visible,.scene-ready[data-view=room] footer button:focus-visible{background:#f9faf5;color:#30372c;font-size:11px;padding:12px;text-align:center;white-space:nowrap}
.scene-ready[data-view=room] .room-hint{bottom:28px;left:50%;font-size:10px}
.scene-ready[data-view=room] .object-label{pointer-events:none}
.scene-ready[data-view=room] .object-label:focus-visible{pointer-events:auto}
body:not(.scene-ready) .room-hint{display:none}
.profile-role{font-size:12px;line-height:1.5;letter-spacing:.02em;color:#69735f;margin:-10px 0 20px}
.project-bio{margin:0 0 28px}.project-bio p{font-size:12px;line-height:1.8;color:#596151;margin:0 0 17px}

/* Readable HTML is generated from the same content as the room. */
body:not(.scene-ready) .intro{position:relative;top:auto;left:auto;max-width:780px;margin:0 auto;padding:130px 40px 10px;transform:none;opacity:1;pointer-events:auto}
body:not(.scene-ready) .intro .intro-note{position:static;margin-top:24px}
body:not(.scene-ready) .project-index{margin-top:20px}
body.scene-failed[data-view=project] .intro{display:none}
.static-project{border-top:1px solid #dfe2d8;padding:28px 0;scroll-margin-top:100px}
.static-project h3{font-size:25px;font-weight:450;letter-spacing:-.04em;line-height:1.2;margin:12px 0 22px}
.static-project>p{font-size:13px;line-height:1.8}.static-project .profile-role{margin-top:0}
.static-project .links{margin-bottom:18px}.static-media{display:flex;flex-wrap:wrap;gap:12px}
.static-media img{width:240px;max-width:100%;height:160px;object-fit:contain;background:#fafaf8}
@media(max-width:760px){body:not(.scene-ready) .intro{padding:105px 40px 15px}.static-project h3{font-size:23px}}

/* Boot is separate from the permanent readable/no-JavaScript portfolio. */
#room-loader{display:none}
html[data-room-state=loading] #room-loader{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--paper);color:#777d72}
html[data-room-state=loading] .intro,html[data-room-state=loading] header,html[data-room-state=loading] footer,html[data-room-state=loading] .skip,html[data-room-state=loading] #project-index,html[data-room-state=loading] #project-controls,html[data-room-state=loading] .room-hint{display:none!important}
html[data-room-state=loading] #room-stage{visibility:hidden}
.loading-cube{width:68px;height:76px;overflow:visible;stroke:currentColor;stroke-width:1.05;stroke-linecap:round;stroke-linejoin:round}
.cube-edge{stroke-dasharray:1;stroke-dashoffset:1;animation:assemble 2.6s cubic-bezier(.3,.1,.2,1) infinite;animation-delay:calc(var(--edge)*.12s)}
.cube-back{opacity:.22}
#room-loader p{font-size:11px;letter-spacing:.04em;margin:22px 0 16px}
#room-loader a{font-size:10px;color:#8b9085;display:flex;align-items:center;min-height:44px;padding:10px}
@keyframes assemble{0%,8%{stroke-dashoffset:1;opacity:.15}48%,80%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.15}}
.arrow-icon{display:inline-block;width:.9em;height:.9em;vertical-align:-.08em;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.links a{gap:5px}
@media(prefers-reduced-motion:reduce){.cube-edge{animation:none;stroke-dashoffset:0}.cube-back{opacity:.22}}


#toolbox-back{position:fixed;z-index:8;left:clamp(18px,4vw,58px);bottom:clamp(18px,5vh,52px);border:0;background:#f7f7f1;color:#30332f;padding:12px;cursor:pointer;font:inherit}
.toolbox-focus-link,.room-focus-action{position:fixed;left:0;top:0;z-index:8;transform:translate(-50%,-50%);padding:8px 12px;background:#f7f7f1;color:#30332f;text-decoration:none;white-space:nowrap;opacity:0;pointer-events:none}
.toolbox-focus-link:focus-visible,.room-focus-action:focus-visible{opacity:1;outline:2px solid #555d4b;outline-offset:2px}
body.toolbox-open #intro,body.toolbox-open #contact,body.toolbox-open #room-hint{visibility:hidden}

/* Portal: the torn hole in the gallery wall leads to work-lab. */
.portal-veil{position:fixed;inset:0;z-index:70;background:#f4f4f0;opacity:0;pointer-events:none}
body.portal-flying .portal-veil{will-change:opacity}
body.portal-flying header,body.portal-flying footer,body.portal-flying .intro,body.portal-flying #object-labels,body.portal-flying .room-hint,body.portal-flying .room-focus-action{opacity:0;pointer-events:none;transition:opacity .25s}
body:not(.scene-ready) .portal-veil{display:none}
.case-link{font-size:12px;margin:-14px 0 24px}
.case-link a{display:inline-flex;align-items:center;min-height:44px;color:#5d6258}
.static-project .case-link{margin:-8px 0 14px}
.index-work{font-size:12px;margin:6px 0 0}
.index-work a{display:inline-flex;align-items:center;min-height:44px}

/* Cube focus: the cube on the left, the light table's Swiss block on the right (work-lab/case.css). */
body[data-view=project] footer,body[data-view=project] .room-name{display:none}
#project-detail{position:fixed;z-index:5;top:0;right:0;bottom:0;left:47%;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
  padding:clamp(96px,13vh,128px) clamp(30px,4.4vw,76px) 0 clamp(8px,1.4vw,24px);color:var(--ink);
  -webkit-mask:linear-gradient(transparent 0,transparent 62px,#000 104px);mask:linear-gradient(transparent 0,transparent 62px,#000 104px)}
#project-detail::-webkit-scrollbar{display:none}
.pd-copy{flex:0 0 auto}
/* phones only: the cube's own first screen above the info (see the max-width:760px block) */
.pd-stage{display:none}.pd-body{display:contents}
.pd-name{margin:0 0 .2em;font:700 120px/.84 var(--grot);letter-spacing:-.052em;color:var(--black);overflow-wrap:normal;outline:none}
.pd-name .ln{display:inline-block;overflow:hidden;vertical-align:top;padding:.05em .04em .03em 0;margin:-.05em 0 -.03em}
.pd-name .ln>span{display:inline-block}
.pd-title{margin:0 0 clamp(22px,3.4vh,38px);font:700 clamp(25px,2.35vw,40px)/1.02 var(--grot);letter-spacing:-.038em;color:var(--black);max-width:15ch}
.pd-meta{margin:0 0 clamp(18px,2.6vh,28px);display:flex;flex-direction:column;font:clamp(16px,1.2vw,19px)/1.32 var(--grot);color:var(--black)}
.pd-meta span:first-child{font-weight:700;letter-spacing:-.01em}
.pd-desc{margin:0 0 14px;font:clamp(15px,1.12vw,18px)/1.5 var(--grot);max-width:42ch;color:var(--ink)}
#project-detail .project-bio{margin:0 0 14px}
#project-detail .project-bio p{margin:0 0 12px;font:clamp(15px,1.12vw,18px)/1.5 var(--grot);max-width:42ch;color:var(--ink)}
.pd-credit{margin:0 0 clamp(20px,3vh,32px);font:13px/1.5 var(--grot);color:var(--muted);max-width:46ch}
.pd-links{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0}
.pd-links a{display:inline-flex;align-items:center;gap:.16em;min-height:46px;font:700 clamp(24px,2.3vw,38px)/1.05 var(--grot);letter-spacing:-.04em;color:var(--black);
  text-decoration:underline;text-decoration-thickness:.09em;text-underline-offset:.13em;transition:text-decoration-color .3s}
.pd-links a:hover{text-decoration-color:var(--pink);text-decoration-thickness:.32em;text-underline-offset:-.04em;text-decoration-skip-ink:none}
.pd-links .arrow-icon{width:.62em;height:.62em;stroke-width:1.7;vertical-align:0}
#project-detail .case-link{margin:8px 0 0;font:600 15px/1 var(--grot)}
#project-detail .case-link a{color:var(--ink);gap:.3em}
/* prints: paper borders like the light table, a little loose, corners may kiss */
.pd-prints{position:relative;margin:clamp(34px,5vh,56px) 0 0;flex:0 0 auto}
.pd-print{position:absolute;margin:0;transform-origin:50% 50%;transition:transform .45s var(--spring)}
.pd-face{display:block;padding:var(--pad,12px) var(--pad,12px) var(--padb,12px);border-radius:2px;background:#fcfcf9;cursor:zoom-in;
  box-shadow:0 .5px 0 rgba(40,38,30,.18),0 1px 2px rgba(40,38,30,.2),0 8px 16px -6px rgba(40,38,30,.24),0 28px 46px -24px rgba(40,38,30,.4);transition:box-shadow .35s var(--ease)}
.pd-face img{display:block;width:100%;object-fit:cover;background:#ecece6;box-shadow:0 0 0 .5px rgba(0,0,0,.12);-webkit-user-drag:none}
.pd-print figcaption{position:absolute;left:var(--pad);right:var(--pad);bottom:0;height:var(--padb);display:flex;align-items:center;font:clamp(14px,1.1vw,18px)/1 var(--pen);color:var(--carbon);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.pd-print:hover{transform:rotate(0deg) scale(1.02)!important;z-index:2}
.pd-print:hover .pd-face{box-shadow:0 2px 4px rgba(40,38,30,.1),0 26px 34px -10px rgba(40,38,30,.2),0 64px 80px -28px rgba(40,38,30,.32)}
.pd-face:focus-visible{outline:none;box-shadow:0 0 0 3px #f4f4f0,0 0 0 5px var(--ink)}
.pd-caption{margin:14px 0 0;font:clamp(16px,1.2vw,19px)/1.3 var(--pen);color:var(--carbon);transform:rotate(-1.2deg);transform-origin:0 50%}
.pd-nav{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 20px;flex-wrap:wrap;margin-top:auto;padding:clamp(34px,6vh,64px) 0 clamp(20px,3.4vh,34px)}
.pd-nav button{display:inline-flex;align-items:center;gap:.3em;min-height:48px;padding:10px 0;font:700 clamp(17px,1.3vw,21px)/1.1 var(--grot);letter-spacing:-.025em;color:var(--black);text-align:left}
.pd-nav .arrow-icon{width:.9em;height:.9em;stroke-width:1.6;transition:translate .45s var(--ease)}
#project-prev:hover .arrow-icon{translate:-.22em 0}#project-next:hover .arrow-icon{translate:.22em 0}
/* reveal, as on the light table */
.pd-copy .ln>span{transform:translateY(108%)}
.pd-copy .rv{opacity:0;transform:translateY(16px)}
.pd-copy.in .ln>span{transform:none;transition:transform .9s var(--ease)}
.pd-copy.in .rv{opacity:1;transform:none;transition:opacity .7s var(--ease) .14s,transform .9s var(--ease) .14s}
body:not(.scene-ready) .pd-copy .ln>span,body:not(.scene-ready) .pd-copy .rv{transform:none;opacity:1}
@media(prefers-reduced-motion:reduce){.pd-copy .ln>span,.pd-copy .rv{transform:none!important;opacity:1!important}}

/* chalk marks: back to the room, the rotate hint (palette from surfaces.js CHALK, deepened for contrast on paper) */
.chalk-defs{position:absolute;width:0;height:0;overflow:hidden}
.chalk-mark{position:fixed;z-index:8;display:inline-flex;align-items:center;gap:6px;min-height:48px;min-width:48px;padding:6px 10px;font:400 22px/1 var(--pen);letter-spacing:.01em}
.chalk-svg{width:44px;height:44px;flex:0 0 auto;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.chalk-mark span{translate:0 1px}
.back-mark{left:clamp(18px,2.6vw,36px);top:84px;color:var(--chalk-pink)}
.back-mark:hover{color:#b44866}.back-mark:hover .chalk-svg{translate:-3px 0}
.back-mark .chalk-svg{transition:translate .35s var(--ease)}
.rotate-hint{position:fixed;z-index:7;left:var(--hx,23.5%);top:var(--hy,70%);translate:-50% clamp(10px,2.2vh,22px);display:flex;flex-direction:column;align-items:center;gap:1px;color:var(--chalk-blue);font:400 21px/1 var(--pen);letter-spacing:.01em;white-space:nowrap;pointer-events:none;user-select:none;-webkit-user-select:none;opacity:.92;transition:opacity .9s var(--ease) .25s,visibility 0s}
.rotate-hint .chalk-svg{width:84px;height:29px;stroke-width:2.5}
.rotate-hint span{rotate:-2deg}
body.cube-turned .rotate-hint{opacity:0;transition-delay:0s}
body.scene-failed .rotate-hint{display:none}
/* no double-tap zoom anywhere in the room: taps stay taps (pinch zoom and scrolling are kept) */
html,body,#project-detail,#project-detail *,#project-controls *,#art-viewer,#art-viewer *{touch-action:manipulation}
body:not(.scene-ready):not(.scene-failed) #project-controls{display:none}

/* one print up close (components/shared-image-transition.*): the plate lifts off the column */
.pd-detail{--sit-view-background:rgba(247,248,245,.86);--sit-thickness:4px;color:var(--ink)}
.pd-detail-in{position:absolute;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;justify-items:center;gap:14px;padding:clamp(18px,3vh,30px) clamp(16px,3vw,40px)}
.pd-detail .detail-back{position:static;justify-self:start;color:var(--chalk-pink)}
.pd-detail-img{align-self:center;display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#fcfcf9;
  box-shadow:0 0 0 clamp(6px,1vw,14px) #fcfcf9,0 1px 2px clamp(6px,1vw,14px) rgba(40,38,30,.18),0 30px 60px -20px rgba(40,38,30,.4)}
.pd-detail-t{margin:0;max-width:62ch;text-align:center;font:clamp(16px,1.3vw,20px)/1.35 var(--pen);color:var(--carbon)}

@media(max-height:650px) and (min-width:761px){.back-mark{top:72px}}
@media(max-width:760px){
  /* Phones: the first screen is the cube alone, big and centred (scene.js fits it), with its name and a chalk ↓;
     the info scrolls up over it. The fixed canvas stays put; the stage passes horizontal drags to the cube
     (scene.js gestures) and leaves vertical swipes to this scroller (touch-action:pan-y). */
  #project-detail{top:0;left:0;right:0;bottom:0;padding:0;background:transparent;-webkit-mask:none;mask:none}
  #project-detail .pd-stage{touch-action:pan-y}
  .pd-stage{display:block;position:relative;flex:0 0 auto;height:100svh;-webkit-user-select:none;user-select:none}
  .pd-stage-name{position:absolute;left:0;right:0;bottom:calc(76px + env(safe-area-inset-bottom));margin:0;text-align:center;font:700 13px/1 var(--grot);letter-spacing:.02em;color:var(--black);pointer-events:none}
  .pd-down{position:absolute;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));width:40px;height:40px;margin-left:-20px;color:var(--chalk-blue);pointer-events:none}
  .pd-body{display:flex;flex-direction:column;flex:1 0 auto;padding:26px 22px 0;background:var(--paper);box-shadow:0 -24px 24px -4px var(--paper)}
  body:not(.scene-ready) .pd-stage{display:none}
  /* reading: a paper band keeps the text clear of the header and the back mark; the rotate hint goes as soon as the info moves */
  #project-controls::after{content:"";position:fixed;z-index:6;left:0;right:0;top:0;height:146px;background:linear-gradient(var(--paper) 74%,#f4f4f000);opacity:0;transition:opacity .3s;pointer-events:none}
  body.pd-read #project-controls::after{opacity:1}
  .rotate-hint{font-size:20px;translate:-50% clamp(6px,1.4vh,14px)}.rotate-hint .chalk-svg{width:80px;height:28px}
  body.pd-scrolled .rotate-hint{opacity:0;transition:opacity .25s}
  .pd-title{max-width:none}
  .pd-print:hover{transform:none!important}
  .back-mark{left:12px;top:58px}
  .pd-nav{padding-top:40px}
  .pd-nav button{min-height:52px;font-size:19px}
}
/* language switcher: six quiet codes at the top edge of the room; in a project on phones it moves into
   the info column's footer (.langs-detail). Not inside <header>, whose links are projected onto signs. */
.langs{position:fixed;top:25px;right:28px;z-index:21;display:flex;gap:0;font-size:10px;letter-spacing:.04em;color:#7b8075}
.langs a{display:flex;align-items:center;justify-content:center;min-width:28px;min-height:44px;color:inherit;opacity:.62}
.langs a:hover,.langs a[aria-current]{opacity:1;color:#30372c}
.langs a[aria-current]{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.langs-detail{display:none}
body[data-view=project] .langs:not(.langs-detail){right:170px}
html[data-room-state=loading] .langs,body.portal-flying .langs,body.toolbox-open .langs{display:none}
/* list view / no 3D: the header's own links are visible, so the codes sit on a line under it */
body:not(.scene-ready) .langs:not(.langs-detail){position:absolute;top:76px;right:30px}
@media(max-width:760px){.langs{top:12px;right:12px}
  body:not(.scene-ready) .langs:not(.langs-detail){top:58px;right:16px}
  body[data-view=project] .langs:not(.langs-detail){display:none}
  body[data-view=project] .langs-detail{display:flex;position:static;margin:4px 0 24px -8px}}

/* phones: the hidden intro line must never widen the page, whatever the language's length */
@media(max-width:760px){.intro .intro-note{white-space:normal;max-width:calc(100vw - 205px)}}

/* the speaker beside the language codes (sound-ui.js): on = waves, off = a small cross */
.sound-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:44px;margin-left:6px;padding:0 4px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sound-toggle svg{fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.sound-toggle[data-state=on] .st-x,.sound-toggle[data-state=off] .st-w{display:none}
.langs .sound-toggle{opacity:.62}.langs .sound-toggle:hover{opacity:1;color:#30372c}
