/* The intro is independent of the content layout; the navigation is an overlay on the homepage. */
html:has(.bh-intro){background:#000;scrollbar-color:#333 #000}html:has(.bh-intro) body{background:#000}html:has(.bh-intro) .site-head{position:fixed;top:0;left:0;right:0;width:100%;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-16px);transition:opacity .42s ease,transform .42s ease,visibility 0s linear .42s}html:has(.bh-intro).intro-complete .site-head{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition:opacity .42s ease,transform .42s ease,visibility 0s}html:has(.bh-intro):not(.intro-complete) .global-player,html:has(.bh-intro):not(.intro-complete) .mobile-nav{visibility:hidden;pointer-events:none}.bh-intro{height:260vh;height:260dvh;position:relative;background:#000}.bh-stage{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;isolation:isolate;background:#000;display:grid;place-items:center}.bh-media{width:min(100vw,177.7778dvh);aspect-ratio:16/9;position:relative;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 76%,rgba(0,0,0,.88) 83%,rgba(0,0,0,.35) 94%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 76%,rgba(0,0,0,.88) 83%,rgba(0,0,0,.35) 94%,transparent 100%)}.bh-media canvas,.bh-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.bh-media canvas{opacity:0}.bh-stage.ready canvas{opacity:1}.bh-stage.ready .bh-poster{visibility:hidden}.bh-black{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none}.bh-title{position:absolute;margin:0;opacity:0;transform:scale(1);transform-origin:center center;font-family:'Songti SC','Noto Serif CJK SC','STSong',serif;font-weight:500;line-height:1.2;letter-spacing:.12em;font-size:clamp(28px,6vw,94px);white-space:nowrap;pointer-events:none;text-align:center;padding-left:.12em;color:#eee8db;will-change:transform,opacity}.bh-hint{position:absolute;bottom:max(28px,env(safe-area-inset-bottom));margin:0;text-align:center;font:400 14px 'Songti SC','STSong',serif;letter-spacing:.16em;color:#eee8db;pointer-events:none}.immersive-home{position:relative}html:has(.bh-intro) .cinema-hero{height:100vh;height:100dvh;min-height:0}@media(max-width:800px){.bh-media{width:min(100vw,56.25dvh);aspect-ratio:9/16}.bh-title{font-size:clamp(27px,7vw,45px)}}@media(prefers-reduced-motion:reduce){.bh-title{will-change:auto}html:has(.bh-intro) .site-head{transition:none}}
/* V2.1: viewport-sized media and a gallery that is already in place beneath the intro. */
.bh-intro{background:transparent;z-index:2;pointer-events:none}.bh-stage{background:transparent}.bh-media{width:100vw;height:100vh;height:100dvh;aspect-ratio:auto;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 82%,rgba(0,0,0,.9) 87%,rgba(0,0,0,.45) 95%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 82%,rgba(0,0,0,.9) 87%,rgba(0,0,0,.45) 95%,transparent 100%)}.bh-media canvas,.bh-media .bh-poster{object-fit:cover;object-position:center}.bh-title{font-family:var(--font-display);font-size:clamp(30px,6.3vw,96px);font-weight:900;letter-spacing:-.015em;padding:0}.bh-hint{font-family:var(--font-ui);font-weight:500}.gallery-home{will-change:transform}html:has(.bh-intro):not(.intro-complete) .gallery-home{pointer-events:none}@media(max-width:800px){.bh-media{width:100vw;height:100vh;height:100dvh;aspect-ratio:auto}.bh-title{font-size:min(8vw,40px)}}
/* SVG outlines stay vector-sharp as the viewBox changes; the scene itself never receives clicks. */
.bh-title{width:100%;height:100%;inset:0;max-width:none;max-height:none;overflow:hidden;transform:none!important;will-change:opacity;pointer-events:none}
/* One clipped sticky stage owns the intro and gallery; there is no overlapping page section. */
.bh-intro{height:890vh;height:890svh;background:#000;pointer-events:auto;overflow:clip}.bh-stage{height:100vh;height:100svh;isolation:isolate;background:#000;overflow:hidden;pointer-events:none}.bh-media{height:100vh;height:100svh;z-index:1}.bh-black{z-index:2}.bh-title{z-index:4}.bh-hint{z-index:5}.gallery-scene{position:absolute;inset:0;z-index:3;overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;background:#000}.gallery-scene.interactive{pointer-events:auto}.bh-stage .gallery-scene{height:100%;width:100%}html:has(.bh-intro):not(.intro-complete) .site-head{pointer-events:none}
/* The hint is centered in the visible stage; only its opacity follows scroll. */
.bh-hint{top:50%;bottom:auto;left:50%;width:max-content;max-width:95vw;transform:translate(-50%,-50%);white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:clamp(32px,4vw,72px);font-weight:800;letter-spacing:.02em;color:#f5f5f7;text-shadow:0 1px 4px rgba(0,0,0,.3)}
.gallery-heading{position:absolute;left:0;right:0;bottom:max(5%,env(safe-area-inset-bottom));margin:0;text-align:center;color:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:clamp(38px,4.4vw,68px);font-weight:800;line-height:1.15;pointer-events:none;transform-origin:center;animation:gallery-heading-idle 14s ease-in-out infinite;animation-play-state:paused}
html.intro-complete .gallery-heading{animation-play-state:running}@keyframes gallery-heading-idle{0%,100%{transform:perspective(1200px) rotateY(-3deg) rotateX(-1deg)}50%{transform:perspective(1200px) rotateY(3deg) rotateX(1deg)}}
#react-history-gallery{height:78%} @media(max-width:800px){.bh-hint{font-size:clamp(32px,9vw,40px)}.gallery-heading{font-size:clamp(36px,10vw,44px);bottom:max(7%,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.gallery-heading{animation:none}}

.bh-hint{top:auto;bottom:max(8%,calc(env(safe-area-inset-bottom) + 20px));font-size:clamp(26px,3vw,44px);transform:translateX(-50%)}
.gallery-actions{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:0;right:0;display:flex;align-items:center;flex-direction:column;gap:10px;z-index:5}.gallery-actions .gallery-heading{position:static;color:#d83232;font-size:clamp(34px,4vw,60px)}.gallery-all{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 18px;border:1px solid #777;border-radius:100px;color:#f5f5f7;font-size:14px;text-decoration:none}.gallery-all:hover{border-color:#f5f5f7}.gallery-actions .gallery-all{pointer-events:auto}@media(max-width:800px){.bh-hint{font-size:clamp(24px,7vw,30px)}.gallery-actions .gallery-heading{font-size:clamp(32px,9vw,38px)}}
.gallery-scene #react-history-gallery{height:76%}

/* Compact instruction and quiet article link. */
.bh-hint{font-size:clamp(13px,1.1vw,16px);font-weight:500;letter-spacing:.14em;text-shadow:none;color:#e5e1da}
.gallery-all{border:0;background:none;border-radius:0;padding:0 12px;gap:5px;font-size:16px;font-weight:500}.gallery-all:hover{border:0}.gallery-all svg{transition:transform .2s ease}.gallery-all:hover svg{transform:translateX(3px)}
@media(max-width:800px){.bh-hint{font-size:13px}.gallery-all{font-size:15px}}
/* V3.3: the scene owns clipping; the translucent navigation is confined to its pill. */
.site-head{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:auto}.site-head .ds-nav{border-radius:9999px!important;margin:calc(10px + env(safe-area-inset-top)) auto 0!important;width:calc(100% - 28px)!important;max-width:1200px}.site-head .mobile-drawer{position:absolute;left:14px;right:14px;width:auto;max-width:none;margin:8px 0 0;border-radius:22px;background:rgba(255,255,255,.96);box-sizing:border-box}html[data-theme=night] .mobile-drawer{background:rgba(25,25,27,.97);color:#f5f5f7}body.drawer-open .gallery-scene{pointer-events:none}body.drawer-open .mini-player{visibility:hidden}
.bh-hint span{display:inline-block;animation:hint-breathe 4.6s ease-in-out infinite}.bh-media:after{content:'';position:absolute;inset:0;background:#000;opacity:.015;pointer-events:none;animation:lamp-breathe 6s ease-in-out infinite}.bh-stage.is-scrolling .bh-hint span,.bh-stage.is-scrolling .bh-media:after{animation-play-state:paused}.bh-stage.is-scrolling .bh-media:after{opacity:0}@keyframes hint-breathe{0%,100%{opacity:.65}50%{opacity:1}}@keyframes lamp-breathe{0%,100%{opacity:0}50%{opacity:.03}}
html[data-theme=day] .gallery-scene{background:#fff}html[data-theme=day] .gallery-all{color:#1d1d1f}html[data-theme=day] .gallery-scene .circular-gallery-label{color:#1d1d1f!important}html[data-theme=day] .series-home,html[data-theme=day] .footer{background:#fff;color:#1d1d1f}html[data-theme=night] .series-home,html[data-theme=night] .footer{background:#000;color:#f5f5f7}html[data-theme=day] .site-head .ds-nav{background:rgba(255,255,255,.88);color:#1d1d1f}html[data-theme=day] .site-head .ds-nav .head-tools,html[data-theme=day] .site-head .ds-nav .icon-btn,html[data-theme=day] .site-head .ds-nav .brand,html[data-theme=day] .site-head .ds-nav .main-nav a{color:#1d1d1f}
.mini-player{display:none}.global-player.mini:not([hidden]){position:fixed!important;top:var(--mini-top,calc(env(safe-area-inset-top) + 84px))!important;right:14px!important;left:auto!important;bottom:auto!important;transform:none!important;width:76px!important;height:76px!important;min-height:0!important;padding:6px!important;border-radius:20px!important;display:block!important;overflow:hidden;z-index:65}.global-player.mini>:not(.mini-player):not(audio){display:none!important}.global-player.mini .mini-player{display:grid;grid-template-columns:1fr 24px;align-items:center;width:100%;height:100%;gap:2px}.mini-player button{background:none;border:0;color:var(--ink);padding:0;cursor:pointer}.mini-player img{width:38px;height:38px;object-fit:cover;border-radius:10px}.mini-progress{position:absolute;left:9px;right:9px;bottom:6px;height:3px;background:#8886;border-radius:3px}.mini-progress i{display:block;height:100%;background:#d83232;border-radius:3px;width:0}body.player-mini #app-view main{margin-top:0!important}body.drawer-open .global-player.mini{visibility:hidden}.timeline input[type=range]{height:20px;accent-color:#d83232}.timeline span{font-variant-numeric:tabular-nums}.article-cover{min-height:min(42vw,320px)}
@media(prefers-reduced-motion:reduce){.bh-hint span,.bh-media:after{animation:none!important}}
/* V3.4: fixed overlays never change document flow. */
.site-head{position:fixed!important;top:0;left:0;right:0;width:100%;z-index:60;pointer-events:none}.site-head .ds-nav,.site-head .mobile-drawer{pointer-events:auto}.site-head .ds-nav{margin-top:calc(12px + env(safe-area-inset-top))!important}.article-page.content-main{padding-top:0!important}.content-main:not(.article-page){padding-top:calc(90px + env(safe-area-inset-top))}.article-cover{min-height:0;aspect-ratio:16/10}body.player-active #app-view main,body.player-mini #app-view main{margin-top:0!important}body.player-active #app-view .site-head{padding-bottom:0!important}
html[data-theme=day]:has(.bh-intro).intro-complete,html[data-theme=day]:has(.bh-intro).intro-complete body{background:#fff!important}html[data-theme=day].intro-complete .bh-intro{background:#fff!important}html[data-theme=day] .footer,html[data-theme=day] .series-home{background:#fff!important}
.player-extras{display:flex;align-items:center;justify-content:space-between!important;gap:12px!important;width:100%}.player-aux,.player-window-controls{display:flex;align-items:center;gap:4px;min-width:0}.player-window-controls{margin-left:auto;gap:8px;flex-shrink:0}.player-window-controls button{width:40px;height:44px;min-width:40px;border:0;background:transparent;color:var(--ink)}.player-aux .volume-control{display:none!important}.player-aux>label{flex:0 0 auto}.player-aux .sleep-panel{flex:none}@media(max-width:390px){.player-aux{gap:0}.player-window-controls{gap:2px}.player-window-controls button{width:36px;min-width:36px}.player-extras{gap:4px!important}}
.bh-media:after{background:#000;animation:lamp-breathe-v34 6s ease-in-out infinite}.bh-hint span{animation:hint-breathe-v34 4.8s ease-in-out infinite}@keyframes lamp-breathe-v34{0%,100%{opacity:0}50%{opacity:.075}}@keyframes hint-breathe-v34{0%,100%{opacity:.42}50%{opacity:1}}

/* Fixed vector viewport; per-device frames originate from the 4K master. */
.bh-title{inset:auto!important;left:50%!important;top:50%!important;height:auto!important;max-width:none!important;max-height:none!important;transform:translate(-50%,-50%)!important;will-change:auto!important;overflow:visible!important}
.bh-media:after{animation:none!important;opacity:0!important}.bh-media canvas,.bh-media .bh-poster{animation:lamp-hd-breathe 5.4s ease-in-out infinite}.bh-stage.is-scrolling .bh-media canvas,.bh-stage.is-scrolling .bh-media .bh-poster{animation:none}@keyframes lamp-hd-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(.88)}}@media(prefers-reduced-motion:reduce){.bh-media canvas,.bh-media .bh-poster{animation:none!important}}
