/* ============================================================
   RRN Legal — Heritage Emerald Design System
   ============================================================ */

/* --- Google Fonts: Lora + Work Sans (loaded via HTML) --- */

:root {
  /* Palette */
  --emerald:      #0D4C3C;
  --emerald-dark: #092e25;
  --emerald-mid:  #165c4a;
  --gold:         #C69B3C;
  --gold-light:   #dbb96a;
  --ivory:        #F4EADE;
  --ivory-dark:   #ece0cc;
  --onyx:         #1A1A1A;
  --onyx-soft:    #3a3a3a;
  --white:        #ffffff;
  --muted:        #7a7062;
  --border:       #d8cbb8;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-body:  'Work Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Layout */
  --container: 1140px;
  --container-narrow: 780px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.4s;
  --duration-slow: 0.8s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--onyx);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: var(--container-narrow);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--emerald);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--onyx-soft); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--onyx-soft);
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--emerald);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--emerald);
  color: var(--ivory);
  border: 1.5px solid var(--emerald);
}
.btn--primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
}
.btn--outline:hover {
  background: var(--emerald);
  color: var(--ivory);
}
.btn--gold {
  background: var(--gold);
  color: var(--onyx);
  border: 1.5px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn--outline-ivory {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid rgba(244,234,222,0.6);
}
.btn--outline-ivory:hover {
  background: rgba(244,234,222,0.15);
  border-color: var(--ivory);
}

/* ---- Gold Rule ---- */
.gold-rule {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.gold-rule--center { margin-left: auto; margin-right: auto; }
.gold-rule--full {
  width: 100%;
  opacity: 0.3;
}

/* --- Gold rule draw-in animation --- */
@keyframes drawRule {
  from { width: 0; }
  to   { width: 3rem; }
}
.animate-rule .gold-rule {
  animation: drawRule 0.8s var(--ease) both;
}

/* ---- Sections ---- */
.section {
  padding: var(--space-lg) 0;
}
.section--lg {
  padding: var(--space-xl) 0;
}
.section--emerald {
  background: var(--emerald);
  color: var(--ivory);
}
.section--emerald h1,
.section--emerald h2,
.section--emerald h3,
.section--emerald h4 {
  color: var(--ivory);
}
.section--emerald p { color: rgba(244,234,222,0.85); }
.section--emerald .section-label { color: var(--gold-light); }
.section--ivory-dark {
  background: var(--ivory-dark);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header .section-label { display: block; }
.section-header p { margin-top: 0.75rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,234,222,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(13,76,60,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--onyx-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  transition: color var(--duration) var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.75rem; right: 0.75rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}
.nav-link:hover { color: var(--emerald); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--emerald); }

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  aria-label: "Toggle menu";
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--emerald);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.mobile-nav.open { max-height: 500px; }
.mobile-nav .nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.mobile-nav .nav-link::after { display: none; }
.mobile-nav .nav-cta {
  margin: 1rem 1.5rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ivory);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, var(--ivory-dark) 0%, rgba(13,76,60,0.06) 100%);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-content {}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .section-label { margin: 0; }
.hero-eyebrow-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--emerald-mid);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--onyx-soft);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero-meta-value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--emerald);
}
.hero-meta-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}
.hero-scene {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: -12px -12px auto auto;
  width: 60%;
  height: 60%;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  z-index: 1;
}
.hero-frame::after {
  content: '';
  position: absolute;
  inset: auto auto -12px -12px;
  width: 60%;
  height: 60%;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  z-index: 1;
}

/* --- Animated particle-network banner --- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero { isolation: isolate; }

/* --- Hero motion: STATIC scale, strong motion AROUND it --- */
.hero-frame { z-index: 1; }
.rrn-scale { /* the scale itself stays still */ }

/* every animated element pivots on the scale's centre (240,130) in the 480x360 viewBox */
.scale-glow, .scale-pulse, .scale-orbit, .scale-track {
  transform-box: view-box;
  transform-origin: 240px 130px;
}
/* pulsing aura behind the scale */
.scale-glow { animation: scaleGlow 3.2s ease-in-out infinite; }
@keyframes scaleGlow {
  0%, 100% { opacity: 0.05; transform: scale(0.85); }
  50%      { opacity: 0.20; transform: scale(1.12); }
}
/* radar-style rings radiating outward from the scale */
.scale-pulse { opacity: 0; animation: scalePulse 3s ease-out infinite; }
.scale-pulse--2 { animation-delay: 1s; }
.scale-pulse--3 { animation-delay: 2s; }
@keyframes scalePulse {
  0%   { transform: scale(0.35); opacity: 0.65; }
  70%  { opacity: 0.12; }
  100% { transform: scale(2.7); opacity: 0; }
}
/* orbiting ring of particles circling the scale */
.scale-orbit { animation: scaleOrbit 9s linear infinite; }
.scale-track { animation: scaleOrbit 22s linear infinite reverse; }
@keyframes scaleOrbit { to { transform: rotate(360deg); } }
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 116%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px dashed rgba(198, 155, 60, 0.35);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: rrnRingSpin 44s linear infinite;
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(198, 155, 60, 0.16);
  border-radius: 50%;
}
.hero-orb {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e3c074, var(--gold));
  box-shadow: 0 0 12px rgba(198, 155, 60, 0.55);
  z-index: 2;
  pointer-events: none;
  animation: rrnFloat 7s ease-in-out infinite;
}
.hero-orb--1 { top: 4%;  left: -4%;  animation-delay: 0s; }
.hero-orb--2 { top: 28%; right: -5%; width: 7px; height: 7px; animation-delay: 1.4s; }
.hero-orb--3 { bottom: 20%; left: -3%; width: 6px; height: 6px; animation-delay: 2.6s; }
.hero-orb--4 { bottom: -3%; right: 12%; width: 8px; height: 8px; animation-delay: 3.4s; }
@keyframes rrnFloat {
  0%, 100% { transform: translateY(0) scale(1);    opacity: 0.5; }
  50%      { transform: translateY(-16px) scale(1.18); opacity: 1; }
}
@keyframes rrnRingSpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { display: none; }
  .hero::before { display: none; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(244,234,222,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,234,222,0.7);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-bottom: 1px solid rgba(244,234,222,0.2); }
  .stat-item:nth-child(2), .stat-item:nth-child(4) { border-right: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
}

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}
.practice-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,76,60,0.1);
}
.practice-icon {
  width: 44px;
  height: 44px;
  color: var(--emerald);
}
.practice-card h3 {
  font-size: 1.05rem;
  color: var(--emerald);
}
.practice-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.practice-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .practice-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PARTNERS / PEOPLE
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.person-card:hover {
  box-shadow: 0 16px 40px rgba(13,76,60,0.12);
  transform: translateY(-4px);
}
.person-avatar {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.person-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.avatar-monogram {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: rgba(244,234,222,0.9);
  letter-spacing: 0.05em;
}
.person-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.person-info h3 {
  font-size: 1.1rem;
  color: var(--emerald);
  margin-bottom: 0.25rem;
}
.person-role {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.person-focus {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
  margin: 0;
}
.person-email {
  font-size: 0.82rem;
  color: var(--emerald, #0D4C3C);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0.6rem 0 0;
  word-break: break-word;
}
.person-bio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 1rem;
  transition: color var(--duration) var(--ease);
}
.person-card:hover .person-bio-link { color: var(--gold); }

@media (max-width: 768px) {
  .people-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLES / INSIGHTS
   ============================================================ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.article-card:hover {
  box-shadow: 0 12px 32px rgba(13,76,60,0.1);
  transform: translateY(-3px);
}
.article-card-category {
  display: inline-block;
  padding: 1rem 1.25rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.article-card-body {
  padding: 0.75rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card h3 {
  font-size: 1rem;
  color: var(--emerald);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.article-card p {
  font-size: 0.86rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}
.article-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* ---- Category Filter Chips ---- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-chip {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--muted);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--ivory);
}

/* ============================================================
   APPROACH / CREDO
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.approach-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.approach-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.approach-icon {
  width: 36px;
  height: 36px;
  background: rgba(13,76,60,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emerald);
}
.approach-item h4 {
  font-size: 0.95rem;
  color: var(--emerald);
  margin-bottom: 0.2rem;
}
.approach-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT CTA BAND
   ============================================================ */
.cta-band {
  background: var(--emerald);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--ivory); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(244,234,222,0.8); margin-bottom: 2rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--onyx);
  color: rgba(244,234,222,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244,234,222,0.1);
  margin-bottom: 2rem;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-logo .logo-name { color: var(--ivory); }
.footer-logo .logo-sub { color: rgba(244,234,222,0.5); }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(244,234,222,0.6);
  margin-bottom: 1rem;
}
.footer-nap {
  font-size: 0.82rem;
  line-height: 2;
  color: rgba(244,234,222,0.6);
}
.footer-nap a { transition: color var(--duration) var(--ease); }
.footer-nap a:hover { color: var(--gold-light); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,234,222,0.4);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(244,234,222,0.65);
  transition: color var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(244,234,222,0.45);
  max-width: 900px;
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(244,234,222,0.35);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(244,234,222,0.45);
  transition: color var(--duration) var(--ease);
  letter-spacing: 0.04em;
}
.back-to-top:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BCI MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13,76,60,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--ivory);
  max-width: 600px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-header {
  background: var(--emerald);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.modal-header svg { color: var(--gold); flex-shrink: 0; }
.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ivory);
  font-weight: 600;
}
.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}
.modal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal-body li {
  font-size: 0.88rem;
  color: var(--onyx-soft);
  line-height: 1.6;
}
.modal-body p {
  font-size: 0.88rem;
  margin-top: 1rem;
}
.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb li a { color: var(--emerald); }
.breadcrumb li a:hover { color: var(--gold); }
.breadcrumb li::after {
  content: '›';
  color: var(--border);
}
.breadcrumb li:last-child::after { display: none; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--emerald);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border: 1px solid rgba(198,155,60,0.2);
  border-radius: 50%;
}
.page-hero h1 { color: var(--ivory); margin-bottom: 0.75rem; }
.page-hero .lead { color: rgba(244,234,222,0.8); max-width: 600px; }
.page-hero .breadcrumb {
  margin-top: 1.5rem;
  border-color: rgba(244,234,222,0.15);
}
.page-hero .breadcrumb li { color: rgba(244,234,222,0.6); }
.page-hero .breadcrumb li a { color: rgba(244,234,222,0.85); }
.page-hero .breadcrumb li::after { color: rgba(244,234,222,0.3); }

/* ============================================================
   PRACTICE AREA DETAIL
   ============================================================ */
.pa-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.pa-section:last-of-type { border-bottom: none; }
.pa-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
}
.pa-sidebar {}
.pa-sidebar h2 { font-size: 1.4rem; }
.pa-sidebar .section-label { display: block; margin-bottom: 0.5rem; }
.pa-content {}
.pa-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.pa-bullets li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--onyx-soft);
}
.pa-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.55rem;
}
.pa-forums {
  background: var(--ivory-dark);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  border-radius: 0 2px 2px 0;
}
.pa-forums strong { color: var(--emerald); }

@media (max-width: 768px) {
  .pa-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PARTNER BIO PAGE
   ============================================================ */
.bio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) 0;
}
.bio-sidebar {
  position: sticky;
  top: 90px;
}
.bio-avatar {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.bio-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.bio-monogram {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(244,234,222,0.85);
}
.bio-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.bio-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.bio-contact-item svg { color: var(--emerald); flex-shrink: 0; }
.bio-contact-item a { color: var(--emerald); }
.bio-contact-item a:hover { color: var(--gold); }

.bio-content h2 {
  font-size: 1.3rem;
  color: var(--emerald);
  margin: 2rem 0 0.75rem;
}
.bio-content h2:first-child { margin-top: 0; }
.bio-content p { font-size: 0.95rem; }
.bio-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.bio-pill {
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: var(--emerald);
}
.empanelment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.emp-tag {
  background: rgba(13,76,60,0.07);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--emerald-mid);
}

@media (max-width: 768px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-sidebar { position: static; }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  align-items: start;
}
.article-body {}
.article-header { margin-bottom: 2rem; }
.article-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(198,155,60,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--emerald);
  margin-bottom: 1rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ivory);
  flex-shrink: 0;
}
.byline-author a { color: var(--emerald); font-weight: 500; }
.byline-author a:hover { color: var(--gold); }

.article-body h2 {
  font-size: 1.3rem;
  color: var(--emerald);
  margin: 2.5rem 0 1rem;
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 {
  font-size: 1.05rem;
  color: var(--emerald-mid);
  margin: 1.5rem 0 0.5rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 0.95rem;
  color: var(--onyx-soft);
  margin-bottom: 0.4rem;
}
.article-body li strong { color: var(--emerald); }
.article-body p { font-size: 0.95rem; }

.article-faq { margin: 2rem 0; }
.article-faq h2 { margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--emerald);
  background: var(--ivory-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.faq-question:hover { background: var(--ivory); }
.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
  color: var(--gold);
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  font-size: 0.9rem;
  color: var(--onyx-soft);
}
.faq-answer.open {
  max-height: 400px;
  padding: 1rem 1.25rem;
}

.article-disclaimer {
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2.5rem;
  border-radius: 0 2px 2px 0;
}

/* Author box */
.author-box {
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2.5rem 0;
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ivory);
}
.author-box-info h4 {
  font-size: 0.95rem;
  color: var(--emerald);
  margin-bottom: 0.25rem;
}
.author-box-info .author-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.author-box-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.author-box-info a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
}
.author-box-info a:hover { color: var(--gold); }

/* Article sidebar */
.article-sidebar {}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.related-item {
  font-size: 0.85rem;
  color: var(--emerald);
  line-height: 1.35;
  text-decoration: none;
}
.related-item:hover { color: var(--gold); }
.related-item-cat {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}
.contact-info {}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(13,76,60,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emerald);
}
.contact-item-body {}
.contact-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-item-value {
  font-size: 0.95rem;
  color: var(--onyx-soft);
}
.contact-item-value a { color: var(--emerald); }
.contact-item-value a:hover { color: var(--gold); }

.map-wrapper {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2rem;
}
.map-wrapper iframe { display: block; width: 100%; border: none; }

.contact-form {}
.contact-form h2 { margin-bottom: 0.5rem; }
.contact-form p.lead { margin-bottom: 2rem; }
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--onyx-soft);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  color: var(--onyx);
  transition: border-color var(--duration) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--emerald);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}
.errormsg {
  display: none;
  font-size: 0.78rem;
  color: #b4232a;
  margin-top: 0.35rem;
}
.form-status {
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  border-left: 3px solid var(--emerald);
}
.form-status.is-success {
  color: var(--emerald);
  background: rgba(13, 76, 60, 0.06);
  border-left-color: var(--emerald);
}
.form-status.is-error {
  color: #b4232a;
  background: rgba(180, 35, 42, 0.06);
  border-left-color: #b4232a;
}
#enquiry-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
}
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.vm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 2rem;
  border-radius: 0 0 2px 2px;
}
.vm-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.vm-card p { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .vision-mission-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) 0;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(13,76,60,0.12);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.error-page p {
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ============================================================
   CONNECT / DIGITAL CARD PAGES
   ============================================================ */

/* ---- Firm hub hero band ---- */
.connect-hero-band {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.connect-hero-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.connect-monogram-lg {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.connect-save-btn {
  min-height: 52px;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  white-space: nowrap;
}

/* ---- Two-col layout (office + quick contact) ---- */
.connect-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .connect-two-col { grid-template-columns: 1fr; }
}

/* ---- Address ---- */
.connect-address {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--onyx-soft);
  margin-top: 0.5rem;
}

/* ---- Action row (directions buttons) ---- */
.connect-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.connect-action-btn {
  min-height: 48px;
  font-size: 0.9rem;
}

/* ---- Quick contact list ---- */
.connect-quick-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.connect-quick-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.connect-contact-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--emerald);
  transition: color var(--duration) var(--ease);
}
.connect-contact-link:hover { color: var(--gold); }
.connect-contact-text {
  font-size: 0.95rem;
  color: var(--onyx-soft);
}

/* ---- Partner cards grid ---- */
.connect-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .connect-partner-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .connect-partner-grid { grid-template-columns: 1fr; }
}

.connect-partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.connect-partner-avatar {
  height: 90px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.connect-partner-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.connect-partner-avatar span {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(244,234,222,0.85);
  letter-spacing: 0.05em;
}
.connect-partner-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.connect-partner-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--emerald);
}
.connect-partner-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.connect-partner-focus {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.connect-partner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.connect-partner-btn {
  min-height: 44px;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  flex: 1;
  justify-content: center;
}
.connect-partner-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.connect-vcf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  transition: color var(--duration) var(--ease);
  min-height: 32px;
}
.connect-vcf-link:hover { color: var(--gold); }
.connect-profile-link {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--duration) var(--ease);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.connect-profile-link:hover { color: var(--emerald); }

/* ---- Downloads grid ---- */
.connect-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.connect-downloads--compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.connect-download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  min-height: 64px;
}
.connect-download-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(13,76,60,0.1);
  transform: translateY(-2px);
}
.connect-download-icon {
  width: 40px;
  height: 40px;
  background: rgba(13,76,60,0.07);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emerald);
}
.connect-download-body { flex: 1; min-width: 0; }
.connect-download-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald);
  line-height: 1.3;
}
.connect-download-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---- Site nav link tiles ---- */
.connect-site-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 480px) {
  .connect-site-links { grid-template-columns: 1fr; }
}
.connect-site-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  min-height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--emerald);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.connect-site-link svg { color: var(--gold); flex-shrink: 0; }
.connect-site-link:hover {
  border-color: var(--emerald);
  background: var(--ivory-dark);
}

/* ---- Digital Card (dcard) — partner connect pages ---- */
.dcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.dcard--ivory {
  background: var(--ivory-dark);
}
.dcard--links {
  background: transparent;
  border-color: transparent;
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* dcard header: avatar + name */
.dcard-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.dcard-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(244,234,222,0.85);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
}
.dcard-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.dcard-name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--emerald);
  margin-bottom: 0.2rem;
}
.dcard-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.dcard-focus {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Save CTA */
.dcard-save-btn {
  width: 100%;
  justify-content: center;
  min-height: 56px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Contact rows */
.dcard-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dcard-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--duration) var(--ease);
  min-height: 60px;
}
.dcard-contact-row:hover {
  background: var(--ivory-dark);
}
.dcard-contact-body { flex: 1; min-width: 0; }
.dcard-contact-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--emerald);
  word-break: break-word;
}
.dcard-chevron {
  color: var(--gold);
  flex-shrink: 0;
}

/* Nav links at bottom */
.dcard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  min-height: 52px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--emerald);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all var(--duration) var(--ease);
}
.dcard-nav-link svg { color: var(--gold); flex-shrink: 0; }
.dcard-nav-link:hover {
  border-color: var(--emerald);
  background: var(--ivory-dark);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-auto { margin-top: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Associates section */
.associates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.associate-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 2px;
}
.associate-card h3 {
  font-size: 1rem;
  color: var(--emerald);
  margin-bottom: 0.25rem;
}
.associate-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.associate-card p { font-size: 0.87rem; color: var(--muted); }

@media (max-width: 768px) {
  .associates-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .associates-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV DROPDOWN (Practice Areas)
   ============================================================ */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--onyx-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  transition: color var(--duration) var(--ease);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.75rem; right: 0.75rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}
.nav-dropdown-toggle:hover { color: var(--emerald); }
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after { transform: scaleX(1); }
.nav-dropdown-toggle.active { color: var(--emerald); }
.nav-dropdown-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
  color: var(--gold);
}
.nav-item-dropdown[data-open="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(13,76,60,0.12);
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 200;
}
.nav-item-dropdown[data-open="true"] .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--onyx-soft);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--ivory-dark);
  color: var(--emerald);
}
.nav-dropdown-menu .dropdown-parent-link {
  font-weight: 600;
  color: var(--emerald);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  padding-bottom: 0.7rem;
}

/* Mobile dropdown in hamburger menu */
.mobile-nav .mobile-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  color: var(--onyx-soft);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
  cursor: pointer;
}
.mobile-nav-dropdown-toggle .nav-dropdown-chevron {
  width: 14px;
  height: 14px;
}
.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  background: var(--ivory-dark);
}
.mobile-nav-sub.open { max-height: 600px; }
.mobile-nav-sub a {
  display: block;
  padding: 0.55rem 2.25rem;
  font-size: 0.9rem;
  color: var(--emerald);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-sub a:last-child { border-bottom: none; }

/* ============================================================
   PRACTICE AREA DETAIL PAGE
   ============================================================ */
/* SVG illustration header */
.pa-detail-hero {
  background: var(--emerald);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.pa-detail-hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border: 1px solid rgba(198,155,60,0.2);
  border-radius: 50%;
}
.pa-detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.pa-detail-hero h1 { color: var(--ivory); margin-bottom: 0.5rem; }
.pa-detail-hero .lead { color: rgba(244,234,222,0.8); max-width: 600px; }
.pa-detail-hero .breadcrumb {
  margin-top: 1.5rem;
  border-color: rgba(244,234,222,0.15);
}
.pa-detail-hero .breadcrumb li { color: rgba(244,234,222,0.6); }
.pa-detail-hero .breadcrumb li a { color: rgba(244,234,222,0.85); }
.pa-detail-hero .breadcrumb li::after { color: rgba(244,234,222,0.3); }
.pa-detail-hero-svg {
  width: 200px;
  height: 160px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .pa-detail-hero-inner { grid-template-columns: 1fr; }
  .pa-detail-hero-svg { display: none; }
}

/* Sub-area cards */
.pa-subarea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pa-subarea-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 2px 2px;
  padding: 1.5rem;
}
.pa-subarea-card h3 {
  font-size: 1rem;
  color: var(--emerald);
  margin-bottom: 0.6rem;
}
.pa-subarea-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 768px) {
  .pa-subarea-grid { grid-template-columns: 1fr; }
}

/* Approach bullets */
.pa-approach-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.pa-approach-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--onyx-soft);
}
.pa-approach-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.5em;
}

/* Related insights strip */
.pa-related-strip {
  background: var(--ivory-dark);
  padding: 3rem 0;
}
.pa-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .pa-related-grid { grid-template-columns: 1fr; }
}

/* Practice areas index cards */
.pa-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  padding: var(--space-lg) 0;
}
.pa-index-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: 2px;
  padding: 2rem 1.5rem 1.5rem;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}
.pa-index-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,76,60,0.1);
}
.pa-index-card-svg {
  width: 64px;
  height: 64px;
  margin-bottom: 0.5rem;
}
.pa-index-card h3 {
  font-size: 1rem;
  color: var(--emerald);
  margin: 0;
}
.pa-index-card p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  margin: 0;
}
.pa-index-card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
@media (max-width: 1024px) {
  .pa-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pa-index-grid { grid-template-columns: 1fr; }
}

/* Practice index hero with Madras HC SVG */
.pa-index-hero {
  background: var(--emerald);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pa-index-hero h1 { color: var(--ivory); margin-bottom: 0.75rem; }
.pa-index-hero .lead { color: rgba(244,234,222,0.8); max-width: 640px; margin: 0 auto 1.5rem; }
.pa-index-hero-svg {
  width: 100%;
  max-width: 680px;
  margin: 2.5rem auto 0;
  display: block;
  aspect-ratio: 17/5;
}
.pa-index-hero .breadcrumb {
  display: inline-flex;
  margin-top: 1.5rem;
  border-color: rgba(244,234,222,0.15);
}
.pa-index-hero .breadcrumb ol { justify-content: center; }
.pa-index-hero .breadcrumb li { color: rgba(244,234,222,0.6); }
.pa-index-hero .breadcrumb li a { color: rgba(244,234,222,0.85); }
.pa-index-hero .breadcrumb li::after { color: rgba(244,234,222,0.3); }

/* Article featured banner SVG */
.article-featured-svg {
  width: 100%;
  aspect-ratio: 16/5;
  display: block;
  margin-bottom: 2rem;
  border-radius: 2px;
  overflow: hidden;
}

/* Partner photo avatars — replaces monogram spans */
.avatar-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}
