/* ==========================================================================
   Wordsmith Law — Design System
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 380 800;
  font-display: swap;
  src: url('inter-variable.woff2') format('woff2-variations'), url('inter-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 380 800;
  font-display: swap;
  src: url('source-serif-4-variable.woff2') format('woff2-variations'), url('source-serif-4-variable.woff2') format('woff2');
}

:root {
  /* Brand palette — derived from the Wordsmith Law mark */
  --brand-blue: #3E5D93;
  --brand-blue-dark: #1F3454;
  --brand-blue-deeper: #172943;
  --brand-blue-tint: #EEF2F9;
  --brand-gold: #A17A35;
  --brand-gold-dark: #7E5F28;
  --brand-gold-tint: #F6EFDF;

  --ink: #1B2130;
  --ink-soft: #4C5568;
  --ink-faint: #7C8494;
  --paper: #FFFFFF;
  --paper-alt: #F6F5F1;
  --paper-deep: #EFEDE6;
  --border: #E2E0D8;
  --border-soft: #ECEAE2;

  --success: #2E7D4F;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 41, 67, 0.06), 0 1px 1px rgba(23, 41, 67, 0.04);
  --shadow-md: 0 8px 24px rgba(23, 41, 67, 0.10);
  --shadow-lg: 0 20px 48px rgba(23, 41, 67, 0.16);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.18;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 650; }
address { font-style: normal; }
button { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 999;
  background: var(--brand-blue-dark); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm); transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--brand-gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.section { padding: clamp(3rem, 2.2rem + 3.5vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 1.6rem + 2vw, 3.5rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-deep { background: var(--brand-blue-deeper); color: rgba(255,255,255,0.86); }
.section-deep h2, .section-deep h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 0 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { font-size: 1.12rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin: 0 0 0.9em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-gold);
  display: inline-block;
}
.section-deep .eyebrow { color: #D9C089; }
.section-deep .eyebrow::before { background: #D9C089; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 620;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-blue-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: var(--brand-gold); color: #fff; }
.btn-gold:hover { background: var(--brand-gold-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(27,33,48,0.22); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.section-deep .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.section-deep .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero .btn-outline { background: rgba(238,242,249,0.82); border-color: rgba(255,255,255,0.65); }
.btn-ghost { background: transparent; color: var(--brand-blue); padding: 0.4rem 0; border-radius: 0; font-weight: 650; }
.btn-ghost:hover { color: var(--brand-blue-dark); }
.btn-ghost::after { content: "→"; margin-left: 0.4em; transition: transform 0.15s ease; display: inline-block; }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.03rem; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.link-btn {
  background: none; border: none; padding: 0; color: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; font-size: inherit; font-family: inherit;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar {
  background: var(--brand-blue-deeper); color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-locations { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-locations span { white-space: nowrap; }
.topbar-cta { display: flex; align-items: center; gap: 1.25rem; }
.topbar-phone { font-weight: 650; letter-spacing: 0.01em; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { height: 42px; width: 42px; }
.brand-word { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; color: var(--ink); line-height: 1.1; }
.brand-word small { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-dark); margin-top: 0.2em; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-link-btn {
  display: flex; align-items: center; gap: 0.3em;
  padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  font-weight: 560; font-size: 0.94rem; color: var(--ink);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links > li > a:hover, .nav-links > li > button.nav-link-btn:hover,
.nav-links > li.active > a { color: var(--brand-blue); background: var(--brand-blue-tint); }
.nav-links > li > a[aria-current="page"] { color: var(--brand-blue); background: var(--brand-blue-tint); }

.nav-caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.15s ease; }
.has-dropdown[data-open="true"] .nav-caret { transform: rotate(225deg) translateY(2px); }

.dropdown-panel {
  position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 0.6rem; width: 300px;
  display: grid; gap: 0.15rem;
  opacity: 0; visibility: hidden; translate: 0 -6px;
  transition: opacity 0.15s ease, translate 0.15s ease, visibility 0.15s;
}
.has-dropdown[data-open="true"] .dropdown-panel { opacity: 1; visibility: visible; translate: 0 0; }
.dropdown-panel a { display: block; padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); color: var(--ink); font-size: 0.93rem; font-weight: 550; }
.dropdown-panel a:hover { background: var(--brand-blue-tint); color: var(--brand-blue); }
.dropdown-panel a span { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 0.79rem; color: var(--ink-faint); margin-top: 0.15em; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.5rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 980px) {
  .topbar-locations { display: none; }
  .nav-links-desktop { display: none; }
  .nav-cta .btn-outline, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
  background: #fff; overflow-y: auto; padding: 1.25rem 1.5rem 3rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--border-soft); }
.mobile-nav a, .mobile-nav .mobile-group-label { display: block; padding: 1rem 0.25rem; font-weight: 600; color: var(--ink); font-size: 1.03rem; }
.mobile-nav .mobile-sub { padding-left: 1rem; display: none; }
.mobile-nav .mobile-sub.open { display: block; }
.mobile-nav .mobile-sub a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); padding: 0.7rem 0.25rem; }
.mobile-nav .mobile-cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-group-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  background: var(--brand-blue-deeper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,32,54,0.35) 0%, rgba(17,28,48,0.55) 55%, rgba(15,24,42,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 3.5rem 0 4.5rem; max-width: 760px; }
.hero .eyebrow { color: #E8CE9C; }
.hero .eyebrow::before { background: #E8CE9C; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.hero .lede { font-size: 1.18rem; color: rgba(255,255,255,0.88); max-width: 640px; }

.page-hero {
  position: relative; color: #fff; min-height: 46vh; display: flex; align-items: flex-end;
  background: var(--brand-blue-deeper); overflow: hidden;
}
.page-hero .hero-content { padding: 2.75rem 0 3rem; max-width: 780px; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.page-hero .eyebrow { color: #E8CE9C; }
.page-hero .eyebrow::before { background: #E8CE9C; }
.page-hero .lede { font-size: 1.08rem; color: rgba(255,255,255,0.88); max-width: 680px; }

.breadcrumbs { position: relative; z-index: 1; font-size: 0.85rem; margin-bottom: 1.1rem; }
.breadcrumbs a { color: rgba(255,255,255,0.75); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-hidden] { margin: 0 0.5em; color: rgba(255,255,255,0.5); }
.breadcrumbs .current { color: #fff; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.tag-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tag-grid > * { flex: 0 1 260px; }
@media (max-width: 640px) { .tag-grid > * { flex-basis: 100%; } }

.card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 1.9rem; box-shadow: var(--shadow-sm);
}
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(62,93,147,0.25); }
.card h3, .card h4 { margin-bottom: 0.5rem; }
.card .card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--brand-blue-tint); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.card .card-icon svg { width: 22px; height: 22px; }

.practice-card { display: flex; flex-direction: column; height: 100%; }
.practice-card .tag-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.practice-card .tag-list li {
  font-size: 0.91rem; color: var(--ink-soft); padding-left: 1.15em; position: relative;
}
.practice-card .tag-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--brand-gold);
}
.practice-card .card-foot { margin-top: auto; padding-top: 1.4rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 780px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; }
.stat .num { font-family: var(--font-serif); font-size: 2.35rem; font-weight: 700; color: var(--ink); display: block; line-height: 1; }
.section-deep .stat .num { color: #fff; }
.stat .label { font-size: 0.88rem; color: var(--ink-faint); margin-top: 0.5rem; }
.section-deep .stat .label { color: rgba(255,255,255,0.65); }

/* ---------- Testimonials ---------- */
.stars { color: var(--brand-gold); letter-spacing: 0.1em; font-size: 0.95rem; }
.review-card { display: flex; flex-direction: column; gap: 0.85rem; }
.review-card .stars { margin-bottom: 0.1rem; }
.review-card blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.06rem; color: var(--ink); line-height: 1.55; }
.review-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--ink-faint); margin-top: auto; padding-top: 0.5rem; }

/* ---------- Offices ---------- */
.office-card { display: flex; flex-direction: column; gap: 1rem; }
.office-card .office-flag { display: flex; align-items: center; gap: 0.6rem; }
.office-card .office-flag img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }
.office-card address { color: var(--ink-soft); line-height: 1.6; }
.office-card .office-note { font-size: 0.87rem; color: var(--ink-faint); }

/* ---------- Callout ---------- */
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue-deeper));
  color: #fff; padding: 3rem clamp(1.75rem, 2vw, 3.5rem); border-radius: var(--radius-lg);
}
.callout h2 { color: #fff; margin-bottom: 0.4rem; }
.callout p { color: rgba(255,255,255,0.82); max-width: 46ch; }
.callout-text { flex: 1 1 380px; }

/* ---------- Table (billing / compliance) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border-soft); }
thead th { background: var(--paper-alt); font-family: var(--font-sans); font-weight: 650; color: var(--ink); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0.1rem; font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink); font-weight: 650;
}
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--ink-soft); top: 50%; left: 50%; }
.faq-q .plus::before { width: 10px; height: 1.6px; transform: translate(-50%,-50%); }
.faq-q .plus::after { width: 1.6px; height: 10px; transform: translate(-50%,-50%); transition: transform 0.15s ease; }
.faq-item[data-open="true"] .plus::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.22s ease; }
.faq-a-inner { padding: 0 0.1rem 1.4rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.9rem; font-weight: 650; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.98rem; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-blue); outline: none; box-shadow: 0 0 0 3px var(--brand-blue-tint);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 1rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-row input { margin-top: 0.3rem; }
.checkbox-row label { font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-blue-deeper); color: rgba(255,255,255,0.72); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.1rem; }
.footer-brand { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 6px; background: #fff; padding: 3px; }
.site-footer p { font-size: 0.9rem; line-height: 1.6; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; font-size: 0.9rem; }
.footer-grid a { color: rgba(255,255,255,0.72); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a, .footer-bottom button { color: rgba(255,255,255,0.72); }
.footer-legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: 0.75rem; } .mt-md { margin-top: 1.5rem; } .mt-lg { margin-top: 2.5rem; }
.text-soft { color: var(--ink-faint); }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 0.85rem; }
.gap-md { gap: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 3vw, 4rem); align-items: center; }
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse .two-col-media { order: 2; }
@media (max-width: 900px) { .two-col, .two-col.reverse { grid-template-columns: 1fr; } .two-col.reverse .two-col-media { order: 0; } }
.two-col-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.rounded-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.bio-photo {
  max-width: 380px; margin: 0 auto 2.5rem; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.bio-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg); box-shadow: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: var(--brand-blue-tint); color: var(--brand-blue-dark);
  font-size: 0.78rem; font-weight: 650; padding: 0.35rem 0.75rem; border-radius: 999px;
}
.badge-gold { background: var(--brand-gold-tint); color: var(--brand-gold-dark); }

.credential-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.credential-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; color: var(--ink-soft); }
.credential-list li svg { flex-shrink: 0; width: 19px; height: 19px; margin-top: 0.15em; color: var(--brand-gold); }

.divider { border: none; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }

/* ---------- Consent / CMP ---------- */
#consent-root { font-family: var(--font-sans); }
.consent-banner {
  position: fixed; left: 50%; bottom: 1rem; z-index: 999;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap;
  align-items: center;
}
.consent-banner[hidden] { display: none; }
.consent-banner-copy { flex: 1 1 340px; min-width: 0; }
.consent-title { font-family: var(--font-serif); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: 0 0 0.35em; }
.consent-banner-copy p:not(.consent-title) { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }
.consent-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; flex: 0 0 auto; }
.consent-overlay { position: fixed; inset: 0; background: rgba(23,29,42,0.55); z-index: 998; }
.consent-overlay[hidden] { display: none; }
.consent-dialog {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 999;
  width: min(560px, calc(100vw - 2rem)); max-height: min(88vh, 720px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.consent-dialog[hidden] { display: none; }
.consent-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--border-soft); }
.consent-dialog-head h2 { margin: 0; font-size: 1.25rem; }
.consent-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-faint); padding: 0.25rem; }
.consent-dialog-intro { padding: 1rem 1.6rem 0; font-size: 0.88rem; color: var(--ink-soft); }
.consent-dialog-body { padding: 0.5rem 1.6rem 1rem; display: grid; gap: 0.25rem; }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border-soft); }
.consent-row:last-child { border-bottom: none; }
.consent-row-copy strong { display: block; color: var(--ink); font-size: 0.96rem; margin-bottom: 0.3rem; }
.consent-row-copy p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.consent-row-copy .consent-meta { font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.4rem; }
.consent-dialog-foot { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; padding: 1.25rem 1.6rem 1.6rem; border-top: 1px solid var(--border-soft); }

.consent-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.consent-switch input { opacity: 0; width: 0; height: 0; }
.consent-switch-track { position: absolute; inset: 0; background: #D8DAE0; border-radius: 999px; transition: background 0.15s ease; cursor: pointer; }
.consent-switch-track::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.consent-switch input:checked + .consent-switch-track { background: var(--brand-blue); }
.consent-switch input:checked + .consent-switch-track::before { transform: translateX(18px); }
.consent-switch input:disabled + .consent-switch-track { background: var(--brand-blue); opacity: 0.55; cursor: not-allowed; }
.consent-switch input:focus-visible + .consent-switch-track { outline: 2.5px solid var(--brand-gold); outline-offset: 2px; }

@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-banner-actions { flex-direction: column; }
  .consent-banner-actions .btn { width: 100%; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, #consent-root, .hero-media, .btn-row { display: none !important; }
}
