/* Automatic entries hold 900 ms so every title finishes before the 250 ms fade.
   Explicit interaction/history and reduced motion can still skip the decoration.
   Outgoing stages stay hidden for 120 ms to avoid a second flash on fast links.
   CSS alone dismisses the stage if scripts fail. */
.entry-stage{--entry-page:#f7efe1;--nimo-ink:#3b342e;position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:var(--entry-page);pointer-events:none;contain:layout paint;animation:entry-away 250ms ease-out 900ms both}
/* Nimo's parser-time palette is inherited before the first stage paint. */
body[data-site-brand=nimo] .entry-stage{--entry-page:var(--nimo-entry-page,#f7efe1);--entry-ink:var(--nimo-entry-page-ink,#3b342e);--nimo-ink:var(--nimo-entry-ink,#3b342e);--nimo-body:var(--nimo-entry-body,#f4c09f);--nimo-wing:var(--nimo-entry-wing,#dca37f);--nimo-face:var(--nimo-entry-face,#f8d9c5);--nimo-accent:var(--nimo-entry-accent,#ecb84d)}
.entry-scene{width:min(240px,65vw);display:flex;align-items:center;flex-direction:column;color:var(--entry-ink,var(--nimo-ink));transform:translateY(-3vh)}
.entry-stage .nimo-entry-owl{display:block;width:132px;height:132px;overflow:visible;transform-origin:50% 95%;animation:entry-owl 460ms cubic-bezier(.175,.885,.32,1.275) both}
.entry-stage .brand-wordmark--nimo{width:145px;height:68px;margin-top:8px}.entry-motif{width:30px;height:30px;margin-bottom:15px;fill:none;stroke-linecap:round;stroke-linejoin:round;animation:entry-motif 620ms ease-out both}
.brand-wordmark{display:block;width:100%;height:auto;overflow:visible}.brand-letter-base{fill:none;stroke:currentColor;stroke-width:1.3px;vector-effect:non-scaling-stroke;opacity:.16}.brand-letter-ink{fill:currentColor;stroke:currentColor;stroke-width:.35px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.brand-wordmark--sabinex .brand-letter-ink{fill:#fffbf3;stroke:currentColor;stroke-width:1.8px}.brand-wordmark--sabinex .brand-letter-base{stroke-width:2.4px;opacity:.28}
.entry-stage .brand-letter-ink,[data-replaying] .brand-letter-ink{animation:entry-write 400ms ease-out both}.brand-letter:nth-child(2) .brand-letter-ink{animation-delay:35ms}.brand-letter:nth-child(3) .brand-letter-ink{animation-delay:70ms}.brand-letter:nth-child(4) .brand-letter-ink{animation-delay:105ms}.brand-letter:nth-child(5) .brand-letter-ink{animation-delay:140ms}.brand-letter:nth-child(6) .brand-letter-ink{animation-delay:175ms}.brand-letter:nth-child(7) .brand-letter-ink{animation-delay:210ms}
.entry-stage .brand-wordmark--nimo .brand-letter{animation:entry-letter 380ms cubic-bezier(.175,.885,.32,1.275) both;transform-box:fill-box;transform-origin:center}.entry-stage .brand-wordmark--nimo .brand-letter:nth-child(2){animation-delay:45ms}.entry-stage .brand-wordmark--nimo .brand-letter:nth-child(3){animation-delay:90ms}.entry-stage .brand-wordmark--nimo .brand-letter:nth-child(4){animation-delay:135ms}
.entry-brand-image{width:100%;height:auto;object-fit:contain}.entry-idle{width:min(220px,58vw);animation:entry-paper 620ms cubic-bezier(.175,.885,.32,1.275) both}.entry-blade{position:relative;width:min(300px,72vw);image-rendering:pixelated}.entry-blade::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,transparent 47%,#ece6f7 49%,#d0283e 51%,transparent 53%);animation:entry-slash 420ms steps(10,end) both}
body[data-site-brand=blade] .entry-stage{--entry-page:#07060a;--nimo-ink:#ece6f7}
[data-entry-kind=page] .entry-scene{transform:scale(.72)}
html[data-entry-dismissed] .entry-stage{animation:none;opacity:0;visibility:hidden}
html[data-entry-depart] .entry-stage{visibility:visible;opacity:1;animation:entry-stall-away 4s linear both}
html[data-entry-depart] .entry-scene{animation:entry-depart 300ms ease-out both}
@keyframes entry-away{from{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}
@keyframes entry-stall-away{0%,3%{opacity:0;visibility:hidden}6%,99.9%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
@keyframes entry-owl{from{transform:scale(.55)}to{transform:scale(1)}}
@keyframes entry-letter{from{opacity:0;translate:0 12px;rotate:-7deg}to{opacity:1;translate:0 0;rotate:0deg}}
@keyframes entry-write{from{stroke-dasharray:1;stroke-dashoffset:1;fill-opacity:0}65%{fill-opacity:0}to{stroke-dasharray:1;stroke-dashoffset:0;fill-opacity:1}}
@keyframes entry-motif{from{opacity:0;transform:translateY(6px) rotate(-8deg)}to{opacity:1;transform:none}}
@keyframes entry-paper{from{opacity:0;transform:translateY(22px) rotate(-4deg) scale(.88)}to{opacity:1;transform:none}}
@keyframes entry-slash{from{transform:translateX(-90%);opacity:0}20%,65%{opacity:1}to{transform:translateX(90%);opacity:0}}
@keyframes entry-depart{from{opacity:.6;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.entry-stage{display:none!important}.brand-letter-ink,.brand-letter,[data-replaying] .brand-letter-ink{animation:none!important}}
