/* O frame da hero fica preso por um trecho curto; a galeria se move por trás. */
.hero-scroll-stage{position:relative;padding-bottom:var(--hero-pin-range,45svh)}
.hero-scroll-stage>.hero{position:sticky;top:var(--hero-pin-top,0);overflow:clip}
.hero-scroll-stage .hero-photo{inset:0 0 -180px;transform:translate3d(0,var(--hero-background-shift,0px),0);will-change:transform}
@media(max-width:767px){.hero-scroll-stage{--hero-pin-range:30svh}.hero-scroll-stage .hero-photo{inset:0 0 -110px}}
@media(prefers-reduced-motion:reduce){.hero-scroll-stage{height:auto!important;padding-bottom:0!important}.hero-scroll-stage>.hero{position:relative;top:auto}.hero-scroll-stage .hero-photo{inset:0;transform:none;will-change:auto}}

/* Menu fixo acompanha toda a página, acima da imagem e das seções. */
.nav{position:fixed;z-index:10;transition:opacity .35s ease,visibility .35s ease}
@media(prefers-reduced-motion:reduce){.nav{transition:none}}

@media(max-width:767px){.nav{top:32px}}

/* A faixa preta e a sombra só aparecem após sair do topo da página. */
.nav::before{content:'';position:fixed;top:0;left:0;right:0;height:var(--menu-backdrop-height,144px);background:#050505;box-shadow:inset 0 -1px 0 #ffffff14,0 10px 24px #00000066,0 28px 56px #0000004d;opacity:0;z-index:-1;pointer-events:none;transition:opacity .4s ease}
.nav.menu-scrolled::before{opacity:1}
@media(prefers-reduced-motion:reduce){.nav::before{transition:none}}

/* Menu persistente com marcas originais e detalhe dourado após rolagem. */
.nav::before{border-bottom:1px solid var(--gold)}
.nav.menu-scrolled .brand>.brand-ph-logo{filter:none}
.nav.menu-scrolled .brand>.brand-ci-logo{filter:none;border-radius:4px}
main section[id]{scroll-margin-top:164px}
@media(max-width:767px){main section[id]{scroll-margin-top:130px}}
