/* Shared by migrated chapters in the isolated preview. */
.chapter-detail .w-hero-txt{--hero-copy-width:88vw;display:flex;flex-direction:column;justify-content:center;gap:0;top:0!important;height:100svh!important;padding-top:4vh;box-sizing:border-box;text-shadow:0 1px 20px #0005}
.chapter-detail .w-hero-txt-h1-w{order:1;position:relative!important;top:auto!important;margin:clamp(52px,8vh,80px) 0 0!important;font-size:clamp(64px,6.8vw,112px)!important;line-height:1.2!important}
.chapter-detail .w-hero-txt-h1-w>span:has(.w-hero-txt-h1:empty){display:none}
.chapter-detail .w-hero-txt-role{display:contents}
.chapter-detail .w-hero-txt-role-title{order:0;position:relative!important;top:auto!important;letter-spacing:.2em;font-size:14px!important;line-height:1.6!important}
.chapter-detail .w-hero-txt-role-p{position:relative!important;top:auto!important;order:3;width:var(--hero-copy-width)!important;max-width:none!important;margin:clamp(40px,6vh,64px) 0 0!important;font-size:clamp(20px,1.6vw,24px)!important;line-height:1.65!important;white-space:normal!important}
.chapter-detail .w-hero-txt-team-w{position:relative!important;top:auto!important;order:2;margin:clamp(28px,4vh,44px) 0 0!important;font:italic clamp(30px,2.8vw,42px)/1.4 Georgia,serif!important}
.chapter-detail .w-hero-txt-scroll,.chapter-detail .w-hero-txt-icon{position:absolute!important;bottom:40px!important;top:auto!important}
.evidence-detail .w-s,.evidence-detail .w-list{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.evidence-detail .w-s>div:not(.evidence-canvas-slot),.evidence-detail .w-list>div:not(.evidence-canvas-slot){height:1px!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;overflow:hidden!important;opacity:0!important}
.evidence-detail .evidence-canvas-slot{position:relative!important;width:100%!important;height:100svh!important;aspect-ratio:auto!important;margin:0!important;overflow:hidden;background:#f4f5f7}
.evidence-detail .evidence-canvas-slot>img,.evidence-detail .evidence-canvas-slot>div{visibility:hidden!important}
.evidence-canvas-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;z-index:20;background:#f4f5f7;}
.evidence-detail .w-preview-w{visibility:hidden!important;pointer-events:none!important}
@media(max-width:700px){.evidence-detail .w-intro{margin:0;padding:35px 22px;background:#f4f5f7;color:#222}.chapter-detail .w-hero{min-height:100svh}.chapter-detail .w-hero-title h1{font-size:60px}}

@media(max-width:700px){.evidence-detail .w-intro{display:none!important}.chapter-detail .w-hero-title{inset:0!important;display:flex;align-items:center;justify-content:center}.chapter-detail .w-hero-title>h1{visibility:hidden}.evidence-mobile-header{position:absolute;left:7%;right:7%;top:28%;color:white;text-align:left;text-shadow:0 2px 24px #0008}.evidence-mobile-header>div{font-size:12px;letter-spacing:.15em}.evidence-mobile-header h1{font-size:64px!important;line-height:1.4;margin:18px 0}.evidence-mobile-header em{font:italic 28px Georgia,serif}.evidence-mobile-header p{font-size:15px;line-height:1.9;max-width:28em;margin:32px 0 0}}
.evidence-detail .evidence-canvas-frame{pointer-events:auto!important}
.chapter-detail .w-hero-txt-team-w{display:block!important}
.chapter-detail .w-hero-txt{margin-left:6vw!important;margin-right:0!important;width:44vw;max-width:680px;padding-right:0;text-align:left;align-items:flex-start;}
.chapter-detail .w-hero-txt-role-p{max-width:28em;color:rgba(255,255,255,.85)!important}
.chapter-detail .w-hero-txt-role-p-fx{display:block;overflow:visible}
.chapter-detail .w-hero-txt-role-p-fx>span{display:block}
/* Copy stays still while the photograph moves; all four labels fade together. */
.chapter-detail .w-hero-txt-h1-w>span,.chapter-detail .w-hero-txt-role-title,.chapter-detail .w-hero-txt-team-w>div{overflow:visible!important}
.chapter-detail .w-hero-txt-h1,.chapter-detail .w-hero-txt-role-title>*,.chapter-detail .w-hero-txt-team,.chapter-detail .w-hero-txt-role-p-fx>span{transform:none!important;opacity:0;will-change:opacity}
.evidence-detail .w-footer{height:100vh;min-height:0;background:transparent;color:#f4f5f7;}
.chapter-detail .w-footer{position:relative}
@media(max-width:700px){.evidence-detail .evidence-canvas-slot{height:100svh!important;min-height:520px}}

.chapter-detail .w-hero>.w-hero-txt-icon{right:40px!important;left:auto!important;bottom:40px!important}

.overview-detail .evidence-canvas-slot{height:2600px!important;min-height:0!important}
.overview-detail .overview-content-frame{height:100%;background:#f4f5f7}
@media(max-width:700px){.overview-detail .evidence-canvas-slot{height:4800px!important}}

.native-chapter-detail .evidence-canvas-slot{height:100svh!important;min-height:0!important}

/* Mobile engine is device-selected, including wider tablets. */
.chapter-detail .w-hero-title{inset:0!important;display:flex;align-items:center}
.chapter-detail .w-hero-title{pointer-events:none}
.chapter-detail .w-hero nav.nav{position:relative;z-index:20;pointer-events:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:14px;box-sizing:border-box}
.chapter-detail .w-hero nav.nav a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;padding:0;margin:0!important}
.chapter-detail .w-hero nav.nav a{opacity:.65;transition:opacity 180ms ease}
.chapter-detail .w-hero nav.nav a.is-active,.chapter-detail .w-hero nav.nav a:hover,.chapter-detail .w-hero nav.nav .mobile-home-link{opacity:1}
.chapter-detail .w-hero nav.nav .mobile-home-link{flex-basis:100%;justify-content:flex-start;min-height:28px;margin-bottom:2px!important}
.chapter-detail .w-hero-title>h1{visibility:hidden}
.evidence-mobile-header{--hero-copy-width:88vw;position:absolute;left:7%;right:7%;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;color:white;text-align:left;text-shadow:0 2px 24px #0008}
.evidence-mobile-header>div{order:0;font-size:13px;letter-spacing:.15em;line-height:1.6}
.evidence-mobile-header h1{order:1;font-size:clamp(64px,10vw,88px)!important;line-height:1.2;margin:52px 0 0!important}
.evidence-mobile-header h1{text-align:left!important}
.mobile-chapter-scroll{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));right:24px;width:44px;height:52px;background:none;border:0;padding:0;cursor:pointer;z-index:20}
.mobile-chapter-scroll .w-hero-title-arrow{width:44px;height:52px;margin:0}
.evidence-mobile-header em{order:2;font:italic clamp(28px,4vw,36px)/1.4 Georgia,serif;margin-top:30px}
.evidence-mobile-header p{order:3;font-size:min(18px,4.6vw);line-height:1.7;width:var(--hero-copy-width);max-width:none;margin:42px 0 0}
.hero-copy-line{display:block;white-space:nowrap}
[data-hero-copy-mode="single"] .hero-copy-line{white-space:nowrap}
@media(max-width:700px){.chapter-detail .w-hero-txt-role-p{font-size:min(18px,4.6vw)!important}}
@media(max-height:600px){.chapter-detail .w-hero-txt-h1-w{margin-top:38px!important}.chapter-detail .w-hero-txt-team-w{margin-top:20px!important}.chapter-detail .w-hero-txt-role-p{margin-top:28px!important}.evidence-mobile-header h1{margin-top:38px!important}.evidence-mobile-header em{margin-top:20px!important}.evidence-mobile-header p{margin-top:28px}}

/* Persistent names on the horizontal photographic cards. */
.preview-card-captions{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden}
.preview-card-captions[hidden],.preview-card-caption[hidden]{display:none}
.preview-card-caption{position:absolute;top:0;left:0;height:80px;box-sizing:border-box;padding:30px 22px 16px;display:flex;align-items:baseline;gap:12px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.64));text-shadow:0 1px 8px #0008;pointer-events:auto;will-change:transform}
.preview-card-caption span{font:14px/1.5 system-ui,sans-serif;opacity:.8}
.preview-card-caption strong{font:400 22px/1.5 'Songti SC','Noto Serif SC',serif;letter-spacing:.12em}
.preview-card-caption:focus-visible{outline:2px solid #fff;outline-offset:-3px}
/* Keep the original full-viewport stage transparent: the next image is WebGL
   behind this DOM, and expands with the original scroll progress. */
.evidence-detail .w-preview-area{visibility:hidden!important;pointer-events:none!important}
@media(max-width:700px){.preview-card-caption{padding-inline:16px}.preview-card-caption strong{font-size:20px}}

/* A bounded title link; the original photographs and side controls stay apart. */
#h-title-w .h-title-no{display:none}
#h-title-w li{top:50%!important;transform:translate(-50%,-50%)!important}
#h-title-w .chapter-entry{display:flex;flex-direction:column;align-items:center;gap:28px;padding:24px 56px;color:inherit;text-decoration:none;max-width:min(420px,46vw);box-sizing:border-box;opacity:0;pointer-events:none;cursor:pointer}
#h-title-w .h-title{position:relative;pointer-events:none!important;overflow:visible}
#h-title-w .h-title-a{display:block;transform:none!important}
#h-title-w .chapter-entry{text-align:center}
#h-title-w .chapter-entry-hint{display:flex;align-items:center;gap:8px;letter-spacing:0}
.chapter-entry-hint{position:relative;font:16px/1.6 "PingFang SC",sans-serif;letter-spacing:.06em;white-space:nowrap}
.chapter-entry-hint::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform 200ms ease}
.chapter-entry-arrow{display:inline-block;transition:transform 200ms ease}
.chapter-entry:hover .chapter-entry-hint::after,.chapter-entry:focus-visible .chapter-entry-hint::after{transform:scaleX(1)}
.chapter-entry:hover .chapter-entry-arrow,.chapter-entry:focus-visible .chapter-entry-arrow{transform:translate(2px,-2px)}
.chapter-entry:focus-visible,.chapter-switch:focus-visible,.chapter-mobile-entry:focus-visible{outline:1px solid currentColor;outline-offset:7px}
.chapter-switch{position:absolute;inset:-21px;width:64px;height:64px;border:0;padding:0;background:transparent;color:inherit;cursor:pointer;pointer-events:auto;touch-action:manipulation}
#h-cross>div:has(.chapter-switch){opacity:var(--switch-opacity,0);transition:opacity 200ms ease,transform 1200ms var(--o6)}
#h-cross>div:has(.chapter-switch:hover),#h-cross>div:has(.chapter-switch:focus-visible){opacity:1}
#h-cross>div:has(.chapter-switch:disabled){opacity:.25}
.chapter-switch:disabled{cursor:default;pointer-events:none}
#h-title-w[data-ink="dark"],#h-cross[data-ink="dark"]{color:#262623}
#h-cross[data-ink="dark"] svg{fill:#262623}
#h-cross[data-ink="light"],#h-title-w[data-ink="light"]{color:#f4f5f7}
#h .chapter-mobile-entry{display:block;width:max-content;max-width:calc(100% - 40px);padding:20px;margin:-20px;text-decoration:none}
#h .chapter-mobile-entry .h-list-discover{color:#b5b6b8;font-size:16px;line-height:1.5;opacity:1}
.preview-card-caption{transition:none}
@media(prefers-reduced-motion:reduce){.chapter-entry-hint::after,.chapter-entry-arrow{transition:none}}

.evidence-explorer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:0;background:#f4f5f7;color:#222}
.evidence-explorer::backdrop{background:#0008}
.evidence-explorer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.evidence-explorer>button{position:absolute;top:22px;right:26px;z-index:10;padding:12px 20px;border:1px solid #2223;border-radius:30px;background:#f4f5f7;font:14px serif;cursor:pointer}

/* Destination hierarchy keeps the renderer's reveal wrappers intact. */
.w-footer-link{display:flex!important;flex-direction:column;align-items:center;gap:24px}
.w-footer-link-tagline{order:-1;font-size:14px!important;line-height:1.6!important;letter-spacing:.2em;margin:0!important}
.w-footer-link-title{font-size:clamp(48px,7vw,112px)!important;line-height:1.3!important;letter-spacing:.12em}
.w-footer-link-title{position:relative;overflow:visible!important}
.w-footer-exp{display:block!important;position:absolute!important;top:8px!important;left:calc(100% + 10px)!important;right:auto!important;width:3ch!important;height:1.5em!important;font:14px/1.5 "s",sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:.04em!important;text-align:left;pointer-events:none}
.w-footer-hit{position:absolute;z-index:2;margin:0;padding:0;border:0;background:transparent;cursor:pointer;touch-action:pan-y}
.w-footer-hit:focus-visible{outline:1px solid rgb(255 255 255 / .7);outline-offset:8px}
.w-footer-link{pointer-events:none}
/* Home keeps its opening progress; direct chapter covers do not. */
body:not([data-home-opening]) #load-no{display:none!important}
#load-no[data-complete="true"]{opacity:0;visibility:hidden}
.w-footer-next{font-size:14px!important;line-height:1.6!important;letter-spacing:.2em;margin-bottom:24px!important}
.w-footer-title{font-size:clamp(48px,10vw,88px)!important;line-height:1.3!important;letter-spacing:.12em}
@media(max-width:700px){.w-footer-link{gap:18px}.w-footer-link-title{font-size:52px!important}}

.supplementary-detail .w-hero-pgn{visibility:hidden!important}

/* No unanimated paragraph may leak onto the loading contact sheet. The
   renderer releases this guard only when its full photographic entry ends. */
html:not([data-chance-ready="true"]) .chapter-detail .w-hero-txt,
html:not([data-chance-ready="true"]) .chapter-detail .w-hero-pgn,
html:not([data-chance-ready="true"]) .chapter-detail .w-back,
html:not([data-chance-ready="true"]) .chapter-detail .w-hero>.w-hero-txt-icon{
 visibility:hidden!important;
 pointer-events:none!important;
}

.w-footer-exp{width:5ch!important;transition:opacity 280ms ease}

/* The reference corner counter remains visible while the next image expands. */
.w-footer-exp{width:3ch!important;opacity:1;transition:none}

/* A quiet photo margin, with its own space below the global header. */
.photographic-detail .w-preview-w.photo-directory{position:fixed;top:104px;transform:none!important;right:40px;width:64px;padding:2px 7px;box-sizing:content-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;transition:opacity 180ms ease;will-change:transform}
.photographic-detail .photo-directory::-webkit-scrollbar{display:none}
.photographic-detail .photo-directory .w-preview{width:60px;opacity:.52;transition:opacity 180ms ease;background:#1c1c1c;min-height:20px;margin-top:10px}
.photographic-detail .photo-directory .w-preview img{display:block;width:100%;height:auto;color:transparent;font-size:0}
.photographic-detail .photo-directory .w-preview div{display:none}
.photographic-detail .photo-directory .w-preview:hover,.photographic-detail .photo-directory .is-current-photo{opacity:1}
.photographic-detail .photo-directory-window{position:fixed!important;right:auto!important;transform:none!important;box-sizing:border-box;border:1px solid rgb(255 255 255 / 50%);pointer-events:none;z-index:3;transition:opacity 180ms ease}


/* Ink follows these photographs; their framing and grayscale remain intact. */
.w-hero[data-cover-ink="dark"] :is(.w-hero-txt,.w-hero-pgn,.evidence-mobile-header){color:#222;text-shadow:0 1px 10px #fffc}
.w-hero[data-cover-ink="dark"] .w-hero-txt-role-p{color:#222!important}
.w-hero[data-cover-ink="dark"] .w-hero-txt-icon-arrow{fill:#222}
.w-hero[data-cover-ink="dark"] .w-hero-txt-icon-border-path{stroke:#2228}
.w-hero[data-cover-ink="dark"] .w-hero-title-arrow{fill:#222}
.w-footer[data-footer-ink="dark"]{color:#222;text-shadow:0 1px 10px #fffc}
.w-footer[data-footer-cover]{background-size:cover;background-position:center;min-height:100svh;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
.w-footer[data-footer-cover] a{color:inherit;text-shadow:inherit}

/* Keep white next-chapter lettering legible over the new monochrome covers. */
.w-footer[data-footer-ink="light"]{text-shadow:0 1px 8px #0009}

/* The cat's black negative space holds crisp light type without a halo. */
.w-hero[data-cat-cover] :is(.w-hero-txt,.w-hero-pgn,.evidence-mobile-header){color:#f5f5f2;text-shadow:none}
.w-hero[data-cat-cover] .w-hero-txt{--hero-copy-width:27vw}

/* The departing history frame fades above the live, restored page. */
html[data-history-snapshot]::view-transition-group(root){animation:none}
html[data-history-snapshot]::view-transition-new(root){display:none}
html[data-history-snapshot]::view-transition-old(root){mix-blend-mode:normal;animation:history-frame-return 360ms 60ms cubic-bezier(.22,1,.36,1) both}
@keyframes history-frame-return{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){html[data-history-snapshot]::view-transition-old(root){animation:none}}
