/*
Theme Name: DeDecker Law
Theme URI: https://www.lawofficeofdedecker.com
Author: Lawthentics
Description: "Quiet Counsel" — legal-editorial custom theme for the Law Office of Michael DeDecker, family law firm in Folsom, California. v6: provenance-preserving responsive images, self-hosted fonts, view transitions, AI-discovery layer.
Version: 6.0.4
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: dedecker-law
*/

/* ═══════════════════════════════════════════════════════════════════════════
   1. TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Palette */
  --ink: #0D2333;
  --ink-90: rgba(13, 35, 51, 0.9);
  --ink-75: rgba(13, 35, 51, 0.75);
  --ink-55: rgba(13, 35, 51, 0.55);
  --navy: #16405B;
  --navy-soft: #2E6E94;
  --brass: #A8834B;
  --brass-dark: #8C6C3B;
  --brass-light: #C9A96E;
  --ivory: #F7F4EE;
  --cream: #EFE9DE;
  --white: #FFFFFF;
  --text: #2A3540;
  --text-soft: #5A6874;
  --text-inverse: #E9EEF2;
  --text-inverse-soft: #A9BAC6;
  --line-light: #E3DCCE;
  --line-dark: rgba(233, 238, 242, 0.14);

  /* Legacy aliases (used by page content pushed via REST) */
  --navy-dark: var(--ink);
  --gold-primary: var(--brass);
  --gold-light: var(--brass-light);
  --warm-gray: var(--text-soft);
  --off-white: var(--cream);
  --text-dark: var(--text);
  --border-light: var(--line-light);

  /* Type */
  /* v6.0: self-hosted variable fonts (§24) + metric-matched local fallbacks so
     the swap from system font to webfont moves nothing (CLS ≈ 0). */
  --font-serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-display-sm: clamp(2rem, 4.5vw, 3.25rem);
  --text-display: clamp(2.5rem, 5.5vw, 4.75rem);

  /* Space */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);

  /* Misc */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --shadow-soft: 0 18px 50px -18px rgba(13, 35, 51, 0.22);
  --shadow-card: 0 10px 34px -14px rgba(13, 35, 51, 0.18);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 92px;

  /* Z-scale */
  --z-header: 50;
  --z-mobile-nav: 60;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--brass-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
iframe { max-width: 100%; }

::selection { background: var(--navy); color: var(--ivory); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-display-sm); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); font-weight: 600; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--navy); }

/* WCAG 2.2 focus appearance: 3px ring, offset, never clipped */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-to-content {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 24px; z-index: 100;
}
.skip-to-content:focus { left: 16px; top: 16px; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--wide { max-width: 1320px; }

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--text-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ivory); }
.section--dark p { color: var(--text-inverse); }
.section--dark a:not(.btn) { color: var(--brass-light); }
.section--dark a:not(.btn):hover { color: var(--ivory); }
.section--dark strong { color: var(--ivory); }

.section__header { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__header--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7A5E33; /* brass-dark = 4.02–4.42:1 on cream/ivory at 12px; this clears AA */
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section__header--center .section__eyebrow { justify-content: center; }
.section__eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--brass);
  flex: none;
}
.section--dark .section__eyebrow { color: var(--brass-light); }
.section__title { margin-bottom: var(--space-lg); }
.section__subtitle { font-size: var(--text-lg); color: var(--text-soft); line-height: 1.65; max-width: 62ch; }
.section--dark .section__subtitle { color: var(--text-inverse-soft); }

.em-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  min-height: 48px;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }

/* Brass — primary on dark (legacy alias .btn-gold) */
.btn-brass, .btn-gold {
  background: var(--brass);
  color: #10202D;
  border-color: var(--brass);
}
.btn-brass:hover, .btn-gold:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: #10202D;
  box-shadow: 0 10px 26px -10px rgba(168, 131, 75, 0.65);
}

/* Navy solid — primary on light */
.btn-navy, .btn-dark {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-navy:hover, .btn-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
  box-shadow: 0 10px 26px -10px rgba(13, 35, 51, 0.5);
}

/* Ghost — on dark sections */
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(233, 238, 242, 0.4);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* Outline navy — on light */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: rgba(22, 64, 91, 0.45);
}
.btn-outline-navy:hover { border-color: var(--navy); background: var(--navy); color: var(--ivory); }

.btn-gold--full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   5. HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ivory);
}

.header-top {
  background: var(--ink);
  color: var(--text-inverse-soft);
  font-size: 0.8125rem;
}
.header-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: var(--space-lg);
}
.header-top a, .header-top span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-inverse-soft); }
.header-top a:hover { color: var(--brass-light); }
.header-top svg { width: 14px; height: 14px; flex: none; }
.header-top__contact, .header-top__meta { display: flex; align-items: center; gap: var(--space-xl); }
.header-top__rating { color: var(--brass-light) !important; font-weight: 500; }
.header-top__rating svg { width: 13px; height: 13px; }

/* Compact social icon rows (shared base; per-surface variants below) */
.social-icons { display: flex; align-items: center; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; }
.header-top__social { gap: 2px; padding-left: var(--space-md); border-left: 1px solid var(--line-dark); }
.header-top__social a { width: 30px; height: 30px; color: var(--text-inverse-soft); }
.header-top__social a:hover { color: var(--brass-light); }
.header-top__social svg { width: 15px; height: 15px; }
.mobile-nav__social { justify-content: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.mobile-nav__social a {
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--text-inverse-soft);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.mobile-nav__social a:hover { border-color: var(--brass-light); color: var(--brass-light); }
.mobile-nav__social svg { width: 17px; height: 17px; }

/* "Coming soon" platforms: announced (icon visible) but profile pending —
   dimmed, non-clickable. Turns into a live link automatically when the URL
   is filled in dedecker_get_socials(). */
.social-icons__soon { opacity: 0.38; cursor: default; }
.header-top__social .social-icons__soon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-inverse-soft); }
.header-top__social .social-icons__soon svg { width: 15px; height: 15px; }
.mobile-nav__social .social-icons__soon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-dark);
  border-radius: 50%;
  color: var(--text-inverse-soft);
}
.mobile-nav__social .social-icons__soon svg { width: 17px; height: 17px; }

.header-main {
  border-bottom: 1px solid var(--line-light);
  background: var(--ivory);
  transition: box-shadow 0.25s var(--ease-out);
}
.site-header.is-scrolled .header-main { box-shadow: 0 8px 30px -18px rgba(13, 35, 51, 0.35); }

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  height: var(--header-h);
}

.site-logo { display: flex; align-items: center; gap: 14px; flex: none; }
.site-logo__mark { width: 52px; height: auto; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-logo__sub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #7A5E33; /* brass-dark fails AA (4.42:1) on ivory at 11px; this hits ~5.5:1 */
  margin-top: 3px;
}

/* Desktop nav */
.main-nav { display: flex; }
.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 2px;
  position: relative;
  white-space: nowrap; /* "Practice Areas" must never wrap as the menu grows */
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s var(--ease-out);
}
.nav-menu > li > a:hover { color: var(--navy); }
.nav-menu > li > a:hover::after, .nav-menu > li.current-menu-item > a::after { right: 0; }
.nav-caret { width: 13px; height: 13px; opacity: 0.55; transition: transform 0.2s var(--ease-out); }
.nav-menu li:hover .nav-caret, .nav-menu li:focus-within .nav-caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--brass);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  z-index: 5;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 10px 22px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), padding-left 0.15s var(--ease-out);
}
.sub-menu li a:hover { background: var(--ivory); color: var(--navy); padding-left: 27px; }

.header-cta { flex: none; }
.header-cta__btn { padding: 14px 26px; min-height: 44px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  cursor: pointer;
  z-index: calc(var(--z-mobile-nav) + 1);
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out), background-color 0.2s;
}
.nav-toggle.is-open span { background: var(--ivory); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile full-screen nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: var(--z-mobile-nav);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease-out), visibility 0.32s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px clamp(1.5rem, 7vw, 3.5rem) 40px;
}
.mobile-nav__list > li {
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-nav.is-open .mobile-nav__list > li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(0.06s * var(--i, 0) + 0.1s);
}
.mobile-nav__list > li > a,
.mobile-nav__expand {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ivory);
  padding: 18px 0;
}
.mobile-nav__expand svg { width: 20px; height: 20px; transition: transform 0.25s var(--ease-out); color: var(--brass-light); }
.mobile-nav__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__sub {
  display: none;
  padding: 0 0 16px 14px;
}
.mobile-nav__sub.is-open { display: block; }
.mobile-nav__sub a {
  padding: 9px 0;
  font-size: 1rem;
  color: var(--text-inverse-soft);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav__sub a:hover { color: var(--brass-light); }
.mobile-nav__footer { margin-top: var(--space-2xl); text-align: center; }
.mobile-nav__footer .btn { width: 100%; margin-bottom: var(--space-lg); }
.mobile-nav__footer p { color: var(--text-inverse-soft); font-size: var(--text-sm); }

body.nav-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════════════
   6. HERO (home)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: min(calc(100svh - 132px), 860px);
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.06);
  animation: heroSettle 2.6s var(--ease-out) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 35, 51, 0.93) 0%, rgba(13, 35, 51, 0.72) 42%, rgba(13, 35, 51, 0.18) 78%, rgba(13, 35, 51, 0.35) 100%),
    linear-gradient(0deg, rgba(13, 35, 51, 0.55) 0%, rgba(13, 35, 51, 0) 30%);
}
.hero__content {
  position: relative;
  width: 100%;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.hero__inner { max-width: 640px; }
.hero__tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: var(--space-lg);
}
.hero__tagline::before { content: ""; width: 40px; height: 1px; background: var(--brass-light); }
.hero__title {
  font-size: clamp(2.75rem, 6.2vw, 5rem);
  color: var(--ivory);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-light);
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(233, 238, 242, 0.85);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: var(--space-2xl);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-3xl); }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg) var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(233, 238, 242, 0.18);
  color: rgba(233, 238, 242, 0.75);
  font-size: 0.8125rem;
}
.hero__proof strong { color: var(--brass-light); font-weight: 600; }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--brass-light); flex: none; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(233, 238, 242, 0.6);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 54px;
  background: rgba(233, 238, 242, 0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--brass-light);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { top: -40%; } 100% { top: 110%; } }

/* ═══════════════════════════════════════════════════════════════════════════
   7. STATS / TRUST BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.trust-bar {
  background: var(--ivory);
  border-bottom: 1px solid var(--line-light);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.trust-bar__grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-xl);
}
.trust-bar__item { text-align: center; flex: 1; }
.trust-bar__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.trust-bar__number sup { font-size: 0.5em; color: var(--brass-dark); }
.trust-bar__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.trust-bar__divider { width: 1px; background: var(--line-light); flex: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. VALUE PROPS
   ═══════════════════════════════════════════════════════════════════════════ */
.value-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.value-props__grid--2 { grid-template-columns: repeat(2, 1fr); }
.value-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative;
}
.value-card:hover { border-color: var(--brass); box-shadow: var(--shadow-card); }
.value-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass-dark);
  display: block;
  margin-bottom: var(--space-md);
}
.value-card__icon { width: 40px; height: 40px; color: var(--brass-dark); margin-bottom: var(--space-lg); }
.value-card__icon svg { width: 100%; height: 100%; }
.value-card__title { font-size: var(--text-xl); margin-bottom: var(--space-md); }
.value-card__text { color: var(--text-soft); font-size: var(--text-sm); line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════════════════════
   9. PRACTICE AREA INDEX (home) + CARDS (legacy/related)
   ═══════════════════════════════════════════════════════════════════════════ */
.pa-index { border-top: 1px solid var(--line-dark); }
.pa-index__row {
  display: grid;
  grid-template-columns: 90px 1fr 340px 40px;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--line-dark);
  color: inherit;
  position: relative;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.pa-index__row:hover { background: rgba(233, 238, 242, 0.045); padding-left: 14px; }
.pa-index__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--brass-light);
}
.pa-index__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--ivory);
  transition: color 0.25s var(--ease-out);
}
.pa-index__row:hover .pa-index__title { color: var(--brass-light); }
.pa-index__desc {
  font-size: var(--text-sm);
  color: var(--text-inverse-soft);
  line-height: 1.6;
}
.pa-index__arrow {
  width: 34px; height: 34px;
  color: var(--text-inverse-soft);
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.pa-index__arrow svg { width: 100%; height: 100%; }
.pa-index__row:hover .pa-index__arrow { color: var(--brass-light); transform: translateX(6px); }

.pa-index__thumb {
  position: absolute;
  right: 110px;
  top: 50%;
  width: 190px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  transform: translateY(-50%) scale(0.92) rotate(-2deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.pa-index__row:hover .pa-index__thumb { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }

/* Legacy card grid (interior/related) */
.pa-grid, .related-pa__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}
.pa-card, .related-pa__card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: block;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.pa-card:hover, .related-pa__card:hover { border-color: var(--brass); box-shadow: var(--shadow-card); }
.section--dark .pa-card {
  background: rgba(233, 238, 242, 0.05);
  border-color: var(--line-dark);
}
.pa-card__icon { display: block; width: 36px; height: 36px; color: var(--brass-dark); margin-bottom: var(--space-md); }
.pa-card__icon svg { width: 100%; height: 100%; }
/* Card headings are h3.card-title (h4 skipped a level under h2 sections —
   axe heading-order); .card-title pins the old h4 visual size. */
.card-title { font-size: var(--text-xl); font-weight: 600; }
.pa-card__title, .related-pa__card h4, .related-pa__card .card-title { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.pa-card__desc, .related-pa__card p { font-size: var(--text-sm); color: var(--text-soft); margin-bottom: var(--space-md); }
.pa-card__link a {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.related-pa__card h4, .related-pa__card .card-title { color: var(--navy); }
.related-pa__card:hover h4, .related-pa__card:hover .card-title { color: var(--brass-dark); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. SPOTLIGHT (attorney feature)
   ═══════════════════════════════════════════════════════════════════════════ */
.spotlight__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.spotlight__image { position: relative; }
.spotlight__image-frame {
  position: relative;
  border-radius: var(--radius-md);
}
.spotlight__image-frame img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}
.spotlight__image-frame::before {
  content: "";
  position: absolute;
  top: -22px; left: -22px;
  width: 62%; height: 62%;
  border: 1px solid var(--brass);
  border-radius: var(--radius-md);
  z-index: 0;
}
.spotlight__image-frame::after {
  content: "";
  position: absolute;
  bottom: -22px; right: -22px;
  width: 46%; height: 46%;
  background: var(--cream);
  border-radius: var(--radius-md);
  z-index: 0;
}
.spotlight__image-accent { display: none; }
.spotlight__image-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy), var(--ink));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse-soft);
  text-align: center;
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}
.spotlight__badge {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: -28px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spotlight__badge-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.spotlight__badge-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.45;
}
.spotlight__bio { font-size: var(--text-lg); color: var(--text); line-height: 1.75; margin-bottom: var(--space-lg); }
.spotlight__credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line-light);
}
.spotlight__credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--text);
}
.spotlight__credential-icon { width: 20px; height: 20px; color: var(--brass-dark); flex: none; }
.spotlight__credential-icon svg { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   11. TESTIMONIALS + AWARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.testimonials {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.testimonials .container { position: relative; }
.testimonial-slider { position: relative; max-width: 820px; margin-inline: auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; animation: fadeSlide 0.55s var(--ease-out); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-slide__mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--brass-light);
  display: block;
  margin-bottom: var(--space-lg);
}
.testimonial-slide__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: var(--space-xl);
}
.testimonial-slide__author { font-size: var(--text-sm); color: var(--brass-light); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.testimonial-slide__source { font-size: var(--text-xs); color: var(--text-inverse-soft); margin-top: 4px; }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-2xl); }
.testimonial-disclaimer { text-align: center; font-size: var(--text-xs); color: var(--text-inverse-soft); opacity: 0.85; max-width: 62ch; margin: var(--space-lg) auto 0; line-height: 1.6; }
.testimonial-dot {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.testimonial-dot::after {
  content: "";
  width: 26px; height: 2px;
  background: rgba(233, 238, 242, 0.25);
  transition: background-color 0.2s var(--ease-out);
}
.testimonial-dot.is-active::after, .testimonial-dot:hover::after { background: var(--brass-light); }

.awards-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) clamp(1.5rem, 4vw, 3.5rem);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.award-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-inverse-soft);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.award-chip svg { width: 18px; height: 18px; color: var(--brass-light); flex: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   12. TEAM
   ═══════════════════════════════════════════════════════════════════════════ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.team-card:hover { border-color: var(--brass); box-shadow: var(--shadow-card); }
.team-card__photo { margin: 0 auto var(--space-lg); width: 132px; height: 132px; }
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Non-square sources crop toward the top so heads keep headroom (no-op on square crops) */
  object-position: 50% 8%;
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--line-light);
}
.team-card__disclosure {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-soft);
  opacity: 0.85;
  line-height: 1.5;
}
.team-card__placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--ink));
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--line-light);
}
.team-card__name { font-size: var(--text-xl); margin-bottom: 2px; }
.team-card__role {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: var(--space-md);
}
.team-card__desc { font-size: var(--text-sm); color: var(--text-soft); line-height: 1.7; margin-bottom: var(--space-md); }
.team-card__email { font-size: var(--text-xs); color: var(--navy-soft); word-break: break-all; }

/* ═══════════════════════════════════════════════════════════════════════════
   13. CONTACT CTA + FORM
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-contact { position: relative; }
.cta-contact__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
/* Grid items default to min-width:auto, so a long <select> option can force
   the column past the viewport on mobile — allow tracks to shrink. */
.cta-contact__grid > * { min-width: 0; }
.contact-form__field select { min-width: 0; }
.cta-contact__text { color: var(--text-inverse-soft); margin-bottom: var(--space-xl); }

.contact-form { position: relative; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.contact-form__field { margin-bottom: var(--space-lg); }
.contact-form__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inverse-soft);
  margin-bottom: 8px;
}
.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
  width: 100%;
  background: rgba(233, 238, 242, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: 14px 16px;
  min-height: 48px;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.contact-form__field textarea { resize: vertical; min-height: 130px; }
.contact-form__field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9BAC6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.contact-form__field select option { color: var(--text); background: var(--white); }
.contact-form__field input::placeholder, .contact-form__field textarea::placeholder { color: rgba(169, 186, 198, 0.55); }
.contact-form__field input:focus, .contact-form__field textarea:focus, .contact-form__field select:focus {
  outline: none;
  border-color: var(--brass-light);
  background: rgba(233, 238, 242, 0.1);
}
.contact-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-form__note { font-size: var(--text-xs); color: var(--text-inverse-soft); margin-top: var(--space-md); }
/* Underline: brass link is only 1.91:1 against the note text — color alone can't mark it */
.contact-form__note a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__note a:hover { color: var(--ivory); }

.contact-info-card {
  background: rgba(233, 238, 242, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.contact-info-card__title {
  font-size: var(--text-xl);
  color: var(--ivory);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line-dark);
}
.contact-info-card__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-inverse-soft);
  line-height: 1.65;
}
.contact-info-card__item:last-child { margin-bottom: 0; }
/* Long unbreakable strings (office email) overflow 320px viewports */
.contact-info-card__item > div { min-width: 0; overflow-wrap: anywhere; }
.contact-info-card__item strong { color: var(--ivory); }
.contact-info-card__icon { width: 20px; height: 20px; color: var(--brass-light); flex: none; margin-top: 3px; }
.contact-info-card__icon svg { width: 100%; height: 100%; }

/* Light variant */
.contact-info-card--light { background: var(--white); border-color: var(--line-light); }
.contact-info-card--light .contact-info-card__title { color: var(--navy); border-color: var(--line-light); }
.contact-info-card--light .contact-info-card__item { color: var(--text-soft); }
.contact-info-card--light .contact-info-card__item strong { color: var(--navy); }
.contact-info-card--light .contact-info-card__icon { color: var(--brass-dark); }

/* ═══════════════════════════════════════════════════════════════════════════
   14. CTA BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: var(--navy);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(13, 35, 51, 0.82), rgba(13, 35, 51, 0.82)),
    var(--cta-bg, linear-gradient(140deg, var(--navy), var(--ink))) center / cover no-repeat;
}
.cta-banner h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  max-width: 22ch;
  margin: 0 auto var(--space-md);
}
.cta-banner p {
  color: var(--text-inverse-soft);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin: 0 auto var(--space-xl);
}
.cta-banner .btn + .btn { margin-left: var(--space-md); }

/* ═══════════════════════════════════════════════════════════════════════════
   15. INTERIOR PAGE HEROES
   ═══════════════════════════════════════════════════════════════════════════ */
.pa-hero, .faq-hero {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.pa-hero::before, .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 35, 51, 0.94) 0%, rgba(13, 35, 51, 0.78) 55%, rgba(13, 35, 51, 0.45) 100%),
    var(--page-hero-bg, linear-gradient(140deg, var(--ink), var(--navy))) center 30% / cover no-repeat;
}
.pa-hero .container, .faq-hero .container { position: relative; }
.pa-hero h1, .faq-hero h1 { color: var(--ivory); max-width: 18ch; margin-bottom: var(--space-md); }
.pa-hero .section__subtitle, .faq-hero .section__subtitle { color: var(--text-inverse-soft); }
.pa-hero__breadcrumb {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse-soft);
  margin-bottom: var(--space-xl);
}
.pa-hero__breadcrumb a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; } /* color alone can't distinguish the link (axe link-in-text-block) */
.pa-hero__breadcrumb a:hover { color: var(--ivory); }

.section h2:not(.section__title) { margin: var(--space-xl) 0 var(--space-md); }
.section p + h2 { margin-top: var(--space-2xl); }

/* ═══════════════════════════════════════════════════════════════════════════
   16. HOW WE HELP
   ═══════════════════════════════════════════════════════════════════════════ */
.how-we-help__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.how-we-help__item {
  display: flex;
  gap: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.how-we-help__item:hover { border-color: var(--brass); box-shadow: var(--shadow-card); }
.how-we-help__icon { width: 34px; height: 34px; color: var(--brass-dark); flex: none; margin-top: 3px; }
.how-we-help__icon svg { width: 100%; height: 100%; }
.how-we-help__item h4, .how-we-help__item .card-title { margin-bottom: var(--space-sm); }
.how-we-help__item p { font-size: var(--text-sm); color: var(--text-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   17. FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */
.faq-accordion { max-width: 860px; }
.faq-accordion details {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out);
}
.faq-accordion details[open] { border-color: var(--brass); }
.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
  transition: color 0.2s var(--ease-out);
}
.faq-accordion summary:hover { color: var(--brass-dark); }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brass-dark);
  flex: none;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-out);
}
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  color: var(--text-soft);
  font-size: var(--text-base);
  line-height: 1.75;
  border-top: 1px solid var(--line-light);
  padding-top: 18px;
  margin: 0 24px 22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--ink); color: var(--text-inverse-soft); }
.site-footer__main { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.site-footer__logo { display: flex; align-items: center; gap: 16px; margin-bottom: var(--space-lg); }
.site-footer__logo img { width: 56px; height: auto; }
.site-footer__logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.1;
}
.site-footer__logo-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 4px;
}
.site-footer__tagline { font-size: var(--text-sm); line-height: 1.75; margin-bottom: var(--space-xl); max-width: 34ch; }
.site-footer__social { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--text-inverse-soft);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.site-footer__social a:hover { border-color: var(--brass-light); color: var(--brass-light); }
.site-footer__social svg { width: 17px; height: 17px; }
.site-footer__social-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px dashed var(--line-dark);
  border-radius: 50%;
  color: var(--text-inverse-soft);
  opacity: 0.45;
  cursor: default;
}
.site-footer__social-soon svg { width: 17px; height: 17px; }
.site-footer__wordlink { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; width: auto; padding-inline: 16px; border-radius: 22px; }

.site-footer__col h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__col ul li { margin-bottom: 4px; }
.site-footer__col ul a, .site-footer__col ul span {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--text-inverse-soft);
  line-height: 1.6;
}
.site-footer__col ul a:hover { color: var(--brass-light); }
.site-footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--brass-light); }
.site-footer__cta { margin-top: var(--space-xl); }

.site-footer__legal {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--space-xl);
}
.site-footer__disclaimer { font-size: 0.75rem; line-height: 1.7; color: rgba(169, 186, 198, 0.7); max-width: 90ch; margin-bottom: var(--space-md); }
.site-footer__copyright { font-size: 0.75rem; color: rgba(169, 186, 198, 0.7); }
.site-footer__credit {
  margin-top: var(--space-2xl);
  text-align: center;
}
.site-footer__credit-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(169, 186, 198, 0.78); /* 0.6 blends to 3.81:1 on the footer navy; 0.78 clears AA */
  margin-bottom: var(--space-md);
}
.site-footer__credit a {
  display: inline-block;
  transition: opacity 0.2s var(--ease-out);
}
.site-footer__credit a:hover { opacity: 0.8; }
.site-footer__credit img { height: 64px; width: auto; display: block; margin-inline: auto; }
.site-footer__legal-links {
  font-size: 0.75rem;
  color: rgba(169, 186, 198, 0.7);
  display: flex;
  flex-wrap: wrap; /* four links + prefs button must wrap at 320px */
  align-items: center;
  gap: 6px 10px;
  margin-top: var(--space-sm);
}
.site-footer__legal-links a { color: rgba(169, 186, 198, 0.9); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__legal-links a:hover { color: var(--brass-light); }
.site-footer__prefs {
  font-size: 0.75rem;
  color: rgba(169, 186, 198, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.site-footer__prefs:hover { color: var(--brass-light); }

/* ═══════════════════════════════════════════════════════════════════════════
   17b. COOKIE CONSENT BANNER (v5.1.0)
   ═══════════════════════════════════════════════════════════════════════════ */
/* Fixed above everything interactive (header 50, mobile nav 60/61) so the
   choice is always reachable; skip-link (100) stays on top. */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  background: var(--navy);
  color: var(--ivory);
  border-top: 1px solid var(--brass);
  box-shadow: 0 -6px 24px rgba(16, 32, 45, 0.35);
}
.consent-banner__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.consent-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(233, 238, 242, 0.92);
}
.consent-banner__text a {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-banner__text a:hover { color: var(--ivory); }
/* Accept and Decline are deliberately identical — no nudging */
.consent-banner__btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 12px 26px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  white-space: nowrap;
}
.consent-banner__btn:hover { background: var(--brass); color: #10202D; }
.consent-banner__actions { display: flex; gap: var(--space-sm); flex: none; }
@media (max-width: 640px) {
  .consent-banner__inner { flex-direction: column; align-items: stretch; gap: var(--space-md); }
  .consent-banner__actions { flex-direction: column; }
  .consent-banner__btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   17c. LEGAL PROSE (privacy policy et al., v5.1.0)
   ═══════════════════════════════════════════════════════════════════════════ */
.legal-prose { max-width: 820px; }
.legal-prose p a, .legal-prose li a { text-decoration: underline; text-underline-offset: 2px; }
/* Emails/URLs appear as plain text in the policy — must break at 320px */
.legal-prose p, .legal-prose li, .legal-prose td { overflow-wrap: anywhere; }
.legal-prose h2 { font-size: var(--text-2xl); margin: var(--space-2xl) 0 var(--space-md); }
.legal-prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--space-md); }
.legal-prose li { margin-bottom: 6px; }
.legal-draft-note {
  background: #FBF3E2;
  border: 1px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  margin-bottom: var(--space-xl);
}
/* Table scrolls inside its own wrapper at narrow widths — never the page */
.legal-table-wrap { overflow-x: auto; margin-bottom: var(--space-md); }
.legal-prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.875rem; }
.legal-prose th, .legal-prose td {
  border: 1px solid var(--line-light);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-prose th { background: var(--off-white); font-weight: 600; color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════════════════
   18b. EDITORIAL BODY IMAGERY (v5.0.7)
   ═══════════════════════════════════════════════════════════════════════════ */
/* Inset figure between text sections — magazine-style editorial break */
.body-figure {
  margin: var(--space-2xl) 0 0;
  border: 1px solid var(--line-light);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.body-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Full-bleed image band between sections (About page) */
.figure-band { line-height: 0; }
.figure-band img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
/* Above laptop widths the band stops tracking the viewport and insets like .body-figure */
@media (min-width: 1440px) {
  .figure-band { max-width: 1320px; margin-inline: auto; border: 1px solid var(--line-light); }
  .figure-band img { max-height: 480px; }
}

/* Image-topped index cards (Practice Areas / FAQ indexes) */
.pa-card__img {
  display: block;
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.pa-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease-out);
}
.related-pa__card:hover .pa-card__img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .related-pa__card:hover .pa-card__img img { transform: none; }
}
@media (max-width: 768px) {
  .body-figure { margin-top: var(--space-xl); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   19. ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: 0.09s; }
.anim-delay-2 { transition-delay: 0.18s; }
.anim-delay-3 { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   20. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
/* With "Social" in the menu, nowrap nav + CTA no longer fit below ~1240px.
   The utility bar sheds items as it narrows (social icons stay — address and
   rating repeat in the footer/mobile menu): address ≤1240, rating ≤900. */
@media (max-width: 1240px) {
  .header-cta { display: none; }
  /* .header-top .x beats the base `.header-top span { display:inline-flex }` */
  .header-top .header-top__address { display: none; }
}
@media (max-width: 900px) {
  .header-top .header-top__rating { display: none; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  :root { --header-h: 76px; }

  .spotlight__grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .spotlight__image { max-width: 480px; }
  .cta-contact__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .pa-index__row { grid-template-columns: 60px 1fr 40px; }
  .pa-index__desc { display: none; }
  .pa-index__thumb { display: none; }
}

@media (max-width: 768px) {
  .header-top__meta { display: none; }
  .header-top__email span { display: none; }

  .value-props__grid, .value-props__grid--2 { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .how-we-help__grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .trust-bar__grid { flex-wrap: wrap; }
  .trust-bar__item { flex: 1 1 40%; padding-block: var(--space-md); }
  .trust-bar__divider { display: none; }
  .spotlight__credentials { grid-template-columns: 1fr; }
  .spotlight__badge { left: 12px; bottom: 14px; padding: 10px 16px; }
  .cta-banner .btn { width: 100%; max-width: 340px; }
  .cta-banner .btn + .btn { margin-left: 0; margin-top: var(--space-md); }
  .hero__actions .btn { width: 100%; max-width: 340px; }
  .hero__scroll { display: none; }
  .hero { min-height: 560px; }
  .hero__media img { object-position: 78% center; }
}

@media (max-width: 560px) {
  /* Offset image-frame decorations must stay inside the 20px container
     padding or they create horizontal scroll. */
  .spotlight__image-frame::before { top: -14px; left: -14px; }
  .spotlight__image-frame::after { bottom: -14px; right: -14px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-logo__name { font-size: 1.2rem; }
  .site-logo__mark { width: 42px; }
  .pa-index__num { display: none; }
  .pa-index__row { grid-template-columns: 1fr 34px; }
}

/* FAQ sidebar layout (grid set inline in content) */
@media (max-width: 900px) {
  .faq-layout { display: block !important; }
  .faq-layout aside, .faq-layout .faq-aside { margin-top: var(--space-2xl); } /* .faq-aside: div now (aside = nested landmark) */
}

/* Map band */
.map-band iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(0.35) sepia(0.08); }

/* ═══════════════════════════════════════════════════════════════════════════
   21. AVVO BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
.avvo-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
/* Badge artwork carries its own white shield/frame fills, so containers stay
   transparent — hairline borders only, tinted per context. */
.avvo-badges a {
  display: block;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 14px 10px 8px;
  transition: border-color 0.25s var(--ease-out);
}
.avvo-badges a:hover { border-color: var(--brass); }
.avvo-badges svg { display: block; }
.section--dark .avvo-badges a,
.testimonials .avvo-badges a {
  border-color: rgba(233, 238, 242, 0.14);
}
.section--dark .avvo-badges a:hover,
.testimonials .avvo-badges a:hover {
  border-color: var(--brass-light);
}
@media (max-width: 560px) {
  .avvo-badges svg { height: 96px !important; width: 124px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   22. SOCIAL PAGE (v5.0.13)
   ═══════════════════════════════════════════════════════════════════════════ */
.social-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.social-card:hover { border-color: var(--brass); box-shadow: var(--shadow-card); }
.social-card--primary { border-color: var(--brass); }
.social-card__badge {
  position: absolute;
  top: 0;
  right: var(--space-lg);
  transform: translateY(-50%);
  background: var(--brass);
  color: #10202D;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.social-card__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: var(--space-lg);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.social-card__icon svg { width: 20px; height: 20px; }
.social-card:hover .social-card__icon { color: var(--brass-dark); border-color: var(--brass); }
.social-card__name { font-size: var(--text-xl); margin-bottom: 2px; }
.social-card__handle {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: var(--space-md);
  overflow-wrap: anywhere;
}
.social-card__desc { font-size: var(--text-sm); color: var(--text-soft); margin-bottom: var(--space-xl); }
.social-card__btn { margin-top: auto; padding: 13px 22px; min-height: 44px; font-size: 0.75rem; }
.social-card--soon .social-card__icon,
.social-card--soon .social-card__name { opacity: 0.55; }
.social-card__btn--soon {
  cursor: default;
  color: var(--text-soft);
  border-color: var(--line-light);
  border-style: dashed;
}
.social-card--soon:hover { border-color: var(--line-light); box-shadow: none; }
.social-card--soon:hover .social-card__icon { color: var(--navy); border-color: var(--line-light); }

/* Feed section header: title block left, follow button right */
.social-feed__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.social-feed__head .btn { flex: none; margin-bottom: 6px; }
.social-feed { margin-top: var(--space-2xl); }

/* Smash Balloon embeds — keep plugin UI inside v5's voice. Light touch until
   feeds are connected; deepen overrides once real posts render (Phase 2). */
.social-feed .sbtt-tiktok-feed,
.social-feed #sb_instagram,
.social-feed #cff { font-family: var(--font-sans) !important; }
.social-feed #sb_instagram .sbi_follow_btn a,
.social-feed #cff .cff-viewall {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .social-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .social-feed__head { align-items: flex-start; flex-direction: column; }
  .social-feed__head .btn { margin-bottom: 0; }
  .social-feed { margin-top: var(--space-xl); }
}
@media (max-width: 400px) {
  /* .btn's nowrap makes "Follow @handle" min-content wider than a 320px
     viewport; the handle is one unbreakable word, so let the label wrap. */
  .social-feed__head .btn { white-space: normal; text-align: center; overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .social-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   23. AWARD MOTION LAYER (v5.2.0)
   "Quiet Counsel, in motion" — hero parallax, masked word reveals, magnetic
   CTAs, cursor-tracked practice-area previews, smart header, intro veil.
   Everything here is an enhancement: without JS (or under reduced-motion /
   coarse pointers) the page renders exactly as v5.1.x did. All motion is
   transform/opacity only. JS hooks live in assets/js/main.js.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Smart header ───────────────────────────────────────────────────────── */
.site-header { transition: transform 0.35s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Condense: utility bar slides away, masthead tightens (desktop only — the
   mobile bar is already minimal and its height feeds hero math). */
@media (min-width: 1025px) {
  .header-top {
    max-height: 48px;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out), opacity 0.25s var(--ease-out);
  }
  .site-header.is-condensed .header-top { max-height: 0; opacity: 0; }
  .header-main__inner { transition: height 0.3s var(--ease-out); }
  .site-header.is-condensed .header-main__inner { height: 68px; }
  .site-header.is-condensed .site-logo__mark { width: 42px; transition: width 0.3s var(--ease-out); }
}

/* Scroll-progress hairline (element injected by JS at the header's base) */
.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-light) 100%);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* ─── Hero parallax + content drift ─────────────────────────────────────── */
/* JS adds .hero--parallax when active (≥1024px, fine pointer, motion OK).
   The media canvas overruns the frame by 14% top/bottom so the drift never
   exposes an edge; the gradient overlay stays put, which IS the parallax. */
.hero--parallax .hero__media {
  inset: -14% 0;
  transform: translate3d(0, var(--hero-py, 0px), 0);
  will-change: transform;
}
.hero--parallax .hero__content {
  transform: translate3d(0, var(--hero-cy, 0px), 0);
  opacity: var(--hero-co, 1);
  will-change: transform, opacity;
}

/* ─── Masked word reveals ───────────────────────────────────────────────── */
/* JS splits [data-split-words] into <span class="w-mask"><span class="w-word">
   at runtime; crawlers and no-JS visitors see the original untouched text. */
.w-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;   /* descender room inside the mask */
  margin-bottom: -0.1em;
}
.w-word {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}
/* Parent (or an anim-fade-up ancestor) gaining .visible releases the words. */
.anim-fade-up.visible .w-word,
[data-split-words].visible .w-word {
  transform: translateY(0);
  transition: transform 0.72s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 48ms);
}

/* Eyebrow rule draws itself in as its header block reveals */
.anim-fade-up .section__eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-out) 0.15s;
}
.anim-fade-up.visible .section__eyebrow::before { transform: scaleX(1); }
.section__header--center .section__eyebrow::before { transform-origin: center; }

/* ─── Magnetic CTAs + sheen ─────────────────────────────────────────────── */
@media (pointer: fine) {
  .btn--magnetic { transition: transform 0.28s var(--ease-out), background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out); will-change: transform; }
}
/* Light sweeps across brass buttons on hover (background layer, so the focus
   outline is never clipped — no overflow:hidden). */
.btn-brass, .btn-gold {
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 68%);
  background-size: 260% 100%;
  background-position: 105% 0;
  background-repeat: no-repeat;
}
.btn-brass:hover, .btn-gold:hover {
  background-position: -5% 0;
  transition: background-position 0.65s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out), transform 0.28s var(--ease-out);
}

/* ─── Practice-area floating preview ────────────────────────────────────── */
/* JS builds .pa-float from the rows' existing thumbs and tracks the cursor;
   the per-row CSS thumb stays as the fallback when JS/touch says no. */
.pa-float {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 24vw);
  aspect-ratio: 3 / 2;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-500px, -500px, 0) scale(0.9) rotate(-3deg);
  transition: opacity 0.25s var(--ease-out);
  will-change: transform;
}
.pa-float.is-active { opacity: 1; }
.pa-float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 26px 54px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.32s var(--ease-out), transform 0.45s var(--ease-out);
}
.pa-float img.is-current { opacity: 1; transform: scale(1); }
/* While the float is live, the static per-row thumbs stay out of the way. */
body.pa-cursor-active .pa-index__thumb { visibility: hidden; }
/* Rows lean into the preview: brass hairline sweeps in under the hovered row */
.pa-index__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.pa-index__row:hover::after { transform: scaleX(1); }

/* ─── Intro veil (once per session, homepage only) ─────────────────────── */
/* header.php adds html.veiling before first paint; main.js builds the veil,
   choreographs the entrance, waits on the hero image, then parts the ivory
   "doors" and releases the hero reveal (which html.veiling holds back). */
html.veiling { overflow: hidden; }
html.veiling .hero__media img { animation: none; } /* Ken Burns starts as doors part */

.intro-veil { position: fixed; inset: 0; z-index: 200; }
.intro-veil__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--ivory);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24,1);
  will-change: transform;
}
.intro-veil__panel--l { left: 0; border-right: 1px solid rgba(168, 131, 75, 0.4); }
.intro-veil__panel--r { right: 0; }
.intro-veil.is-exiting .intro-veil__panel--l { transform: translateX(-102%); }
.intro-veil.is-exiting .intro-veil__panel--r { transform: translateX(102%); }

.intro-veil__mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.intro-veil.is-exiting .intro-veil__mark { opacity: 0; transform: scale(0.96) !important; }
.intro-veil__mask { display: block; overflow: hidden; }
.intro-veil__mask img {
  width: 84px;
  height: auto;
  transform: translateY(115%);
  animation: veilMarkRise 0.7s var(--ease-out) 0.15s forwards;
}
@keyframes veilMarkRise { to { transform: translateY(0); } }
.intro-veil__name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: veilFade 0.65s var(--ease-out) 0.7s forwards;
}
.intro-veil__rule {
  width: 120px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  animation: veilRule 0.7s var(--ease-out) 1.0s forwards;
}
@keyframes veilRule { to { transform: scaleX(1); } }
.intro-veil__caption {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #7A5E33;
  opacity: 0;
  animation: veilFade 0.65s var(--ease-out) 1.25s forwards;
}
@keyframes veilFade { to { opacity: 1; } }

/* ─── Reduced-motion + touch fallbacks ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .w-word { transform: none !important; transition: none !important; }
  .anim-fade-up .section__eyebrow::before { transform: none; transition: none; }
  .site-header, .header-top, .header-main__inner { transition: none; }
  .hero--parallax .hero__media,
  .hero--parallax .hero__content { transform: none; opacity: 1; }
  .btn-brass, .btn-gold { background-image: none; }
  .intro-veil { display: none; }
}
@media (max-width: 1024px) {
  .pa-float { display: none; }
}

/* Mobile-nav close fix (v5.2.0): the sticky header's stacking context
   (z-index 50) trapped .nav-toggle below the full-screen nav (z-index 60),
   so the hamburger could open the menu but the X could never be tapped.
   Raise the header while the nav is open; flip the X back to navy since it
   now sits on the ivory masthead instead of the dark overlay. */
body.nav-open .site-header { z-index: calc(var(--z-mobile-nav) + 1); }
body.nav-open .nav-toggle.is-open span { background: var(--navy); }

/* ═══════════════════════════════════════════════════════════════════════════
   24. v6.0 — PLATFORM LAYER
   Self-hosted fonts · responsive <picture> · view transitions · WCAG 2.2 ·
   mobile action bar · map facade · 404 · print · forced-colors.
   Everything below is progressive: unsupported browsers get v5 behaviour.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Fonts (variable WOFF2, latin subset, SIL OFL) ────────────────────────
   Files: assets/fonts/*.woff2 (from Google Fonts' static CDN, self-hosted:
   no third-party request, no fonts.googleapis.com in the privacy policy).
   Fallback faces are metric-matched (size-adjust from weighted English
   advance widths; ascent/descent from hhea) so text set in Georgia/Arial
   occupies the same lines until the webfont arrives. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 88.8%;
  ascent-override: 104%;
  descent-override: 32.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107.5%;
  ascent-override: 90.1%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

/* ─── Responsive images ────────────────────────────────────────────────────
   inc/media.php wraps content <img> in <picture>; display:contents keeps every
   existing `.wrapper img` rule (sizes, object-fit, radii) working unchanged. */
picture { display: contents; }
/* With display:contents the <source> children become grid/flex items of the picture's parent
   (blockified, empty) — e.g. the home practice list gained a phantom 4th cell and its arrow wrapped. */
picture > source { display: none; }

/* ─── Document-level polish ───────────────────────────────────────────────── */
html {
  scroll-padding-top: calc(var(--header-h) + 20px); /* anchors land below the sticky header (WCAG 2.4.11) */
  scrollbar-gutter: stable;                          /* no reflow when the menu/veil locks scrolling */
}
h1, h2, h3, .hero__title, .section__title, .cta-banner h2 { text-wrap: balance; }
p, li, .section__subtitle, .hero__subtitle, .value-card__text { text-wrap: pretty; }
.contact-form__field textarea { field-sizing: content; min-height: 130px; max-height: 40vh; }

/* ─── Cross-document view transitions (Chromium 126+, Safari 18.2+) ────────
   Page-to-page navigation crossfades instead of flashing white; the header,
   consent banner and mobile bar are named so they persist rather than fade.
   Combined with WP speculative prerender, most clicks feel instant. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .consent-banner { view-transition-name: consent-banner; }
  .mobile-bar { view-transition-name: mobile-bar; }
  ::view-transition-old(root) { animation: vtOut 0.2s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vtIn 0.34s var(--ease-out) both; }
  @keyframes vtOut { to { opacity: 0; } }
  @keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
}

/* ─── Consent banner entrance (@starting-style) ─────────────────────────────
   Slides up on first appearance; dismissal is immediate (the choice is
   acknowledged the instant it is made — no lingering overlay). */
.consent-banner {
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.consent-banner[hidden] { display: none; }
@starting-style {
  .consent-banner:not([hidden]) { transform: translateY(100%); opacity: 0; }
}

/* ─── FAQ accordion: animate open/close where height:auto is interpolable ── */
@supports (interpolate-size: allow-keywords) {
  .faq-accordion { interpolate-size: allow-keywords; }
  .faq-accordion details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.32s var(--ease-out), content-visibility 0.32s allow-discrete;
  }
  .faq-accordion details[open]::details-content { block-size: auto; }
}

/* ─── Scroll-driven drift on editorial figures (CSS-only parallax) ─────────
   Only where the timeline is supported AND motion is welcome; the image is
   always fully visible — the effect is purely decorative. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .body-figure, .figure-band { overflow: hidden; }
    .body-figure img, .figure-band img {
      scale: 1.12;
      animation: figDrift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes figDrift { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}

/* ─── Mobile quick-action bar (≤768px) ───────────────────────────────────── */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 55; /* above header (50), below mobile nav (60) and consent (70) */
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 24px -12px rgba(13, 35, 51, 0.45);
  }
  .mobile-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding-inline: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
  }
  .mobile-bar svg { width: 16px; height: 16px; flex: none; }
  .mobile-bar__call { background: var(--brass); color: #10202D; }
  .mobile-bar__call:hover { background: var(--brass-light); color: #10202D; }
  .mobile-bar__consult { color: var(--ivory); }
  .mobile-bar__consult:hover { color: var(--brass-light); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  /* Never stack on the consent banner or the open menu */
  body:has(#consent-banner:not([hidden])) .mobile-bar,
  body.nav-open .mobile-bar { display: none; }
  body:has(#consent-banner:not([hidden])) { padding-bottom: 0; }
}

/* ─── Contact form status (replaces alert()) ─────────────────────────────── */
.contact-form__status {
  margin-top: var(--space-md);
  padding: 12px 16px;
  border: 1px solid var(--brass-light);
  border-radius: var(--radius-sm);
  background: rgba(233, 238, 242, 0.06);
  color: var(--ivory);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.contact-form__status--error { border-color: #E39A9A; }

/* ─── Testimonial pause/play (WCAG 2.2.2) ────────────────────────────────── */
.testimonial-pause {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--space-sm);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--text-inverse-soft);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.testimonial-pause:hover { color: var(--brass-light); border-color: var(--brass-light); }
.testimonial-pause svg { width: 16px; height: 16px; }

/* ─── Inline social row (Contact page, single-sourced) ───────────────────── */
.social-icons--inline { gap: var(--space-sm); margin-top: var(--space-md); flex-wrap: wrap; }
.social-icons--inline a, .social-icons--inline .social-icons__soon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--text-inverse-soft);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.social-icons--inline a:hover { color: var(--brass-light); border-color: var(--brass-light); }
.social-icons--inline .social-icons__soon { border-style: dashed; }
.social-icons--inline svg { width: 17px; height: 17px; }

/* ─── Map facade (click-to-load Google Maps) ─────────────────────────────── */
.map-facade {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(168, 131, 75, 0.14), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(22, 64, 91, 0.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(22, 64, 91, 0.06) 39px 40px),
    var(--cream);
  border-block: 1px solid var(--line-light);
}
.map-facade__inner { max-width: 560px; padding: var(--space-2xl) var(--space-xl); }
.map-facade__pin { width: 40px; height: 40px; color: var(--brass-dark); margin: 0 auto var(--space-md); }
.map-facade__pin svg { width: 100%; height: 100%; }
.map-facade__address { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--navy); margin-bottom: var(--space-xs); }
.map-facade__note { font-size: var(--text-sm); color: var(--text-soft); margin-bottom: var(--space-lg); }
.map-facade__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm) var(--space-md); }
.map-facade.is-loaded { display: block; min-height: 0; padding: 0; background: none; }
.map-facade.is-loaded iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(0.35) sepia(0.08); }

/* ─── Footer: responsible-attorney line (B&P § 6157.2(b), RPC 7.2(c)) ─────── */
.site-footer__responsible { font-size: 0.75rem; line-height: 1.7; color: rgba(169, 186, 198, 0.9); margin-bottom: var(--space-sm); }
.site-footer__responsible a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__responsible a:hover { color: var(--ivory); }

/* ─── 404 ────────────────────────────────────────────────────────────────── */
.not-found__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
a.value-card { display: block; color: inherit; }
a.value-card:hover .value-card__title { color: var(--brass-dark); }
.not-found__call { margin-top: var(--space-2xl); text-align: center; color: var(--text-soft); font-size: var(--text-sm); }
.not-found__call a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) { .not-found__grid { grid-template-columns: 1fr; } }

/* ─── User-preference media queries ──────────────────────────────────────── */
@media (prefers-contrast: more) {
  :root { --text-soft: #3C4852; --text-inverse-soft: #C9D4DC; --line-light: #C9C0B0; }
  .btn-outline-navy { border-color: var(--navy); }
  .section__eyebrow, .site-logo__sub { color: #5E4726; }
}
@media (forced-colors: active) {
  .btn, .consent-banner__btn, .testimonial-pause, .mobile-bar a { border: 1px solid ButtonText; forced-color-adjust: auto; }
  .testimonial-dot::after { background: ButtonText; }
  .testimonial-dot.is-active::after { background: Highlight; }
  .header-progress, .hero__overlay { display: none; }
  .nav-menu > li > a::after { background: LinkText; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .mobile-nav, .mobile-bar, .consent-banner, .hero__scroll, .header-progress,
  .site-footer__social, .site-footer__cta, .site-footer__credit, .site-footer__legal-links,
  .testimonial-nav, .avvo-badges, .intro-veil, .pa-float, .map-facade__actions { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section--dark, .cta-banner, .pa-hero, .faq-hero, .testimonials, .site-footer { background: #fff !important; color: #000 !important; }
  .section--dark h1, .section--dark h2, .section--dark h3, .section--dark p, .pa-hero h1, .cta-banner h2, .cta-banner p,
  .site-footer, .site-footer a, .site-footer h3, .testimonial-slide__quote { color: #000 !important; }
  .anim-fade-up { opacity: 1 !important; transform: none !important; }
  .testimonial-slide { display: block !important; }
  a[href^="http"]:not([href*="lawofficeofdedecker"])::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .faq-accordion details { break-inside: avoid; }
  .faq-accordion details::details-content { display: block !important; block-size: auto !important; }
}
