/* /project-viewer.css */
/* One viewer for every attachment: image, caption, previous/next, close. */
html.media-viewer-open{overflow:hidden}
#drawing-viewer{position:fixed;inset:0;margin:0;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;padding:0 25px;overflow:hidden;display:flex;flex-direction:column;background:#fff;color:#111;font:400 12px/18px "neue-haas-grotesk-text",Arial,sans-serif}
#drawing-viewer:not([open]){display:none}
#drawing-viewer::backdrop{background:transparent}
#drawing-viewer .viewer-bar{display:flex;align-items:center;min-height:64px;flex-shrink:0;padding:0;border:0;font:inherit}
#drawing-viewer button{border:0;background:none;color:#666;font:inherit;min-width:44px;min-height:44px;padding:0 6px;cursor:pointer}
#drawing-viewer #viewer-close{padding-left:0}
#drawing-viewer button:disabled{opacity:.35;cursor:default}
#drawing-viewer button:hover:not(:disabled),#drawing-viewer button:focus-visible{color:var(--accent-ink,var(--accent,#ff4f00))}
#drawing-viewer:focus,#drawing-viewer button:focus{outline:none}
#drawing-viewer.keyboard-focus button:focus-visible{outline:1px solid #666;outline-offset:2px}
#viewer-stage{position:relative;flex:1;min-height:0;overflow:hidden;isolation:isolate;touch-action:none;cursor:grab}
#viewer-stage:active{cursor:grabbing}
#drawing-viewer.single-image #viewer-stage{cursor:default}
#viewer-image,.viewer-neighbor{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none;will-change:transform}
.viewer-neighbor[hidden]{display:none}
#drawing-viewer .viewer-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:64px;flex-shrink:0;padding:8px 0;gap:16px;border:0;font:inherit}
#viewer-title{color:#707070;font:inherit;max-width:54ch;text-wrap:pretty;overflow-wrap:anywhere}
#drawing-viewer .viewer-navigation{display:flex;align-items:center;width:auto;gap:4px}
#viewer-count{display:block;min-width:56px;text-align:center;color:#707070;font:400 11px/18px "neue-haas-grotesk-text",Arial,sans-serif;font-variant-numeric:tabular-nums}
#drawing-viewer #media-prev,#drawing-viewer #media-next{font:400 20px/1 Arial,sans-serif}
#viewer-select{display:none}
#drawing-viewer.single-image .viewer-navigation{visibility:hidden}
#drawing-viewer.is-opening #viewer-image{visibility:hidden}
#drawing-viewer.is-transitioning .viewer-bar,#drawing-viewer.is-transitioning .viewer-tools{opacity:0}
#viewer-load-status{position:absolute;bottom:76px;left:50%;transform:translateX(-50%);z-index:8;background:#fff;padding:5px 9px;font:inherit;color:#666;pointer-events:none}
#viewer-load-status:empty{display:none}
@media(max-width:760px){
 #drawing-viewer{padding:env(safe-area-inset-top) 15px env(safe-area-inset-bottom)}
 #drawing-viewer .viewer-bar{min-height:56px}
 #drawing-viewer .viewer-tools{min-height:72px;gap:12px;padding:8px 0}
 #viewer-title{font-size:12px;line-height:17px}
 #drawing-viewer .viewer-navigation{gap:0}
 #viewer-count{min-width:40px}
}
@media(hover:none){#drawing-viewer button:hover:not(:disabled){color:#666}}
@media(prefers-reduced-motion:reduce){#drawing-viewer *{animation:none!important;transition:none!important}}

/* Loading must never hide the exit; retry appears only after a failed request. */
#drawing-viewer #viewer-retry{position:absolute;left:50%;bottom:110px;transform:translateX(-50%);z-index:9;background:#fff;text-decoration:underline;text-underline-offset:4px}
#drawing-viewer #viewer-retry[hidden]{display:none}
#viewer-load-status{max-width:calc(100% - 40px);text-align:center}

#drawing-viewer.load-error #viewer-image{visibility:hidden}

/* /omw/test.css */
*{box-sizing:border-box}body{margin:0;background:#fff;color:#111;font:400 13px/1.25 "neue-haas-grotesk-text",Arial,sans-serif}button,a,select{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer}a{text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #111;outline-offset:4px}header{position:fixed;z-index:5;inset:0 0 auto;height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#fff;font-size:13px}header>span{margin-right:auto;margin-left:30px}#back-start{background:#eee;padding:12px 15px;margin-left:-15px}header i{display:none}#strip{height:100svh;display:flex;gap:15.625vw;overflow-x:auto;overflow-y:hidden;padding:55px 15px 15px;scrollbar-width:none;overscroll-behavior-x:contain}#strip::-webkit-scrollbar{display:none}.intro{flex:0 0 calc(50vw - 30px);display:flex;align-items:center;justify-content:center;padding-bottom:20vh}.intro .final-receipt{padding:0;pointer-events:none;flex-shrink:0}.panel{flex:0 0 auto;width:72vw;display:grid;grid-template-rows:minmax(0,1fr) 20vh;gap:40px;min-width:0}.panel .image{display:block;padding:0;width:100%;height:100%;min-height:0;text-align:left;overflow:hidden}.image img{display:block;width:100%;height:100%;object-fit:contain;object-position:left bottom}.caption{border-top:1px solid #111;padding-top:6px;min-width:0;display:flex;align-items:flex-start}.caption-inner{position:sticky;left:15px;width:350px;max-width:100%;flex-shrink:0}.caption-title{font:500 13px/16px "neue-haas-grotesk-text",Arial,sans-serif;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}.caption p{margin:1px 0 0;color:#707070;font:400 13px/16px "neue-haas-grotesk-text",Arial,sans-serif}.frame-label{display:block;margin-top:5px;color:#707070;font-size:11px}.sequence{display:flex;align-items:center;gap:4px;font:400 11px "neue-haas-grotesk-text",Arial,sans-serif}.sequence button{min-height:24px;min-width:22px;padding:2px}.sequence .play{color:#888;margin-left:6px}.panel.full{width:85vw}.panel.wide{width:calc((80svh - 110px)*var(--ratio));min-width:220px}.panel.immersive{width:calc(100vw - 30px);grid-template-rows:minmax(0,1fr) 52px;gap:12px}.immersive .image img{object-position:center}.immersive .caption-inner{width:500px}.immersive .caption p,.immersive .frame-label{display:none}.panel.silent .caption{border:0}.credits{flex:0 0 550px;padding-top:20px}.credits h2{font:500 22px/1.15 "neue-haas-grotesk-text",Arial,sans-serif;margin:0 0 30px}.credits dl{margin:0}.credits dl>div{display:grid;grid-template-columns:150px 1fr;border-top:1px solid #ccc;padding:8px 0;font-size:13px}.credits dd{margin:0;color:#707070}.credits>a{display:block;margin-top:22px}.index{position:fixed;z-index:6;bottom:15px;left:15px;font-size:13px;background:white}.index>button{border:1px solid #111;padding:9px 12px;background:white}.index>div{position:absolute;bottom:40px;left:0;width:280px;max-height:65svh;overflow:auto;background:white;border:1px solid;padding:10px}.index a{display:block;border-bottom:1px solid #ddd;padding:7px}.index a:hover{background:#eee}[hidden]{display:none!important}
@media(max-width:760px){header{font-size:12px}#back-start{display:none}header>span{margin:0}#strip{display:block;height:auto;overflow:visible;padding:85px 15px 75px}.intro{padding:0;margin-bottom:85px;min-height:500px}.intro .final-receipt{width:min(320px,100%);padding-inline:12px}.panel,.panel.full,.panel.wide,.panel.immersive{width:100%;display:block;margin-bottom:65px;scroll-margin-top:55px}.panel .image{height:auto}.image img{width:100%;height:auto;max-height:85svh;object-position:center}.caption{margin-top:20px}.caption-inner{position:static;width:350px}.caption-title{font-size:13px}.panel.immersive{width:calc(100% + 30px);margin-left:-15px}.immersive .caption{margin-inline:15px}.immersive .caption p{display:block}.credits{padding-top:20px;scroll-margin-top:55px}.credits dl>div{grid-template-columns:115px 1fr;font-size:12px}.index{bottom:12px}.sequence button{min-height:32px;min-width:30px}}
@media(min-width:761px){.caption-inner{left:0}.panel.immersive{grid-template-rows:minmax(0,1fr) 70px}#typicke .image img{transform:scale(1.7);transform-origin:center}.immersive .caption{padding-left:0}}
@media(max-width:760px){#typicke .image{overflow:hidden}#typicke .image img{transform:scale(1.65);margin-block:15%}}
/* TEST editorial pass: close related views, pause between chapters. */
.caption p,.frame-label{color:#707070}.panel:not(.sequence-panel) .frame-label{display:none}.sequence-panel .frame-label{display:block;font-size:12px;margin-top:5px;color:#555}.immersive.sequence-panel .frame-label{display:block}.sequence .play{color:#555}.caption-title{font-weight:600}.sequence{font-weight:400}.credits dd{color:#707070}
@media(min-width:761px){
#strip{gap:28px}.intro{flex-basis:calc(50vw - 43px)}
#stroj,#ostrov,#vyhled,#rez,.credits{margin-left:clamp(90px,12vw,200px)}
#vztahy{margin-left:60px;width:76vw}
.panel.immersive{grid-template-rows:minmax(0,1fr) 82px;gap:16px}
#podlazi{width:calc(100vw - 30px)}
#prizemi,#ostrov-podlazi,#byty{grid-template-rows:minmax(0,1fr) 110px;gap:20px}
#prizemi,#ostrov-podlazi{width:80vw}
#byty{width:65vw}
.caption-inner{padding-right:10px}
}
@media(max-width:760px){
#strip{padding-bottom:100px}.panel{margin-bottom:38px!important}
#stroj,#ostrov,#vyhled,#rez,.credits{margin-top:85px}
.sequence-panel .caption-title{gap:6px 12px}.sequence-panel .frame-label{margin-top:2px}
.index>button{box-shadow:0 0 0 5px white}
}
/* Stable image stages and a quieter, consistent detail viewer. */
.image{cursor:zoom-in}.image img{user-select:none}.sequence .play{min-width:66px;text-align:left}.frame-label{min-height:15px}.index a[aria-current]{font-weight:600;background:#f1f1f1}.index a:focus-visible{outline-offset:-2px}.credits{align-self:center}.credits>a{font-size:12px;text-transform:none}.viewer-bar,.viewer-tools,.viewer-help,#compare-tools{font-family:"neue-haas-grotesk-text",Arial,sans-serif!important;letter-spacing:0!important}.viewer-help{font-size:12px!important}
@media(min-width:761px){#ostrov,#vyhled{width:calc((100svh - 168px)*var(--ratio));min-width:78vw;max-width:115vw}.credits{padding-bottom:65px} }
@media(min-width:761px) and (max-height:650px){#strip{height:max(100svh,650px)}body{overflow-y:auto}.intro{padding-bottom:130px}.credits{align-self:start}}
@media(max-width:760px){.sequence-panel .image{aspect-ratio:var(--ratio);max-height:75svh;display:flex;align-items:center}.sequence-panel .image img{height:100%;width:100%;max-height:75svh;object-fit:contain}.sequence button{min-width:36px;min-height:36px}.sequence .play{min-width:75px}.caption-inner{width:100%}.credits{padding-bottom:25px}}
#byty .image img{transform:scale(1.35);transform-origin:center}
@media(min-width:761px){#ostrov,#vyhled{min-width:0}.credits{margin-right:clamp(30px,8vw,150px)}}
#byty .image img{object-position:center}
@media(min-width:761px){#byty{width:calc((100svh - 200px)*var(--ratio));min-width:350px;max-width:75vw}}
/* Explanations live with their images; silent drawings stay silent. */
#vyuziti .caption p,#ostrov .caption p,#vyhled .caption p{display:block}
@media(min-width:761px){#vyuziti,#ostrov,#vyhled{grid-template-rows:minmax(0,1fr) 116px}#ostrov,#vyhled{width:calc((100svh - 202px)*var(--ratio))}.panel:not(.immersive){grid-template-rows:minmax(0,1fr) max(145px,20vh)}.panel.wide:not(.immersive){width:calc((100svh - 70px - 40px - max(145px,20vh))*var(--ratio))}#prizemi,#ostrov-podlazi,#byty{grid-template-rows:minmax(0,1fr) 145px}}
/* Narrow drawings take their natural width instead of an empty viewport. */
@media(min-width:761px){
#vztahy{width:calc(100svh - 255px);min-width:360px}
#prizemi,#ostrov-podlazi{width:calc((100svh - 255px)*var(--ratio));min-width:350px}
#vyuziti{width:calc((100svh - 235px)*var(--ratio));min-width:360px;grid-template-rows:minmax(0,1fr) 145px}
#prizemi .image img,#ostrov-podlazi .image img{object-position:center}
#vyuziti .caption-inner{width:100%}
}

/* Modus Forma reference: regular captions, quiet grey explanations. */
.caption-title{font-weight:400}

/* TEST1 — measured Modus Forma editorial system, 30 October. */
body{color:#000;font:400 13px/16px "neue-haas-grotesk-text",Arial,sans-serif}
header{font-weight:500}#back-start{background:none;margin:0;padding:0}.intro{padding:0;flex:0 0 calc(50vw - 43px);align-items:center}.intro h1{font:700 55px/1 "neue-haas-grotesk-display",Arial,sans-serif;text-align:center;letter-spacing:-.025em;margin:-50px 0 0;padding:0 50px}.intro h1 span{display:block;color:#bbb}
.caption-inner,.immersive .caption-inner{width:350px;max-width:100%;padding-right:0;left:15px}
.caption-title,.caption p{font:400 13px/16px "neue-haas-grotesk-text",Arial,sans-serif;letter-spacing:0}.caption p{color:#bbb;margin:0}.frame-label,.sequence-panel .frame-label,.credits dd{color:#bbb}.caption-title{gap:4px 12px}.sequence{font-size:13px;font-weight:400}.sequence .play{font-size:11px}.caption{padding-top:6px}
@media(min-width:761px){.panel:not(.immersive){grid-template-rows:minmax(0,1fr) max(145px,20vh)}.intro{min-width:0}}
@media(max-width:760px){#back-start{display:block}.intro{min-height:0;padding:60px 20px 70px;margin:0}.intro h1{font-size:42px;line-height:1;margin:0;padding:0}.caption-inner,.immersive .caption-inner{width:100%;position:static}.caption p{font-size:13px;line-height:16px}#strip{padding-top:40px}}

/* Scroll-linked header, matching the reference's progress choreography. */
header{--progress-x:0px}.header-progress{position:absolute;inset:0 auto 0 0;width:var(--progress-x);background:#eee;pointer-events:none}.header-title{position:absolute;left:15px;top:0;height:40px;display:flex;align-items:center;transform:translateX(var(--progress-x));margin:0!important;white-space:nowrap;pointer-events:none}#back-start{position:relative;opacity:0;pointer-events:none;transition:opacity 125ms ease}header.has-progress #back-start{opacity:1;pointer-events:auto}header>a:last-of-type{margin-left:auto;position:relative}.caption-title{font-weight:500}.sequence{gap:4px}.sequence output{white-space:nowrap}.caption-inner,.immersive .caption-inner{position:relative;left:0;will-change:transform}
@media(max-width:760px){.header-progress{display:none}.header-title{transform:none}header.has-progress .header-title{display:none}.caption-inner{transform:none!important}.intro h1{font-size:38px}.intro{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){#back-start{transition:none}}

/* TEST4: the same editorial system, composed along the vertical axis. */
html{scroll-behavior:smooth}body{overflow-x:hidden}#strip{display:block;height:auto;overflow:visible;padding:55px 15px 90px}.intro{min-height:65svh;padding:70px 0 100px;margin:0}.intro h1{max-width:650px;padding:0 30px;margin:0}.panel,.panel.full,.panel.wide,.panel.immersive,#stroj,#ostrov,#vyhled,#rez,#vztahy,#podlazi,#prizemi,#ostrov-podlazi,#byty,#vyuziti{width:100%;min-width:0;max-width:none;margin:0 0 100px;display:grid;grid-template-columns:minmax(200px,25%) minmax(0,1fr);grid-template-rows:auto;gap:30px;align-items:start;scroll-margin-top:55px}.panel .image{grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:auto;max-height:none}.panel .image img{width:100%;height:auto;max-height:none;object-fit:contain;object-position:center}.panel .caption,.immersive .caption{grid-column:1;grid-row:1;position:sticky;top:65px;margin:0;align-self:start;border-top:1px solid #000;padding-top:6px}.caption-inner,.immersive .caption-inner,#vyuziti .caption-inner{width:100%;max-width:350px;position:static;transform:none!important}.immersive .caption p{display:block}.panel.silent .caption{border-top:1px solid #000}.sequence-panel .image{aspect-ratio:var(--ratio)}.sequence-panel .image img{height:100%;object-fit:contain}#typicke .image{height:auto;overflow:hidden}#typicke .image img,#byty .image img{transform:none;margin:0}.credits{max-width:650px;margin:130px 0 0 auto;padding:0 0 40px}.header-progress{display:block}
@media(max-width:760px){#strip{padding-top:40px}.intro{min-height:0;padding:65px 0 85px}.intro h1{font-size:38px;padding:0 10px}.panel,.panel.full,.panel.wide,.panel.immersive,#stroj,#ostrov,#vyhled,#rez,#vztahy,#podlazi,#prizemi,#ostrov-podlazi,#byty,#vyuziti{display:flex;flex-direction:column;gap:0;margin:0 0 60px!important;width:100%}.panel .image{width:100%;max-height:none}.panel .caption{position:static;width:100%;margin-top:20px}.panel .image img{max-height:none}.credits{margin-top:70px}.header-progress{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Composed disorder: independent image and caption positions. */
#strip{padding-inline:25px}.panel,.panel.full,.panel.wide,.panel.immersive,#stroj,#ostrov,#vyhled,#rez,#vztahy,#podlazi,#prizemi,#ostrov-podlazi,#byty,#vyuziti{grid-template-columns:repeat(12,minmax(0,1fr));gap:25px;margin-bottom:150px}.panel .caption,.panel.silent .caption,.immersive .caption{border:0;padding:0;grid-column:1/4;top:90px}.panel .image{grid-column:5/13}.panel .caption p{margin-top:4px}
#mezi-domy{grid-template-columns:repeat(12,minmax(0,1fr));margin-bottom:170px}#mezi-domy .image{grid-column:2/10}#mezi-domy .caption{grid-column:10/13;top:30vh;padding-top:100px}
#soubor .image{grid-column:6/13}#soubor .caption{grid-column:2/5;top:25vh}
#vztahy .image{grid-column:2/9}#vztahy .caption{grid-column:10/13}
#stroj .image{grid-column:4/13}#stroj .caption{grid-column:1/4;top:28vh}
#stroj-detail .image{grid-column:2/7}#stroj-detail .caption{grid-column:9/12;top:35vh;padding-top:80px}
#vyuziti .image,#prizemi .image,#ostrov-podlazi .image,#byty .image{grid-column:5/11;height:85svh;aspect-ratio:auto}#vyuziti .image img,#prizemi .image img,#ostrov-podlazi .image img,#byty .image img{height:100%;width:100%;object-fit:contain}
#ostrov .image{grid-column:1/10}#ostrov .caption{grid-column:10/13;top:20vh}
#otevirani .image{grid-column:4/12}#otevirani .caption{grid-column:1/4}
#den-noc .image{grid-column:3/13}#den-noc .caption{grid-column:1/3;top:30vh}
#vyhled .image{grid-column:5/11}#vyhled .caption{grid-column:2/5;top:30vh}
#typicke .image{grid-column:3/11;height:min(150vw,1800px);position:relative;overflow:hidden}#typicke .image img{position:absolute;left:50%;top:50%;width:min(150vw,1800px);max-width:none;height:auto;transform:translate(-50%,-50%) rotate(90deg)}#typicke .caption{grid-column:1/3;z-index:1}
.media-archive{margin:100px 0 0;scroll-margin-top:65px}.media-archive h2{font-size:22px;font-weight:400}.media-archive>p{color:#707070;margin-bottom:35px}#archive-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 25px}.archive-item{text-align:left;padding:0;cursor:zoom-in}.archive-item img{width:100%;height:210px;object-fit:contain;background:#fafafa}.archive-item span{display:block;font-size:12px;margin-top:12px}.archive-link{display:block;margin-bottom:30px}.credits{margin-left:15%;margin-right:0}
@media(max-width:760px){#strip{padding-inline:15px}.panel .caption,#mezi-domy .caption,#stroj-detail .caption{padding-top:0}.panel .image{width:100%}#mezi-domy .image{width:calc(100% + 30px);margin-left:-15px}#mezi-domy .caption{max-width:270px;margin-left:auto}#soubor .image{width:85%;margin-left:auto}#stroj-detail .image{width:80%}#stroj-detail .caption{width:80%;margin-left:auto}#vztahy .image{width:90%}#vyuziti .image,#prizemi .image,#ostrov-podlazi .image,#byty .image{height:75svh}#typicke .image{height:160vw;width:100%}#typicke .image img{width:180vw}#typicke .caption{width:100%}.credits{margin-inline:0}#archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 15px}.archive-item img{height:150px}}
#strip>.panel{width:100%;min-width:0;max-width:none}
/* Podhled decoder preserves final text geometry and accessible copy. */
.caption-decode{position:relative}.caption-final{visibility:hidden}.caption-visual{position:absolute;inset:0;pointer-events:none;overflow:hidden}.caption-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.decode-heading{display:block}

/* TEST6 — retain the quiet scale of TEST4, refine readability. */
body{font-synthesis:none}
.intro h1 span{color:#858585}
.caption-title{font-weight:500;line-height:18px}
.caption p{color:#707070;font-size:13px;line-height:18px;text-wrap:pretty;max-width:48ch}
.panel .caption p{margin-top:5px}
.frame-label,.sequence-panel .frame-label{color:#707070;font-size:11px;line-height:16px;margin-top:9px;min-height:16px}
.credits dd{color:#707070;line-height:1.45}
.credits dt{line-height:1.45}
.media-archive>p{color:#707070}
.archive-item span{font-size:12px;line-height:1.4;color:#555}
@media(max-width:760px){.caption-title{font-size:13px;line-height:18px}.caption p{font-size:13px;line-height:19px}.panel .caption p{margin-top:5px}.credits dl>div{row-gap:4px}}

/* A draggable project timeline, with the original brand silhouette. */
header{height:64px;padding:0 25px;gap:26px;background:rgba(255,255,255,.97)}
#back-start{opacity:1;pointer-events:auto;flex:0 0 auto;min-height:44px;display:flex;align-items:center;font-size:12px}
.project-scrubber{--progress:0;position:relative;flex:1;height:44px;min-width:50px}
.scrubber-track{position:absolute;left:15px;right:15px;height:2px;top:21px;background:#eee}
.scrubber-track span{display:block;width:calc(var(--progress)*100%);height:100%;background:#999}
.scrubber-mark{position:absolute;width:29px;height:29px;object-fit:contain;left:calc(15px + var(--progress)*(100% - 30px));top:7px;transform:translateX(-50%);pointer-events:none}
#project-progress{position:absolute;inset:0;width:100%;height:44px;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.project-scrubber:has(input:focus-visible){outline:1px solid #111;outline-offset:3px}
.project-close{display:flex;align-items:center;gap:14px;min-height:44px;font-size:12px;white-space:nowrap}
.close-icon{width:30px;height:30px;border:1px solid #ddd;border-radius:50%;display:grid;place-items:center;font-size:22px;line-height:1;transition:background .2s,color .2s}
.project-close:hover .close-icon,.project-close:focus-visible .close-icon{background:#111;color:#fff;border-color:#111}
#strip{padding-top:80px}.panel{scroll-margin-top:85px!important}
.statement{min-height:65svh;display:flex;align-items:center;margin:0 8% 140px;scroll-margin-top:85px}
.statement h2{font:700 clamp(44px,6.5vw,100px)/1.02 "neue-haas-grotesk-display",Arial,sans-serif;letter-spacing:-.035em;margin:0;max-width:100%;opacity:0;transform:translateY(24px);transition:opacity .7s,transform .7s}
.statement h2 span{color:#858585}.statement.is-visible h2{opacity:1;transform:none}
#verejnost{justify-content:flex-end;text-align:right}
#vztahy .image{grid-column:1/10}#vztahy .caption{grid-column:10/13;top:24vh}
#otevirani .image{grid-column:4/13;aspect-ratio:1.3}
#rez .image{grid-column:1/13}#rez .caption{grid-column:1/4;grid-row:2;position:static;margin-top:15px}
#podlazi .image{max-height:90svh}#podlazi .image img{max-height:90svh;object-fit:contain}
@media(max-width:760px){header{padding:0 15px;gap:14px;height:60px}.project-close{gap:7px}.project-close span:first-child{font-size:11px}#back-start{font-size:11px}.scrubber-mark{width:25px;height:25px;top:9px}.statement{min-height:50svh;margin:30px 0 70px}.statement h2{font-size:clamp(36px,9.5vw,60px);letter-spacing:-.025em}#strip{padding-top:60px}#vztahy .image{width:100%}#otevirani .image{width:100%;aspect-ratio:1.3}#rez .caption{margin-top:20px}#podlazi .image,#podlazi .image img{max-height:75svh}}
html.scrubbing{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){.statement h2{opacity:1;transform:none;transition:none}.close-icon{transition:none}}

/* Transparent navigation; the start is the left endpoint of the timeline. */
header{background:transparent;gap:30px;pointer-events:none}
header>*{pointer-events:auto}
header .project-close{margin:0!important;gap:8px;flex:0 0 auto}
.close-icon{border:0;border-radius:0;width:24px;height:32px;font-size:26px;font-weight:400}
.project-close:hover .close-icon,.project-close:focus-visible .close-icon{background:transparent;color:var(--accent-ink,var(--accent,#ff4f00))}
.project-close{filter:drop-shadow(0 0 5px white)}
.scrubber-track{background:#d7d7d7;box-shadow:0 0 5px white}.scrubber-track span{background:#444}.scrubber-mark{filter:drop-shadow(0 0 3px white)}
.statement h2{transition-duration:.45s}
@media(min-width:761px){
.panel .caption,#mezi-domy .caption,#soubor .caption,#vztahy .caption,#stroj .caption,#stroj-detail .caption,#ostrov .caption,#den-noc .caption,#vyhled .caption{top:85px;padding-top:0;align-self:start}
#mezi-domy .image{grid-column:1/10}#mezi-domy .caption{grid-column:10/13}
#soubor .image{grid-column:6/13}#soubor .caption{grid-column:2/5}
#vztahy .image{grid-column:1/10}#vztahy .caption{grid-column:10/13}
#podlazi .image{grid-column:4/13}#podlazi .caption{grid-column:1/4}
#stroj .image{grid-column:1/10}#stroj .caption{grid-column:10/13}
#stroj-detail .image{grid-column:6/12}#stroj-detail .caption{grid-column:2/5}
#vyuziti .image{grid-column:1/9}#vyuziti .caption{grid-column:10/13}
#ostrov .image{grid-column:4/13}#ostrov .caption{grid-column:1/4}
#otevirani .image{grid-column:1/10}#otevirani .caption{grid-column:10/13}
#prizemi .image{grid-column:5/12}#prizemi .caption{grid-column:2/5}
#ostrov-podlazi .image{grid-column:2/9}#ostrov-podlazi .caption{grid-column:10/13}
#den-noc .image{grid-column:4/13}#den-noc .caption{grid-column:1/3}
#vyhled .image{grid-column:2/9}#vyhled .caption{grid-column:10/13}
#byty .image{grid-column:5/12}#byty .caption{grid-column:1/4}
}
.media-archive{margin-top:130px;padding-top:35px;border-top:1px solid #ddd}
.media-archive h2{font:500 28px/1.1 "neue-haas-grotesk-display",Arial,sans-serif;margin:0 0 10px}
.media-archive>p{margin:0 0 30px}
.archive-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:35px}
.archive-filters button{padding:9px 13px;color:#707070;border-radius:2px;font-size:12px}
.archive-filters button[aria-pressed="true"]{background:#111;color:white}
.archive-filters button span{margin-left:8px;opacity:.65}
#archive-count{margin-left:auto;font-size:11px;color:#707070}
#archive-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:50px 30px}
.archive-item{min-width:0;display:flex;flex-direction:column;gap:12px}
.archive-item img{height:auto;width:100%;aspect-ratio:4/3;object-fit:contain;background:transparent;transition:opacity .15s}
.archive-item:hover img{opacity:.8}.archive-item span{margin:0;font-size:11px;color:#666;line-height:1.4}
@media(max-width:760px){header{gap:18px}.project-close span:last-child{font-size:11px}.media-archive{margin-top:70px;padding-top:25px}.archive-filters{gap:3px;margin-bottom:25px}.archive-filters button{padding:8px;font-size:11px}#archive-count{width:100%;margin-top:8px}#archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 16px}.archive-item span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.statement h2,.archive-item img{transition:none}}

/* Quiet images retain their original scale, position and surrounding space. */
.panel.image-only .caption{display:none!important}

/* Compact archive previews; full resolution remains in the viewer. */
#archive-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 28px}
.archive-item img{height:150px;aspect-ratio:auto;object-fit:contain}
@media(min-width:1600px){#archive-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){#archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}.archive-item img{height:105px}}

/* Two quiet interior views follow the flexible floor plans. */
#hala-fasada .image{grid-column:1/12}#hala-galerie .image{grid-column:5/13}
@media(max-width:760px){#hala-fasada .image{width:calc(100% + 30px);margin-left:-15px}#hala-galerie .image{width:90%;margin-left:auto}}

/* Optional reading, with a small sign and a comfortable touch target. */
.caption .caption-more{display:block;align-self:flex-start;width:44px;height:44px;margin:24px 0 0;padding:0;border:0;background:transparent;color:#707070;font:400 32px/44px "neue-haas-grotesk-text",Arial,sans-serif;cursor:pointer;text-align:left}
.caption .caption-more:focus-visible{outline:1px solid currentColor;outline-offset:-5px}
.caption .caption-detail{margin-top:14px}
.caption .caption-detail:focus{outline:none}
.caption .caption-more[hidden],.caption .caption-detail[hidden]{display:none}

.caption-copy.caption-decode{display:inline}

.caption .caption-more{transition:color 160ms ease}
@media(hover:hover){.caption .caption-more:hover{color:var(--accent-ink,var(--accent,#ff4f00))}}
.caption .caption-more:focus-visible{color:var(--accent-ink,var(--accent,#ff4f00))}
@media(prefers-reduced-motion:reduce){.caption .caption-more{transition:none}}

/* Optional text on an otherwise image-only panel. */
.panel.image-only.has-detail .caption{display:flex!important}
.panel.has-detail .caption-more{margin-top:0}

/* Captions face their image, with the same 25px gutter on either side. */
@media(min-width:761px){
 #soubor .caption,#stroj-detail .caption{grid-column:3/6}
 #byty .caption{grid-column:2/5}
 #vyuziti .caption,#ostrov-podlazi .caption,#vyhled .caption{grid-column:9/12}
 #den-noc .caption{grid-column:1/4}
 .panel .caption-inner{max-width:none}
 :is(#soubor,#podlazi,#stroj-detail,#ostrov,#prizemi,#den-noc,#byty) .caption{text-align:right;justify-content:flex-end}
 :is(#soubor,#podlazi,#stroj-detail,#ostrov,#prizemi,#den-noc,#byty) .caption-title{justify-content:flex-end}
 :is(#soubor,#podlazi,#stroj-detail,#ostrov,#prizemi,#den-noc,#byty) .caption p{margin-left:auto}
 :is(#soubor,#podlazi,#stroj-detail,#ostrov,#prizemi,#den-noc,#byty) .caption-more{margin-left:auto;text-align:right}
}

/* Keep the scrubber hit area above the linked brand mark. */
#project-progress{z-index:4;touch-action:none;cursor:grab}
#project-progress:active{cursor:grabbing}

/* Pointer dragging needs no keyboard focus frame. */
html.scrubbing header .project-scrubber:has(input:focus-visible),header .project-scrubber:has(input:active){outline:none}

/* The timeline never draws a rectangular focus frame. */
header .project-scrubber,header .project-scrubber:has(input:focus-visible),header .project-scrubber input,header a.scrubber-mark:focus-visible{outline:none!important;box-shadow:none!important}
/* Draw the plus from exact geometry, independent of font line-box offsets. */
.caption .caption-more{position:relative;font-size:0;line-height:1}
.caption-more::before,.caption-more::after{content:"";position:absolute;background:currentColor}
.caption-more::before{width:20px;height:2px;left:0;top:9px}
.caption-more::after{width:2px;height:20px;left:9px;top:0}
@media(min-width:761px){
 .panel .caption-title{margin-top:-3px}
 .panel.has-detail .caption-detail{margin-top:-3px}
 .panel.has-detail .caption-more::before{left:auto;right:0}
 .panel.has-detail .caption-more::after{left:auto;right:9px}
}

/* Reading follows the established caption and statement system. */
#podlazi .frame-label{margin-top:-3px}
.author-section{margin:0 0 150px;padding:70px 0;scroll-margin-top:85px}
.author-reading{margin-left:25%;opacity:0;transform:translateY(24px);transition:opacity .45s,transform .45s}
.author-section.is-visible .author-reading{opacity:1;transform:none}
.author-reading>.author-toggle{position:relative;display:block;width:100px;height:100px;list-style:none;cursor:pointer}
.author-reading>.author-toggle::-webkit-details-marker{display:none}
.author-plus{display:block;font:400 112px/100px "neue-haas-grotesk-display",Arial,sans-serif;text-align:center;transition:color .16s}
.author-reading>.author-toggle>.author-label{position:absolute;left:124px;top:43px;white-space:nowrap;color:#707070;font:400 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;pointer-events:none}
.author-reading>.author-toggle:hover .author-plus,.author-reading>.author-toggle:focus-visible .author-plus,.author-close:hover{color:var(--accent-ink,var(--accent,#ff4f00))}
.author-reading[data-open]>.author-toggle{display:none}
.author-copy{max-width:440px;margin:0 25px 0 0}
.author-copy h2{font:500 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;margin:0 0 5px}
.author-copy p{font:400 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;margin:0 0 1.4em;color:#707070}
.author-close{padding:12px 0;margin-top:10px;font:400 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;color:#707070}
@media(max-width:760px){.author-section{margin-bottom:70px;padding:40px 0}.author-reading{margin-left:8%}.author-copy{margin-right:0}.author-copy p{line-height:19px}}
@media(prefers-reduced-motion:reduce){.author-reading{opacity:1;transform:none;transition:none}.author-plus{transition:none}}

/* Large author invitation uses the statement typeface and generous space. */
.author-section{padding:clamp(130px,18vh,230px) 0;margin-bottom:clamp(150px,18vh,240px)}
.author-reading{margin-left:25%}
.author-reading>.author-toggle{width:clamp(180px,20vw,280px);height:clamp(180px,20vw,280px)}
.author-plus{font-family:"neue-haas-grotesk-display",Arial,sans-serif;font-weight:700;font-size:clamp(240px,30vw,400px);line-height:clamp(180px,20vw,280px)}
.author-reading>.author-toggle>.author-label{left:calc(100% + 60px);top:50%;transform:translateY(-50%)}
#podlazi .frame-label{text-transform:uppercase}
@media(max-width:760px){
 .author-section{padding:110px 0 140px;margin-bottom:90px}
 .author-reading{margin-left:8%}
 .author-reading>.author-toggle{width:180px;height:180px}
 .author-plus{font-size:250px;line-height:180px}
 .author-reading>.author-toggle>.author-label{left:0;top:calc(100% + 45px);transform:none}
}

/* Keep the sign and reading together as one left-aligned composition. */
.author-reading{margin-left:5%;margin-right:3%;--author-sign:clamp(180px,20vw,280px)}
.author-reading>.author-toggle,.author-reading[data-open]>.author-toggle{display:block;width:var(--author-sign);height:var(--author-sign)}
.author-plus{width:100%;height:100%;font-size:100px;line-height:1}
.author-plus svg{display:block;width:100%;height:100%;overflow:visible;fill:currentColor}
.author-plus text{font:700 100px "neue-haas-grotesk-display",Arial,sans-serif}
.author-reading>.author-toggle>.author-label{pointer-events:auto;cursor:pointer}
.author-reading[data-open]{display:grid;grid-template-columns:var(--author-sign) minmax(0,1fr);column-gap:50px;align-items:start}
.author-reading[data-open]>.author-toggle>.author-label{display:none}
.author-copy{max-width:none;margin:0}
.author-copy p:last-of-type{margin-bottom:0}
.author-close{display:block}
@media(max-width:760px){
 .author-reading{margin-left:4%;margin-right:4%;--author-sign:180px}
 .author-reading[data-open]{display:block}
 .author-reading[data-open] .author-copy{margin-top:65px}
 .author-reading>.author-toggle>.author-label{left:0;top:calc(100% + 45px)}
}

@media(min-width:761px) and (max-width:1500px){
 .author-reading[data-open]{display:block}
 .author-reading[data-open] .author-copy{margin-top:65px;max-width:680px}
}

.author-plus{color:#858585}

#stroj .detail-heading[hidden]{display:none}

#otevirani .image{aspect-ratio:1773 / 1343}
#otevirani .image img{width:100%;height:100%;object-fit:contain}
@media(min-width:761px){#otevirani .caption p{margin-top:-3px}}

#ostrov .detail-heading[hidden]{display:none}
#ostrov-detail{white-space:pre-line}

/* OMW archive: white space, statement typography and ordered image rhythm. */
.media-archive{margin-top:150px;padding-top:0;border:0}
.media-archive h2{font:700 clamp(44px,6.5vw,100px)/1.02 "neue-haas-grotesk-display",Arial,sans-serif;letter-spacing:-.035em;margin:0 0 44px}
.archive-filters{gap:14px 30px;margin-bottom:65px}
.archive-filters button{background:none;border-radius:0;padding:8px 0;font:400 13px/1.3 "neue-haas-grotesk-text",Arial,sans-serif;color:#707070;border-bottom:1px solid transparent}
.archive-filters button[aria-pressed="true"]{background:none;color:var(--accent-ink,var(--accent,#ff4f00));border-color:currentColor}
#archive-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:65px 28px;align-items:stretch;grid-auto-flow:row}
.archive-item{grid-column:span 4;min-height:240px;justify-content:flex-end;align-items:flex-start;gap:16px;align-self:stretch}
.archive-item:nth-child(7n+1){grid-column:span 5}
.archive-item:nth-child(7n+2){grid-column:span 3}
.archive-item.archive-wide{grid-column:span 6}
.archive-item img{width:100%;height:220px;aspect-ratio:auto;object-fit:contain;object-position:left bottom;transition:opacity .15s}
.archive-item span{width:100%;text-align:left;margin:0;font:400 12px/1.4 "neue-haas-grotesk-text",Arial,sans-serif;color:#707070}
.archive-item:hover span,.archive-item:focus-visible span,.archive-filters button:hover,.archive-filters button:focus-visible{color:var(--accent-ink,var(--accent,#ff4f00))}
.archive-item:focus-visible{outline:1px solid var(--accent-ink,var(--accent,#ff4f00));outline-offset:8px}
.archive-item[hidden]{display:none}
#drawing-viewer button:hover,#drawing-viewer button:focus-visible,#drawing-viewer button[aria-expanded="true"],.archive-link:hover,.archive-link:focus-visible{color:var(--accent-ink,var(--accent,#ff4f00))}
@media(max-width:760px){
 .media-archive{margin-top:90px}.media-archive h2{margin-bottom:28px}
 .archive-filters{gap:10px 22px;margin-bottom:40px}.archive-filters button{font-size:12px}
 #archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 18px}
 .archive-item,.archive-item:nth-child(7n+1),.archive-item:nth-child(7n+2){grid-column:span 1;min-height:150px}
 .archive-item.archive-wide{grid-column:span 2}.archive-item img{height:135px}.archive-item.archive-wide img{height:160px}
 .archive-item span{font-size:11px}
}

#podklady .archive-filters{gap:14px 30px}
#podklady .archive-filters button[aria-pressed="true"],#podklady .archive-filters button:hover,#podklady .archive-filters button:focus-visible{color:var(--accent-ink,var(--accent,#ff4f00));text-decoration:none}
#podklady .archive-filters button:focus-visible{outline-color:var(--accent-ink,var(--accent,#ff4f00))}

/* Author block follows the same desktop scroll anchor as image captions. */
@media(min-width:761px){
 .author-section{padding-bottom:0;margin-bottom:40px}
 .author-reading{position:sticky;top:85px}
 .author-section::after{content:"";display:block;height:calc(clamp(180px,35vh,360px) + clamp(130px,18vh,230px) + clamp(150px,18vh,240px) - 40px)}
}

/* Wide elevations punctuate the runs of rendered views. */
@media(min-width:761px){
 .panel.elevation-panel{margin-top:70px;margin-bottom:180px}
 .panel.elevation-panel .image{grid-column:2/13;grid-row:1}
 .panel.elevation-panel .caption{grid-column:2/13;grid-row:2;position:static;margin-top:15px;text-align:left}
 #pohled-1 .image,#pohled-1 .caption{grid-column:1/12}
}
.elevation-panel .image img{width:100%;height:auto;max-height:none}

/* OMW final responsive pass: shared optical anchors and uncluttered reading. */
.panel .caption-title{margin-bottom:5px}
.panel .caption-more:first-child{margin-top:0}
.panel .caption-inner:has(>.caption-more:first-child) .caption-more{margin-top:0}
.panel .caption:has(.caption-more:first-child) .caption-detail{margin-top:5px}
.panel .caption-more::before{left:0;right:auto}
.panel .caption-more::after{left:9px;right:auto}
@media(min-width:761px){
 :is(#soubor,#ostrov) .caption-more::before{left:auto;right:0}
 :is(#soubor,#ostrov) .caption-more::after{left:auto;right:9px}
 .panel .image img{object-position:center top}
 .panel .caption-inner>p:first-child{margin-top:-3px}
}
.panel .caption:empty,.panel .caption:has(.caption-inner:empty){display:none}
/* A viewport of white space around the author sign, with no scroll pinning. */
.author-section{--author-sign:clamp(180px,20vw,380px);padding:calc(50svh - var(--author-sign)/2) 0;margin:0;min-height:100svh}
.author-section::after{display:none}
.author-reading{position:static;top:auto;--author-sign:clamp(180px,20vw,380px)}
.author-reading[data-open]{display:grid;grid-template-columns:var(--author-sign) minmax(0,1fr);gap:clamp(30px,3vw,60px)}
.author-reading[data-open] .author-copy{margin:0;max-width:none}
@media(max-width:999px){
 .author-section{--author-sign:180px}
 .author-reading{--author-sign:180px}
 .author-reading[data-open]{display:block}
 .author-reading[data-open] .author-copy{margin-top:45px;max-width:640px}
}
/* Southern elevation: equal breathing room above and below, centered. */
#strip>#pohled-2{display:flex;align-items:center;justify-content:center;min-height:90svh;margin:0;padding:clamp(100px,18svh,240px) 0}
#pohled-2 .image{width:90%;margin:0}
#pohled-1 .caption,#pohled-2 .caption{display:none}
/* Contact and project facts form one closing composition. */
.project-ending{min-height:100svh;display:grid;grid-template-columns:1fr 1fr;gap:8%;padding:100px 5% 90px;align-items:start}
.project-ending .project-invitation{min-height:0;margin:0;padding:0;gap:28px;justify-content:flex-start}
.project-ending .project-invitation h2{font-size:clamp(40px,4.5vw,78px)}
.project-ending .credits{width:100%;max-width:none;margin:0;padding:0;align-self:start}
.project-ending .credits h2{font:700 clamp(26px,2.4vw,42px)/1.05 "neue-haas-grotesk-display",Arial,sans-serif;letter-spacing:-.025em;margin:0 0 24px}
.project-ending .credits dl{display:grid;grid-template-columns:1fr 1fr;gap:18px 25px}
.project-ending .credits dl>div{display:block;border:0;padding:0;font-size:12px;line-height:1.4}
.project-ending .credits dt{color:#707070;margin-bottom:3px}
.project-ending .credits dd{color:#111}
.project-ending .credits>a{display:inline-flex;font-size:13px;margin:0 0 30px;padding:8px 0;gap:20px}
.project-ending .credits>a:last-child{margin:28px 0 0}
.project-ending a:hover,.project-ending a:focus-visible{color:var(--accent-ink,var(--accent,#ff4f00));text-decoration:none}
/* Ordered rows pack without holes; restrained variation stays inside each cell. */
#podklady .archive-filters button{border:0;text-decoration:none!important;box-shadow:none}
#archive-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px}
#archive-grid .archive-item{grid-column:auto;min-height:0;gap:10px;justify-content:flex-end}
#archive-grid .archive-item img{height:clamp(150px,13vw,240px);width:100%;object-position:left bottom}
#archive-grid .archive-item:nth-child(7n+2) img{width:86%}
#archive-grid .archive-item.archive-wide{grid-column:span 2}
#archive-grid .archive-item.archive-wide img{height:clamp(140px,12vw,220px);width:100%}
@media(min-width:1900px){#archive-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1100px){
 #archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #archive-grid .archive-item.archive-wide{grid-column:auto}
 .project-ending{gap:5%;padding-inline:2%}
 .project-ending .credits dl{grid-template-columns:1fr}
}
@media(max-width:760px){
 .caption-title,.caption p,.author-copy p{font-size:12px;line-height:17px}
 .panel .caption{margin-top:16px}
 .panel .caption-title{margin-top:-2px}
 .panel .caption-inner{max-width:40ch}
 .panel:has(.caption-more) .caption-inner{max-width:none}
 .caption .caption-more{min-width:44px;min-height:44px}
 #strip>#pohled-2{min-height:65svh;padding:100px 0;margin-bottom:60px!important}
 #pohled-2 .image{width:100%}
 .project-ending{display:block;padding:70px 0;min-height:100svh}
 .project-ending .project-invitation{margin:0 0 65px}
 .project-ending .credits{margin:0}
 .project-ending .credits dl{gap:18px}
 .project-ending .credits dl>div{font-size:11px}
 #archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 16px}
 #archive-grid .archive-item img{height:125px}
 #archive-grid .archive-item.archive-wide img{height:125px}
 #podklady .archive-filters{gap:8px 20px;margin-bottom:30px}
}
/* Keep disclosure interaction anchored to its own sign, not a later image. */
#strip{overflow-anchor:none}
#strip>#hala-fasada{margin-bottom:0!important}
@media(max-width:760px){#strip>#pohled-2{margin-bottom:0!important}}
@media(max-width:760px){#strip>.panel{gap:0}}
#strip>#pohled-2{min-height:100svh}
@media(max-width:760px){#strip>#pohled-2{min-height:80svh}}
.author-reading{column-gap:clamp(30px,3vw,60px)}

.author-toggle{padding:0;border:0;background:none;text-align:left;color:inherit}
.project-ending .project-invitation h2 span{color:#858585}
header a.scrubber-mark{z-index:5;touch-action:none;user-select:none}
header a.scrubber-mark img{pointer-events:none;-webkit-user-drag:none}
header .project-scrubber a.scrubber-mark{z-index:5;touch-action:none}

/* Give Ostrov's long disclosure a readable column on tablets. */
@media(min-width:761px) and (max-width:1100px){
 #ostrov .caption{grid-column:4/13;grid-row:2;position:static;top:auto;text-align:left;justify-content:flex-start;margin-top:-9px}
 #ostrov .caption-title{justify-content:flex-start}
 #ostrov .caption p{margin-left:0;max-width:none}
 #ostrov .caption-more{margin-left:0;text-align:left}
 #ostrov .caption-more::before{left:0;right:auto}
 #ostrov .caption-more::after{left:9px;right:auto}
}

/* Standalone magistrála between annotation and floor plans. */
@media(min-width:761px){#magistrala .image{grid-column:2/11}}
@media(max-width:760px){#magistrala .image{width:100%}}

/* Mobile composition: a shared 15px inset, with selected full-bleed views. */
@media(max-width:760px){
 #strip>.panel .image{width:100%;margin-inline:auto}
 #strip>.panel .caption{width:100%;max-width:none;margin-inline:0;text-align:left;justify-content:flex-start}
 #strip>.panel .caption-inner{width:100%;max-width:none}
 #strip>.panel .caption p{max-width:none;margin-left:0}
 #strip>.panel .caption-title{justify-content:flex-start}
 #strip>.panel .caption-more{margin-left:0;text-align:left}
 #strip>:is(#mezi-domy,#stroj-detail,#hala-fasada) .image{width:calc(100% + 30px);margin-inline:-15px}
 .author-section .author-reading{margin-inline:0}
 .author-reading>.author-toggle{margin-inline:auto}
 .author-reading[data-open] .author-copy{max-width:none;margin-inline:0}
}

/* 2026-11-02: three-line intro, year on first third, image at row I.
   Independent of the optional guide package, so removing guides preserves layout. */
#strip{--intro-inset:25px;--intro-gap:min(25px,calc((min(100vw,100dvh) - 2 * var(--intro-inset)) / 23));padding-top:0}
#strip>.intro{position:relative;display:block;min-height:0;height:calc(2 * 100dvh / 3 - var(--intro-inset) / 3 + 2 * var(--intro-gap) / 3);padding:0;margin:0}
#strip>.intro h1{position:absolute;top:calc(100dvh / 3 + var(--intro-inset) / 3 - var(--intro-gap) / 6);left:0;width:100%;max-width:none;margin:0;padding:0;transform:translateY(-50%);font-size:min(55px,3.65vw);line-height:1;text-align:center}
#strip>.intro h1 span{display:block;white-space:nowrap}
#strip>.intro h1 .intro-name{color:#000}
@media(max-width:760px){#strip{--intro-inset:15px}}

/* Keep the large view at its current width; right edge = column 11. */
@media(min-width:761px){#magistrala .image{grid-column:3/11}}

/* Floor-plan sequence: full columns 4–12, without viewport-height shrinking. */
@media(min-width:761px){#podlazi .image{grid-column:4/13;max-height:none}#podlazi .image img{max-height:none}}

/* Author sign starts at column 2; expanded reading ends at column 12. */
.author-reading{position:relative;top:0;margin-left:calc((100% + 25px)/12);margin-right:0;transform:none!important}

/* Machine variants: columns 3–6, caption from column 8. */
@media(min-width:761px){#vyuziti .image{grid-column:3/7;height:auto;max-height:none;aspect-ratio:var(--ratio)}#vyuziti .image img{width:100%;height:100%;max-height:none}#vyuziti .caption{grid-column:8/12}}

/* Hall interior across all columns; south elevation within columns 2–11. */
@media(min-width:761px){#hala-fasada .image{grid-column:1/13}#pohled-2 .image{grid-column:2/12}}
@media(min-width:761px){#strip>#pohled-2{display:grid;min-height:0;padding:0;align-items:start}#pohled-2 .image{width:100%;grid-column:2/12}}

/* City statement and public-space image align to the composition grid. */
@media(min-width:761px){
 #verejnost{margin-left:0;margin-right:calc((100% + 25px)/12);min-height:0;align-items:flex-start}
 #verejnost h2{transform:none}
 #ostrov .image{grid-column:1/10}
 #ostrov .caption{grid-column:10/13;grid-row:1;position:sticky;top:85px;margin-top:0;text-align:right;justify-content:flex-end}
 #ostrov .caption-title{justify-content:flex-end}
 #ostrov .caption p{margin-left:auto}
 #ostrov .caption-more{margin-left:auto;text-align:right}
 #ostrov .caption-more::before{left:auto;right:0}
 #ostrov .caption-more::after{left:auto;right:9px}
}

/* Ostrov caption opens from column 10; both floor plans share one row. */
#ostrov .caption{text-align:left;justify-content:flex-start}
#ostrov .caption-title{justify-content:flex-start}
#ostrov .caption p{margin-left:0}
#ostrov .caption-more{margin-left:0;text-align:left}
#ostrov .caption-more::before{left:0;right:auto}
#ostrov .caption-more::after{left:9px;right:auto}
.plan-pair{margin-bottom:150px;scroll-margin-top:85px}
@media(min-width:761px){
 .plan-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;align-items:start}
 #strip .plan-pair>.panel{display:flex;flex-direction:column;width:100%;min-width:0;margin:0!important;gap:25px}
 #strip .plan-pair .image{width:100%;height:auto;aspect-ratio:1697/2400}
 #strip .plan-pair .image img{width:100%;height:100%;object-fit:contain}
 #strip .plan-pair .caption{position:static;width:100%;margin:0;text-align:left}
}

/* Paired Ostrov plans occupy columns 2–11 with the shared 25px gutter. */
@media(min-width:761px){.plan-pair{margin-inline:calc((100% + 25px)/12);gap:25px}}

/* Four-column plans separated by two empty columns. */
@media(min-width:761px){.plan-pair{grid-template-columns:repeat(10,minmax(0,1fr))}#strip .plan-pair>#prizemi{grid-column:1/5}#strip .plan-pair>#ostrov-podlazi{grid-column:7/11}}

/* North elevation and typical floor alignment. */
@media(min-width:761px){#pohled-1 .image{grid-column:2/12}#typicke .image{grid-column:3/11}}
/* Keep the approved laptop crop proportional to its eight-column frame at every desktop width. */
@media(min-width:761px){#typicke .image{height:auto;aspect-ratio:487/1080}#typicke .image img{width:221.765914%;height:auto;max-width:none}}

/* Apartment drawing keeps its painted size; white sheet begins at column 2. */
@media(min-width:761px){#byty .image{grid-column:2/9;width:min(100%,60.1018svh);justify-self:start}#byty .caption{grid-column:9/13;text-align:left}}

/* Closing invitation and project information share row K. */
@media(min-width:761px){
 .project-ending{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:25px;padding:0 0 90px}
 .project-ending .project-invitation{grid-column:2/7;grid-row:1}
 .project-ending .credits{grid-column:8/13;grid-row:1}
}

/* Explicit independent columns for project metadata. */
.project-ending .project-facts{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.project-ending .project-facts dl{display:flex;flex-direction:column;gap:18px;margin:0}
@media(max-width:760px){.project-ending .project-facts{grid-template-columns:1fr;gap:18px}}

/* Final OMW review: exact column anchors and mirrored Ostrov scheme. */
@media(min-width:1025px){
 .author-reading[data-open]{grid-template-columns:calc((100% + 25px) / 11 * 2 - 60px) minmax(0,1fr);column-gap:60px}
 .author-plus svg{overflow:visible}
 #otevirani .image{grid-column:4/13}
 #otevirani .caption{grid-column:1/4;text-align:right}
 #otevirani .caption p{margin-left:auto;text-align:right}
}
.project-ending .project-invitation>a,.project-ending .credits>a[href="/projekty/"]{color:var(--accent-ink,var(--accent,#ff4f00))}
@media(min-width:1025px){
 .author-reading{margin-left:calc((100vw - 25px) / 12)}
 .author-reading>.author-toggle>.author-label{left:calc((100vw - 25px) / 6)}
}

/* Match the statement reveal for the final invitation, after entering the viewport. */
.project-invitation h2{opacity:0;transform:translateY(24px);transition:opacity .95s ease,transform .95s ease}
.project-invitation.is-visible h2{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.project-invitation h2{opacity:1;transform:none;transition:none}}

/* Smaller desktop: same columns, content-led vertical rhythm from the 2560px master. */
@media(min-width:1025px) and (max-width:2559px){
 #strip>.author-section{padding:0;min-height:0}
 .author-reading{min-height:var(--author-reserved,0px)}
 .author-reading[data-open]{grid-template-columns:calc((100vw - 25px)/6 - 25px) minmax(0,1fr);column-gap:25px}
 #strip>.statement{min-height:0;padding-block:0}
 #strip>.statement h2{font-size:clamp(44px,3.90625vw,100px)}
 #strip>#pohled-2{padding:0;min-height:0}
 #strip>.project-ending{min-height:0;padding:0;align-items:start}
 .project-ending .project-invitation,.project-ending .credits{min-height:0;padding-block:0}
 .project-ending .project-invitation h2{font-size:clamp(36px,3.44vw,88px)}
 .project-ending .credits h2{font-size:clamp(26px,1.64vw,42px)}
 #strip>.media-archive{padding-top:0;margin-top:0}
 .media-archive h2{font-size:calc(100px * (100vw - 50px)/2510px);line-height:1.02}
 #byty .image{width:calc(865.461px * (100vw - 50px)/2510px)}
 .panel .caption{min-width:0;overflow-wrap:break-word}
 .project-facts dd{overflow-wrap:break-word}
}

/* OMW phone inset; desktop and tablet retain 25px. */
@media(max-width:760px){
 html body.omw-project #strip#strip{padding-left:16px;padding-right:16px}
 body.omw-project .project-scrubber{left:16px!important;right:16px!important}
}

/* Phone photo captions: 7% smaller, with the established heading hierarchy intact. */
@media(max-width:760px){
 html body.omw-project #strip#strip .panel[id] .caption-title{font-size:13.02px;line-height:17.67px}
 html body.omw-project #strip#strip .panel[id] .caption p{font-size:13.02px}
 html body.omw-project #strip#strip #archive-grid .archive-item span{font-size:11.16px}
}

@media(max-width:760px){
 html body.omw-project #strip#strip #otevirani.panel .image{width:100vw!important;max-width:none!important;margin-left:-16px!important;margin-right:-16px!important}
}

/* /project-invitation.css */
.project-invitation{margin:130px 8% 70px;padding:70px 0;min-height:45svh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:34px;scroll-margin-top:85px}.project-invitation h2{font:700 clamp(40px,5.8vw,88px)/1.04 "neue-haas-grotesk-display",Arial,sans-serif;letter-spacing:-.035em;margin:0}.project-invitation a{font:400 14px/1.4 "neue-haas-grotesk-text",Arial,sans-serif;display:inline-flex;gap:40px;padding:12px 0}.project-invitation a:hover{color:var(--accent-ink,var(--accent,#ff4f00))}.project-invitation a span{transition:transform .2s}.project-invitation a:hover span{transform:translate(4px,-4px)}@media(max-width:760px){.project-invitation{margin:70px 0 35px;padding:40px 0;min-height:0;gap:25px}.project-invitation h2{font-size:clamp(32px,8vw,55px)}.project-invitation a{font-size:13px}}@media(prefers-reduced-motion:reduce){.project-invitation a span{transition:none}}

/* /project-navigation.css */
/* Quiet shared project navigation. Visible affordances, no luminous halo. */
header .project-close{color:#777;font-size:11px;font-weight:400;filter:none;text-shadow:none;gap:6px;transition:color .18s ease}
header .project-close .close-icon{width:18px;height:32px;font-size:19px;font-weight:400;color:inherit;background:transparent;filter:none}
header .project-close:hover,header .project-close:focus-visible{color:#333}
header .project-close:hover .close-icon,header .project-close:focus-visible .close-icon{color:inherit;background:transparent}
header .scrubber-track{height:1px;top:21.5px;background:#ccc;box-shadow:none;opacity:.7}
header .scrubber-track span{background:#858585}
header .scrubber-mark{width:21px;height:21px;top:11.5px;filter:brightness(0);opacity:1;transition:filter .18s ease,opacity .18s ease}
header .project-scrubber:hover .scrubber-mark,header .project-scrubber:focus-within .scrubber-mark{filter:brightness(0);opacity:1}
header .project-scrubber:hover .scrubber-track,header .project-scrubber:focus-within .scrubber-track{opacity:1}
header .project-scrubber:has(input:focus-visible){outline:1px solid #888;outline-offset:1px}
@media(max-width:760px){header .scrubber-mark{width:19px;height:19px;top:12.5px}header .project-close span:last-child{font-size:10px}}
@media(prefers-reduced-motion:reduce){header .project-close,header .scrubber-mark{transition:none}}

/* The moving ink mark is the only project exit; the rail stays draggable. */
header a.scrubber-mark{display:block;pointer-events:auto;z-index:3;cursor:pointer}
header a.scrubber-mark img{display:block;width:100%;height:100%;object-fit:contain}
header a.scrubber-mark::before{content:"";position:absolute;inset:-12px}
header a.scrubber-mark:focus-visible{outline:1px solid #777;outline-offset:5px;border-radius:50%}

@media(max-width:760px), (pointer:coarse){
 .archive-filters button{min-height:44px}
 .credits>a{min-height:44px;display:inline-flex;align-items:center}
}

/* Archive selection follows the quiet text navigation. */
.media-archive .archive-filters{gap:8px 22px}
.media-archive .archive-filters button{background:transparent;color:#707070;border-radius:0;padding:8px 0;text-underline-offset:5px;text-decoration-thickness:1px}
.media-archive .archive-filters button[aria-pressed="true"]{background:transparent;color:#111;text-decoration:underline}
.media-archive .archive-filters button:hover{color:#111}
.media-archive .archive-filters button:focus-visible{outline:1px solid #777;outline-offset:3px}

/* /accessibility.css */
/* Keyboard-only route to content; absent from the visual composition at rest. */
.site-skip{position:fixed;left:16px;top:16px;z-index:2147483646;clip-path:inset(50%);opacity:0;pointer-events:none;padding:12px 18px;min-height:44px;box-sizing:border-box;background:#fff;color:#111;font:inherit;font-size:16px;line-height:1.25;text-decoration:underline;outline:2px solid currentColor;outline-offset:2px}
.site-skip:focus-visible{clip-path:none;opacity:1;pointer-events:auto}

/* Use a neutral double-contrast indicator even when a visitor selects a pale accent. */
header .project-scrubber:has(input:focus-visible),header a.scrubber-mark:focus-visible{outline:2px solid #111!important;outline-offset:4px!important;box-shadow:0 0 0 2px #fff!important}
#view:focus-visible,#light-view canvas:focus-visible{outline:2px solid #777;outline-offset:-4px}
#loading[role=button]:focus-visible{outline:2px solid #111;outline-offset:5px}

/* /project-layout/entrance.css */
/* Shared entrance; no effect on title/grid geometry. */
.intro h1>.intro-reveal{display:block;color:inherit!important;white-space:normal!important;animation:project-enter .95s cubic-bezier(.2,.65,.25,1) both}
.statement h2,.author-reading{transition-duration:.95s!important;transition-timing-function:cubic-bezier(.2,.65,.25,1)!important}
@keyframes project-enter{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.intro-reveal{animation:none!important}.statement h2,.author-reading{transition:none!important}}

#podlazi .frame-label{display:block!important}

/* /project-layout/mobile.css */
/* Phone/tablet presentation. Desktop composition remains defined by its own files. */
@media(max-width:1024px){
 html body{overflow-x:hidden;background-color:#fff}
 html body #strip#strip{box-sizing:border-box;display:block;width:100%;height:auto;min-height:0;margin:0;padding:0 25px 64px;overflow:visible;--mobile-space:56px}
 html body #strip#strip>.intro{position:relative;display:flex;align-items:center;justify-content:center;height:62svh;min-height:300px;max-height:560px;margin:0;padding:60px 0}
 html body #strip#strip>.intro h1{position:static;transform:none;width:100%;max-width:none;padding:0;margin:0;text-align:center;font-size:clamp(28px,7.2vw,46px);line-height:1.04;overflow-wrap:normal}
 html body #strip#strip>.intro h1 span{white-space:normal;margin:0}
 html body #strip#strip .panel[id]{box-sizing:border-box;display:flex!important;flex-direction:column;align-items:stretch;gap:0!important;width:100%!important;min-width:0;max-width:none!important;min-height:0!important;height:auto!important;padding:0!important;margin:0 0 var(--mobile-space)!important;transform:none!important}
 html body #strip#strip .panel[id] .image{box-sizing:border-box;display:block!important;position:relative;grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;flex:none;width:100%!important;min-width:0;max-width:none!important;height:auto!important;min-height:0;max-height:none!important;aspect-ratio:auto;margin:0!important;padding:0;transform:none;overflow:hidden}
 html body #strip#strip .panel[id] .image img:not(.sequence-next){position:static;display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0!important;transform:none!important;object-fit:contain;object-position:center}
 html body #strip#strip .panel[id].sequence-panel .image{aspect-ratio:var(--ratio)}
 html body #strip#strip .panel[id].sequence-panel .image img:not(.sequence-next){height:100%!important}
 html body #strip#strip .panel[id] .image>svg{width:100%;height:auto}
 html body #strip#strip .panel[id] .caption{position:static!important;grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;display:block;width:100%!important;max-width:none!important;height:auto!important;padding:0!important;margin:16px 0 0!important;transform:none!important;border:0;text-align:left!important}
 html body #strip#strip .panel[id] .caption-inner{position:static!important;transform:none!important;width:100%!important;max-width:none!important;padding:0;margin:0}
 html body #strip#strip .panel[id] .caption-title{justify-content:flex-start!important;margin:0 0 6px;font:500 14px/19px "neue-haas-grotesk-text",Arial,sans-serif}
 html body #strip#strip .panel[id] .caption p{max-width:none;margin-left:0!important;font-size:14px;line-height:1.45;text-align:left!important}
 html body #strip#strip .panel[id].image-only .caption{display:none!important}
 html body #strip#strip .panel[id] .caption:empty{display:none!important}
 html body #strip#strip .caption-more{margin-left:0;margin-right:auto;min-width:44px;min-height:44px}
 html body #strip#strip :is(.plan-pair,.entry-pair,.bath-pair,.light-pair){display:flex!important;flex-direction:column;gap:0!important;width:100%!important;min-height:0!important;padding:0!important;margin:0!important}
 html body #strip#strip .entry-pair #vstup{order:0}html body #strip#strip .entry-pair #plan-wardrobe{order:1}
 html body #strip#strip .panel[id][data-mobile-small]{width:68%!important;align-self:flex-start!important;margin-left:0!important;margin-right:auto!important}
 html body #strip#strip .panel[id][data-mobile-small="right"]{align-self:flex-end!important;margin-left:auto!important;margin-right:0!important}
 html body #strip#strip>.statement{display:block;min-height:0;height:auto;padding:24px 0;margin:24px 0 64px!important;width:100%;max-width:none}
 html body #strip#strip>.statement h2{font-size:clamp(36px,9vw,64px);line-height:1.02;margin:0;max-width:100%}
 html body #strip#strip>.author-section{display:block;min-height:0;height:auto;width:100%;padding:0;margin:24px 0 64px!important}
 html body #strip#strip .author-reading{position:static;top:auto!important;display:block!important;width:100%;margin:0!important;--author-sign:140px}
 html body #strip#strip .author-copy{width:100%;max-width:none;margin-top:28px}
 html body #strip#strip>.bts-teaser{width:100%;min-height:0;padding:0;margin:16px 0 72px!important}
 html body #strip#strip>.bts-teaser>a{display:flex;flex-direction:column;gap:24px;width:100%}
 html body #strip#strip>.bts-teaser img{width:100%;height:auto;max-height:none;margin:0}
 html body #strip#strip>.bts-teaser h2{font-size:clamp(40px,10vw,64px);line-height:1}
 html body #strip#strip>.project-ending{display:flex;flex-direction:column;align-items:stretch;gap:56px;width:100%;min-height:0;height:auto;margin:32px 0 72px!important;padding:0}
 html body #strip#strip .project-invitation,html body #strip#strip .credits{width:100%;max-width:none;min-height:0;height:auto;margin:0;padding:0;align-self:stretch}
 html body #strip#strip .project-invitation h2{font-size:clamp(36px,9vw,64px);line-height:1.02}
 html body #strip#strip .credits h2{font-size:30px;line-height:1.1}
 html body #strip#strip .project-facts{grid-template-columns:1fr;gap:24px}
 html body #strip#strip>.media-archive{width:100%;min-height:0;margin:0!important;padding:0;transform:none!important}
 html body #strip#strip>.media-archive h2{font-size:clamp(36px,9vw,64px);line-height:1.05;margin:0 0 32px}
 html body #strip#strip #archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px;margin-top:0!important;align-items:start}
 html body #strip#strip #archive-grid .archive-item:nth-child(n){grid-column:auto;width:100%;padding:0;justify-self:stretch;justify-content:flex-start;align-items:stretch}
 html body #strip#strip #archive-grid .archive-item:nth-child(n) img{width:100%;max-width:100%;height:140px;object-fit:contain;object-position:left bottom}
 html body #strip#strip #archive-grid .archive-item span{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
 html body #strip#strip #typicke .image{aspect-ratio:487/1080!important;overflow:hidden}
 html body #strip#strip #typicke .image img{position:absolute!important;left:50%;top:50%;width:221.765914%!important;max-width:none!important;height:auto!important;transform:translate(-50%,-50%) rotate(90deg)!important}
 .project-scrubber{left:25px!important;right:25px!important;width:auto!important}
}

/* /final-ui.css */
/* Text arrows: same silhouette as the contact email, optical cap-height. */
html body .text-arrow,html body .contact-arrow{display:inline-block;flex:none;width:var(--arrow-height,.72em)!important;height:var(--arrow-height,.72em)!important;font-size:inherit!important;line-height:1;margin:0 0 0 .22em;vertical-align:baseline;background:currentColor;color:var(--accent-ink,var(--accent,#ff4f00));clip-path:polygon(0 88%,74% 14%,12% 14%,12% 0,100% 0,100% 88%,86% 88%,86% 26%,12% 100%);transform:rotate(var(--arrow-rotation,0deg))}
html body .text-arrow[data-light],html body .contact-arrow[data-light]{clip-path:polygon(0 94%,87% 7%,12% 7%,12% 0,100% 0,100% 88%,93% 88%,93% 13%,6% 100%)}
html body .arrow-host{align-items:baseline}
html body .social{align-items:center}.social .contact-arrow{--arrow-height:1em!important}
#uvod h1 .podhled-intro-reveal{display:block;color:inherit;animation:final-intro .95s cubic-bezier(.2,.65,.25,1) both}
#uvod h1 .podhled-intro-reveal>span{display:block;color:#858585;margin:0}
@keyframes final-intro{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){#uvod h1 .podhled-intro-reveal{animation:none}}
#uvod.project-intro h1>.podhled-intro-reveal{color:#000!important;margin:0!important}
@media(max-width:760px){#uvod.project-intro h1{font-size:clamp(28px,7.2vw,46px);line-height:1.04}}
.text-arrow,.contact-arrow{position:relative;top:var(--arrow-drop,0px)}

/* /archive-mosaic.css */
.media-archive #archive-grid{display:none!important;margin:0!important;height:0!important}
.archive-open{font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;border:0;background:none;padding:0;text-align:left;cursor:pointer}
.archive-open:focus-visible{outline:2px solid currentColor;outline-offset:8px}
#archive-gallery{position:fixed;inset:0;margin:0;padding:65px 25px 25px;width:100%;height:100dvh;max-width:none;max-height:none;border:0;background:#fff;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
#archive-gallery::backdrop{background:white}.archive-close{position:fixed;top:12px;right:16px;z-index:2;width:44px;height:44px;border:0;background:transparent;color:#111;font:300 36px/1 Arial;cursor:pointer}
#mosaic-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px;align-items:center;grid-auto-flow:row dense}
#mosaic-grid .archive-item{display:flex;justify-content:center;align-items:center;width:100%;height:clamp(140px,18svh,260px);border:0;padding:0;background:none;cursor:zoom-in}
#mosaic-grid .archive-item span{display:none}#mosaic-grid .archive-item img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;max-width:100%;max-height:100%;margin:0}
#mosaic-grid .archive-item:nth-child(7n+1){grid-column:span 2}#mosaic-grid .archive-item:nth-child(5n+3) img{width:80%;height:80%}
@media(max-width:1440px){#mosaic-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1024px){#mosaic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){#archive-gallery{padding:64px 16px 24px}#mosaic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#mosaic-grid .archive-item{height:180px}#mosaic-grid .archive-item:nth-child(7n+1){height:240px}}
#mosaic-grid .archive-item:nth-child(n){grid-column:auto;min-height:0;align-self:center;min-width:0;gap:0}
#mosaic-grid .archive-item:nth-child(7n+1){grid-column:span 2}

/* The modal owns its spacing; never inherit the former page archive offset. */
#mosaic-grid{margin:0!important}
html body.has-archive-mosaic #strip{padding-bottom:32px!important}
html body.has-archive-mosaic #strip>.project-ending{height:auto!important;min-height:0!important}

/* /project-ending.css */
/* Approved closing composition, shared by current project presentations. */
html body.has-project-ending.has-archive-mosaic #strip{padding-bottom:0!important}
.has-project-ending #strip>.ending-scene{
 box-sizing:border-box;min-height:100svh;display:flex;flex-direction:column;
 justify-content:center;gap:clamp(56px,8svh,116px);padding:clamp(64px,10svh,144px) 0;
 margin:clamp(80px,12svh,172px) 0 0;background:#fff;
}
.has-project-ending .ending-scene>.project-ending{
 display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:25px;
 width:100%;max-width:none;height:auto;min-height:0;margin:0!important;padding:0;align-items:start;
}
.has-project-ending .ending-scene .project-invitation{grid-column:2/7;grid-row:1}
.has-project-ending .ending-scene .credits{grid-column:8/13;grid-row:1}
.has-project-ending .ending-scene>.media-archive{
 box-sizing:border-box;width:auto;min-height:0;padding:0;border:0;
 margin:0 0 0 calc((100% + 25px)/12)!important;transform:none!important;
}
.has-project-ending .ending-scene>.media-archive h2{margin:0;line-height:1.02}
.has-project-ending.ending-in-view>header{visibility:hidden;pointer-events:none}
@media(max-width:1024px){
 .has-project-ending #strip>.ending-scene{justify-content:flex-start;padding:64px 0 40px;gap:56px;margin-top:56px}
 .has-project-ending .ending-scene>.project-ending{display:flex;flex-direction:column;gap:56px}
 .has-project-ending .ending-scene>.media-archive{margin:0!important}
 .has-project-ending .ending-scene>.media-archive h2{font-size:clamp(36px,9vw,64px);line-height:1.05}
}
/* Legacy horizontal-panel flex bases must not constrain the stacked ending. */
.has-project-ending .ending-scene .credits,.has-project-ending .ending-scene .project-invitation,
.has-project-ending .ending-scene>.project-ending,.has-project-ending .ending-scene>.media-archive{flex:none}
/* Keep both left-hand actions together, alongside the project facts. */
@media(min-width:1025px){
 .has-project-ending #strip>.ending-scene{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:auto auto;column-gap:25px;row-gap:clamp(64px,7svh,100px);
  align-content:start;align-items:start;padding-top:clamp(120px,23.5svh,338px);
 }
 .has-project-ending .ending-scene>.project-ending{display:contents}
 .has-project-ending .ending-scene .project-invitation{grid-column:2/7;grid-row:1}
 .has-project-ending .ending-scene .credits{grid-column:8/13;grid-row:1/3}
 .has-project-ending .ending-scene>.media-archive{grid-column:2/7;grid-row:2;margin:0!important}
 .has-project-ending .ending-scene>.media-archive h2{font-size:clamp(36px,3.44vw,88px)}
}
@media(min-width:2560px){
 .has-project-ending .ending-scene>.media-archive h2{font-size:78px}
}
/* Center the complete closing composition within the desktop viewport. */
@media(min-width:1025px){
 .has-project-ending #strip>.ending-scene{align-content:center;padding-block:clamp(64px,10svh,144px)}
 .has-project-ending .ending-scene .credits{grid-column:8/12}
}
/* Explicit shared type and spacing prevent legacy project rules changing the closing screen. */
@media(min-width:1025px){
 html body.has-project-ending .ending-scene .project-invitation{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  width:100%;min-height:0;height:auto;margin:0;padding:0!important;gap:28px;
 }
 html body.has-project-ending .ending-scene .project-invitation h2{
  font:700 clamp(36px,3.44vw,88px)/1.04 "neue-haas-grotesk-display",Arial,sans-serif;
  letter-spacing:-.035em;margin:0;
 }
 html body.has-project-ending .ending-scene .project-invitation h2 span{color:#858585}
 html body.has-project-ending .ending-scene .project-invitation>a{
  display:inline-flex;align-items:center;gap:40px;margin:0;padding:12px 0;
  font:400 14px/1.4 "neue-haas-grotesk-text",Arial,sans-serif;
  color:var(--accent-ink,var(--accent,#ff4f00));text-decoration:none;
 }
 html body.has-project-ending .ending-scene .credits{
  width:100%;max-width:none;min-height:0;height:auto;margin:0;padding:0!important;
  font:400 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;
 }
 html body.has-project-ending .ending-scene .credits h2{
  font:700 clamp(26px,1.64vw,42px)/1.05 "neue-haas-grotesk-display",Arial,sans-serif;
  letter-spacing:-.025em;margin:0 0 24px;
 }
 html body.has-project-ending .ending-scene .credits p{color:#707070;max-width:48ch;margin:0 0 30px}
 html body.has-project-ending .ending-scene .credits>a{
  display:inline-flex;align-items:center;min-height:0;gap:20px;
  font:400 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;
  margin:0 0 30px;padding:8px 0;text-decoration:none;
 }
 html body.has-project-ending .ending-scene .credits>a:last-child{margin:28px 0 0}
 html body.has-project-ending .ending-scene .credits>a[href="/projekty/"]{color:var(--accent-ink,var(--accent,#ff4f00))}
 html body.has-project-ending .ending-scene .project-facts{display:grid;grid-template-columns:1fr 1fr;gap:25px}
 html body.has-project-ending .ending-scene .project-facts dl{display:flex;flex-direction:column;gap:18px;margin:0;padding:0}
 html body.has-project-ending .ending-scene .project-facts dl>div{display:block;border:0;padding:0;font:400 12px/1.4 "neue-haas-grotesk-text",Arial,sans-serif}
 html body.has-project-ending .ending-scene .project-facts dt{color:#707070;margin:0 0 3px}
 html body.has-project-ending .ending-scene .project-facts dd{color:#111;margin:0}
 html body.has-project-ending .ending-scene>.media-archive h2{
  font:700 clamp(36px,3.44vw,88px)/1.02 "neue-haas-grotesk-display",Arial,sans-serif;letter-spacing:-.035em;
 }
 html body.ending-panel-mode .ending-scene{
  box-sizing:border-box;width:calc(100% - 50px);max-width:none;min-height:100svh;margin:0 25px;
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto;
  gap:25px;align-items:start;align-content:center;padding:clamp(64px,10svh,144px) 0;
 }
 html body.ending-panel-mode .ending-scene .credits{grid-row:1}
 html body.ending-panel-mode .ending-scene .project-invitation{grid-row:1}
 html body.ending-panel-mode .ending-scene .return-model{margin:24px 0 0;padding:8px 0;font:400 13px/18px "neue-haas-grotesk-text",Arial,sans-serif;color:#707070}
 html body.ending-panel-mode[data-phase="credits"]>header{visibility:hidden;pointer-events:none}
}
@media(min-width:2560px){
 html body.has-project-ending .ending-scene .project-invitation h2,
 html body.has-project-ending .ending-scene>.media-archive h2{font-size:78px}
}
/* Mobile reading order: facts, invitation, complete archive. */
@media(max-width:760px){
 .has-project-ending:not(.bts) .ending-scene .credits{order:0}
 .has-project-ending:not(.bts) .ending-scene .project-invitation{order:1}
 .has-project-ending.bts #strip>.ending-scene{box-sizing:border-box;min-height:100svh;justify-content:center;padding:112px 0 48px;gap:clamp(56px,12svh,100px)}
 .has-project-ending.bts .ending-scene>.project-ending{gap:20px}
 .has-project-ending.bts .ending-scene .project-invitation{padding:0!important;min-height:0;margin:0}
 .has-project-ending.bts .ending-scene .credits{padding:0!important;margin:0;min-height:0}
 .has-project-ending.bts .ending-scene .credits>a{margin:0;padding:10px 0;font-size:13px}
 .has-project-ending.bts .ending-scene .project-invitation h2{font-size:clamp(36px,9vw,54px);margin:0 0 24px}
 .has-project-ending.bts .ending-scene .project-invitation>a{margin:0;min-height:44px}
 .has-project-ending .door-pair #pokoj{width:100%!important;margin-left:0!important;margin-right:0!important}
 .has-project-ending .door-pair #pokoj .image{width:100%!important}
}

@media(min-width:1025px) and (max-width:1920px){
 .apartment-three #strip>.ending-scene{margin-top:6svh;padding-top:12svh}
}

/* Keep the two closing actions on the same lower edge on notebook screens. */
@media(min-width:1025px) and (max-width:1920px){
 html body.has-project-ending .ending-scene>.media-archive{align-self:end;padding-bottom:8px}
}
/* The prototype archive belongs alongside the final credits, not below them. */
@media(min-width:1025px){
 html body.ending-panel-mode .ending-scene .credits{grid-row:1/3}
 html body.ending-panel-mode .project-credits .prototype-all-mobile{grid-row:2;align-self:end;margin-top:32px;margin-bottom:8px}
}
