/* ==========================================================================
   The Mooresville Group — Design System
   Sophisticated lower-middle-market advisory. Operator-led, discreet, premium.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy: #0c1c2c;
  --navy-900: #081422;
  --navy-800: #0f2436;
  --navy-700: #16324a;
  --charcoal: #1b2430;
  --steel: #5c6b7a;
  --steel-light: #8b98a6;
  --line: #dfe3e8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --warm-white: #f7f5f0;
  --paper: #ffffff;
  --ink: #16202b;
  --ink-soft: #3c4a58;
  --brass: #b0864f;
  --brass-light: #c8a35b;
  --brass-soft: rgba(176, 134, 79, 0.14);
  --green: #2b4a3e;

  /* Typography */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.75vw, 4.1rem);
  --step-5: clamp(2.9rem, 2rem + 4.4vw, 5.4rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.35rem;
  --space-lg: 2.25rem;
  --space-xl: 3.75rem;
  --space-2xl: 6rem;
  --space-3xl: 8.5rem;

  --container: 1200px;
  --container-narrow: 820px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 44, 0.06);
  --shadow-md: 0 18px 45px -22px rgba(12, 28, 44, 0.35);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--brass); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
h4 { font-size: var(--step-0); font-weight: 600; letter-spacing: 0; }
p { max-width: 68ch; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); font-weight: 400; }
.muted { color: var(--steel); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--dark { background: var(--navy); color: rgba(255,255,255,0.82); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--charcoal { background: var(--charcoal); color: rgba(255,255,255,0.82); }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3, .section--charcoal h4 { color: #fff; }
.section--paper { background: var(--paper); }
.section--warm { background: var(--warm-white); }
.section-head { max-width: 60ch; margin-bottom: var(--space-xl); }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: var(--space-lg); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn--primary:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn--dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--dark:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(12,28,44,0.03); }
.section--dark .btn--ghost, .section--charcoal .btn--ghost,
.hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.section--dark .btn--ghost:hover, .section--charcoal .btn--ghost:hover,
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.section--dark .textlink, .section--charcoal .textlink { color: #fff; }
.textlink:hover { gap: 0.7rem; color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header.on-dark { background: rgba(9, 20, 34, 0.55); }
.site-header.on-dark.scrolled { background: rgba(9, 20, 34, 0.92); border-bottom-color: rgba(255,255,255,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand svg { height: 40px; width: auto; }
.on-dark .brand .lm-dark { fill: #fff; }
.on-dark .brand .lm-sub { fill: rgba(255,255,255,0.7); }
.brand .lm-word { color: var(--navy); }
.on-dark .brand .lm-word, .mobile-nav .brand .lm-word, .footer-brand .lm-word { color: #fff; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.85rem); }
.nav a, .services-trigger {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.services-trigger { border: 0; background: none; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; }
.menu-chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease); }
.has-sub.open .menu-chevron { transform: translateY(1px) rotate(225deg); }
.on-dark .nav a, .on-dark .services-trigger { color: rgba(255,255,255,0.78); }
.nav a::after, .services-trigger::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--brass); transition: width 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"], .services-trigger:hover, .services-trigger.is-current { color: var(--navy); }
.on-dark .nav a:hover, .on-dark .nav a[aria-current="page"], .on-dark .services-trigger:hover, .on-dark .services-trigger.is-current { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after, .services-trigger:hover::after, .services-trigger.is-current::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: var(--space-sm); }

/* Dropdown */
.has-sub { position: relative; }
.submenu {
  position: absolute; z-index: 10; top: calc(100% + 10px); left: -0.75rem; transform: translateY(6px);
  background: rgba(9,20,34,.98); border: 1px solid rgba(255,255,255,.12); border-top: 2px solid var(--brass); border-radius: var(--radius);
  box-shadow: 0 20px 45px -18px rgba(0,0,0,.65); padding: 0.45rem; width: 290px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.has-sub.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 0.72rem 0.8rem; border-radius: 3px; color: #fff; }
.submenu a + a { border-top: 1px solid rgba(255,255,255,.1); }
.submenu a strong { display: block; font-family: var(--font-sans); font-size: 0.9rem; }
.submenu a span { display: block; margin-top: 0.12rem; font-size: 0.76rem; line-height: 1.35; color: rgba(255,255,255,.58); font-weight: 400; white-space: normal; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--brass-soft); color: #fff; }
.on-dark .nav .submenu a { color: #fff; }
.on-dark .nav .submenu a:hover { color: #fff; }
.on-dark .nav .submenu a span { color: rgba(255,255,255,.58); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; color: var(--navy); }
.on-dark .nav-toggle { color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1000px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--navy);
  color: #fff; padding: 1.15rem clamp(1.15rem, 4vw, 2.5rem); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-nav-top .brand svg .lm-dark { fill: #fff; }
.mobile-nav-top .brand svg .lm-sub { fill: rgba(255,255,255,0.7); }
.mobile-nav nav { display: flex; flex-direction: column; margin-top: var(--space-lg); gap: 0.25rem; }
.mobile-nav nav a { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.09); }
.mobile-nav nav a.sub { font-family: var(--font-sans); font-size: 1rem; padding-left: 1rem; color: rgba(255,255,255,0.75); }
.mobile-nav .btn { margin-top: var(--space-lg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  margin-top: calc(-1 * var(--header-h));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(176,134,79,0.16), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(22,50,74,0.7), transparent 60%);
}
.hero .lines { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .hero-sub { font-size: var(--step-1); color: #fff; font-family: var(--font-serif); max-width: 26ch; margin-top: var(--space-md); font-weight: 400; }
.hero p.hero-lead { color: rgba(255,255,255,0.74); margin-top: var(--space-md); max-width: 52ch; }
.hero .btn-row { margin-top: var(--space-lg); }
.hero-inner { max-width: 780px; }

.page-hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  margin-top: calc(-1 * var(--header-h));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 120% at 90% 0%, rgba(176,134,79,0.14), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,0.76); margin-top: var(--space-md); }

/* Breadcrumb */
.crumbs { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-md); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,0.75); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,0.4); }

/* ---------- Credibility strip ---------- */
.cred-strip { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.07); }
.cred-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem; padding-block: 1.5rem; }
.cred-strip span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.62); display: inline-flex; align-items: center; gap: 0.7rem; }
.cred-strip span::before { content: ""; width: 5px; height: 5px; background: var(--brass); border-radius: 50%; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-lg); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .card-num { font-family: var(--font-serif); font-size: 0.9rem; color: var(--brass); letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.card h3 { margin-bottom: var(--space-sm); }
.card p { font-size: 0.98rem; color: var(--ink-soft); }
.card ul { list-style: none; padding: 0; margin: var(--space-md) 0; display: flex; flex-direction: column; gap: 0.5rem; }
.card ul li { font-size: 0.9rem; color: var(--steel); padding-left: 1.15rem; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 1px; background: var(--brass); }
.card .textlink { margin-top: auto; }
.card--dark { background: var(--navy-800); border-color: rgba(255,255,255,0.09); }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255,255,255,0.7); }
.card--dark ul li { color: rgba(255,255,255,0.6); }

.pillar-icon { width: 44px; height: 44px; margin-bottom: var(--space-md); color: var(--brass); }
.pillar-icon svg { width: 100%; height: 100%; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-lg); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-lg); border-top: 1px solid var(--line-dark); }
.section--paper .step, .section:not(.section--dark):not(.section--charcoal) .step { border-top-color: var(--line); }
.step .step-num { font-family: var(--font-serif); font-size: 2.4rem; color: var(--brass); line-height: 1; display: block; margin-bottom: var(--space-sm); }
.step h3 { font-size: var(--step-0); font-weight: 600; font-family: var(--font-sans); margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; }
.section--dark .step p, .section--charcoal .step p { color: rgba(255,255,255,0.68); }

/* ---------- Problem list ---------- */
.problem-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
@media (max-width: 700px) { .problem-list { grid-template-columns: 1fr; } }
.problem-list li {
  padding: var(--space-md) var(--space-md) var(--space-md) 2.4rem; position: relative;
  border-bottom: 1px solid var(--line-dark); font-size: 1.02rem; color: rgba(255,255,255,0.85);
}
.problem-list li::before {
  content: ""; position: absolute; left: var(--space-md); top: calc(var(--space-md) + 0.55em);
  width: 12px; height: 1px; background: var(--brass);
}
@media (min-width: 701px) { .problem-list li:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-right: var(--space-lg); } }

/* ---------- Situations / question list ---------- */
.q-list { list-style: none; padding: 0; display: grid; gap: 0; }
.q-list li {
  display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink);
}
.q-list li .qmark { font-family: var(--font-serif); color: var(--brass); font-size: 1.3rem; line-height: 1.2; flex-shrink: 0; }

/* ---------- Feature list (checks) ---------- */
.feat-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.feat-list li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.feat-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 6px;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg);
}
.section--dark .feat-list li, .section--charcoal .feat-list li { color: rgba(255,255,255,0.78); }
.cols-2.feat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem var(--space-lg); }
@media (max-width: 620px) { .cols-2.feat-wrap { grid-template-columns: 1fr; } }

/* ---------- Founder / portrait ---------- */
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: flex-end; justify-content: center;
}
.portrait .ph-label {
  position: absolute; inset: auto 0 0 0; padding: var(--space-md); font-size: 0.78rem;
  color: rgba(255,255,255,0.5); text-align: center; letter-spacing: 0.05em;
}
.portrait .ph-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.14; width: 45%; }
.portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- Situation blocks (Who We Help) ---------- */
.situation { border-top: 2px solid var(--navy); padding-top: var(--space-lg); }
.situation h3 { margin-bottom: var(--space-md); }
.situation .sit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md) var(--space-lg); margin-top: var(--space-md); }
@media (max-width: 700px) { .situation .sit-grid { grid-template-columns: 1fr; } }
.sit-block h4 { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.35rem; }
.sit-block p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.section--dark .accordion, .section--charcoal .accordion { border-top-color: var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line); }
.section--dark .acc-item, .section--charcoal .acc-item { border-bottom-color: var(--line-dark); }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: 0; padding: var(--space-md) 2.5rem var(--space-md) 0;
  font-family: var(--font-serif); font-size: var(--step-1); color: var(--navy); position: relative; line-height: 1.25;
}
.section--dark .acc-trigger, .section--charcoal .acc-trigger { color: #fff; }
.acc-trigger .acc-icon { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after { content: ""; position: absolute; background: var(--brass); }
.acc-trigger .acc-icon::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.acc-trigger .acc-icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); transition: opacity 0.3s var(--ease); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { opacity: 0; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.acc-panel-inner { padding: 0 0 var(--space-md); color: var(--ink-soft); }
.section--dark .acc-panel-inner, .section--charcoal .acc-panel-inner { color: rgba(255,255,255,0.72); }

/* ---------- Insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-xl); }
.filter-btn {
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 500; border-radius: 50px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.article-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.article-card:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card .thumb { aspect-ratio: 16/10; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); position: relative; display: flex; align-items: center; justify-content: center; }
.article-card .thumb .mono { opacity: 0.16; width: 34%; }
.article-card .thumb .cat-tag { position: absolute; top: var(--space-sm); left: var(--space-sm); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-light); background: rgba(8,20,34,0.7); padding: 0.35rem 0.7rem; border-radius: 3px; }
.article-card .a-body { padding: var(--space-md) var(--space-lg) var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: var(--step-1); margin-bottom: var(--space-sm); }
.article-card p { font-size: 0.94rem; color: var(--ink-soft); }
.article-card .a-meta { margin-top: auto; padding-top: var(--space-md); font-size: 0.8rem; color: var(--steel); }

/* ---------- Article body ---------- */
.article-body { font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); }
.article-body h2 { font-size: var(--step-2); margin: var(--space-xl) 0 var(--space-md); }
.article-body p { margin-bottom: var(--space-md); max-width: 70ch; }
.article-body ul { margin: 0 0 var(--space-md); padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article-body li { max-width: 66ch; }
.article-body li::marker { color: var(--brass); }
.article-body strong { color: var(--navy); }
.article-body em { color: var(--navy); }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: var(--space-md); }
.article-meta-row .cat-chip { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-light); border: 1px solid rgba(176,134,79,0.5); padding: 0.25rem 0.65rem; border-radius: 3px; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%) translateY(20px);
  z-index: 300; width: min(680px, calc(100% - 2rem));
  background: var(--navy-900); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg); box-shadow: var(--shadow-md);
  display: none; opacity: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cookie-banner.show { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: 0.88rem; margin-bottom: var(--space-sm); }
.cookie-banner a { color: var(--brass-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: var(--space-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.field label .req { color: var(--brass); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err-msg { display: none; font-size: 0.8rem; color: #b3261e; margin-top: 0.35rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .err-msg { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-field { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); }
.check-field input { width: auto; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--brass); }
.form-note { font-size: 0.85rem; color: var(--steel); background: var(--brass-soft); border-left: 3px solid var(--brass); padding: var(--space-sm) var(--space-md); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--space-lg); }
.form-note--warning { color: var(--ink); }
.form-success { display: none; text-align: center; padding: var(--space-xl) var(--space-md); }
.form-success.show { display: block; }
.form-success .check-circle { width: 60px; height: 60px; margin: 0 auto var(--space-md); border-radius: 50%; background: var(--brass-soft); display: flex; align-items: center; justify-content: center; }
.form-success .check-circle svg { width: 28px; height: 28px; color: var(--brass); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 140% at 50% 0%, rgba(176,134,79,0.16), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 55ch; margin: var(--space-md) auto var(--space-lg); }

/* ---------- Scheduling ---------- */
.schedule-box { background: var(--navy-800); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); }
.schedule-embed { min-height: 260px; border: 1px dashed rgba(255,255,255,0.2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-lg); color: rgba(255,255,255,0.6); gap: 0.5rem; }

/* ---------- Placeholder flag ---------- */
.ph-flag {
  display: inline-block; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brass); background: var(--brass-soft); border: 1px dashed var(--brass);
  padding: 0.1rem 0.45rem; border-radius: 3px; vertical-align: middle;
}
.draft-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); border: 1px solid var(--line); border-radius: 3px; padding: 0.1rem 0.45rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.6); padding-top: var(--space-2xl); font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-lg); padding-bottom: var(--space-xl); border-bottom: 1px solid rgba(255,255,255,0.09); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--space-lg); } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand svg { height: 42px; margin-bottom: var(--space-md); }
.footer-brand svg .lm-dark { fill: #fff; } .footer-brand svg .lm-sub { fill: rgba(255,255,255,0.65); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 34ch; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: var(--space-md); font-family: var(--font-sans); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.72); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--brass-light); }
.footer-disclaimer { padding-block: var(--space-lg); border-bottom: 1px solid rgba(255,255,255,0.09); font-size: 0.8rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-lg); font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom a:hover { color: var(--brass-light); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--space-xl); }
.section--dark .divider, .section--charcoal .divider { background: var(--line-dark); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--brass); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.pill-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--space-sm); }

/* Reveal on scroll — only hidden when JS is active, so no-JS users see everything */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Stat / meta row */
.meta-row { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl); }
.meta-item .m-val { font-family: var(--font-serif); font-size: var(--step-2); color: var(--navy); display: block; line-height: 1; }
.section--dark .meta-item .m-val { color: #fff; }
.meta-item .m-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-top: 0.4rem; display: block; }
/* Article thumbnails */
.article-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
