/* One centered public-site frame. Extra monitor width becomes outer margin,
   never extra artwork width, larger type, or vertical space. */
:root{--site-max-width:1280px;--page-gutter:56px;--surround:#e2e6df;--section-rule:#bd9b60;--section-rule-width:.75px}
.home-page{--section-rule:var(--hero-rule,#bd9b60)}
html[data-palette="mineral"]{--surround:#dfe5e6}
html[data-palette="heritage"]{--surround:#e5dfd2}
html{background:var(--surround)}
body{width:min(100%,var(--site-max-width));max-width:var(--site-max-width);min-height:100vh;min-height:100dvh;margin-inline:auto;background:var(--paper)}
.wrap{width:calc(100% - var(--page-gutter) - var(--page-gutter));max-width:none}
.project-page{width:calc(100% - var(--page-gutter) - var(--page-gutter));max-width:none;margin-inline:auto}
.home-page .hero-feature{padding-top:var(--page-gutter)}
:is(.home-page,.project-detail-page) .back-to-top{right:max(24px,env(safe-area-inset-right),calc((100vw - var(--site-max-width))/2 + 24px))}
@media(max-width:1150px){:root{--page-gutter:32px}}
@media(max-width:560px){:root{--page-gutter:20px}:is(.home-page,.project-detail-page) .back-to-top{right:max(16px,env(safe-area-inset-right))}}

/* Preserve the approved 1280px desktop composition above the frame limit.
   Smaller screens keep the existing responsive layout and type rules. */
@media(min-width:1280px){
  h1{font-size:79.36px}
  .hero-stage{height:320px}
  .home-page .hero h1{font-size:57.6px}
  .home-page .hero-image{height:473.6px}
  .intro h2{font-size:34.56px}
  .section-head h2{font-size:53.76px}
  .connection-copy h2{font-size:44.8px}
  .connection-layout{gap:51.2px}
  .project-caption h3{font-size:23.04px}
  .system-title{font-size:38.4px}
  .expertise h2,.studio-copy h2{font-size:44.8px}
  .contact h2{font-size:71.68px}
  .contact-email{font-size:21.12px}
  .case-head h2{font-size:57.6px}
  .craft-opening h2{font-size:64px}
  .has-spatial-study .craft-opening h2{font-size:43.52px}
  .case-head h1{font-size:64px}
  .page-opening h1{font-size:80.64px}
}

/* Project stories share the compact rhythm of the main and Services pages.
   Scope this to both presentations so unrelated page headings stay intact. */
.project-page,#project-dialog{--project-title-size:clamp(30px,3.5vw,44px);--project-inset:32px}
.project-page{margin-block:10px 48px}
#project-dialog .case-head{padding:32px var(--project-inset) 20px}
.project-page>.case-head{padding:4px 0 12px}
.project-page .project-back{margin-bottom:6px}
:is(.project-page,#project-dialog) .case-head :is(h1,h2){font-family:var(--serif);font-size:var(--project-title-size);font-weight:400;line-height:1.12;letter-spacing:-.04em;max-width:100%;margin:12px 0 14px;overflow-wrap:break-word}
:is(.project-page,#project-dialog) .case-head h1{margin-top:2px}
:is(.project-page,#project-dialog) .case-head .case-intro{font-size:15px;line-height:1.6;max-width:76ch}
#project-dialog .dialog-close{top:12px;right:12px;padding:8px 14px;min-height:44px}
#project-dialog .case-body{padding:24px var(--project-inset) 32px}
.project-page .case-body{padding:18px 0 0}
.project-page>.project-page-hero{padding-bottom:12px;border-bottom:var(--section-rule-width) solid var(--section-rule)}
/* Reserve room for project identity and contribution icons on shorter screens.
   Scale the existing frame proportionally, leaving phone covers and cards intact. */
@media(min-width:561px){
  .project-page{margin-top:4px}
  .project-page>.case-head{padding:0 0 8px}
  .project-page .project-back{min-height:32px;margin-bottom:0}
  :is(.project-page,#project-dialog) .case-head h1{margin:0 0 8px}
  .project-page>.project-page-hero>.case-cover-window{width:min(75%,max(300px,calc(150svh - 510px)));margin-inline:0 auto}
  .project-page .case-body{padding-top:12px}
  .project-page .case-body>.project-summary{row-gap:12px}
  .project-page .project-summary .project-contribution>.project-work-type{margin-bottom:8px}
}
.project-page .project-summary{gap:18px 30px;margin-bottom:24px}
.project-page .project-summary :is(h2,h3){margin-bottom:8px}
.project-page .project-summary .project-work-type{font:500 10px/1.6 var(--body);letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px;max-width:none}
.project-page .sdw-contributions{margin-bottom:12px}
.project-page .project-contribution>p+p{margin-top:10px}
.project-page .project-credits{padding-top:16px}
.project-page :is(.additional-project-content,.project-videos){margin-block:24px}
.project-page .additional-project-content>h2{margin-bottom:14px}
.project-page .additional-project-content>.project-videos{margin-top:0}
.project-page .project-video-toggle{min-height:60px;padding-block:10px}
:is(.project-page,#project-dialog) .case-meta{flex-wrap:wrap;gap:14px 28px;padding-bottom:16px;margin-bottom:20px}
:is(.project-page,#project-dialog) .case-meta>span{min-width:0;font-size:12px;line-height:1.55}
:is(.project-page,#project-dialog) .case-meta small{margin-bottom:4px}
:is(.project-page,#project-dialog) .case-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
:is(.project-page,#project-dialog) .case-columns :is(h2,h3){font:400 22px/1.2 var(--serif);letter-spacing:-.025em;margin-bottom:8px}
:is(.project-page,#project-dialog) .case-columns :is(p,li){font-size:14px;line-height:1.65}
:is(.project-page,#project-dialog) .case-columns ul{padding-left:18px;margin:0}
:is(.project-page,#project-dialog) .case-role{font-size:14px;line-height:1.65;padding:14px 0;margin-bottom:20px}
.project-page .project-story{margin-top:24px}
.project-page .story-section{grid-template-columns:minmax(0,.6fr) minmax(0,1.8fr);gap:24px;padding-block:20px}
#project-dialog .dialog-story{padding-top:20px}
.project-page .story-section h2,#project-dialog .dialog-story h3{font:400 24px/1.2 var(--serif);letter-spacing:-.03em;margin-bottom:8px}
.project-page .story-section p,#project-dialog .dialog-story p{font-size:14px;line-height:1.65;max-width:76ch}
:is(.project-page,#project-dialog) .case-gallery{gap:14px;margin-top:20px}
:is(.project-page,#project-dialog) .case-image-caption,:is(.project-page,#project-dialog) .case-gallery figcaption{font-size:11px;line-height:1.5;padding-block:8px}
#project-dialog .case-presentation>.case-image-caption{padding-inline:var(--project-inset)}
:is(.project-page,#project-dialog) .compare{margin:24px 0}
:is(.project-page,#project-dialog) .deliverables{margin-top:24px;padding:20px 24px}
:is(.project-page,#project-dialog) .deliverables h2{font-size:22px;line-height:1.2;margin-bottom:10px}
:is(.project-page,#project-dialog) .deliverables ul{font-size:13px;line-height:1.65;margin:0}
:is(.project-page,#project-dialog) .case-credit{line-height:1.6;margin-top:24px;padding-top:16px;margin-bottom:12px}
:is(.project-page,#project-dialog) .case-permalink{margin-top:14px}
:is(.project-page,#project-dialog) .project-resources{margin-bottom:24px}
:is(.project-page,#project-dialog) .project-resources>:is(h2,h3){font-size:22px;margin-bottom:10px}
:is(.project-page,#project-dialog) .project-resource-link{gap:14px;padding:14px 0;min-height:56px}
@media(max-width:850px){.project-page .story-section{grid-template-columns:1fr;gap:8px}}
@media(max-width:700px){:is(.project-page,#project-dialog) .case-columns{grid-template-columns:1fr;gap:18px}}
@media(max-width:560px){
  .project-page,#project-dialog{--project-title-size:30px;--project-inset:20px}
  .project-page{margin-block:6px 36px}
  .project-page>.case-head{padding:4px 0 12px}
  #project-dialog .case-head{padding:56px var(--project-inset) 18px}
  :is(.project-page,#project-dialog) .case-head :is(h1,h2){margin-block:10px 12px}
  :is(.project-page,#project-dialog) .case-head h1{margin-top:0}
  :is(.project-page,#project-dialog) .case-head .case-intro{font-size:14px}
  #project-dialog .case-body{padding:20px var(--project-inset) 24px}
  .project-page .case-body{padding:16px 0 0}
  :is(.project-page,#project-dialog) .case-meta{gap:12px 20px;margin-bottom:18px}
  .project-page .story-section{padding-block:18px}
  .project-page .story-section h2,#project-dialog .dialog-story h3{font-size:22px}
  :is(.project-page,#project-dialog) .case-gallery{grid-template-columns:1fr;gap:12px;margin-top:20px}
  :is(.project-page,#project-dialog) .deliverables{padding:18px 20px}
}
