/* ==========================================================================
   NN LEGAL — GLOBAL STYLESHEET
   Njoroge Ng'ang'a & Company Advocates

   Contents
   1.  Reset / normalise
   2.  Root variables
   3.  Base typography
   4.  Layout utilities
   5.  Global components (buttons, links, rules, eyebrow)
   6.  Header
   7.  Footer
   8.  Forms
   9.  Page heroes
   10. Practice components
   11. People components
   12. Insights components
   13. Utility / legal content (breadcrumb, TOC, accordion, disclaimer)
   14. Motion preferences
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET / NORMALISE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

/* --------------------------------------------------------------------------
   2. ROOT VARIABLES

   NN Legal Brand Colour System (refactored)
   ---------------------------------------------------------------
   Heritage Copper provides controlled emphasis: CTAs, active markers,
   editorial numbering and decorative rules. It is measurably too low
   contrast for text on light surfaces (2.34:1) so it is never used as
   copper-on-ivory text — Burnished Copper stands in for that role.
   Advocate Navy is the primary authority colour and default reading
   colour. Warm Ivory is the main editorial surface. Midnight Navy is
   reserved for the deepest surfaces (footer, mobile nav, the closing
   consultation CTA) to add depth without turning every dark section
   identical.
   -------------------------------------------------------------------------- */
:root {
  /* ---- raw brand tokens ---- */
  --nn-copper: #D8924A;
  --nn-copper-deep: #A65F2C;
  --nn-navy: #101B28;
  --nn-navy-midnight: #0B121A;

  --nn-ivory: #F7F3EC;
  --nn-porcelain: #FCFAF7;
  --nn-parchment: #E7DCCF;
  --nn-stone: #B8AA9B;
  --nn-slate: #5A6670;
  --nn-mist: #DCE3E8;

  --nn-success: #356B55;
  --nn-warning: #A96B25;
  --nn-error: #9E3F3F;
  --nn-info: #446A86;

  /* ---- semantic aliases — components consume these, never raw hex ---- */
  --color-bg: var(--nn-ivory);
  --color-surface: var(--nn-porcelain);
  --color-bg-alt: var(--nn-parchment);
  --color-bg-dark: var(--nn-navy);
  --color-bg-midnight: var(--nn-navy-midnight);

  --color-text: var(--nn-navy);
  --color-text-muted: var(--nn-slate);
  --color-text-on-dark: var(--nn-ivory);
  --color-text-on-dark-muted: rgba(247,243,236,0.78);
  --color-detail-on-dark: var(--nn-stone);

  /* Heritage Copper: decorative / non-text / dark-surface text only.
     Burnished Copper: the accessible choice for copper-as-text on
     light surfaces (4.42:1 — the strongest text contrast the approved
     copper family offers on Warm Ivory). */
  --color-accent: var(--nn-copper);
  --color-accent-strong: var(--nn-copper-deep);
  --color-on-accent: var(--nn-navy);
  --color-on-accent-strong: #FFFFFF;

  --color-border: var(--nn-parchment);
  --color-border-on-dark: rgba(247,243,236,0.14);

  --color-success: var(--nn-success);
  --color-warning: var(--nn-warning);
  --color-error: var(--nn-error);
  --color-info: var(--nn-info);

  --focus-ring: 0 0 0 3px rgba(216,146,74,0.32);

  /* photography — natural treatment, no colour hue-shift; legibility
     over photography comes from navy gradient scrims, not image filters */
  --photo-filter: grayscale(0.22) saturate(1.04) contrast(1.02);

  /* type */
  --font-display: 'Cinzel', 'Trajan Pro 3', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --container-max: 1280px;
  --container-wide: 1120px;
  --container-heading: 900px;
  --container-reading: 680px;
  --container-narrow: 620px;
  --header-height: 84px;
  --header-height-scrolled: 68px;

  /* spacing (8px derived) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-4xl: 96px;
  --space-5xl: 120px;
  --space-6xl: 160px;

  /* border / radius */
  --radius: 3px;
  --border-fine: 1px solid var(--color-border);
  --border-fine-dark: 1px solid var(--color-border-on-dark);

  /* motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-soft: cubic-bezier(.2,.6,.2,1);
  --dur-fast: 300ms;
  --dur-med: 450ms;
  --dur-slow: 650ms;
}

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

/* --------------------------------------------------------------------------
   3. BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
.t-display-xl { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6vw, 72px); line-height: 1.1; }
.t-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.14; }
.t-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.2; }
.t-h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 2.8vw, 34px); line-height: 1.28; }
.t-h4 { font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 2vw, 26px); line-height: 1.3; }
.t-h5 { font-family: var(--font-body); font-weight: 600; font-size: 22px; line-height: 1.36; }
.t-h6 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.44; }
.t-lead { font-family: var(--font-body); font-weight: 400; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--color-text-muted); }
.t-body-lg { font-size: 18px; line-height: 1.66; }
.t-body { font-size: 16px; line-height: 1.62; }
.t-small { font-size: 14px; line-height: 1.57; }

.eyebrow {
  display: inline-block;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-strong);
  margin-bottom: var(--space-md);
}
.eyebrow.on-dark { color: var(--color-accent); }

.text-muted { color: var(--color-text-muted); }
.on-dark .text-muted { color: var(--color-text-on-dark-muted); }

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .container { width: min(var(--container-max), calc(100% - 64px)); }
}
@media (min-width: 1024px) {
  .container { width: min(var(--container-max), calc(100% - 116px)); }
}
.container-wide { max-width: var(--container-wide); margin-inline: auto; }
.container-heading { max-width: var(--container-heading); }
.container-reading { max-width: var(--container-reading); margin-inline: auto; }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-5xl) 0; }
.section-tight { padding: var(--space-3xl) 0; }
.on-dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.on-alt { background: var(--color-bg-alt); }

.rule { height: 1px; background: var(--color-border); width: 100%; }
.rule.on-dark { background: var(--color-border-on-dark); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: none; }

.sr-only {
  position: absolute; 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: 12px; top: -60px; z-index: 1000;
  background: var(--color-bg-dark); color: var(--color-text-on-dark);
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   5. GLOBAL COMPONENTS — buttons, links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 16px 28px; border-radius: var(--radius);
  transition: all var(--dur-med) var(--ease);
  white-space: nowrap; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); border: 1px solid var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-strong); color: var(--color-on-accent-strong); border-color: var(--color-accent-strong); }
.btn-primary:focus-visible { box-shadow: var(--focus-ring); }
.btn-primary:disabled { background: var(--color-bg-alt); border-color: var(--color-bg-alt); color: var(--nn-stone); cursor: not-allowed; opacity: 1; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--color-bg-alt); color: var(--nn-stone); border-color: var(--color-bg-alt); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-text); }
.btn-ghost:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.btn-ghost.on-dark { color: var(--color-text-on-dark); border-color: var(--color-text-on-dark); }
.btn-ghost.on-dark:hover { background: var(--color-text-on-dark); color: var(--color-bg-dark); border-color: var(--color-text-on-dark); }
.btn svg { transition: transform var(--dur-med) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.link-underline {
  position: relative; display: inline-block; font-weight: 600; font-size: 15px; padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform var(--dur-med) var(--ease);
}
.link-underline:hover::after { transform-origin: left; transform: scaleX(0.35); }
.link-underline:hover { color: var(--color-accent-strong); }
.on-dark .link-underline:hover,
.cta-section .link-underline:hover,
.site-footer .link-underline:hover { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  padding: 26px 0; transition: padding var(--dur-med) var(--ease), background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.is-light-context {
  background: rgba(247,243,236,0.94); backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}
.site-header.scrolled .logo,
.site-header.scrolled .main-nav a,
.site-header.is-light-context .logo,
.site-header.is-light-context .main-nav a { color: var(--color-text); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: 0.02em; color: var(--color-text-on-dark); transition: color var(--dur-med) var(--ease); }
.logo small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-on-dark-muted); margin-top: 2px; }
.site-header.scrolled .logo small,
.site-header.is-light-context .logo small { color: var(--color-text-muted); }

.main-nav { display: flex; align-items: center; gap: var(--space-xl); }
.main-nav ul { display: flex; gap: var(--space-lg); }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--color-text-on-dark); position: relative; padding-bottom: 3px; transition: color var(--dur-med) var(--ease); }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width var(--dur-fast) var(--ease); }
.main-nav a:hover::after { width: 100%; }
.main-nav a[aria-current="page"]::after { width: 100%; background: var(--color-accent); }
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } .main-nav ul { display: flex; } }
@media (max-width: 1023px) { .main-nav > ul, .main-nav > .header-cta { display: none; } }
/* .main-nav a's colour rules (incl. the scrolled/light-context overrides
   above) would otherwise win on specificity against .btn-primary and put
   the wrong text colour on this button; these two rules restore it at
   matching-or-higher specificity so both the default and hover states
   stay correct in every header state. */
.site-header .main-nav a.header-cta { color: var(--color-on-accent); }
.site-header .main-nav a.header-cta:hover { color: var(--color-on-accent-strong); }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 26px; padding: 6px 0; }
.nav-toggle span { display: block; height: 1px; background: var(--color-text-on-dark); transition: background var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease); }
.site-header.scrolled .nav-toggle span,
.site-header.is-light-context .nav-toggle span { background: var(--color-text); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 300; background: var(--color-bg-midnight);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { font-family: var(--font-display); font-size: clamp(24px,6vw,32px); color: var(--color-text-on-dark); position: relative; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.mobile-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
.mobile-nav .btn-primary { margin-top: var(--space-md); }
.mobile-nav-close { position: absolute; top: 30px; right: 6%; color: var(--color-detail-on-dark); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; }

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-bg-midnight); color: var(--color-text-on-dark); padding-top: var(--space-4xl); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding-bottom: var(--space-3xl); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 0.7fr 0.7fr 0.7fr; gap: var(--space-lg); } }
.footer-brand .logo { color: var(--color-text-on-dark); }
.footer-brand p { color: var(--color-text-on-dark-muted); max-width: 380px; margin-top: var(--space-md); font-size: 15px; }
.footer-col h6 { color: var(--color-detail-on-dark); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-md); font-weight: 600; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a, .footer-col p { color: var(--color-text-on-dark-muted); font-size: 15px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding: var(--space-xl) 0; border-top: var(--border-fine-dark); font-size: 13px; color: var(--color-detail-on-dark); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.footer-legal a:hover { color: var(--color-accent); }
.footer-disclaimer { padding: var(--space-xl) 0; border-top: var(--border-fine-dark); font-size: 13px; color: var(--color-detail-on-dark); max-width: 900px; }
.footer-mark { padding: var(--space-2xl) 0 var(--space-xl); font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 11vw, 130px); line-height: 0.9; color: var(--color-text-on-dark); border-top: var(--border-fine-dark); }

/* --------------------------------------------------------------------------
   8. FORMS
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 720px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .required { color: var(--color-accent-strong); }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--color-border); background: var(--color-surface);
  padding: 14px 16px; border-radius: var(--radius); font-size: 16px; color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--nn-stone); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); box-shadow: var(--focus-ring); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--color-text-muted); }
.field-error { font-size: 13px; color: var(--color-error); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field.has-error .field-error { display: block; }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option, .checkbox-option { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.radio-option input, .checkbox-option input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--color-accent); flex: none; }

.form-privacy-note {
  border: 1px solid var(--color-border); background: var(--color-bg-alt);
  padding: var(--space-md) var(--space-lg); border-radius: var(--radius);
  font-size: 14px; color: var(--color-text-muted); margin-bottom: var(--space-xl);
}
.form-privacy-note strong { color: var(--color-text); }

.form-status { display: none; align-items: center; gap: 10px; font-size: 14px; margin-top: var(--space-md); }
.form-status.is-visible { display: flex; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-border);
  border-top-color: var(--color-accent); animation: spin 0.8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   9. PAGE HEROES
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl); background: var(--color-bg-dark); color: var(--color-text-on-dark); overflow: hidden;
}
.page-hero.compact { padding-top: calc(var(--header-height) + var(--space-xl)); padding-bottom: var(--space-xl); }
.page-hero .bg-photo { position: absolute; inset: 0; z-index: 0; }
.page-hero .bg-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.page-hero .bg-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,18,26,0.94) 0%, rgba(11,18,26,0.8) 42%, rgba(11,18,26,0.42) 100%),
              linear-gradient(0deg, rgba(11,18,26,0.55), rgba(11,18,26,0.1) 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-copy { max-width: 780px; }
.page-hero-copy .t-lead { max-width: 620px; color: var(--color-text-on-dark-muted); margin-top: var(--space-md); }

.page-hero.light { background: var(--color-bg); color: var(--color-text); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--color-detail-on-dark); margin-bottom: var(--space-lg); }
.breadcrumb a { color: var(--color-text-on-dark-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { opacity: 0.7; }
.breadcrumb span:last-child:not(.sep) { color: var(--color-text-on-dark); }
.page-hero.light .breadcrumb { color: var(--nn-stone); }
.page-hero.light .breadcrumb a { color: var(--color-text-muted); }
.page-hero.light .breadcrumb a:hover { color: var(--color-accent-strong); }
.page-hero.light .breadcrumb span:last-child:not(.sep) { color: var(--color-text); }

/* --------------------------------------------------------------------------
   10. PRACTICE COMPONENTS
   -------------------------------------------------------------------------- */
.practice-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 960px) { .practice-layout { grid-template-columns: 1fr 1fr; gap: var(--space-4xl); align-items: start; } }
.practice-index { border-top: var(--border-fine); }
.practice-item { border-bottom: var(--border-fine); padding: var(--space-md) 0; cursor: pointer; display: flex; align-items: baseline; gap: var(--space-md); }
.practice-item-num { font-size: 13px; color: var(--color-text-muted); width: 28px; flex: none; padding-top: 6px; }
.practice-item-body { flex: 1; }
.practice-item-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px,2.4vw,28px); transition: color var(--dur-fast) var(--ease); }
.practice-item-title a { display: block; }
.practice-item-desc { max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease), margin var(--dur-fast) var(--ease); color: var(--color-text-muted); font-size: 15px; max-width: 520px; }
.practice-item.active .practice-item-title, .practice-item:hover .practice-item-title { color: var(--color-accent-strong); }
.practice-item.active .practice-item-desc { max-height: 140px; opacity: 1; margin-top: 10px; }
.practice-item-arrow { opacity: 0; transform: translateX(-6px); transition: all var(--dur-fast) var(--ease); flex: none; }
.practice-item:hover .practice-item-arrow, .practice-item.active .practice-item-arrow { opacity: 1; transform: none; }

.practice-visual { position: sticky; top: 140px; aspect-ratio: 4/5; overflow: hidden; border: var(--border-fine); display: none; }
@media (min-width: 960px) { .practice-visual { display: block; } }
.practice-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-slow) var(--ease); filter: var(--photo-filter); }
.practice-visual img.active { opacity: 1; }
.practice-visual-label { position: absolute; left: 0; bottom: 0; right: 0; padding: var(--space-lg); background: linear-gradient(0deg, rgba(16,27,40,0.8), transparent); color: var(--color-text-on-dark); font-family: var(--font-display); font-size: 20px; z-index: 2; }

.matters-list { columns: 1; column-gap: var(--space-xl); }
@media (min-width: 720px) { .matters-list.two-col { columns: 2; } }
.matters-list li { break-inside: avoid; padding: 12px 0; border-bottom: var(--border-fine); font-size: 16px; }
.matters-list li:first-child { padding-top: 0; }

.audience-row { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); padding: var(--space-lg) 0; border-top: var(--border-fine); }
@media (min-width: 780px) { .audience-row { grid-template-columns: 280px 1fr; align-items: baseline; } }
.audience-row:last-child { border-bottom: var(--border-fine); }
.audience-row-title { font-family: var(--font-display); font-size: clamp(20px,2vw,24px); }
.audience-row-desc { color: var(--color-text-muted); max-width: 640px; }

.related-people { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .related-people { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.related-person-card { border: var(--border-fine); padding: var(--space-md); display: flex; gap: var(--space-md); align-items: center; }
.related-person-photo { width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 50%; }
.related-person-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.related-person-name { font-weight: 600; font-size: 15px; }
.related-person-role { font-size: 13px; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   11. PEOPLE COMPONENTS
   -------------------------------------------------------------------------- */
.team-lead-card { position: relative; overflow: hidden; border: var(--border-fine); aspect-ratio: 3/3.6; }
.team-lead-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-soft); filter: var(--photo-filter); }
.team-lead-card:hover img { transform: scale(1.04); }
.team-lead-info { position: absolute; left: 0; bottom: 0; right: 0; padding: var(--space-lg) var(--space-lg) var(--space-md); background: linear-gradient(0deg, rgba(16,27,40,0.85), transparent 85%); color: var(--color-text-on-dark); }
.team-lead-info .name { font-family: var(--font-display); font-size: 26px; }
.team-lead-info .role { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nn-stone); margin-top: 4px; }

.team-card { position: relative; overflow: hidden; border: var(--border-fine); aspect-ratio: 3/3.7; }
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-soft); filter: var(--photo-filter); }
.team-card:hover img { transform: scale(1.05); }
.team-card-info { position: absolute; left: 0; bottom: 0; right: 0; padding: var(--space-md); background: linear-gradient(0deg, rgba(16,27,40,0.85), transparent 85%); color: var(--color-text-on-dark); }
.team-card-info .name { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.team-card-info .role { font-size: 12px; color: var(--nn-stone); margin-top: 2px; }

.bio-block { border-top: var(--border-fine); padding: var(--space-3xl) 0; display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 900px) { .bio-block { grid-template-columns: 0.8fr 1.2fr; } }
.bio-photo { aspect-ratio: 4/5; overflow: hidden; border: var(--border-fine); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.bio-name { font-family: var(--font-display); font-size: clamp(28px,3vw,38px); }
.bio-role { color: var(--color-accent-strong); font-weight: 600; font-size: 15px; margin-top: 6px; margin-bottom: var(--space-lg); }
.bio-columns { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); margin-top: var(--space-lg); }
@media (min-width: 640px) { .bio-columns { grid-template-columns: 1fr 1fr; } }
.bio-columns h6 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.bio-columns ul li { padding: 6px 0; font-size: 15px; border-bottom: var(--border-fine); }
.bio-columns ul li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   12. INSIGHTS COMPONENTS
   -------------------------------------------------------------------------- */
.insights-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-2xl); }
.filter-chip {
  border: 1px solid var(--color-border); border-radius: 999px; padding: 9px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--color-text); }
.filter-chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }

.insights-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 900px) { .insights-grid { grid-template-columns: 1.3fr 1fr; } }
.insight-card { border-top: var(--border-fine); padding-top: var(--space-md); display: block; }
.insight-featured { grid-row: span 2; }
.insight-photo { aspect-ratio: 4/2.7; overflow: hidden; margin-bottom: var(--space-md); border: var(--border-fine); }
.insight-featured .insight-photo { aspect-ratio: 4/3; }
.insight-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-soft); filter: var(--photo-filter); }
.insight-card:hover .insight-photo img { transform: scale(1.05); }
.insight-cat { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-strong); font-weight: 600; margin-bottom: 8px; }
.insight-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px,2.2vw,26px); line-height: 1.3; margin-bottom: 8px; }
.insight-excerpt { color: var(--color-text-muted); font-size: 15px; max-width: 46ch; }
.insight-meta { font-size: 13px; color: var(--color-text-muted); margin-top: 10px; }

.article-body { max-width: var(--container-reading); margin-inline: auto; }
.article-body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px,3vw,32px); margin: var(--space-2xl) 0 var(--space-md); }
.article-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; margin: var(--space-xl) 0 var(--space-sm); }
.article-body p { color: var(--color-text-muted); margin-bottom: var(--space-md); font-size: 18px; line-height: 1.7; }
.article-body ul { margin: 0 0 var(--space-md); }
.article-body ul li { position: relative; padding-left: 22px; color: var(--color-text-muted); font-size: 18px; line-height: 1.7; margin-bottom: 8px; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: var(--color-accent); }
.pull-quote { border-left: 2px solid var(--color-accent); padding: var(--space-sm) 0 var(--space-sm) var(--space-lg); margin: var(--space-2xl) 0; font-family: var(--font-display); font-size: clamp(22px,2.4vw,28px); line-height: 1.4; }
.article-hero-photo { aspect-ratio: 16/8; overflow: hidden; border: var(--border-fine); margin-bottom: var(--space-2xl); }
.article-hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.article-meta-row { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; font-size: 14px; color: var(--color-text-muted); margin: var(--space-md) 0 var(--space-2xl); border-top: var(--border-fine); border-bottom: var(--border-fine); padding: var(--space-md) 0; }

/* --------------------------------------------------------------------------
   13. UTILITY / LEGAL CONTENT
   -------------------------------------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 980px) { .legal-layout { grid-template-columns: 260px 1fr; align-items: start; } }
.legal-toc { position: sticky; top: 130px; display: none; }
@media (min-width: 980px) { .legal-toc { display: block; } }
.legal-toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.legal-toc ol { display: flex; flex-direction: column; gap: 10px; counter-reset: toc; }
.legal-toc a { font-size: 14px; color: var(--color-text-muted); }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--color-accent-strong); }
.legal-content { max-width: 720px; }
.legal-content h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: var(--space-2xl) 0 var(--space-md); scroll-margin-top: 130px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text-muted); margin-bottom: var(--space-md); font-size: 17px; line-height: 1.7; }
.legal-content ul { margin: 0 0 var(--space-md) 0; }
.legal-content ul li { position: relative; padding-left: 20px; color: var(--color-text-muted); margin-bottom: 8px; font-size: 17px; }
.legal-content ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--color-accent); }
.legal-updated { font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--space-2xl); }
.placeholder-note { font-style: italic; color: var(--color-text-muted); background: var(--color-bg-alt); border: var(--border-fine); padding: 2px 8px; border-radius: var(--radius); font-size: 0.95em; }

.accordion-item { border-bottom: var(--border-fine); }
.accordion-item:first-child { border-top: var(--border-fine); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) 0; text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 18px;
}
.accordion-trigger .accordion-icon { flex: none; width: 18px; height: 18px; position: relative; }
.accordion-trigger .accordion-icon::before, .accordion-trigger .accordion-icon::after {
  content: ''; position: absolute; background: var(--color-text); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.accordion-trigger .accordion-icon::before { left: 0; top: 8px; width: 18px; height: 1px; }
.accordion-trigger .accordion-icon::after { left: 8px; top: 0; width: 1px; height: 18px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { opacity: 0; transform: rotate(90deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease); }
.accordion-panel-inner { padding-bottom: var(--space-lg); color: var(--color-text-muted); max-width: 640px; font-size: 16px; line-height: 1.65; }

.map-placeholder {
  aspect-ratio: 16/8; border: var(--border-fine); background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  color: var(--color-text-muted); text-align: center; padding: var(--space-lg);
}
.map-placeholder svg { opacity: 0.5; }

.error-hero { text-align: left; }
.error-code { font-family: var(--font-display); font-size: clamp(90px,18vw,220px); line-height: 0.9; color: var(--nn-stone); opacity: 0.55; }

/* --------------------------------------------------------------------------
   15. HOMEPAGE-EXCLUSIVE COMPONENTS
   These patterns are only used on index.html; kept in the shared file so
   there is a single source of truth for the whole design system.
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; background: var(--color-bg-dark); color: var(--color-text-on-dark); overflow: hidden; padding-top: 140px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,18,26,0.9) 0%, rgba(11,18,26,0.62) 46%, rgba(11,18,26,0.18) 100%),
              linear-gradient(180deg, rgba(11,18,26,0.1), rgba(11,18,26,0.78));
}
.hero-photo { position: absolute; top: 0; right: 0; height: 100%; width: 46%; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter) brightness(0.8); transform: scale(1.06); transition: transform 6s var(--ease-soft); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-bg-dark) 0%, rgba(11,18,26,0) 30%); }
.hero.loaded .hero-photo img { transform: scale(1); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: var(--space-5xl); }
.hero-copy { max-width: 760px; }
.hero-copy .eyebrow { color: var(--color-accent); }
.hero-copy .t-lead { max-width: 600px; color: var(--color-text-on-dark-muted); margin-bottom: var(--space-sm); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: var(--space-lg) 0 var(--space-2xl); }
.hero-foot { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; color: var(--color-detail-on-dark); border-top: var(--border-fine-dark); padding-top: var(--space-lg); max-width: 640px; }
.hero-foot .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); flex: none; }
@media (min-width: 1024px) { .hero-photo { width: 38%; } }

.client-list { border-bottom: var(--border-fine); }
.client-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); padding: var(--space-lg) 0; border-top: var(--border-fine); transition: padding-left var(--dur-slow) var(--ease); }
.client-row-index { font-size: 13px; color: var(--color-text-muted); width: 32px; flex: none; }
.client-row-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px,3.6vw,42px); transition: color var(--dur-med) var(--ease); flex: 1; }
.client-row-desc { font-size: 15px; color: var(--color-text-muted); max-width: 260px; text-align: right; opacity: 0; transform: translateX(10px); transition: all var(--dur-med) var(--ease); display: none; }
@media (min-width: 900px) { .client-row-desc { display: block; } }
.client-row:hover { padding-left: var(--space-md); }
.client-row:hover .client-row-name { color: var(--color-accent-strong); }
.client-row:hover .client-row-desc { opacity: 1; transform: none; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-4xl); align-items: start; } }
.about-head { position: sticky; top: 140px; }
.about-body p { margin-bottom: var(--space-lg); color: var(--color-text-muted); }
.about-photo { margin-top: var(--space-xl); aspect-ratio: 4/3; overflow: hidden; border: var(--border-fine); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }

.principles-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: var(--border-fine-dark); }
@media (min-width: 800px) { .principles-grid { grid-template-columns: 1fr 1fr; } }
.principle { padding: var(--space-xl) 0; border-bottom: var(--border-fine-dark); display: grid; grid-template-columns: 60px 1fr; gap: var(--space-md); }
@media (min-width: 800px) { .principle { padding: var(--space-2xl) var(--space-lg); } .principle:nth-child(odd) { border-right: var(--border-fine-dark); } }
.principle-num { font-family: var(--font-display); font-size: 20px; color: var(--color-accent); }
.principle p { color: var(--color-text-on-dark-muted); max-width: 440px; }

.process-list { border-top: var(--border-fine); }
.process-item { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-md); padding: var(--space-xl) 0; border-bottom: var(--border-fine); }
@media (min-width: 800px) { .process-item { grid-template-columns: 110px 1fr 1fr; align-items: baseline; } }
.process-item-num { font-family: var(--font-display); font-size: 15px; color: var(--color-accent-strong); }
.process-item-title { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.process-item-desc { color: var(--color-text-muted); max-width: 480px; margin-top: 4px; }
@media (min-width: 800px) { .process-item-desc { margin-top: 0; } }

.team-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 900px) { .team-grid { grid-template-columns: 1.2fr 0.8fr; } }
.team-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

.cta-section { position: relative; background: var(--color-bg-midnight); color: var(--color-text-on-dark); overflow: hidden; }
.cta-section .bg-photo { position: absolute; inset: 0; z-index: 0; }
.cta-section .bg-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter) brightness(0.5); }
.cta-section .bg-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,18,26,0.92), rgba(11,18,26,0.72)); }
.cta-section .container { position: relative; z-index: 1; }
.cta-inner { max-width: 820px; }
.cta-inner p { color: var(--color-text-on-dark-muted); margin: var(--space-md) 0 var(--space-xl); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.cta-phone { font-family: var(--font-display); font-size: 20px; color: var(--color-text-on-dark); }
.cta-disclaimer { font-size: 13px; color: var(--color-detail-on-dark); max-width: 600px; border-top: var(--border-fine-dark); padding-top: var(--space-md); }

/* --------------------------------------------------------------------------
   14. MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .team-card:hover img, .team-lead-card:hover img, .insight-card:hover .insight-photo img { transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   15. ADDITIONALS / CUSTOM STYLES
   -------------------------------------------------------------------------- */

   #highlight-text {
    color: var(--color-accent);
   }