/* ═══════════════════════════════════════════════════════════════
   Kay & Partners — Design System
   Professional dark luxury theme with glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Colors */
  --bg-primary: #080C14;
  --bg-secondary: #0D1321;
  --bg-tertiary: #141C2E;
  --bg-card: rgba(13, 19, 33, 0.7);

  --accent-blue: #2E6EB5;
  --accent-blue-light: #5A9BD5;
  --accent-blue-glow: rgba(46, 110, 181, 0.3);
  --accent-gold: #C9A84C;
  --accent-gold-light: #E0C872;
  --accent-gold-dim: #A08B3D;
  --accent-gold-glow: rgba(201, 168, 76, 0.25);

  --text-primary: #F0F0F0;
  --text-secondary: #A0AEC0;
  --text-muted: #5A6B80;

  --border-subtle: rgba(201, 168, 76, 0.1);
  --border-light: rgba(201, 168, 76, 0.18);
  --border-hover: rgba(201, 168, 76, 0.4);

  --glass-bg: rgba(13, 19, 33, 0.65);
  --glass-border: rgba(201, 168, 76, 0.1);
  --glass-blur: blur(16px);

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.45vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.55vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 4vw, 5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-section: clamp(4rem, 3rem + 4vw, 8rem);
  --max-width: 1280px;
  --content-padding: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);

  /* Effects */
  --transition-fast: 0.25s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s ease;
  --shadow-glow-gold: 0 0 30px rgba(201, 168, 76, 0.15);
  --shadow-glow-blue: 0 0 30px rgba(46, 110, 181, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(201, 168, 76, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold-dim); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-gold-light); }

::selection { background: rgba(201, 168, 76, 0.3); color: var(--text-primary); }


/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.heading-xl { font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.02em; }
.heading-lg { font-size: var(--text-4xl); font-weight: 700; }
.heading-md { font-size: var(--text-3xl); font-weight: 700; }
.heading-sm { font-size: var(--text-2xl); font-weight: 700; }
.heading-xs { font-size: var(--text-xl); font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--text-primary) 50%, var(--accent-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--space-sm);
  display: block;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  font-weight: 300;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin: var(--space-md) 0;
}


/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.page-hero {
  padding-top: calc(var(--space-section) + 80px);
  text-align: center;
}

.page-hero .divider {
  margin-left: auto;
  margin-right: auto;
}

.page-hero .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-alt {
  background: var(--bg-secondary);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: stretch; }

.grid-2 > *, .grid-3 > *, .grid-4 > * {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }


/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  /* Inverted silk/gold PNG sits directly on the dark nav — no plate needed. */
  transition: all var(--transition-fast);
}

.navbar.scrolled .nav-logo-img {
  height: 40px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 1px;
}

.nav-cta {
  display: none;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
  color: var(--bg-primary);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: 100px var(--content-padding) 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  padding: 12px 24px;
  transition: color var(--transition-fast);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent-gold);
}

.nav-mobile .btn-gold {
  margin-top: var(--space-lg);
  font-size: var(--text-base);
  padding: 14px 32px;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
}


/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--content-padding) 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(46, 110, 181, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(46, 110, 181, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  width: clamp(360px, 52vw, 680px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* PNG already carries its own silk/gold alpha; keep opacity low so it
     reads as ambient texture, not a second wordmark competing with the
     Didot headline rendered on top. */
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(46, 110, 181, 0.08));
  border: 1px solid var(--accent-gold-glow);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Animated gradient mesh for hero bg */
.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.hero-mesh .orb-1 {
  width: 500px; height: 500px;
  background: rgba(46, 110, 181, 0.15);
  top: -10%; left: -10%;
  animation-delay: 0s;
}

.hero-mesh .orb-2 {
  width: 400px; height: 400px;
  background: rgba(201, 168, 76, 0.1);
  bottom: -5%; right: -5%;
  animation-delay: -7s;
}

.hero-mesh .orb-3 {
  width: 300px; height: 300px;
  background: rgba(46, 110, 181, 0.08);
  top: 40%; right: 20%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}


/* ─── GLASS CARD ─── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.glass-card-static {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}


/* ─── PRACTICE AREA CARDS ─── */
.practice-card {
  position: relative;
  overflow: hidden;
}

.practice-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(46, 110, 181, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 22px;
  color: var(--accent-gold);
}

.practice-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.practice-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.practice-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-gold);
  margin-top: var(--space-md);
  transition: gap var(--transition-fast);
}

.practice-card:hover .card-link {
  gap: 10px;
}

.practice-card.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue), transparent);
}


/* ─── STAT COUNTERS ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}


/* ─── TEAM CARDS ─── */
.team-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.15);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.team-title {
  font-size: var(--text-sm);
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.team-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  flex: 1;
}


/* ─── INSIGHTS / REPRESENTATIVE MATTERS ─── */
.matter-card {
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.matter-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(46, 110, 181, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent-gold);
}

.matter-content .matter-category {
  font-size: var(--text-xs);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.matter-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ─── OFFICE CARDS ─── */
.office-card {
  padding: var(--space-lg);
}

.office-card .office-city {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.office-card .office-state {
  font-size: var(--text-xs);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.office-card .office-address {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.office-card .office-hq {
  display: inline-block;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}


/* ─── CONTACT FORM ─── */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6B80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-error {
  font-size: var(--text-xs);
  color: #EF4444;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-error { display: block; }
.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea { border-color: #EF4444; }

.form-honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-status {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ─── FOOTER ─── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
  .footer-links { display: contents; }
}

.footer-logo-img {
  height: 64px;
  width: auto;
  /* Inverted silk/gold PNG sits directly on the dark footer — no plate needed. */
  margin-bottom: var(--space-sm);
  opacity: 0.95;
}

.footer-brand .footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.footer-brand .footer-bci-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 2px solid var(--border-subtle);
  padding-left: var(--space-sm);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--accent-gold); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal a:hover { color: var(--accent-gold); }


/* ─── BCI DISCLAIMER MODAL ─── */
.bci-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--content-padding);
}

.bci-overlay.hidden { display: none; }

.bci-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.05);
}

.bci-card h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  text-align: center;
}

.bci-card .bci-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  text-align: justify;
}

.bci-card .bci-text p {
  margin-bottom: var(--space-sm);
}

.bci-card .bci-agree {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
}


/* ─── EXPERTISE DETAIL ─── */
.expertise-section {
  scroll-margin-top: 100px;
}

.expertise-block {
  padding: var(--space-xl);
}

.expertise-block h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.expertise-summary {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.capability-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.capability-list li {
  padding: 8px 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.capability-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 8px;
}

.expertise-matter {
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.expertise-matter .matter-label {
  font-size: var(--text-xs);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 6px;
}

.expertise-matter p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ─── ABOUT PAGE ─── */
.about-narrative {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.9;
  text-align: center;
}

.about-narrative strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.value-card {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.value-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}


/* ─── LEGAL PAGES ─── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

.legal-content h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--accent-gold);
}

.legal-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: none;
  margin-bottom: var(--space-md);
}

.legal-content ul li {
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.legal-content ul li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
  position: absolute;
  left: 0;
  top: 14px;
}


/* ─── SCROLL ANIMATIONS ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }
[data-animate-delay="7"] { transition-delay: 0.7s; }
[data-animate-delay="8"] { transition-delay: 0.8s; }


/* ─── UTILITIES ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-section { margin-top: var(--space-section); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }


/* ─── PAGE TRANSITION ─── */
main {
  animation: pageIn 0.6s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ─── SVG ICONS (inline) ─── */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}


/* ─── INSIGHT FILTER TABS ─── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}


/* ─── CONTACT INFO ─── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--accent-gold);
}

.contact-info-text .info-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

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

.contact-panel {
  padding: var(--space-xl);
}

.contact-office-item {
  margin-bottom: var(--space-md);
}

.contact-office-city {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.contact-office-address {
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ─── CONTACT CTA CARDS ─── */
.contact-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-cta-card:hover {
  text-decoration: none;
}

.contact-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

.contact-cta-card:hover .contact-cta-icon {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.contact-cta-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.contact-cta-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  word-break: break-word;
}

.contact-cta-card:hover .contact-cta-value {
  color: var(--accent-gold);
}

.contact-cta-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


/* ─── CENTERED NOTE CARDS ─── */
.note-card-centered {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.note-card-centered p {
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

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

.text-secondary {
  color: var(--text-secondary);
}

.text-gold {
  color: var(--accent-gold);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-xs {
  font-size: var(--text-xs);
}

/* ─── EXPERTISE CTA ─── */
.expertise-cta {
  margin-top: var(--space-lg);
}

/* ─── SUBMIT BUTTON FULL WIDTH ─── */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── TEAM GRID GAP ─── */
.gap-xl {
  gap: var(--space-xl);
}

/* ─── TEAM CARD CONTACT LINK ─── */
.team-card .btn-ghost {
  font-size: var(--text-xs);
}

/* ─── FOOTER OFFICE LINKS (NON-INTERACTIVE) ─── */
.footer-col a.link-static {
  cursor: default;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   INSIGHTS — List & Article pages
   ═══════════════════════════════════════════════════════════════ */

/* ─── Practice tag badges ─── */
.practice-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  line-height: 1;
  white-space: nowrap;
}

.practice-tag--blue   { background: rgba(46, 110, 181, 0.18);  color: #5A9BD5; border: 1px solid rgba(46, 110, 181, 0.3); }
.practice-tag--teal   { background: rgba(32, 178, 170, 0.14);  color: #3EC9C0; border: 1px solid rgba(32, 178, 170, 0.28); }
.practice-tag--gold   { background: rgba(201, 168, 76, 0.15);  color: var(--accent-gold); border: 1px solid rgba(201, 168, 76, 0.3); }
.practice-tag--amber  { background: rgba(245, 158, 11, 0.14);  color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.28); }
.practice-tag--navy   { background: rgba(55, 90, 160, 0.18);   color: #7BA0D9; border: 1px solid rgba(55, 90, 160, 0.3); }
.practice-tag--green  { background: rgba(34, 197, 94, 0.12);   color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.25); }
.practice-tag--muted  { background: rgba(90, 107, 128, 0.18);  color: #90A0B0; border: 1px solid rgba(90, 107, 128, 0.3); }


/* ─── Insights list: filter row ─── */
.insight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}

.insight-filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.insight-filter-btn:hover {
  border-color: rgba(201, 168, 76, 0.5);
  color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.06);
}

.insight-filter-btn.active {
  border-color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent-gold);
}


/* ─── Insights list: article card grid ─── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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


/* ─── Insights list: article card ─── */
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--space-lg) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.insight-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.insight-card-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.insight-card-concept {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1.25;
  margin: 0;
}

.insight-card-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.insight-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
  hyphens: auto;
}

.insight-card-cta {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  transition: letter-spacing var(--transition-fast);
}

.insight-card:hover .insight-card-cta {
  letter-spacing: 0.08em;
}


/* ─── Article page: narrow reading container ─── */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
}


/* ─── Article header ─── */
.article-header {
  padding-bottom: 0;
}

.article-back {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
}

.article-back:hover { color: var(--accent-gold); }

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.article-meta-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.article-concept {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--accent-gold);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.article-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
}

.article-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

.article-court {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  margin-bottom: var(--space-sm);
}

.article-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  border-radius: 1px;
  margin: var(--space-md) 0;
  opacity: 0.45;
}


/* ─── Article body: prose typography ─── */
.article-body-section {
  padding: var(--space-xl) 0;
}

.prose {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text-secondary);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.2em 0 0.7em;
  line-height: 1.3;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.8em 0 0.5em;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em {
  color: var(--text-secondary);
}

.prose blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 0.6em 1.2em;
  margin: 1.5em 0;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.prose a {
  color: var(--accent-blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(90, 155, 213, 0.4);
}

.prose a:hover {
  color: var(--accent-gold);
  text-decoration-color: var(--accent-gold);
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.prose li { margin-bottom: 0.4em; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: var(--text-sm);
}

.prose th {
  text-align: left;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--text-primary);
  font-weight: 600;
}

.prose td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}


/* ─── Article aphorism ─── */
.article-aphorism {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  font-style: italic;
  color: var(--accent-gold);
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: var(--space-xl) 0 0;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.5;
}


/* ─── Article footer: byline + disclaimer + nav ─── */
.article-footer-section {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.article-byline-firm {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.article-byline-sep {
  color: var(--text-muted);
}

.article-byline-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.75;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xl);
}

.article-disclaimer,
.article-disclaimer p {
  text-align: justify;
  hyphens: auto;
}

.article-disclaimer p {
  margin: 0;
}

.article-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-bottom: var(--space-2xl);
}

.article-nav > .btn-ghost,
.article-nav > .btn-gold,
.article-nav > .btn-print {
  display: flex;
  flex: 1 1 0;
  min-width: 180px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 640px) {
  .article-nav {
    justify-content: center;
  }
  .article-nav > .btn-ghost,
  .article-nav > .btn-gold,
  .article-nav > .btn-print {
    flex: 1 1 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES — clean article PDF
   ═══════════════════════════════════════════════════════════════ */
@media print {

  /* Force white background, black text */
  *, *::before, *::after {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #ddd !important;
  }

  /* Hide everything except the article */
  .bci-overlay,
  .bci-modal-overlay,
  .navbar,
  .nav-mobile,
  footer,
  .article-back,
  .article-nav,
  .btn-print { display: none !important; }

  /* Remove decorative gradients / glows */
  body {
    font-family: 'Georgia', serif;
    font-size: 11pt;
    line-height: 1.75;
  }

  /* Firm name at top as print header */
  main::before {
    content: "KAY & Partners — Editorial Desk";
    display: block;
    font-family: 'Georgia', serif;
    font-size: 9pt;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888 !important;
    border-bottom: 1px solid #ccc !important;
    padding-bottom: 6pt;
    margin-bottom: 18pt;
  }

  /* Article container — full width for print */
  .article-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Meta */
  .article-meta-top { margin-bottom: 8pt; }
  .practice-tag {
    border: 1px solid #aaa !important;
    border-radius: 4px;
    padding: 2pt 6pt;
    font-size: 8pt;
  }
  .article-meta-date { font-size: 9pt; }

  /* Concept */
  .article-concept {
    font-size: 13pt;
    color: #555 !important;
    margin-bottom: 4pt;
  }

  /* Headline */
  .article-headline {
    font-family: 'Georgia', serif;
    font-size: 20pt;
    font-weight: bold;
    line-height: 1.2;
    color: #000 !important;
    margin-bottom: 6pt;
  }

  /* Subtitle */
  .article-subtitle {
    font-size: 11pt;
    color: #444 !important;
    margin-bottom: 8pt;
  }

  /* Court line */
  .article-court {
    font-size: 8pt;
    letter-spacing: 0.06em;
    color: #666 !important;
    border-top: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
    padding: 4pt 0;
    margin-bottom: 6pt;
  }

  /* Gold divider → simple rule */
  .article-divider {
    border-top: 1pt solid #aaa !important;
    background: none !important;
    opacity: 1;
    margin: 10pt 0;
    height: 0;
  }

  /* Body prose */
  .prose {
    font-size: 11pt;
    line-height: 1.75;
    color: #111 !important;
    text-align: justify;
  }

  .prose h2 {
    font-size: 13pt;
    font-weight: bold;
    color: #000 !important;
    border-bottom: 1px solid #ccc !important;
    margin-top: 18pt;
    margin-bottom: 6pt;
    page-break-after: avoid;
  }

  .prose p { margin-bottom: 8pt; orphans: 3; widows: 3; }

  /* Aphorism */
  .article-aphorism {
    font-family: 'Georgia', serif;
    font-size: 12pt;
    font-style: italic;
    color: #333 !important;
    border-left: 3pt solid #aaa !important;
    background: #f9f9f9 !important;
    padding: 8pt 12pt;
    margin: 16pt 0;
    page-break-inside: avoid;
  }

  /* Byline */
  .article-byline {
    border-top: 1px solid #ccc !important;
    padding-top: 8pt;
    margin-top: 16pt;
    font-size: 9pt;
    color: #555 !important;
  }

  /* Disclaimer */
  .article-disclaimer {
    font-size: 8pt;
    color: #888 !important;
    border: 1px solid #ddd !important;
    padding: 8pt;
    margin-top: 12pt;
    page-break-inside: avoid;
  }

  /* Page breaks */
  .article-header  { page-break-after: avoid; }
  .article-aphorism { page-break-before: avoid; }
}
