/* Preserve the desktop visual sequence in a portrait viewport. */
@media(max-width:700px){
 .site-header{background:linear-gradient(#0008,transparent);color:#fff;border:0}.site-header.solid{background:#fffffff5;color:#202124}.site-header.story-dark{background:linear-gradient(#0008,transparent);color:#fff}.site-header.story-graphite{background:#202124;color:#fff}.header-quote{background:#fff;color:#202124}
 .walkthrough,.walkthrough-stage{min-height:0;background:#202124;color:#fff}.walkthrough-stage{height:100svh}.scrub-enabled .walkthrough{height:350svh}
 .walkthrough-media{inset:0;width:100%;height:100%;aspect-ratio:auto;background:#202124}.hero-poster,#walkthrough-video{object-fit:cover;object-position:var(--focus-x,62%) center}
 .hero-shade{display:block;background:linear-gradient(0deg,#101214d9,transparent 75%)}.hero-copy{top:auto;bottom:155px;opacity:var(--copy-opacity);transform:translateY(calc(var(--journey)*-30px));display:block}.hero-copy h1{font-size:clamp(36px,10.7vw,54px);line-height:1.02}.hero-copy p{font-size:13px;max-width:290px;margin-top:18px}
 .walk-controls{bottom:max(24px,env(safe-area-inset-bottom));text-shadow:0 1px 6px #000}.motion-toggle,.skip-intro{background:#202124b8;color:#fff;border-color:#ffffff70}.walk-progress{background:#ffffff38}.walk-progress span{background:#fff}.video-loading{background:#202124b8;color:#fff;max-width:85%}.walk-range{accent-color:white}
 .scrub-enabled .room-chapter{height:380svh}.room-stage{height:100svh;min-height:0}.room-stage:before{background:#202124}.room-media{max-height:none}.room-media img,.room-media video{object-fit:cover;object-position:50% center}
 .room-shade{display:block;background:linear-gradient(0deg,#101214d9,transparent 75%)}.room-copy{top:auto;bottom:235px!important;left:22px;right:22px}.room-chapter .room-copy h2{font-size:45px}.room-copy h2 br{display:block}.room-copy h2 em{margin:0}.room-description{max-width:260px;font-size:12px}.room-points{bottom:174px!important}.room-scrubber{bottom:130px}.room-bottom{bottom:65px}
 .scrub-enabled .immersive-gallery{height:310svh;margin-top:-100svh}.gallery-stage{position:sticky;top:0;height:100svh}.gallery-viewport{touch-action:pan-y}
 .scrub-enabled .execution-chapter{margin-top:-100svh;height:150svh}.execution-stage{height:100svh;min-height:0}
 .chapter-dock{bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:900px) and (min-height:600px){
 .services-pinned{height:300svh}.services-pinned .services-stage{position:sticky;top:80px;height:calc(100svh - 80px);display:flex;flex-direction:column}
 .services-pinned .services-index{padding:12px 22px;gap:12px;background:#202124;position:relative;z-index:4}.services-pinned .services-index a{font-size:9px}.services-pinned .services-index a:after{bottom:-13px}.services-pinned .services-index span{margin-bottom:3px}
 .services-pinned .services-panels{position:relative;flex:1;min-height:0;overflow:hidden}.services-pinned .services-panel{position:absolute;inset:0;background:transparent;pointer-events:none;border:0;display:block}
 .services-pinned .services-photo{position:absolute;inset:0;top:0;min-height:0;max-height:none;height:100%;width:100%;transform:translate3d(0,var(--service-photo-y,0%),0);will-change:transform}
 .services-pinned .services-photo:after{inset:0;background:linear-gradient(0deg,#101214f5 0%,#101214cc 45%,#10121410 100%)}.services-pinned .services-photo-word{display:none}.services-pinned .services-photo figcaption{bottom:8px;font-size:5px}
 .services-pinned .services-copy{position:absolute;inset:auto 0 0;background:transparent;padding:20px 22px 64px;min-height:0;border:0;z-index:3}.services-pinned .services-copy>*{will-change:transform,opacity}.services-pinned .services-number{font-size:9px;margin-bottom:15px}.services-pinned .services-copy h3{font-size:34px;max-width:400px;margin-bottom:15px}.services-pinned .services-claim{font-size:25px;margin-bottom:14px}.services-pinned .services-description{font-size:12px;line-height:1.5;color:#eee}.services-pinned .services-copy ul{margin:16px 0 8px;font-size:10px;color:#eee}.services-pinned .services-copy li{padding:7px 0}.services-pinned .services-copy .story-link{font-size:11px;margin-top:0;padding:12px 0}.services-pinned .service-active .services-copy a{pointer-events:auto}.services-pinned .services-bottom{display:none}
}
@media(max-width:900px) and (min-height:600px) and (max-height:730px){.services-pinned .services-copy h3{font-size:28px}.services-pinned .services-claim{font-size:22px;margin-bottom:10px}.services-pinned .services-copy{padding-top:12px;padding-bottom:50px}.services-pinned .services-number{margin-bottom:10px}.services-pinned .services-copy ul{margin:10px 0 5px}}
@media(max-width:700px) and (max-height:650px){.hero-copy{bottom:140px}.hero-copy h1{font-size:36px}.hero-copy p{font-size:12px}.room-copy{bottom:220px!important}.room-chapter .room-copy h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){.hero-copy{opacity:1;transform:none}.scrub-enabled .walkthrough{height:100svh}.gallery-viewport{touch-action:auto}}
body:not(.scrub-enabled) .gallery-viewport{touch-action:auto}

@media(max-width:700px){
 .hero-poster{object-position:var(--poster-focus,68%) center}#walkthrough-video{object-position:var(--video-focus,69%) center}
 .room-chapter.is-bridging .room-media{position:fixed!important;left:0!important;top:0!important;width:var(--photo-w,100vw);height:100svh;border-radius:0}
}

/* Quiet controls retain a generous hit area without obscuring the photograph. */
.site-header .header-quote,.site-header.solid .header-quote{background:transparent;color:inherit;border:0;padding:12px 0;min-height:44px;gap:12px}
.header-quote:hover{text-decoration:underline;text-underline-offset:6px}
.motion-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:0;border-radius:50%;border:1px solid #ffffff70;background:#20212435;color:white;font-size:17px;line-height:1;backdrop-filter:blur(6px)}
.motion-toggle[hidden]{display:none}.skip-intro{background:transparent;border:0;border-radius:0;color:inherit;min-height:44px;display:inline-flex;align-items:center;padding:8px 0;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#ffffff70}
@media(max-width:700px){
 .site-header .header-quote{font-size:11px;gap:8px}.site-header{gap:18px}
 .room-media img,.room-media video{object-position:var(--room-focus,63%) center}
 .walk-controls .motion-toggle{background:#20212435;border-color:#ffffff70;color:white;padding:0;font-size:17px}
 .walk-controls .skip-intro{background:transparent;border:0;color:white;padding:8px 0;font-size:10px}
 .walk-left{flex-wrap:nowrap;gap:15px}.walk-left .explore-link{margin-right:auto}
}

/* Minimal opening and text-only navigation controls. */
.walk-controls{justify-content:flex-end}.walk-left{justify-content:flex-end;width:100%}
.gallery-controls{gap:14px}.gallery-controls button{width:auto;min-width:44px;height:44px;border:0;border-radius:0;background:transparent;color:white;font-size:11px;padding:8px 0;text-decoration:underline;text-underline-offset:5px}.gallery-controls button:hover{background:transparent;color:white}
@media(max-width:700px){.hero-copy{bottom:calc(clamp(40px,6svh,56px) + env(safe-area-inset-bottom,0px))}.gallery-footer{grid-template-columns:1fr;gap:9px}.gallery-controls{justify-content:space-between;order:0}.gallery-credit{order:1;max-width:none}.gallery-hint{display:none}.gallery-footer{bottom:26px}.gallery-panel figcaption{bottom:150px}}

/* Keep the same decoded video and crop through the mobile room handoff. */
.room-status:empty{display:none}
.room-status{position:absolute;bottom:90px;left:var(--story-gutter);z-index:7;font-size:11px;color:white}
@media(max-width:700px){
 .shared-film #room-film{display:none}
 .video-ready .room-media #walkthrough-video{opacity:1;object-position:var(--room-focus,63%) center}
 .room-media #walkthrough-video{object-position:var(--room-focus,63%) center}
 .room-chapter.is-bridging .room-shade{position:fixed;inset:0;opacity:calc(var(--room-copy,0) * var(--photo-ui,1))!important}
 .room-copy{bottom:145px!important}
 .room-bottom{bottom:55px;display:block}
}

.gallery-footer .gallery-controls{grid-column:2}
@media(max-width:700px){.gallery-footer .gallery-controls{grid-column:1}}

/* Stable scroll distances; dynamic painted height follows Safari's toolbar. */
.scroll-viewport{position:fixed;inset:0 auto auto 0;width:0;height:100svh;visibility:hidden;pointer-events:none}
@media(max-width:700px){
 .scrub-enabled .walkthrough-stage,.scrub-enabled .room-stage{height:100dvh}
 .scrub-enabled .room-chapter.is-bridging .room-media{height:100dvh}
 .scrub-enabled .room-chapter:not(.is-photo) .room-media{height:100dvh}
}

/* Directional header, on both desktop and mobile. */
.site-header{transition:transform .28s cubic-bezier(.22,.61,.36,1),background .2s,color .2s;transform:translateY(0)}
.site-header.header-scroll-hidden:not(.menu-open){transform:translateY(calc(-100% - 2px));pointer-events:none}
@media(prefers-reduced-motion:reduce){.site-header{transition:none}}

/* Align the menu destination with the first pinned service, not its introduction. */
#servicos{scroll-margin-top:-20px}
@media(max-width:700px){#servicos{scroll-margin-top:-5px}}

/* Desktop entrance: 200vh of scroll instead of 250vh; mobile keeps its existing pace. */
@media(min-width:701px) and (prefers-reduced-motion:no-preference){.scrub-enabled .walkthrough{height:300svh}}

/* Desktop: one decoded film through the doorway and a shorter editorial rhythm. */
@media(min-width:701px){
 .shared-film #room-film{display:none}
 .video-ready .room-media #walkthrough-video{opacity:1;object-position:50% center}
 .room-chapter.is-bridging .room-shade{position:fixed;inset:0;opacity:calc(var(--room-copy,0) * var(--photo-ui,1))!important}
}
@media(min-width:701px) and (prefers-reduced-motion:no-preference){
 .scrub-enabled .room-chapter{height:330svh}
 .scrub-enabled .immersive-gallery{height:275svh}
 .scrub-enabled .execution-chapter{height:125svh}
 .services-pinned{height:250svh}
 .room-turn-anchor{top:calc(35svh + 100px)}
}

/* Hold the facade while the first video frame is decoded, without queuing gestures. */
html.entrance-loading{overflow:hidden;overscroll-behavior:none}
html.entrance-loading body{position:fixed;inset:0 0 auto;width:100%;overflow:hidden}
.entrance-loading-note{display:none}
.entrance-loading .entrance-loading-note{display:block;position:absolute;z-index:4;top:110px;left:var(--page-pad);font-size:11px;color:white;text-shadow:0 1px 8px #000;letter-spacing:.03em}
.entrance-loading .video-loading{display:none!important}
@media(max-width:700px){.entrance-loading .entrance-loading-note{top:90px;font-size:10px}}

.entrance-fallback .video-loading{display:none!important}
