@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Serif+SC:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ═══════════════════════════════════════════
   Dao Hill Capital — Institutional Design System
   ═══════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg-body: #F5F3EE;
  --bg-warm: #EBE8E1;
  --bg-card: #FFFFFF;
  --bg-alt: #F0EDE6;

  /* Text — high contrast for readability */
  --text-primary: #1A1814;
  --text-secondary: #3D3A34;
  --text-body: #4E4B44;
  --text-muted: #7A776E;
  --text-faint: #9C9890;

  /* Accent */
  --accent: #7B1530;
  --accent-hover: #5C1024;
  --accent-light: rgba(123, 21, 48, 0.07);

  /* Borders */
  --border: #D5D1C8;
  --border-light: #E5E1D8;
  --border-subtle: #EDEAE2;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.07);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'SimSun', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* ─── Bilingual System — Toggle Always Visible ─── */
html[lang="en"] [lang="zh"] { display: none !important; }
html[lang="zh"] [lang="en"] { display: none !important; }

/* Language toggle button exemption — ALWAYS visible */
.lang-toggle,
html[lang="en"] .lang-toggle[lang="zh"],
html[lang="zh"] .lang-toggle[lang="en"] {
  display: inline-block !important;
}

/* ─── Chinese Typography Override ─── */
html[lang="zh"] body {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', 'SimSun', serif;
  font-size: 16px;
  line-height: 1.9;
}

html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3 {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', 'SimSun', serif;
  font-weight: 600;
}

/* ─── Headings ─── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', 'SimSun', serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 { font-size: clamp(40px, 5.5vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

p {
  margin-bottom: 1.5em;
  color: var(--text-body);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover { color: var(--accent-hover); }

::selection {
  background-color: var(--accent-light);
  color: var(--accent);
}

/* ─── Layout ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
}

/* ─── Section Header ─── */
.section-header {
  margin-bottom: 56px;
  max-width: 680px;
}

.section-header h2 {
  color: var(--accent);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 16px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 2.5px;
  background-color: var(--accent);
  opacity: 0.6;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── Header / Navigation ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: rgba(245, 243, 238, 0.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-light);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
  z-index: 301;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo:hover { opacity: 0.85; }

.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
  border: 1px solid var(--border-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Toggle — ALWAYS VISIBLE, positioned left of hamburger */
.lang-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  padding: 7px 16px;
  cursor: pointer;
  transition: var(--ease);
  letter-spacing: 0.5px;
  min-width: 52px;
  text-align: center;
  order: 1;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover {
  background-color: var(--accent);
  color: white;
}

/* Mobile actions: lang toggle always visible, hamburger only on mobile */
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 2;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-warm);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-mountains.svg');
  background-size: cover;
  background-position: center left;
  z-index: 1;
}

/* Page-specific backgrounds */
.hero-bg--about { background-image: url('assets/bg-about.svg'); }
.hero-bg--investment { background-image: url('assets/bg-investment.svg'); }
.hero-bg--advisory { background-image: url('assets/bg-advisory.svg'); }
.hero-bg--research { background-image: url('assets/bg-research.svg'); }
.hero-bg--contact { background-image: url('assets/bg-contact.svg'); }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 160px 40px 100px;
  display: flex;
  justify-content: flex-end;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 72px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.05;
}

html[lang="zh"] .hero h1 {
  font-size: clamp(42px, 5.5vw, 60px);
  font-weight: 600;
}

.hero-tagline {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 28px;
  line-height: 1.35;
}

html[lang="zh"] .hero-tagline {
  font-family: 'Noto Serif SC', 'PingFang SC', serif;
  font-style: normal;
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 500px;
}

.divider {
  width: 48px;
  height: 2px;
  background-color: var(--accent);
  opacity: 0.4;
  margin: 28px 0;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 48px 40px;
  transition: all 0.35s var(--ease);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}

.card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.card-link:hover {
  gap: 12px;
  text-decoration: none;
}

/* ─── Page Hero ─── */
.page-hero {
  position: relative;
  background-color: var(--bg-warm);
  padding: 150px 0 80px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center left;
  z-index: 1;
  opacity: 0.72;
}

.page-hero__bg--about { background-image: url('assets/bg-about.svg'); }
.page-hero__bg--investment { background-image: url('assets/bg-investment.svg'); }
.page-hero__bg--advisory { background-image: url('assets/bg-advisory.svg'); }
.page-hero__bg--research { background-image: url('assets/bg-research.svg'); }
.page-hero__bg--contact { background-image: url('assets/bg-contact.svg'); }

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
}

/* ─── Pillars ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  text-align: center;
  padding: 52px 36px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all 0.35s var(--ease);
}

.pillar:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}

.pillar-value {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1.3;
}

html[lang="zh"] .pillar-value {
  font-family: 'Noto Serif SC', 'PingFang SC', serif;
  font-size: 24px;
  font-weight: 600;
}

.pillar-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

html[lang="zh"] .pillar-label {
  letter-spacing: 0.5px;
  font-size: 14px;
}

/* ─── Numbered Cards ─── */
.numbered-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.numbered-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 48px 40px 48px 88px;
  position: relative;
  transition: all 0.35s var(--ease);
}

.numbered-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.numbered-card .number {
  position: absolute;
  left: 32px;
  top: 44px;
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
}

.numbered-card h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.numbered-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ─── Strip ─── */
.strip {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-item {
  text-align: center;
  flex: 1;
  padding: 40px 20px;
  border-right: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
}

.strip-item:last-child { border-right: none; }

.strip-item:hover { background-color: var(--bg-card); }

.strip-item h4 {
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

html[lang="zh"] .strip-item h4 {
  font-size: 16px;
}

/* ─── Research Cards ─── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.research-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  transition: all 0.35s var(--ease);
}

.research-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pdf-cover {
  width: 100px;
  height: 130px;
  background-color: var(--bg-body);
  border: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--accent);
}

.pdf-icon {
  width: 30px;
  height: 40px;
  border: 2px solid var(--border);
  position: relative;
}

.pdf-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: var(--border);
  box-shadow: 0 7px 0 var(--border), 0 14px 0 var(--border), 0 21px 0 var(--border);
}

.research-meta { flex: 1; }

.research-meta h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.research-meta p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 1.5px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  text-decoration: none;
}

.btn-disabled {
  background-color: var(--bg-alt);
  color: var(--text-faint);
  border-color: var(--border);
  cursor: not-allowed;
}

.btn-disabled:hover {
  text-decoration: none;
  color: var(--text-faint);
}

/* ─── Pills ─── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  transition: all 0.25s var(--ease);
  cursor: default;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Contact Form ─── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

html[lang="zh"] label {
  letter-spacing: 0.3px;
  font-size: 13px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.25s var(--ease);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

textarea {
  resize: vertical;
  min-height: 160px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A776E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ─── Subscribe ─── */
.subscribe {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.subscribe input {
  flex: 1;
  max-width: 360px;
  min-width: 220px;
}

/* ─── Office Cards ─── */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.office-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 44px 32px;
  text-align: center;
  transition: all 0.35s var(--ease);
}

.office-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}

.office-card h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.office-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Service List ─── */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 16px 20px 16px 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all 0.25s var(--ease);
}

.service-list li:hover {
  border-color: var(--accent);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* ─── Link List ─── */
.link-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.link-list li {
  margin-bottom: 12px;
  font-size: 15px;
}

.link-list a {
  color: var(--accent);
  font-size: 15px;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ─── Coming Soon ─── */
.coming-soon {
  text-align: center;
  padding: 80px 40px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.coming-soon p {
  font-size: 17px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Alt Background ─── */
.alt-bg {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════
   Footer — Dark
   ═══════════════════════════════════════════ */

.site-footer {
  background-color: #1C1A14;
  color: #9C9890;
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

/* Brand column */
.footer-brand-block .footer-brand {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 600;
  color: #F5F3EE;
  margin-bottom: 12px;
}

.footer-locations {
  font-size: 16px;
  color: #9C9890;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 14px;
  color: #6A665E;
  line-height: 1.7;
  max-width: 440px;
}

/* Column headings */
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F5F3EE;
  margin-bottom: 24px;
}

html[lang="zh"] .footer-heading {
  letter-spacing: 1px;
}

/* Navigation links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 16px;
  font-weight: 400;
  color: #9C9890;
  text-decoration: none;
  transition: color 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #C4BFB4;
}

/* Email link */
.footer-links a[href^="mailto"] {
  color: #C4BFB4;
  font-weight: 500;
}

.footer-links a[href^="mailto"]:hover {
  color: #F5F3EE;
}

/* Divider */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(245, 243, 238, 0.1);
  margin: 0 0 32px 0;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6A665E;
}

.footer-bottom a {
  color: #6A665E;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: #9C9890;
}

/* ─── Fade-in on scroll ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .footer-main { gap: 40px; }
  .hero h1 { font-size: 52px; }
}

@media (max-width: 768px) {
  /* WeChat: eliminate 300ms tap delay on all interactive elements */
  a, button {
    touch-action: manipulation;
  }

  /* Lock body scroll when menu is open — html + body both for WeChat */
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    height: 100%;
    touch-action: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 310;
  }

  .mobile-actions .lang-toggle {
    display: inline-block !important;
  }

  .hamburger { display: flex; z-index: 310; }

  /* Mobile nav overlay - FULL SCREEN, on top of everything */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* fallback */
    height: 100dvh;
    background-color: var(--bg-body);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.35s var(--ease);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 290;
    border: none;
    /* backdrop-filter removed for WeChat compatibility */
  }

  .main-nav.open {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  .site-header {
    z-index: 300;
    /* Remove backdrop-filter on mobile for WeChat */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: var(--bg-body);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a {
    display: block;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
  }

  .nav-links a::after {
    display: none;
  }

  /* Active link highlight in mobile */
  .nav-links a.active {
    color: var(--accent);
  }

  .nav-links a:hover {
    color: var(--accent);
  }

  /* Lang toggle inside nav hidden (shown in mobile-actions instead) */
  .main-nav .lang-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    justify-content: flex-start;
    padding: 130px 24px 80px;
  }

  .hero h1 { font-size: 40px; }
  html[lang="zh"] .hero h1 { font-size: 36px; }

  .hero-content { max-width: 100%; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }

  .card-grid,
  .pillars,
  .office-grid,
  .team-grid,
  .numbered-cards,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .card { padding: 40px 28px; }

  .strip {
    flex-direction: column;
    gap: 0;
  }

  .strip-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 28px 16px;
  }

  .strip-item:last-child { border-bottom: none; }

  .form-grid,
  .service-list,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  .subscribe { flex-direction: column; }
  .subscribe input { max-width: 100%; }

  .page-hero { padding: 130px 0 60px; }

  .numbered-card {
    padding-left: 72px;
  }

  .numbered-card .number {
    left: 24px;
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  html[lang="zh"] .hero h1 { font-size: 30px; }

  .hero-tagline { font-size: 18px; }

  .page-hero h1 { font-size: 30px; }

  .card h3 { font-size: 20px; }

  .footer-main { grid-template-columns: 1fr; }

  .research-card {
    flex-direction: column;
    gap: 20px;
  }

  .pdf-cover {
    width: 80px;
    height: 100px;
  }
}
