/* Continuous fourth scene and separate scroll-controlled rewind on one stage. */
.home-aggregate-flow { position: relative; height: 248.15svh; background: var(--dogma-page); color: var(--dogma-copy); }
.home-aggregate__stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.home-aggregate__inner {
    box-sizing: border-box; width: min(1200px, calc(100% - 72px)); margin-inline: auto;
    padding-block: max(85px, 10svh) 2svh; display: flex; flex-direction: column;
    align-items: center; gap: clamp(12px, 2svh, 22px); transform: translateY(-1svh);
}
.home-aggregate__copy { max-width: 820px; text-align: center; transition: opacity 0.2963s ease, transform 0.4444s cubic-bezier(.2,.7,.2,1); }
.home-aggregate-flow.is-rewinding .home-aggregate__copy--risk { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.home-aggregate__brand { position: absolute; left: 50%; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; z-index: 3; }
.home-aggregate__wordmark { margin: 0; color: var(--dogma-heading); font: 800 clamp(2rem, 4vw, 3.5rem)/1.05 'Inter', sans-serif; letter-spacing: -.055em; }
.home-aggregate__brand-note { margin: 14px auto 0; max-width: 36ch; color: var(--dogma-muted); font: 400 clamp(.86rem, 1.15vw, 1.05rem)/1.5 'Inter', sans-serif; opacity: 0; }
.home-aggregate-flow.is-rewinding .home-aggregate__note { opacity: 0; }
.home-aggregate__kicker { font: 700 .73rem/1.4 'Inter', sans-serif; letter-spacing: .18em; color: var(--dogma-blue); margin: 0 0 clamp(7px, 1svh, 11px); }
.home-aggregate__copy h2 { font: 800 clamp(2.2rem, 3.8vw, 3.7rem)/1.08 'Inter', sans-serif; letter-spacing: -.055em; color: var(--dogma-heading); margin: 0 0 clamp(9px, 1.2svh, 14px); }
.home-aggregate__copy > p:last-child { max-width: 70ch; font: 400 clamp(.94rem, 1.17vw, 1.1rem)/1.5 'Inter', sans-serif; margin: 0 auto; }
.home-aggregate__visual { position: relative; width: min(100%, 950px); height: min(44svh, 410px); text-align: center; }
.home-aggregate__label { position: absolute; top: 84%; left: 50%; transform: translate(-50%, 12px); color: #a35e6a; font: 700 clamp(.9rem, 1.2vw, 1.1rem)/1.3 'Inter', sans-serif; white-space: nowrap; opacity: 0; transition: opacity 0.2593s ease, transform 0.3704s ease; }
.home-aggregate__label.is-visible { opacity: 1; transform: translate(-50%, 0); }
.home-aggregate__note { position: absolute; left: 0; right: 0; bottom: 0; color: var(--dogma-muted); font: 400 .68rem/1.35 'Inter', sans-serif; margin: 0; }
@media (max-width: 800px) { .home-aggregate__inner { width: min(680px, calc(100% - 44px)); padding-block: max(78px, 10svh) 2svh; } }
@media (max-width: 520px) {
    .home-aggregate__inner { width: calc(100% - 28px); padding-block: max(72px, 10svh) 2svh; gap: clamp(10px, 2svh, 16px); }
    .home-aggregate__kicker { font-size: .62rem; margin-bottom: 7px; }
    .home-aggregate__copy h2 { font-size: clamp(1.8rem, 7.4vw, 2.3rem); margin-bottom: 8px; }
    .home-aggregate__copy > p:last-child { font-size: clamp(.8rem, 3.5vw, .94rem); line-height: 1.43; }
    .home-aggregate__label { top: 78%; }
    .home-aggregate__note { font-size: .62rem; }
}
@media (max-width: 520px) and (max-height: 700px) {
    .home-aggregate__inner { padding-block: max(57px, 8svh) 1svh; gap: 5px; }
    .home-aggregate__copy h2 { font-size: clamp(1.55rem, 6.7vw, 2rem); margin-bottom: 4px; }
    .home-aggregate__copy > p:last-child { font-size: .78rem; line-height: 1.34; }
}
@media (max-height: 650px) and (min-width: 801px) {
    .home-aggregate__inner { padding-block: 76px 8px; transform: none; }
    .home-aggregate__copy h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); }
    .home-aggregate__visual { height: min(42svh, 300px); }
}
@media (prefers-reduced-motion: reduce) { .home-aggregate__copy, .home-aggregate__label { transition: none !important; } }

.home-aggregate__stage { z-index: 1; }
.home-aggregate__note { transition: opacity 0.1852s ease; }

/* Scroll-derived clearing cannot lag behind the isolated frame. */
.home-aggregate__copy--risk { opacity: var(--context-opacity, 1) !important; transform: none !important; transition: none !important; }
.home-aggregate__note { opacity: var(--context-opacity, 1); transition: none; }
.home-aggregate__label { opacity: 0; transition: none; }
.home-aggregate__label.is-visible { opacity: var(--label-opacity, 1); }
.home-aggregate-flow.is-isolated .home-aggregate__note { opacity: 0; }
.home-aggregate__wordmark { font-size: clamp(3.5rem, 5.3vw, 4.75rem); }
@media (max-width: 520px) { .home-aggregate__wordmark { font-size: clamp(2.25rem, 10vw, 2.875rem); } }
@media (max-width: 520px) {
    .home-aggregate__brand { width: calc(100% - 40px); }
    .home-aggregate__brand-note { max-width: 30ch; margin-top: 10px; font-size: .86rem; }
}
