/* Phase 12A — Projects: "exhibition walk". One dominant photograph per moment; type set into the image.
   Same language as homepage/Contact: full-bleed documentary photography, floor ground shadow, sans editorial type.
   Interaction owners unchanged: projects-v2.js (Focus Mode, Craft sequence), projects-complete.js (Archive rail, reveals). */
:root{--surface:#171e1a;--deep:#0d110f;--text:#f3ede0;--muted:#bcc4bb;--line:rgba(243,237,224,.24);--gutter:clamp(20px,5vw,72px);--ease:cubic-bezier(.2,.8,.2,1);--shade:linear-gradient(rgba(23,30,26,0),rgba(23,30,26,.5) 45%,rgba(23,30,26,.88))}
*{box-sizing:border-box}html{scroll-behavior:auto}
body{margin:0;background:var(--surface);color:var(--text);font:16px/1.6 "Segoe UI",Arial,sans-serif}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.skip-link{position:absolute;left:16px;top:-90px;z-index:20;background:var(--text);color:var(--surface);padding:12px}.skip-link:focus{top:12px}
figure{margin:0}
.photograph,.photo-frame{position:relative}
.photo-frame{overflow:hidden;height:100%;background:var(--deep)}
.photo-frame img{width:100%;height:100%;object-fit:cover}
h1,h2{font-family:"Segoe UI",Arial,sans-serif;font-weight:600;letter-spacing:-.04em;margin:0;text-wrap:balance}

/* Focus triggers: the photograph is the control. One quiet cue, no badges. */
.photo-trigger{all:unset;display:block;position:relative;width:100%;height:100%;cursor:zoom-in}
.photo-trigger::after{content:"View";position:absolute;right:20px;bottom:18px;z-index:2;padding-left:26px;font:600 12px/1 "Segoe UI",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--text);text-shadow:0 1px 3px rgba(0,0,0,.7);opacity:.72;background:linear-gradient(currentColor,currentColor) 0 50%/18px 1px no-repeat;transition:opacity .3s,background-size .4s var(--ease),padding .4s var(--ease)}
.photo-trigger img{transition:transform 1.2s var(--ease)}
.photo-trigger:focus-visible{outline:2px solid var(--text);outline-offset:-6px}
@media(hover:hover) and (pointer:fine){
 .photo-trigger:hover::after{opacity:1;padding-left:38px;background-size:30px 1px}
 .photo-trigger:hover img{transform:scale(1.015)}
}

/* Header floats on the first photograph, like the journey and Contact. */
.site-header{position:absolute;z-index:5;top:0;left:0;right:0;height:76px;padding:0 var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--text);text-shadow:0 1px 3px rgba(0,0,0,.55)}
.site-mark img{width:118px;height:28px;object-fit:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}

/* 1. Hero */
.projects-hero{position:relative;height:100vh;height:100svh;min-height:620px;max-height:1040px;overflow:hidden;background:var(--deep)}
.hero-photo{position:absolute;inset:0}
.hero-photo img{object-position:50% 62%}
.projects-hero::before{content:"";position:absolute;inset:0 0 auto;z-index:1;height:150px;background:linear-gradient(rgba(13,17,15,.5),rgba(13,17,15,0))}
.projects-hero::after{content:"";position:absolute;inset:auto 0 0;z-index:1;height:62%;background:linear-gradient(rgba(23,30,26,0),rgba(23,30,26,.5) 42%,rgba(23,30,26,.9) 88%,var(--surface))}
.hero-copy{position:absolute;z-index:2;left:var(--gutter);right:var(--gutter);bottom:clamp(72px,12vh,120px);text-shadow:0 1px 2px rgba(0,0,0,.35),0 2px 18px rgba(0,0,0,.3)}
.hero-copy h1{max-width:9ch;font-size:clamp(64px,7.4vw,116px);line-height:.95}
.hero-copy .hero-proof{margin:22px 0 0;font-size:12px;font-weight:600;letter-spacing:.18em;opacity:.9}
.hero-foot{position:absolute;z-index:2;right:var(--gutter);bottom:clamp(72px,12vh,120px)}
.hero-foot a{position:relative;display:inline-flex;align-items:center;gap:16px;min-height:48px;font-size:15px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.hero-foot a::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:1px;background:currentColor;opacity:.45;transition:opacity .3s}
.hero-foot a span{display:inline-block;font-size:20px;transition:transform .35s var(--ease)}
@media(hover:hover) and (pointer:fine){.hero-foot a:hover::after{opacity:1}.hero-foot a:hover span{transform:translate(3px,3px)}}

/* 2. Selected Spaces — two full-viewport rooms; the second slides over the first (native sticky, no hijacking). */
.selected-spaces{position:relative}
.selected-spaces h2{position:absolute;z-index:3;left:var(--gutter);top:calc(100svh - 150px);font-size:clamp(48px,5.4vw,84px);line-height:1;text-shadow:0 1px 2px rgba(0,0,0,.35),0 2px 18px rgba(0,0,0,.35);pointer-events:none}
.spaces-layout .photograph{position:sticky;top:0;height:100vh;height:100svh}
.space-1 .photo-frame::after{content:"";position:absolute;inset:auto 0 0;height:42%;background:var(--shade);pointer-events:none}
.space-1 img{object-position:50% 55%}
.space-2{box-shadow:0 -28px 60px rgba(0,0,0,.35)}

/* 3. Material in Place — one wall, one detail; title in the detail's negative space. */
.material-place{position:relative;padding:16vh 0 16vh}
.material-layout{display:grid;grid-template-columns:minmax(0,1fr) 30vw;column-gap:2.4vw;align-items:end;padding-right:var(--gutter)}
.material-1{height:80vh;min-height:460px}
.material-2{height:60vh;min-height:340px}
.material-2 img{object-position:50% 60%}
.material-heading{position:absolute;z-index:2;right:var(--gutter);top:16vh;width:30vw}
.material-heading h2{font-size:clamp(44px,4.4vw,68px);line-height:.98}
@media(prefers-reduced-motion:no-preference){@supports(animation-timeline:view()){
 .material-1 .photo-frame{animation:wall-reveal linear both;animation-timeline:view();animation-range:entry 0% cover 42%}
 .material-2 .photo-frame{animation:detail-rise linear both;animation-timeline:view();animation-range:entry 0% cover 40%}
}}
@keyframes wall-reveal{from{clip-path:inset(0 18% 0 0)}to{clip-path:inset(0)}}
@keyframes detail-rise{from{transform:translateY(64px)}to{transform:none}}

/* Shared chapter title row */
.stage-title{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:0 var(--gutter);margin-bottom:36px}
.stage-title h2{font-size:clamp(44px,4.6vw,72px);line-height:1}
.craft .stage-title p{display:none}

/* 4. Craft & Installation — one dominant frame; the others wait as slices. Sequence driven by projects-v2.js. */
.craft{padding:4vh 0 16vh}
.craft-layout{display:flex;gap:3px;height:74vh;min-height:420px;max-height:760px}
.process-photo{flex:1 1 0;min-width:0;transition:flex-grow .8s var(--ease)}
.process-photo.active{flex-grow:4.4}
.process-trigger{all:unset;display:block;position:relative;width:100%;height:100%;cursor:pointer}
.process-trigger:focus-visible{outline:2px solid var(--text);outline-offset:-6px}
.process-photo img{filter:brightness(.5) saturate(.75);transition:filter .6s var(--ease)}
.process-photo.active img{filter:none}
.process-label,.process-nav{display:none}

/* 5. Archive — an exhibition wall: one shared height, true proportions, native rail.
   overflow-x:clip keeps the rail's translateX arrival inside the section; unclipped it widens the page (mobile zooms out). */
.archive{padding:0 0 14vh;overflow-x:clip}
.archive-layout{display:flex;gap:16px;height:clamp(420px,64vh,640px);overflow-x:auto;overflow-y:hidden;padding:0 var(--gutter);scroll-padding-inline:var(--gutter);scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab;outline-offset:-4px}
.archive-layout::-webkit-scrollbar{display:none}
.archive-layout.dragging{cursor:grabbing;scroll-snap-type:none}
.archive-layout.dragging .photo-trigger{cursor:grabbing}
.archive-photo{flex:none;height:100%;width:max-content;scroll-snap-align:start}
.archive-photo .photo-trigger{width:auto;height:100%}
.archive-photo .photo-frame{width:auto}
.archive-photo img{width:auto;height:100%;max-width:none;user-select:none;-webkit-user-drag:none}
.archive-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;margin:28px var(--gutter) 0}
html body .archive-controls button{min-height:44px;padding:8px 0;border:0;background:none;color:var(--text);font:600 14px/1 "Segoe UI",Arial,sans-serif;cursor:pointer;transition:opacity .25s}
.archive-controls button:disabled{opacity:.3;cursor:default}
.archive-position{display:flex;align-items:center;gap:18px;font-size:13px;color:var(--muted);white-space:nowrap}
.archive-position::before,.archive-position::after{content:"";flex:1;height:1px;background:var(--line)}

/* 6. Closing — bookend to the hero. */
.closing{position:relative;display:flex;align-items:flex-end;height:88vh;height:88svh;min-height:560px;overflow:hidden;background:var(--deep)}
.closing-photo{position:absolute;inset:0}
.closing::after{content:"";position:absolute;inset:auto 0 0;z-index:1;height:66%;background:linear-gradient(rgba(23,30,26,0),rgba(23,30,26,.55) 45%,rgba(23,30,26,.92))}
.closing-copy{position:relative;z-index:2;padding:0 var(--gutter) clamp(56px,10vh,96px);text-shadow:0 1px 2px rgba(0,0,0,.35),0 2px 18px rgba(0,0,0,.3)}
.closing-copy .eyebrow{margin:0 0 18px;font-size:12px;font-weight:600;letter-spacing:.18em;opacity:.9}
.closing-copy h2{font-size:clamp(52px,5.8vw,92px);line-height:.98;margin-bottom:32px}
html body .closing.complete-stage .contact-link{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:40px;min-width:280px;min-height:64px;padding:12px 22px 12px 24px;border:1px solid rgba(243,237,224,.62);font:600 17px/1.2 "Segoe UI",Arial,sans-serif;color:var(--text);text-shadow:inherit;transition:border-color .3s}
html body .closing.complete-stage .contact-link::after{content:"";position:absolute;left:-1px;right:-1px;bottom:-1px;height:2px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .45s var(--ease)}
.closing .contact-link span{display:inline-block;font-size:20px;transition:transform .35s var(--ease)}
@media(hover:hover) and (pointer:fine){
 html body .closing.complete-stage .contact-link:hover{text-decoration:none;border-color:var(--text)}
 html body .closing.complete-stage .contact-link:hover::after{transform:scaleX(1)}
 .closing .contact-link:hover span{transform:translateX(6px)}
}

/* Once-only arrivals (projects-complete.js toggles .complete-pending). */
@media(prefers-reduced-motion:no-preference){
 .complete-stage .stage-title,.craft-layout,.archive-layout,.archive-controls,.closing-copy{transition:opacity .8s var(--ease),transform .9s var(--ease)}
 .complete-pending .stage-title,.complete-pending .closing-copy{opacity:0;transform:translateY(24px)}
 .craft.complete-pending .craft-layout{opacity:0;transform:translateY(40px)}
 .archive.complete-pending .archive-layout{opacity:0;transform:translateX(64px)}
 .archive.complete-pending .archive-controls{opacity:0}
 .hero-photo img{animation:hero-settle 1.8s var(--ease) both}
 .hero-copy>*,.hero-foot{animation:hero-rise .8s var(--ease) both}
 .hero-copy>:nth-child(2){animation-delay:.3s}.hero-copy>:nth-child(3){animation-delay:.45s}.hero-foot{animation-delay:.6s}
}
@keyframes hero-settle{from{transform:scale(1.05)}to{transform:none}}
@keyframes hero-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Focus Mode — a full dark environment, not a floating dialog. */
dialog.image-focus{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--deep);color:var(--text);overflow:hidden}
dialog.image-focus::backdrop{background:transparent}
.focus-shell{position:relative;display:grid;grid-template-rows:76px minmax(0,1fr) 88px;height:100%}
.focus-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 var(--gutter)}
#focus-label{font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;opacity:.85}
.focus-close{min-height:44px;padding:8px 0;border:0;background:none;color:inherit;font:600 14px/1 "Segoe UI",Arial,sans-serif;cursor:pointer}
.focus-close span{display:inline-block;margin-left:6px;font-size:18px;transition:transform .3s var(--ease)}
.focus-stage{display:grid;place-items:center;min-height:0;padding:0 var(--gutter);overflow:hidden;touch-action:pan-y}
.focus-image{display:block;width:min(100%,calc((100dvh - 164px) * var(--image-ratio,1.5)));height:auto;max-height:100%;aspect-ratio:var(--image-ratio,1.5);object-fit:contain;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.focus-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:0 var(--gutter)}
.focus-position{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.focus-position::after{content:"";width:160px;height:1px;background:linear-gradient(90deg,var(--text) calc(var(--focus-progress,0) * 100%),rgba(243,237,224,.22) 0);transition:background .4s}
/* Desktop: the photograph's flanks are the previous/next zones. */
.focus-prev,.focus-next{position:absolute;z-index:2;top:76px;bottom:88px;width:max(96px,11vw);border:0;background:transparent;color:var(--text);font-size:0;cursor:pointer}
.focus-prev{left:0;cursor:w-resize}.focus-next{right:0;cursor:e-resize}
.focus-prev::before,.focus-next::before{font:300 30px/1 "Segoe UI",Arial,sans-serif;opacity:.5;text-shadow:0 1px 6px rgba(0,0,0,.6);transition:opacity .3s,transform .35s var(--ease)}
.focus-prev::before{content:"←"}.focus-next::before{content:"→"}
.focus-prev:focus-visible,.focus-next:focus-visible{outline-offset:-8px}
@media(hover:hover) and (pointer:fine){
 .focus-prev:hover::before,.focus-next:hover::before{opacity:1}
 .focus-prev:hover::before{transform:translateX(-6px)}.focus-next:hover::before{transform:translateX(6px)}
 .focus-close:hover span{transform:rotate(90deg)}
}
@media(prefers-reduced-motion:no-preference){
 .image-focus.is-opening{animation:focus-in .4s var(--ease) both}
 .image-focus.is-closing{animation:focus-out .28s ease both}
}
@keyframes focus-in{from{opacity:0}to{opacity:1}}
@keyframes focus-out{from{opacity:1}to{opacity:0}}

/* Mobile: its own vertical editorial composition, not desktop stacked. */
@media(max-width:767px){
 :root{--gutter:20px}
 .site-header{height:64px;gap:12px}.site-mark img{width:88px;height:auto}
 .projects-hero{min-height:580px;max-height:none}
 .hero-photo img{object-position:50% 58%}
 .projects-hero::after{height:70%}
 .hero-copy{bottom:96px}
 .hero-copy h1{font-size:clamp(48px,13.6vw,60px);line-height:.98}
 .hero-copy .hero-proof{margin-top:16px;font-size:11px}
 .hero-foot{left:var(--gutter);right:auto;bottom:28px}
 .hero-foot a{font-size:14px}
 /* Selected: a full-bleed 4:5 lead with its title, then the second space bleeding right. */
 .selected-spaces{padding-top:12px}
 .selected-spaces h2{top:calc(12px + 125vw - 92px);font-size:clamp(38px,10.6vw,46px)}
 .spaces-layout .photograph{position:relative;height:auto}
 .space-1{aspect-ratio:4/5}
 .space-2{width:82vw;margin:10px 0 0 auto;aspect-ratio:4/3;box-shadow:none}
 /* Material: the portrait detail leads; the wall follows, bleeding left. */
 .material-place{padding:72px 0 0}
 .material-layout{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:10px}
 .material-2{order:-1;width:100%;height:auto;min-height:0;aspect-ratio:3/4}
 .material-2 .photo-frame::after{content:"";position:absolute;inset:auto 0 0;height:40%;background:var(--shade);pointer-events:none}
 .material-1{width:82vw;height:auto;min-height:0;aspect-ratio:4/3}
 .material-heading{left:var(--gutter);right:auto;width:auto;top:calc(72px + 133.33vw - 112px)}
 .material-heading h2{font-size:clamp(38px,10.6vw,46px);text-shadow:0 1px 2px rgba(0,0,0,.35),0 2px 18px rgba(0,0,0,.35)}
 .stage-title{margin-bottom:22px}
 .stage-title h2{font-size:clamp(36px,10vw,44px)}
 /* Craft: a documentary strip at true proportions. */
 .craft{padding:72px 0 0}
 .craft-layout{flex-direction:column;height:auto;min-height:0;max-height:none}
 .process-photo{flex:none}
 .process-trigger{cursor:default}
 .process-photo img,.process-photo.active img{height:auto;filter:none}
 /* Archive: a snap rail of slab-like 4:5 frames with a peek of the next. */
 .archive{padding:72px 0 56px}
 .archive-layout{height:auto;gap:10px;scroll-snap-type:x mandatory}
 .archive-photo{width:80vw;height:auto;aspect-ratio:4/5}
 .archive-photo .photo-trigger,.archive-photo .photo-frame{width:100%;height:100%}
 .archive-photo img{width:100%;height:100%}
 .archive-controls{margin-top:18px;gap:14px}
 .closing{min-height:520px}
 .closing-copy h2{font-size:clamp(44px,12.4vw,56px);margin-bottom:24px}
 html body .closing.complete-stage .contact-link{width:100%;min-width:0;min-height:60px}
 .photo-trigger::after{right:14px;bottom:14px}
 /* Focus: full-width photograph, anchored lower controls, swipe. */
 .focus-shell{grid-template-rows:60px minmax(0,1fr) 84px}
 .focus-stage{padding:0}
 .focus-image{width:min(100%,calc((100dvh - 144px) * var(--image-ratio,1.5)));box-shadow:none}
 .focus-prev,.focus-next{position:static;width:auto;min-height:44px;font:600 14px/1 "Segoe UI",Arial,sans-serif;cursor:pointer}
 .focus-prev::before,.focus-next::before{content:none}
 .focus-prev{justify-self:start}.focus-next{justify-self:end}
 .focus-position::after{width:96px}
}
@media(max-width:350px){
 :root{--gutter:16px}
 .site-mark img{width:76px}
 .hero-copy h1{font-size:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
