/* ============================================================
   mjIP — An Intellectual Property Firm
   Brand: Navy #123847 / mjIP Teal #0B5C73 / Peach #D9A873 / Cream #F8F4EC
   Type:  Newsreader (display, variable opsz) + Work Sans (body/UI)

   Design register: the granted-patent document. Labels sit ON a
   hairline like a patent front-matter field header; images are framed
   as plates; numbering is reserved for content that is genuinely
   sequential. Palette and copy are unchanged from the approved build.
   ============================================================ */

:root {
  /* ---------- Colour — approved palette, unchanged ---------- */
  --ink: #0F2530;
  --navy: #123847;
  --navy-soft: #16262E;
  --teal: #0B5C73;
  --teal-light: #4A93A6;
  --teal-pale: #8FB3BF;

  --peach: #D9A873;
  --peach-light: #F0DCC0;
  --peach-deep: #7A5A34;
  --cream: #F8F4EC;
  /* --gray darkened from #6E7A80 to clear WCAG AA (4.02:1 -> 4.56:1 on
     cream) — it carries 11–13px meta text. Same hue, same family. */
  --gray: #667177;
  --gray-strong: #4A5A61;
  --gray-light: #D8D3C8;
  --gray-line: #E4DFD3;
  --gray-dash: #C7BFA9;
  --white: #FFFFFF;

  /* Channels, so every translucent layer derives from the palette
     instead of re-typing hexes as rgba(). */
  --rgb-ink: 15 37 48;
  --rgb-navy: 18 56 71;
  --rgb-teal: 11 92 115;
  --rgb-peach: 217 168 115;
  --rgb-cream: 248 244 236;
  --rgb-teal-pale: 143 179 191;

  /* ---------- Type ---------- */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Modular scale, ~1.2 ratio, fluid where a heading needs to breathe. */
  --fs-label: 0.6875rem;                      /* 11px  — eyebrows, tags */
  --fs-2xs: 0.75rem;                          /* 12px  — meta, legal */
  --fs-xs: 0.8125rem;                         /* 13px  — nav, captions */
  --fs-sm: 0.875rem;                          /* 14px  — UI, footer */
  --fs-base: 0.9375rem;                       /* 15px  — dense body */
  --fs-body: 1rem;                            /* 16px  — reading body */
  --fs-lede: clamp(1rem, 0.94rem + 0.3vw, 1.0625rem);
  --fs-h4: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 1.05vw, 1.8125rem);
  --fs-h2-lg: clamp(1.6875rem, 1.4rem + 1.5vw, 2.125rem);
  --fs-h1: clamp(1.875rem, 1.5rem + 2.1vw, 2.625rem);
  --fs-h1-home: clamp(2rem, 1.5rem + 2.6vw, 2.875rem);

  --lh-tight: 1.14;
  --lh-snug: 1.35;
  --lh-body: 1.7;
  --lh-loose: 1.8;

  --tracking-label: 0.16em;
  --tracking-display: -0.015em;

  /* Reading measure — a patent specification column, not full-bleed prose. */
  --measure: 68ch;

  /* ---------- Space — 4px base ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-14: 56px;
  --s-16: 64px;
  --s-20: 80px;

  --section-y: clamp(64px, 7.5vw, 104px);
  --section-y-tight: clamp(44px, 5vw, 60px);
  --gutter: clamp(20px, 3vw, 24px);
  --pad-desktop: 104px;
  --pad-mobile: 64px;

  --max: 1180px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --hairline: 1px solid var(--gray-line);

  --shadow-soft: 0 4px 24px rgb(var(--rgb-navy) / 0.06), 0 1px 3px rgb(var(--rgb-navy) / 0.04);
  --shadow-lift: 0 22px 45px rgb(var(--rgb-navy) / 0.14), 0 4px 12px rgb(var(--rgb-navy) / 0.08);
  /* Images read as plates, not floating photographs. */
  --ring-plate: inset 0 0 0 1px rgb(var(--rgb-navy) / 0.10);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --dur-fast: .2s;
  --dur: .32s;
  --dur-slow: .48s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--cream);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea {
  font-family: inherit;
  /* 16px keeps iOS Safari from zooming the viewport on focus. */
  font-size: var(--fs-body);
}
::selection { background: var(--peach-light); color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h3, h4 { line-height: var(--lh-snug); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-y) 0; }

/* ---------- Focus — one visible ring, two grounds ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.top-bar :focus-visible,
.authority-section :focus-visible,
.cta-banner :focus-visible,
.contact-info :focus-visible,
.faq-side :focus-visible,
.mobile-nav :focus-visible,
.site-footer :focus-visible,
.industry-card :focus-visible {
  outline-color: var(--peach);
}

/* ============================================================
   SIGNATURE — the specification label
   A field label sitting on a hairline, after a patent front page.
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--peach);
  flex-shrink: 0;
}

/* Left-aligned labels extend into a full rule across the column. */
.section-head:not(.center) > .eyebrow,
.section-inner > .eyebrow,
.page-hero .inner > .eyebrow,
.hero-copy > .eyebrow,
.practice-intro > .eyebrow,
.attorney-copy > .eyebrow,
.faq-list > .eyebrow {
  display: flex;
  width: 100%;
}
.section-head:not(.center) > .eyebrow::after,
.section-inner > .eyebrow::after,
.page-hero .inner > .eyebrow::after,
.hero-copy > .eyebrow::after,
.practice-intro > .eyebrow::after,
.attorney-copy > .eyebrow::after,
.faq-list > .eyebrow::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  /* currentColor keeps the rule legible on cream, navy and peach alike. */
  background: currentColor;
  opacity: .28;
  min-width: 24px;
}

/* Centred labels take a matching dash so the mark stays symmetrical. */
.section-head.center > .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--peach);
  flex-shrink: 0;
}

.section-head { max-width: 680px; margin-bottom: var(--s-14); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2-lg); margin-bottom: var(--s-4); }
.section-head p { font-size: var(--fs-lede); color: var(--gray-strong); line-height: var(--lh-loose); }
.section-head.center p { margin-inline: auto; }

.divider { width: 100%; height: 1px; background: var(--gray-line); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 15px 28px;
  min-height: 46px;
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 10px 24px rgb(var(--rgb-teal) / 0.28);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 30px rgb(var(--rgb-navy) / 0.30); }
.btn-ghost { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.btn-peach {
  background: var(--peach);
  color: var(--navy);
  box-shadow: 0 10px 24px rgb(var(--rgb-peach) / 0.35);
}
.btn-peach:hover { background: var(--peach-deep); color: var(--cream); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgb(var(--rgb-cream) / 0.45);
  color: var(--cream);
}
.btn-ghost-light:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-sm { padding: 11px 20px; font-size: var(--fs-2xs); min-height: 40px; }
.btn:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--teal);
  border-bottom: 1px solid rgb(var(--rgb-teal) / 0.35);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.link-arrow:hover { gap: 13px; color: var(--navy); border-color: var(--navy); }

/* ============================================================
   TOP STRIP
   ============================================================ */
.top-bar { background: var(--navy); color: var(--cream); padding: 9px 0; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
.top-bar-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--teal-pale);
  letter-spacing: 0.01em;
}
.top-bar-item svg { color: var(--peach); }
a.top-bar-item { color: var(--cream); transition: color var(--dur-fast) ease; }
a.top-bar-item:hover { color: var(--peach); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgb(var(--rgb-cream) / 0.92);
  border-bottom: var(--hairline);
  transition: box-shadow var(--dur) ease;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: blur(10px) saturate(140%); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(var(--rgb-navy) / 0.08); }

.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 34px); }
.main-nav a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy-soft);
  padding: 6px 0;
  transition: color var(--dur-fast) ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--peach);
  border-radius: 2px;
  transition: right var(--dur) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }

.main-nav .nav-item { position: relative; }
.main-nav .nav-trigger { display: inline-flex; align-items: center; gap: 5px; }
.main-nav .nav-trigger svg { transition: transform var(--dur-fast) ease; }
.main-nav .nav-item:hover .nav-trigger svg,
.main-nav .nav-item:focus-within .nav-trigger svg { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--s-3);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility var(--dur-fast) ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.main-nav .nav-item:hover .dropdown-panel,
.main-nav .nav-item:focus-within .dropdown-panel,
.main-nav .nav-item.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--navy-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.dropdown-panel a::after { display: none; }
.dropdown-panel a:hover { background: var(--cream); color: var(--teal); }
.dropdown-panel .dropdown-divider { height: 1px; background: var(--gray-line); margin: 6px 4px; }

.header-actions { display: flex; align-items: center; gap: var(--s-5); }
.header-phone {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.header-phone svg { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--navy);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-h, 73px);
  background: var(--navy);
  z-index: 490;
  padding: var(--s-10) var(--s-8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow) linear;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: clamp(21px, 5.2vw, 26px);
  color: var(--cream);
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgb(var(--rgb-cream) / 0.12);
}
.mobile-nav a:hover { color: var(--peach); }

.mobile-nav-links { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav-item { border-bottom: 1px solid rgb(var(--rgb-cream) / 0.12); }
.mobile-nav-item-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-item-row a { flex: 1; border-bottom: none; }
.mobile-sub-toggle {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-pale);
}
.mobile-sub-toggle svg { transition: transform var(--dur) var(--ease); }
.mobile-nav-item[data-open="true"] .mobile-sub-toggle svg { transform: rotate(180deg); }
.mobile-submenu { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.mobile-submenu a {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--teal-pale);
  padding: 11px 0 11px var(--s-4);
  border-bottom: none;
}
.mobile-submenu a:hover { color: var(--peach); }
.mobile-nav .mobile-nav-footer {
  flex-shrink: 0;
  padding-top: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.mobile-nav .mobile-nav-footer .header-phone { color: var(--cream); font-size: var(--fs-body); }
.mobile-nav .mobile-nav-footer .header-phone svg { color: var(--peach); }

/* ============================================================
   HOME HERO — the one orchestrated moment
   ============================================================ */
.hero { padding: var(--s-16) 0 var(--section-y); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--rgb-peach) / 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { font-size: var(--fs-h1-home); margin-bottom: var(--s-6); }
.hero-copy h1 em { font-style: italic; color: var(--teal); font-weight: 500; }
.hero-copy .lede {
  font-size: var(--fs-lede);
  color: var(--gray-strong);
  max-width: 58ch;
  line-height: var(--lh-loose);
  margin-bottom: var(--s-8);
}
.hero-ctas { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-10); }
.hero-call {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
  min-height: 44px;
}
.hero-call svg { color: var(--teal); }

.hero-stats {
  display: flex;
  gap: clamp(24px, 3.5vw, 36px);
  flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: var(--hairline);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hero-stats .stat span { font-size: var(--fs-2xs); color: var(--gray); letter-spacing: 0.03em; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift), var(--ring-plate);
  aspect-ratio: 4 / 4.9;
  background: var(--gray-light);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--s-5) 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 250px;
}
.hero-badge .badge-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--peach-light);
  color: var(--peach-deep);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge strong { display: block; font-size: var(--fs-xs); color: var(--navy); font-weight: 700; line-height: 1.3; }
.hero-badge span { font-size: var(--fs-label); color: var(--gray); }

/* Staged entrance — the hero states the thesis one line at a time. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media > * { animation: hero-rise .7s var(--ease-out) both; }
  .hero-copy > .eyebrow { animation-delay: .05s; }
  .hero-copy > h1 { animation-delay: .13s; }
  .hero-copy > .lede { animation-delay: .21s; }
  .hero-copy > .hero-ctas { animation-delay: .29s; }
  .hero-copy > .hero-stats { animation-delay: .37s; }
  .hero-media > .frame { animation-delay: .17s; }
  .hero-media > .hero-badge { animation-delay: .45s; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Scroll reveal — the same primitive everywhere, applied by JS only to
   content below the fold so nothing flashes. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb-bar { background: var(--cream); border-bottom: var(--hairline); padding: var(--s-4) 0; }
.breadcrumb-list {
  display: flex; align-items: center; gap: var(--s-2);
  flex-wrap: wrap; font-size: var(--fs-2xs); color: var(--gray);
}
.breadcrumb-list a { color: var(--teal); font-weight: 600; }
.breadcrumb-list a:hover { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb-list .sep { color: var(--gray); }
.breadcrumb-list .current { color: var(--navy-soft); font-weight: 600; }

/* ============================================================
   INTERIOR PAGE HERO
   ============================================================ */
.page-hero { padding: var(--s-14) 0 var(--s-12); position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -180px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--rgb-peach) / 0.16), transparent 70%);
  pointer-events: none;
}
.page-hero .inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: 22px; }
.page-hero .lede {
  font-size: var(--fs-lede);
  color: var(--gray-strong);
  line-height: var(--lh-loose);
  margin-bottom: var(--s-8);
  max-width: var(--measure);
}
.page-hero .hero-ctas { margin-bottom: 0; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: clamp(36px, 4.5vw, 56px);
  align-items: center;
}
.page-hero-media { position: relative; z-index: 1; }
.page-hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift), var(--ring-plate);
  aspect-ratio: 900 / 1035;
  background: var(--gray-light);
}
.page-hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 var(--s-6); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-base);
  color: var(--gray-strong);
  line-height: 1.6;
}
.checklist .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}

/* ============================================================
   STEP LIST — numbering kept: these are genuine sequences
   ============================================================ */
.step-list {
  display: flex;
  flex-direction: column;
  margin: var(--s-6) 0;
  border: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.step-item {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  padding: 22px 26px;
  border-bottom: var(--hairline);
}
.step-item:last-child { border-bottom: none; }
.step-item .step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'opsz' 16;
  display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: var(--fs-h4); margin-bottom: var(--s-1); }
.step-item p { font-size: var(--fs-sm); color: var(--gray-strong); line-height: 1.65; margin: 0; }

/* ============================================================
   CONTENT SECTION — the specification column
   ============================================================ */
.content-section { padding: var(--section-y-tight) 0; }
.content-section .section-inner { max-width: min(100%, 780px); }
/* The dangling selector here previously leaked body-copy rules onto
   whole sections. Each rule now targets exactly what it names. */
.content-section p {
  font-size: var(--fs-body);
  color: var(--gray-strong);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: var(--measure);
}
.content-section p:last-child { margin-bottom: 0; }
.content-section h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.content-section .section-eyebrow { margin-bottom: 14px; }
.content-band { background: var(--white); border-top: var(--hairline); border-bottom: var(--hairline); }

/* ============================================================
   CREDENTIAL BAR
   ============================================================ */
.credential-bar {
  padding: var(--s-10) 0;
  background: var(--white);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6) var(--s-8);
  text-align: center;
}
.credential-grid .item { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.credential-grid svg { color: var(--teal); }
.credential-grid p { font-size: var(--fs-xs); font-weight: 600; color: var(--navy-soft); letter-spacing: 0.01em; line-height: 1.5; }

/* ============================================================
   PRACTICE AREA CARDS
   ============================================================ */
.practice-section .section-columns {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(44px, 5.5vw, 72px);
  align-items: start;
}
.practice-intro p { font-size: var(--fs-lede); color: var(--gray-strong); margin-bottom: var(--s-5); line-height: var(--lh-loose); }
.practice-intro p:last-of-type { margin-bottom: var(--s-8); }

/* Card grids size themselves — no inline grid-template can override the
   breakpoints any more. */
.practice-cards { display: grid; gap: var(--s-5); }
.practice-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.practice-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* These grids sit inside the 780px specification column, so they need
   explicit steps — an auto-fit minmax would silently drop to two. */
@media (max-width: 900px) {
  .practice-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .practice-cards--2, .practice-cards--3 { grid-template-columns: 1fr; }
}
/* Cards in the narrow column get tighter gutters than full-width ones. */
.section-inner .spot-card { padding: 26px 24px; }
.section-inner .spot-card .icon-tile { width: 46px; height: 46px; border-radius: 12px; margin-bottom: var(--s-4); }
.section-inner .spot-card h3 { font-size: var(--fs-h4); }

.spot-card {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--s-8);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur) ease, box-shadow var(--dur-slow) var(--ease);
}
.spot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(420px circle at var(--x) var(--y), rgb(var(--rgb-teal) / 0.10), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) ease;
}
/* Gradient hairline border. The standard `mask` pair is required as well
   as the -webkit- one, or Firefox fills the whole card. */
.spot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--x) var(--y), var(--peach), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.spot-card:hover, .spot-card:focus-within {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.spot-card:hover::before, .spot-card:hover::after,
.spot-card:focus-within::before, .spot-card:focus-within::after { opacity: 1; }
.spot-card > * { position: relative; z-index: 1; }

.spot-card .icon-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-5);
  transition: background var(--dur) ease;
}
.spot-card:hover .icon-tile { background: var(--navy); }
.spot-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.spot-card p { font-size: var(--fs-sm); color: var(--gray-strong); margin-bottom: 18px; line-height: var(--lh-body); }
.spot-card .link-arrow { margin-top: auto; }

.mini-links { display: flex; flex-wrap: wrap; gap: var(--s-2) 10px; margin-bottom: var(--s-5); }
.mini-links a {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--teal);
  background: var(--cream);
  border: var(--hairline);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.mini-links a:hover { background: var(--teal); color: var(--cream); border-color: var(--teal); }

/* ============================================================
   AUTHORITY / FEATURE GRID
   Numbering removed — these are parallel qualifications, not an
   ordered sequence. A peach rule marks each without implying rank.
   ============================================================ */
.authority-section { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.authority-section::before {
  content: '';
  position: absolute;
  right: -180px; bottom: -220px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgb(var(--rgb-peach) / 0.12);
}
.authority-section .section-head p { color: var(--teal-pale); }
.authority-section .eyebrow { color: var(--peach); }
.authority-section .eyebrow::before,
.authority-section .section-head.center > .eyebrow::after { background: var(--teal-pale); }
.authority-section h2 { color: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--s-6);
  position: relative;
  z-index: 1;
}
/* Solid rather than translucent: this is the exact composite of the old
   4% cream over navy, but it no longer lets the section's decorative
   blob bleed through and wash out the 13px body copy. */
.feature-card {
  background: #1B404E;
  border: 1px solid rgb(var(--rgb-cream) / 0.14);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur) ease;
}
.feature-card::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--peach);
  border-radius: 2px;
  margin-bottom: 18px;
  transition: width var(--dur-slow) var(--ease);
}
/* Hover lifts and marks; it deliberately does not lighten the panel,
   which would push the body copy back under 4.5:1. */
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--rgb-peach) / 0.5);
}
.feature-card:hover::before { width: 44px; }
.feature-card h3 { color: var(--cream); font-size: var(--fs-h4); margin-bottom: 10px; }
.feature-card p { font-size: var(--fs-xs); color: var(--teal-pale); line-height: var(--lh-body); }

/* ============================================================
   ATTORNEY SPOTLIGHT
   ============================================================ */
.attorney-section .attorney-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.attorney-media { position: relative; }
.attorney-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 3.7;
  box-shadow: var(--shadow-soft), var(--ring-plate);
}
.attorney-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.attorney-media .quote-chip {
  position: absolute;
  right: -24px;
  top: var(--s-8);
  background: var(--peach-light);
  color: var(--peach-deep);
  border-radius: var(--radius-md);
  padding: var(--s-4) 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 190px;
  box-shadow: var(--shadow-soft);
}
.attorney-copy .cred-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.tag {
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.tag.solid { background: var(--peach-light); color: var(--peach-deep); border-color: transparent; }
.attorney-copy p { color: var(--gray-strong); font-size: var(--fs-base); margin-bottom: var(--s-4); line-height: var(--lh-loose); }
.attorney-copy p a { color: var(--teal); border-bottom: 1px solid rgb(var(--rgb-teal) / 0.3); }
.attorney-copy p a:hover { border-bottom-color: var(--teal); }
.attorney-copy .sig { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin-top: var(--s-6); }
.attorney-copy .sig span {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  color: var(--gray);
  font-weight: 500;
  margin-top: var(--s-1);
  letter-spacing: 0.02em;
}

/* ============================================================
   TESTIMONIALS — marquee
   ============================================================ */
.testimonial-section { background: var(--peach-light); position: relative; overflow: hidden; }
.testimonial-section .eyebrow { color: var(--peach-deep); }
.testimonial-section .eyebrow::before { background: var(--teal); }
.testimonial-note { font-size: var(--fs-2xs); color: var(--peach-deep); opacity: .8; }

.marquee-wrap { position: relative; display: flex; flex-direction: column; gap: 22px; margin-top: var(--s-12); overflow: hidden; }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee-left 42s linear infinite; }
.marquee-row--reverse .marquee-track { animation-name: marquee-right; animation-duration: 48s; }
.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee-fade { position: absolute; top: 0; bottom: 0; width: 140px; pointer-events: none; z-index: 2; }
.marquee-fade--left { left: 0; background: linear-gradient(90deg, var(--peach-light), rgb(240 220 192 / 0)); }
.marquee-fade--right { right: 0; background: linear-gradient(270deg, var(--peach-light), rgb(240 220 192 / 0)); }

.t-card {
  flex: 0 0 auto;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgb(var(--rgb-teal) / 0.1);
}
.t-card .stars { color: var(--peach-deep); margin-bottom: 14px; letter-spacing: 2px; font-size: var(--fs-base); }
.t-card blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  line-height: 1.6;
  color: var(--navy-soft);
  font-style: italic;
  margin-bottom: var(--s-5);
}
.t-card .who { display: flex; align-items: center; gap: var(--s-3); }
.t-card .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-sm);
  font-variation-settings: 'opsz' 14;
  flex-shrink: 0;
}
.t-card .who strong { display: block; font-size: var(--fs-sm); color: var(--navy); }
.t-card .who span { font-size: var(--fs-2xs); color: var(--gray); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-6); }
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--dur-slow) var(--ease);
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.industry-card:hover img, .industry-card:focus-within img { transform: scale(1.06); }
.industry-card:hover, .industry-card:focus-within { box-shadow: var(--shadow-lift); }
.industry-card .overlay {
  position: absolute; inset: 0;
  /* The scrim has to reach full strength before the label starts, not at
     the very bottom edge — over a light photo the old ramp left the
     eyebrow and body copy below 4.5:1. */
  background: linear-gradient(180deg,
    rgb(var(--rgb-navy) / 0) 20%,
    rgb(var(--rgb-ink) / 0.50) 40%,
    rgb(var(--rgb-ink) / 0.92) 56%,
    rgb(var(--rgb-ink) / 0.96) 100%);
}
.industry-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: var(--cream); }
.industry-card .content .tag-sm {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.industry-card .content h3 { color: var(--cream); font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.industry-card .content p {
  font-size: var(--fs-xs);
  color: var(--teal-pale);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), opacity var(--dur) ease, margin-top var(--dur-slow) var(--ease);
}
.industry-card:hover .content p,
.industry-card:focus-within .content p { max-height: 8em; opacity: 1; margin-top: 6px; }
/* Hover cannot be the only way to read this copy. */
@media (hover: none), (max-width: 860px) {
  .industry-card .content p { max-height: none; opacity: 1; margin-top: 6px; overflow: visible; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-wrap { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-14); }
.faq-list { display: flex; flex-direction: column; }
.faq-list h2 { font-size: var(--fs-h2-lg); }
.faq-item { border-bottom: var(--hairline); }
/* Each question is a real heading wrapping its control, so screen-reader
   users can navigate the FAQ by heading. The button carries the type. */
.faq-h { margin: 0; font: inherit; color: inherit; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--navy);
  transition: color var(--dur-fast) ease;
}
.faq-q:hover { color: var(--teal); }
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--dur) var(--ease), background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--dur-fast) ease;
}
.faq-q .plus::before { width: 11px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 11px; }
.faq-item[data-open="true"] .plus { background: var(--teal); color: var(--cream); transform: rotate(180deg); }
.faq-item[data-open="true"] .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.faq-a p { padding: 0 4px 24px; font-size: var(--fs-base); color: var(--gray-strong); max-width: var(--measure); line-height: 1.75; }

/* The approved build hides this aside (its CTA is carried by the banner
   below). Kept hidden, declared properly. */
.faq-side { display: none; }

/* ============================================================
   CONTACT + MAP
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: var(--s-12); margin-bottom: var(--s-14); }
/* Grid items default to min-width:auto, so an iframe's 300px intrinsic
   width or an unbreakable email address pushed these cards wider than
   the viewport on narrow phones. */
.contact-grid > * { min-width: 0; }
.ghl-embed, .ghl-embed iframe, .map-frame iframe { min-width: 0; max-width: 100%; }

.contact-form, .ghl-embed-card {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}
.contact-form h2, .ghl-embed-card h2 { font-size: var(--fs-h3); margin-bottom: var(--s-6); }
.form-field { margin-bottom: var(--s-5); }
.form-field label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--s-2);
  letter-spacing: 0.01em;
}
.form-field label span { color: var(--peach-deep); }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgb(var(--rgb-teal) / 0.14);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--gray); }
.form-submit { width: 100%; margin-bottom: var(--s-4); }
.form-disclaimer { font-size: var(--fs-2xs); color: var(--gray); line-height: 1.6; }
.form-disclaimer a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.form-success {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.form-success .icon-tile {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s-5);
}
.form-success h2 { margin-bottom: 10px; font-size: var(--fs-h3); }
.form-success p { color: var(--gray-strong); font-size: var(--fs-sm); }
.form-success p a { color: var(--teal); font-weight: 600; }

.contact-info { background: var(--navy); border-radius: var(--radius-lg); padding: 44px 40px; color: var(--cream); }
.contact-info h2 { color: var(--cream); font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.contact-info h3 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: var(--s-6) 0 14px;
}
.contact-info .addr { color: var(--teal-pale); font-size: var(--fs-base); line-height: 1.7; margin-bottom: 18px; }
.contact-info-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: 32px; }
.contact-info-line svg { color: var(--peach); }
.contact-info-line a { font-size: var(--fs-base); color: var(--cream); transition: color var(--dur-fast) ease; overflow-wrap: break-word; min-width: 0; }
.contact-info-line a:hover { color: var(--peach); }
.hours-row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  font-size: var(--fs-sm); color: var(--teal-pale);
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgb(var(--rgb-teal-pale) / 0.15);
}
.hours-row span:last-child { color: var(--cream); font-weight: 500; font-variant-numeric: tabular-nums; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
.contact-links .link-arrow { color: var(--peach); border-color: rgb(var(--rgb-peach) / 0.4); }
.contact-links .link-arrow:hover { color: var(--cream); border-color: var(--cream); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; display: block; border: 0; }

/* Third-party (LeadConnector) embeds — Contact Us page */
.ghl-embed-card--calendar { margin-bottom: var(--s-14); }
.ghl-embed { width: 100%; min-height: 460px; }
.ghl-embed iframe { width: 100%; height: 100%; min-height: 460px; display: block; border: none; }
.ghl-embed--calendar { min-height: 760px; }
.ghl-embed--calendar iframe { min-height: 760px; }

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: center;
  width: min(100% - (2 * var(--gutter)), calc(var(--max) - 48px));
  margin-inline: auto;
}
.cta-banner::before {
  content: '';
  position: absolute;
  left: -120px; top: -140px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgb(var(--rgb-peach) / 0.10);
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -100px; bottom: -160px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgb(var(--rgb-teal-pale) / 0.09);
}
.cta-banner .inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-banner h2 { color: var(--cream); font-size: var(--fs-h2-lg); margin-bottom: 18px; }
.cta-banner p { color: var(--teal-pale); font-size: var(--fs-body); margin-bottom: var(--s-8); line-height: var(--lh-body); }
.cta-banner .cta-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--teal-pale); padding: var(--s-20) 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.7fr 1fr;
  gap: var(--s-8) var(--s-6);
  padding-bottom: var(--s-16);
}
.footer-brand img { height: 40px; margin-bottom: var(--s-5); filter: brightness(0) invert(1); }
.footer-brand p { font-size: var(--fs-sm); color: var(--teal-pale); line-height: 1.75; max-width: 300px; margin-bottom: 22px; }
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(var(--rgb-teal-pale) / 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) ease, border-color var(--dur) ease, transform var(--dur) ease;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col ul.long-list { gap: 11px; }
.footer-col a { font-size: var(--fs-sm); color: var(--teal-pale); transition: color var(--dur-fast) ease, padding-left var(--dur-fast) ease; }
.footer-col ul.long-list a { font-size: var(--fs-xs); }
.footer-col a:hover { color: var(--peach); padding-left: var(--s-1); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--teal-pale); line-height: 1.6; overflow-wrap: break-word; min-width: 0; }
.footer-col .contact-line a { overflow-wrap: break-word; }
.footer-col .contact-line svg { margin-top: 4px; color: var(--peach); }

.footer-bottom {
  border-top: 1px solid rgb(var(--rgb-teal-pale) / 0.15);
  padding: 26px 0 var(--s-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-size: var(--fs-2xs);
  color: rgb(var(--rgb-teal-pale) / 0.75);
}
.footer-bottom .sitemap-links { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--peach); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--white);
  border-top: var(--hairline);
  padding: var(--s-3) var(--s-4);
  padding-bottom: max(var(--s-3), env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 24px rgb(var(--rgb-navy) / 0.10);
}
.mobile-cta a { flex: 1; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid, .attorney-section .attorney-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin: 0 auto; }
  .practice-section .section-columns { grid-template-columns: 1fr; }
  .credential-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-10) var(--s-8); }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .contact-form, .contact-info, .ghl-embed-card { padding: 36px 28px; }
  .map-frame iframe { height: 320px; }
  .ghl-embed--calendar, .ghl-embed--calendar iframe { min-height: 620px; }
}

@media (max-width: 860px) {
  .top-bar { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-bottom: 96px; }
  .hero-badge { position: relative; left: 0; right: 0; bottom: auto; margin: -22px auto 0; }
  .attorney-media .quote-chip { display: none; }
  .cta-banner { padding: 52px 28px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-10); }
  .page-hero { padding: 44px 0 var(--s-14); }
  .step-item { padding: 18px 20px; gap: 14px; }
  .faq-wrap { gap: var(--s-10); }
}

@media (max-width: 640px) {
  .hero-copy .lede { max-width: 100%; }
  .contact-form, .contact-info, .ghl-embed-card { padding: 28px 22px; }
  .spot-card { padding: 26px 22px; }
  .cta-banner { padding: 44px 22px; }
  .t-card { width: 280px; padding: 24px 22px; }
  .marquee-fade { width: 60px; }
  .credential-grid { gap: var(--s-6); }
  .hero-badge { max-width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   Decorative movement stops; functional transitions (accordion
   height, focus, colour) keep working.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover, .spot-card:hover, .feature-card:hover,
  .footer-social a:hover { transform: none; }
  .industry-card:hover img, .industry-card:focus-within img { transform: none; }
  .spot-card, .feature-card, .industry-card img, .btn { transition-property: background, color, border-color, box-shadow, opacity; }
}
