/* Portfolio typography contract. Loaded last; embedded demos are independent documents. */
:root {
 --type-h1:clamp(2.5rem,5vw,4.5rem); --type-h2:clamp(1.875rem,3vw,3rem);
 --type-h3:clamp(1.375rem,2vw,2rem); --type-h4:1.25rem; --type-h5:1.125rem; --type-h6:1rem;
 --type-body:1rem; --type-small:.875rem; --type-label:.75rem;
 --type-heading-font:'Cabinet Grotesk','PingFang SC','Microsoft YaHei',sans-serif;
 --type-body-font:'DM Sans','PingFang SC','Microsoft YaHei',sans-serif;
}
html body :is(h1,h2,h3,h4,h5,h6) {font-family:var(--type-heading-font)!important;font-synthesis:none;overflow-wrap:break-word}
html body h1 {font-size:var(--type-h1)!important;font-weight:500!important;line-height:1.12!important;letter-spacing:-.025em!important}
html body h2 {font-size:var(--type-h2)!important;font-weight:500!important;line-height:1.25!important;letter-spacing:-.02em!important}
html body h3 {font-size:var(--type-h3)!important;font-weight:500!important;line-height:1.35!important;letter-spacing:-.015em!important}
html body h4 {font-size:var(--type-h4)!important;font-weight:500!important;line-height:1.4!important}
html body h5 {font-size:var(--type-h5)!important;font-weight:500!important;line-height:1.45!important}
html body h6 {font-size:var(--type-h6)!important;font-weight:500!important;line-height:1.5!important}
html body .project-title,html body .project-card:not(.large) .project-title {font-size:var(--type-h3)!important;font-weight:700!important;line-height:1.3!important}
html body .notes-section .note-card h3 {font-size:26px!important;font-weight:600!important;line-height:1.35!important}
html body :is(.eyebrow,.section-label,.radar-group-label) {font-family:var(--type-body-font)!important;font-size:var(--type-label)!important;font-weight:500!important;line-height:1.5!important;letter-spacing:.08em!important}
html body :is(.section-body,.note-prose,.about-prose) p {font-family:var(--type-body-font);font-size:var(--type-body);line-height:1.75;max-width:65ch}
html body :is(.case-summary,.hero-copy,.notes-hero-copy>p) {font-size:clamp(1rem,1.3vw,1.25rem);line-height:1.7}
html body :is(figcaption,.project-description) {font-size:var(--type-small);line-height:1.65}
html body #email-drawer-title {font-size:var(--type-h3)!important}
html body .hero [data-hero-word] {font-weight:700!important}
html[lang^='zh'] body :is(h1,h2,h3,h4,h5,h6) {letter-spacing:0!important;line-break:strict}
html[lang^='zh'] body h1 {line-height:1.25!important}
html[lang^='zh'] body h2 {line-height:1.4!important}
@media(max-width:600px) {html body .notes-section .note-card h3 {font-size:24px!important}}
