/* Local variable subsets. These are requested only by Chinese-mode text. */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-024F, U+2000-206F, U+20A0-20CF, U+2190-2199, U+266A;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/noto-sans-sc-portfolio.woff2?v=20261013-lookdown1') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+FF00-FFEF;
}

@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/fonts/noto-serif-sc-portfolio.woff2?v=20261013-lookdown1') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+FF00-FFEF;
}

/* Chinese configuration uses the existing sans/serif tokens without touching EN.
   Explicitly English display names retain the portfolio's original serif face. */
html:lang(zh-CN) {
  --zh-font: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --zh-latin-display: 'Bespoke Serif', Georgia, serif;
  --sans: var(--zh-font);
  --serif: var(--zh-font);
  --zh-hero: clamp(32px, 3.8vw, 52px);
  --zh-section: clamp(28px, 2.6vw, 36px);
  --zh-project: clamp(25px, 2.25vw, 32px);
  --zh-subheading: clamp(22px, 1.8vw, 26px);
  --zh-body: 16px;
  --zh-reading-width: 560px;
  --zh-leading: 1.8;
}
html:lang(zh-CN) body { line-break: strict; word-break: normal; overflow-wrap: break-word; font-weight: 400; }
html:lang(zh-CN) main :is(h1, h2, h3, h4, h5) { font-weight: 500; letter-spacing: -.015em; line-height: 1.35; text-wrap: balance; }
html:lang(zh-CN) main :is(p, li, dd, figcaption) { letter-spacing: 0; text-wrap: pretty; line-height: var(--zh-leading); }
html:lang(zh-CN) main strong { font-weight: 500; }
html:lang(zh-CN) :is(.section-kicker, .project-meta, .case-context, .bubu-row-index, .bubu-deck-eyebrow, .result-topline) { letter-spacing: 0; font-weight: 500; line-height: 1.6; text-transform: none; }
html:lang(zh-CN) :is(.site-name, .footer-inner > a, .footer-inner > span:first-child, main [lang="en"]) { font-family: var(--zh-latin-display); }
html:lang(zh-CN) main :is(h1, h3)[lang="en"] { letter-spacing: -.03em; }

/* Hero: retain the composition; separate the name from the professional title. */
html:lang(zh-CN) .home-page .home-intro { padding-top: clamp(96px, 10vw, 140px); padding-bottom: clamp(92px, 8.5vw, 122px); }
html:lang(zh-CN) .home-page .home-intro h1 { font-size: var(--zh-hero); line-height: 1.3; letter-spacing: -.025em; margin-bottom: 26px; }
html:lang(zh-CN) .home-page .home-intro h1 > span { display: inline-block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1.16; margin-bottom: 14px; }
html:lang(zh-CN) .home-page .home-intro .role { font-size: 13px; line-height: 1.65; letter-spacing: .015em; font-weight: 400; margin-bottom: 24px; }
html:lang(zh-CN) .home-page .home-intro .intro-note { max-width: var(--zh-reading-width); font-size: 17px; line-height: 1.85; text-wrap: balance; }
html:lang(zh-CN) .zh-unbroken { display: inline-block; white-space: nowrap; }
html:lang(zh-CN) .home-page .portfolio-actions { margin-top: 30px; }
html:lang(zh-CN) .home-page .portfolio-button { font-size: 15px; font-weight: 500; gap: 10px; }

/* Work: imagery, grid, card surfaces and interactions remain in the base CSS. */
html:lang(zh-CN) .home-page .home-work > .section-kicker { margin-bottom: 28px; font-size: 13px; }
html:lang(zh-CN) .home-page .project-card-copy { gap: 14px; }
html:lang(zh-CN) .home-page .project-card .project-meta { font-size: 12px; font-weight: 400; line-height: 1.7; letter-spacing: 0; }
html:lang(zh-CN) .home-page .project-card h3 { font-size: var(--zh-project); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; max-width: 15em; overflow-wrap: normal; }
html:lang(zh-CN) .home-page .project-card h3[lang="en"] { font-size: 30px; letter-spacing: -.03em; line-height: 1.2; }
html:lang(zh-CN) .home-page .project-card .project-lead { font-size: 18px; font-weight: 400; line-height: 1.65; margin-top: 2px; max-width: 24em; }
html:lang(zh-CN) .home-page .project-card .project-description { font-size: 15px; font-weight: 400; line-height: 1.8; max-width: 26em; text-wrap: pretty; }
html:lang(zh-CN) .home-page .project-card .project-proof { font-size: 12px; line-height: 1.8; padding-top: 14px; }
html:lang(zh-CN) .home-page .project-card .project-cta { font-size: 13px; font-weight: 500; }
html:lang(zh-CN) .home-page .home-work { padding-bottom: 104px; }

/* Testimonials: quiet editorial hierarchy inside the existing coloured cards. */
html:lang(zh-CN) .home-page .home-testimonials { padding-bottom: 104px; }
html:lang(zh-CN) .home-page .testimonials-heading { margin-bottom: 32px; }
html:lang(zh-CN) .home-page .home-testimonials h2 { font-size: var(--zh-section); line-height: 1.4; }
html:lang(zh-CN) .home-page .testimonial-card { padding: 26px 24px; }
html:lang(zh-CN) .home-page .quote-mark { font-size: 36px; height: 25px; }
html:lang(zh-CN) .home-page .testimonial-card h3 { font-size: 18px; font-weight: 500; line-height: 1.55; margin: 8px 0 16px; }
html:lang(zh-CN) .home-page .testimonial-card blockquote { margin-bottom: 26px; }
html:lang(zh-CN) .home-page .testimonial-card blockquote p { max-width: 28em; font-size: 14px; font-weight: 400; line-height: 1.85; text-wrap: pretty; }
html:lang(zh-CN) .home-page .testimonial-attribution { padding-top: 18px; }
html:lang(zh-CN) .home-page .testimonial-attribution strong { font-size: 12px; font-weight: 400; line-height: 1.6; }

/* Personal introduction and contact: reading widths inside the existing grid. */
html:lang(zh-CN) .home-about :is(p, .about-copy) { max-width: var(--zh-reading-width); }
html:lang(zh-CN) .home-about p { font-size: var(--zh-body); line-height: 1.85; margin-bottom: 24px; }
html:lang(zh-CN) .home-page .home-contact h2 { max-width: 13em; font-size: var(--zh-section); line-height: 1.4; }
html:lang(zh-CN) .home-page .contact-details { padding-top: 30px; }
html:lang(zh-CN) .home-page .contact-details > p { max-width: 29em; font-size: 16px; line-height: 1.85; margin-bottom: 26px; text-wrap: pretty; }
html:lang(zh-CN) .home-page .contact-secondary-links { font-size: 13px; font-weight: 400; gap: 26px; }

/* Case-study narrative; compact UI labels keep their component-specific sizes. */
html:lang(zh-CN) .portfolio-case .case-intro h1 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.3; max-width: 17em; }
html:lang(zh-CN) .portfolio-case .case-intro .case-deck { max-width: var(--zh-reading-width); font-size: 18px; line-height: 1.8; }
html:lang(zh-CN) .portfolio-case .case-intro .case-deck-secondary { font-size: 16px; margin-top: 0; }
html:lang(zh-CN) .portfolio-case :is(.section-heading, .reading-column, .outcome-heading, .reflection-heading) > h2 { font-size: var(--zh-section); line-height: 1.4; max-width: 21em; }
html:lang(zh-CN) .portfolio-case :is(.section-heading, .reading-column, .summary-copy, .outcome-heading, .reflection-copy) > p { max-width: var(--zh-reading-width); font-size: var(--zh-body); line-height: var(--zh-leading); margin-bottom: 22px; }
html:lang(zh-CN) .portfolio-case .research-method h3 { font-size: var(--zh-subheading); line-height: 1.45; }
html:lang(zh-CN) .portfolio-case .reframe-transition { font-size: var(--zh-subheading); line-height: 1.45; }
html:lang(zh-CN) .portfolio-case .scenario-card strong { font-size: 18px; line-height: 1.5; font-weight: 500; }
html:lang(zh-CN) .portfolio-case .framework-result h3 { font-size: 28px; line-height: 1.4; }
html:lang(zh-CN) .portfolio-case .framework-result #context-text { line-height: 1.8; }
html:lang(zh-CN) .portfolio-case .ar-callout h3 { line-height: 1.5; }
html:lang(zh-CN) .portfolio-case .ar-callout p { line-height: 1.75; }
html:lang(zh-CN) .portfolio-case .stage-nav a { font-weight: 400; letter-spacing: 0; }
html:lang(zh-CN) .portfolio-case .stage-nav a.is-active { font-weight: 500; }
html:lang(zh-CN) .portfolio-case figcaption { line-height: 1.75; }

/* Bubu's English name is unchanged; narrative headings follow the Chinese scale. */
html:lang(zh-CN) .bubu-page .bubu-intro h1[lang="en"] { font-size: clamp(40px, 3.8vw, 48px); line-height: 1.04; }
html:lang(zh-CN) .bubu-page .bubu-intro .bubu-subtitle { font-size: 28px; line-height: 1.45; letter-spacing: -.015em; margin-bottom: 34px; }
html:lang(zh-CN) .bubu-page .bubu-prose > p { max-width: 500px; font-size: 16px; line-height: 1.85; margin-bottom: 24px; }
html:lang(zh-CN) .bubu-page .bubu-section-heading > p:last-child { max-width: var(--zh-reading-width); line-height: 1.85; }
html:lang(zh-CN) .bubu-page .bubu-facts :is(dt, dd) { font-size: 13px; line-height: 1.8; }
html:lang(zh-CN) .bubu-page .bubu-intro-highlights dd { font-size: clamp(24px, 2vw, 28px); line-height: 1.3; letter-spacing: -.025em; }
html:lang(zh-CN) .bubu-page .bubu-intro-highlights dt { font-weight: 400; line-height: 1.7; }
html:lang(zh-CN) .bubu-page .bubu-story-heading { max-width: 860px; }
html:lang(zh-CN) .bubu-page .bubu-story-heading h3 { font-size: var(--zh-section); line-height: 1.45; letter-spacing: -.02em; }
html:lang(zh-CN) .bubu-page .bubu-story-heading > p:last-child { max-width: var(--zh-reading-width); line-height: 1.85; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-challenge-columns h3 { font-size: 28px; line-height: 1.4; letter-spacing: -.015em; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-challenge-columns h4 { font-weight: 500; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-challenge-columns p { line-height: 1.8; }
html:lang(zh-CN) .portfolio-case.bubu-page main :is(.bubu-decision-part, .bubu-decision-story) .bubu-feature-heading h4 { font-size: var(--zh-subheading); line-height: 1.45; letter-spacing: -.015em; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-feature-heading p { max-width: var(--zh-reading-width); line-height: 1.85; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-supporting > .bubu-feature-heading h2 { font-size: var(--zh-section); line-height: 1.4; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-media-heading h3 { font-size: var(--zh-subheading); line-height: 1.45; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-media-heading p { line-height: 1.85; }
html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-research-methods li { font-size: 18px; line-height: 1.5; }
html:lang(zh-CN) .bubu-page .bubu-user-flow li { font-size: 20px; line-height: 1.5; }
html:lang(zh-CN) .bubu-page .bubu-reflection-row h3 { font-size: 21px; line-height: 1.5; }
html:lang(zh-CN) .bubu-page .bubu-reflection-row p { max-width: var(--zh-reading-width); line-height: 1.85; }
html:lang(zh-CN) .bubu-page .bubu-closing { max-width: var(--zh-reading-width); font-size: 22px; line-height: 1.6; }

/* CV, navigation and footer. */
html:lang(zh-CN) .cv-page .cv-section > h2 { font-size: 13px; line-height: 1.7; letter-spacing: 0; }
html:lang(zh-CN) .cv-page .cv-section > div > p { max-width: var(--zh-reading-width); line-height: 1.85; }
html:lang(zh-CN) .cv-page .cv-entry-heading h3 { font-size: 21px; line-height: 1.5; }
html:lang(zh-CN) .cv-page .cv-entry ul { max-width: 580px; font-size: 14px; line-height: 1.85; }
html:lang(zh-CN) .cv-page .cv-entry li { margin-bottom: 12px; }
html:lang(zh-CN) .cv-page .cv-entry-heading > span { white-space: nowrap; font-size: 12px; }
html:lang(zh-CN) .cv-page .cv-heading h1[lang="en"] { line-height: 1.05; }
html:lang(zh-CN) .cv-page .cv-contact { gap: 10px 22px; }
html:lang(zh-CN) .site-nav a { font-weight: 400; letter-spacing: 0; white-space: nowrap; }
html:lang(zh-CN) .footer-inner nav { gap: 28px; }
html:lang(zh-CN) .footer-inner nav a { line-height: 1.6; white-space: nowrap; }

/* Tablet: text fits the existing two-project and three-quotation grids. */
@media (min-width: 701px) and (max-width: 1100px) {
  html:lang(zh-CN) { --zh-project: 27px; --zh-section: 32px; }
  html:lang(zh-CN) .home-page .project-card h3[lang="en"] { font-size: 27px; }
  html:lang(zh-CN) .home-page .project-card .project-lead { font-size: 17px; }
  html:lang(zh-CN) .home-page .testimonial-card { padding: 24px 20px; }
  html:lang(zh-CN) .home-page .testimonial-card h3 { font-size: 17px; }
}
/* Mobile has its own scale and reading rhythm. */
@media (max-width: 700px) {
  html:lang(zh-CN) { --zh-hero: 32px; --zh-section: 27px; --zh-project: 25px; --zh-subheading: 22px; }
  html:lang(zh-CN) .home-page .home-intro { padding-top: 76px; padding-bottom: 84px; }
  html:lang(zh-CN) .home-page .home-intro h1 { line-height: 1.35; margin-bottom: 22px; }
  html:lang(zh-CN) .home-page .home-intro h1 > span { margin-bottom: 12px; }
  html:lang(zh-CN) .home-page .home-intro .role { font-size: 12px; margin-bottom: 22px; }
  html:lang(zh-CN) .home-page .home-intro .intro-note { max-width: 21em; font-size: 16px; line-height: 1.85; }
  html:lang(zh-CN) .home-page .portfolio-actions { gap: 12px; margin-top: 26px; }
  html:lang(zh-CN) .home-page .portfolio-button { font-size: 14px; }
  html:lang(zh-CN) .home-page .project-card-copy { gap: 13px; }
  html:lang(zh-CN) .home-page .project-card h3[lang="en"] { font-size: 29px; }
  html:lang(zh-CN) .home-page .project-card .project-lead { font-size: 17px; }
  html:lang(zh-CN) .home-page .project-card .project-description { font-size: 15px; }
  html:lang(zh-CN) .home-page :is(.home-work, .home-testimonials) { padding-bottom: 84px; }
  html:lang(zh-CN) .home-page .testimonial-card { padding: 26px; }
  html:lang(zh-CN) .home-page .testimonial-card h3 { font-size: 19px; }
  html:lang(zh-CN) .home-page .testimonial-card blockquote p { font-size: 15px; }
  html:lang(zh-CN) .home-page .contact-details { padding-top: 0; }
  html:lang(zh-CN) .home-page .home-contact h2 { max-width: 12em; font-size: 28px; }
  html:lang(zh-CN) .home-page .contact-details > p { font-size: 15px; line-height: 1.85; }
  html:lang(zh-CN) .portfolio-case .case-intro h1 { font-size: 32px; }
  html:lang(zh-CN) .portfolio-case .case-intro .case-deck { font-size: 17px; }
  html:lang(zh-CN) .portfolio-case .case-intro .case-deck-secondary { font-size: 15px; }
  html:lang(zh-CN) .portfolio-case :is(.section-heading, .reading-column, .summary-copy, .outcome-heading, .reflection-copy) > p { font-size: 15px; }
  html:lang(zh-CN) .bubu-page .bubu-intro .bubu-subtitle { font-size: 24px; }
  html:lang(zh-CN) .bubu-page .bubu-prose > p { font-size: 15px; }
  html:lang(zh-CN) .bubu-page .bubu-intro-highlights dd { font-size: 25px; }
  html:lang(zh-CN) .portfolio-case.bubu-page main .bubu-challenge-columns h3 { font-size: 26px; }
  html:lang(zh-CN) .bubu-page .bubu-reflection-row h3 { font-size: 20px; }
}
@media (max-width: 380px) {
  html:lang(zh-CN) { --zh-hero: 30px; --zh-project: 24px; }
  html:lang(zh-CN) .home-page .testimonial-card { padding: 24px; }
}

/* Permanent Editorial Chinese typography, selected after the A/B review. */
html:lang(zh-CN)[data-zh-font-theme="editorial"] {
  --zh-font: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --zh-expressive: 'Inter', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --zh-hero: clamp(32px, 3.8vw, 54px);
  --zh-project: clamp(25px, 2.2vw, 31px);
  --zh-subheading: clamp(22px, 1.8vw, 26px);
  --zh-reading-width: 540px;
  --zh-leading: 1.85;
}
html:lang(zh-CN)[data-zh-font-theme="editorial"] :is(.home-intro h1, .home-about h2, .contact-introduction h2, .testimonial-card h3, .testimonial-card blockquote, .case-intro h1:not([lang="en"]), .reframe-transition, .bubu-subtitle, .bubu-closing) {
  font-family: var(--zh-expressive);
  letter-spacing: 0;
}
html:lang(zh-CN)[data-zh-font-theme="editorial"] .home-intro h1 { line-height: 1.35; margin-bottom: 28px; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .home-intro .intro-note { max-width: var(--zh-reading-width); font-size: 17px; line-height: 1.88; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .project-card h3:not([lang="en"]) { font-family: var(--zh-font); letter-spacing: 0; line-height: 1.45; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .testimonial-card h3 { font-size: 20px; line-height: 1.6; margin-bottom: 18px; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .testimonial-card blockquote p { font-size: 15px; line-height: 1.9; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .testimonial-card { padding-block: 28px; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .contact-details > p { max-width: 29em; line-height: 1.9; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] .bubu-subtitle { font-size: 28px; line-height: 1.55; }
html:lang(zh-CN)[data-zh-font-theme="editorial"] :is(.bubu-closing, .reframe-transition) { font-weight: 400; line-height: 1.65; }

/* The intentional Latin display names continue to use the base Bespoke Serif
   overrides. Text images/diagrams, grid, colours and animation are untouched. */
@media (min-width: 701px) and (max-width: 1100px) {
  html:lang(zh-CN)[data-zh-font-theme="editorial"] { --zh-project: 27px; --zh-section: 32px; }
  html:lang(zh-CN)[data-zh-font-theme="editorial"] .testimonial-card h3 { font-size: 18px; }
}
@media (max-width: 700px) {
  html:lang(zh-CN)[data-zh-font-theme="editorial"] { --zh-hero: 32px; --zh-section: 27px; --zh-project: 25px; --zh-subheading: 22px; --zh-reading-width: 100%; }
  html:lang(zh-CN)[data-zh-font-theme="editorial"] .home-intro .intro-note { max-width: 21em; font-size: 16px; }
  html:lang(zh-CN)[data-zh-font-theme="editorial"] .home-intro h1 { line-height: 1.4; margin-bottom: 24px; }
  html:lang(zh-CN)[data-zh-font-theme="editorial"] .testimonial-card h3 { font-size: 20px; }
  html:lang(zh-CN)[data-zh-font-theme="editorial"] .bubu-subtitle { font-size: 24px; }
  html:lang(zh-CN)[data-zh-font-theme="editorial"] .home-contact h2 { font-size: 28px; }
}
@media (max-width: 380px) {
  html:lang(zh-CN)[data-zh-font-theme="editorial"] { --zh-hero: 30px; --zh-project: 24px; }
}
