/* Restrained corporate typography and a consistent, simple control system. */
:root {
  --sans: 'DM Sans', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', Arial, sans-serif;
  --serif: var(--sans);
  --heading-lg: clamp(2.5rem, 4.2vw, 3.5rem);
  --heading-md: clamp(1.75rem, 2.5vw, 2.25rem);
  --heading-sm: 1.375rem;
  --control-radius: 4px;
}

body { font-family: var(--sans); line-height: 1.75; }
.wrap { width: min(1200px, calc(100% - 96px)); }
.section { padding-block: 88px; }
html { scroll-padding-top: 80px; }
.site-header { height: 80px; gap: 24px; }
.desktop-nav { font-size: .875rem; gap: 28px; }
.desktop-nav a, .header-contact { white-space: nowrap; }
.eyebrow { font-size: .75rem; line-height: 1.6; letter-spacing: 1.6px; }

.hero {
  height: auto;
  min-height: 640px;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.hero-content, html[lang="zh-Hans"] .hero-content { padding-top: 88px; padding-bottom: 56px; }
.hero h1, html[lang="zh-Hans"] h1 {
  font: 600 var(--heading-lg)/1.18 var(--sans);
  letter-spacing: -.025em;
  margin: 24px 0;
  max-width: 760px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; font-weight: 500; }
.hero-description, html[lang="zh-Hans"] .hero-description {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 28px;
}
.hero-bottom {
  position: relative;
  inset: auto;
  transform: none;
  margin: auto auto 0;
  padding-block: 24px;
  align-items: center;
}
.hero-project strong { font: 500 1.125rem/1.5 var(--sans); margin-block: 6px; }
.hero-project > span { font-size: .75rem; letter-spacing: 1.2px; }
.hero-coordinate { font-size: .75rem; }
.scroll-cue { font-size: .75rem; letter-spacing: .4px; min-height: 44px; }

h2, .intro h2, .expertise-copy h2, .section-heading h2,
.values h2, .contact h2, .dialog-copy h2, html[lang="zh-Hans"] h2 {
  font-family: var(--sans);
  font-size: var(--heading-md);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -.025em;
  line-height: 1.3;
  text-wrap: balance;
}
h2 em, html[lang="zh-Hans"] h2 em { font-style: normal; font-weight: 500; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { letter-spacing: 0; line-height: 1.4; }
.intro { display: block; }
.section-label { padding-top: 0; margin-bottom: 28px; gap: 14px; }
.intro-content { grid-template-columns: 1fr 1.1fr; column-gap: 80px; row-gap: 32px; }
.intro-copy { font-size: 1rem; line-height: 1.8; max-width: 58ch; }
.intro-copy p:first-child { font-size: 1.0625rem; line-height: 1.65; font-weight: 500; }
.intro-copy .text-link { margin-top: 16px; }
.stats { margin-top: 8px; padding-top: 28px; gap: 32px; }
.stats strong { font: 600 2.375rem/1.2 var(--sans); letter-spacing: -.035em; }
.stats strong span { font-size: 1.5rem; }
.stats p { font-size: .875rem; line-height: 1.6; max-width: none; margin-top: 8px; }
.stats > div + div { padding-left: 32px; border-left: 1px solid var(--line); }

.expertise-grid { gap: 64px; align-items: stretch; }
.expertise-visual { height: auto; min-height: 560px; }
.expertise-copy h2, .section-heading h2, .contact h2 { margin-top: 16px; }
.section-description { margin-top: 18px; max-width: 46ch; }
.services { margin-top: 28px; }
.services summary { padding-block: 20px; gap: 14px; }
.services h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.service-body { font-size: 1rem; line-height: 1.75; padding-left: 29px; }
.service-body .service-tags { font-size: .75rem; line-height: 1.8; }
.section-heading { align-items: flex-end; gap: 64px; }
.section-heading > p { max-width: 40ch; line-height: 1.75; }
.project-toolbar { margin-top: 32px; margin-bottom: 32px; padding-block: 4px 16px; gap: 16px; }
.project-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.project-card:nth-child(2n) { padding-top: 0; }
.project-cover, .project-card:nth-child(2n) .project-cover { aspect-ratio: 1.6; }
.project-meta { font-size: .75rem; letter-spacing: .6px; margin-block: 18px 8px; line-height: 1.6; }
.project-card h3, .team-grid h3 {
  font: 600 var(--heading-sm)/1.4 var(--sans);
  letter-spacing: -.02em;
}
.project-summary { font-size: .875rem; margin-top: 6px; }
.project-more { margin-top: 36px; }
.values-heading { grid-template-columns: 1fr 1fr; gap: 20px 64px; }
.values-heading > .eyebrow { grid-column: 1 / -1; padding-top: 0; }
.values-heading > p:last-child { padding-top: 0; font-size: 1rem; max-width: 48ch; }
.values-grid { margin-top: 40px; gap: 32px; }
.values-grid h3 { font: 600 1.125rem/1.5 var(--sans); margin-top: 20px; }
.values-grid p { font-size: 1rem; line-height: 1.75; margin-top: 12px; max-width: none; }
.team-grid { margin-top: 36px; gap: 32px; }
.team-top { margin-bottom: 24px; }
.team-initials { font: 500 1.75rem/1.3 var(--sans); letter-spacing: .01em; }
.team-top .eyebrow { font-size: .75rem; letter-spacing: .8px; }
.team-grid .role { font-size: .875rem; margin-top: 6px; }
.team-grid p:last-child { font-size: 1rem; line-height: 1.75; margin-top: 18px; }
.contact-grid { grid-template-columns: 1.15fr 1fr; gap: 96px; }
.contact-intro { margin-block: 24px; max-width: 42ch; }
.contact-details .eyebrow { font-size: .75rem; letter-spacing: 1.2px; }
.contact-details a:not(.map-link) { font-size: 1rem; }
.contact-details address { font-size: 1rem; line-height: 1.8; }
.footer-main > p { font-size: .875rem; }
.footer-bottom { font-size: .75rem; }

/* Buttons stay familiar: a modest radius, clear contrast and stable hover states. */
.button, .header-contact {
  min-height: 48px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--control-radius);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { transform: none; }
.button:active, .header-contact:active { filter: brightness(.94); }
.header-contact { min-height: 44px; padding: 9px 16px; }
.outline { border-color: #a3aa9e; }
.language-toggle { min-width: 44px; min-height: 44px; font-size: .875rem; border-radius: 4px; }
.language-toggle:hover { background: #ffffff12; }
.menu-toggle { width: 44px; height: 44px; }
.mobile-nav a { font-size: 1rem; min-height: 48px; }
.text-link, .map-link, .back-top { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; }
.filters { flex-wrap: wrap; gap: 6px; overflow: visible; }
.filters button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 4px; font-size: .875rem; line-height: 1.5; transition: background-color .18s, color .18s; }
.filters button:hover { background: #e8ebe3; color: var(--ink); }
.filters button.active { background: var(--forest); color: var(--paper); }
.project-view { opacity: 1; transform: none; font-size: .8125rem; font-weight: 500; padding: 10px 14px; border-radius: 4px; }
.project-button:hover .project-cover > img { transform: scale(1.025); }
.project-button:hover .project-view { background: #fff; }
.gallery-controls button { width: 44px; height: 44px; border-radius: 4px; }
.gallery-controls button:hover { background: #ffffff16; }
.dialog-close { border-radius: 4px; }
.dialog-close:hover { background: #e8ebe3; }
.dialog-copy h2 { font-size: 1.75rem; }
.dialog-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.75; }
.dialog-copy dl { font-size: .875rem; }
.dialog-copy > .eyebrow { font-size: .75rem; }
.dialog-copy .gallery-note { font-size: .75rem !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 18px; }
  .intro-content { column-gap: 48px; }
  .expertise-grid { gap: 40px; }
  .section-heading { gap: 40px; }
  .values-grid, .team-grid { gap: 24px; }
  .contact-grid { gap: 48px; }
}

@media (min-width: 801px) and (max-width: 1024px) {
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { display: block; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 60ch; margin-top: 20px; }
  .intro-content { grid-template-columns: 1fr; }
  .intro-copy { max-width: 64ch; }
  .expertise-grid { grid-template-columns: 1fr 1.1fr; gap: 32px; }
}

@media (max-width: 800px) {
  :root { --heading-lg: clamp(2rem, 9vw, 2.5rem); --heading-md: 1.75rem; --heading-sm: 1.25rem; }
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 48px); }
  .section { padding-block: 64px; }
  .site-header { height: 72px; padding-inline: 24px; gap: 12px; }
  .header-actions { gap: 8px; }
  .header-contact { display: none; }
  .hero { min-height: 570px; height: auto; max-height: none; }
  .hero-content, html[lang="zh-Hans"] .hero-content { padding-top: 64px; padding-bottom: 52px; }
  .hero h1 { margin-block: 20px; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: 1.2px; }
  .hero-description { font-size: 1rem; }
  .hero-bottom { bottom: auto; padding-block: 20px; gap: 16px; align-items: flex-end; }
  .hero-project { max-width: 68%; }
  .hero-project strong { font-size: 1rem; }
  .hero-project > span { font-size: .75rem; letter-spacing: .6px; }
  .scroll-cue { max-width: 80px; gap: 10px; }
  .intro-content { grid-template-columns: 1fr; gap: 24px; }
  .intro-content h2 { margin: 0; }
  .section-label { margin-bottom: 20px; }
  .stats { margin-top: 8px; gap: 16px; }
  .stats strong { font-size: 1.875rem; }
  .stats strong span { font-size: 1.125rem; }
  .stats p { font-size: .75rem; }
  .stats > div + div { border: 0; padding-left: 0; }
  .expertise-grid { grid-template-columns: 1fr; gap: 32px; }
  .expertise-visual { min-height: 0; height: 360px; }
  .image-caption { left: 24px; bottom: 24px; }
  .services h3 { font-size: 1rem; }
  .section-heading > p { margin-top: 20px; }
  .project-toolbar { margin-top: 24px; padding-bottom: 14px; }
  .filters { gap: 4px; }
  .filters button { padding-inline: 12px; }
  #project-count { padding: 12px 0 0; }
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-card .project-cover, .project-card:nth-child(2n) .project-cover { aspect-ratio: 1.45; }
  .project-meta { flex-wrap: wrap; gap: 4px 12px; }
  .values-heading { grid-template-columns: 1fr; gap: 20px; }
  .values-grid { margin-top: 32px; gap: 28px 24px; }
  .values-grid p { font-size: .9375rem; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-top { margin-bottom: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .dialog-copy h2 { font-size: 1.5rem; }
  .dialog-copy .button { width: 100%; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 20px; }
  .wrap { width: calc(100% - 40px); }
  .hero-bottom { gap: 12px; }
  .brand-wordmark { font-size: 17px; letter-spacing: 2.5px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) and (orientation: landscape) {
  .hero { min-height: 510px; }
  .hero-content, html[lang="zh-Hans"] .hero-content { padding-top: 40px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .header-contact, .filters button { transition: none; }
}
