/* ==========================================================================
   AAA Law Offices — Editorial Design System
   Light cream theme, massive Fraunces headlines, Inter body, brand red + mustard gold.
   ========================================================================== */

:root {
  --ink: #14100E;
  --ink-soft: #2A1F1A;
  --ink-mute: rgba(20, 16, 14, 0.58);
  --ink-faint: rgba(20, 16, 14, 0.32);

  --paper: #F5F1EA;
  --paper-pure: #FBF8F2;
  --paper-deep: #ECE5D8;
  --paper-mustard: #EFE7D2;

  --brand: #960F00;
  --brand-dark: #640000;
  --brand-bright: #B81810;

  /* Mustard heritage accent — calm, not eye-bleeding */
  --mustard: #B89124;
  --mustard-bright: #D4A93C;
  --mustard-deep: #8E6E1A;
  --mustard-soft: rgba(184, 145, 36, 0.15);

  --gold: #C8932F;
  --gold-deep: #A87815;
  --gold-soft: #E0B069;

  --line: rgba(20, 16, 14, 0.10);
  --line-strong: rgba(20, 16, 14, 0.20);
  --line-gold: rgba(184, 145, 36, 0.28);

  --dark: #1A0606;
  --on-dark: #F5F1EA;
  --on-dark-mute: rgba(245, 241, 234, 0.65);

  --navy: var(--paper);
  --navy-light: var(--paper-deep);
  --navy-darker: var(--paper-pure);
  --cream: var(--paper);
  --gold-bright: var(--gold);
  --gold-dim: rgba(184, 145, 36, 0.1);

  /* One typeface across the whole site — Instrument Serif (same font as the
     hero "Two decades of navigating Tajik law…"). User asked for unified
     typography: display headings and body copy share the same serif. */
  --font-display: 'Instrument Serif', 'Bembo', Georgia, serif;
  --font-body: 'Instrument Serif', 'Bembo', Georgia, serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1480px;
  --container-wide: 1680px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --section-pad: clamp(3rem, 6vw, 5.5rem);
  --section-pad-lg: clamp(4rem, 8vw, 7rem);
}

/* Display weight default for Fraunces */
.hero__title, .section__title,
.credential-card__title, .credential-card__number,
.team-card__name, .insight-card__title, .person__name,
.article__title, .stat__number, .contact-cta__title,
.error-page__number, .error-page__title, .contact-info__value {
  font-weight: 400;
}

.article__lead { font-weight: 400; }

/* Page transition: a calm crossfade through the cream paper, with a thin
   gold line that "loads" across the centre while the veil is up. */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
}

.page-transition__bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 42vw);
  height: 2px;
  transform: translate(-50%, -50%);
  background: var(--mustard-soft);
  overflow: hidden;
}

.page-transition__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mustard);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Leaving: veil fades up while the gold line loads left → right */
.page-transition.leaving {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition.leaving .page-transition__bar::after {
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.02s;
}

/* Entering: the new page arrives behind the veil, line already full... */
.page-transition.entering {
  opacity: 1;
  visibility: visible;
}

.page-transition.entering .page-transition__bar::after { transform: scaleX(1); }

/* ...then the veil melts away while content settles in underneath */
.page-transition.entering.revealing {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}

/* Page fade — robust: pure CSS, works even if JS fails */
@keyframes pageEnter {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

body {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none !important; }
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.55;
  font-weight: 400;
}

/* Mustard accent — heritage gold rule below labels, accents */
.section__label,
.hero__label,
.clients__label,
.person__role,
.person__section-title,
.footer__col-title,
.contact-info__label,
.practice-detail__services-title,
.insights-hub__count,
.article__share-label,
.breadcrumbs {
  position: relative;
}

/* Mustard underline on body links inside text */
.about__text a:not(.btn):not(.team-card):not(.team-card__email),
.article__body p a {
  color: var(--brand);
  border-bottom: 1px solid var(--mustard);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.about__text a:not(.btn):not(.team-card):not(.team-card__email):hover,
.article__body p a:hover {
  border-color: var(--brand);
  color: var(--brand-bright);
}

::selection { background: var(--brand); color: var(--paper); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide { max-width: var(--container-wide); }

.section { padding: var(--section-pad) 0; }
.section--tight { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--lg { padding: var(--section-pad-lg) 0; }
.section--mustard { background: var(--paper-mustard); }

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2rem;
}

.section__label::before {
  content: '';
  width: 56px;
  height: 2px;
  background: var(--mustard);
  opacity: 1;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.4vw, 7.7rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  letter-spacing: -0.026em;
  color: var(--ink);
  padding-bottom: 0.1em;
}

.section__title em {
  font-style: italic;
  color: var(--brand);
}

.section__title .gold { color: var(--gold-deep); font-style: italic; }

.section__subtitle {
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__text { opacity: 0; }

.preloader__img {
  width: clamp(80px, 10vw, 130px);
  height: auto;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
}

.header.scrolled {
  background: rgba(245, 241, 234, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

/* Logo big, left-aligned; navigation on the right. */
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.header__logo:hover { opacity: 0.85; }

.header__logo-img {
  height: 124px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease-out);
}

.header.scrolled .header__logo-img { height: 78px; }

@media (max-width: 768px) {
  .header__logo-img { height: 54px; }
  .header.scrolled .header__logo-img { height: 46px; }
}
@media (max-width: 400px) {
  .header__logo-img { height: 48px; }
}

.header__nav {
  display: flex;
  gap: 2.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.header__nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  padding: 0.25rem 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width 0.3s var(--ease-out);
}

.header__nav a:hover, .header__nav a.active { color: var(--brand); }
.header__nav a:hover::after, .header__nav a.active::after { width: 100%; }

.header__contact-btn {
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0 0.5rem !important;
  background: transparent;
  color: var(--brand) !important;
  border: none;
  border-radius: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.25s, gap 0.25s;
}

.header__contact-btn::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--mustard);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.25s;
}

.header__contact-btn::after {
  content: '' !important;
  position: absolute !important;
  display: block !important;
  bottom: 0 !important;
  left: 18px !important;
  right: 0 !important;
  width: auto !important;
  height: 2px !important;
  background: var(--brand) !important;
  transform: scaleX(1) !important;
  transition: background 0.25s !important;
  opacity: 1 !important;
}

.header__contact-btn:hover {
  color: var(--brand-bright) !important;
  gap: 0.7rem;
}
.header__contact-btn:hover::before { background: var(--brand); transform: scale(1.2); }
.header__contact-btn:hover::after { background: var(--brand-bright) !important; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  flex-shrink: 0;
}

.burger span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s, background 0.3s;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--brand); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--brand); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  padding: 5rem 2rem 7rem;
  overflow-y: auto;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0.1rem 0.5rem;
}

.mobile-menu a:hover { color: var(--brand); }

.mobile-menu__footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.15rem 1rem;
  padding: 0 1.5rem;
  color: var(--ink-mute);
}

/* Email — clean centred line on its own row, in brand red so it stands out */
.mobile-menu__footer a[href^="mailto:"] {
  flex: 0 0 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.mobile-menu__footer a[href^="mailto:"]:hover { color: var(--brand-bright); }

/* Social links — equal, tidy circular icon buttons (no mismatched labels) */
.mobile-menu__footer .social-icon {
  width: 48px;
  height: 48px;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.mobile-menu__footer .social-icon:hover {
  border-color: var(--brand);
  background: var(--paper-pure);
}
.mobile-menu__footer .social-icon svg { width: 21px; height: 21px; }

/* keep the brand name for screen readers, hide it visually */
.mobile-menu__footer .social-icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 11rem 0 3.5rem;
  background: var(--paper);
}

.hero--page {
  min-height: 48vh;
  padding-top: 11rem;
  padding-bottom: 3.5rem;
  align-items: flex-end;
}

.hero__logos-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.045;
  pointer-events: none;
}

.logo-track {
  position: absolute;
  white-space: nowrap;
  display: flex;
  gap: 5rem;
  align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.01em;
  color: var(--brand);
  will-change: transform;
}

.logo-track:nth-child(1) { top: 6%; }
.logo-track:nth-child(2) { top: 20%; }
.logo-track:nth-child(3) { top: 34%; }
.logo-track:nth-child(4) { top: 48%; }
.logo-track:nth-child(5) { top: 62%; }
.logo-track:nth-child(6) { top: 76%; }
.logo-track:nth-child(7) { top: 90%; }

.logo-track .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-track img {
  height: 40px;
  width: auto;
  filter: brightness(0);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.hero__gradient, .hero__gradient-top { display: none; }

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  width: 100%;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero__label::before {
  content: '';
  width: 56px;
  height: 2px;
  background: var(--mustard);
  opacity: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.4vw, 7.7rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2.5rem;
  letter-spacing: -0.026em;
  padding-bottom: 0.1em;
}

.hero__title em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.hero__title .line-inner {
  display: block;
  transform: translateY(120%);
  padding-bottom: 0.05em;
}

.hero__description {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 3.5rem;
  opacity: 0;
}

.hero__cta {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 2.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--brand);
  color: var(--paper);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(150, 15, 0, 0.28);
  background: var(--brand-bright);
}

.btn--ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 1.05rem 2.6rem;
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn--link {
  padding: 0;
  background: none;
  color: var(--brand);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-bottom: 1.5px solid var(--brand);
  padding-bottom: 4px;
  border-radius: 0;
}

.btn--link:hover {
  color: var(--brand-bright);
  border-color: var(--brand-bright);
}

.btn--link svg { transition: transform 0.3s; }
.btn--link:hover svg { transform: translateX(4px); }

/* Email buttons must show the literal lowercase address, not UPPERCASED */
.btn[href^="mailto:"] { text-transform: none; letter-spacing: 0.02em; }

.trust-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 15s linear infinite;
}

.trust-bar__item {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.trust-bar__item::after {
  content: '◆';
  font-size: 0.5rem;
  color: var(--gold);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.clients {
  padding: var(--section-pad) 0;
  background: var(--paper-mustard);
  position: relative;
}

.clients__intro {
  text-align: center;
  margin-bottom: 3rem;
}

.clients__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.clients__label::before, .clients__label::after {
  content: '';
  width: 56px;
  height: 2px;
  background: var(--mustard);
  opacity: 1;
}

.clients__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 0.1em;
}

.clients__title em { font-style: italic; color: var(--brand); }

.clients__note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.clients__note::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mustard);
  margin: 0 auto 1rem;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 1rem;
  background: var(--paper-pure);
}

.client-cell {
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.client-cell:hover { background: var(--paper); }

.client-cell img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  filter: grayscale(100%) contrast(1.4) opacity(0.55);
  transition: filter 0.3s;
  object-fit: contain;
}

.client-cell:hover img { filter: grayscale(0) contrast(1) opacity(1); }

.client-cell__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--ink-mute);
  text-align: center;
  transition: color 0.3s;
}

.client-cell:hover .client-cell__text { color: var(--brand); }

@media (max-width: 1024px) {
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client-cell { padding: 1.75rem 1rem; min-height: 110px; }
}

.about { background: var(--paper); }

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: 3rem;
  align-items: start;
}

.about__text p {
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--ink); font-weight: 500; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-content: start;
}

.stat {
  padding: 2.5rem 2rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.2s, background 0.3s;
}

.stat:hover {
  border-color: var(--mustard);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 145, 36, 0.15);
}

.stat:hover .stat__number {
  color: var(--mustard-deep);
  transition: color 0.3s;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.8vw, 4.3rem);
  color: var(--brand);
  line-height: 1.04;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  font-weight: 400;
  padding-bottom: 0.06em;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-mute);
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.credentials { background: var(--paper); position: relative; }

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.credential-card {
  padding: 3rem 2.5rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  grid-column: span 6;
}

.credential-card--featured {
  grid-column: span 6;
  padding: 3.5rem 3rem;
}

.credential-card--small {
  grid-column: span 4;
  padding: 2.5rem;
}

.credential-card--wide { grid-column: span 12; }

.credential-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(14, 6, 6, 0.07);
}

.credential-card__number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.8vw, 5.4rem);
  color: var(--brand);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 400;
  padding-bottom: 0.1em;
}

.credential-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.credential-card--featured .credential-card__title {
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
}

.credential-card__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

.credential-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.credential-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--brand);
}

.practices {
  background: var(--brand);
  color: var(--on-dark);
  padding: var(--section-pad) 0;
}

.practices .section__label { color: var(--mustard-bright); }
.practices .section__label::before { background: var(--mustard-bright); }
.practices .section__title { color: var(--paper); }
.practices .section__title em { color: var(--mustard-bright); }

.practices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(245, 241, 234, 0.2);
  border-left: 1px solid rgba(245, 241, 234, 0.2);
}

.practice-item {
  padding: 2.25rem 2.5rem;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.25vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.3s, padding-left 0.3s;
  border-right: 1px solid rgba(245, 241, 234, 0.2);
  border-bottom: 1px solid rgba(245, 241, 234, 0.2);
  text-decoration: none;
}

.practice-item:hover {
  background: var(--brand-dark);
  padding-left: 3rem;
}

.practice-item__arrow {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s, transform 0.3s;
  color: var(--mustard-bright);
  flex-shrink: 0;
}

.practice-item:hover .practice-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

.team { background: var(--paper); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1100px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
  display: block;
}

.team-card:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
}

.team-card__image-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out), filter 0.3s;
  filter: grayscale(60%) contrast(1.05);
}

.team-card:hover .team-card__image {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1);
}

.team-card__info {
  padding: 2rem 2.25rem 2.5rem;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 2.7vw, 2.5rem);
  margin-bottom: 0.4rem;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  padding-bottom: 0.06em;
}

.team-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.team-card__desc {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.team-card__email {
  font-size: 0.95rem;
  color: var(--brand);
  font-weight: 500;
  word-break: break-all;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
}

.insights { background: var(--paper); }

.insights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  row-gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.insight-card {
  padding: 2.5rem 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s, background 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.insight-card:hover { padding-left: 1.5rem; }

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--brand);
  transition: height 0.5s var(--ease-out);
}

.insight-card:hover::before { height: 100%; }

.insight-card__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.insight-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.insight-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
}

.insight-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.3vw, 2.05rem);
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.018em;
  transition: color 0.3s;
  padding-right: 0.5rem;
}

.insight-card:hover .insight-card__title { color: var(--brand); }

.insight-card__excerpt {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: gap 0.3s;
}

.insight-card:hover .insight-card__link { gap: 1rem; }

.ranked {
  padding: clamp(6rem, 10vw, 9rem) 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.ranked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200, 147, 47, 0.18), transparent 60%);
  pointer-events: none;
}

.ranked__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  column-gap: clamp(3rem, 7vw, 6rem);
  row-gap: 2.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ranked__text {
  flex: 0 0 100%;
  text-align: center;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--mustard-bright);
  padding-bottom: 1.85rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.ranked__text::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 2px;
  background: var(--mustard-bright);
  transform: translateX(-50%);
}

.ranked__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s;
}

.ranked__badge:hover { transform: translateY(-5px); }
.ranked__badge--static { cursor: default; }
.ranked__badge--static:hover { transform: none; }

.ranked__badge-img {
  width: clamp(150px, 17vw, 230px);
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(64%) sepia(48%) saturate(520%) hue-rotate(1deg) brightness(91%) contrast(89%);
  transition: filter 0.3s, transform 0.3s;
}

.ranked__badge:hover .ranked__badge-img {
  filter: brightness(0) saturate(100%) invert(73%) sepia(56%) saturate(560%) hue-rotate(1deg) brightness(99%) contrast(90%);
  transform: translateY(-2px);
}

.ranked__badge--static:hover .ranked__badge-img {
  filter: brightness(0) saturate(100%) invert(64%) sepia(48%) saturate(520%) hue-rotate(1deg) brightness(91%) contrast(89%);
  transform: none;
}

.ranked__badge-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--paper);
  text-align: center;
}

.ranked__badge-sub {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}

.contact-cta {
  padding: var(--section-pad) 0;
  text-align: center;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 72px;
  background: var(--mustard);
  transform: translateX(-50%);
}

.contact-cta__inner {
  position: relative;
  z-index: 1;
}

.contact-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.4vw, 7.7rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  letter-spacing: -0.026em;
  color: var(--ink);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.1em;
}

.contact-cta__title em {
  font-style: italic;
  color: var(--brand);
}

.contact-cta__subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 3.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  padding: 6rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer__brand-name { margin-bottom: 1.5rem; }

.footer__brand-img {
  height: 200px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}

/* Social icons — grey, not brand colors */
.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  transition: color 0.2s;
  text-decoration: none;
}

.social-icon:hover { color: var(--brand); }

.social-icon svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  color: var(--ink-mute);
  transition: color 0.2s;
  display: inline-block;
}

.social-icon:hover svg { color: var(--brand); }

/* Larger inline icon variant for contact page */
.social-icon--large svg {
  width: 30px;
  height: 30px;
}

/* Brand mark section — giant logo as visual anchor */
.brand-mark {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at center, var(--paper-mustard), var(--paper) 72%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mustard), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.brand-mark__img {
  height: clamp(280px, 34vw, 460px);
  width: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.brand-mark__caption {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.footer__brand-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 340px;
  margin-bottom: 2rem;
}

.footer__rankings {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer__rank-badge {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}

.footer__rank-badge:hover { border-color: var(--brand); }

.footer__rank-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

.footer__rank-detail {
  font-size: 0.65rem;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.75rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__links a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--brand); }

.footer__contact-line {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer__contact-line a:hover { color: var(--brand); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__socials {
  display: flex;
  gap: 2rem;
}

.footer__socials a {
  color: var(--ink-soft);
  transition: color 0.2s;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.footer__socials a:hover { color: var(--brand); }

.person {
  padding: 11rem 0 6rem;
  background: var(--paper);
}

.person__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.person__photo-wrap {
  position: sticky;
  top: 7rem;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-deep);
}

.person__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.05);
}

.person__role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.person__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.4vw, 7.7rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.026em;
  color: var(--ink);
  padding-bottom: 0.1em;
}

.person__intro {
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.person__section { margin-bottom: 3.5rem; }

.person__section-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.person__section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.person__section li {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-soft);
  padding-left: 1.75rem;
  position: relative;
}

.person__section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 14px;
  height: 2px;
  background: var(--mustard);
}

.person__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mustard);
}

.person__contact-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.05rem;
  color: var(--ink);
}

.person__contact-row strong {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  min-width: 80px;
}

.person__contact-row a {
  color: var(--ink);
  transition: color 0.2s;
}

.person__contact-row a:hover { color: var(--brand); }

.article {
  padding: 11rem 0 5rem;
  background: var(--paper);
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4rem;
  transition: gap 0.3s;
}

.article__back:hover { gap: 1rem; }

.article__header {
  max-width: 1000px;
  margin: 0 auto 5rem;
  text-align: left;
}

.article__meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article__date { color: var(--brand); font-weight: 600; }
.article__readtime { color: var(--ink-mute); }

.article__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.026em;
  padding-bottom: 0.1em;
}

.article__body {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.32rem, 1.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.012em;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* Imported article HTML hard-codes inline font-size on every span/strong.
   Neutralise it so the body scale above actually applies. */
.article__body [style*="font-size"],
.article__lead [style*="font-size"] {
  font-size: inherit !important;
}
.article__body span,
.article__lead span { font-size: inherit; }

.article__lead {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.article__lead p { margin-bottom: 1.2rem; }
.article__lead p:last-child { margin-bottom: 0; }

.article__body p { margin-bottom: 1.7rem; }

.article__body strong {
  color: var(--ink);
  font-weight: 600;
  display: inline;
}

.article__body em { font-style: italic; }

.article__body a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.2s;
}

.article__body a:hover { text-decoration-thickness: 2px; }

.article__body h2, .article__body h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article__body h2 { font-size: clamp(2.1rem, 3vw, 2.8rem); }
.article__body h3 { font-size: clamp(1.65rem, 2.3vw, 2rem); color: var(--brand); }

/* Hydrated intro: cms.js injects articles.json `introtext` (which is HTML) into
   .article__lead, so style the headings/blockquotes it can contain, plus the
   deeper heading levels the imported body content may carry (h4–h6). */
.article__lead h2, .article__lead h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.article__lead h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.article__lead h3 { font-size: clamp(1.4rem, 1.9vw, 1.7rem); color: var(--brand); }
.article__lead blockquote {
  border-left: 3px solid var(--mustard);
  padding-left: 1.25rem;
  font-style: italic;
}
.article__body h4, .article__body h5, .article__body h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.article__body h4 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); color: var(--brand); }
.article__body h5 { font-size: clamp(1.18rem, 1.5vw, 1.35rem); }
.article__body h6 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
/* Imported content is littered with empty spacer paragraphs — collapse them. */
.article__body p:empty, .article__lead p:empty { display: none; }

.article__body ul, .article__body ol {
  margin: 0 0 1.7rem;
  padding-left: 1.75rem;
}

.article__body li { margin-bottom: 0.7rem; }
.article__body ul li::marker { color: var(--brand); }

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  background: var(--paper-pure);
  font-size: 0.95rem;
  border: 1px solid var(--line);
}

.article__body table td, .article__body table th {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article__body table th, .article__body table tr:first-child td {
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 600;
}

.article__body table td strong { color: var(--brand); }

.article__body blockquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2.25rem;
  border-left: 4px solid var(--brand);
  background: var(--paper-pure);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.5;
}

.article__body img {
  margin: 2rem auto;
  border: 1px solid var(--line);
}

.article__footer {
  max-width: 880px;
  margin: 5rem auto 0;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.article__share {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.article__share-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
}

.article__share-buttons { display: flex; gap: 0.75rem; }

.article__share-btn {
  padding: 0.7rem 1.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  transition: all 0.2s;
  background: transparent;
}

.article__share-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.article__related { margin-top: 6rem; }

.article__related-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.insights-hub__filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 4rem 0 2rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  background: none;
}

.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-chip.active {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
}

.insights-hub__count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 1.5rem 0 3rem;
}

.contact-page {
  padding: 11rem 0 5rem;
  background: var(--paper);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 7vw, 7rem);
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info__block {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.contact-info__block:last-child { border-bottom: none; }

.contact-info__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.contact-info__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.contact-info__sub {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.contact-info__value a:hover { color: var(--brand); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 3.5rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mustard);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.form-field input, .form-field select, .form-field textarea {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.2s;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
  font-family: var(--font-body);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23960F00' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form__submit {
  padding: 1.15rem 2rem;
  background: var(--brand);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 1rem;
  cursor: pointer;
  border: none;
}

.contact-form__submit:hover {
  background: var(--brand-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(150, 15, 0, 0.28);
}

.contact-form__success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
}

.contact-form__success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Animated success: ring + checkmark, clean and crisp */
.contact-form__success-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.contact-form__success-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.contact-form__success-icon .circle,
.contact-form__success-icon .check {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form__success-icon .circle {
  stroke: var(--mustard);
  stroke-width: 2.5;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  transform: rotate(-90deg);
  transform-origin: 55px 55px;
  animation: drawCircle 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.contact-form__success-icon .check {
  stroke: var(--brand);
  stroke-width: 3.5;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
}

.contact-form__success-icon .pulse {
  fill: none;
  stroke: var(--mustard);
  stroke-width: 1.5;
  transform-origin: 55px 55px;
  opacity: 0;
  animation: pulse 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes pulse {
  0%   { opacity: 0.9; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.45); }
}

.contact-form__success-text {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s var(--ease-out) 0.6s forwards;
}

.contact-form__success-text em {
  font-style: italic;
  color: var(--brand);
}

.contact-form__success-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s var(--ease-out) 0.8s forwards;
  max-width: 340px;
  line-height: 1.6;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.contact-form__success-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mustard);
  font-size: 0.85rem;
  color: var(--ink-mute);
  opacity: 0;
  animation: fadeUp 0.5s var(--ease-out) 1s forwards;
}

.map-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper-pure);
  border: 1.5px solid var(--brand);
  padding: 11px;
  margin-top: 3rem;
  position: relative;
  box-shadow: 0 20px 54px rgba(20, 16, 14, 0.12);
}

.map-wrap::after {
  content: '';
  position: absolute;
  inset: 11px;
  border: 1px solid var(--mustard);
  pointer-events: none;
  z-index: 2;
}

.map-wrap::before {
  content: 'Serena Corporate Centre · Dushanbe';
  position: absolute;
  left: 11px;
  bottom: 11px;
  z-index: 3;
  background: var(--brand);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(22%) contrast(1.05);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
}

.breadcrumbs a {
  color: var(--ink-soft);
  transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--brand); }

.breadcrumbs__sep {
  color: var(--mustard);
  opacity: 1;
  font-weight: 600;
}

.practice-detail__intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  margin-top: 3rem;
  align-items: start;
}

.practice-detail__overview p {
  font-size: clamp(1.18rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.practice-detail__services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--mustard);
  background: var(--paper-pure);
}

.practice-detail__services-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.practice-detail__services li {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 1.75rem;
  position: relative;
}

.practice-detail__services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 14px;
  height: 2px;
  background: var(--mustard);
}

.credentials-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.credential-mini {
  padding: 2rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}

.credential-mini:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.credential-mini__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.credential-mini__text {
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Practice detail page floating bg logos */
.practice-detail {
  padding: 11rem 0 4rem;
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.practice-bg-logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.practice-bg-logos img {
  position: absolute;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.05;
}

.practice-detail__container {
  position: relative;
  z-index: 1;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  text-align: center;
  background: var(--paper);
}

.error-page__number {
  font-family: var(--font-display);
  font-size: clamp(6.5rem, 15vw, 13rem);
  color: var(--brand);
  line-height: 1.0;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  font-weight: 400;
  padding-bottom: 0.1em;
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-bottom: 0.08em;
}

.error-page__desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 3.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .about__grid, .practice-detail__intro, .contact-page__grid, .person__grid {
    grid-template-columns: 1fr;
  }
  .person__photo-wrap { position: static; max-width: 500px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .credential-card, .credential-card--featured, .credential-card--small {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .insights__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 3rem; }
  .ranked__inner { flex-direction: column; gap: 3rem; }
  .practices__grid { grid-template-columns: 1fr; }
  .credentials__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
  .contact-cta__actions { flex-direction: column; align-items: stretch; }
  .contact-cta__actions .btn { justify-content: center; }
  .contact-form { padding: 2.5rem 1.5rem; }
  .article__body table { font-size: 0.85rem; }
  .article__body table td { padding: 0.7rem; }
}

/* ==========================================================================
   MOBILE OVERHAUL — tablet & phone refinement
   ========================================================================== */
@media (max-width: 768px) {
  /* --- Headings: scale down so nothing is oversized or clipped --- */
  .hero__title,
  .section__title,
  .contact-cta__title,
  .person__name {
    font-size: clamp(1.95rem, 7.2vw, 3.4rem);
    line-height: 1.13;
    letter-spacing: -0.02em;
  }
  .article__title { font-size: clamp(1.8rem, 6.2vw, 2.8rem); line-height: 1.14; }
  .hero__title { margin-bottom: 1.75rem; }
  .person__name { margin-bottom: 1.25rem; }
  /* relax the line-mask so descenders never touch the next line */
  .hero__title .line { padding-bottom: 0.12em; margin-bottom: 0; }
  .clients__title { font-size: clamp(1.55rem, 5vw, 2.1rem); }
  .article__body h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-top: 2.5rem; }
  .article__body h3 { font-size: clamp(1.35rem, 4vw, 1.7rem); }
  .article__related-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .brand-mark__img { height: clamp(165px, 50vw, 240px); }

  /* --- Top clearance: fixed header is small now, trim the gap --- */
  .hero { padding: 7rem 0 2.5rem; }
  .hero--page { padding-top: 7rem; padding-bottom: 2.5rem; }
  .person { padding: 7rem 0 4rem; }
  .article { padding: 7rem 0 4rem; }
  .practice-detail { padding: 7rem 0 3rem; }
  .contact-page { padding: 4rem 0 4rem; }

  /* --- Spacing: tighten oversized vertical rhythm --- */
  .hero__label { margin-bottom: 1.5rem; }
  .hero__description { margin-bottom: 2.25rem; font-size: 1.05rem; }
  .section__label { margin-bottom: 1.4rem; }
  .ranked { padding: 4rem 0; }
  .footer { padding: 4rem 0 2.5rem; }
  .footer__grid { margin-bottom: 2.5rem; }
  .contact-cta__subtitle { margin-bottom: 2.25rem; }
  .person__intro { margin-bottom: 2.5rem; padding-bottom: 2rem; }
  .person__section { margin-bottom: 2.5rem; }
  .article__lead { margin-bottom: 2.5rem; padding-bottom: 2rem; }
  .article__back { margin-bottom: 2.5rem; }
  .article__share { margin-bottom: 3rem; }
  .article__related { margin-top: 3.5rem; }
  .article__footer { margin-top: 3.5rem; padding-top: 2.5rem; }
  .breadcrumbs { margin-bottom: 1.75rem; }

  /* --- No overflow / single-column on small grids --- */
  .credentials-mini { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
  .credential-card,
  .credential-card--small { padding: 2rem 1.5rem; }
  .credential-card--featured { padding: 2.25rem 1.6rem; }
  .credential-card__text { font-size: 0.98rem; }
  .practice-detail__services { padding: 1.75rem 1.5rem; }
  .person__contact { padding: 1.75rem 1.5rem; }
  .article__body blockquote { padding: 1.25rem 1.4rem; font-size: 1.15rem; }
  .map-wrap { aspect-ratio: 3 / 2; margin-top: 2.5rem; }

  /* --- Touch targets ≥ 44px --- */
  .footer__socials a { display: inline-flex; align-items: center; padding: 0.6rem 0; }
  .footer__links a { display: inline-block; padding: 0.5rem 0; }
  .article__share-btn { min-height: 44px; display: inline-flex; align-items: center; }

  /* --- Ranked strip stacks vertically: label must be content-sized --- */
  .ranked__text { flex: 0 0 auto; padding-bottom: 1.25rem; }

  /* --- Stats: comfortable padding on small two-up / one-up grids --- */
  .stat { padding: 1.75rem 1.4rem; }
  .insights-hub__filters { margin: 2.5rem 0 1.5rem; }

  /* --- Eyebrow labels: shrink the decorative rule so they never clip --- */
  .section__label, .hero__label, .clients__label { letter-spacing: 0.2em; }
  .section__label::before,
  .hero__label::before,
  .clients__label::before,
  .clients__label::after { width: 30px; }

  /* --- Bigger menu tap targets, calmer footer logo --- */
  .mobile-menu a { padding: 0.3rem 0.5rem; }
  .footer__brand-img { height: 132px; }

  /* --- Bug A: shorten the contact-CTA accent line so it sits cleanly
         above the heading instead of overlapping it --- */
  .contact-cta::before { height: 32px; }

  /* --- Practice pages: hide faint background logos (noise behind text) --- */
  .practice-bg-logos { display: none; }

  /* --- Trust-bar marquee: noticeably faster on mobile --- */
  .trust-bar__inner { animation-duration: 8s; }

  /* --- Article: tighten title→lead gap, calmer lead size --- */
  .article__header { margin-bottom: 2.25rem; }
  .article__lead { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  /* Hero call-to-action buttons go full-width and stack */
  .hero__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.85rem;
  }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .credential-card__number { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .stat__number { font-size: clamp(2.3rem, 10vw, 3rem); }
}

/* Landscape phones / very short screens — keep the menu usable */
@media (max-height: 600px) and (max-width: 1024px) {
  .mobile-menu { gap: 0.5rem; padding: 4rem 2rem 5rem; }
  .mobile-menu a { font-size: 1.5rem; }
  .mobile-menu__footer { position: static; margin-top: 1.5rem; }
}

/* Mobile: wide article tables scroll instead of overflowing the page */
@media (max-width: 768px) {
  .article__body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article__body table tbody,
  .article__body table thead { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .trust-bar__inner, .logo-track { animation: none !important; }
}
