
/* Portfolio additions: keep the existing pulse palette and page structure. */
.nav-links { flex-wrap: wrap; }
.nav-links a[aria-current="page"] { color: var(--black); text-decoration: underline; text-underline-offset: 6px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[id] { scroll-margin-top: 110px; }
.portfolio-intro { max-width: 700px; font-size: clamp(18px,2vw,24px); line-height: 1.7; }
.portfolio-heading { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: 35px; }
.portfolio-heading h2 { font-size: clamp(30px,4vw,52px); margin: 0; }
.featured-work { display: grid; grid-template-columns: .27fr 1fr .65fr; gap: 32px; padding: 45px 0; border-top: 1px solid var(--black); align-items: start; }
.featured-work:last-child { border-bottom: 1px solid var(--black); }
.featured-number { font-family: var(--editorial); font-size: 62px; line-height: 1; color: #746b60; }
.featured-work h3 { font-size: clamp(27px,3vw,42px); line-height: 1.3; margin-bottom: 20px; }
.featured-work p { line-height: 1.8; }
.featured-work .work-detail { padding-top: 4px; }
.text-link { display: inline-block; padding: 10px 0; border-bottom: 1px solid; font-weight: 600; }
.profile-layout { display: grid; grid-template-columns: 1.5fr .65fr; gap: clamp(32px,7vw,100px); align-items: start; }
.profile-signature { padding: 32px; border: 1px solid var(--black); background: var(--canvas); }
.profile-signature strong { display: block; font-size: 42px; margin: 30px 0 15px; }
.profile-signature p { line-height: 1.8; margin-bottom: 0; }
.editorial-empty { border-left: 2px solid var(--ash); padding: 8px 0 8px 22px; color: #655d54; line-height: 1.8; max-width: 680px; }
.material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 36px 0 24px; }
.material-slot { border-top: 2px solid var(--ash); padding-top: 20px; }
.material-slot h3 { font-size: 22px; margin: 16px 0; }
.material-slot p { line-height: 1.8; white-space: pre-line; }
.material-note { color: #655d54; font-size: 14px; line-height: 1.8; }
.case-next { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 35px; }
@media(max-width:700px) { .featured-work { grid-template-columns: 44px minmax(0,1fr); gap: 18px; } .featured-number { font-size: 40px; } .work-detail { grid-column: 2; } .profile-layout,.material-grid { grid-template-columns: 1fr; } .portfolio-heading { flex-direction: column; gap: 8px; } .profile-signature { max-width: 100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }

.project-card footer { flex-wrap:wrap; }
[hidden] { display:none!important; }

/* Product names: Chinese first, English on the next line. */
.product-name-zh, .product-name-en { display: block; }
.product-name-en { margin-top: 8px; font-size: .64em; line-height: 1.3; letter-spacing: 0; font-weight: 500; }
.bilingual-title { line-height: 1.12; overflow-wrap: anywhere; }
.bilingual-title .product-name-en { font-size: .48em; margin-top: 16px; }
