/* Typography v1 — semantic scale for the portfolio.
   Semantic type only. Layout, artwork, colour and motion stay in their components.
   Fluid sizes interpolate across phone / tablet / desktop without breakpoint jumps.
   The body class scopes the scale; completed artwork and layout are untouched. */
body.typography-system {
  --type-display: clamp(2.75rem, 2.236rem + 4.19vw, 6.5rem);
  --type-hero: clamp(2.75rem, 2.125rem + 2.667vw, 5rem);
  --type-hero-compact: clamp(1.75rem, .92rem + 3.45vw, 4.5rem);
  --type-company: clamp(1.25rem, 1.12rem + .57vw, 1.625rem);
  --type-h2: clamp(1.75rem, 1.55rem + 1.333vw, 3rem);
  --type-h3: clamp(1.25rem, 1.236rem + .571vw, 2rem);
  --type-h3-compact: clamp(1.25rem, 1.11rem + .57vw, 1.625rem);
  --type-work: clamp(1.375rem, 1.314rem + .762vw, 2.125rem);
  --type-next: clamp(1.5rem, 1.468rem + .952vw, 2.5rem);
  --type-lead: clamp(1.0625rem, 1.055rem + .286vw, 1.375rem);
  --type-body: clamp(1rem, .954rem + .19vw, 1.125rem);
  --type-caption: clamp(.8125rem, .766rem + .19vw, .9375rem);
  --type-label: clamp(.75rem, .727rem + .095vw, .8125rem);
  --type-weight-heading: 500;
  --type-weight-emphasis: 600;
  --type-weight-body: 400;
  --type-leading-display: 1.08;
  --type-leading-heading: 1.18;
  --type-leading-body: 1.55;
  --type-label-leading: 1.5;
  --type-tracking-display: -.045em;
  --type-tracking-heading: -.025em;
  --type-tracking-body: 0;
  --type-tracking-label: .075em;
  --type-cjk-tracking: 0;
  --type-cjk-leading: 1.65;
  --type-copy-measure: 65ch;
  --type-copy-gap: clamp(1rem, .8rem + .5vw, 1.5rem);
  font-size: var(--type-body);
  line-height: var(--type-leading-body);
  font-weight: var(--type-weight-body);
}

/* Shared reading and navigation roles. Existing hit areas are retained. */
body.typography-system :is(.eyebrow, .showcase-kicker, .work-category) {
  font-size: var(--type-label);
  font-weight: var(--type-weight-emphasis);
  line-height: 1.5;
  letter-spacing: var(--type-tracking-label);
}
body.typography-system .site-header .brand-name { font-size: .9375rem; }
body.typography-system .site-nav > a { font-size: var(--type-label); }
body.typography-system :is(.language-switch, .button, .back-link) {
  font-size: var(--type-caption);
  line-height: 1.5;
}
body.typography-system :is(.button, .back-link, .language-switch button) { min-height: 44px; }
body.typography-system .site-footer .footer-cta h2 {
  font-size: var(--type-h2);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
}
body.typography-system .footer-cta > p { font-size: var(--type-label); line-height: 1.6; }
body.typography-system .footer-links a { font-size: var(--type-lead); line-height: 1.5; }
body.typography-system .footer-meta { font-size: var(--type-caption); line-height: 1.6; }
body.typography-system .next-case strong {
  font-size: var(--type-next);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
}
body.typography-system .next-case > span:first-child { font-size: var(--type-label); }
body.typography-system .next-case > span:last-child { font-size: var(--type-next); }

/* Home: name / editorial section / project card / supporting copy. */
body.typography-system[data-page="home"] :is(.selected-work, .capabilities-stage-section) {
  --home-section-title: clamp(2rem, 1.35rem + 2.69vw, 4rem);
  --home-project-title: clamp(1.5rem, 1.075rem + 1.745vw, 2.75rem);
  --home-capability-title: clamp(1.625rem, 1.3rem + 1.34vw, 2.5rem);
  --home-reading-size: 1rem;
}
body.typography-system[data-page="home"] .home-hero h1 {
  font-size: var(--type-display);
  line-height: 1.05;
  letter-spacing: var(--type-tracking-display);
}
body.typography-system[data-page="home"] .home-hero__role {
  font-size: var(--type-body);
  line-height: 1.5;
  letter-spacing: 0;
}
body.typography-system[data-page="home"] .home-hero-positioning {
  font-size: var(--type-lead);
  line-height: 1.45;
  font-weight: var(--type-weight-body);
  letter-spacing: -.01em;
}
body.typography-system[data-page="home"] :is(.home-hero-meta, .home-hero__explore) {
  font-size: var(--type-caption);
  line-height: 1.5;
  letter-spacing: 0;
}
body.typography-system[data-page="home"] .home-hero__explore { min-height: 44px; }
body.typography-system[data-page="home"] .selected-work .work-heading h2,
body.typography-system[data-page="home"] .capabilities-stage-section .capabilities-stage-intro h2 {
  font-size: var(--home-section-title);
  font-weight: var(--type-weight-emphasis);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
  max-width: 24ch;
}
body.typography-system[data-page="home"] .work-copy h3 {
  font-size: var(--home-project-title);
  font-weight: var(--type-weight-emphasis);
  line-height: 1.2;
  letter-spacing: var(--type-tracking-heading);
  text-wrap: balance;
}
body.typography-system[data-page="home"] .work-copy > .work-category { font-size: var(--type-label); }
body.typography-system[data-page="home"] :is(.work-heading > p, .work-copy > p:not(.work-category)) {
  font-size: var(--home-reading-size);
  line-height: var(--type-leading-body);
  letter-spacing: 0;
}
body.typography-system[data-page="home"] .work-copy dt { font-size: var(--type-label); line-height: 1.5; }
body.typography-system[data-page="home"] .work-copy dd { font-size: var(--type-label); line-height: 1.55; }
body.typography-system[data-page="home"] .capabilities-story__copy h3,
body.typography-system[data-page="home"] .capabilities-story.is-swipe .capabilities-story__copy h3 {
  font-size: var(--home-capability-title);
  font-weight: var(--type-weight-emphasis);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
}
body.typography-system[data-page="home"] .capabilities-story__copy p,
body.typography-system[data-page="home"] .capabilities-story.is-swipe .capabilities-story__copy p {
  font-size: var(--home-reading-size);
  line-height: var(--type-leading-body);
  letter-spacing: 0;
}
body.typography-system[data-page="home"] :is(.capabilities-story__chrome, .capabilities-story__number, .capabilities-story__counter) {
  font-size: var(--type-label);
  line-height: 1.4;
  letter-spacing: .06em;
}
body.typography-system[data-page="home"] .home-about .home-about-grid .home-about-copy p {
  max-width: 54ch;
  font-size: var(--type-lead);
  font-weight: var(--type-weight-body);
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* About: retain the portrait grid and the résumé row structure. */
body.typography-system[data-page="about"] :is(.about-narrative > .eyebrow, .feature-label > p) {
  font-size: var(--type-label);
  line-height: 1.5;
  letter-spacing: var(--type-tracking-label);
}
body.typography-system[data-page="about"] .about-narrative h1 {
  font-size: var(--type-hero-compact);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-display);
  letter-spacing: var(--type-tracking-display);
  text-wrap: pretty;
  max-width: none;
}
body.typography-system[data-page="about"] .about-narrative > p:not(.eyebrow) {
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
  max-width: var(--type-copy-measure);
}
body.typography-system[data-page="about"] :is(.showcase-lead h2, #earlier-work-title, #photo-title) {
  font-size: var(--type-h2);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
  text-transform: none;
  text-wrap: balance;
}
body.typography-system[data-page="about"] :is(.showcase-lead h2, #earlier-work-title, #photo-title, .showcase-project__header h3) { max-width: none; text-wrap: pretty; }
body.typography-system[data-page="about"] .showcase-project__header h3 {
  font-size: var(--type-work);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
  text-wrap: balance;
}
body.typography-system[data-page="about"] :is(.feature-label h4, .coloros-theme__copy h4, .smart-stage__header h4, .thinking-path strong) {
  font-size: var(--type-h3);
  font-weight: var(--type-weight-heading);
  line-height: 1.22;
  letter-spacing: var(--type-tracking-heading);
}
body.typography-system[data-page="about"] :is(.showcase-lead > p:not(.eyebrow), .thinking-path p, .coloros-theme__copy > p:not(.showcase-kicker), .smart-stage__header p, .about-photo > .about-section-meta > p) {
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
}
body.typography-system[data-page="about"] :is(.showcase-project__meta p, .about-photo__categories, .about-photo__card figcaption) {
  font-size: var(--type-caption);
  line-height: 1.55;
  letter-spacing: 0;
}
body.typography-system[data-page="about"] :is(.experience-header h2, .experience-header > span, .experience-columns, .experience-period, .smart-stage__index, .thinking-path__index) {
  font-size: var(--type-label);
  line-height: 1.5;
  letter-spacing: .06em;
}
body.typography-system[data-page="about"] .experience-company {
  font-size: var(--type-company);
  font-weight: var(--type-weight-heading);
  line-height: 1.22;
  letter-spacing: -.02em;
}
body.typography-system[data-page="about"] :is(.experience-role, .experience-description) {
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
}
body.typography-system[data-page="about"] .experience-location {
  font-size: var(--type-caption);
  line-height: 1.55;
  letter-spacing: 0;
}

/* Wallet is the first case-study implementation of the shared scale. */
body.typography-system.wallet-keynote {
  --case-h1-size: var(--type-hero);
  --case-h2-size: var(--type-h2);
  --case-body-size: var(--type-body);
  --case-caption-size: var(--type-caption);
}
body.typography-system.wallet-keynote .wallet-k-hero__title h1 {
  font-size: var(--type-hero);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-display);
  letter-spacing: var(--type-tracking-display);
}
body.typography-system.wallet-keynote .wallet-k-hero__deck { font-size: var(--type-lead); line-height: 1.45; letter-spacing: -.01em; }
body.typography-system.wallet-keynote .wallet-k-hero__role { font-size: var(--type-caption); line-height: 1.6; letter-spacing: 0; }
body.typography-system.wallet-keynote .wallet-k-hero__date { font-size: var(--type-label); line-height: 1.5; }
body.typography-system.wallet-keynote .wallet-k-heading h2 {
  font-size: var(--type-h2);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
  text-wrap: balance;
}
body.typography-system.wallet-keynote .wallet-k-heading > p:last-child:not(.eyebrow) {
  max-width: var(--type-copy-measure);
  margin-top: var(--type-copy-gap);
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
}
body.typography-system.wallet-keynote :is(.wallet-k-dual h3, .wallet-k-impact-grid h3, .wallet-k-process h3, .wallet-k-copy-pair h3, .editorial-module .study-copy h3) {
  font-size: var(--type-h3);
  font-weight: var(--type-weight-heading);
  line-height: 1.22;
  letter-spacing: var(--type-tracking-heading);
  text-wrap: balance;
}
body.typography-system.wallet-keynote :is(.wallet-k-list p, .wallet-k-points p, .wallet-k-judgment p, .wallet-k-process p, .wallet-k-copy-pair p, .wallet-k-takeaway, .wallet-k-ownership p, .editorial-module .study-copy p) {
  font-size: var(--type-body);
  line-height: var(--type-leading-body);
  letter-spacing: 0;
}
body.typography-system.wallet-keynote :is(.wallet-k-list strong, .wallet-k-points strong) { font-size: var(--type-body); line-height: 1.4; font-weight: 600; }
body.typography-system.wallet-keynote :is(.wallet-k-media figcaption, .wallet-k-impact-metrics span) { font-size: var(--type-caption); line-height: 1.5; letter-spacing: 0; }
body.typography-system.wallet-keynote :is(.wallet-k-process li > span, .wallet-k-points li > span, .wallet-k-judgment span, .editorial-module .study-index, .case-nav a, .case-nav span) { font-size: var(--type-label); line-height: 1.5; letter-spacing: .06em; }
body.typography-system.wallet-keynote .wallet-k-metric-bars strong,
body.typography-system.wallet-keynote .wallet-k-impact-metrics strong { font-size: var(--type-h3); line-height: 1.2; font-weight: 600; }

/* Remaining cases share the approved Wallet hierarchy. */
body.typography-system:is(.source-case--music, .fiture-page, .narom-keynote) {
  --case-h1-size: var(--type-hero);
  --case-h2-size: var(--type-h2);
  --case-body-size: var(--type-body);
  --case-caption-size: var(--type-caption);
  --case-eyebrow-size: var(--type-label);
}
body.typography-system :is(.source-hero__copy h1, .fiture-hero h1, .contact-main h1) {
  font-size: var(--type-hero);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-display);
  letter-spacing: var(--type-tracking-display);
}
body.typography-system :is(.source-hero__deck, .fiture-hero__deck) {
  font-size: var(--type-lead);
  line-height: 1.45;
  letter-spacing: -.01em;
}
body.typography-system :is(.source-hero__role, .fiture-hero__role) {
  font-size: var(--type-caption);
  line-height: 1.6;
  letter-spacing: 0;
}
body.typography-system :is(.source-kicker, .source-hero__date, .fiture-hero__label, .fiture-hero__date, .fiture-section-no, .me-kicker) {
  font-size: var(--type-label);
  line-height: 1.5;
  letter-spacing: var(--type-tracking-label);
}
body.typography-system:is(.source-case--music, .fiture-page, .narom-keynote) :is(.source-nav a, .source-nav span, .fiture-index a, .fiture-index__title) {
  font-size: var(--type-label);
  line-height: 1.5;
  letter-spacing: .06em;
}
body.typography-system:is(.source-case--music, .fiture-page, .narom-keynote) :is(.source-heading h2, .wallet-k-heading h2, .fiture-heading h2, .me-heading h2),
body.typography-system.source-case--music .source-section .wallet-k-heading h2 {
  font-size: var(--type-h2);
  font-weight: var(--type-weight-heading);
  line-height: var(--type-leading-heading);
  letter-spacing: var(--type-tracking-heading);
  text-wrap: balance;
}
body.typography-system:is(.source-case--music, .fiture-page, .narom-keynote) :is(.source-lead, .fiture-lead, .me-lead, .wallet-k-heading > p:not(.eyebrow)) {
  max-width: var(--type-copy-measure);
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
}
body.typography-system:is(.source-case--music, .fiture-page) .editorial-module .study-copy h3 {
  font-size: var(--type-h3);
  font-weight: var(--type-weight-heading);
  line-height: 1.22;
  letter-spacing: var(--type-tracking-heading);
}
body.typography-system:is(.source-case--music, .fiture-page) .editorial-module .study-copy p {
  font-size: var(--type-body);
  line-height: var(--type-leading-body);
  letter-spacing: 0;
}
body.typography-system:is(.source-case--music, .fiture-page) .editorial-module .study-index { font-size: var(--type-label); }

/* Music: evidence tables and artwork captions are distinct from section titles. */
body.typography-system.source-case--music :is(.source-point-list strong, .wallet-k-points strong) { font-size: var(--type-body); line-height: 1.4; font-weight: 600; }
body.typography-system.source-case--music :is(.source-point-list p, .wallet-k-points p, .ms-decisions article p, .music-sustain-row header p) { font-size: var(--type-body); line-height: 1.55; letter-spacing: 0; }
body.typography-system.source-case--music :is(.ms-decisions h3, .music-sustain-row h3, .me-structure, .me-character) {
  font-size: var(--type-h3);
  font-weight: var(--type-weight-heading);
  line-height: 1.22;
  letter-spacing: var(--type-tracking-heading);
}
body.typography-system.source-case--music .ms-evidence-label h3 { font-size: var(--type-lead); line-height: 1.25; font-weight: 500; }
body.typography-system.source-case--music .ms-counts th { font-size: var(--type-body); line-height: 1.5; }
body.typography-system.source-case--music .ms-counts td { font-size: var(--type-h3); line-height: 1.2; }
body.typography-system.source-case--music :is(.wallet-k-media figcaption, .music-system-pair figcaption, .ms-player figcaption, .ms-source-note, .ms-evidence-label > span, .me-source summary, .me-source figcaption, .me-direction-scene figcaption p, .me-direction-keywords) { font-size: var(--type-caption); line-height: 1.55; letter-spacing: 0; }
body.typography-system.source-case--music :is(.source-point-list li > span, .wallet-k-points li > span, .ms-small-label, .ms-decision-index, .me-reference-name) { font-size: var(--type-label); line-height: 1.5; letter-spacing: .06em; }
body.typography-system.source-case--music #concept.music-editorial :is(.me-cover-label, .me-result-label, .me-color-heading, .me-result-caption .me-mood-label) { font-size: var(--type-label); line-height: 1.5; letter-spacing: .04em; }
body.typography-system.source-case--music #concept.music-editorial :is(.me-color-study figcaption, .me-result-caption > span:not(.me-mood-label)) { font-size: var(--type-caption); line-height: 1.5; }
body.typography-system.source-case--music #concept.music-editorial .me-result-caption strong { font-size: var(--type-lead); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }

/* FITURE: the compact three-column journey keeps its approved composition. */
body.typography-system.fiture-page :is(#journey, #principles, #designed-training) .fiture-story-grid .fiture-journey__copy h3 { font-size: var(--type-h3-compact); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; }
body.typography-system.fiture-page .fiture-facts p,
body.typography-system.fiture-page :is(#journey, #principles, #designed-training) .fiture-story-grid .fiture-journey__copy div > p:last-child { font-size: var(--type-body); line-height: 1.55; letter-spacing: 0; }
body.typography-system.fiture-page .fiture-facts strong { font-size: var(--type-lead); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
body.typography-system.fiture-page .fiture-facts li > span { font-size: var(--type-label); line-height: 1.5; }

/* Narōm: preserve the brand artwork, use shared roles for editorial text. */
body.typography-system.narom-keynote {
  --narom-sans: var(--font);
  --narom-condensed: var(--font);
  --narom-mono: var(--font);
  font-family: var(--font);
}
body.typography-system.narom-keynote :is(h1, h2, h3, h4, .next-case strong) {
  font-family: var(--font);
  font-stretch: normal;
}
body.typography-system.narom-keynote .wallet-k-heading h2 {
  max-width: none;
  text-wrap: pretty;
}

body.typography-system.narom-keynote :is(.narom-research-stage__report figcaption, .narom-system-grid figcaption, .narom-workflow-grid figcaption > span) { font-size: var(--type-caption); line-height: 1.55; letter-spacing: 0; }
body.typography-system.narom-keynote :is(.narom-workflow-grid figcaption strong, .narom-digital-points strong) { font-size: var(--type-body); line-height: 1.5; font-weight: 500; letter-spacing: 0; }
body.typography-system.narom-keynote :is(.narom-system-takeaway, .narom-process-line, .narom-digital-points li) { font-size: var(--type-body); line-height: 1.6; letter-spacing: 0; }

/* Narrow three-column labels may hyphenate long English words without
   reducing the reading size or changing the approved grid. */
body.typography-system.fiture-page .fiture-journey__copy :is(h3, p) {
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Contact and footer are navigation / reading roles, not display type. */
body.typography-system[data-page="contact"] .contact-email { font-size: var(--type-lead); line-height: 1.5; letter-spacing: -.01em; overflow-wrap: anywhere; }
body.typography-system[data-page="contact"] .copy-button { font-size: var(--type-caption); line-height: 1.5; min-height: 44px; }
body.typography-system[data-page="contact"] .contact-details p:not(.eyebrow) { font-size: var(--type-body); line-height: 1.6; letter-spacing: 0; }

/* Chinese uses its existing font stack, with natural tracking and more leading. */
body.typography-system[data-lang="zh"] { letter-spacing: 0; }
body.typography-system[data-lang="zh"] :is(h1,h2,h3,h4) { text-wrap: pretty; }
body.typography-system[data-lang="zh"] .home-about .home-about-grid .home-about-copy p { max-width: 38em; }

@media (max-width: 760px) {
  body.typography-system .site-nav-wrap .site-nav > a { font-size: var(--type-h2); line-height: 1.25; min-height: 44px; }
  /* The long About title shares a narrow column with the portrait. Keep that
     approved composition, using a compact Hero role rather than forcing 40px. */
  body.typography-system[data-page="about"] .about-narrative h1 {
    line-height: 1.14;
    letter-spacing: -.025em;
  }
  body.typography-system[data-page="home"] .capabilities-story__chrome { letter-spacing: .025em; }
}

/* Desktop review 2026-11-26: mobile/tablet remain on the confirmed prior scale. */
@media (min-width: 1025px) {
  body.typography-system[data-page="home"] .selected-work .work-heading h2,
  body.typography-system[data-page="home"] .capabilities-stage-section .capabilities-stage-intro h2 {
    font-size: var(--type-hero-compact);
    font-weight: var(--type-weight-heading);
  }
  body.typography-system[data-page="home"] .work-copy h3 {
    font-size: calc(var(--home-project-title) + 2px);
    font-weight: var(--type-weight-heading);
  }
  body.typography-system[data-page="home"] .capabilities-story__copy h3,
  body.typography-system[data-page="home"] .capabilities-story.is-swipe .capabilities-story__copy h3 {
    font-size: calc(var(--home-capability-title) + 2px);
    font-weight: var(--type-weight-heading);
  }
}
