/* A desktop of moving objects, after Garaje Inspiration Fest. */
:root { --desktop:#e9e8e7; --desktop-ink:#222321; --file-size:clamp(96px,10.4vw,156px); }
html,body { background:var(--desktop); color:var(--desktop-ink); }
.room { background:var(--desktop); }
main { position:fixed; inset:0; height:100%; display:block; }
.logo-slot { grid-row:auto; position:absolute; top:48%; left:50%; transform:translate(-50%,-50%); width:min(48vw,650px,69svh); }
@media(min-width:1100px) { .logo-slot { width:min(48vw,650px,69svh); } }
@media(min-width:1800px) { .logo-slot { width:min(48vw,760px,69svh); } }
.folder-desktop { z-index:3; }
.folder { --angle:0deg; --tab:#444440; --sticker:#e0dbff; position:absolute; left:var(--x); top:var(--y); width:calc(var(--file-size) + 48px); transform:translate(-50%,-50%); color:#222321; text-decoration:none; text-align:center; touch-action:manipulation; pointer-events:auto; outline:0; -webkit-user-drag:none; }
.folder-object { position:relative; display:block; width:var(--file-size); height:calc(var(--file-size)*.94); margin:0 auto 14px; perspective:650px; transform:rotate(var(--angle)); transition:transform .45s cubic-bezier(.2,.8,.25,1); }
.folder-back { position:absolute; inset:9% 0 0; border-radius:8px; background:linear-gradient(160deg,#555653,#181917 70%); box-shadow:inset 0 1px 1px #ffffff80,0 2px 3px #0002; }
.folder-back:before { content:""; position:absolute; left:0; top:-8%; width:44%; height:20%; background:linear-gradient(#545551,#3d3e3a); clip-path:polygon(0 0,75% 0,100% 40%,100% 100%,0 100%); border-radius:7px 0 0; }
.folder-paper { position:absolute; inset:4% 7% 8%; background:#faf9f5; border-radius:5px; transform:rotate(-7deg); box-shadow:0 0 0 1px #0000000b; transition:transform .45s cubic-bezier(.2,.8,.25,1); }
.folder-paper:after { content:""; position:absolute; inset:10% 13%; border-top:1px solid #b9b9b3; border-bottom:1px solid #d1d1ca; }
.folder-art { position:absolute; inset:9% 2% 0; width:96%; height:91%; border-radius:7px; background:var(--poster,#e5d2e4) url("./folder-poses.webp") var(--pose,0 0) / 400% 200% no-repeat; box-shadow:0 1px 1px #ffffff80 inset,0 4px 7px #0000000c; transform-origin:50% 100%; transform:rotateX(-7deg); overflow:hidden; transition:transform .45s cubic-bezier(.2,.8,.25,1),box-shadow .4s; }
.folder-art canvas { display:block; width:100%; height:100%; }
.folder-lip { position:absolute; left:0; right:0; bottom:-1px; height:18%; border-radius:2px 2px 7px 7px; background:linear-gradient(175deg,#343532,#111210); box-shadow:inset 0 1px #ffffff32; transform-origin:50% 100%; transform:rotateX(-7deg); transition:transform .45s; }
.folder-lip:after { content:""; position:absolute; right:7%; top:28%; width:1.9em; height:.85em; border-radius:1px; background:var(--sticker); font-size:8px; transform:rotate(-7deg); }
.folder-label { display:inline-block; padding:4px 7px 5px; border-radius:4px; font:14px/1.1 Arial,Helvetica,sans-serif; letter-spacing:-.2px; white-space:nowrap; transition:background .15s,color .15s; }
.folder:hover .folder-object,.folder:focus-visible .folder-object { transform:translateY(-5px) rotate(0) scale(1.14); }
.folder:hover .folder-art,.folder:focus-visible .folder-art { transform:translateY(-14%) rotateX(0) rotate(3deg); box-shadow:0 10px 15px #0002; }
.folder:hover .folder-paper,.folder:focus-visible .folder-paper { transform:translateY(-7%) rotate(-12deg); }
.folder:hover .folder-lip,.folder:focus-visible .folder-lip { transform:rotateX(-30deg); }
.folder:hover .folder-label,.folder:focus-visible .folder-label,.folder.is-opening .folder-label { background:#376cf5; color:#fff; }
.folder:focus-visible .folder-object { outline:2px solid #376cf5; outline-offset:8px; border-radius:8px; }
.folder:active .folder-object { transform:translateY(-1px) scale(.96); }
.folder.is-opening .folder-art { transform:translateY(-20%) scale(1.08); }
.folder:nth-child(1) { --pose:0 0;--x:15%;--y:25%;--angle:-4deg;--sticker:#f5b5c7;--poster:#f3cad5; }
.folder:nth-child(2) { --pose:33.333333% 0;--x:34%;--y:18%;--angle:3deg;--sticker:#bdd9ed;--poster:#e4e4dd; }
.folder:nth-child(3) { --pose:66.666667% 0;--x:82%;--y:26%;--angle:-3deg;--sticker:#dbd0ff;--poster:#d2c9e7; }
.folder:nth-child(4) { --pose:100% 0;--x:13%;--y:65%;--angle:4deg;--sticker:#d3ed86;--poster:#d8df85; }
.folder:nth-child(5) { --pose:0 100%;--x:85%;--y:66%;--angle:3deg;--sticker:#c6dcff;--poster:#9cb8f1; }
.folder:nth-child(6) { --pose:33.333333% 100%;--x:33%;--y:84%;--angle:-4deg;--sticker:#f8a68e;--poster:#f0876e; }
.folder:nth-child(7) { --pose:66.666667% 100%;--x:66%;--y:84%;--angle:3deg;--sticker:#c6d79c;--poster:#d5dfcf; }
.folder:nth-child(8) { --pose:100% 100%;--x:63%;--y:18%;--angle:-3deg;--sticker:#e6d7b0;--poster:#efe8d9; }
/* Some files are a print, others a sculpture: the framing is deliberately varied. */
.folder:nth-child(3) .folder-lip { height:12%; }
.folder:nth-child(4) { --sleeve:#414b35; }
.folder:nth-child(6) { --sleeve:#183c42; }
.folder:nth-child(7) { --sleeve:#314c3b; }
.folder:nth-child(8) { --sleeve:#423921; }
.nogl .folder-desktop { inset:0; display:block; }
html.portal-preparing .folder { pointer-events:none; }
.count { left:18px;right:auto;bottom:18px;gap:2px; }
.flap { width:19px;height:28px; }.flap .half { font-size:23px;line-height:28px; }.flap .bottom .d { transform:translateY(-14px); }
html .ask-open-btn { left:auto;right:18px;top:15px; min-height:42px; border:0;border-radius:8px;background:#ffffffc9;color:#222321;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-family:Arial,sans-serif;font-weight:400;font-size:13px; }
html .ask-open-btn:hover { color:#222321;background:#fff; }
html .ask-open-btn:focus-visible { outline-color:#376cf5; }
@media(hover:hover) and (pointer:fine) { html.pointer-layer-ready:not(.calm) .folder,html.pointer-layer-ready:not(.calm) .folder * {cursor:none;} }
@media(max-width:700px) and (orientation:portrait) {
  :root { --file-size:clamp(67px,20.5vw,98px); }
  .logo-slot { top:43%;width:min(73vw,350px,38svh); }
  .folder {width:calc(var(--file-size) + 24px);}
  .folder-object { margin-bottom:8px; }
  .folder-label { font-size:12px; }
  .folder:nth-child(1) {--x:17%;--y:20%;}
  .folder:nth-child(2) {--x:50%;--y:17%;}
  .folder:nth-child(3) {--x:83%;--y:22%;}
  .folder:nth-child(4) {--x:25%;--y:68%;}
  .folder:nth-child(5) {--x:75%;--y:66%;}
  .folder:nth-child(6) {--x:18%;--y:86%;}
  .folder:nth-child(7) {--x:82%;--y:85%;}
  .folder:nth-child(8) {--x:50%;--y:87%;}
  html .ask-open-btn {right:12px;top:12px;min-height:36px;font-size:11px;padding:0 10px;}
  .count {left:14px;bottom:12px;}
}
@media(max-height:620px) and (orientation:portrait) {
  :root {--file-size:60px;}
  .folder-object {margin-bottom:4px;}
  .folder-label {font-size:11px;}
  .logo-slot {width:61vw;top:43%;}
  .folder:nth-child(1) {--y:21%;}.folder:nth-child(2) {--y:18%;}.folder:nth-child(3) {--y:23%;}
}
@media(max-height:560px) and (orientation:landscape) {
  :root {--file-size:clamp(58px,14svh,82px);}
  .logo-slot {top:49%;width:61svh;}
  .folder:nth-child(1){--x:12%;--y:30%;}.folder:nth-child(2){--x:32%;--y:25%;}.folder:nth-child(3){--x:84%;--y:30%;}
  .folder:nth-child(4){--x:14%;--y:70%;}.folder:nth-child(5){--x:86%;--y:72%;}.folder:nth-child(6){--x:34%;--y:83%;}.folder:nth-child(7){--x:66%;--y:82%;}.folder:nth-child(8){--x:62%;--y:25%;}
  .folder-object {margin-bottom:6px;}.folder-label{font-size:11px;}
  html .ask-open-btn {min-height:32px;top:10px;}
}
@media(prefers-reduced-motion:reduce) { .folder * {transition:none!important;} }
/* The original glass guide keeps readable contrast in the daylight workspace. */
html .ask { background:linear-gradient(145deg,#343738f2,#181b1df5); -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px); }
@media(min-width:901px) { html .ask {left:auto;right:18px;top:72px;} }

/* The sleeve, mounted artwork and paper catch the same upper-left studio light.
   The contact shadow stays on the desktop when the object lifts. */
.folder::before {
  content:"";position:absolute;pointer-events:none;top:calc(var(--file-size)*.94 - 7px);
  left:50%;width:calc(var(--file-size)*1.13);height:14px;transform:translateX(-48%) rotate(var(--angle));
  background:radial-gradient(ellipse closest-side,#262b2840,#262b2817 54%,transparent);
  transition:opacity .35s;
}
.folder:is(:hover,:focus-visible)::before {opacity:.62;}
.folder-back {box-shadow:inset 0 1px 1px #ffffff99,inset 1px 0 1px #ffffff26,0 1px 1px #0003,0 5px 9px -5px #0007;}
.folder-paper {
  background:linear-gradient(120deg,#fffefa,#eceae3 89%,#e0ded5);
  box-shadow:0 .8px 0 #bfc0b7,0 1.7px 0 #f9f8f2,0 2.5px 0 #c6c6bd,0 3px 3px #24282026;
}
.folder-art:after {content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 .7px #1c20262e,inset 0 1.5px 1px #ffffffa6,inset 0 -1px 1px #0002;}
.folder-lip {
  background:linear-gradient(108deg,#ffffff10,transparent 37%,#ffffff08 74%,#00000012),
    linear-gradient(to bottom,#fff3 0,#fff1 10%,transparent 28%,#0003 87%,#0001),var(--sleeve,#252924);
  box-shadow:inset 0 1px #ffffff70,inset 0 -1px #10130d70,0 1px 1px #10130d45;
}
.folder-lip:after {
  background:linear-gradient(150deg,#ffffff83,transparent 47%,#00000013),var(--sticker);
  box-shadow:0 1px 1px #090e0b77,inset 0 0 0 .6px #ffffff73;
}
.folder-label {color:#252925;-webkit-font-smoothing:antialiased;text-shadow:0 1px 2px #fffffff2,0 0 4px #f1f2f0,0 0 8px #f1f2f0;}
.folder:is(:hover,:focus-visible,.is-opening) .folder-label {text-shadow:none;}

.logo-play:focus-visible {outline:2px solid #376cf5;outline-offset:14px;}
/* Keep the same composition on a native UHD desktop instead of tiny icons in empty space. */
@media(min-width:2200px) {
  :root {--file-size:clamp(180px,8.2vw,300px);}
  .logo-slot {width:min(46vw,1460px,69svh);}
  .folder-label {font-size:clamp(15px,.7vw,23px);padding:6px 10px;}
  .folder-lip:after {font-size:clamp(8px,.35vw,12px);}
  .folder-object {margin-bottom:20px;}
  html .ask-open-btn {font-size:18px;min-height:54px;}
}
/* Desktop behaviours follow the reference's small utility controls and movable media windows. */
.desktop-tools {position:fixed;z-index:6;top:15px;right:184px;display:flex;gap:5px;font:13px/1 Arial,sans-serif;}
.desktop-tools button {height:42px;padding:0 12px;border:0;border-radius:8px;background:#ffffffc9;color:#222321;font:inherit;white-space:nowrap;cursor:pointer;}
.desktop-tools button:hover {background:#fff;}.desktop-tools button:focus-visible,.art-window :focus-visible {outline:2px solid #376cf5;outline-offset:3px;}



.desktop-artwork-button {max-width:145px;overflow:hidden;text-overflow:ellipsis;}.has-minimized-art {box-shadow:inset 0 -3px #376cf5;}
html.portal-open .desktop-tools,html.portal-preparing .desktop-tools,html.ask-on .desktop-tools {visibility:hidden;}
.folder {user-select:none;-webkit-user-select:none;}


.art-window {position:fixed;z-index:12;display:grid;grid-template-rows:48px minmax(120px,1fr) minmax(0,auto) 58px;border:3px solid transparent;border-radius:20px;
 background:linear-gradient(#fff,#fbfbf8) padding-box,linear-gradient(135deg,#fff 0%,#d9ddd7 32%,#b9bfba 64%,#f8f9f5 89%,#c1c6c1) border-box;
 box-sizing:border-box;transform-origin:0 0;box-shadow:0 0 0 1px #65716940,0 2px 5px #26302724,0 18px 54px -20px #1c2c224a;overflow:hidden;color:#222321;font:14px/1.2 Arial,sans-serif;}
.art-window[hidden] {display:none;}.art-window:focus {outline:none;}
.art-window-bar {display:flex;align-items:center;justify-content:center;position:relative;background:linear-gradient(102deg,color-mix(in srgb,var(--room-tint,#dbe0dc) 19%,#fafbf8),#fdfefc 58%,#eef0ec);
 border-bottom:1px solid #aeb7ab5e;box-shadow:inset 0 1px #fff;touch-action:none;cursor:grab;user-select:none;}
.art-window-bar:active {cursor:grabbing;}.art-window-title {max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b544f;font-size:12px;font-weight:600;}
.window-lights {position:absolute;left:9px;top:0;height:100%;display:flex;align-items:center;gap:2px;}
.window-lights button {position:relative;width:28px;height:38px;border:0;background:transparent;padding:0;cursor:pointer;}
.window-lights button:before {content:"";position:absolute;width:12px;height:12px;border-radius:50%;left:5px;top:13px;background:radial-gradient(at 35% 25%,#ffffff62,transparent 73%),var(--light,#e57e71);
 box-shadow:inset 0 0 0 .75px #77514648,inset 0 1px 0 #ffffff8c,0 .75px 0 #fff;}
.window-minimize {--light:#e5b858;}.window-maximize {--light:#7caf84;}
.window-lights svg {position:absolute;left:7px;top:15px;width:8px;height:8px;fill:none;stroke:#3f4339;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:0;}
.window-lights:is(:hover,:focus-within) svg {opacity:1;}
.window-grip {position:absolute;right:16px;width:17px;height:5px;border-top:1px solid #cbccc7;border-bottom:1px solid #cbccc7;}
.art-window-stage {min-height:0;overflow:hidden;background:#eee;}.art-window-stage canvas {display:block;width:100%;height:100%;}
.art-window-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;border-top:1px solid #d9ded7;background:linear-gradient(180deg,#fcfcf9,#f0f2ed);}
.art-paging {display:flex;align-items:center;gap:9px;}.art-page {display:flex;align-items:center;gap:4px;height:12px;}.art-page i {display:block;width:8px;height:2px;border-radius:1px;background:#cfd0cc;transition:width .35s cubic-bezier(.2,.85,.2,1),background .35s;}.art-page i.is-current {width:22px;background:color-mix(in srgb,var(--room-tint,#c7cebc) 32%,#25342e);}
.art-paging button {display:grid;place-items:center;border:0;background:none;width:32px;height:40px;padding:0;cursor:pointer;color:#333;}.art-paging button svg {display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s cubic-bezier(.2,.9,.2,1.05);}.art-previous:hover svg {transform:translateX(-2px);}.art-next:hover svg {transform:translateX(2px);}
.art-open-room {display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 15px 0 17px;border-radius:999px;background:#1d1e1c;color:#fff;text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap;transition:background .2s,transform .2s;}
.art-open-room:hover {background:#000;}.art-open-room:active {transform:scale(.97);}.art-open-room svg {transition:transform .25s cubic-bezier(.2,.9,.2,1.05);}.art-open-room:hover svg {transform:translateX(3px);}
.room-info {overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:14px 20px 6px;border-top:1px solid #d9ded7;background:#fdfdfa;}
.room-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;}
.room-name {margin:0;font:600 24px/1.14 Arial,sans-serif;letter-spacing:-.035em;color:#1d1e1c;}
/* A plain gallery-label line with a drawn padlock, open or shut: no tinted pill. */
.room-access {display:inline-flex;align-items:center;gap:5px;flex:none;color:#3d6b38;font-size:12px;}
.room-access.is-locked {color:#5f625e;}
.room-row {border-top:1px solid #efefed;}.room-row:first-of-type {border-top:0;}
.room-row summary {display:flex;align-items:center;gap:6px;min-height:36px;list-style:none;cursor:pointer;font-size:12px;font-weight:600;color:#3f413d;}
.room-row summary::-webkit-details-marker {display:none;}
.room-chevron {transition:transform .2s;color:#8b8e88;}.room-row[open] .room-chevron {transform:rotate(180deg);}
.room-about {margin:0 0 12px;max-width:58ch;font-size:13px;line-height:1.5;color:#4a4c48;}
@media(min-width:701px) and (min-height:521px) {.room-about {min-height:4.5em;}}
.room-made {display:flex;flex-wrap:wrap;row-gap:6px;margin:0 0 12px;padding:0;list-style:none;}
.room-made li {padding:0 9px;border-inline-end:1px solid #c8cfc6;font-size:12px;color:#4a4c48;}
.room-made li:first-child {padding-inline-start:0;}.room-made li:last-child {border:0;}
html.portal-open .art-window {visibility:hidden;}
@media(hover:hover) and (pointer:fine) {html.pointer-layer-ready:not(.calm) .desktop-tools *,html.pointer-layer-ready:not(.calm) .art-window,html.pointer-layer-ready:not(.calm) .art-window * {cursor:none;}}
@media(max-width:700px) {
 .desktop-tools {top:auto;bottom:12px;right:12px;gap:3px;font-size:11px;}
 .desktop-tools button {height:34px;padding:0 8px;}.desktop-artwork-button {max-width:84px;}

 .art-window {border-width:2px;border-radius:17px;grid-template-rows:43px minmax(110px,1fr) minmax(0,auto) 56px;}.art-window-footer {padding:0 10px;}.art-open-room{font-size:13px;height:40px;}
 .room-info {padding:12px 14px 4px;}.room-name {font-size:21px;}.room-about {font-size:13px;}
 .art-window-title {font-size:11px;max-width:54%;margin-left:38px;}
 .art-paging {gap:3px;}.art-paging button {width:26px;}.art-page {gap:3px;}.art-page i {width:4px;}.art-page i.is-current {width:12px;}
}
@media(max-height:620px) and (orientation:portrait) {.folder[data-art="5"] {--y:81%;}.folder[data-art="6"] {--y:80%;}}
@media(max-height:560px) and (orientation:landscape) {.desktop-tools {top:10px;font-size:11px;}.desktop-tools button {height:32px;}}
@media(prefers-reduced-motion:reduce) {.art-window,.folder {scroll-behavior:auto;}.room-chevron,.art-open-room,.art-open-room svg {transition:none;}}

@media(min-width:2200px) {.desktop-tools {right:250px;font-size:18px;}.desktop-tools button {height:54px;}}

/* A low landscape screen gives the sculpture and its catalogue label adjacent
   compartments, with the full lower rail available for the entry key. */
@media(max-height:520px) and (min-width:480px) and (orientation:landscape) {
  .art-viewing .art-window {grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);grid-template-rows:36px minmax(0,1fr) 66px;}
  .art-window-bar,.art-window-footer {grid-column:1/-1;}
  .art-window .art-window-footer {min-height:0;padding-block:5px;}
  .art-window .room-info {border-top:0;border-left:1px solid #dde0db;padding-top:12px;}
}
@media(pointer:coarse) {
  .window-lights {gap:0;left:3px;}
  .window-lights button {width:36px;height:40px;}
  .window-lights button:before {left:12px;top:14px;}
  .window-lights svg {left:14px;top:16px;}
  .art-paging button {width:clamp(26px,8vw,36px);min-height:44px;}
}
@media(prefers-reduced-motion:reduce) {
  .folder::before,.art-page i,.art-paging button svg {transition:none;}
  .art-paging button:hover svg {transform:none;}
}
