/* Shared header sizing and universal Bitpixel footer, on every page. */
:root{--header:80px;--site-gutter:clamp(22px,4.2vw,72px);--brand-mark-size:30px;--brand-word-width:128px;--brand-gap:13px;--site-nav-size:15px}
.site-header{--brand-full-width:calc(var(--brand-mark-size) + var(--brand-gap) + var(--brand-word-width));--brand-icon-width:var(--brand-mark-size);height:var(--header);padding-inline:max(var(--site-gutter),env(safe-area-inset-left,0px)) max(var(--site-gutter),env(safe-area-inset-right,0px))}
.site-header .brand{gap:20px;min-height:44px}
.site-header .site-brand-lockup,.site-header .brand:has(>.brand-word){display:inline-flex;align-items:center;gap:var(--brand-gap);width:auto;flex:0 0 auto}
.site-header .site-brand-lockup{width:var(--brand-full-width)}.site-header.is-compact-brand .site-brand-lockup{width:var(--brand-icon-width)}
.site-header :is(.brand-mark,.site-brand-mark){display:block;width:var(--brand-mark-size);height:var(--brand-mark-size);max-width:none;flex:0 0 auto;object-fit:contain;border-radius:0;mix-blend-mode:normal}
.site-header :is(.brand-word,.site-brand-wordmark){display:block;width:var(--brand-word-width);height:auto;max-width:none;flex:0 0 auto;object-fit:contain;border-radius:0;mix-blend-mode:normal}
.site-header .site-project-lockup{width:auto;height:clamp(15px,1.6vw,21px);max-width:220px}
.site-header nav a{font-family:"Rubik","Noto Sans SC",sans-serif;font-size:var(--site-nav-size);font-weight:400;line-height:1.25;letter-spacing:0;white-space:nowrap}
.site-header>nav:not(.desktop-nav){gap:32px}.site-header .desktop-nav a{min-height:40px}
.site-footer.section{--footer-gutter:var(--site-gutter);box-sizing:border-box;width:100%;max-width:none;margin:0;padding:clamp(36px,5vw,80px) var(--footer-gutter) 25px;background:#000;color:#fff;border:0;border-radius:0;font-family:"Rubik","Noto Sans SC",sans-serif;font-size:16px;line-height:1.4}
.site-footer .footer-top{display:block;margin:0;padding:0}.site-footer .footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(24px,3.5vw,60px);width:100%;min-height:0;margin:0;padding:0;font:inherit;letter-spacing:0}
.site-footer .footer-brand-row{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%}.site-footer .footer-mark-link{display:inline-flex;align-items:center;min-height:44px}
.site-footer .footer-brand-mark{display:block;width:clamp(44px,4.5vw,72px);height:auto;max-width:100%;object-fit:contain;border-radius:0;mix-blend-mode:normal}
.site-footer .footer-wordmark-link{display:block;width:100%}.site-footer .footer-wordmark{display:block;width:100%;max-width:none;height:auto;margin:0;border-radius:0;object-fit:contain;filter:none;mix-blend-mode:normal}
.site-footer .language-toggle{display:inline-flex;align-items:center;gap:3px;padding:4px;margin-left:auto;border:1px solid rgb(255 255 255 / .35);border-radius:999px}
.site-footer .language-toggle :is(button,a){display:inline-grid;place-items:center;min-width:66px;min-height:44px;margin:0;padding:8px 14px;border:0;border-radius:999px;background:transparent;color:rgb(255 255 255 / .7);font:400 13px/1 "Rubik","Noto Sans SC",sans-serif;letter-spacing:0;cursor:pointer;transition:background-color .18s,color .18s}
.site-footer .language-toggle :is(button,a)[aria-pressed="true"]{background:#fff;color:#111}.site-footer .language-toggle :is(button,a):hover{color:#fff;background:rgb(255 255 255 / .14)}.site-footer .language-toggle :is(button,a)[aria-pressed="true"]:hover{background:#fff;color:#111}.site-footer .language-toggle :is(button,a):focus-visible{outline:2px solid #fff;outline-offset:3px}
.site-footer .footer-actions{display:grid;grid-template-columns:auto repeat(3,auto);align-items:center;justify-content:space-between;gap:8px;width:100%;margin:clamp(28px,4vw,64px) 0 0;padding:0;color:#fff}
.site-footer .footer-actions .text-link{display:inline-flex;justify-content:center;align-items:center;gap:.6em;min-height:44px;margin:0;padding:12px clamp(8px,1.2vw,16px);border:0;border-radius:999px;background:none;color:#fff;font:400 clamp(10px,1.1vw,14px)/1 "Rubik","Noto Sans SC",sans-serif;letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s}
.site-footer .footer-actions .text-link>span{display:inline-flex;align-items:center;justify-content:center;font-size:1em;line-height:1}.site-footer .footer-actions .text-link:is(:hover,:focus-visible){color:#000;background:#fff;text-decoration:none}
.site-footer .footer-socials{display:flex;align-items:center;gap:6px}.site-footer .footer-social-link{position:relative;display:block;flex:0 0 44px;width:44px;height:44px;border-radius:14px}
.site-footer .footer-social-link:before{content:"";position:absolute;inset:0;border-radius:inherit;background:#fff;opacity:0;box-shadow:0 2px 6px rgb(0 0 0 / .14);transition:opacity .18s}
.site-footer .footer-social-link img{position:absolute;inset:8px;display:block;width:28px;height:28px;max-width:none;margin:0;object-fit:contain;transition:opacity .18s}.site-footer .footer-social-link .social-icon-active{opacity:0}
.site-footer .footer-social-link:is(:hover,:focus-visible,:active):before,.site-footer .footer-social-link:is(:hover,:focus-visible,:active) .social-icon-active{opacity:1}.site-footer .footer-social-link:is(:hover,:focus-visible,:active) .social-icon-inactive{opacity:0}.site-footer .footer-social-link:focus-visible{outline:2px solid #fff;outline-offset:4px}
.site-footer .rights{max-width:85ch;margin:34px 0 0;padding:0;color:rgb(255 255 255 / .56);font:400 10px/1.6 "Noto Sans SC",sans-serif;letter-spacing:0}
.site-footer .footer-bottom{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:20px;margin:28px 0 0;padding:0;color:rgb(255 255 255 / .56);font:400 clamp(12px,calc(.7rem + .12vw),14px)/1.4 "Rubik","Noto Sans SC",sans-serif;letter-spacing:0}.site-footer .footer-bottom span:last-child{text-align:right}
@media(max-width:1100px){:root{--header:76px;--site-gutter:26px;--brand-mark-size:28px;--brand-word-width:112px;--brand-gap:12px}.site-header .brand{gap:16px}.site-header .site-project-lockup{width:auto;height:clamp(14px,1.9vw,18px);max-width:205px}.site-header>nav:not(.desktop-nav){gap:26px}}
@media(max-width:600px){:root{--header:72px;--site-gutter:20px;--brand-mark-size:24px;--brand-word-width:88px;--brand-gap:10px;--site-nav-size:14px}.site-header .brand{gap:12px}.site-header>nav:not(.desktop-nav){gap:18px}.site-header .site-project-lockup{width:auto;height:clamp(12px,3vw,16px);max-width:clamp(128px,34vw,180px)}.site-footer.section{padding:36px var(--footer-gutter) calc(112px + env(safe-area-inset-bottom,0px))}.site-footer .language-toggle :is(button,a){min-width:58px;padding-inline:12px;font-size:12px}.site-footer .rights{font-size:9px;margin-top:24px}.site-footer .footer-bottom{gap:15px;margin-top:20px;font-size:12px}}
@media(max-width:479px){.site-footer .footer-actions{grid-template-columns:repeat(3,auto);row-gap:12px}.site-footer .footer-socials{grid-column:1/-1}}
@media(max-width:359px){.site-header>nav:not(.desktop-nav){gap:12px}.site-header .site-project-lockup{max-width:120px}.site-header .brand{gap:8px}}
@media(prefers-reduced-motion:reduce){.site-footer button,.site-footer .footer-social-link:before,.site-footer .footer-social-link img{transition:none}}
@media print{.site-footer.section{padding-bottom:20px}.site-footer .footer-actions{display:none}}

@media(max-width:900px){.site-header .desktop-nav{display:none}}

/* One graphical close control across all project, chapter and image layers. */
body button.site-close,body #project-hero button.site-close{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:#dedede;color:#444;line-height:1;font-size:0;cursor:pointer}
body button.site-close svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
body button.site-close:hover,body #project-hero button.site-close:hover{background:#ccc}
body button.site-close:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* The close surface follows the original b mark's outer vector contour. */
body button.site-close,body #project-hero button.site-close{position:relative;isolation:isolate;border-radius:10%;background:transparent;--close-fill:#dedede}
body button.site-close::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--close-fill);-webkit-mask:url("assets/close-button-contour.svg") center/100% 100% no-repeat;mask:url("assets/close-button-contour.svg") center/100% 100% no-repeat}
body button.site-close:hover,body #project-hero button.site-close:hover{background:transparent;--close-fill:#ccc}
body #project-hero button.hero-layer-close{position:fixed}

/* Case pages share tighter heading rhythm; body paragraphs retain their roles. */
body:has(.site-header .site-project-lockup) main :is(h1,h2,h3){line-height:1.08!important}
body:has(.site-header .site-project-lockup) main :is(h4,h5,h6){line-height:1.18!important}
body:has(.site-header .site-project-lockup) main :is(.deck-eyebrow,.deck-header,.editorial-subheading,.mood-title,.credits-name){line-height:1.18!important}
@media(max-width:600px){
 .site-header:has(.site-project-lockup) .site-brand-wordmark{display:none!important}
 .site-header:has(.site-project-lockup) .site-brand-lockup{width:var(--brand-icon-width)!important;flex:0 0 var(--brand-icon-width)!important;gap:0}
}

/* Adjacent slides meet directly; shared closing-page H1 paragraph family. */
#main .source-film{margin-block:0;padding-block:0}
#main .deck-page+.deck-page{margin-block-start:0}
.case-page-title{font-family:var(--font-display);font-size:clamp(28px,3.75vw,72px)!important;font-weight:400!important;line-height:1.08!important;letter-spacing:-.01em!important}
.x300-case .case-page-title{font-size:clamp(28px,3.75cqw,72px)!important}
@media(min-width:601px) and (max-width:1100px){.case-page-title{font-size:clamp(26px,4.1666667vw,52px)!important}.x300-case .case-page-title{font-size:clamp(26px,4.1666667cqw,52px)!important}}
@media(max-width:600px){.case-page-title{font-size:clamp(25px,7.4074074vw,42px)!important}.x300-case .case-page-title{font-size:clamp(25px,7.4074074cqw,42px)!important}}

/* One horizontal center line and one gap between navigation identity groups. */
.site-header{--nav-group-gap:clamp(20px,2vw,28px);align-items:center}
.site-header .brand{display:inline-flex;align-items:center;line-height:1;column-gap:var(--nav-group-gap)}
.site-header :is(.brand-word,.site-brand-wordmark){width:calc(var(--brand-word-width)*.8);align-self:center;margin:0;vertical-align:middle}
.site-header .site-brand-lockup{display:inline-flex;align-items:center;gap:var(--brand-gap);width:calc(var(--brand-mark-size) + var(--brand-gap) + var(--brand-word-width)*.8)}
.site-header.is-compact-brand .site-brand-lockup{width:var(--brand-mark-size)}
.site-header .brand-project{display:flex;align-items:center;justify-content:center;line-height:1}
@media(max-width:600px){.site-header{--nav-group-gap:16px}.site-header :is(.brand-word,.site-brand-wordmark){display:none!important}.site-header .brand:has(>.brand-word){gap:0}.site-header .site-brand-lockup{width:var(--brand-mark-size)!important;flex:0 0 var(--brand-mark-size)!important;gap:0}}

.site-header .brand-home{display:inline-flex;align-items:center;min-height:44px;flex:none}
.site-header button.brand-project{margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;min-height:44px}
body:has(.site-project-lockup) .edge-fade-top::after{background:linear-gradient(to bottom,rgb(247 247 244 / .9),rgb(247 247 244 / .35) 42%,rgb(247 247 244 / 0) 100%)}
body:has(.site-project-lockup) .edge-fade-top>span:first-child{--edge-blur:15px}
.site-back-to-top{position:fixed;z-index:75;right:max(24px,env(safe-area-inset-right,0px));bottom:calc(28px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;border:0;outline:0;padding:0;border-radius:50%;background:rgb(118 118 128 / .24);color:#fff;-webkit-backdrop-filter:blur(28px) saturate(1.3);backdrop-filter:blur(28px) saturate(1.3);box-shadow:0 4px 18px #00000012;cursor:pointer;transition:background-color .2s,transform .2s}
.site-back-to-top[hidden]{display:none!important}.site-back-to-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #0003)}
.site-back-to-top:hover,.site-back-to-top:focus-visible{background:#000;color:#fff}.site-back-to-top:active{transform:scale(.95)}
.site-back-to-top:focus-visible{outline:2px solid #73737a;outline-offset:3px;border-radius:50%}
@media(max-width:900px){.site-back-to-top{right:max(20px,env(safe-area-inset-right,0px));bottom:calc(104px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.site-back-to-top{transition:none}}

/* Optical baseline correction for compact section names. */
.site-header .section-context{position:relative;top:0}

/* v49: case identities use the b mark; actual glyph ink shares its center. */
.site-header:has(.site-project-lockup) .site-brand-wordmark{display:none!important}
.site-header:has(.site-project-lockup) .site-brand-lockup{width:var(--brand-mark-size)!important;flex:0 0 var(--brand-mark-size)!important;gap:0}
.site-header:has(.site-project-lockup) .site-project-lockup{scale:.9;transform-origin:center}
.site-header:has(.site-project-lockup) .section-context{display:flex!important;align-items:center!important;height:44px;min-height:44px;line-height:1!important;top:0!important;color:#000!important}
.nav-context-ink{display:block;line-height:1;position:relative}

.site-footer .footer-youtube img{inset:0;width:auto;height:auto}
.site-footer .footer-youtube:is(:hover,:focus-visible,:active) img{filter:invert(1)}

/* Keep the Work entry a full-height target in both header treatments. */
.nav.a-navigation .a-primary-item>a,.nav.bp-global-header>nav>a{display:inline-flex;align-items:center;min-height:44px}
.bp-site-menu .bp-primary-links .bp-work-heading{display:inline-flex;align-items:center}
.bp-site-menu .bp-primary-links .bp-work-heading>a{display:inline-flex;align-items:center;min-height:44px}
.bp-site-menu .bp-primary-links .bp-work-heading>a+.bp-work-toggle{min-width:44px;justify-content:center}

/* No word alone on the last line of any text block, at any size, in English or Chinese (owner rule 2026-11-10, BC-2026-11-10c §5).
   The boards join the last two words with a non-breaking space; the site keeps those and lets the browser finish the job. */
p, li, h1, h2, h3, h4, h5, h6, dt, dd, figcaption, blockquote, label, .cf p, .cf div { text-wrap: pretty; }

/* Case pages: the logo cover stays up while the case board is still loading (case-frame.js adds cf-loading). */
html.cf-loading .case-entry-cover { transform: translateY(0); visibility: visible; transition: none; }
/* Secondary grey on the Light page (BC-2026-11-11a §1.1): #767676 reads 4.06 on the #F2F2F2 page, under the 4.5 body-copy
   floor; #6E6E73 reads 4.6 there and 5.1 on white. Dark keeps #A0A0A8. */
html:not(.dark-mode),html:not(.dark-mode) .cv2{--muted:#6e6e73}
