/* One project system, derived from the home typography and spacing. */
body.project-system{--sans:"Helvetica Neue",Helvetica,Arial,sans-serif;--editorial:var(--sans);--paper:#f2f0ea;--ink:#0b0c0a;--green:#555e50;--pad:clamp(20px,4.4vw,76px);--project-image-height:calc(100svh - 160px);font-family:var(--sans);background:var(--paper);color:var(--ink)}
body.project-system :is(h1,h2,h3,h4,p,dt,dd,figcaption,button,input){font-family:var(--sans)}
body.project-system :is(h1,h2,h3){font-weight:400;font-style:normal;letter-spacing:-.055em;line-height:1.05}
body.project-system .project-heading h1{font-size:clamp(2.3rem,5vw,5rem);margin:18px 0 12px;line-height:1;letter-spacing:-.065em}
body.project-system :is(.project-story h2,.terras-chapter h2,.project-next h2){font-size:clamp(1.8rem,3.4vw,3.6rem);line-height:1.08}
body.project-system .case-decisions h2{font-size:clamp(1.3rem,2vw,2rem)}
body.project-system .project-story p{font-size:clamp(.95rem,1.1vw,1.1rem);line-height:1.7;max-width:68ch}
body.project-system .project-story{padding:clamp(48px,6vw,88px) var(--pad);gap:clamp(28px,6vw,88px);background:var(--paper)}
body.project-system .case-decisions{padding:0 var(--pad) clamp(48px,6vw,88px);background:var(--paper)}
body.project-system .facts{margin-top:32px;gap:22px 28px}.project-system .facts dt{font-size:.65rem;letter-spacing:.15em;text-transform:uppercase}.project-system .facts dd{font-size:.85rem;line-height:1.6}
body.project-system .cta{background:var(--ink);color:var(--paper);min-height:0;padding:clamp(60px,8vw,120px) var(--pad) 36px}
body.project-system .cta h2{font-family:var(--sans);font-size:clamp(2.8rem,7vw,7rem);font-weight:400;letter-spacing:-.065em;line-height:.98;margin:24px 0 64px;text-transform:uppercase}
body.project-system .cta h2 a{font-family:Georgia,serif;font-style:italic;text-transform:none;color:inherit}
body.project-system .project-next{background:var(--green);color:var(--paper);padding:clamp(40px,6vw,80px) var(--pad)}
/* Hero and its title together stay below the fixed navigation. */
body.project-system .project-detail-hero{display:grid;grid-template-rows:minmax(0,1fr) auto;height:calc(100svh - 48px);min-height:0;max-height:none;margin-top:48px;padding:0 var(--pad);background:var(--paper);color:var(--ink);overflow:hidden}
body.project-system .project-detail-hero:after{display:none}
body.project-system :is(.project-detail-hero>img,.project-detail-hero>:where(picture.opening-picture)>img){position:static;inset:auto;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;object-position:center;grid-row:1}
body.project-system .project-detail-hero .project-heading{position:static;inset:auto;grid-row:2;padding:24px 0 28px;background:var(--paper);color:var(--ink)}
body.project-system .project-detail-hero .project-heading p{margin:0;font-size:.78rem;line-height:1.6;color:#555e50}
body.project-system .project-detail-hero:not(:has(>img,>picture.opening-picture)){display:block;height:auto;overflow:visible}
/* Row width follows image ratios and available viewport height, not a fixed large plate. */
body.project-system .editorial-gallery .gallery-spread,body.project-system .editorial-chapter .terras-row{width:min(100%,calc(var(--project-image-height) * var(--row-ratio,1) + var(--row-gap,0px)));max-width:100%;margin-left:auto;margin-right:auto;align-self:center}
body.project-system .editorial-gallery .gallery-spread .photo,body.project-system .editorial-chapter .terras-row .photo{height:auto!important;max-height:var(--project-image-height)!important;min-height:0;overflow:hidden}
body.project-system .editorial-gallery .gallery-spread .photo img,body.project-system .editorial-chapter .terras-row .photo img{height:auto!important;max-height:var(--project-image-height)!important;object-fit:contain;object-position:center;transform:none!important}
body.project-system .editorial-chapter{padding-bottom:clamp(48px,6vw,88px)}
body.project-system .terras-chapter{gap:24px;margin-bottom:32px}body.project-system .terras-chapter p{font-size:.85rem;line-height:1.6}
body.project-system .drawing-proof img{height:auto;max-height:var(--project-image-height);object-fit:contain}
body.project-system .lightbox{height:100dvh;max-height:100dvh}body.project-system .lightbox img{height:calc(100dvh - 150px);width:100%;margin-top:65px;object-fit:contain}
/* Category pages use the same restrained heading scale and framed previews. */
body.project-system .sketch-opening{margin-top:48px;padding:28px var(--pad) 28px}
body.project-system .sketch-heading{margin-top:24px;gap:24px}body.project-system .sketch-heading h1{font-size:clamp(2.5rem,4.2vw,4.8rem);letter-spacing:-.065em;line-height:1.05}body.project-system .sketch-heading p{font-size:.85rem;line-height:1.6}
body.project-system .project-heading h2{font-size:clamp(1.5rem,2.4vw,2.5rem)}
body.project-system:not(.portfolio-gateway) .sketch-stage{height:min(66svh,var(--project-image-height));min-height:0;max-height:var(--project-image-height);aspect-ratio:auto}
body.project-system .sketch-stage .sketch-drawing,body.project-system .sketch-stage .project-render{object-fit:contain}
@media(max-width:900px){body.project-system .project-story{grid-template-columns:1fr}body.project-system .project-detail-hero{height:calc(100svh - 48px)}body.project-system .project-heading h1{font-size:clamp(2.1rem,6vw,3.5rem)}}
@media(max-width:650px){body.project-system{--project-image-height:calc(100svh - 136px)}body.project-system .project-detail-hero .project-heading{padding:18px 0 22px}body.project-system .project-heading h1{font-size:clamp(1.9rem,8vw,3rem)}body.project-system .sketch-heading h1{font-size:clamp(2rem,9vw,3rem)}body.project-system .sketch-heading{display:block}body.project-system .sketch-heading p{margin-top:12px}
 body.project-system .editorial-gallery .gallery-spread,body.project-system .editorial-chapter .terras-row{width:100%}
 body.project-system .editorial-gallery .gallery-spread .photo,body.project-system .editorial-chapter .terras-figure{width:min(100%,calc(var(--project-image-height) * var(--image-ratio-number,1)));margin-left:auto;margin-right:auto}
 body.project-system .editorial-chapter .terras-figure .photo{width:100%}
 body.project-system .project-story h2{font-size:2rem}body.project-system .case-decisions>div{grid-template-columns:1fr}body.project-system .project-next{gap:20px}body.project-system .terras-chapter{display:block}body.project-system .terras-chapter h2{margin-bottom:12px}}

body.project-system .footer{background:var(--ink);color:var(--paper)}

/* Full-width plates; controlled cropping replaces empty lateral bands. */
body.project-system .project-detail-hero:has(>.project-hero-media){display:grid;grid-template-rows:minmax(0,1fr) auto;height:calc(100svh - 48px);padding:0;overflow:hidden}
body.project-system .project-hero-media{display:grid;grid-template-columns:1fr;grid-row:1;min-height:0;width:100%;height:100%;overflow:hidden;gap:clamp(16px,2vw,28px)}
body.project-system :is(.project-hero-media>img,.project-hero-media>:where(picture.opening-picture)>img){display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;object-position:center}
body.project-system .project-hero-media>.project-hero-secondary{display:none}
body.project-system .project-detail-hero .project-heading{padding:24px var(--pad) 28px}
body.project-system .editorial-gallery .gallery-spread,body.project-system .editorial-chapter .terras-row{--plate-height:min(var(--project-image-height),calc((100vw - 2 * var(--pad) - var(--row-gap,0px)) / var(--row-ratio,1)));width:100%;max-width:none}
body.project-system .editorial-gallery .gallery-spread .photo,body.project-system .editorial-chapter .terras-row .photo{width:100%;height:var(--plate-height)!important;max-height:var(--project-image-height)!important;overflow:hidden}
body.project-system .editorial-gallery .gallery-spread .photo img,body.project-system .editorial-chapter .terras-row .photo img{width:100%;height:100%!important;max-height:none!important;object-fit:cover;object-position:center}
@media(min-width:1600px){body.project-system .project-hero-media.has-pair{grid-template-columns:1fr 1fr}body.project-system .project-hero-media.has-pair>.project-hero-secondary{display:block}}
@media(max-width:650px){body.project-system .editorial-gallery .gallery-spread .photo,body.project-system .editorial-chapter .terras-figure{width:100%;max-width:none}body.project-system .editorial-gallery .gallery-spread .photo,body.project-system .editorial-chapter .terras-row .photo{height:min(var(--project-image-height),calc((100vw - 2 * var(--pad)) / var(--image-ratio-number,1)))!important}body.project-system .project-detail-hero .project-heading{padding:18px var(--pad) 22px}}
