/* ============================================
   Admind, Inc. — Shared Styles v4
   Aesthetic: Modern warm-tech · sharp + energetic
   Palette: Porcelain canvas + near-black ink +
            electric blue × flame coral, emerald signal
   ============================================ */

:root {
  /* Surface — warm porcelain, crisp white cards */
  --bg:    #F1EFEA;
  --bg-2:  #F8F6F2;
  --bg-3:  #FFFFFF;
  --paper-edge: #E6E2D9;
  --surface-glass:        rgba(255, 255, 255, 0.60);
  --surface-glass-strong: rgba(255, 255, 255, 0.82);

  /* Ink — near-black with a warm undertone, high contrast */
  --ink:   #17140F;
  --ink-2: rgba(23, 20, 15, 0.68);
  --ink-3: rgba(23, 20, 15, 0.44);
  --ink-4: rgba(23, 20, 15, 0.22);

  /* Lines */
  --border:   rgba(23, 20, 15, 0.10);
  --border-2: rgba(23, 20, 15, 0.16);
  --border-3: rgba(23, 20, 15, 0.26);

  /* Brand blue — from the logo mark, punched up to electric */
  --blue:        #2F54EB;
  --blue-deep:   #1E3AC9;
  --blue-soft:   #8AA0FF;
  --tint-blue:   rgba(47, 84, 235, 0.10);
  --glow-blue:   rgba(47, 84, 235, 0.24);

  /* Warmth — flame coral is the visible accent (was muddy clay) */
  --clay:   #FF5A26;   /* flame coral — primary warm accent */
  --clay-deep: #DB3F0E; /* used for small label text */
  --honey:  #FF9F1C;   /* bright amber */
  --sage:   #16B981;   /* emerald — modern signal green */
  --plum:   #6E56CF;   /* tech violet, rare */

  --tint-clay:  rgba(255, 90, 38, 0.12);
  --tint-honey: rgba(255, 159, 28, 0.16);
  --tint-sage:  rgba(22, 185, 129, 0.14);

  /* Status */
  --c-status:      #16B981;
  --c-status-glow: rgba(22, 185, 129, 0.5);

  /* legacy aliases kept so older markup/JS keeps working */
  --c-cobalt:      var(--blue);
  --c-cobalt-deep: var(--blue-deep);
  --tint-cobalt:   var(--tint-blue);
  --glow-cobalt:   var(--glow-blue);

  /* vivid energetic gradient */
  --grad-warm: linear-gradient(120deg, #FF5A26 0%, #FF9F1C 100%);
  --grad-ink:  linear-gradient(120deg, #1B1813 0%, #39332A 100%);

  /* Type */
  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cjk: 'Noto Serif SC', 'Hanken Grotesk', serif;

  /* Easing */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Chinese mode: serif CJK everywhere, looser leading for breathing room */
html.lang-zh body { font-family: var(--font-cjk); line-height: 1.85; letter-spacing: 0; }
html.lang-zh .hero h1,
html.lang-zh .section-heading,
html.lang-zh h2, html.lang-zh h3, html.lang-zh h4 { font-family: var(--font-cjk); }

/* language visibility helpers (used where dual markup is easier than data-attrs) */
.en-only { display: inline; }
.zh-only { display: none; }
html.lang-zh .en-only { display: none; }
html.lang-zh .zh-only { display: inline; }

/* ============================================
   Atmosphere — warm washes + paper grain
   ============================================ */

.atmos {
  position: fixed; inset: 0;
  pointer-events: none; z-index: -2; overflow: hidden;
}
.atmos__orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); will-change: transform;
}
.atmos__orb--violet {     /* electric blue wash, top-left */
  width: 600px; height: 600px; top: -220px; left: -180px;
  background: var(--blue); opacity: 0.16;
  animation: orbDrift1 32s var(--ease-out-quart) infinite alternate;
}
.atmos__orb--pink {       /* flame coral wash, top-right */
  width: 560px; height: 560px; top: -120px; right: -200px;
  background: var(--clay); opacity: 0.16;
  animation: orbDrift2 36s var(--ease-out-quart) infinite alternate;
}
.atmos__orb--amber {      /* amber wash, mid */
  width: 520px; height: 520px; top: 480px; left: 40%;
  background: var(--honey); opacity: 0.14;
  animation: orbDrift3 40s var(--ease-out-quart) infinite alternate;
}

@keyframes orbDrift1 { from { transform: translate(0,0) scale(1);} to { transform: translate(120px,50px) scale(1.1);} }
@keyframes orbDrift2 { from { transform: translate(0,0) scale(1);} to { transform: translate(-90px,70px) scale(1.06);} }
@keyframes orbDrift3 { from { transform: translate(0,0) scale(1);} to { transform: translate(-70px,-40px) scale(1.05);} }

/* faint technical grid — modern, blueprint-like, very low contrast */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    repeating-linear-gradient(to right, transparent 0 63px, rgba(23,20,15,0.028) 63px 64px),
    repeating-linear-gradient(to bottom, transparent 0 63px, rgba(23,20,15,0.028) 63px 64px);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 12%, #000 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 12%, #000 30%, transparent 92%);
  opacity: 0.8;
}

/* whisper of grain — just enough to avoid flat digital sterility */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.022;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; }

/* ============================================
   Layout
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; }
.container--narrow { max-width: 860px; }

/* shared eyebrow label (replaces mono "section-label") */
.eyebrow, .section-label, .legal-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--clay); border-radius: 2px;
}

/* ============================================
   Header / nav
   ============================================ */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  width: calc(100% - 32px); max-width: 1160px;
  padding: 11px 12px 11px 20px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.6) inset, 0 10px 34px -12px rgba(23,20,15,0.16);
}
.logo { display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 144, "SOFT" 0; color: var(--ink); }
html.lang-zh .logo { font-family: var(--font-display); }

/* brand mark — the blue A-peak + dot, recreated as SVG */
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; display: block; }
.brand-mark .stroke { stroke: var(--blue); }
.brand-mark .dot { fill: var(--blue); }

.logo-mark { /* legacy fallback box, hidden now since we use .brand-mark */ display: none; }
.logo-suffix { color: var(--ink-3); font-weight: 400; }

.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a { position: relative; padding: 8px 2px; transition: color 0.2s var(--ease-out-quart); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px;
  background: var(--clay); transition: right 0.28s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 3px; background: var(--bg-2);
  font-size: 12.5px; font-weight: 600;
}
.lang-toggle button {
  border: none; background: transparent; color: var(--ink-3);
  padding: 5px 11px; border-radius: 999px; line-height: 1;
  transition: all 0.2s var(--ease-out-quart);
}
.lang-toggle button.is-active { background: var(--ink); color: var(--bg-2); }

.nav-cta {
  font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg-2);
  transition: all 0.2s var(--ease-out-quart);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { background: var(--clay); transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(192,97,58,0.5); }
.nav-cta svg { width: 12px; height: 12px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 14px 26px; transition: all 0.22s var(--ease-out-quart);
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--bg-2); }
.btn-primary:hover { background: var(--clay); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(192,97,58,0.55); }
.btn-secondary { background: transparent; border-color: var(--border-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--bg-2); transform: translateY(-2px); }
.btn-arrow { width: 14px; height: 14px; transition: transform 0.22s var(--ease-out-quart); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ============================================
   Hero
   ============================================ */
.hero { padding: 200px 0 110px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 56px; align-items: center; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  background: var(--surface-glass-strong); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-status);
  box-shadow: 0 0 10px var(--c-status-glow); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.45; transform: scale(0.82);} }

.hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 40; margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--clay); font-weight: 400; }
.hero h1 .ink-underline { position: relative; white-space: nowrap; }
.hero h1 .ink-underline svg { position: absolute; left: 0; right: 0; bottom: -0.14em; width: 100%; height: 0.22em; color: var(--honey); }

.hero-sub { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 540px; margin-bottom: 36px; line-height: 1.65; }
html.lang-zh .hero-sub { line-height: 1.95; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 48px; margin-top: 64px; }
.hero-stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.hero-stat-value { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); font-variation-settings: "opsz" 90; }

/* hero artwork */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px rgba(23,20,15,0.12)); }

/* ============================================
   Section scaffolding
   ============================================ */
.section-header { margin-bottom: 22px; }
.section-heading {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 40; max-width: 760px;
}
.section-heading em { font-style: italic; color: var(--clay); }

.practices, .discipline, .company, .contact, .cases, .categories { padding: 110px 0; position: relative; }
.section-rule { height: 1px; background: var(--border); max-width: 1200px; margin: 0 auto; }

/* ============================================
   Practices (now 2: Advertising + Grants)
   ============================================ */
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.practice {
  position: relative; padding: 40px 36px 32px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 18px 40px -28px rgba(23,20,15,0.22);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  overflow: hidden;
}
.practice::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-warm); opacity: 0.9; }
.practice:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 28px 54px -28px rgba(23,20,15,0.28); }

/* flagship practice — advertising compliance is the main business */
.practice--primary {
  background: linear-gradient(180deg, var(--tint-clay) 0%, var(--bg-3) 38%);
  border-color: rgba(255,90,38,0.30);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 48px -30px rgba(255,90,38,0.5);
}
.practice--primary::before { height: 6px; opacity: 1; }
.practice-flag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--grad-warm);
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(255,90,38,0.7);
}
.practice-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.practice-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.practice-num { font-family: var(--font-display); font-size: 30px; font-weight: 300; color: var(--clay); font-style: italic; }
.practice-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 11px; }
.practice-ill { width: 100%; height: 132px; margin-bottom: 22px; }
.practice-ill svg { width: 100%; height: 100%; display: block; }
.practice h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.22; letter-spacing: -0.015em; margin-bottom: 12px; font-variation-settings: "opsz" 110, "SOFT" 30; }
.practice-lead { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; }
.practice-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.practice-list li { font-size: 14px; color: var(--ink-2); padding-left: 26px; position: relative; line-height: 1.55; }
.practice-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--tint-clay); border: 1.5px solid var(--clay); border-radius: 5px;
}
.practice-list li strong { color: var(--ink); font-weight: 600; }
.practice-status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); font-weight: 500;
  padding-top: 18px; border-top: 1px dashed var(--border-2); width: 100%; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--tint-sage); }

/* ============================================
   21 restricted categories — chip grid
   ============================================ */
.categories { padding-top: 0; }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.cat-count { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(64px, 12vw, 132px); line-height: 0.85; color: var(--clay); letter-spacing: -0.04em; }
.cat-count small { display: block; font-style: normal; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px; border-radius: 14px; background: var(--bg-3);
  border: 1px solid var(--border); transition: all 0.22s var(--ease-out-quart);
}
.cat-chip:hover { border-color: var(--clay); background: var(--bg-2); transform: translateY(-2px); }
.cat-chip svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--clay); }
.cat-chip span { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.cat-note { margin-top: 28px; font-size: 13.5px; color: var(--ink-3); max-width: 720px; line-height: 1.6; }

/* ============================================
   Cases — patent-pending tech showcases (3)
   ============================================ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.case {
  position: relative; padding: 32px 28px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 22px;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  box-shadow: 0 18px 40px -30px rgba(23,20,15,0.25);
}
.case:hover { transform: translateY(-5px); box-shadow: 0 30px 56px -30px rgba(23,20,15,0.3); }
.case-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clay-deep); background: var(--tint-clay);
  border: 1px solid rgba(192,97,58,0.3); border-radius: 999px; padding: 5px 11px; margin-bottom: 20px;
}
.case-badge svg { width: 12px; height: 12px; }
.case-art { width: 100%; height: 150px; margin-bottom: 22px; display: grid; place-items: center; }
.case-art svg { width: 100%; height: 100%; }
.case-no { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--ink-3); margin-bottom: 6px; }
.case h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 12px; font-variation-settings: "opsz" 110; }
.case p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.case-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.case-tag { font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; }

/* ============================================
   Discipline — 3 principles
   ============================================ */
.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.principle { padding-top: 26px; border-top: 2px solid var(--ink); }
.principle:nth-child(2) { border-top-color: var(--clay); }
.principle:nth-child(3) { border-top-color: var(--sage); }
.principle-num { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink-3); margin-bottom: 16px; }
.principle h4 { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 12px; }
.principle p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* ============================================
   Company
   ============================================ */
.company-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }
.company-text h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 22px; font-variation-settings: "opsz" 144, "SOFT" 40; }
.company-text h2 em { font-style: italic; color: var(--clay); }
.company-text p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; max-width: 540px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.fact { background: var(--bg-3); padding: 22px 22px; }
.fact-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.fact-value { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.fact-value--small { font-size: 15px; line-height: 1.35; }

/* ============================================
   Contact
   ============================================ */
.contact-headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 14px 0 18px; font-variation-settings: "opsz" 144, "SOFT" 40; max-width: 720px; }
.contact-headline em { font-style: italic; color: var(--clay); }
.contact-lead { font-size: 16.5px; color: var(--ink-2); max-width: 560px; line-height: 1.65; margin-bottom: 44px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; transition: all 0.25s var(--ease-out-expo); }
.contact-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 24px 48px -30px rgba(23,20,15,0.3); }
.contact-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.contact-card-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.contact-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--tint-clay); color: var(--clay-deep); font-family: var(--font-display); font-size: 18px; }
.contact-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 16px; letter-spacing: -0.01em; }
.contact-card-email { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--clay-deep); }
.contact-card-email svg { width: 13px; height: 13px; transition: transform 0.22s var(--ease-out-quart); }
.contact-card-email:hover svg { transform: translate(2px, -2px); }
.contact-address { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.contact-address-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contact-address-value { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* ============================================
   Footer
   ============================================ */
footer { padding: 72px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 320px; line-height: 1.6; }
.footer-col-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-3); }

/* ============================================
   Legal pages
   ============================================ */
.legal { padding: 180px 0 100px; }
.legal-header { margin-bottom: 48px; }
.legal-eyebrow { margin-bottom: 18px; }
.legal-header h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-variation-settings: "opsz" 144, "SOFT" 40; margin-bottom: 16px; }
.legal-header h1 em { font-style: italic; color: var(--clay); }
.legal-meta { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.legal-content h2 { font-family: var(--font-display); font-weight: 400; font-size: 25px; letter-spacing: -0.015em; margin: 44px 0 14px; scroll-margin-top: 120px; }
.legal-content h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 16px; font-size: 15.5px; color: var(--ink-2); line-height: 1.72; }
html.lang-zh .legal-content p { line-height: 1.95; }
.legal-content ul { margin: 12px 0 18px 22px; padding-left: 0; }
.legal-content li { margin-bottom: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.66; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--clay-deep); border-bottom: 1px solid rgba(192,97,58,0.32); transition: border-color 0.2s; }
.legal-content a:hover { border-color: var(--clay); }

.legal-toc { margin: 0 0 56px; padding: 26px 30px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 18px; }
.legal-toc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 600; margin-bottom: 16px; }
.legal-toc ol { columns: 2; column-gap: 32px; list-style: none; counter-reset: toc; padding: 0; }
.legal-toc li { counter-increment: toc; font-size: 14px; margin-bottom: 8px; break-inside: avoid; display: flex; gap: 10px; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); font-size: 11px; color: var(--clay); font-weight: 700; flex-shrink: 0; }
.legal-toc a { color: var(--ink-2); border: none; transition: color 0.2s; }
.legal-toc a:hover { color: var(--clay); }
.legal-disclaimer { margin-top: 56px; padding: 22px 26px; background: var(--tint-honey); border: 1px solid rgba(214,154,82,0.3); border-radius: 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

/* ============================================
   404
   ============================================ */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 120px 32px; }
.error-content { text-align: center; max-width: 560px; }
.error-code { font-family: var(--font-display); font-weight: 300; font-size: clamp(120px, 20vw, 230px); line-height: 0.9; letter-spacing: -0.05em; font-variation-settings: "opsz" 144, "SOFT" 40; color: var(--clay); font-style: italic; }
.error-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 20px 0 14px; }
.error-text { font-size: 16.5px; color: var(--ink-2); margin-bottom: 32px; line-height: 1.6; }

/* ============================================
   Reveal-on-load
   ============================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; }
  .cases-grid { grid-template-columns: 1fr; }
  .discipline-grid { grid-template-columns: 1fr; gap: 0; }
  .principle { padding: 22px 0; border-top: 1px solid var(--border); }
  .principle:first-child { border-top: 2px solid var(--ink); }
}
@media (max-width: 920px) {
  .practice-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid, .contact-address { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav { padding: 9px 9px 9px 16px; gap: 10px; }
  .nav-links { display: none; }
  .hero { padding: 150px 0 70px; }
  .hero-stats { gap: 28px 36px; grid-template-columns: repeat(2, auto); margin-top: 48px; }
  .practices, .discipline, .company, .contact, .cases, .categories { padding: 76px 0; }
  .practice { padding: 30px 24px; }
  .legal { padding: 140px 0 70px; }
  .legal-toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   Cookie consent banner  (class names kept for cookies.js)
   ============================================ */
.cookie-banner { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px);
  width: calc(100% - 32px); max-width: 720px; z-index: 80; opacity: 0;
  transition: opacity 0.32s var(--ease-out-expo), transform 0.32s var(--ease-out-expo); pointer-events: none; }
.cookie-banner--visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cookie-banner__inner { background: rgba(255, 253, 248, 0.94); backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--border-2); border-radius: 20px; padding: 24px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 26px 60px -18px rgba(23,20,15,0.24); }
.cookie-banner__main h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 10px; }
.cookie-banner__main p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; }
.cookie-banner__legal { font-size: 12px !important; color: var(--ink-3) !important; }
.cookie-banner__legal a { color: var(--clay-deep); border-bottom: 1px solid rgba(192,97,58,0.32); }
.cookie-banner__legal a:hover { border-color: var(--clay); }
.cookie-banner__actions { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: all 0.2s var(--ease-out-quart); }
.cookie-btn--primary { background: var(--ink); color: var(--bg-2); }
.cookie-btn--primary:hover { background: var(--clay); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(192,97,58,0.5); }
.cookie-btn--ghost { background: transparent; border-color: var(--border-2); color: var(--ink-2); }
.cookie-btn--ghost:hover { color: var(--ink); border-color: var(--ink-3); background: var(--bg-2); }
.cookie-prefs { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cookie-pref { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); cursor: pointer;
  transition: border-color 0.2s, background 0.2s; font-size: 13px; }
.cookie-pref:hover:not(.cookie-pref--locked) { border-color: var(--border-2); background: var(--bg-3); }
.cookie-pref input[type="checkbox"] { grid-row: 1 / span 2; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--clay); cursor: pointer; }
.cookie-pref--locked { cursor: not-allowed; opacity: 0.85; }
.cookie-pref--locked input[type="checkbox"] { cursor: not-allowed; }
.cookie-pref__title { grid-column: 2; font-weight: 600; color: var(--ink); }
.cookie-pref__desc { grid-column: 2; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 720px) {
  .cookie-banner { bottom: 12px; width: calc(100% - 16px); }
  .cookie-banner__inner { padding: 18px; border-radius: 16px; }
  .cookie-btn { font-size: 12.5px; padding: 9px 14px; flex: 1; justify-content: center; }
  .cookie-banner__actions { justify-content: stretch; }
}
