/* Only the localized home downloads this font or applies these rules. */
@font-face{font-family:"Portfolio Serif SC";src:url("fonts/portfolio-serif-zh-v5.woff2") format("woff2");font-style:normal;font-weight:400;font-display:fallback}
html[lang=zh-CN]{--portfolio-zh-serif:"Portfolio Serif SC","Songti SC","SimSun",serif;--portfolio-type:"Courier Prime",var(--portfolio-zh-serif)}
html[lang=zh-CN] .hero-role,html[lang=zh-CN] .case-opening-role{letter-spacing:0;line-height:1.55}
html[lang=zh-CN] .chapter-type{letter-spacing:.045em}
html[lang=zh-CN] .film-note{font-family:var(--portfolio-zh-serif);font-style:normal;letter-spacing:0}
html[lang=zh-CN] .portfolio .case-opening--reveal .case-opening-copy{
 max-inline-size:100%;font-size:clamp(1rem,min(6.25vw,7.25svh),4.65rem);
 letter-spacing:.012em;line-height:1.25;word-break:normal;line-break:strict
}
html[lang=zh-CN] .case-opening-line{padding-block-end:.08em}
html[lang=zh-CN] .zh-copy-gate{display:block;max-inline-size:100%}
html[lang=zh-CN] .zh-copy-gate .case-opening-word{display:block;white-space:normal;overflow-wrap:normal}
html[lang=zh-CN] .zh-motif{margin-inline-start:.24em}
html[lang=zh-CN] .case-word-entry path{transform-box:fill-box}
.zh-native-phone{display:none}
@media(max-width:720px){.zh-native-phone{display:inline}.zh-native-wide{display:none}}

@media(max-height:600px){
 html[lang=zh-CN] [data-guided] :is(#zoommate,#zoomkit,#superset,#indie)[data-word-window] .case-opening-text{
  padding-block-start:clamp(3.35rem,12svh,5.25rem)
 }
 html[lang=zh-CN] .case-opening--reveal .case-opening-name{margin-block-end:.52rem}
 html[lang=zh-CN] .portfolio .case-opening--reveal .case-opening-copy{font-size:clamp(.9rem,min(6vw,6.5svh),3.2rem)}
}
/* Finish fading the narration before the shared word camera starts its push. */
html[lang=zh-CN] [data-guided] :is(#zoommate,#zoomkit,#superset,#indie)[data-word-window] .case-opening-text{
 animation-range:contain 28% contain 38%
}

/* Cover only: prose uses Han letters; the masthead and Latin keep Courier. */
html[lang=zh-CN] .portfolio .hero .hero-role{
 font-family:var(--portfolio-zh-serif);
 max-inline-size:min(100%,29rem);
 margin-block:clamp(1rem,2vw,1.5rem) clamp(1.25rem,2.4vw,2rem);
 font-size:clamp(1rem,1.29vw,1.1875rem);
 line-height:1.66;
 letter-spacing:.015em;
 line-break:strict;
}
html[lang=zh-CN] .hero-role [lang=en]{
 font-family:inherit;
 white-space:nowrap;
 letter-spacing:normal;
}
html[lang=zh-CN] .hero-role :is(.zh-hero-intro,.zh-hero-current,.zh-hero-line,.zh-hero-previous){display:block}
html[lang=zh-CN] .hero-role :is(.zh-hero-current,.zh-hero-previous){margin-block-start:.38em}
html[lang=zh-CN] .hero-role strong{font-weight:700}
@media(max-width:720px), (max-height:650px){
 html[lang=zh-CN] .portfolio .hero .hero-role{line-height:1.54;margin-block:.85rem 1.2rem}
 html[lang=zh-CN] .hero-role :is(.zh-hero-current,.zh-hero-previous){margin-block-start:.25em}
}
/* Preserve reading width on 320px screens without reducing type. */
@media(max-width:340px){
 html[lang=zh-CN] .portfolio .hero .hero-copy{padding-inline:.875rem}
 html[lang=zh-CN] .portfolio .hero .hero-role{letter-spacing:0;word-spacing:-.1em;font-size:.9375rem}
}
/* Keep the stationary CTA bean's hop below the newly longer Latin sign-off. */
@media(max-width:720px){
 html[lang=zh-CN] .portfolio .hero .hero-role{margin-block-end:1.75rem}
 html[lang=zh-CN] .portfolio .hero-jump-dot{--bean-hop:11px}
}

/* Each line gets its own impression, without changing shaping widths. */
html[lang=zh-CN] .hero-role .zh-hero-line:first-child{font-feature-settings:"ss01"}
html[lang=zh-CN] .hero-role .zh-hero-line:nth-child(2){font-feature-settings:"ss02"}
html[lang=zh-CN] .hero-role .zh-hero-previous{font-feature-settings:"ss03"}
/* Cover-only printed outlines. Actual live text, no compositing or filter. */
@font-face{
 font-family:"Portfolio Letterpress";src:url("fonts/portfolio-letterpress-zh.woff2?v=371") format("woff2");
 font-weight:400;font-style:normal;font-display:optional;
}
html[lang=zh-CN] .portfolio .hero-copy .hero-role{
 font-family:"Portfolio Letterpress",var(--portfolio-type);
 text-shadow:none;
}
@media(forced-colors:active),(prefers-contrast:more){
 html[lang=zh-CN] .portfolio .hero-copy .hero-role{
  font-family:var(--portfolio-zh-serif);
 }
}

/* Clean UI and editorial text share the same Chinese face. */
html[lang=zh-CN] .portfolio :is([data-zh-editorial],.portfolio-outro a,.home-scroll-gate button){
 font-family:var(--portfolio-type);
}

html[lang=zh-CN] .archive-art .handnote{
 font-family:"La Belle Aurore",var(--portfolio-zh-serif)
}

html[lang=zh-CN] #superset .case-opening-copy{font-size:clamp(.94rem,min(5.25vw,6.5svh),4.55rem)}

/* One humanist-style title face for both scripts and the matching film labels. */
@font-face{font-family:"Portfolio Chapter Sans Ink";src:url("fonts/portfolio-chapter-sans-ink-v2.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
html[lang=zh-CN] .portfolio .case-opening-name :is(.zh-chapter-stamp,.chapter-type),
html[lang=zh-CN] .portfolio [data-zh-chapter-stamp]{
 font-family:"Portfolio Chapter Sans Ink",sans-serif;
 font-style:normal;font-weight:400
}
/* The invisible legacy bean used to indent only the ZoomMate title. */
html[lang=zh-CN] .portfolio #zoommate .case-opening-name::before{display:none}

/* The four lead-ins use the cover's print recipe. The large moving stencil does not. */
@font-face{font-family:"Portfolio Chapter Copy Ink";src:url("fonts/portfolio-chapter-copy-ink-v1.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
html[lang=zh-CN] .portfolio .case-opening-copy .case-opening-word[data-zh-editorial]{
 font-family:"Portfolio Chapter Copy Ink",var(--portfolio-type)
}
@media(forced-colors:active),(prefers-contrast:more){
 html[lang=zh-CN] .portfolio .case-opening-copy .case-opening-word[data-zh-editorial]{font-family:var(--portfolio-type)}
}
