@layer scene {
/* Both the position and opacity are scrubbed from the same route progress. */
.chapter{transition:none;opacity:var(--chapter-alpha,0);transform:translateY(var(--chapter-y,32px));visibility:hidden;will-change:transform,opacity}
.chapter.approaching{visibility:visible;pointer-events:auto}
.chapter[inert]{pointer-events:none}
/* Keep a gentle reading wash during the approach, without an abrupt stage switch. */
body::before{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#eeeadee6,transparent 53%);opacity:var(--reading-wash,0)}
body[data-stage="ip"]::before,body[data-stage="rest"]::before{opacity:var(--reading-wash,1)}
header{padding:9px 12px;margin:-9px -12px;border-radius:7px;background:linear-gradient(90deg,#eeeadea6,#eeeade40 45%,transparent 72%)}
@media(prefers-reduced-motion:reduce){.chapter{transform:none}}
}
