/* Frontend guide, 2026-10-05. MEHRL keeps its light palette and Oxanium.
   This final layer replaces the earlier homepage compositions explicitly. */
:root{--width:1000px;--content-gutter:112px;--header:78px;--pin-top:90px;--pin-bottom:26px;--section-gap:300px;--ink:#343434;--muted:#666666;--paper:#fff;--photo:grayscale(1) contrast(.94) brightness(1.03);--line:#e5e5e5;--ease:cubic-bezier(.16,1,.3,1)}
html{scroll-padding-top:104px;font-synthesis:none}
body{font-size:16px;line-height:1.6;overflow-x:clip}
.wrap,.project{width:min(var(--width),calc(100% - var(--content-gutter)))}
h2,.section-heading h2{font-size:clamp(42px,4.5vw,64px);line-height:1.12;text-wrap:balance}
html[data-typography="oxanium"] :is(h1,h2,h3){font-weight:500;letter-spacing:-.045em}
html[data-typography="oxanium"] body{font-weight:400}
.eyebrow{font-size:12px;font-weight:500;letter-spacing:.13em}
.header{height:var(--header);min-height:var(--header);padding:0 max(40px,calc((100% - 1000px)/2));border-bottom:1px solid transparent;background:#ffffffaa;backdrop-filter:blur(18px);transition:background .35s,border-color .35s}
.header.is-scrolled{background:#fffffff0;border-color:var(--line)}
.brand{width:120px;min-height:44px;display:flex;align-items:center}
.header nav{gap:22px;font-size:12px;font-weight:500}
.header nav a{min-height:44px;display:flex;align-items:center;padding:10px 0;transition:color .25s}
.header nav a:hover{color:var(--blue)}
.button{min-height:48px;padding:11px 21px;clip-path:none;border:1px solid var(--line);border-radius:9px;background:#f5f5f5;font-size:14px;font-weight:500;transition:transform .25s,background .25s}
.button:hover{transform:translateY(-2px);background:#eeeeee}.button:active{transform:none}
.text-link{min-height:44px;font-size:14px;font-weight:500}
.text-link>span{transition:transform .35s var(--ease)}.text-link:hover>span{transform:translateX(3px)}
.link-arrow{width:1em;height:1em;flex:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.12em;transition:transform .35s var(--ease)}
.text-link:hover .link-arrow{transform:translateX(3px)}
.hero{display:block;min-height:0;height:auto;max-height:none;margin-top:130px;overflow:visible;padding:0}
.hero-frame{position:relative;isolation:isolate;width:min(var(--width),calc(100% - var(--content-gutter)));margin:auto;min-height:560px;display:flex;align-items:flex-end}
.hero-content{width:100%;padding:0 0 16px;opacity:1;transform:none;text-shadow:0 2px 20px #fffa}
.hero-content>.eyebrow{margin-bottom:20px}
.hero-logo{width:390px;max-width:60%;margin-bottom:20px}
.hero h1{font-size:clamp(48px,5.2vw,72px);line-height:1.08;max-width:720px}
.hero-stage{inset:-90px -100px -55px auto;width:112%;overflow:visible;margin:0}
.stage-image{mask-image:linear-gradient(90deg,transparent,#000 18%,#000 86%,transparent),linear-gradient(0deg,transparent,#000 20%,#000 88%,transparent);mask-composite:intersect}
.stage-image img{object-position:58% center;filter:var(--photo);transform:translateY(var(--hero-photo-y,0px)) scale(var(--hero-zoom,1.07))}
.hero-stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#ffffff80,#ffffff20 48%,transparent 75%)}
.hero-stage figcaption{bottom:25px;right:100px;font-size:11px}
.sequence-pin{padding:0}
.sequence.is-scroll .sequence-pin{top:var(--pin-top);height:calc(100svh - var(--pin-top) - var(--pin-bottom));padding:0;display:flex;flex-direction:column;background:var(--paper)}
.sequence-pin>.section-heading,.projects.is-scroll .section-heading{position:static;inset:auto;opacity:1;transform:none;pointer-events:auto;flex:none;text-align:center;margin:0 auto 20px}
.sequence-pin>.section-heading h2,.projects.is-scroll .section-heading h2{font-size:clamp(32px,3.6vw,52px);line-height:1.12;letter-spacing:-.045em}
.projects.is-scroll .section-heading h2 span{display:inline}
.sequence-stage.service-stage,.sequence-stage.project-stage{width:min(var(--width),calc(100% - var(--content-gutter)));mask-image:none;border-radius:0;isolation:isolate}
.services-section.is-scroll .service-stage,.projects.is-scroll .project-stage{mask-image:none;border-radius:0}
.service-panel,.projects .project{height:580px;min-height:0;display:block;isolation:isolate;border-radius:0;mask-image:none;background:#f0f0f0;overflow:clip;margin:0 auto 48px}
.service-panel:last-child,.projects .project:last-child{margin-bottom:0}
.services-section.is-scroll .service-panel,.projects.is-scroll .project{position:absolute;inset:0;height:100%;width:100%;min-height:0;margin:0;padding:0;border-radius:0;mask-image:none}
.is-scroll .scene{opacity:1;transform:translate3d(var(--scene-x,0px),var(--scene-y,0px),0);visibility:var(--scene-visibility,hidden)}
.service-visual,.is-scroll .service-visual,.projects .reference-image,.projects.is-scroll .reference-image{position:absolute;inset:0;width:100%;height:100%;margin:0;mask-image:none;z-index:0}
.service-visual img,.is-scroll .service-visual img,.projects .reference-image img{height:100%;width:100%;object-fit:cover;filter:var(--photo);transform:none}
/* Only photographs get a local contrast veil; the surrounding page stays white. */
.service-panel:after,.projects .project:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 25%,#17171730 48%,#171717e8);opacity:calc(.3 + var(--copy-opacity,1)*.7)}
.service-stage .service-copy,.services-section.is-scroll .service-copy,.projects .project-copy,.projects.is-scroll .project .project-copy{position:absolute;inset:auto 38px 34px;z-index:2;width:auto;max-width:none;min-height:0;padding:0;margin:0;display:block;opacity:var(--copy-opacity,1);transform:translateY(var(--copy-y,0px));color:#fff;pointer-events:none}
.service-copy h3{font-size:clamp(34px,4vw,58px);line-height:1.1;max-width:650px;margin:0 0 16px;text-wrap:balance}
.service-copy .eyebrow{color:#f2f2f2;font-size:11px;margin-bottom:16px}
.service-copy>p:not(.eyebrow){font-size:16px;line-height:1.6;max-width:520px;min-height:0;color:#f2f2f2}
.projects .project h3{font-size:clamp(32px,3.4vw,46px);line-height:1.12;margin:0;max-width:650px}
.projects .project-copy>div{max-width:650px}
.projects .project-location{font-size:14px;color:#eeeeee;margin:12px 0 0}
.projects .project-copy .button{margin-top:22px;color:#343434;background:#fffffff0}
.project-copy:focus-within{opacity:1!important;transform:none!important}
.sequence-controls,.services-section .sequence-controls{display:flex;justify-content:center;gap:24px;min-height:58px;margin:0 auto;padding-top:12px}
.sequence-controls button{flex:1;max-width:145px;min-width:0;min-height:44px;padding:10px 0 8px;font-size:11px;font-weight:500;text-align:left}
.sequence-controls button:before{background:var(--line);height:1px}
.sequence-controls button:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--blue);transform:scaleX(var(--progress,0));transform-origin:left}
.sequence-controls button[aria-current="true"]:before{background:var(--line)}
.sequence-controls button[aria-current="true"]{color:var(--ink)}
.project-navigation{min-height:58px;margin:0 auto;padding-top:12px}
.all-projects{font-size:13px;min-height:44px}
.sequence-arrows button{min-width:44px;min-height:44px;clip-path:none;border-radius:8px}
.sequence-status{font-size:12px}
.project-index{bottom:68px;max-height:calc(100% - 100px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #22222214}
.project-index a{min-height:44px;font-size:14px}
.team .team-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;overflow:clip}
.team .person{position:relative;display:block;margin:0;min-height:0;height:450px;border-radius:0;overflow:clip}
.team .portrait,.team.is-scroll .portrait{width:100%;height:100%;max-width:none;aspect-ratio:auto;mask-image:none;transform:none;clip-path:none}
.team .portrait img,.team.is-scroll .portrait img{filter:var(--photo);object-fit:cover;object-position:center 32%;transform:none;transition:transform 1.2s var(--ease)}
.team .person figcaption,.team.is-scroll .person figcaption{position:absolute;inset:auto 0 0;min-height:0;padding:70px 24px 24px;text-align:left;background:linear-gradient(transparent,#171717b8 55%,#171717ed);color:white;opacity:var(--copy-opacity,1);transform:translateY(var(--copy-y,0px))}
.team .person h3,.team.is-scroll .person h3{font-size:27px;line-height:1.2}
.team .person h3 span,.team.is-scroll .person h3 span{font-size:14px;line-height:1.4;margin-top:8px;color:#e5e5e5}
.team.is-scroll .team-stage{display:block;flex:0 1 670px;width:min(460px,calc(100% - var(--content-gutter)));height:670px;min-height:0;margin:0 auto;border-radius:0}
.team.is-scroll .person{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;min-height:0;margin:0;padding:0;opacity:1;visibility:var(--scene-visibility,hidden);transform:translate3d(var(--scene-x,0px),0,0);pointer-events:none}
.team.is-scroll .person.is-current{pointer-events:auto}
.team-controls{width:min(460px,calc(100% - var(--content-gutter)));gap:24px;margin-top:6px}
.team-controls button{text-align:center;font-size:12px}
.system{--pin-bottom:22px}.system.is-scroll .sequence-pin{justify-content:center}
.system .craft-stage{flex:0 0 auto;width:min(680px,calc(100% - var(--content-gutter)));gap:54px;padding:0;margin:38px auto 20px;overflow:visible}
.system .craft-step{min-height:0;opacity:1;visibility:visible;transform:none}
.craft-step h3{font-size:clamp(32px,4vw,52px);line-height:1.1;margin-bottom:12px}
.craft-step p:not(.eyebrow){font-size:14px;line-height:1.5}
.craft-step>.wrap{width:100%}
.process-arrow{height:28px;top:calc(100% + 13px);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.system .sequence-controls{flex:0 0 auto;margin-top:26px;max-width:680px}
.material-section.material-campaign{padding:0}
.material-campaign h2{font-size:clamp(42px,4.5vw,64px);line-height:1.12}
.material-campaign .material-heading{margin-bottom:60px}
.material-campaign .material-summary{margin-top:48px}
.contact{padding:0;overflow:clip}
.contact>.wrap{opacity:1;transform:none}
.closing-stage{min-height:640px;overflow:visible}
.closing-copy{width:620px;padding:60px 0 100px}
.contact h2{font-size:clamp(60px,6.2vw,84px);line-height:1.06}
.closing-visual{inset:-60px -100px -30px auto;width:96%;mask-image:linear-gradient(90deg,transparent,#000 32%,#000 75%,transparent),linear-gradient(180deg,transparent,#000 26%,#000 70%,transparent)}
.closing-visual img{filter:var(--photo)}
.contact-invitation{margin-top:64px}.contact-invitation h3{font-size:28px;line-height:1.3;margin:0 0 24px}
.contact-actions{margin-top:0;max-width:600px;gap:16px;align-items:stretch}
.contact-action{clip-path:none;border-radius:10px;min-height:150px;padding:24px;gap:18px;border:1px solid var(--line)}
.contact-call{background:#f2f2f2;color:var(--ink)}
.contact-mail{background:var(--blue);color:#222222;border-color:var(--blue)}
.contact-label{font-size:14px;font-weight:500}.contact-number{font-size:32px;font-weight:500}.contact-email{font-size:21px;font-weight:500}
.contact-address{grid-template-columns:1fr 1fr;gap:100px;margin-top:100px;padding-top:40px}
.contact-address .eyebrow{font-size:14px;font-weight:500}
.visit-address address{font-size:22px}.visit-address address strong{font-size:17px;font-weight:500}
.company-details dd{font-size:18px;font-weight:500}
.footer{margin-top:var(--section-gap);padding:24px 0;gap:24px;min-height:96px}
.footer-brand{width:118px}.footer p,.footer nav{font-size:12px}
.footer p{order:3}.footer nav{margin-left:auto;gap:24px}.footer nav a{display:flex;align-items:center;min-height:44px}
.mobile-contact{display:none}
.project-detail .project-intro h1,.knowledge-intro h1{font-size:clamp(55px,6.6vw,88px);line-height:1.06}
.project-detail .project-description{max-width:590px;font-size:19px;line-height:1.8}
.project-detail .project-scope,.knowledge-approach{margin-block:var(--section-gap)}
.project-detail .project-end,.knowledge-content .project-end{margin-top:var(--section-gap)}
.project-shot img{border-radius:0}
/* One neutral photographic treatment, including detail pages and enlarged photos. */
.project-shot img,.project-detail .project-gallery img,.gallery-dialog .gallery-full{filter:var(--photo)}
.legal-content,.privacy-copy{max-width:780px}.legal-page .footer{margin-top:100px}
.gallery-dialog{width:min(1200px,calc(100% - 40px));height:auto;max-height:calc(100dvh - 40px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:14px;box-shadow:0 30px 100px #22222245}
.gallery-dialog::backdrop{background:#222222b8;backdrop-filter:blur(10px)}
.gallery-dialog .gallery-full{max-height:calc(100dvh - 190px)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.team .person:hover .portrait img{transform:scale(1.035)}}
@media(prefers-reduced-motion:no-preference){
 .hero-content>*{animation:mehrl-enter 1s var(--ease) both}.hero-content>.hero-logo{animation-delay:.1s}.hero-content>h1{animation-delay:.2s}
 .hero-stage{animation:mehrl-photo 1.8s var(--ease) both}
 [data-reveal].reveal-ready{opacity:0;transform:translate3d(var(--reveal-x,0px),var(--reveal-y,28px),0);transition:opacity .9s var(--ease),transform .9s var(--ease)}
 [data-reveal].is-revealed{opacity:1;transform:none}
}
@keyframes mehrl-enter{from{opacity:0;transform:translateY(22px);filter:blur(3px)}to{opacity:1;transform:none;filter:none}}
@keyframes mehrl-photo{from{opacity:0;transform:translateY(18px) scale(1.025)}to{opacity:1;transform:none}}
@media(max-width:1100px){:root{--content-gutter:80px}.hero-stage{right:-40px}.closing-visual{right:-40px}}
@media(max-width:960px){
 .header{flex-wrap:nowrap;padding-inline:40px}
 .js .menu-toggle{display:flex;align-items:center;gap:12px;min-height:44px;min-width:44px;padding:8px 0 8px 12px;border:0;background:none;font-size:12px}
 .menu-toggle span{display:block;width:20px;height:8px;border-block:1px solid currentColor;transition:transform .25s}
 .menu-toggle[aria-expanded="true"] span{transform:rotate(-45deg)}
 .js .header nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100dvh - var(--header));overflow:auto;padding:16px 40px 24px;background:#fafafa;border-bottom:1px solid var(--line);box-shadow:0 20px 35px #22222214}
 .js .header nav.is-open{display:block}.header nav a{padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
 html:not(.js) .header{height:auto;flex-wrap:wrap}html:not(.js) .header nav{display:flex;flex-wrap:wrap;gap:0 20px}
}
@media(max-width:760px){
 :root{--content-gutter:40px;--section-gap:112px;--header:70px;--pin-top:82px;--pin-bottom:88px}
 html{scroll-padding-top:88px}
 .header{padding-inline:20px}.brand{width:110px}.js .header nav{padding-inline:20px}
 .home-page main{row-gap:112px}.section-heading h2{font-size:clamp(34px,7.3vw,48px)}
 .hero{margin:6px 0 0;min-height:0;height:auto;padding:0;overflow:visible}
 .hero-frame{width:calc(100% - 24px);min-height:500px;height:calc(100svh - 168px);max-height:660px;align-items:stretch;border-radius:0;overflow:clip;background:#f4f4f4}
 .hero.is-mobile-scroll{height:calc(min(660px,100svh - 168px) + 52svh)}
 .hero.is-mobile-scroll .hero-frame{position:sticky;top:82px;min-height:0;transform:scale(var(--hero-card-scale,1))}
 .hero-content{display:flex;flex-direction:column;justify-content:flex-end;padding:30px 24px;width:100%;height:100%;z-index:2;opacity:1;transform:none}
 .hero-content>*{animation:none}.hero-content>.eyebrow{font-size:9px;letter-spacing:.08em;margin:0 0 20px;color:#444444}
 .hero-logo{max-width:100%;width:260px;margin:0 0 18px}
 .hero h1{font-size:clamp(32px,8.5vw,48px);line-height:1.09;margin-top:0;color:#343434;text-wrap:balance}
 .hero.is-mobile-scroll h1{opacity:var(--hero-copy,0);transform:translateY(var(--hero-copy-y,36px))}
 .hero-stage{inset:0;width:100%;height:100%;animation:none;border-radius:0;overflow:clip}
 .stage-image{mask-image:none}.stage-image img{filter:var(--photo);object-position:58% center;transform:scale(var(--hero-zoom,1.08))}
 .hero-stage:after{background:linear-gradient(180deg,transparent 30%,#ffffff10 48%,#fffffff5 100%)}
 .hero-stage figcaption{display:none}
 .sequence-pin>.section-heading,.projects.is-scroll .section-heading{margin-bottom:16px}
 .sequence-pin>.section-heading h2,.projects.is-scroll .section-heading h2{font-size:clamp(24px,7vw,32px);line-height:1.12}
 .sequence-stage.service-stage,.sequence-stage.project-stage{border-radius:0}
 .service-panel,.projects .project{height:500px;min-height:0}
 .service-stage .service-copy,.services-section.is-scroll .service-copy,.projects .project-copy,.projects.is-scroll .project .project-copy{inset:auto 22px 26px;padding:0}
 .service-copy h3,.projects .project h3{font-size:clamp(28px,8vw,38px);line-height:1.07;max-width:100%;margin-bottom:12px;overflow-wrap:anywhere}
 .service-copy .eyebrow{font-size:10px;margin-bottom:12px}
 .service-copy>p:not(.eyebrow){font-size:14px;line-height:1.5;max-width:300px}
 .projects .project-location{font-size:12px;margin:0;line-height:1.5}
 .projects .project-copy .button{margin-top:16px;min-height:44px;font-size:12px;padding:9px 16px}
 .sequence-controls,.services-section .sequence-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;min-height:44px;padding-top:8px}
 .sequence-controls button{font-size:10px;max-width:none;min-height:44px;padding:8px 0;line-height:1.3}
 .project-navigation{min-height:52px;padding-top:8px}.sequence-arrows{gap:12px}
 .project-index{grid-template-columns:1fr 1fr;padding:16px;gap:4px 16px;bottom:60px}
 .project-index a{font-size:12px}.all-projects{font-size:12px}
 .team .team-stage{grid-template-columns:1fr;gap:36px}
 .team .person{width:min(350px,100%);height:450px;margin-inline:auto}
 .team.is-scroll .team-stage{width:min(380px,calc(100% - 40px));flex:0 1 650px;height:650px;max-height:650px}
 .team.is-scroll .person{width:100%;height:100%;margin:0}
 .team-controls{width:min(380px,calc(100% - 40px));gap:16px;padding-top:8px;margin-top:4px}
 .team-controls button{font-size:11px}
 .system .craft-stage{gap:44px;margin-top:26px;margin-bottom:0}
 .system{--pin-top:78px;--pin-bottom:88px}
 .craft-step h3{font-size:32px;margin-bottom:8px}.craft-step p:not(.eyebrow){font-size:13px;line-height:1.45;max-width:100%}
 .craft-step .eyebrow{font-size:10px;margin-bottom:6px}.process-arrow{height:23px;top:calc(100% + 10px)}
 .system .sequence-controls{margin-top:22px}
 .material-campaign .material-heading{text-align:center;margin-bottom:44px}
 .material-campaign h2{font-size:clamp(34px,8.3vw,48px);overflow-wrap:normal;hyphens:none}
 .material-campaign .material-summary{margin-top:32px}.material-summary .material-intro{font-size:20px}
 .closing-stage{display:block;min-height:0}.closing-copy{padding:0;width:100%}
 .contact h2{font-size:clamp(42px,11.5vw,65px);line-height:1.06}
 .contact-invitation{margin-top:44px}.contact-invitation h3{font-size:25px;margin-bottom:22px}
 .contact-actions{grid-template-columns:1fr;gap:12px;margin-top:0}
 .contact-action{min-height:120px;padding:22px 20px;gap:14px}.contact-label{font-size:14px}.contact-number{font-size:clamp(24px,7.5vw,30px)}.contact-email{font-size:clamp(19px,5.9vw,23px)}
 .contact-number br,.contact-email br{display:none}
 .closing-visual{position:relative;inset:auto;width:calc(100% + 40px);height:clamp(290px,80vw,450px);margin:24px -20px 0;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 28%,#000 68%,transparent)}
 .contact-address{grid-template-columns:1fr;gap:48px;margin-top:44px;padding-top:36px}
 .footer{flex-wrap:wrap;justify-content:flex-start;gap:16px;padding-bottom:24px}.footer nav{margin:0 0 0 auto}.footer p{width:100%;order:3}.footer-brand{width:100px}
 .home-page .footer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 .mobile-contact{position:fixed;z-index:25;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;background:#fffffff0;border:1px solid #e1e1e1;border-radius:12px;backdrop-filter:blur(18px);box-shadow:0 8px 40px #22222220}
 .mobile-contact a{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:11px 7px;border-radius:7px;font-size:13px;line-height:1.3;color:#343434}
 .mobile-contact a:first-child{background:var(--blue);color:#222222}.mobile-contact a:hover{text-decoration:none;background:#eeeeee}.gallery-open .mobile-contact{display:none}
 .project-detail .project-intro h1,.knowledge-intro h1{font-size:clamp(36px,10vw,62px)}
 .project-detail .project-description{font-size:17px}.project-detail .project-scope{grid-template-columns:1fr;gap:36px}
 .project-detail .project-gallery{grid-template-columns:1fr;gap:48px}
 .gallery-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:16px}
}
@media(max-height:800px){
 .system .craft-stage{gap:34px;margin-top:22px}.craft-step h3{font-size:32px;margin-bottom:8px}
 .process-arrow{height:20px;top:calc(100% + 7px)}.system .sequence-controls{margin-top:20px}
}
@media(max-width:760px) and (max-height:700px){
 .service-stage .service-copy,.services-section.is-scroll .service-copy,.projects .project-copy,.projects.is-scroll .project .project-copy{inset:auto 20px 20px}
 .service-copy h3,.projects .project h3{font-size:27px}
 .service-copy>p:not(.eyebrow){font-size:13px}.service-copy .eyebrow{margin-bottom:8px}
 .system .craft-stage{gap:28px;margin-top:16px}.craft-step h3{font-size:28px}.craft-step p:not(.eyebrow){font-size:12px}
 .system .sequence-controls{margin-top:14px}.system .craft-stage{gap:34px}.system.is-scroll .process-arrow,.system .process-arrow{height:16px;top:calc(100% + 6px)}
}
@media(max-width:360px){.hero-content{padding:26px 18px}.hero h1{font-size:30px}.hero-logo{width:225px}.sequence-controls button{font-size:9px}.team .person h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){.hero-content>*,.hero-stage{animation:none}.hero-content,.stage-image img,.contact>.wrap,[data-reveal]{opacity:1;transform:none}.team .portrait img{transition:none}}

/* Updated guide: two finite, independently measured contact pauses. */
.contact-scroll-story{display:contents}
.contact-scroll-story.is-contact-scroll{display:block;position:relative}
.is-contact-scroll>.closing-stage,.is-contact-scroll>.contact-address{position:sticky;top:var(--contact-top)}
.is-contact-scroll>.closing-stage{height:var(--contact-frame);min-height:0;display:flex;align-items:center}
.is-contact-scroll .closing-copy{padding-block:24px;opacity:1;transform:none;transition:none}
.is-contact-scroll .contact-invitation h3{opacity:var(--invitation-reveal,0);transform:translateY(calc((1 - var(--invitation-reveal,0))*20px))}
.is-contact-scroll .contact-action{opacity:var(--action-reveal,0);transform:translateY(calc((1 - var(--action-reveal,0))*36px));pointer-events:var(--action-pointer,none)}
.is-contact-scroll .contact-action:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.is-contact-scroll .closing-stage:focus-within .contact-action,.is-contact-scroll .closing-stage:focus-within .contact-invitation h3{opacity:1;transform:none;pointer-events:auto}
.contact-visit-story.is-contact-scroll{margin-top:100px}
.contact-visit-story.is-contact-scroll>.contact-address{margin-top:0;opacity:1;transform:none;transition:none}
@media(max-width:1100px) and (min-width:761px){.contact-address{gap:56px}}
@media(max-width:760px){
 .is-contact-scroll>.closing-stage{justify-content:center}
 .is-contact-scroll .closing-copy{padding-block:12px}
 .is-contact-scroll .closing-visual{position:absolute;inset:0 -20px;width:calc(100% + 40px);height:100%;margin:0;z-index:-1;mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent)}
 .is-contact-scroll .closing-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#ffffffc9,#ffffff80)}
 .contact-visit-story.is-contact-scroll{margin-top:44px}
 .contact-visit-story.is-contact-scroll>.contact-address{gap:36px}
 .contact-visit-story.is-contact-scroll .visit-address address{font-size:16px}
 .contact-visit-story.is-contact-scroll .visit-address address strong{margin-bottom:12px}
 .contact-visit-story.is-contact-scroll .directions{margin-top:12px;font-size:18px}
 .contact-visit-story.is-contact-scroll .company-details dd{font-size:16px}
}
@media(max-width:760px) and (max-height:740px){
 .is-contact-scroll .closing-copy>.eyebrow{font-size:10px;margin-bottom:16px}
 .is-contact-scroll .closing-copy h2{font-size:38px;line-height:1.06}
 .is-contact-scroll .contact-invitation{margin-top:24px}
 .is-contact-scroll .contact-invitation h3{font-size:22px;margin-bottom:16px}
 .is-contact-scroll .contact-action{min-height:90px;padding:16px 20px;gap:10px}
 .is-contact-scroll .contact-number{font-size:clamp(24px,7vw,28px)}
 .contact-visit-story.is-contact-scroll>.contact-address{gap:28px;padding-top:24px}
}

/* MEHRL photo frames: straight edges, with two diagonal corner cuts. */
:root{--photo-corner:24px;--photo-outline:polygon(0 0,calc(100% - var(--photo-corner)) 0,100% var(--photo-corner),100% 100%,var(--photo-corner) 100%,0 calc(100% - var(--photo-corner)))}
.service-stage,.project-stage,.service-panel,.projects .project,.team .person,.team.is-scroll .team-stage,.project-shot>a{clip-path:var(--photo-outline)}
.project-shot>a:focus-visible{outline-offset:-4px}
@media(max-width:760px){
 :root{--photo-corner:18px}
 .hero-frame{clip-path:var(--photo-outline)}
}

/* Project text rises over the photograph, following the service sequence. */
.projects{--project-height:min(950px,calc((100vw - var(--content-gutter))*.95))}
.projects .project{height:var(--project-height);max-height:950px;background:#fff}
.projects.is-scroll .project-stage{flex:0 1 auto;height:var(--project-height);max-height:950px;background:#fff}
.projects.is-scroll .project{height:100%}
.projects.is-scroll .sequence-pin{justify-content:center}
.projects.is-scroll .project-index{top:50%;bottom:auto;transform:translateY(-50%)}
.projects .reference-image,.projects.is-scroll .reference-image{inset:0;height:100%;background:#fff;clip-path:var(--photo-outline)}
.projects .reference-image img{object-fit:cover;object-position:center;transform:none}
.projects .project-copy,.projects.is-scroll .project .project-copy{inset:auto 38px 34px;min-height:0;display:block;color:#fff}
.projects .project h3{font-size:clamp(32px,3.4vw,46px);color:#fff}
.projects .project-location{color:#eee;margin:12px 0 0}
.projects .project-copy .button{margin-top:22px;background:#fffffff0;color:var(--ink)}
@media(max-width:760px){
 .projects{--project-height:500px}
 .projects .project-copy,.projects.is-scroll .project .project-copy{inset:auto 22px 26px}
 .projects .project h3{font-size:clamp(28px,8vw,38px);margin:0}
 .projects .project-location{font-size:12px;margin-top:8px}
 .projects .project-copy .button{margin-top:16px;min-height:44px}
}

/* Keep the family title, portrait and controls together as one centered group. */
.team.is-scroll .sequence-pin{justify-content:center}
.team.is-scroll .sequence-pin>.section-heading{margin-bottom:16px}

/* Lower the hero signature by one logo height into the white image fade. */
@media(min-width:761px){.hero-content{position:relative;top:170px}}
@media(max-width:760px){
 .hero-frame{height:calc(100svh - 266px);max-height:562px;overflow:visible;clip-path:none}
 .hero.is-mobile-scroll{height:calc(min(562px,100svh - 266px) + 52svh)}
 .hero-stage{clip-path:var(--photo-outline)}
 .hero-content{position:relative;top:98px}
 .hero:not(.is-mobile-scroll){margin-bottom:98px}
}

/* More white space between the main homepage sections. */
.home-page{--section-gap:520px}
.home-page main{row-gap:var(--section-gap)}
@media(max-width:760px){.home-page{--section-gap:220px}}

/* Give the hero signature more breathing room below the logo. */
.hero-logo{margin-bottom:80px}
.hero h1{font-size:clamp(42px,4.6vw,64px)}
@media(max-width:760px){
 .hero-logo{margin-bottom:48px}
 .hero h1{font-size:clamp(28px,7.6vw,42px)}
}
