/* ==========================================================================
   Karl, Mauritson & Cuff LLP — main stylesheet
   Palette: deep navy + brass/gold accent on ivory. Fonts: Playfair Display + Inter.
   ========================================================================== */

:root {
  --navy: #0f1f3d;
  --navy-900: #0a1530;
  --navy-700: #1a2d55;
  --navy-600: #243a68;
  --gold: #b8924a;          /* decorative brass */
  --gold-light: #d8b877;    /* gold on navy (AA contrast) */
  --gold-dark: #7d5f26;     /* gold text on light backgrounds (AA contrast) */
  --ivory: #faf7f0;
  --paper: #f3eee3;
  --white: #ffffff;
  --ink: #18202f;
  --text: #333b4b;
  --muted: #5a6273;
  --line: #e4ddcd;
  --line-dark: rgba(255, 255, 255, 0.14);
  --success: #1f6b45;
  --error: #a42a2a;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1280px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.06), 0 2px 8px rgba(15, 31, 61, 0.05);
  --shadow: 0 10px 30px rgba(15, 31, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 31, 61, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { html { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
img { height: auto; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-light); color: var(--navy-900); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--gold); color: var(--navy-900); padding: 10px 18px; font-weight: 600; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--navy-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ---------- Placeholder & sample markers ---------- */
.ph { background: rgba(184, 146, 74, 0.14); color: inherit; padding: 0 .25em; border-radius: 3px; font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: break-word; }
.on-dark .ph, .site-footer .ph, .topbar .ph { background: rgba(216, 184, 119, 0.18); }
.sample-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #7a4b00; background: #fff4d6; border: 1px dashed #d9a441; padding: 3px 9px; border-radius: 999px; line-height: 1.4;
}
.sample-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d9a441; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184,146,74,.35); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); color: var(--gold); }
.link-arrow:hover { color: var(--gold-dark); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.78); font-size: .8rem; letter-spacing: .02em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold-light); }
.topbar-contact { display: flex; gap: 22px; }
.topbar .adv { color: var(--gold-light); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,31,61,.08); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; color: var(--navy); letter-spacing: .005em; white-space: nowrap; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin-top: 4px; }
.brand:hover .brand-name { color: var(--navy-700); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .nav-list { display: flex; gap: 4px; align-self: stretch; }
.nav-list > li { display: flex; align-items: center; }
.primary-nav a:not(.btn) {
  position: relative; display: block; padding: 8px 11px; text-decoration: none;
  color: var(--ink); font-size: .92rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav a:not(.btn):hover { color: var(--navy); }
.primary-nav a:not(.btn):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle .bars { top: 50%; margin-top: -1px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; transform: none; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  min-height: min(760px, calc(100vh - var(--header-h) - 38px));
  display: flex; align-items: center;
  background: var(--navy-900);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,21,48,.95) 0%, rgba(10,21,48,.86) 38%, rgba(15,31,61,.55) 70%, rgba(15,31,61,.35) 100%),
    linear-gradient(0deg, rgba(10,21,48,.7) 0%, rgba(10,21,48,0) 40%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 24px 110px; }
.hero-content { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-weight: 500; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold-light); display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18); list-style: none; padding-left: 0; max-width: 680px;
}
.hero-pillars li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.88); }
.hero-pillars svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,21,48,.95) 0%, rgba(15,31,61,.82) 55%, rgba(15,31,61,.6) 100%); }
.page-hero-inner { position: relative; z-index: 2; padding: 84px 24px 88px; max-width: var(--container); }
.page-hero h1 { color: var(--white); font-weight: 500; max-width: 820px; margin-bottom: 18px; }
.page-hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 680px; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.7); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-light); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy strong { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-navy .section-head p { color: rgba(255,255,255,.75); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.gold-rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 28px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-60 { grid-template-columns: 1.15fr .85fr; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-media.landscape img { aspect-ratio: 4 / 3; }
.split-media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 60%; height: 60%;
  border: 1px solid var(--gold); border-radius: var(--radius-lg); z-index: -1;
}
.split-media .media-badge {
  position: absolute; right: -22px; bottom: 36px; background: var(--navy); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 260px;
  border-left: 3px solid var(--gold);
}
.media-badge strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); font-weight: 500; margin-bottom: 4px; }
.media-badge span { font-size: .85rem; color: rgba(255,255,255,.75); }
.lead-text { font-size: 1.2rem; color: var(--ink); line-height: 1.65; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(184,146,74,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d5f26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section-navy .check-list li::before { background-color: rgba(216,184,119,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b877' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 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); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }

.practice-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.practice-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.practice-card:hover::after { transform: scaleX(1); }
.practice-card .link-arrow { margin-top: auto; padding-top: 12px; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--ivory); border: 1px solid var(--line); color: var(--gold-dark); transition: background-color .3s, color .3s;
}
.icon-badge svg { width: 26px; height: 26px; }
.practice-card:hover .icon-badge { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

.practice-mini { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; }
.practice-mini .icon-badge { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.practice-mini .icon-badge svg { width: 20px; height: 20px; }
.practice-mini h3 { font-size: 1.02rem; margin: 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.practice-mini::after { display: none; }

/* Why choose */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.why-item { display: flex; gap: 20px; }
.why-num { font-family: var(--font-serif); font-size: 1rem; color: var(--gold-light); border: 1px solid rgba(216,184,119,.5); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.why-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-item p { margin: 0; font-size: .98rem; color: rgba(255,255,255,.75); }
.why-media { position: relative; }
.why-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.why-media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(216,184,119,.45); border-radius: var(--radius-lg); z-index: -1; }
.why-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; position: relative; z-index: 0; }

/* Attorneys */
.attorney-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.attorney-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.attorney-card .avatar-wrap { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); padding: 44px 0 36px; position: relative; }
.attorney-card .avatar-wrap::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center / 220px; opacity: .08; }
.avatar { width: 150px; height: 150px; margin: 0 auto; position: relative; z-index: 1; }
.avatar-sm { width: 110px; height: 110px; }
.attorney-card .card-body { padding: 30px 28px 34px; display: flex; flex-direction: column; flex: 1; }
.attorney-card h3 { margin-bottom: 4px; }
.attorney-card h3 a { color: inherit; text-decoration: none; }
.attorney-card h3 a:hover { color: var(--gold-dark); }
.attorney-role { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.attorney-card p { font-size: .95rem; }
.attorney-card .card-actions { margin-top: auto; padding-top: 10px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tag-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tag-list li { font-size: .75rem; background: var(--ivory); border: 1px solid var(--line); color: var(--text); padding: 4px 10px; border-radius: 999px; }
.team-card { text-align: center; padding: 32px 24px; }
.team-card .avatar { margin-bottom: 18px; }
.team-card h4 { margin-bottom: 4px; font-family: var(--font-serif); font-size: 1.2rem; }
.team-card p { font-size: .9rem; margin: 0; }
.team-group + .team-group { margin-top: 64px; }
.team-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.team-group-head h3 { margin: 0; }
.team-group-head p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; gap: 18px; }
.testimonial .quote-mark { font-family: var(--font-serif); font-size: 4.2rem; line-height: .8; height: 38px; color: var(--gold); display: block; }
.testimonial blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-style: italic; }
.testimonial figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.testimonial figcaption strong { display: block; font-size: .95rem; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Insights */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-media .sample-tag { position: absolute; top: 14px; left: 14px; }
.post-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.post-meta .date { white-space: nowrap; color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.post-card h3 { font-size: 1.3rem; }
.post-card .post-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Results */
.result-card { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--gold); }
.result-card .result-cat { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.result-card h3 { margin-top: 6px; }
.result-outcome { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.result-outcome strong { color: var(--navy); }
.disclaimer-box {
  display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 24px; font-size: .95rem; color: var(--text);
}
.disclaimer-box svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.disclaimer-box p { margin: 0; }

/* Practice area title (feature cards) */
.pa-title { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.pa-title .icon-badge { margin: 0; background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.pa-title h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* Bio pages */
.bio-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.bio-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center / 260px; opacity: .06; }
.bio-hero-inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; padding: 72px 24px 80px; }
.bio-hero .avatar { width: 220px; height: 220px; }
.bio-hero h1 { color: var(--white); font-weight: 500; margin-bottom: 8px; }
.bio-hero .attorney-role { color: var(--gold-light); font-size: .85rem; margin-bottom: 20px; }
.bio-hero p.lead { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 640px; }
.bio-contact-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 26px; font-size: .92rem; color: rgba(255,255,255,.8); }
.bio-contact-row span { display: inline-flex; gap: 8px; align-items: center; }
.bio-contact-row svg { width: 16px; height: 16px; color: var(--gold-light); }
.bio-layout { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.bio-main h2 { font-size: 1.7rem; margin-top: 8px; }
.bio-main h2:not(:first-child) { margin-top: 48px; }
.bio-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.aside-card h3 { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; }
.aside-card.navy { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.82); }
.aside-card.navy h3 { color: var(--gold-light); }
.aside-card.navy p { font-size: .95rem; }
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cred-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cred-list li:first-child { padding-top: 0; }
.cred-list .label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.focus-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.focus-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; transition: border-color .25s, box-shadow .25s, transform .25s; }
.focus-list a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--navy); }
.focus-list svg { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; }
.other-partners { display: flex; flex-direction: column; gap: 14px; }
.other-partners a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.other-partners a:hover strong { color: var(--gold-dark); }
.other-partners .avatar { width: 52px; height: 52px; margin: 0; }
.other-partners span { display: block; font-size: .82rem; color: var(--muted); }

/* Careers */
.role-card { display: flex; flex-direction: column; }
.role-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.role-meta span { font-size: .78rem; font-weight: 500; background: var(--ivory); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--text); }
.role-card h4 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 18px 0 10px; }
.role-card ul { font-size: .95rem; color: var(--text); padding-left: 1.1em; }
.role-card ul li { margin-bottom: 6px; }
.role-card .btn { margin-top: auto; align-self: flex-start; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold-light); line-height: 1;
}
.steps h3 { font-size: 1.2rem; }
.steps p { font-size: .95rem; margin: 0; color: rgba(255,255,255,.75); }

/* Values */
.value-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0 0; }
.value-card h3 { display: flex; align-items: center; gap: 12px; }
.value-card h3 svg { width: 22px; height: 22px; color: var(--gold-dark); }
.mission-quote { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.4; color: var(--white); font-weight: 400; font-style: italic; margin: 0 auto; max-width: 900px; text-align: center; }
.mission-quote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: var(--gold-light); margin-bottom: 18px; font-style: normal; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.cta-band-bg { position: absolute; inset: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,21,48,.96), rgba(15,31,61,.78)); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 88px 24px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); margin-bottom: 10px; font-weight: 500; }
.cta-inner p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.1rem; max-width: 620px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.9rem; }
.form-intro { color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--error); margin-left: 2px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory);
  border: 1px solid #cfc6b3; border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f3d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b3a88f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(184,146,74,.3); }
.field [aria-invalid="true"] { border-color: var(--error); background: #fff8f8; }
.field-error { font-size: .84rem; color: var(--error); min-height: 0; display: none; }
.field-error.visible { display: block; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text); font-weight: 400; line-height: 1.55; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.form-note { font-size: .83rem; color: var(--muted); margin: 18px 0 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status-error { color: var(--error); font-size: .9rem; font-weight: 500; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.visible { display: block; animation: fadeUp .6s var(--ease) both; }
.form-success .success-icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: rgba(31,107,69,.1); color: var(--success); display: grid; place-items: center; }
.form-success .success-icon svg { width: 34px; height: 34px; }
.form-success h2 { font-size: 1.8rem; }
.form-success .btn { margin-top: 12px; }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list svg { width: 20px; height: 20px; color: var(--gold-light); flex-shrink: 0; margin-top: 4px; }
.info-list .label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.info-list .value { color: var(--white); font-size: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { color: var(--ink); font-weight: 500; }
.hours-table td { text-align: right; color: var(--muted); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper); }
.map-wrap iframe { display: block; width: 100%; height: 460px; border: 0; filter: grayscale(.35) contrast(1.02); }

/* ---------- Legal pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose li { margin-bottom: .5em; }
.legal-note { background: #fff4d6; border: 1px dashed #d9a441; color: #5c3b00; padding: 16px 20px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 40px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.toc h2 { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold-dark); text-decoration: underline; }
.legal-layout { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 100px 24px; background: radial-gradient(ellipse at top, var(--white), var(--ivory) 70%); }
.error-code { font-family: var(--font-serif); font-size: clamp(6rem, 16vw, 11rem); line-height: 1; color: var(--navy); margin: 0 0 8px; font-weight: 500; }
.error-code span { color: var(--gold); }
.error-page p { max-width: 520px; margin: 0 auto 30px; color: var(--muted); font-size: 1.1rem; }
.error-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr 1.05fr 1fr 1.15fr; gap: 40px; padding: 80px 24px 56px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--gold-light); }
.footer-brand p { margin: 22px 0 0; font-size: .93rem; max-width: 320px; }
.site-footer h2 { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .92rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-light); flex-shrink: 0; margin-top: 5px; }
.footer-legal { background: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)) 24px 0 / calc(100% - 48px) 1px no-repeat; padding: 32px 24px 36px; font-size: .84rem; color: rgba(255,255,255,.66); }
.footer-legal .adv-notice { display: inline-block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-size: .78rem; margin-bottom: 8px; }
.footer-legal p { margin: 0 0 10px; max-width: 980px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light); border: 1px solid rgba(216,184,119,.4); display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background-color .2s; cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy-700); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .1s; }
.js .reveal-delay-2 { transition-delay: .2s; }
.js .reveal-delay-3 { transition-delay: .3s; }
.hero-content > * { animation: fadeUp .9s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
.hero-content > *:nth-child(5) { animation-delay: .48s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .primary-nav { gap: 16px; }
  .primary-nav a:not(.btn) { padding: 8px 8px; font-size: .9rem; }
  .primary-nav a:not(.btn)::after { left: 8px; right: 8px; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 200;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 96px 28px 32px;
    background: var(--navy); box-shadow: var(--shadow-lg); overflow-y: auto;
    display: none;
  }
  .primary-nav.open { display: flex; animation: navIn .35s var(--ease) both; }
  @keyframes navIn { from { transform: translateX(100%); } to { transform: none; } }
  .primary-nav .nav-list { flex-direction: column; gap: 0; align-self: auto; }
  .nav-list > li { display: block; }
  .primary-nav a:not(.btn) { color: var(--white); font-size: 1.1rem; padding: 14px 4px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-serif); }
  .primary-nav a:not(.btn)::after { display: none; }
  .primary-nav a:not(.btn):hover, .primary-nav a[aria-current="page"] { color: var(--gold-light); }
  .primary-nav .nav-cta { width: 100%; }
  .nav-toggle { z-index: 210; }
  .nav-toggle[aria-expanded="true"] { background: transparent; border-color: rgba(255,255,255,.3); position: fixed; right: 24px; top: 19px; }
  .nav-toggle[aria-expanded="true"] .bars::before, .nav-toggle[aria-expanded="true"] .bars::after { background: var(--white); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,21,48,.55); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-backdrop.visible { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  body.nav-open .site-header { z-index: 250; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-60, .why-wrap, .contact-layout, .bio-layout, .legal-layout { grid-template-columns: 1fr; gap: 48px; }
  .split-media { max-width: 640px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-media .media-badge { right: 16px; }
  .why-media { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .bio-aside, .toc { position: static; }
  .legal-layout .toc { order: -1; }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; }
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .why-grid, .form-grid, .focus-list, .steps { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .topbar .topbar-left, .topbar .topbar-contact .t-email { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .18em; }
  .site-header.is-scrolled .header-inner { height: 64px; }
  .nav-toggle[aria-expanded="true"] { right: 20px; top: 12px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 64px 20px 72px; }
  .eyebrow { letter-spacing: .16em; font-size: .7rem; }
  .hero::before { background: linear-gradient(180deg, rgba(10,21,48,.82) 0%, rgba(10,21,48,.9) 100%); }
  .hero-actions .btn { width: 100%; }
  .hero-pillars { flex-direction: column; margin-top: 40px; }
  .page-hero-inner { padding: 60px 20px 64px; }
  .split-media::before { display: none; }
  .split-media .media-badge { position: relative; right: auto; bottom: auto; margin: -40px 16px 0; max-width: none; }
  .card { padding: 28px 24px; }
  .form-card { padding: 28px 22px; }
  .bio-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; padding: 56px 20px 60px; }
  .bio-hero .avatar { width: 160px; height: 160px; margin: 0 auto; }
  .bio-hero p.lead { margin-left: auto; margin-right: auto; }
  .bio-contact-row { justify-content: center; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 60px 20px 40px; }
  .footer-legal { padding: 28px 20px 32px; background-position: 20px 0; background-size: calc(100% - 40px) 1px; }
  .cta-inner { padding: 64px 20px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .map-wrap iframe { height: 340px; }
  .section-head { margin-bottom: 40px; }
}

/* =====================================================================
   Mega menu (Practice Areas)
   ===================================================================== */
.header-inner { position: relative; }
.primary-nav { align-self: stretch; }
.has-mega { gap: 0; }
.mega-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.mega-toggle svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.mega-toggle:hover { color: var(--gold-dark); }
.has-mega.open .mega-toggle svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: 24px; right: 24px; top: 100%; z-index: 120;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 1141px) {
  .has-mega:hover .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
  .has-mega.mega-suppress:hover .mega:not(:focus-within) { opacity: 0; visibility: hidden; }
}
.mega-inner { display: grid; grid-template-columns: 1fr 270px; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 30px 32px 32px; }
.mega-block + .mega-block { margin-top: 24px; }
.mega-cat { margin: 0 0 10px; }
.primary-nav .mega a:not(.btn) { padding: 0; font-size: .86rem; font-weight: 400; color: var(--text); white-space: normal; line-height: 1.35; display: inline-block; }
.primary-nav .mega a:not(.btn)::after { display: none; }
.primary-nav .mega a:not(.btn):hover { color: var(--gold-dark); text-decoration: underline; }
.primary-nav .mega .mega-cat a:not(.btn) { display: flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: 9px; border-bottom: 1px solid var(--line); width: 100%; }
.mega-cat svg { width: 17px; height: 17px; color: var(--gold-dark); flex-shrink: 0; }
.mega ul { display: block; }
.mega-block li { margin: 0 0 7px; }
.mega-feature { background: var(--navy); padding: 30px 26px 30px; display: flex; flex-direction: column; }
.primary-nav .mega .mega-cat-feature a:not(.btn) { color: var(--gold-light); border-bottom-color: var(--line-dark); }
.mega-cat-feature svg { color: var(--gold-light); }
.mega-feature li { margin: 0 0 4px; }
.primary-nav .mega-feature a:not(.btn) { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.88); font-size: .9rem; padding: 8px 0; }
.primary-nav .mega-feature a:not(.btn):hover { color: var(--gold-light); }
.mega-feature li svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }
.mega-all { margin-top: auto; align-self: flex-start; }
.mega-all svg { width: 15px; height: 15px; }

@media (max-width: 1240px) {
  .mega-cols { gap: 22px; padding: 26px 24px 28px; }
  .mega-inner { grid-template-columns: 1fr 240px; }
}
@media (max-width: 1140px) {
  .has-mega { display: grid !important; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line-dark); }
  .has-mega > a:not(.btn) { border-bottom: 0 !important; }
  .mega-toggle { width: 44px; height: 44px; margin: 0; color: var(--white); border: 1px solid var(--line-dark); }
  .mega-toggle:hover { color: var(--gold-light); }
  .mega { grid-column: 1 / -1; position: static; display: none; opacity: 1; visibility: visible; transform: none; max-height: none; overflow: visible;
    background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 14px; }
  .has-mega.open .mega { display: block; }
  .mega-inner { display: block; }
  .mega-cols { display: block; padding: 0; }
  .mega-block + .mega-block { margin-top: 0; }
  .mega-block ul { display: none; }
  .mega-cat { margin: 0; }
  .primary-nav .mega .mega-cat a:not(.btn) { color: rgba(255,255,255,.85); border-bottom: 0; padding: 10px 0 10px 4px; font-size: .74rem; }
  .primary-nav .mega .mega-cat a:not(.btn):hover { color: var(--gold-light); }
  .mega-cat svg { color: var(--gold-light); }
  .mega-feature { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 16px 16px 18px; margin-top: 10px; }
  .primary-nav .mega-feature a:not(.btn) { font-family: var(--font-sans); font-size: .92rem; border-bottom: 0; padding: 7px 0; }
  .mega-all { margin-top: 12px; }
}

/* =====================================================================
   Home: Client services band + category tiles
   ===================================================================== */
.services-band { background: var(--white); border-top: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 3px solid var(--gold); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.service-card:hover .icon-badge { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.service-eyebrow { font-size: .72rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark) !important; margin: 0 0 8px; }
.service-card h3 { font-size: 1.3rem; }
.service-contact { font-size: .85rem !important; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.service-card .link-arrow { margin-top: 12px; }
.cat-tile { display: flex; flex-direction: column; }
.cat-tile h3 { font-size: 1.25rem; }
.cat-tile h3 a { color: var(--ink); text-decoration: none; }
.cat-tile h3 a:hover { color: var(--gold-dark); }
.cat-tile > p { font-size: .93rem; }
.cat-links { list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; }
.cat-links li { padding: 6px 0; border-top: 1px solid var(--line); }
.cat-links a { color: var(--text); text-decoration: none; }
.cat-links a:hover { color: var(--gold-dark); text-decoration: underline; }
.cat-tile > .link-arrow { margin-top: auto; }
.cat-tile-all { background: var(--navy); border-color: var(--navy); text-decoration: none; color: rgba(255,255,255,.82); justify-content: center; }
.cat-tile-all h3 { color: var(--white); }
.cat-tile-all p { color: rgba(255,255,255,.75) !important; }
.cat-tile-all .icon-badge { background: rgba(216,184,119,.14); border-color: rgba(216,184,119,.4); color: var(--gold-light); }
.cat-tile-all .link-arrow { color: var(--gold-light); margin-top: 8px; }
.cat-tile-all:hover { background: var(--navy-700); color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }

/* =====================================================================
   Practice areas directory
   ===================================================================== */
.pa-toolbar { position: sticky; top: 72px; z-index: 60; background: rgba(250,247,240,.97); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15,31,61,.06); padding: 18px 0 14px; }
.pa-toolbar .container { display: flex; flex-direction: column; gap: 12px; }
.pa-search { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.pa-search label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.pa-search-field { position: relative; flex: 1 1 320px; max-width: 520px; }
.pa-search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.pa-search-field input { width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: var(--white); border: 1px solid #cfc6b3; border-radius: 999px; padding: 11px 18px 11px 42px; }
.pa-search-field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(184,146,74,.3); }
.pa-filter-status { margin: 0; font-size: .88rem; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 13px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.chip svg { width: 15px; height: 15px; color: var(--gold-dark); }
.chip:hover, .chip.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip:hover svg, .chip.active svg { color: var(--gold-light); }
.chip-count { font-size: .72rem; font-weight: 700; background: var(--ivory); color: var(--navy); border-radius: 999px; padding: 1px 7px; }
.chip.is-empty { opacity: .45; }
.pa-empty { padding-top: 64px; padding-bottom: 64px; text-align: center; font-size: 1.05rem; color: var(--muted); }
.cat-section { padding: 88px 0; scroll-margin-top: calc(var(--header-h) + 120px); }
.cat-section[hidden] { display: none; }
.cat-head { display: flex; align-items: flex-start; gap: 20px; max-width: 820px; margin-bottom: 40px; }
.cat-head .icon-badge { margin: 0; background: var(--navy); color: var(--gold-light); border-color: var(--navy); flex-shrink: 0; }
.cat-head h2 { margin-bottom: 8px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.cat-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.area-card { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 130px); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.area-card[hidden] { display: none; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area-card h3 { font-size: 1.25rem; }
.area-card h3 a { color: var(--ink); text-decoration: none; }
.area-card h3 a:hover { color: var(--gold-dark); }
.area-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,74,.3); }
.area-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.area-foot a:not(.btn):not(.link-arrow) { font-weight: 600; color: var(--navy); }
.area-card-feature .pa-title { margin-bottom: 16px; }
.area-card-feature .pa-title h3 { margin: 0; font-size: 1.45rem; }
.area-card-feature .check-list li { font-size: .95rem; margin-bottom: 8px; color: var(--text); }
.cat-feature .cat-head h2 { color: var(--white); }
.cat-feature .cat-head p { color: rgba(255,255,255,.75); }
.cat-feature .cat-head .icon-badge { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.cat-feature .card { color: var(--text); }
.cat-feature .card h3 a { color: var(--ink); }
.cat-feature .card .check-list li::before { background-color: rgba(184,146,74,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d5f26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* =====================================================================
   Practice area / service detail pages
   ===================================================================== */
.detail-notes { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.callout { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--radius-lg); padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--ivory); }
.callout > svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold-dark); margin-top: 2px; }
.callout h3 { font-family: var(--font-sans); font-size: .98rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.callout p { margin: 0; font-size: .95rem; color: var(--text); }
.callout-warning { background: #fff7e6; border-color: #ecd3a0; border-left-color: #b7791f; }
.callout-warning > svg { color: #9a5b0b; }
.contact-card .contact-person { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 20px; }
.contact-card .avatar { width: 60px; height: 60px; margin: 0; }
.contact-card .contact-person strong { display: block; color: var(--white); font-size: 1.05rem; }
.contact-card .contact-person span span { display: block; font-size: .8rem; color: var(--gold-light); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.contact-card .contact-person:hover strong { color: var(--gold-light); }
.glance-list { margin: 0; }
.glance-list li { font-size: .93rem; margin-bottom: 10px; }
.glance-list li:last-child { margin-bottom: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li + li { border-top: 1px solid var(--line); }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.related-list a:hover { color: var(--gold-dark); }
.related-list svg { width: 19px; height: 19px; color: var(--gold-dark); flex-shrink: 0; }
.help-list { columns: 2; column-gap: 56px; margin: 0; }
.help-list li { break-inside: avoid; margin-bottom: 16px; color: var(--text); }
.help-list li strong { color: var(--ink); }
.audience-card .icon-badge { margin-bottom: 18px; }
.audience-card h3 { font-size: 1.2rem; }
.audience-simple { display: flex; gap: 14px; align-items: flex-start; }
.audience-simple .aud-check { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.audience-simple p { color: var(--text) !important; font-size: 1rem !important; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-sans); font-weight: 400; font-size: 1.2rem; color: var(--gold-dark); transition: transform .25s var(--ease); }
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--navy-600); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { margin: 0; color: var(--text); }
.faq[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }

@media (max-width: 1140px) {
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pa-toolbar { top: 64px; padding: 12px 0 10px; }
  .pa-search label { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; margin-right: -20px; padding-right: 20px; }
  .cat-section { padding: 64px 0; }
  .cat-head { gap: 16px; }
  .cat-head .icon-badge { width: 48px; height: 48px; }
  .help-list { columns: 1; }
  .faq summary { font-size: 1.05rem; padding: 18px 52px 18px 20px; }
  .faq-body { padding: 0 20px 20px; }
  .footer-main { grid-template-columns: 1fr; }
}
.mega-note { font-size: .84rem; line-height: 1.55; color: rgba(255,255,255,.7); margin: 0 0 14px; }
@media (max-width: 1140px) { .mega-note { display: none; } }
.area-foot { font-size: .8rem; gap: 8px 10px; flex-wrap: nowrap; }
.area-foot > span { min-width: 0; }
.area-foot .link-arrow { font-size: .88rem; white-space: nowrap; flex-shrink: 0; }
.area-card-feature .area-foot { flex-wrap: wrap; font-size: .86rem; }
@media (max-width: 720px) {
  .cat-head { flex-direction: column; gap: 14px; }
  .area-card:not(.area-card-feature) .icon-badge { display: none; }
  .area-card:not(.area-card-feature) { padding: 24px 22px; }
  .grid-3 > .area-card + .area-card { margin-top: 0; }
}
.bio-main .focus-group { font-size: 1.15rem; margin: 26px 0 12px; }

/* Contact form: messages for submissions without JavaScript (shown via contact.html?sent=1#form-sent / ?error=1#form-error) */
.form-flash { display: none; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; font-size: .95rem; border: 1px solid; }
.form-flash:target { display: flex; }
.form-flash svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.form-flash p { margin: 0; }
.form-flash-ok { background: rgba(31,107,69,.08); border-color: rgba(31,107,69,.35); color: #1f4d36; }
.form-flash-ok svg { color: var(--success); }
.form-flash-error { background: #fff8f8; border-color: #e5b4b4; color: #6b1f1f; }
.form-flash-error svg { color: var(--error); }
.form-status-error a { color: inherit; font-weight: 600; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-contact a, .info-list a { word-break: break-word; }
.info-list .value a { color: var(--white); }
.info-list .value a:hover { color: var(--gold-light); }
.form-actions button[disabled] { opacity: .7; cursor: progress; }
.form-flash { scroll-margin-top: calc(var(--header-h) + 24px); }
