/* Museum gallery and photographic home. Other page palettes remain unchanged. */
:root{--home-image-shade:linear-gradient(90deg,rgba(15,20,15,.82),rgba(15,20,15,.48) 32%,rgba(15,20,15,.05) 70%),linear-gradient(0deg,rgba(15,20,15,.64),transparent 40%);--home-rule:rgba(241,240,233,.55);--home-header-shade:linear-gradient(180deg,rgba(15,20,15,.38),transparent)}
.site-header .brand-en{display:none}.header-action-icon,.header-search{display:none}
.home-cover .topline,.home-cover .site-preview-note{display:none}
.home-cover .site-header{position:absolute;inset:0 0 auto;height:6.5rem;padding-inline:6%;border:0;background:var(--home-header-shade);backdrop-filter:none;color:var(--color-text-inverse)}
.home-cover .brand-mark{display:none}.home-cover .site-header .brand-cn{font-size:clamp(1.25rem,1.9vw,2rem);letter-spacing:.18em;color:inherit}.home-cover .site-header .brand-en{display:block;margin-top:.4rem;font: .65rem/1.4 var(--font-serif-display);letter-spacing:.23em;color:inherit}
.home-cover .main-nav{margin-right:auto;margin-left:3rem;padding-left:3rem;border-left:1px solid var(--home-rule);gap:3rem}.home-cover .main-nav a,.home-cover .main-nav button{color:var(--color-text-inverse);font-family:var(--font-serif-display);font-size:1.1rem;letter-spacing:.15em}
.home-cover .main-nav a[href="#home"]{display:none}.home-cover .main-nav a[href="#gallery"]{border-bottom:1px solid var(--home-rule);padding-bottom:.5rem}
.home-cover .header-actions{gap:1.5rem}.home-cover .header-actions :is(button,a){color:var(--color-text-inverse)}.home-cover .header-action-icon,.home-cover .header-search{display:block;width:1.65rem;height:1.65rem;fill:none;stroke:currentColor;stroke-width:1}
.home-cover .header-bag-label,.home-cover #account-open>span,.home-cover .demo-label{display:none}.home-cover .bag{position:relative;border:0;padding:.5rem}.home-cover .bag #cart-count{position:absolute;right:-.15rem;top:-.15rem;width:1.1rem;height:1.1rem;font-size:.65rem;background:var(--color-text-inverse);color:var(--color-text-primary)}
.home-cover .menu-toggle{display:grid;place-items:center;padding:0;width:2.75rem;height:2.75rem;background:transparent;border:0;font-weight:300}.home-cover .main-nav.open{position:absolute;top:6rem;left:auto;right:6%;display:flex;align-items:flex-start;flex-direction:column;margin:0;padding:1.5rem 2rem;gap:1.25rem;width:17rem;background:var(--color-paper);border:1px solid var(--color-line)}.home-cover .main-nav.open :is(a,button){color:var(--color-text-primary)}
#home .home-hero{padding:0}#home .hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:100svh;margin:0;padding:9rem 7.5% 13rem;overflow:hidden;color:var(--color-text-inverse)}
#home .hero-image{position:absolute;inset:0;z-index:-2;display:block;margin:0;min-height:0;width:100%;height:100%;border:0;background:var(--color-text-primary)}
#home .hero-image img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% center;filter:none;transform:none}
#home .hero-image::after{content:"";position:absolute;inset:0;background:var(--home-image-shade)}
#home .hero-copy{position:relative;max-width:32rem;padding:0;margin:0;color:var(--color-text-inverse)}
#home .hero-copy .eyebrow{margin:0 0 1rem;font:.875rem/1.7 var(--font-serif-display);letter-spacing:.26em;text-transform:uppercase;color:inherit}
#home .hero-copy h1{margin:0;font:400 clamp(2.75rem,4.2vw,4.5rem)/1.3 var(--font-serif-display);letter-spacing:.14em;color:inherit}
#home .home-hero-subtitle{margin:.65rem 0 0;font:clamp(1rem,1.4vw,1.5rem)/1.8 var(--font-serif-display);letter-spacing:.23em;color:inherit}
#home .home-hero-rule{display:block;width:2.5rem;height:1px;margin:2rem 0;background:var(--home-rule)}
#home .hero-desc{max-width:21em;margin:0;font:1rem/1.9 var(--font-serif-display);letter-spacing:.08em;color:inherit}
#home .hero-meta{margin-top:2rem}#home .hero-meta a{min-width:15.5rem;justify-content:space-between;padding:1rem 1.5rem;border:1px solid var(--home-rule);background:transparent;font:1.1rem/1.5 var(--font-serif-display);letter-spacing:.2em;color:inherit}
#home .hero-meta a:hover{background:var(--color-text-inverse);color:var(--color-text-primary)}
.home-slide-controls{position:absolute;right:2.5%;top:29%;display:flex;flex-direction:column;align-items:center;gap:3rem;color:var(--color-text-inverse)}
.home-slide-count{display:flex;flex-direction:column;align-items:center;gap:.65rem;font:1rem/1.5 var(--font-serif-display);letter-spacing:.2em}.home-slide-count b,.home-slide-count i{font-weight:400;font-style:normal}
.home-slide-dots{display:grid;gap:0}.home-slide-dots button{width:2.75rem;height:1.75rem;padding:0;border:0;background:transparent;color:inherit;display:grid;place-items:center}.home-slide-dots button::before{content:"";display:block;width:.4rem;height:.4rem;border:1px solid currentColor;border-radius:50%}.home-slide-dots button[aria-pressed="true"]::before{background:currentColor}
.home-chapters{position:absolute;bottom:2.5rem;left:6.7%;right:6.7%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding-top:1.5rem;border-top:1px solid var(--home-rule)}
.home-chapters a{position:relative;display:flex;flex-direction:column;align-items:center;gap:.45rem;padding:0 1rem;text-align:center;color:var(--color-text-inverse)}.home-chapters a+a:before{content:"";position:absolute;left:0;top:.6rem;height:2rem;width:1px;background:var(--home-rule)}
.home-chapters span{font:400 clamp(1.125rem,1.7vw,1.75rem)/1.5 var(--font-serif-display);letter-spacing:.17em}.home-chapters small{font:.65rem/1.6 var(--font-serif-display);letter-spacing:.22em}.home-chapters a:hover span{text-decoration:underline;text-underline-offset:.4rem}
#gallery .page-content{padding:3rem 6.2% 7rem;background:var(--color-paper)}
#gallery .filters{display:flex;flex-wrap:wrap;gap:.2rem 1.75rem;margin:0 0 3.5rem;padding:0 0 1rem;border-bottom:1px solid var(--color-line)}
#gallery .filter{position:relative;min-height:2.75rem;padding:.5rem 0;border:0;background:transparent;font:var(--text-ui)/1.6 var(--font-sans-cn);color:var(--color-text-secondary)}
#gallery .filter.active{background:transparent;color:var(--color-text-primary)}#gallery .filter.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor}
#gallery-works{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(2rem,4vw,5rem);row-gap:4.5rem}
#gallery-works .art-card{min-width:0;padding:0;background:transparent;border:0;box-shadow:none}
#gallery-works .art-thumb{aspect-ratio:4/3;overflow:hidden}#gallery-works .art-thumb-main img{display:block;width:100%;height:100%;object-fit:contain;filter:none;transform:none;transition:opacity .2s}#gallery-works .art-thumb-main:hover img{transform:none;opacity:.9}
#gallery-works .art-info{display:flex;flex-direction:column;align-items:stretch;gap:1rem;padding:1.25rem 0 0;height:auto;min-height:0}
#gallery-works .art-info>div:first-child{display:flex;flex-direction:column;gap:.3rem}
#gallery-works .art-title{font:400 var(--text-lead)/1.6 var(--font-serif-display);letter-spacing:.025em;color:var(--color-text-primary)}
#gallery-works .art-sub{font:var(--text-caption)/1.7 var(--font-sans-cn);color:var(--color-text-tertiary)}
#gallery-works .art-purchase{display:flex;align-items:center;justify-content:space-between;gap:1rem}
#gallery-works .art-price{font:var(--text-caption)/1.7 var(--font-latin);color:var(--color-text-body);text-align:left;font-variant-numeric:tabular-nums}
#gallery-works .product-add{position:static;display:inline-flex;align-items:center;gap:.75rem;width:auto;height:auto;min-height:2.75rem;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:var(--text-caption)/1.7 var(--font-sans-cn);color:var(--color-text-link)}
#gallery-works .product-add:hover{background:transparent;color:var(--color-text-primary);text-decoration:underline;text-underline-offset:.3rem}
#gallery :is(button,a):focus-visible,.home-cover :is(button,a):focus-visible{outline:var(--focus-ring);outline-offset:5px}#home .hero :is(button,a):focus-visible,.home-cover .site-header :is(button,a):focus-visible{outline:var(--focus-ring-inverse);outline-offset:5px}
@media(max-width:1050px){.home-cover .main-nav{margin-left:2rem;padding-left:2rem;gap:1.5rem}.home-cover .header-actions{gap:.75rem}#gallery-works{grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem 2rem}}
@media(max-width:780px){.home-cover .site-header{height:5rem;padding-inline:6%}.home-cover .brand-cn{font-size:1.25rem}.home-cover .main-nav{display:none}.home-cover .main-nav.open{top:5rem}.home-cover .header-actions{gap:.5rem}.home-cover .header-search{display:none}.home-cover #account-open{display:none}#home .hero{min-height:100svh;padding:10rem 8% 14rem;align-items:center}#home .hero-copy{max-width:85%}#home .hero-copy h1{font-size:2.75rem}#home .home-hero-subtitle{font-size:1rem;letter-spacing:.14em}#home .hero-desc{font-family:var(--font-reading);font-size:1rem;max-width:17em}#home .hero-copy .eyebrow{font-size:.75rem}.home-slide-controls{right:2%;top:30%;gap:2rem}.home-slide-count{font-size:.875rem}.home-chapters{bottom:1.5rem;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:1.25rem;padding-top:1.25rem}.home-chapters a:nth-child(3):before{display:none}.home-chapters span{font-size:1.125rem}.home-chapters small{font-size:.6rem;letter-spacing:.13em}#gallery .page-content{padding:2rem 6% 4rem}#gallery .filters{gap:0 1.3rem;margin-bottom:2rem}#gallery .filter{font-size:.875rem}#gallery-works{gap:2.75rem 1.25rem}#gallery-works .art-title{font-size:1rem}#gallery-works .art-info{padding-top:1rem}}
@media(max-width:560px){#gallery-works{grid-template-columns:minmax(0,1fr);gap:3rem}#gallery-works .art-thumb{aspect-ratio:4/3}#home .hero-meta a{min-width:13rem}.home-cover .brand-en{font-size:.5rem}.home-cover .site-header .brand-cn{font-size:1.1rem}.home-cover .header-action-icon{width:1.4rem;height:1.4rem}}
@media(prefers-reduced-motion:reduce){#gallery-works img{transition:none}}
/* Stable header alignment: the active underline is outside the flex item box. */
.home-cover .main-nav,.home-cover .header-actions{align-items:center}
.home-cover .main-nav a[href="#gallery"]{padding-bottom:0;border-bottom:0;line-height:1.5}
.home-cover .main-nav a[href="#gallery"]::after{content:"";position:absolute;left:0;right:0;bottom:-.7rem;height:1px;background:var(--home-rule)}
.home-cover .main-nav :is(a,.nav-action){display:inline-flex;align-items:center;min-height:2.75rem;line-height:1.5}
.home-cover .header-actions>:is(a,button){display:inline-flex;justify-content:center;align-items:center;min-width:2.75rem;height:2.75rem;margin:0;padding:0;line-height:1}
.home-cover .header-actions #account-open{display:inline-flex}
#home .hero-image{z-index:0}#home .hero-copy,.home-slide-controls,.home-chapters{z-index:2}
#home .hero-image img.home-bg-layer{opacity:0;transition:opacity .9s ease;pointer-events:none}
#home .hero-image img.home-bg-layer.is-current{opacity:1}
#home .hero-image::after{z-index:1;pointer-events:none}
.home-carousel-pause{display:grid;place-items:center;width:2.75rem;height:2.75rem;border:0;background:transparent;color:inherit;font-size:1rem;line-height:1}
@media(prefers-reduced-motion:reduce){#home .hero-image img.home-bg-layer{transition:none}}
@media(max-width:780px){.home-cover .header-actions #account-open{display:none}.home-cover .header-actions .header-search{display:none}}
/* One persistent navigation grid on every public page. */
.topline{position:absolute;inset:0 0 auto;z-index:25}
.site-header,.home-cover .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;height:6.5rem;padding-inline:6%;gap:1rem}
.site-header .brand{min-width:0;justify-self:start}
.site-header .main-nav,.home-cover .main-nav,.home-cover .main-nav.open{display:flex;position:static;flex-direction:row;justify-self:center;align-items:center;width:auto;margin:0;padding:0;border:0;background:transparent;gap:clamp(1.25rem,2.5vw,3rem)}
.site-header .main-nav>a,.home-cover .main-nav a[href="#home"]{display:inline-flex;align-items:center;min-height:2.75rem;padding:0;border:0;font:1rem/1.5 var(--font-serif-display);letter-spacing:.12em}
.site-header .main-nav [hidden]{display:none!important}
.site-header .header-actions{justify-self:end;display:flex;align-items:center;gap:1rem}
.home-cover .main-nav a[href="#gallery"]::after{display:none}
.site-header .main-nav a::after{content:"";position:absolute;left:0;right:0;bottom:-.2rem;height:1px;background:currentColor;display:none}
.site-header .main-nav a.active::after{display:block}
.site-header .main-nav.open a{color:inherit}
.site-header .header-actions>:is(a,button){display:inline-flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle}
@media(max-width:780px){
 .site-header,.home-cover .site-header{grid-template-columns:minmax(0,1fr) auto;height:8rem;padding:1rem 6% .75rem;grid-template-rows:2.75rem 2.75rem;gap:.75rem .5rem}
 .site-header .brand{grid-column:1;grid-row:1}.site-header .header-actions{grid-column:2;grid-row:1;gap:.5rem}
 .site-header .main-nav,.home-cover .main-nav,.home-cover .main-nav.open{grid-column:1/-1;grid-row:2;gap:clamp(.5rem,3vw,1.75rem)}
 .site-header .main-nav>a{font-size:.9375rem}.site-header .main-nav #mobile-account{display:none}
 .site-header .header-actions .demo-label{display:none}.site-header .brand-mark{display:none}
 #home .hero{padding-top:12rem}
}
.site-extra-menu{position:absolute;right:6%;top:calc(100% - .5rem);display:flex;flex-direction:column;gap:1rem;min-width:12rem;padding:1.5rem;background:var(--color-paper);border:1px solid var(--color-line);color:var(--color-text-primary)}
.site-extra-menu[hidden]{display:none}
.site-extra-menu :is(a,button){border:0;background:transparent;text-align:left;font:var(--text-ui)/1.5 var(--font-sans-cn);color:var(--color-text-primary)}

/* Membership belongs to the right-hand action group, never the three-link navigation. */
.site-header .main-nav #mobile-account{display:none}
/* Keep the introductory custom-portrait heading on one line at its actual column width. */
#custom .custom-lead-copy{container-type:inline-size}
#custom .custom-lead-copy h2{font-size:clamp(var(--text-lead),2.4vw,var(--text-title-large));font-size:clamp(var(--text-lead),7.5cqw,var(--text-title-large));letter-spacing:.02em;white-space:nowrap!important;text-wrap:nowrap;max-width:none}
/* Shared icon actions and a single pair of cover alignment guides. */
:root{--site-inline-gutter:6%}
.site-header .header-actions #cart-open,.site-header .header-actions #account-open,.home-cover .header-actions #account-open{position:relative;display:inline-flex;align-items:center;justify-content:center;width:2.75rem;min-width:2.75rem;height:2.75rem;padding:0;border:0;background:transparent;color:inherit}
.site-header #cart-open .header-bag-label,.site-header #account-open>span{display:none}
.site-header .header-action-icon{display:block;width:1.65rem;height:1.65rem;fill:none;stroke:currentColor;stroke-width:1}
.site-header #cart-open #cart-count{position:absolute;top:-.2rem;right:-.15rem;display:inline-grid;place-items:center;width:auto;min-width:1.5rem;height:1.5rem;margin:0;padding:0 .25rem;border-radius:999px;background:var(--color-text-inverse);color:var(--color-text-primary);font:var(--text-caption)/1 var(--font-sans-cn)}
.site-header,.home-cover .site-header{padding-inline:var(--site-inline-gutter)}
#home .hero{padding-inline:var(--site-inline-gutter);flex-direction:row;justify-content:flex-start}
#home .home-chapters{left:var(--site-inline-gutter);right:var(--site-inline-gutter)}
#home .home-slide-controls{right:var(--site-inline-gutter);align-items:flex-end}
#home .home-slide-count{align-items:flex-end;text-align:right}
#home .home-slide-dots button,#home .home-carousel-pause{place-items:center end}
.site-header .header-actions #menu-toggle{justify-content:flex-end;padding-inline:0}
/* Align the complete wordmark, navigation and icon controls to one header midline. */
.site-header>.brand,.site-header>.main-nav,.site-header>.header-actions{align-self:center;align-items:center}
.site-header>.brand>span:last-child{display:flex;flex-direction:column;justify-content:center;gap:.35rem;line-height:1}
.site-header .brand-cn{display:block;line-height:1.2}
.site-header .brand-en,.home-cover .site-header .brand-en{margin-top:0;line-height:1.2}
.site-header .header-actions{line-height:1}
.site-header .header-actions svg{display:block;flex:none;vertical-align:middle}

/* Overlay panels share all six row tracks, keeping every text and CTA anchor fixed. */
#home .hero-copy:has(.home-copy-panel){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(6,auto);width:32rem;text-align:left}
#home .home-copy-panel{display:grid;grid-template-rows:subgrid;grid-row:1 / span 6;grid-column:1;min-width:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .9s ease,visibility .9s}
#home .home-copy-panel.is-current{opacity:1;visibility:visible;pointer-events:auto}
#home .home-copy-panel>*{grid-column:1;min-width:0}
#home .home-copy-panel :is(h1,.eyebrow,.home-hero-subtitle,.hero-desc){overflow-wrap:anywhere}
#home .home-slide-count{letter-spacing:0;font-variant-numeric:tabular-nums}
#home .home-carousel-pause{padding-inline:0}
.site-header #menu-toggle svg{transform:translateX(4px)}
#gallery-works .art-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.1rem 1rem;padding-top:.75rem}
#gallery-works .art-title{font-size:var(--text-body);line-height:1.6;letter-spacing:0;margin:0;min-width:0}
#gallery-works .art-price{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
#gallery-works .art-sub{grid-column:1;grid-row:2;margin:0;line-height:1.6}
#gallery-works .art-info>.product-add{grid-column:2;grid-row:2;justify-self:end;min-height:2.75rem}
@media(prefers-reduced-motion:reduce){#home .home-copy-panel{transition:none}}
/* Equal chapter columns use the same outer guides as the header and hero. */
#home .home-chapters{grid-template-columns:repeat(4,minmax(0,1fr))}
#home .home-chapters a{min-width:0;padding-inline:0}
#home .home-chapters a:first-child{align-items:flex-start;text-align:left}
#home .home-chapters a:last-child{align-items:flex-end;text-align:right}
@media(max-width:780px){
 #home .home-chapters{column-gap:.75rem;row-gap:0}
 #home .home-chapters span{font-size:clamp(.75rem,2.8vw,1.125rem);letter-spacing:.04em}
 #home .home-chapters small{font-size:.5625rem;letter-spacing:.04em;line-height:1.5}
 #home .home-chapters a+a:before{display:block;left:-.375rem;top:.3rem;height:1.75rem}
}

.site-header #cart-open #cart-count{background:var(--color-text-primary);color:var(--color-text-inverse)}
.site-header .header-actions #account-open{justify-content:flex-end}
.site-header #account-open svg{transform:translateX(4px)}

/* This longer cover title stays on one line within the shared copy column. */
#home .hero-copy{container-type:inline-size;width:32rem}
#home .hero-copy h1.home-title-single-line{white-space:nowrap;overflow-wrap:normal;font-size:clamp(1.375rem,13cqw,4.5rem)}
