/* One editorial layout for every populated project. Images keep their natural ratio. */
.project-story{margin:0 calc(-1 * var(--gutter));padding:100px 0 0;background:#fff;color:#24231f;scroll-margin-top:100px}
.project-story .story-heading{display:block;position:static;height:auto;max-width:1120px;margin:0 auto;padding:0 40px 76px;border:0}
.project-story .story-back,.project-story .story-end a{font:13px/1.5 var(--font-sans);letter-spacing:0}
.project-story .story-back{display:inline-block;margin-bottom:48px}
.project-story .story-back:hover,.project-story .story-end a:hover{text-decoration:underline;text-underline-offset:5px}
.project-story h1{font:var(--heading-weight) clamp(48px,6.5vw,94px)/1.04 var(--heading-font);letter-spacing:var(--heading-tracking);max-width:1000px;margin:0 0 32px;text-wrap:balance}
.project-story .story-deck{font:21px/1.65 var(--font-sans);letter-spacing:-.025em;max-width:650px;color:#59564f;margin:0}
.project-story .story-image{display:block;margin:0 0 100px;padding:0;width:100%;min-width:0;background:#f4f3f0}
.project-story .story-image a{display:block}
.project-story .story-image img{display:block;width:100%;max-width:none;height:auto;margin:0;object-fit:contain}
.project-story .story-text{width:100%;max-width:720px;margin:0 auto;padding:0 40px 74px}
.project-story h2{scroll-margin-top:120px;font:var(--heading-weight) clamp(34px,4vw,49px)/1.13 var(--heading-font);letter-spacing:var(--heading-tracking);max-width:none;margin:0 0 30px;text-wrap:balance}
.project-story .story-text>p{font:17px/1.85 var(--font-sans);letter-spacing:-.012em;color:#59564f;margin:0 0 22px}
.project-story .story-text>p:last-child{margin-bottom:0}
.project-story .story-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:32px;padding:0 var(--gutter);margin:0 0 100px}
.project-story .story-pair .story-image{margin:0;background:transparent}
.project-story .story-end{display:flex;justify-content:space-between;align-items:baseline;gap:28px;max-width:1120px;margin:0 auto;padding:30px 40px 90px;border-top:1px solid #e3e0d9}
.project-story .story-end a:last-child{text-align:right}
@media(min-width:2000px){.project-story>.story-image,.project-story .story-section>.story-image{max-width:1920px;margin-inline:auto}}
@media(max-width:600px){.project-story{padding-top:64px;scroll-margin-top:60px}.project-story .story-heading{padding:0 24px 46px}.project-story .story-back{margin-bottom:44px}.project-story h1{font-size:47px;margin-bottom:24px}.project-story .story-deck{font-size:18px;line-height:1.7}.project-story .story-image{margin-bottom:62px}.project-story .story-text{padding:0 24px 46px}.project-story h2{font-size:35px;margin-bottom:24px}.project-story .story-text>p{font-size:16px;line-height:1.85}.project-story .story-pair{grid-template-columns:1fr;gap:36px;padding:0;margin-bottom:62px}.project-story .story-end{margin:0 24px;padding:24px 0 60px;flex-direction:column;gap:18px}.project-story .story-end a:last-child{text-align:left}}

.project-story .story-image--paired .story-image-view{display:block;position:relative;aspect-ratio:var(--story-image-ratio)}
.project-story .story-image--paired img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.project-story .story-image-toggle{display:flex;align-items:center;gap:16px;padding:12px var(--gutter) 0;background:#fff}
.project-story .story-image-toggle[hidden]{display:none}
.project-story .story-image-toggle button{appearance:none;border:0;border-radius:0;background:transparent;padding:0 0 3px;color:#77736d;font:12px/1.5 var(--font-sans);letter-spacing:0;cursor:pointer}
.project-story .story-image-toggle button[aria-pressed="true"]{color:#24231f;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.project-story .story-image-toggle button:focus-visible{outline:1px solid currentColor;outline-offset:5px}
.project-story .story-pair .story-image-toggle{padding-inline:0}
.story-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.project-story .story-pair .story-image-toggle{padding-inline:24px}}

@media(max-width:600px){.project-story h2{scroll-margin-top:80px}}
/* A continuous museum wall with one viewport per hanging. */
.desk-museum{position:relative;isolation:isolate;background:#fff;padding-top:64px}
.desk-museum::before{content:none}
.desk-museum .story-heading{padding-bottom:48px;max-width:1240px}
.desk-museum .story-back{margin-bottom:28px}
.desk-museum h1{font-size:clamp(36px,5vw,68px);max-width:900px}
.desk-timeline{position:relative;width:100%;text-align:left}
.museum-room{position:relative;height:calc(100svh - 100px);min-height:min(540px,calc(100svh - 100px));max-height:1100px;scroll-margin-top:100px;isolation:isolate}
.museum-room:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:linear-gradient(to bottom,#b5ad9c 0 28px,transparent 28px 118px,#b5ad9c 118px);z-index:-1}
.museum-label{position:absolute;left:50%;top:36px;transform:translateX(-50%);width:80%;text-align:center}
.museum-year{display:block;font:400 28px/1 var(--font-sans);letter-spacing:-.05em;color:#514b3f}
.desk-museum .museum-label h2{font:400 12px/1.5 var(--font-sans);letter-spacing:0;margin:12px auto 0;max-width:220px;color:#625c51}
.desk-museum .museum-art{position:absolute;display:flex;align-items:center;flex-direction:column;justify-content:center;margin:0;background:transparent;width:28%;height:32%;min-width:0;max-width:500px}
.museum-slot-1{left:9%;top:20%;transform:rotate(-.7deg)}
.museum-slot-2{right:8%;top:23%;transform:rotate(.6deg)}
.museum-slot-3{left:13%;top:59%;transform:rotate(.5deg)}
.museum-slot-4{right:12%;top:60%;transform:rotate(-.6deg)}
.desk-museum .museum-art.museum-size-small{width:19%;height:26%}
.desk-museum .museum-art.museum-size-portrait{width:22%;height:35%}
.desk-museum .museum-art.museum-size-square{width:24%;height:31%}
.museum-frame{width:100%;height:calc(100% - 22px);min-height:0;padding:clamp(6px,1.2vw,18px);background:#f7f4eb;box-shadow:3px 6px 9px #30291d35,0 1px 2px #30291d30;border:12px solid #75613c}
.museum-frame--antique{border:clamp(10px,1.25vw,20px) solid #a38a51;border-image: url('images/desk-museum/antique-frame.webp') 14% stretch}
.museum-frame--walnut{border:clamp(8px,1vw,16px) solid #6e4e32;border-image:url('images/desk-museum/walnut-frame.webp') 12% stretch}
.museum-frame--slim{border:3px solid #272725;padding:clamp(6px,1.2vw,18px);box-shadow:2px 4px 7px #30291d35,inset 0 0 0 1px #d9d4c8}
.museum-frame--silver{border:5px ridge #b5b4ad;padding:clamp(6px,1.2vw,18px)}
.desk-museum .museum-art img{display:block;width:100%;height:100%;object-fit:contain;max-width:none;background:#f7f4eb;margin:0}
.museum-art figcaption{font:10px/1.4 var(--font-sans);letter-spacing:0;color:#625c51;margin-top:10px;text-align:center;max-width:100%;text-wrap:balance}
.desk-museum .story-end{max-width:1120px;margin-inline:auto;border-color:#c8c1b3}
@media(max-width:600px){.desk-museum{padding-top:40px;background-attachment:scroll}.desk-museum .story-heading{padding-bottom:28px}.desk-museum h1{font-size:38px}.museum-room{height:calc(100svh - 60px);min-height:min(500px,calc(100svh - 60px));max-height:none;scroll-margin-top:60px}.museum-label{top:30px}.museum-year{font-size:25px}.desk-museum .museum-label h2{font-size:11px;max-width:180px}.museum-room:before{background:linear-gradient(to bottom,#b5ad9c 0 22px,transparent 22px 106px,#b5ad9c 106px)}.desk-museum .museum-art{width:36%;height:27%}.museum-slot-1{left:5%;top:23%}.museum-slot-2{right:5%;top:24%}.museum-slot-3{left:6%;top:61%}.museum-slot-4{right:5%;top:60%}.desk-museum .museum-art.museum-size-small{width:29%;height:23%}.desk-museum .museum-art.museum-size-portrait{width:32%;height:30%}.desk-museum .museum-art.museum-size-square{width:34%;height:27%}.museum-frame{padding:5px}.museum-frame--antique{border-width:10px}.museum-frame--walnut{border-width:8px}.museum-frame--slim{border-width:2px;padding:5px}.museum-frame--silver{border-width:3px;padding:5px}.museum-art figcaption{font-size:8px;margin-top:7px}.desk-museum .story-end{margin-inline:24px}}

/* Clip the fixed ink to the museum wall, including when entering and leaving. */
.desk-timeline{clip-path:inset(0)}
.museum-wall-scribble{position:fixed;z-index:3;right:clamp(12px,2vw,32px);bottom:22px;width:clamp(70px,8vw,125px);height:auto;mix-blend-mode:multiply;opacity:.88;pointer-events:none;transform:rotate(-3deg)}
.museum-slot-4{right:18%}
@media(max-width:600px){.museum-wall-scribble{right:max(8px,calc((100vw - 430px)/2 + 8px));bottom:18px;width:56px}.museum-slot-4{right:17%}}
@media(max-width:600px){.desk-museum .museum-art.museum-slot-4{right:5%;top:59%;width:32%;height:27%}}
/* Compact paired clusters; the frame follows the photograph's own proportions. */
.desk-museum .museum-art{width:30%;height:28%;max-width:460px}
.desk-museum .museum-art.museum-size-small{width:23%;height:28%}
.desk-museum .museum-art.museum-size-portrait{width:26%;height:28%}
.desk-museum .museum-art.museum-size-square{width:28%;height:28%}
.desk-museum .museum-slot-1,.desk-museum .museum-slot-3{left:auto;right:55%}
.desk-museum .museum-slot-2,.desk-museum .museum-slot-4{right:auto;left:55%}
.desk-museum .museum-slot-1,.desk-museum .museum-slot-2{top:25%;justify-content:flex-end}
.desk-museum .museum-slot-3,.desk-museum .museum-slot-4{top:55%;justify-content:flex-start}
.desk-museum .museum-frame{width:100%;height:auto;flex:none;padding:clamp(7px,1vw,14px)}
.desk-museum .museum-art img{width:100%;height:auto;aspect-ratio:auto}
.desk-museum .museum-art figcaption{flex:none;margin-top:7px}
@media(max-width:600px){.desk-museum .museum-art,.desk-museum .museum-art.museum-slot-4{width:42%;height:28%}.desk-museum .museum-art.museum-size-small{width:34%}.desk-museum .museum-art.museum-size-portrait{width:38%}.desk-museum .museum-art.museum-size-square{width:40%}.desk-museum .museum-slot-1,.desk-museum .museum-slot-3{left:auto;right:54%}.desk-museum .museum-slot-2,.desk-museum .museum-slot-4{right:auto;left:54%}.desk-museum .museum-slot-1,.desk-museum .museum-slot-2{top:25%}.desk-museum .museum-slot-3,.desk-museum .museum-slot-4{top:55%}.desk-museum .museum-frame{padding:5px}}
.desk-museum .museum-frame[style] img{height:100%}
/* White-wall salon hangs: up to four frames in each compact cluster. */
.desk-museum{background:#fff}
.museum-cluster{position:absolute;top:25%;width:40%;height:57%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--cluster-rows),minmax(0,1fr));gap:12px;align-items:center;justify-items:center}
.museum-cluster--left{right:54%}.museum-cluster--right{left:54%}
.desk-museum .museum-cluster .museum-art{position:relative;inset:auto;width:100%;height:100%;max-width:none;justify-content:center;align-items:center}
.desk-museum .museum-cluster .museum-art.museum-size-small{width:86%}
.desk-museum .museum-frame{background-clip:padding-box}
.desk-museum .museum-frame--antique,.desk-museum .museum-frame--walnut{box-shadow:none;filter:drop-shadow(2px 3px 3px #30291d35)}
@media(max-width:600px){.museum-cluster{top:26%;width:43%;height:53%;gap:10px 6px}.museum-cluster--left{right:53%}.museum-cluster--right{left:53%}.desk-museum .museum-cluster .museum-art{width:100%;height:100%}.desk-museum .museum-frame{padding:3px}.desk-museum .museum-frame--antique{border-width:6px}.desk-museum .museum-frame--walnut{border-width:5px}.museum-art figcaption{font-size:7px;line-height:1.3}}
.museum-cluster{top:29%;height:48%}
@media(max-width:600px){.museum-cluster{top:35%;height:26%}}
/* Keep the opening years compact until the archive chronology is filled in. */
.desk-museum{padding-top:28px}
.desk-museum .story-heading{padding-bottom:20px}
.desk-museum .story-back{margin-bottom:12px}
.desk-museum h1{font-size:clamp(32px,4vw,52px);margin-bottom:16px}
#desk-1998.museum-room{height:90px;min-height:0;max-height:none}
#desk-1998 .museum-label{top:8px}
#desk-1998 .museum-year{font-size:21px}
#desk-1998 .museum-label h2{margin-top:8px}
#desk-1998:before{background:linear-gradient(to bottom,#b5ad9c 0 4px,transparent 4px 64px,#b5ad9c 64px)}
#desk-2015 .museum-cluster{top:20%}
@media(max-width:600px){.desk-museum{padding-top:20px}.desk-museum .story-heading{padding-bottom:12px}.desk-museum h1{font-size:32px;line-height:1.05}#desk-1998.museum-room{height:80px}#desk-2015 .museum-cluster{top:20%}}

/* Designer's Desk: physical model gallery grid */
.museum-room--grid{height:auto;max-height:none;min-height:0;padding:150px 0 90px}
.model-grid{list-style:none;margin:0 auto;padding:0;width:min(78%,1080px);display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,44px)}
.model-art{margin:0;display:flex;flex-direction:column;align-items:center}
.model-art .museum-frame{display:flex;width:100%;height:auto;aspect-ratio:4/3;padding:clamp(5px,.9vw,12px);overflow:hidden;box-sizing:border-box}
.model-art img{display:block;flex:1 1 0;min-width:0;min-height:0;width:100%;height:auto;align-self:stretch;object-fit:cover;background:#f7f4eb}
.model-art figcaption{font:10px/1.4 var(--font-sans);color:#625c51;margin-top:10px;text-align:center;text-wrap:balance}
@media(max-width:600px){.museum-room--grid{padding:130px 0 60px}.model-grid{width:calc(100% - 40px);grid-template-columns:repeat(2,1fr);gap:18px 14px}.model-grid li:last-child{grid-column:1/-1}.model-art .museum-frame{padding:4px}}

/* Performance: skip painting off-screen rooms until they near the viewport. */
.museum-room{content-visibility:auto;contain-intrinsic-size:auto 720px}
.museum-room--grid{contain-intrinsic-size:auto 1100px}
