/* Page layout follows the viewport; content is never forced into a fixed ratio. */
:root{--page-gutter:clamp(16px,3vw,64px);--layout-gap:clamp(24px,4vw,64px)}
html{scroll-snap-type:y proximity;scroll-padding-top:0}
body{min-width:0}
.shell{width:calc(100% - 2*var(--page-gutter));max-width:1600px;margin-inline:auto}
.topbar{width:100%;max-width:none;padding-inline:var(--page-gutter);gap:24px}
.topbar .brand{flex-shrink:0}
#top>section{height:auto;max-height:none;min-height:100svh;overflow:visible;scroll-snap-stop:normal}
#top>section.overflow-section{scroll-snap-align:none}
#top>.hero{height:auto;min-height:100svh;overflow:visible}
.hero-copy{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:var(--layout-gap);width:100%;max-width:calc(1600px + 2*var(--page-gutter));margin-inline:auto;padding:clamp(130px,18svh,180px) var(--page-gutter) 90px;align-items:end}
.hero-copy>div{min-width:0;max-width:100%}
.hero-copy>div:last-child{max-width:100%;flex-shrink:1}
.hero h1,.display,.selected-title,.project-story h2{overflow-wrap:anywhere}
.hero p{max-width:38rem}
.image-note{left:var(--page-gutter);max-width:calc(60% - var(--page-gutter));overflow-wrap:anywhere}
.scroll-cue{right:var(--page-gutter);max-width:35%;text-align:right}
.intro{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:var(--layout-gap)}
.material,.contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--layout-gap)}
#project{padding-inline:var(--page-gutter)}
#project .case-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:var(--layout-gap);width:100%}
#project .case-image{width:100%;max-width:100%;height:auto;aspect-ratio:4 / 3}
#project .case-image>.photo-frame{height:100%;aspect-ratio:4 / 3}
.featured-heading{gap:20px;flex-wrap:wrap}
.slider-controls{flex-wrap:wrap;gap:10px}
.principles{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:clamp(20px,3vw,35px);margin-top:clamp(35px,6svh,85px)}
.process{grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:clamp(20px,2.5vw,30px);margin-top:clamp(30px,5svh,60px)}
.intro>*,.material>*,.contact-grid>*,.case-grid>*,.process>*,.principles>*,.photo-gallery>*,form>*{min-width:0}
.case-copy,.material-copy,.intro-copy,.project-story,.faq,.footer{overflow-wrap:anywhere}
.case-copy{max-width:100%}
.facts,.footer{flex-wrap:wrap}
#top .material-image img{height:auto;aspect-ratio:4 / 3;object-fit:cover}
#process>.clear-process-action{max-width:calc(100% - 2*var(--page-gutter));margin-inline:var(--page-gutter)}
.contact-grid form{grid-template-columns:repeat(2,minmax(0,1fr))}
input,textarea,select{max-width:100%}
a.button,button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
.photo-gallery figure{min-width:0}
.project-main{min-width:0;padding-block:clamp(35px,7svh,85px)}
.project-story{width:100%;max-width:780px;margin-block:clamp(40px,8svh,90px)}
.project-visual,.project-visual>.photo-frame{max-width:100%}
.photo-dialog{box-sizing:border-box;width:min(96vw,1500px);max-width:96vw;max-height:96dvh;overflow:auto;padding:58px 16px 16px}
.photo-dialog img{width:auto;max-width:100%;height:auto;max-height:calc(96dvh - 90px);margin-inline:auto;object-fit:contain}
/* The library uses the same fluid layout, including its composition dialogs. */
.layout{grid-template-columns:minmax(220px,290px) minmax(0,1fr)}
.layout main,.layout aside,.fields>*,.style-fields>*{min-width:0}
#composer{max-width:96vw;max-height:94dvh}
@media(max-width:1100px){.hero-copy{grid-template-columns:minmax(0,1fr)}.hero-copy>div:last-child{margin-top:0;max-width:650px}.projects-dropdown{max-width:100%}}
@media(max-width:960px){.intro,.material,.contact-grid,#project .case-grid{grid-template-columns:minmax(0,1fr)}#project .case-image{max-width:800px}.intro-copy{padding-top:0}.layout{grid-template-columns:minmax(0,1fr)}.layout aside{border-right:0}.project-list{max-height:260px;overflow:auto}}
@media(max-width:640px){.contact-grid form,.photo-gallery{grid-template-columns:minmax(0,1fr)}.photo-gallery figure.wide{grid-column:auto}.contact-grid textarea,.contact-grid .form-note{grid-column:1}.featured-heading{align-items:flex-start}.hero-copy{padding-top:130px;padding-bottom:100px}.footer{flex-direction:column}.image-note,.scroll-cue{font-size:9px}}
@media(max-height:700px) and (min-width:961px){#top>.section,#top>.case{padding-block:32px}.hero-copy{padding-top:130px;padding-bottom:70px}.hero h1{font-size:clamp(44px,5vw,76px)}.section .display{margin-block:18px 25px}.project-main{padding-block:35px}}
@media(prefers-reduced-motion:reduce){html{scroll-snap-type:none;scroll-behavior:auto}}

/* A fixed full-screen photo canvas, with readable copy even on short screens. */
#top>.hero{width:100%;max-width:none;margin-inline:0;padding-inline:0;height:100svh;min-height:100svh;max-height:100svh;position:relative;display:block}
#top>.hero .hero-image{position:absolute;inset:0;width:100%;height:100%}
#top>.hero .hero-copy{position:absolute;inset:0;max-height:100%;height:100%;align-content:safe end;overflow-y:auto;overflow-x:clip;scrollbar-width:thin;overscroll-behavior-y:auto;box-sizing:border-box}
#top>.hero .hero-copy>div{min-height:0}
@media(max-height:600px) and (min-width:961px){#top>.hero .hero-copy{padding-top:110px;padding-bottom:65px}.hero h1{font-size:clamp(38px,4.4vw,64px)}.hero-actions{gap:12px;margin-top:12px}}
.process-detail-link{align-self:flex-start;margin:16px var(--page-gutter) 0;font-size:14px;text-decoration:none;border-bottom:1px solid #b96543;padding-bottom:8px}
