.locale-curtain{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;justify-content:center;padding:var(--page-inset,var(--edge,24px));background:var(--locale-surface,#e9e7e1);color:#080808;transform:translate3d(0,101%,0);transition:transform 440ms cubic-bezier(.76,0,.24,1);pointer-events:none;overflow:hidden;will-change:transform;backface-visibility:hidden}
.locale-leaving .locale-curtain{pointer-events:auto}
/* The transition restores reading position itself. Native scroll anchoring
   must not apply a second correction after translated text changes height. */
html.locale-leaving{overflow-anchor:none;scroll-behavior:auto}
.locale-curtain-kicker,.locale-curtain-bottom{position:absolute;inset-inline:var(--page-inset,var(--edge,24px));font:700 10px/1.7 Arial,Helvetica,sans-serif;letter-spacing:1.6px}
.locale-curtain-kicker{top:45px}.locale-curtain-bottom{bottom:45px}
.locale-curtain-name{display:block;max-width:100%;font:400 var(--locale-size,clamp(40px,9vw,170px))/1.1 var(--locale-font,Arial,sans-serif);letter-spacing:-.025em}
@media(max-width:700px){.locale-curtain-kicker{top:30px}.locale-curtain-bottom{bottom:30px}.locale-curtain-kicker,.locale-curtain-bottom{font-size:8px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.locale-curtain{display:none}}

/* An arrival is already composed under the cover; do not replay a transparent
   hero intro when the cover is removed, or it briefly reveals the black page. */
.locale-arrived .intro-item,.locale-arrived .hero-center,.locale-arrived .hero-scene{animation:none!important;opacity:1!important;transform:none!important;clip-path:none!important}

/* Both concepts keep one persistent curtain in the native top layer. */
.locale-stage{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;outline:none}
.locale-stage::backdrop{background:transparent}
