/* AME STUDIO — V2.28 / refined performance, typography and universal footer */
/* Grain is exclusive to project presentations and the contact experience. */
body:not(.case-open) .fine-grain{opacity:0!important;visibility:hidden!important;}
body.case-open .fine-grain{opacity:.27!important;visibility:visible!important;}
body.plan-viewer-open .fine-grain{opacity:0!important;visibility:hidden!important;}
/* Contact area texture as an isolated layer: does not run through home scroll. */
#home section.contact, .contact-index,.case-contact-panel{position:relative;isolation:isolate;}
#home section.contact::before,.contact-index::before,.case-contact-panel::before{
 content:'';position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.12;
 background-image:url('assets/grain-trix400-d76.png');background-size:256px 256px;mix-blend-mode:multiply;
}
#home section.contact>*, .contact-index>*, .case-contact-panel>*{position:relative;z-index:1;}
/* Animate transforms rather than layout-heavy properties wherever possible. */
.cinema-stage,.cinema-heading,.cinema-photo,.allwork-stage{backface-visibility:hidden;}
.cinema-chapter,.allwork-world{contain:layout style;}
.cinema-photo{will-change:transform;}
.allwork-tile{will-change:transform;}
@media (prefers-reduced-motion:reduce){.cinema-photo,.allwork-tile{will-change:auto}}
/* Next project is vertically centered, footer line/credits anchored close to bottom. */
.case-end{background:#4B3E34!important;}
.case-end-inner{height:100%!important;justify-content:flex-start!important;gap:0!important;position:relative!important;}
.case-end-copy{position:absolute!important;top:50%!important;left:0!important;transform:translateY(-50%)!important;gap:clamp(14px,2.6vw,36px)!important;}
.case-end-copy .case-end-link{font-family:'Open Sans Condensed',sans-serif!important;font-weight:500!important;font-size:clamp(50px,6.7vw,118px)!important;letter-spacing:-.055em!important;white-space:normal;}
.case-end-bottom{position:absolute!important;left:0;right:0;bottom:clamp(18px,5vh,58px)!important;display:flex!important;justify-content:space-between!important;align-items:flex-end!important;padding-top:22px!important;border-top:1px solid rgba(248,248,248,.5)!important;font-size:clamp(10px,.8vw,14px)!important;}
.case-end-bottom a{border-bottom:1px solid rgba(248,248,248,.6)}
/* Six-row project data table with legible values and one consistent divider. */
.case-data-copy-full .case-specs-clean{width:min(45vw,660px)!important;max-width:660px!important;min-width:0!important;}
.case-data-copy-full .case-specs-clean>div{padding:clamp(7px,1.15vh,13px) 0!important;gap:20px;}
.case-data-copy-full .case-specs-clean dt{flex:0 0 31%;font-weight:500!important;}
.case-data-copy-full .case-specs-clean dd{max-width:66%;text-align:right;font-weight:600!important;}
/* Contact: no eyebrow, no extra header counters, no fee example column. */
.ame-contact-rail-top,.ame-contact-step-number,.ame-contact-step-copy>span{display:none!important;}
.ame-contact-estimates{display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
.ame-contact-estimates>div{max-width:100%;}
/* Footer forms the final band on every page. */
.ame-site-footer{position:relative;z-index:1;background:#4B3E34;color:#F8F8F8;padding:clamp(45px,5vw,100px) clamp(24px,5.4vw,110px) 22px;display:grid;grid-template-columns:minmax(160px,27%) 1fr;gap:4vw;min-height:300px;}
.ame-footer-brand{color:#F8F8F8;display:flex;align-items:flex-start;gap:12px;line-height:1;text-decoration:none;align-self:start;}
.ame-footer-brand>span{font:400 clamp(58px,8vw,144px)/.9 'AME Aftera',Georgia,serif;letter-spacing:-.055em;}
.ame-footer-brand>small{font:600 15px 'Open Sans Condensed',sans-serif;letter-spacing:.22em;margin-top:12px;}
.ame-footer-content{display:flex;flex-direction:column;gap:28px;justify-content:space-between;}
.ame-footer-heading{font:600 clamp(14px,1.25vw,20px) 'Open Sans Condensed',sans-serif;letter-spacing:.07em;}
.ame-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px;row-gap:24px;padding:24px 0;border-top:1px solid rgba(248,248,248,.26);border-bottom:1px solid rgba(248,248,248,.26);}
.ame-footer-links a{color:inherit;text-decoration:none;font:600 clamp(12px,1vw,17px)/1.2 'Open Sans Condensed',sans-serif;letter-spacing:.04em;overflow-wrap:anywhere;transition:opacity .2s;}
.ame-footer-links a:hover{opacity:.55;}
.ame-footer-legal{display:flex;justify-content:space-between;gap:14px;color:rgba(248,248,248,.69);font:500 11px 'Open Sans Condensed',sans-serif;letter-spacing:.06em;}
/* Fixed horizontal gallery: brown footer is the final full-height panel. */
.case-panel.case-site-footer{width:100vw!important;min-width:100vw!important;height:100%!important;background:#4B3E34!important;padding:0!important;display:flex;align-items:stretch;overflow:hidden!important;}
.case-site-footer .ame-site-footer{width:100%;height:100%;min-height:0;align-content:center;}
.case-site-footer .ame-footer-content{max-height:75vh;}
/* Legal pages are routed inside the autonomous document, so footer links work. */
.ame-legal-page{background:#F8F8F8;min-height:100vh;color:#4B3E34;}
.ame-legal-inner{padding:clamp(130px,13vw,210px) clamp(26px,8vw,140px) 120px;min-height:76vh;max-width:1280px;}
.ame-legal-kicker{font:600 14px 'Open Sans Condensed',sans-serif;letter-spacing:.12em;}
.ame-legal-inner h1{font:400 clamp(54px,6vw,108px)/1.06 'AME Aftera',Georgia,serif;margin:30px 0 36px;}
.ame-legal-inner h2{font:600 clamp(24px,2.5vw,36px) 'Open Sans Condensed',sans-serif;margin:32px 0 8px;}
.ame-legal-inner p{font:400 clamp(17px,1.55vw,24px)/1.45 'Open Sans Condensed',sans-serif;max-width:850px;margin:0 0 16px;}
.ame-legal-inner a{display:inline-block;margin-top:28px;color:inherit;border-bottom:1px solid;}
@media(max-width:900px){
  .case-data-copy-full .case-specs-clean{width:100%!important;max-width:100%!important;}
  .ame-site-footer{grid-template-columns:1fr;gap:32px;}
  .ame-footer-brand>span{font-size:70px;}
  .ame-footer-links{grid-template-columns:repeat(2,minmax(0,1fr));}
  .case-end-copy .case-end-link{font-size:clamp(44px,9vw,85px)!important;}
}
@media(max-width:530px){
  .case-end-bottom{font-size:10px!important;gap:20px;}
  .case-end-copy .case-end-link{font-size:clamp(39px,10vw,60px)!important;}
  .ame-site-footer{padding:46px 20px 18px;}
  .ame-footer-links{grid-template-columns:1fr 1fr;row-gap:18px;}
  .case-site-footer .ame-footer-brand>span{font-size:49px;}
  .case-site-footer .ame-footer-links{row-gap:12px;padding:14px 0;}
  .case-site-footer .ame-footer-content{gap:16px;}
}
