/* ============================================================
   Attorney Chen Ling · Design System
   "Trust & Authority" editorial aesthetic — ivory paper, deep
   navy ink, bronze-gold accents, EB Garamond display serif.
   Self-contained, no framework.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --primary: #1e3a8a;
  --primary-dark: #16295f;
  --primary-deep: #101d42;
  --secondary: #1e40af;
  --cta: #b45309;
  --cta-dark: #92400e;
  --gold: #b08a3e;
  --gold-soft: #d9c491;
  --accent: #eef2fb;
  --accent-light: #f6f8fd;

  /* Surfaces */
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f4f1e9;
  --surface-3: #ece7db;
  --dark: #101d42;
  --dark-2: #16295f;

  /* Text */
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #52607a;
  --text-faint: #8b95a9;
  --on-dark: #f5f2ea;
  --on-dark-muted: #b9c1d6;

  /* Lines */
  --line: #e3ded2;
  --line-soft: #ece8dd;
  --line-navy: #ccd5ec;

  /* Semantic */
  --success: #166534;
  --success-bg: #f0fdf4;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;

  /* Elevation — soft, dignified */
  --e1: 0 1px 2px rgba(16, 29, 66, 0.05);
  --e2: 0 4px 16px -4px rgba(16, 29, 66, 0.1);
  --e3: 0 12px 32px -8px rgba(16, 29, 66, 0.16);
  --e4: 0 24px 56px -16px rgba(16, 29, 66, 0.24);

  /* Radius — restrained */
  --r-xs: 2px;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-full: 999px;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 780px;
  --gut: clamp(18px, 3vw, 32px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 0.18s var(--ease);
  --med: 0.28s var(--ease);

  --font:
    "Lato", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont,
    Roboto, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Noto Sans CJK SC", sans-serif;
  --font-display:
    "EB Garamond", "Songti SC", "Noto Serif SC", Georgia, "Times New Roman",
    serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.05rem;
}
p {
  margin: 0;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--fast);
}
a:hover {
  color: var(--cta);
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::selection {
  background: var(--gold-soft);
  color: var(--primary-deep);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout utilities ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow {
  max-width: var(--maxw-narrow);
}
.section {
  padding-block: clamp(64px, 9vw, 108px);
}
.section-sm {
  padding-block: clamp(40px, 6vw, 64px);
}
.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line-soft);
}
.section--dark {
  background:
    radial-gradient(
      1000px 460px at 85% -10%,
      rgba(176, 138, 62, 0.16),
      transparent 62%
    ),
    var(--dark);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}
.section--dark p {
  color: var(--on-dark-muted);
}
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.col {
  display: flex;
  flex-direction: column;
}
.text-center {
  text-align: center;
}
.sticky-24 {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.hidden {
  display: none !important;
}
.muted {
  color: var(--text-muted);
}
.faint {
  color: var(--text-faint);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-soft);
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* JS dropdown state utilities (used by base layout script) */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; pointer-events: none; }
.visible { visibility: visible; pointer-events: auto; }
.rotate-180 { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    background-color var(--fast),
    color var(--fast),
    border-color var(--fast),
    box-shadow var(--fast);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--e2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--e3);
}
.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--e2);
}
.btn-cta:hover {
  background: var(--cta-dark);
  color: #fff;
  box-shadow: var(--e3);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-light {
  background: #fff;
  color: var(--primary-deep);
}
.btn-light:hover {
  background: var(--surface-2);
  color: var(--primary-deep);
}
.btn-on-dark {
  border-color: rgba(245, 242, 234, 0.45);
  color: var(--on-dark);
  background: transparent;
}
.btn-on-dark:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}
.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Eyebrow / chips / badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow svg {
  width: 15px;
  height: 15px;
}
.section--dark .eyebrow {
  color: var(--gold-soft);
}
.brand-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--fast),
    color var(--fast),
    border-color var(--fast);
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chip-primary {
  background: var(--accent);
  border-color: var(--line-navy);
  color: var(--primary);
}
.chip-on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chip-on:hover {
  color: #fff;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.check::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.check-light {
  color: var(--on-dark-muted);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Icon tiles ---------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: var(--accent);
  border: 1px solid var(--line-navy);
  color: var(--primary);
  flex: none;
}
.icon-tile svg {
  width: 26px;
  height: 26px;
}
.icon-tile--gold {
  background: #faf5e9;
  border-color: var(--gold-soft);
  color: var(--gold);
}
.icon-tile-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--primary);
  flex: none;
}
.icon-tile-sm svg {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--fast),
    box-shadow var(--fast);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--e2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  color: var(--primary-deep);
}
.brand:hover {
  color: var(--primary);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--primary-deep);
  color: var(--gold-soft);
  flex: none;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand small {
  display: block;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  transition:
    color var(--fast),
    background-color var(--fast);
}
.nav-link:hover {
  color: var(--primary);
  background: var(--accent);
}
.nav-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--fast);
}
.nav-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--primary-deep);
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}
.nav-toggle:hover {
  background: var(--accent);
}

/* Dropdowns */
.dropdown-container {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--fast),
    visibility var(--fast);
  z-index: 60;
}
.dropdown-menu.opacity-100.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-menu[data-align="right"] {
  left: auto;
  right: 0;
  transform: none;
}
.dropdown-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--r);
  box-shadow: var(--e3);
  padding: 10px;
  display: grid;
  gap: 2px;
}
.dropdown-panel--sm {
  min-width: 220px;
}
.menu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  transition: background-color var(--fast);
}
.menu-item:hover {
  background: var(--accent-light);
}
.menu-item-title {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
}
.menu-item:hover .menu-item-title {
  color: var(--primary);
}
.menu-item-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition:
    background-color var(--fast),
    color var(--fast);
}
.menu-link:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.menu-link svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--e3);
  padding-block: 16px 20px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.m-link,
.m-dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
}
.m-link:hover,
.m-dd-btn:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.m-dd-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--fast);
}
.m-dd-panel {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px;
}
.m-sublink {
  padding: 10px 10px 10px 26px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
}
.m-sublink::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}
.m-sublink:hover {
  color: var(--primary);
  background: var(--accent-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(
      900px 420px at 110% -20%,
      rgba(30, 58, 138, 0.07),
      transparent 60%
    ),
    radial-gradient(
      700px 380px at -10% 110%,
      rgba(176, 138, 62, 0.09),
      transparent 60%
    ),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-soft),
    transparent
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  margin-block: 14px 18px;
}
.hero-accent {
  color: var(--primary);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg);
  background: rgba(176, 138, 62, 0.07);
  color: var(--text);
  text-decoration: none;
}
.hero-contact-item svg {
  width: 21px;
  height: 21px;
  color: var(--gold);
  flex: none;
}
.hero-contact-item small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hero-contact-item strong {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
a.hero-contact-item:hover {
  border-color: var(--gold);
  background: rgba(176, 138, 62, 0.12);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
}

/* Hero credentials panel */
.counsel-panel {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--e4);
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(217, 196, 145, 0.28);
}
.counsel-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 196, 145, 0.22);
  border-radius: calc(var(--r-lg) - 4px);
  pointer-events: none;
}
.counsel-panel--photo {
  padding: 0;
  overflow: hidden;
}
.counsel-panel--photo::before {
  display: none;
}
.counsel-portrait {
  position: relative;
  border-bottom: 2px solid var(--gold);
}
.counsel-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: 50% 12%;
}
.counsel-portrait-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 64px 24px 16px;
  background: linear-gradient(
    180deg,
    rgba(16, 29, 66, 0) 0%,
    rgba(16, 29, 66, 0.55) 52%,
    rgba(16, 29, 66, 0.92) 100%
  );
}
.counsel-portrait-caption h2 {
  color: var(--on-dark);
  margin: 2px 0 4px;
}
.counsel-portrait-caption p {
  color: var(--on-dark-muted);
  margin: 0;
}
.counsel-body {
  padding: 20px clamp(20px, 2.5vw, 28px) clamp(22px, 2.5vw, 28px);
}
.counsel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(217, 196, 145, 0.25);
  margin-bottom: 18px;
}
.counsel-head h2 {
  color: var(--on-dark);
  margin: 2px 0 4px;
}
.counsel-head p,
.counsel-kicker {
  color: var(--on-dark-muted);
}
.counsel-kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.counsel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  flex: none;
}
.counsel-photo {
  width: 88px;
  height: 110px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(217, 196, 145, 0.45);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
  flex: none;
  background: var(--dark-2);
}
.counsel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Portrait block (about page / large photo positions) */
.portrait-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--e4);
  border: 1px solid var(--line);
  background: var(--dark);
  aspect-ratio: 3 / 4;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 196, 145, 0.45);
  border-radius: calc(var(--r-lg) - 4px);
  pointer-events: none;
}
.portrait-caption {
  margin-top: 14px;
  text-align: center;
}
.portrait-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}
.portrait-caption span {
  font-size: 0.86rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.about-intro {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}
@media (max-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-intro .portrait-frame {
    max-width: 340px;
    margin-inline: auto;
  }
}

/* Language switch pill in nav */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--line-navy);
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--surface);
}
.lang-switch:hover {
  border-color: var(--gold);
  color: var(--cta);
}
.lang-switch svg {
  width: 15px;
  height: 15px;
}
.counsel-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--on-dark);
}
.counsel-role {
  font-size: 0.85rem;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}
.counsel-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.counsel-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.counsel-list svg {
  width: 17px;
  height: 17px;
  color: var(--gold-soft);
  flex: none;
  margin-top: 3px;
}
.counsel-list strong {
  color: var(--on-dark);
  font-weight: 700;
}
.counsel-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 196, 145, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}
.counsel-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.counsel-seal svg {
  width: 18px;
  height: 18px;
}

/* ---------- Section headers ---------- */
.shead {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.shead h2 {
  margin-block: 10px 14px;
}
.shead p {
  color: var(--text-muted);
  font-size: 1.04rem;
}
.shead--left {
  margin-inline: 0;
  text-align: left;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--e1);
  transition:
    box-shadow var(--med),
    border-color var(--med),
    transform var(--med);
}
.card-pad {
  padding: clamp(22px, 2.6vw, 32px);
}
a.card:hover,
.card-link:hover {
  box-shadow: var(--e3);
  border-color: var(--line-navy);
}
.feature h3 {
  margin-block: 16px 8px;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Practice-area cards */
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-lg);
  box-shadow: var(--e1);
  padding: clamp(24px, 2.6vw, 32px);
  transition:
    box-shadow var(--med),
    transform var(--med),
    border-color var(--med);
  cursor: pointer;
}
.area-card:hover {
  box-shadow: var(--e3);
  border-top-color: var(--gold);
  transform: translateY(-3px);
}
.area-card h3 {
  font-size: 1.28rem;
}
.area-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.area-card .readmore {
  margin-top: 4px;
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.area-tags span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-full);
  padding: 3px 10px;
}
.readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
}
.readmore:hover {
  color: var(--cta);
}

/* ---------- Stats ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
}
.stat-num em {
  font-style: normal;
  color: var(--gold);
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}
.section--dark .stat-num {
  color: var(--gold-soft);
}
.section--dark .stat-label {
  color: var(--on-dark-muted);
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.process-step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Quote / testimonial ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--e1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-soft);
}
.quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}
.quote-who .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
}
.quote-who strong {
  display: block;
  color: var(--text);
}
.quote-who span {
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--fast);
}
.faq-item[open] {
  border-color: var(--line-navy);
  box-shadow: var(--e2);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  transition: transform var(--fast);
  flex: none;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  color: var(--primary);
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}
.faq-body a {
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      760px 320px at 88% -30%,
      rgba(217, 196, 145, 0.22),
      transparent 60%
    ),
    var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  border: 1px solid rgba(217, 196, 145, 0.3);
}
.cta-band h2 {
  color: var(--on-dark);
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--on-dark-muted);
  max-width: 620px;
  margin: 0 auto 26px;
}

/* ---------- Page head ---------- */
.crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--text-muted);
}
.crumbs a:hover {
  color: var(--primary);
}
.crumbs-sep {
  color: var(--text-faint);
}
.page-head {
  position: relative;
  background:
    radial-gradient(
      800px 360px at 100% -30%,
      rgba(30, 58, 138, 0.08),
      transparent 60%
    ),
    var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(48px, 7vw, 84px);
  text-align: center;
}
.page-head h1 {
  max-width: 880px;
  margin-inline: auto;
}
.page-head p {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}
.page-head .eyebrow {
  margin-bottom: 4px;
}

/* ---------- Definition / answer block (GEO) ---------- */
.answer-box {
  background: var(--accent-light);
  border: 1px solid var(--line-navy);
  border-left: 3px solid var(--primary);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.answer-box strong {
  color: var(--text);
}

/* ---------- Checklist ---------- */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.65;
  color: var(--text-soft);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--line-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231e3a8a'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.check-list strong {
  color: var(--text);
}

/* ---------- Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--e1);
  transition:
    box-shadow var(--med),
    border-color var(--med);
}
.post-card:hover {
  box-shadow: var(--e3);
  border-color: var(--line-navy);
}
.post-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 8.4;
  background:
    linear-gradient(
      135deg,
      var(--accent-light),
      var(--surface-2)
    );
  color: var(--line-navy);
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--med);
}
.post-card:hover .post-thumb img {
  transform: scale(1.03);
}
.post-thumb svg {
  width: 44px;
  height: 44px;
}
.post-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.post-title {
  font-size: 1.15rem;
  line-height: 1.35;
  transition: color var(--fast);
}
a:hover .post-title {
  color: var(--primary);
}
.post-excerpt {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
}
.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--text-faint);
}
.pager {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.pager-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.94rem;
}
.pager-inner a {
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.pager-inner a:hover {
  border-color: var(--primary);
}
.page-num {
  font-weight: 800;
  color: var(--primary);
}
.page-info {
  color: var(--text-faint);
}

/* Sidebar widgets */
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--e1);
}
.widget h3 {
  font-size: 1.05rem;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold-soft);
}
.widget-cta {
  background: var(--dark);
  border-color: rgba(217, 196, 145, 0.3);
  color: var(--on-dark);
}
.widget-cta h3 {
  color: var(--on-dark);
  border-bottom-color: rgba(217, 196, 145, 0.35);
}
.widget-cta p {
  color: var(--on-dark-muted);
}
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.45;
}
.widget-list a:hover {
  color: var(--primary);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* Article */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.crumbs a {
  color: var(--text-muted);
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--primary);
}
.crumbs svg {
  width: 13px;
  height: 13px;
}
.crumbs .here {
  color: var(--text-faint);
  max-width: 380px;
}
.article-head {
  margin-bottom: 26px;
}
.article-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-block: 10px 12px;
}
.article-body {
  margin-bottom: 32px;
}
.prose {
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--text-soft);
}
.prose h2,
.prose h3 {
  color: var(--text);
  margin: 1.7em 0 0.7em;
}
.prose h2 {
  font-size: 1.55rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
}
.prose h3 {
  font-size: 1.22rem;
}
.prose p {
  margin-block: 0 1.1em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-block: 0 1.2em;
}
.prose li {
  margin-block: 0.35em;
}
.prose img {
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin-block: 1.2em;
}
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--gold);
  background: var(--accent-light);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-display);
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.2em;
  font-size: 0.94rem;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.prose th {
  background: var(--surface-2);
  font-weight: 700;
}
.prose a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 3px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-link {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.toc-link:hover {
  color: var(--primary);
  border-left-color: var(--gold);
  background: var(--accent-light);
}
.toc .lvl-h3 .toc-link {
  padding-left: 24px;
}
.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition:
    border-color var(--fast),
    background-color var(--fast);
}
.related-link:hover {
  border-color: var(--line-navy);
  background: var(--accent-light);
}
.related-link h4 {
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-line:last-child {
  border-bottom: 0;
}
.contact-line strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.contact-line span,
.contact-line a {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.contact-line > div > span,
.contact-line > div > a {
  display: block;
}
.contact-line a:hover {
  color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-deep);
  color: var(--on-dark-muted);
  margin-top: 0;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-brand .brand {
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer-brand .brand-mark {
  background: rgba(217, 196, 145, 0.14);
  color: var(--gold-soft);
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 360px;
}
.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.footer-badges svg {
  width: 16px;
  height: 16px;
  color: var(--gold-soft);
  flex: none;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col h4 {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--on-dark);
}
.footer-bottom {
  border-top: 1px solid rgba(217, 196, 145, 0.18);
  padding-block: 22px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}
.footer-bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom a {
  color: var(--on-dark-muted);
}
.footer-bottom a:hover {
  color: var(--on-dark);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(185, 193, 214, 0.75);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 760px;
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.55s var(--ease),
      transform 0.55s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout-2col {
    grid-template-columns: 1fr;
  }
  .sticky-24 {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .process {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn-row .btn {
    flex: 1 1 auto;
  }
  .counsel-panel {
    padding: 22px;
  }
}
