/* ================================================================
   FMM — Fábrega, Molino & Mulino
   Design System — v2.0
   Palette: Red #D13139 accent · Charcoal darks · Neutral grays
   Type: Poppins (display/headings) + Roboto (body)
   ================================================================ */

/* === DESIGN TOKENS ============================================ */
:root {
  /* Colors — OKLCH */
  --bg:           oklch(98.5% 0 0);
  --bg-tint:      oklch(96% 0.002 0);
  --surface:      oklch(100% 0 0);
  --border:       oklch(90% 0.003 0);
  --border-mid:   oklch(82% 0.004 0);

  /* Brand red — #D13139 */
  --red:          oklch(50% 0.196 26);
  --red-dark:     oklch(43% 0.180 26);
  --red-light:    oklch(66% 0.150 26);
  --red-pale:     oklch(95% 0.026 26);
  --red-10:       oklch(50% 0.196 26 / 0.09);
  --red-20:       oklch(50% 0.196 26 / 0.18);

  /* Charcoal — replaces navy */
  --dark:         oklch(18% 0.005 0);
  --dark-mid:     oklch(23% 0.004 0);
  --dark-deep:    oklch(12% 0.004 0);
  --dark-10:      oklch(18% 0.005 0 / 0.08);
  --dark-20:      oklch(18% 0.005 0 / 0.16);

  /* Ink / text */
  --ink:          oklch(14% 0.004 0);
  --ink-2:        oklch(43% 0.005 0);
  --ink-3:        oklch(62% 0.004 0);

  /* Neutral mid gray for utility */
  --gray-light:   oklch(96% 0.002 0);
  --gray-mid:     oklch(86% 0.003 0);

  /* Typography */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Roboto', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --step-sm:   clamp(0.813rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0:    clamp(1rem, 0.96rem + 0.20vw, 1.063rem);
  --step-1:    clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  --step-2:    clamp(1.266rem, 1.20rem + 0.32vw, 1.5rem);
  --step-3:    clamp(1.424rem, 1.33rem + 0.47vw, 1.75rem);
  --step-4:    clamp(1.602rem, 1.48rem + 0.62vw, 2.125rem);
  --step-5:    clamp(1.802rem, 1.63rem + 0.86vw, 2.625rem);
  --step-6:    clamp(2.027rem, 1.80rem + 1.14vw, 3.25rem);
  --step-7:    clamp(2.281rem, 1.98rem + 1.50vw, 4rem);
  --step-hero: clamp(2.75rem, 4vw + 1.25rem, 5rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6.5rem;
  --sp-3xl: 10rem;

  /* Layout */
  --container:        min(1280px, 100vw - 2 * var(--sp-md));
  --container-narrow: min(860px,  100vw - 2 * var(--sp-md));

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-backdrop: 300;
  --z-modal:    400;
  --z-toast:    500;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;

  /* Radii */
  --r-sm: 3px;
  --r-md: 6px;
}

/* === RESET ==================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

/* === BILINGUAL ================================================ */
html[lang="en"] .es { display: none !important; }
html[lang="es"] .en { display: none !important; }

/* === TYPOGRAPHY =============================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.010em;
}

h1 { font-size: var(--step-7); }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

.display {
  font-size: var(--step-hero);
  font-weight: 700;
  letter-spacing: -0.020em;
  line-height: 1.08;
}

p { max-width: 65ch; text-wrap: pretty; }
p + p { margin-top: var(--sp-sm); }

.lead {
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.7;
}

/* === LAYOUT ================================================== */
.container        { width: var(--container);        margin-inline: auto; }
.container--narrow{ width: var(--container-narrow); margin-inline: auto; }

/* === BUTTONS ================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.625rem;
  font-size: var(--step-sm);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-fast),
              border-color var(--dur-fast),
              color var(--dur-fast),
              opacity var(--dur-fast);
}

.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn--outline-white {
  border: 1px solid oklch(100% 0 0 / 0.35);
  color: #fff;
}
.btn--outline-white:hover {
  border-color: #fff;
  background: oklch(100% 0 0 / 0.08);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}
.btn--dark:hover {
  background: var(--dark-mid);
  transform: translateY(-2px);
}

.btn--outline-dark {
  border: 1px solid var(--dark);
  color: var(--dark);
}
.btn--outline-dark:hover {
  background: var(--dark);
  color: #fff;
}

.btn--outline-red {
  border: 1px solid var(--red);
  color: var(--red);
}
.btn--outline-red:hover {
  background: var(--red);
  color: #fff;
}

/* === SECTION HEADERS ========================================= */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.010em;
  color: var(--ink);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-sm);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: color var(--dur-fast), gap var(--dur-fast);
}
.section-link:hover { color: var(--red); gap: 11px; }
.section-link--red  { color: var(--red-light); }
.section-link--red:hover { color: #fff; gap: 11px; }

/* === NAV ===================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-base);
}
.site-nav.scrolled {
  box-shadow: 0 1px 18px oklch(0% 0 0 / 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: var(--sp-xl);
}

/* Logo image */
.nav-logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.nav-logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.875rem;
  height: 70px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--dur-fast);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover  { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--red);
}

.nav-chevron {
  width: 9px;
  height: 6px;
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 28px oklch(0% 0 0 / 0.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast), visibility var(--dur-fast), transform var(--dur-fast);
  z-index: var(--z-dropdown);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.84rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-dropdown__link:last-child { border-bottom: none; }
.nav-dropdown__link:hover {
  color: var(--red);
  background: var(--bg-tint);
}
.nav-dropdown__link.active { color: var(--red); font-weight: 500; }

/* ============================================================
   MEGA MENU — Áreas de Práctica
   ============================================================ */

/* Static so the mega positions relative to .site-nav (sticky ancestor) */
.nav-item--mega { position: static; }

.nav-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base),
              transform var(--dur-base) var(--ease-out);
  z-index: var(--z-dropdown);
  pointer-events: none;
}

.nav-item--mega:hover .nav-mega,
.nav-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mega__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
}

.nav-mega__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-bottom: 0.875rem;
  margin-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
}

.nav-mega__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}

.nav-mega__viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: color var(--dur-fast), gap var(--dur-fast);
}
.nav-mega__viewall:hover { color: var(--red); gap: 10px; }

.nav-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 var(--sp-lg);
}

.nav-mega__link {
  display: block;
  padding-block: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.nav-mega__link:last-child { border-bottom: none; }
.nav-mega__link:hover {
  color: var(--red);
  padding-left: 0.3rem;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}
.nav-search-btn:hover { color: var(--ink); }

.lang-toggle {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 11px;
  border: 1px solid var(--border-mid);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.lang-toggle:hover {
  color: var(--red);
  border-color: var(--red);
}

/* Mobile menu toggle */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) + 10);
  background: var(--dark-deep);
  padding: var(--sp-xl) var(--sp-lg);
  overflow-y: auto;
  flex-direction: column;
  gap: var(--sp-xl);
}
.mobile-nav.open { display: flex; }

.mobile-nav__close {
  align-self: flex-end;
  color: oklch(100% 0 0 / 0.6);
  transition: color var(--dur-fast);
}
.mobile-nav__close:hover { color: #fff; }

.mobile-nav__links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav__link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  color: oklch(100% 0 0 / 0.72);
  padding-block: 1rem;
  border-bottom: 1px solid oklch(100% 0 0 / 0.09);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.mobile-nav__link:hover { color: var(--red-light); padding-left: 0.5rem; }

.mobile-nav__actions {
  display: flex;
  gap: var(--sp-sm);
  padding-top: var(--sp-lg);
  border-top: 1px solid oklch(100% 0 0 / 0.09);
}

/* === HERO ==================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-block: var(--sp-3xl) var(--sp-2xl);
  background-color: var(--dark-deep);
  overflow: hidden;
}

@keyframes hero-bg-crossfade {
  0%, 20% { opacity: 1; }
  27%, 100% { opacity: 0; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    oklch(18% 0.005 0 / 0.92) 0%,
    oklch(18% 0.005 0 / 0.72) 45%,
    oklch(18% 0.005 0 / 0.45) 100%
  );
  z-index: 1;
}

.hero__bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  animation: hero-bg-crossfade 24s ease-in-out infinite;
}

.hero__bg-layer:nth-child(1) { animation-delay:   0s; }
.hero__bg-layer:nth-child(2) { animation-delay: -18s; }
.hero__bg-layer:nth-child(3) { animation-delay: -12s; }
.hero__bg-layer:nth-child(4) { animation-delay:  -6s; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg-layer { animation: none; opacity: 0; }
  .hero__bg-layer:nth-child(1) { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: var(--sp-md);
}
.hero__tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.hero__heading {
  font-size: var(--step-hero);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.020em;
  line-height: 1.08;
  margin-bottom: var(--sp-lg);
}
.hero__heading strong {
  font-weight: 700;
  color: var(--red-light);
}

.hero__sub {
  font-size: var(--step-2);
  font-weight: 300;
  color: oklch(100% 0 0 / 0.58);
  max-width: 52ch;
  margin-bottom: var(--sp-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* === FEATURED NEWS (homepage) ================================ */
.featured-news {
  padding-block: var(--sp-2xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.news-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover { transform: translateY(-5px); }

.news-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tint);
  margin-bottom: var(--sp-sm);
}
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover .news-card__img img { transform: scale(1.05); }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: 0.5rem;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  padding: 3px 7px;
  background: var(--red-10);
}
.tag--dark {
  color: var(--dark);
  background: var(--dark-10);
}

.news-card__date {
  font-size: var(--step-sm);
  color: var(--ink-3);
}

.news-card__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.010em;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
  text-wrap: balance;
  flex: 1;
}
.news-card__title a { transition: color var(--dur-fast); }
.news-card__title a:hover { color: var(--red); }

.news-card__read {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: var(--sp-sm);
  margin-top: auto;
  font-family: var(--font-display);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 1px solid var(--border);
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.news-card:hover .news-card__read { gap: 11px; }

/* === PRACTICE AREAS ========================================== */
.practice-areas {
  padding-block: var(--sp-2xl);
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
}

.practice-areas-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--sp-2xl);
}

.practice-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.practice-area-item:hover {
  color: var(--red);
  padding-left: 0.375rem;
}
.practice-area-item:first-child { border-top: 1px solid var(--border); }

.practice-area-item__arrow {
  opacity: 0;
  color: var(--red);
  transform: translateX(-6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0;
}
.practice-area-item:hover .practice-area-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* === ABOUT =================================================== */
.about {
  padding-block: var(--sp-3xl);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.about__image {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-tint);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, oklch(12% 0.004 0 / 0.18));
  pointer-events: none;
}

.about__accent-line {
  width: 32px;
  height: 3px;
  background: var(--red);
  margin-bottom: var(--sp-md);
}

.about__content h2 {
  color: var(--ink);
  margin-bottom: var(--sp-md);
  font-size: var(--step-5);
}

.about__content p {
  color: var(--ink-2);
  line-height: 1.78;
}

.about__stats {
  display: flex;
  gap: var(--sp-xl);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border);
}

.about__stat {}
.about__stat-num {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.020em;
}
.about__stat-num sup {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 600;
}
.about__stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  margin-top: 0.25rem;
}

/* === INSIGHTS ================================================ */
.insights {
  padding-block: var(--sp-2xl);
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
}

.insights-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 3fr;
  gap: var(--sp-lg);
  align-items: start;
}

.insight-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out);
}
.insight-card:hover { transform: translateY(-4px); }

.insight-card__img {
  overflow: hidden;
  background: var(--bg-tint);
}
.insight-card__img img {
  width: 100%;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.insight-card--featured .insight-card__img img { aspect-ratio: 16 / 9; object-fit: cover; }
.insight-card:not(.insight-card--featured) .insight-card__img img { aspect-ratio: 4 / 3; object-fit: cover; }
.insight-card:hover .insight-card__img img { transform: scale(1.04); }

.insight-card__body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.insight-type {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.insight-card__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.010em;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  flex: 1;
}
.insight-card--featured .insight-card__title { font-size: var(--step-4); }
.insight-card__title a:hover { color: var(--red); }

.insight-card__excerpt {
  font-size: var(--step-sm);
  color: var(--ink-2);
  line-height: 1.7;
}

.insight-card__read {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: var(--sp-sm);
  margin-top: auto;
  font-family: var(--font-display);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--border);
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.insight-card:hover .insight-card__read { color: var(--red); gap: 11px; }

/* === FOOTER ================================================== */
.site-footer {
  background: var(--bg-tint);
  color: var(--ink-2);
  padding-block: var(--sp-2xl) var(--sp-lg);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-lg);
}

/* Footer logo image */
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: var(--sp-md);
  /* Brightness filter to show on dark background */
  filter: brightness(0) invert(1);
  /* The logo is already white on red — on dark bg we show it as-is */
}
/* Override: keep logo colors on dark background */
.site-footer .footer-logo-img {
  filter: none;
}

.footer-brand__address {
  font-size: 0.875rem;
  line-height: 1.78;
  color: var(--ink-3);
  max-width: 26ch;
  margin-top: var(--sp-md);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-md);
}
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.footer-social a:hover {
  border-color: var(--red);
  color: var(--red);
}

.footer-col__heading {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.45;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  font-size: 0.8rem;
  color: var(--ink-3);
}

.footer-bottom .lang-toggle {
  color: var(--ink-2);
  border-color: var(--border);
  font-size: 0.72rem;
}
.footer-bottom .lang-toggle:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ================================================================
   NEWS PAGE
   ================================================================ */
.news-hero {
  background: var(--bg-tint);
  padding-block: var(--sp-2xl) var(--sp-xl);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.news-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-xl);
}
.news-hero__title {
  font-size: var(--step-7);
  font-weight: 700;
  letter-spacing: -0.020em;
  color: var(--ink);
  line-height: 1.08;
}
.news-hero__title strong { color: var(--red); font-weight: 700; }
.news-hero__desc {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 32ch;
  line-height: 1.72;
  text-align: right;
  font-weight: 300;
}

/* Sticky filter bar */
/* ----------------------------------------------------------------
   Filter bar v2 (news/insights page)
   ---------------------------------------------------------------- */
.fbv2-bar {
  position: sticky;
  top: 70px;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px oklch(0% 0 0 / 0.06);
}

.fbv2-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fbv2-inner::-webkit-scrollbar { display: none; }

.fbv2-section {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.6rem var(--sp-md);
  flex-shrink: 0;
}

.fbv2-section__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.fbv2-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Chips */
.fbv2-chips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.fbv2-chip {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
  background: none;
}
.fbv2-chip:hover:not(.active) { color: var(--red); border-color: oklch(50% 0.196 26 / 0.25); }
.fbv2-chip.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* Dropdowns */
.fbv2-dropdown {
  position: relative;
}

.fbv2-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
  min-width: 160px;
  justify-content: space-between;
}
.fbv2-dropdown__btn:hover { border-color: var(--ink-2); }
.fbv2-dropdown.is-open .fbv2-dropdown__btn {
  border-color: var(--red);
  color: var(--red);
  background: oklch(50% 0.196 26 / 0.04);
}
.fbv2-dropdown.is-open .fbv2-dropdown__btn svg {
  transform: rotate(180deg);
}
.fbv2-dropdown__btn svg { transition: transform var(--dur-fast); flex-shrink: 0; }

.fbv2-dropdown__val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.fbv2-dropdown__panel {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.12);
  z-index: var(--z-dropdown, 200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
  max-height: 320px;
  overflow-y: auto;
}
.fbv2-dropdown.is-open .fbv2-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Attorney search inside panel */
.fbv2-panel__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  color: var(--ink-3);
}
.fbv2-panel__input {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  width: 100%;
  outline: none;
}
.fbv2-panel__input::placeholder { color: var(--ink-3); }
.fbv2-panel__list { padding: 4px 0; }

.fbv2-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fbv2-option:hover { background: oklch(96% 0 0); color: var(--ink); }
.fbv2-option.active {
  color: var(--red);
  font-weight: 600;
  background: oklch(50% 0.196 26 / 0.06);
}
.fbv2-option[style*="display: none"] { display: none !important; }

/* Active filter count badge on dropdown button */
.fbv2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Clear button */
.fbv2-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
  padding: 5px 12px;
  margin-left: auto;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.fbv2-clear:hover { color: var(--red); border-color: var(--red); }

/* Featured article */
.news-featured { padding-block: var(--sp-2xl); }

.featured-article {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border: 1px solid var(--border);
  overflow: hidden;
}

.featured-article__img {
  overflow: hidden;
  background: var(--bg-tint);
}
.featured-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 360px;
  transition: transform var(--dur-slow) var(--ease-out);
}
.featured-article:hover .featured-article__img img { transform: scale(1.04); }

.featured-article__body {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.featured-article__category {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-sm);
}
.featured-article__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: var(--sp-md);
}
.featured-article__excerpt {
  font-size: var(--step-1);
  color: var(--ink-2);
  line-height: 1.72;
  flex: 1;
  font-weight: 300;
}
.featured-article__footer {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.featured-article__date {
  font-size: var(--step-sm);
  color: var(--ink-3);
}

/* News article grid */
.news-articles { padding-block: 0 var(--sp-2xl); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}

.article-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-lg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.article-card:hover { transform: translateY(-4px); }

.article-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tint);
  margin-bottom: var(--sp-sm);
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.article-card:hover .article-card__img img { transform: scale(1.05); }

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.010em;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  flex: 1;
  margin-bottom: var(--sp-sm);
}
.article-card__title a { transition: color var(--dur-fast); }
.article-card__title a:hover { color: var(--red); }

.article-card__excerpt {
  font-size: var(--step-sm);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--sp-sm);
  font-weight: 300;
}

.article-card__read {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: auto;
  transition: gap var(--dur-fast);
}
.article-card:hover .article-card__read { gap: 11px; }

.load-more { display: flex; justify-content: center; }

/* ================================================================
   PEOPLE PAGE
   ================================================================ */
/* ----------------------------------------------------------------
   Shared abstract background for inner-page heroes
   ---------------------------------------------------------------- */
.people-hero,
.news-hero,
.pa-hero,
.atty-hero,
.insight-header,
.contact-hero {
  position: relative;
  overflow: hidden;
}

.people-hero::before,
.news-hero::before,
.pa-hero::before,
.atty-hero::before,
.insight-header::before,
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 130% at 100% -5%, oklch(50% 0.196 26 / 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 5% 110%, oklch(50% 0.196 26 / 0.05) 0%, transparent 70%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 480' preserveAspectRatio='xMaxYMid slice'><circle cx='1160' cy='0' r='260' fill='none' stroke='%23D13139' stroke-opacity='0.12' stroke-width='1.5'/><circle cx='1160' cy='0' r='420' fill='none' stroke='%23D13139' stroke-opacity='0.09' stroke-width='1'/><circle cx='1160' cy='0' r='580' fill='none' stroke='%23D13139' stroke-opacity='0.07' stroke-width='1'/><circle cx='1160' cy='0' r='740' fill='none' stroke='%23D13139' stroke-opacity='0.05' stroke-width='1'/><circle cx='1160' cy='0' r='900' fill='none' stroke='%23D13139' stroke-opacity='0.03' stroke-width='1'/><line x1='0' y1='160' x2='1200' y2='160' stroke='%23161616' stroke-opacity='0.05' stroke-width='1' stroke-dasharray='2 52'/><line x1='0' y1='320' x2='1200' y2='320' stroke='%23161616' stroke-opacity='0.04' stroke-width='1' stroke-dasharray='2 52'/><line x1='480' y1='0' x2='480' y2='480' stroke='%23161616' stroke-opacity='0.04' stroke-width='1' stroke-dasharray='2 52'/></svg>");
  background-size: cover, cover, cover;
  pointer-events: none;
  z-index: 0;
}

.people-hero > *,
.news-hero > *,
.pa-hero > *,
.atty-hero > *,
.insight-header > *,
.contact-hero > * {
  position: relative;
  z-index: 1;
}

.people-hero {
  background: var(--bg-tint);
  padding-block: var(--sp-2xl);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.people-hero__title {
  font-size: var(--step-7);
  font-weight: 700;
  letter-spacing: -0.020em;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
  line-height: 1.08;
}
.people-hero__title strong { color: var(--red); }
.people-hero__sub {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.72;
  font-weight: 300;
}

/* Filters bar */
.people-filters {
  position: sticky;
  top: 70px;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 0.875rem;
}
.people-filters__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.people-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  transition: border-color var(--dur-fast);
}
.people-search:focus-within { border-color: var(--red); }
.people-search svg { color: var(--ink-3); flex-shrink: 0; }
.people-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--ink);
}
.people-search input::placeholder { color: var(--ink-3); }

.alpha-filter {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  flex: 1;
}

.alpha-btn[data-letter="all"] {
  width: auto;
  padding-inline: 10px;
}

.alpha-btn {
  width: 26px;
  height: 26px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--red);
  color: #fff;
}

/* People grid */
.people-section { padding-block: var(--sp-2xl); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

.attorney-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out);
  cursor: pointer;
}
.attorney-card:hover { transform: translateY(-5px); }

.attorney-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: oklch(95% 0.002 0);
  position: relative;
}

.attorney-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.attorney-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--step-7);
  font-weight: 700;
  color: oklch(70% 0.003 0);
  user-select: none;
}

.attorney-card__overlay {
  position: absolute;
  inset: 0;
  background: oklch(50% 0.196 26 / 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-base);
}
.attorney-card:hover .attorney-card__overlay { opacity: 1; }

.attorney-card__cta {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--surface);
  border: 1px solid var(--red);
  padding: 0.5rem 1.25rem;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.attorney-card__cta:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.attorney-card__info {
  padding: var(--sp-sm) 0;
}

.attorney-card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.010em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.attorney-card__role {
  font-size: var(--step-sm);
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.attorney-card__areas {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.area-tag {
  font-family: var(--font-display);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-10);
  padding: 2px 6px;
}

/* ================================================================
   PRACTICE AREA PAGE
   ================================================================ */
.pa-hero {
  background: var(--bg-tint);
  padding-block: var(--sp-2xl);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.pa-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-md);
}
.pa-hero__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.pa-hero__back {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: var(--step-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-md);
  transition: color var(--dur-fast);
}
.pa-hero__back:hover { color: var(--red); }

.pa-hero__title {
  font-size: var(--step-6);
  font-weight: 700;
  letter-spacing: -0.020em;
  color: var(--ink);
  margin-bottom: var(--sp-md);
  line-height: 1.08;
}
.pa-hero__desc {
  font-size: var(--step-2);
  color: var(--ink-2);
  max-width: 55ch;
  line-height: 1.72;
  font-weight: 300;
}

/* Body two-column */
.pa-body { padding-block: var(--sp-2xl); }
.pa-body__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-2xl);
  align-items: start;
}

.pa-content {}
.pa-content h2 {
  font-size: var(--step-4);
  color: var(--ink);
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-xl);
}
.pa-content h2:first-child { margin-top: 0; }
.pa-content h3 {
  font-size: var(--step-3);
  color: var(--ink);
  margin-bottom: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.pa-content p {
  max-width: none;
  font-size: var(--step-0);
  color: var(--ink-2);
  line-height: 1.78;
  font-weight: 300;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.pa-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-block: var(--sp-sm);
}
.pa-content ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--step-0);
  color: var(--ink-2);
  line-height: 1.65;
  font-weight: 300;
}
.pa-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.pa-sidebar {
  position: sticky;
  top: calc(70px + var(--sp-lg));
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.pa-sidebar-card {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-tint);
  border: 1px solid var(--border);
}
.pa-sidebar-card__heading {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}

.attorney-mini {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--dur-fast);
  cursor: pointer;
}
.attorney-mini:last-child { border-bottom: none; }
.attorney-mini:hover { opacity: 0.7; }

.attorney-mini__avatar {
  width: 88px;
  height: 88px;
  background: oklch(92% 0.002 0);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-3);
  font-weight: 700;
  overflow: hidden;
}

.attorney-mini__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.attorney-mini__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.attorney-mini__role {
  font-size: var(--step-sm);
  color: var(--ink-3);
}

/* Related news */
.pa-related {
  padding-block: var(--sp-2xl);
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
}

/* ================================================================
   INSTITUTIONAL PAGES (Sobre Nosotros / RSC / D&I / Reconocimientos / Cumplimiento)
   ================================================================ */

/* Signed attribution beneath a quoted statement */
.pa-content .signature {
  margin-top: var(--sp-md);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  border-left: 2px solid var(--red);
  padding-left: var(--sp-sm);
}

/* Recognitions: ranking badge + description — badge is the visual anchor, text is secondary */
.recognition-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}
.recognition-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.recognition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px oklch(14% 0.004 0 / 0.22);
}
.recognition-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  border-right: 1px solid var(--border);
  padding: var(--sp-xl);
}
.recognition-card__badge img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
.recognition-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--sp-lg) var(--sp-xl);
}
.recognition-card__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
}
.recognition-card p {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.7;
  font-weight: 300;
  text-align: left;
}

/* RSC photo gallery */
.rsc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-block: var(--sp-lg);
}
.rsc-gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tint);
}
.rsc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.rsc-gallery__item:hover img { transform: scale(1.06); }
.rsc-gallery__caption {
  font-size: var(--step-sm);
  color: var(--ink-3);
  margin-top: var(--sp-xs);
}

/* Compliance jurisdiction cards */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  margin-block: var(--sp-lg);
}
.compliance-card {
  display: block;
  border: 1px solid var(--border);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-fast);
}
.compliance-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}
.compliance-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tint);
}
.compliance-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compliance-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-md);
}
.compliance-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
}
.compliance-card__body svg { color: var(--red); flex-shrink: 0; }

/* Sidebar: section cross-nav */
.section-nav {
  display: flex;
  flex-direction: column;
}
.section-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}
.section-nav a:last-child { border-bottom: none; }
.section-nav a:hover, .section-nav a.active { color: var(--red); }
.section-nav a.active { font-weight: 600; }
.section-nav svg { flex-shrink: 0; opacity: 0.6; }

@media (max-width: 700px) {
  .recognition-card { grid-template-columns: 1fr; }
  .recognition-card__badge {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--sp-lg);
  }
  .recognition-card__badge img { max-height: 180px; }
}
@media (max-width: 640px) {
  .rsc-gallery { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  }
  .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-up:nth-child(2) { transition-delay: 0.08s; }
  .fade-up:nth-child(3) { transition-delay: 0.16s; }
  .fade-up:nth-child(4) { transition-delay: 0.24s; }
}

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

/* ================================================================
   ATTORNEY PROFILE PAGE
   ================================================================ */

.atty-hero {
  background: var(--bg-tint);
  padding-block: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}

.atty-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-lg);
  transition: color var(--dur-fast);
}
.atty-hero__back:hover { color: var(--red); }
.atty-hero__back svg { flex-shrink: 0; }

.atty-hero__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.atty-photo {
  aspect-ratio: 3 / 4;
  background: oklch(95% 0.002 0);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

.atty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atty-photo__initials {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 300;
  color: oklch(70% 0.003 0);
  letter-spacing: 0.06em;
  user-select: none;
}

.atty-hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding-top: var(--sp-xs);
}

.atty-name {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.atty-role {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0.01em;
}

.atty-hero__excerpt {
  font-size: var(--step-sm);
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 54ch;
}

.atty-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.atty-tag {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  color: var(--ink-2);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.atty-tag:hover { border-color: var(--red); color: var(--red); }

.atty-hero__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.atty-hero__contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.atty-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}
.atty-contact-link:hover { color: var(--red); }

/* Body */

.atty-body {
  padding-block: var(--sp-xl) var(--sp-2xl);
}

.atty-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: var(--sp-xl);
  align-items: start;
}

.atty-section {
  padding-bottom: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}
.atty-section:last-child { border-bottom: none; margin-bottom: 0; }

.atty-section__label {
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-md);
}

.atty-bio {
  font-size: var(--step-0);
  color: var(--ink);
  line-height: 1.78;
  max-width: 68ch;
}
.atty-bio + .atty-bio { margin-top: 1em; }

.atty-exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.atty-exp-item {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}
.atty-exp-item:last-child { border-bottom: none; }
.atty-exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.atty-edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.atty-edu-item__degree {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.atty-edu-item__school {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 0.25rem;
}
.atty-edu-item__year {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

/* Sidebar */

.atty-sidebar {
  position: sticky;
  top: calc(70px + var(--sp-lg));
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.atty-sidebar-card {
  padding: var(--sp-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.atty-sidebar-card__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.875rem;
}

.atty-area-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.atty-area-links li a {
  display: block;
  padding-block: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
  line-height: 1.35;
}
.atty-area-links li:last-child a { border-bottom: none; }
.atty-area-links li a:hover { color: var(--red); padding-left: 0.25rem; }

.atty-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.atty-meta-list li {
  font-size: 0.84rem;
  color: var(--ink-2);
}

.atty-sidebar-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.atty-sidebar-contact-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}
.atty-sidebar-contact-links a:hover { color: var(--red); }

.atty-vcard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.7rem var(--sp-md);
  margin-top: var(--sp-sm);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--border-mid);
  background: transparent;
  cursor: pointer;
  width: 100%;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.atty-vcard:hover { color: var(--red); border-color: var(--red); background: var(--red-pale); }

/* Responsive — attorney */
@media (max-width: 1100px) {
  .atty-layout { grid-template-columns: 1fr; }
  .atty-sidebar { position: static; }
  .atty-hero__inner { grid-template-columns: 200px 1fr; gap: var(--sp-lg); }
}

@media (max-width: 640px) {
  .atty-hero__inner { grid-template-columns: 1fr; }
  .atty-photo { max-width: 200px; }
}

/* ================================================================
   INSIGHT / ARTICLE PAGE
   ================================================================ */

/* Header */
.insight-header {
  padding-top: calc(70px + var(--sp-xl));
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}

.insight-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-sm);
  color: var(--ink-3);
  margin-bottom: var(--sp-lg);
}
.insight-breadcrumb a { color: var(--ink-3); transition: color var(--dur-fast); }
.insight-breadcrumb a:hover { color: var(--red); }
.insight-breadcrumb svg { flex-shrink: 0; opacity: 0.5; }

.insight-header__category {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.insight-type-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
}

.insight-area-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.25rem 0.6rem;
  transition: opacity var(--dur-fast);
}
.insight-area-badge:hover { opacity: 0.85; }

.insight-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: var(--sp-md);
  text-wrap: balance;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-sm);
  color: var(--ink-3);
  margin-bottom: var(--sp-lg);
}
.insight-meta__sep { opacity: 0.4; }

.insight-authors {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.insight-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--dur-fast);
}
.insight-author:hover { opacity: 0.7; }

.insight-author__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: oklch(92% 0.002 0);
  flex-shrink: 0;
}

.insight-author__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.insight-author__role {
  font-size: var(--step-sm);
  color: var(--ink-3);
}

/* Hero image */
.insight-hero-img {
  padding-block: var(--sp-xl);
  background: var(--bg);
}
.insight-hero-img figure { margin: 0; }
.insight-hero-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Two-column layout */
.insight-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-2xl);
  padding-block: var(--sp-2xl);
  align-items: start;
}

/* Prose */
.insight-prose {
  min-width: 0;
}

.insight-prose__lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--sp-xl);
  font-weight: 400;
}

.insight-prose h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.insight-prose h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
}

.insight-prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: var(--sp-md);
  max-width: 68ch;
}

.insight-prose ul {
  padding-left: 1.25rem;
  margin-bottom: var(--sp-md);
}
.insight-prose ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.insight-prose__blockquote {
  border-left: 3px solid var(--red);
  padding: var(--sp-md) var(--sp-lg);
  background: oklch(97% 0.003 26);
  margin: var(--sp-xl) 0;
}
.insight-prose__blockquote p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 var(--sp-sm);
  max-width: none;
}
.insight-prose__blockquote footer {
  font-size: var(--step-sm);
  color: var(--ink-3);
  font-style: normal;
}

/* Tags */
.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}
.insight-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.insight-tag:hover { border-color: var(--red); color: var(--red); }

/* Share */
.insight-share {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}
.insight-share__label {
  font-size: var(--step-sm);
  color: var(--ink-3);
  font-weight: 500;
}
.insight-share__btns {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.insight-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  transition: border-color var(--dur-fast), color var(--dur-fast);
  cursor: pointer;
  background: none;
}
.insight-share__btn:hover { border-color: var(--red); color: var(--red); }

/* Author bio card */
.insight-author-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-lg);
  align-items: start;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border);
}
.insight-author-card__photo {
  display: block;
  flex-shrink: 0;
}
.insight-author-card__photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: oklch(92% 0.002 0);
  display: block;
}
.insight-author-card__role {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.25rem;
}
.insight-author-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
  transition: color var(--dur-fast);
}
.insight-author-card__name:hover { color: var(--red); }
.insight-author-card__bio {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--sp-md);
  max-width: none;
}

/* Sidebar */
.insight-sidebar {
  position: sticky;
  top: calc(70px + var(--sp-lg));
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* TOC */
.insight-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.insight-toc__link {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast);
  line-height: 1.4;
}
.insight-toc__link:last-child { border-bottom: none; }
.insight-toc__link:hover { color: var(--red); }

/* More insights section */
.insight-more {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-2xl);
}
.insight-more__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-xl);
}

/* Responsive */
@media (max-width: 1100px) {
  .insight-layout { grid-template-columns: 1fr 260px; gap: var(--sp-xl); }
}
@media (max-width: 900px) {
  .insight-layout { grid-template-columns: 1fr; }
  .insight-sidebar { position: static; }
}
@media (max-width: 640px) {
  .insight-author-card { grid-template-columns: 1fr; }
  .insight-authors { flex-direction: column; gap: var(--sp-md); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .about__inner { grid-template-columns: 1fr; }
  .about__image { aspect-ratio: 16 / 9; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insight-card--featured { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article__img img { min-height: 280px; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .pa-body__inner { grid-template-columns: 1fr; }
  .pa-sidebar { position: static; }
  .practice-areas-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sp-2xl: 4.5rem; --sp-3xl: 7rem; }
  .news-grid  { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card--featured { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .news-hero__inner { flex-direction: column; align-items: flex-start; }
  .news-hero__desc { text-align: left; }
  .about__stats { gap: var(--sp-lg); }
  .pa-related .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .practice-areas-cols { grid-template-columns: 1fr; }
}

/* ================================================================
   CONTACT MODAL
   ================================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: oklch(12% 0.005 0 / 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.contact-modal__box {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px oklch(0% 0 0 / 0.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.contact-modal.is-open .contact-modal__box {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  transition: color var(--dur-fast), border-color var(--dur-fast);
  z-index: 1;
}
.contact-modal__close:hover { color: var(--red); border-color: var(--red); }

.contact-modal__header {
  padding: var(--sp-xl) var(--sp-xl) var(--sp-md);
  border-bottom: 1px solid var(--border);
}
.contact-modal__eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-sm);
}
.contact-modal__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.contact-modal__sub {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.contact-modal__form {
  padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* Form grid */
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.cform-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cform-field--full { grid-column: 1 / -1; }

.cform-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cform-label span { color: var(--red); margin-left: 2px; }

.cform-input,
.cform-select,
.cform-textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--dur-fast);
  width: 100%;
}
.cform-input:focus,
.cform-select:focus,
.cform-textarea:focus { border-color: var(--red); }
.cform-input::placeholder,
.cform-textarea::placeholder { color: var(--ink-3); }

.cform-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.cform-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.cform-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
}
.cform-note {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .contact-modal { padding: 0; align-items: flex-end; }
  .contact-modal__box { max-height: 95vh; max-width: 100%; }
  .cform-row { grid-template-columns: 1fr; }
  .contact-modal__header,
  .contact-modal__form { padding-inline: var(--sp-md); }
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-hero {
  background: var(--bg-tint);
  padding-block: var(--sp-2xl);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.contact-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.contact-hero__title strong { color: var(--red); }
.contact-hero__sub {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.65;
}

.contact-body {
  padding-block: var(--sp-2xl);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-2xl);
  align-items: start;
}

/* Full-page form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--sp-xl);
}
.contact-form-wrap form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
.contact-form-wrap .cform-row { gap: var(--sp-md); grid-column: 1 / -1; }
.contact-form-wrap .cform-submit { grid-column: 1 / -1; }
.contact-form-wrap .cform-field--full,
.contact-form-wrap .cform-textarea { grid-column: 1 / -1; }

/* Info panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  position: sticky;
  top: calc(70px + var(--sp-lg));
}

.contact-info-card {
  border: 1px solid var(--border);
  padding: var(--sp-lg);
}

.contact-info-card__heading {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-md);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.contact-info-item a { color: var(--ink-2); transition: color var(--dur-fast); }
.contact-info-item a:hover { color: var(--red); }

.contact-map {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  filter: grayscale(0.3);
}

.contact-social {
  display: flex;
  gap: var(--sp-sm);
  padding-top: var(--sp-md);
}
.contact-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.contact-social a:hover { color: #fff; background: var(--red); border-color: var(--red); }

/* Success state */
.cform-success {
  display: none;
  text-align: center;
  padding: var(--sp-xl);
}
.cform-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: oklch(50% 0.196 26 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
  color: var(--red);
}
.cform-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.cform-success__text { font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; }

@media (max-width: 1000px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; flex-direction: row; flex-wrap: wrap; }
  .contact-info-card { flex: 1 1 280px; }
}
@media (max-width: 640px) {
  .contact-form-wrap { padding: var(--sp-md); }
  .contact-info { flex-direction: column; }
}

/* ================================================================
   FILTER BAR — MOBILE ADAPTATIONS
   ================================================================ */

/* Mobile trigger button — hidden on desktop */
.fbv2-mobile-bar { display: none; }

/* Bottom sheet — hidden by default everywhere */
.fbv2-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 500);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.fbv2-sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.fbv2-sheet__overlay {
  position: absolute;
  inset: 0;
  background: oklch(12% 0.005 0 / 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.fbv2-sheet__panel {
  position: relative;
  width: 100%;
  background: var(--surface);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 -8px 40px oklch(0% 0 0 / 0.18);
}
.fbv2-sheet.is-open .fbv2-sheet__panel {
  transform: translateY(0);
}

/* Drag handle pill */
.fbv2-sheet__panel::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.fbv2-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.fbv2-sheet__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.fbv2-sheet__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.fbv2-sheet__close:hover { color: var(--red); border-color: var(--red); }

.fbv2-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.fbv2-sheet__section { display: flex; flex-direction: column; gap: var(--sp-sm); }

.fbv2-sheet__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Sheet chips */
.fbv2-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fbv2-sheet__chip {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.fbv2-sheet__chip:hover { border-color: var(--ink-2); color: var(--ink); }
.fbv2-sheet__chip.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* Sheet native selects */
.fbv2-sheet__select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 11px 36px 11px 14px;
  width: 100%;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}
.fbv2-sheet__select:focus { border-color: var(--red); }

/* Active pills below trigger */
.fbv2-active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 4px;
}
.fbv2-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark);
  background: oklch(92% 0.003 0);
  border: 1px solid oklch(85% 0.003 0);
  padding: 3px 8px;
}

.fbv2-sheet__footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
  padding-bottom: max(var(--sp-md), env(safe-area-inset-bottom));
}
.fbv2-sheet__footer .btn { flex: 1; justify-content: center; }

/* Count badge on trigger */
.fbv2-mobile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  border-radius: 9px;
  font-family: var(--font-display);
}

@media (max-width: 767px) {
  /* Show mobile trigger, hide desktop bar content */
  .fbv2-inner { display: none; }
  .fbv2-mobile-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .fbv2-mobile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: 1px solid var(--border);
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color var(--dur-fast), color var(--dur-fast);
    align-self: flex-start;
  }
  .fbv2-mobile-trigger:hover { border-color: var(--ink); }
  .fbv2-mobile-trigger:active { background: oklch(95% 0 0); }

  /* Panel position adjustment: on mobile, fix panel to avoid clipping */
  .fbv2-dropdown__panel {
    min-width: calc(100vw - 32px);
    left: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbv2-sheet__panel { transition: none; }
  .fbv2-sheet { transition: none; }
}
