/* The gallery and finale overlap their preceding artwork in document scroll space. */
/* Reuse the existing alpha-only ink feather at both physical clipping seams.
   These stationary surfaces cost no new scroll loop, blur or color gradient. */
.nitent-root ._totemPin_bwga5_877::before {
 content:"";position:absolute;inset:auto 0 calc(100% - 1px);height:clamp(76px,10svh,148px);
 background:#2345de;mask:url('/nitent/collection-veil.png') center / 100% 100% no-repeat;
 -webkit-mask:url('/nitent/collection-veil.png') center / 100% 100% no-repeat;
 pointer-events:none;z-index:10;
}
.nitent-root ._guilds_194d4_3::before {
 content:"";position:absolute;inset:0 0 auto;height:clamp(84px,12svh,170px);
 background:#000;mask:url('/nitent/collection-veil.png') center / 100% 100% no-repeat;
 -webkit-mask:url('/nitent/collection-veil.png') center / 100% 100% no-repeat;
 transform:rotate(180deg);pointer-events:none;z-index:2;
}
@media(min-width:769px) {
 .nitent-root ._section3_bwga5_265 { min-height:22vh; }
 .nitent-root ._totemHold_bwga5_863 { height:25vh; }
 .nitent-root ._totemPin_bwga5_877 { mask-image:none; -webkit-mask-image:none; }
 .nitent-root ._statsWrap_bwga5_907 { z-index:auto; height:146vh; margin-top:-35vh; background:transparent; }
 .nitent-root ._statsWrap_bwga5_907::before { content:""; position:absolute; inset:0; z-index:5; background:var(--nitent-blue); pointer-events:none; }
 .nitent-root ._statsWrap_bwga5_907[data-flow-settled=true]::before { background:#000; }
 .nitent-root ._statsPin_bwga5_916 { z-index:7; overflow:visible; isolation:isolate; }
 .nitent-root .nitent-gallery { position:relative; z-index:1; background:transparent; }
 .flow-ink-field { position:fixed; z-index:0; pointer-events:none; width:180vmax; height:180vmax; left:50%; top:50%; color:#000; transform:translate3d(-50%,-50%,0) scale(.06); }
 .flow-ink-field svg { display:block; width:100%; height:100%; }
 .nitent-root ._footWrap_bwga5_584 { z-index:9; height:100svh; margin-top:calc(-26vw - 12svh); background:transparent; }
 .nitent-root ._footPin_bwga5_594 { background:transparent; opacity:1; isolation:isolate; }
}
.nitent-root ._crest_194d4_67 .library-art { border-radius:clamp(12px,1.7vw,28px); overflow:hidden; }
.nitent-root ._crest_194d4_67 img { border-radius:clamp(12px,1.7vw,28px); }
/* Alpha-only ink at the physical cut line. The live wheel moves underneath
   one stationary feather. The chapter lettering sits above it. */
.nitent-root ._cover_194d4_135::before {
 content:""; position:absolute; inset:auto 0 calc(100% - 1px); height:clamp(64px,8.4vw,155px);
 background:url('/nitent/collection-veil.png') center / 100% 100% no-repeat; pointer-events:none;
}
.nitent-root ._guilds_194d4_3 { translate:0 var(--prism-hold,0px); }
/* The original artwork and letter spans share one measured reading scene.
   Its extra document distance is a reading hold, never a second wheel owner. */
.nitent-root [data-collection-layout="pinned"] {
 height:var(--collection-height); background:#000;
}
.nitent-root [data-collection-layout="pinned"] ._guilds_194d4_3 {
 position:sticky; top:var(--collection-pin-top); min-height:var(--collection-panel-min,0px);
}
.nitent-root [data-collection-layout] :is(._headWrap_194d4_162,._leadStack_194d4_206) { translate:none; }
.nitent-root [data-collection-layout] ._blurbBody_194d4_244 { opacity:var(--collection-body,0); }
.nitent-root ._footWrap_bwga5_584[data-collection-handoff="pinned"] {
 margin-top:var(--collection-overlap); height:var(--collection-footer-height); min-height:100svh;
}
/* If enlarged copy cannot fit in one viewport, preserve ordinary document
   reading. Reduced motion uses this same complete, sequential presentation. */
.nitent-root [data-collection-layout="flow"] { height:auto; }
.nitent-root [data-collection-layout="flow"] ._guilds_194d4_3 {
 height:auto; min-height:0; padding-top:var(--collection-copy-offset); padding-bottom:clamp(64px,14svh,160px);
}
.nitent-root [data-collection-layout="flow"] :is(._headWrap_194d4_162,._leadStack_194d4_206) {
 position:relative; inset:auto; transform:none; width:min(90vw,864px); margin-inline:auto;
}
.nitent-root [data-collection-layout="flow"] ._leadStack_194d4_206 { margin-top:clamp(48px,12svh,140px); }
.nitent-root [data-collection-layout="flow"] :is(._letter_194d4_188,._leadLetter_194d4_236) { opacity:1; transform:none; }
.nitent-root ._footWrap_bwga5_584[data-collection-handoff="flow"] { height:auto; margin-top:0; }
.nitent-root [data-collection-handoff="flow"] ._footPin_bwga5_594 { position:relative; height:auto; }
.nitent-root ._footWrap_bwga5_584 { pointer-events:none; }
.nitent-root ._footPin_bwga5_594 { background:transparent; opacity:1; isolation:isolate; }
.nitent-root .nitent-footer[data-prism="settled"] { background:#2345de; }
.nitent-root .nitent-footer:not([inert]) { pointer-events:auto; }
.finale-surface { position:absolute; inset:0; z-index:0; width:100%; height:100%; image-rendering:pixelated; pointer-events:none; }
.nitent-root .nitent-footer[data-prism="away"] .finale-surface { visibility:hidden; }
@media(max-width:768px) {
 .nitent-root ._section3_bwga5_265 { min-height:0; height:0; }
 .nitent-root ._acceptBg_bwga5_31 { display:none; }
 .flow-ink-field { display:none; }
 .nitent-root ._statsPin_bwga5_916,.nitent-root ._footPin_bwga5_594 { height:auto; position:relative; opacity:1; }
 .nitent-root ._statsWrap_bwga5_907 { height:auto; background:#000; margin-top:0; }
 .nitent-root ._footWrap_bwga5_584 { z-index:9; height:auto; margin-top:clamp(-290px,-31svh,-180px); background:transparent; }
 .nitent-root ._footPin_bwga5_594 { position:relative; height:auto; overflow:visible; }
 .nitent-root .nitent-gallery { opacity:1; transform:none; }

}
@media(prefers-reduced-motion:reduce) {
 .flow-ink-field { display:none; }
 .nitent-root ._section3_bwga5_265 { min-height:0; height:0; }
 .nitent-root ._totemHold_bwga5_863 { height:0; }
 .nitent-root ._statsWrap_bwga5_907,.nitent-root ._footWrap_bwga5_584 { height:auto; margin-top:0; background:#000; }
 .nitent-root ._statsPin_bwga5_916,.nitent-root ._footPin_bwga5_594 { height:auto; position:relative; opacity:1; }
 .nitent-root .nitent-gallery { background:#000; }
}

@media(max-height:560px) and (min-width:769px) {
 .nitent-root ._footPin_bwga5_594 { height:auto; }
 .nitent-root ._footWrap_bwga5_584 { height:auto; }

}
@media(prefers-reduced-motion:reduce) {
 .nitent-root ._footWrap_bwga5_584 { margin-top:0; }
}


.nitent-root .nitent-footer {
 position:relative; isolation:isolate; width:100%; height:100svh; min-height:360px;
 display:block; overflow:hidden; padding:0 clamp(14px,5.9vw,128px);
 background:transparent; color:#fff; text-align:center;
}
.nitent-root .finale-copy {
 position:relative; width:100%; height:100%; margin-inline:auto;
 display:flex; flex-direction:column; align-items:center; justify-content:center;
 text-align:center;
}
.nitent-root .nitent-footer h2 {
 display:grid; justify-items:center; row-gap:.075em; width:100%; max-width:none; margin:0;
 font:400 clamp(46.2px,min(7.535vw,15.4svh),206.8px)/1.03 'Nitent Emilys Candy',Georgia,serif;
 font-synthesis:none; color:inherit; text-align:center; text-transform:uppercase;
 letter-spacing:-.015em; word-spacing:.075em;
}
.nitent-root .nitent-footer h2 span {
 display:block; max-width:none; padding:0; margin:0; white-space:nowrap;
 font:inherit; letter-spacing:inherit; color:inherit; background:none;
}
.nitent-root .nitent-footer .finale-copy>p {
 max-width:100%; margin:clamp(19px,4.1svh,60px) 0 0; padding:0; color:inherit;
 font:400 clamp(16px,1.35vw,35px)/1.52 Geist,Arial,sans-serif; letter-spacing:-.012em;
}
.nitent-root .nitent-footer .finale-copy>p span { display:block; }
.nitent-root .nitent-footer nav {
 position:absolute; inset:auto 0 0; display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
 width:100%; max-width:none; gap:0 clamp(22px,5.2vw,150px); margin:0;
 padding:clamp(5px,1.75svh,29px) 0 max(clamp(5px,1.35svh,24px),env(safe-area-inset-bottom));
 border-top:1px solid rgb(255 255 255 / .24);
}
.nitent-root .nitent-footer nav a {
 display:inline-flex; align-items:center; justify-content:center; min-height:44px; color:inherit;
 font:italic 300 clamp(16px,1.3vw,32px)/1.35 'Nitent Amulya',Arial,sans-serif; font-synthesis:none; text-decoration:none;
}
.nitent-root .nitent-footer nav a:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
@media(hover:hover) and (pointer:fine) {
 .nitent-root .nitent-footer nav a:hover { text-decoration:underline; text-underline-offset:.22em; }
}
@media(max-width:650px) {
 .nitent-root .nitent-footer { min-height:470px; padding-inline:clamp(12px,4.6vw,26px); }
 .nitent-root .nitent-footer h2 { width:calc(100vw - 16px); max-width:none; font-size:clamp(27.5px,min(10.78vw,calc((100vw - 16px) / 9.02)),67.1px); }
 .nitent-root .nitent-footer .finale-copy>p { font-size:clamp(13px,3.72vw,18px); }
 .nitent-root .nitent-footer nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:5px; }
 .nitent-root .nitent-footer nav a { font-size:clamp(16px,4.1vw,19px); }
}
@media(max-height:505px) and (min-width:651px) {
 .nitent-root .nitent-footer { min-height:300px; }
 .nitent-root .nitent-footer .finale-copy>p { margin-top:12px; }
 .nitent-root .nitent-footer nav { padding-block:0; }
}

/* The finale reads as a poster first; depth and link feedback are transient. */
.nitent-root .finale-crafted h2 { perspective:900px; }
.nitent-root .finale-crafted h2 > span { transform-origin:50% 100%; backface-visibility:hidden; }
.nitent-root .finale-crafted nav a { position:relative; gap:.4em; padding-inline:3px; }
.finale-link-label,.finale-link-arrow { display:inline-block; }
.finale-link-arrow { font:italic 300 .92em/1 'Nitent Amulya',Arial,sans-serif; font-synthesis:none; opacity:.56; }
.nitent-root .finale-crafted nav a::after {
 content:""; position:absolute; height:2px; left:3px; right:3px; bottom:7px;
 background:#ffbfe6; transform:scaleX(0); transform-origin:0 50%;
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .finale-link-label,.finale-link-arrow { transition:transform 180ms cubic-bezier(.23,1,.32,1),opacity 180ms cubic-bezier(.23,1,.32,1); }
 .nitent-root .finale-crafted nav a::after { transition:transform 220ms cubic-bezier(.23,1,.32,1); }
 .nitent-root .finale-crafted nav a:hover { text-decoration:none; }
 .nitent-root .finale-crafted nav a:hover .finale-link-label { transform:translate3d(0,-2px,0); }
 .nitent-root .finale-crafted nav a:hover .finale-link-arrow { opacity:1; transform:translate3d(2px,-2px,0); }
 .nitent-root .finale-crafted nav a:hover::after { transform:scaleX(1); }
}
.nitent-root .finale-crafted nav a:focus-visible::after { transform:scaleX(1); }
@media(prefers-reduced-motion:reduce) {
 .nitent-root .finale-crafted h2,.nitent-root .finale-crafted h2 > span { perspective:none; }
}

.finale-link-label { white-space:nowrap; }
@media(max-width:650px) {
 .nitent-root .finale-crafted nav { column-gap:clamp(6px,2.5vw,16px); }
 .nitent-root .finale-crafted nav a { padding-inline:2px; }
}

/* Whole-word shaping preserves each selected typeface and its natural layout.
   Existing scene/line transforms retain ownership; only these inner words move. */
.nitent-root [data-scroll-type] { perspective:900px; }
.nitent-root [data-scroll-type] .scroll-type-word {
 display:inline-block; vertical-align:baseline; white-space:nowrap;
 font:inherit; letter-spacing:inherit; word-spacing:inherit; text-transform:inherit;
 color:inherit; margin:0; padding:0; background:none; max-width:none;
 transform-origin:50% 100%; backface-visibility:hidden;
}
.nitent-root [data-scroll-type][data-type-active="true"] .scroll-type-word { will-change:transform,opacity; }
/* Replace the story's one-shot rise with the shared reversible timeline. */
.nitent-root [data-scroll-type="story"] > [class*="_s5headLine_"] { animation:none; opacity:1; transform:none; }
@media(prefers-reduced-motion:reduce){
 .nitent-root [data-scroll-type]{perspective:none}
 .nitent-root [data-scroll-type] .scroll-type-word{transform:none!important;opacity:1!important;will-change:auto!important}
}
