/* VIS-006: the original fiscal scene retains its own styles and content. */
.home-stage { position:relative; isolation:isolate; --home-progress:0; }
.home-stage [data-home-status] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.hero-family { display:none; }
.home-stage.is-ready { display:grid; touch-action:pan-y; }
.home-stage.is-ready #home-fiscal { grid-area:1/1; min-width:0; }
.home-stage.is-ready .hero-family { display:block; grid-area:1/1; position:relative; min-width:0; min-height:100svh; z-index:3; pointer-events:none; background:#efefec; color:#1e2430; opacity:clamp(0,var(--home-progress),1); }
.home-stage.is-ready .hero-family { opacity:1; mask-image:linear-gradient(to right,transparent calc((1 - var(--home-progress))*114% - 14%),#000 calc((1 - var(--home-progress))*114%)); }
.home-stage[data-active="1"] .hero-family { pointer-events:auto; }
.home-stage[data-active="1"] #home-fiscal { pointer-events:none; }
.home-stage.is-ready #home-fiscal > .hero-modern__inner,
.home-stage.is-ready #home-fiscal > .hero-journey { opacity:clamp(0,calc(1 - var(--home-progress)*2),1); }
.hero-family .hero-modern__inner,.hero-family .hero-journey { opacity:clamp(0,calc((var(--home-progress) - .28)/.72),1); }
.hero-family::before { background:linear-gradient(90deg,rgba(239,239,236,.98),rgba(239,239,236,.90) 37%,rgba(239,239,236,.08) 74%),linear-gradient(0deg,rgba(239,239,236,.85),transparent 32%); }
.hero-family .hero-modern__backdrop img { object-position:center 53%; }
.hero-family .hero-modern__copy::before { background-image:url('../images/correia-advocacia-monogram-dark.png'); }
.hero-family .hero-title { color:#1e2430; }
.hero-family .hero-title em { color:#927020; }
.hero-family .hero-modern__lead { color:#414958; }
.hero-family .hero-modern__aside { background:linear-gradient(90deg,rgba(239,239,236,.88),rgba(239,239,236,.58)); border-color:#9e7926; }
.hero-family .hero-modern__aside span { color:#775a1d; }
.hero-family .hero-modern__aside p { color:#323b49; }
.hero-family .button-secondary { color:#293240; border-color:#6f7680; background:rgba(255,255,255,.38); }
.hero-family .button-secondary:hover { background:rgba(255,255,255,.72); }
.hero-family .hero-journey { background:rgba(239,239,236,.88); border-color:rgba(129,103,47,.35); }
.hero-family .hero-journey > div { border-color:rgba(129,103,47,.2); }
.hero-family .hero-journey span { color:#806121; }
.hero-family .hero-journey strong { color:#1e2430; }
.hero-family .hero-journey p { color:#4b5360; }
.home-edge,.home-controls { display:none; }
.is-ready .home-edge { display:flex; position:absolute; z-index:5; right:0; top:37%; width:46px; height:184px; align-items:center; justify-content:center; border:1px solid rgba(221,225,229,.3); border-right:0; border-radius:22px 0 0 22px; color:#fff; background:rgba(239,239,236,.10); backdrop-filter:blur(12px); cursor:ew-resize; transition:width .6s ease,background .6s ease; touch-action:pan-y; }
.home-edge span { height:48px; width:3px; border-radius:4px; background:#e1c47e; opacity:.85; transition:height .6s ease; }
.home-edge:hover { width:58px; background:rgba(239,239,236,.18); }
.home-edge:hover span { height:64px; }
.home-stage[data-active="1"] .home-edge { background:rgba(30,36,48,.08); border-color:rgba(30,36,48,.2); }
.home-stage[data-active="1"] .home-edge span { background:#927020; }
.is-ready .home-controls { position:absolute; z-index:5; display:flex; right:30px; top:calc(var(--home-header-height,76px) + 20px); bottom:auto; align-items:center; border-radius:24px; background:rgba(21,29,41,.62); border:1px solid rgba(239,239,239,.2); backdrop-filter:blur(12px); color:#efefef; transition:background 1s,color 1s,border-color 1s; }
.home-stage[data-active="1"] .home-controls { background:rgba(239,239,236,.8); border-color:rgba(30,36,48,.2); color:#1e2430; }
.home-dot,.home-pause { display:grid; place-items:center; min-width:44px; min-height:44px; border-radius:22px; }
.home-dot span { display:block; height:5px; width:5px; border-radius:4px; background:currentColor; opacity:.5; transition:width .6s ease,opacity .6s; }
.home-dot[aria-pressed="true"] span { width:21px; background:#d2ad56; opacity:1; }
.home-stage[data-active="1"] .home-dot[aria-pressed="true"] span { background:#8b6a22; }
.home-pause { border-left:1px solid rgba(169,172,175,.3); font-size:14px; }
.home-edge:focus-visible,.home-dot:focus-visible,.home-pause:focus-visible,.family-return:focus-visible { outline:3px solid #bf922e; outline-offset:4px; }
.home-stage.is-dragging { cursor:grabbing; user-select:none; }
.family-content[hidden],#fiscal-content[hidden] { display:none; }
.family-content { animation:family-content-in .8s ease both; }
@keyframes family-content-in { from { opacity:.35; } to { opacity:1; } }
.family-content .analysis-panel__image img { object-position:76% center; }
.family-content .analysis-list article { padding:22px 28px; }
.family-content .analysis-list p { font-size:1rem; }
.family-content .analysis-list article > span { font-size:.875rem; }
.family-content .family-sources a { text-decoration:underline; text-underline-offset:3px; }
.family-return { display:inline-flex; align-items:center; gap:12px; color:#efefef; font:inherit; }
body:has(.home-stage) .site-topbar { transition:background 1s ease,border-color 1s ease,box-shadow 1s ease; }
.home-family-active .site-topbar { background:rgba(239,239,236,.96); border-color:rgba(30,36,48,.13); }
.home-family-active .site-topbar .nav-link { color:#303846; }
.home-family-active .site-topbar .menu-button { color:#1e2430; border-color:rgba(30,36,48,.25); }
.home-family-active .site-topbar .menu-button span { background:#1e2430; }
body:has(.home-stage) .brand-modern { position:relative; }
body:has(.home-stage) .brand-modern__logo { transition:opacity 1s ease; }
body:has(.home-stage) .brand-modern__logo--family { position:absolute; inset:0; opacity:0; }
.home-family-active .site-topbar .brand-modern__logo:not(.brand-modern__logo--family) { opacity:0; }
.home-family-active .site-topbar .brand-modern__logo--family { opacity:1!important; }
@media(max-width:1023px) { .is-ready .home-controls { right:24px; } }
@media(max-width:767px) { .is-ready .home-controls { right:20px; } }
@media(max-width:600px) {
 .is-ready .home-edge { top:170px; height:112px; width:36px; }
 .home-edge:hover { width:42px; }
 .home-edge span { height:34px; width:2px; }
 .is-ready .home-controls { top:calc(var(--home-header-height,76px) + 20px); right:14px; }
 .hero-family::before { background:linear-gradient(180deg,rgba(239,239,236,.04),rgba(239,239,236,.45) 180px,#efefec 435px); }
 .hero-family .hero-modern__backdrop img { object-position:86% top; opacity:.9; }
 .hero-family .hero-journey { background:#e7e8e5; }
 .hero-family .hero-title { font-size:clamp(2.4rem,10.2vw,3.7rem); }
 .family-content .analysis-list article { padding:24px 20px; }
}
@media(prefers-reduced-motion:reduce) {
 .home-stage *,body:has(.home-stage) .site-topbar,body:has(.home-stage) .brand-modern__logo { transition:none!important; }
 .family-content { animation:none; }
}

.home-stage.is-hover-pending .home-edge { background:rgba(239,239,236,.22); }
.home-stage[data-active="1"].is-hover-pending .home-edge { background:rgba(30,36,48,.14); }
