/* ============================================================
   DAR Law Office — Design System
   Aesthetic reference: Cravath, Swaine & Moore
   Navy #002554 · warm paper · Scotch-serif display · neutral sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- Brand palette ---- */
  --navy: #002554;          /* Cravath brand navy */
  --navy-900: #001834;      /* deeper navy — footer, gradients */
  --navy-800: #002049;
  --navy-700: #123a6b;      /* hover on dark */
  --navy-600: #24507f;
  --paper: #f5f2ea;         /* warm off-white — alternating sections */
  --paper-2: #ece7db;       /* deeper paper — borders, wells */
  --white: #ffffff;

  /* ---- Ink (text on light) ---- */
  --ink: #1b2330;           /* near-black, slightly navy */
  --ink-soft: #4a525f;      /* body / secondary */
  --ink-faint: #767d88;     /* meta / tertiary */

  /* ---- Lines ---- */
  --line: #ddd6c8;          /* warm hairline on light */
  --line-soft: #ebe6da;
  --line-navy: rgba(255,255,255,0.16);

  /* ---- On navy ---- */
  --on-navy: #ffffff;
  --on-navy-soft: rgba(255,255,255,0.72);
  --on-navy-faint: rgba(255,255,255,0.42);

  /* ---- Type ---- */
  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Metrics ---- */
  --nav-height: 84px;
  --max-width: 1240px;
  --gutter: 48px;
  --section-pad: 118px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.45s var(--ease);

  /* ---- Back-compat aliases (legacy inline styles re-theme automatically) ---- */
  --charcoal: var(--ink);
  --charcoal-light: var(--ink-soft);
  --cream: var(--white);
  --cream-dark: var(--paper);
  --gold: var(--navy);
  --gold-dark: var(--navy);
  --gold-light: var(--navy-700);
  --border: var(--line);
  --border-light: var(--line-soft);
  --font-heading: var(--font-display);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; transition: color 0.35s var(--ease), opacity 0.35s var(--ease); }
a:hover { color: var(--navy-700); }

img { max-width: 100%; height: auto; display: block; }

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

.container { max-width: var(--max-width); margin: 0 auto; width: 100%; padding: 0 var(--gutter); }

/* Shared type helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--navy);
}
.eyebrow--light { color: var(--on-navy-soft); }
.serif { font-family: var(--font-display); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1000;
  display: flex; align-items: center;
  transition: transform 0.4s var(--ease), background 0.3s ease, height 0.3s ease;
}
.nav-hidden { transform: translateY(-100%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--gutter); height: 100%;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-brand-icon img { width: 80px; height: 80px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  color: var(--navy); font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
}
.nav-brand-sub {
  color: var(--ink-faint); font-size: 0.5rem; text-transform: uppercase;
  letter-spacing: 0.34em; font-weight: 600; margin-top: 5px;
}

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--ink); font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 4px 0; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-sep { width: 1px; height: 22px; background: var(--line); }
.nav-sub { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-sub a {
  color: var(--ink-faint); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.nav-sub a:hover { color: var(--navy); }

.nav-mobile-btn { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-mobile-btn span { display: block; width: 24px; height: 1.5px; background: var(--navy); margin: 6px 0; transition: var(--transition); }

/* ============================================================
   MOBILE MENU — modern full-screen overlay
   (activated by .nav-mobile-btn on small screens)
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--navy-900);
  color: var(--on-navy);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-height) + 18px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
  overflow: hidden;
}
/* Sheen texture so the flat navy feels layered, not plasticky */
.mobile-menu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(18,58,107,0.55) 0%, rgba(0,24,52,0) 60%);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-menu-close {
  position: absolute; top: 18px; right: var(--gutter);
  width: 46px; height: 46px; border: 1px solid var(--line-navy);
  background: transparent; color: var(--on-navy); font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.4s var(--ease);
}
body.menu-open .mobile-menu-close { transform: rotate(90deg); }
.mobile-menu-close:hover { background: var(--on-navy); color: var(--navy); }

.mobile-menu-head {
  position: relative; z-index: 1; padding-bottom: 26px;
  border-bottom: 1px solid var(--line-navy);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu-eyebrow {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--on-navy);
}
.mobile-menu-hint {
  font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--on-navy-faint);
}

.mobile-menu-links {
  position: relative; z-index: 1;
  margin-top: 30px; display: flex; flex-direction: column;
}
.mobile-menu-links a {
  font-family: var(--font-display); font-weight: 500; color: var(--on-navy);
  font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.14; letter-spacing: -0.01em;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.mobile-menu-links a::before {
  content: ''; align-self: center; width: 20px; height: 1px; background: var(--on-navy-faint);
  transition: width 0.4s var(--ease), background 0.3s;
}
body.menu-open .mobile-menu-links a {
  opacity: 1; transform: none;
}
body.menu-open .mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu-links a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .mobile-menu-links a:nth-child(3) { transition-delay: 0.24s; }
body.menu-open .mobile-menu-links a:nth-child(4) { transition-delay: 0.32s; }
body.menu-open .mobile-menu-links a:nth-child(5) { transition-delay: 0.40s; }
body.menu-open .mobile-menu-links a:nth-child(6) { transition-delay: 0.48s; }
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: var(--on-navy-soft); }
.mobile-menu-links a:hover::before, .mobile-menu-links a.active::before { width: 40px; background: var(--on-navy); }

.mobile-menu-foot {
  position: relative; z-index: 1; margin-top: auto;
  padding-top: 26px; border-top: 1px solid var(--line-navy);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--on-navy-faint);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}
body.menu-open .mobile-menu-foot { opacity: 1; transform: none; }
.mobile-menu-foot-sep { width: 34px; height: 1px; background: var(--on-navy-faint); }
.mobile-menu-foot a { color: var(--on-navy-soft); font-weight: 600; }
.mobile-menu-foot a:hover { color: var(--on-navy); }
body.menu-lock { overflow: hidden; }

/* ============================================================
   HERO (homepage) — navy, rotating headlines
   ============================================================ */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  background: var(--navy);
  color: var(--on-navy);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-bg-layer { position: absolute; inset: 0; z-index: 0; }
.hero-bg-item {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease);
  background-size: cover; background-position: center;
}
.hero-bg-item.active { opacity: 1; }
/* navy wash so any admin-supplied image stays legible; navy-only when no image */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,24,52,0.35) 0%, rgba(0,24,52,0.15) 40%, rgba(0,24,52,0.75) 100%),
    radial-gradient(120% 90% at 85% 10%, rgba(18,58,107,0.55) 0%, rgba(0,37,84,0) 60%);
}

/* Featured strip */
.hero-feature {
  position: relative; z-index: 3;
  border-bottom: 1px solid var(--line-navy);
}
.hero-feature-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero-feature .eyebrow { color: var(--on-navy-faint); flex-shrink: 0; }
.hero-feature-title { font-size: 0.9rem; color: var(--on-navy-soft); font-weight: 400; }
.hero-feature a.hero-feature-link {
  margin-left: auto; color: var(--on-navy); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 1px solid var(--on-navy-faint); padding-bottom: 2px;
}
.hero-feature a.hero-feature-link:hover { border-color: var(--on-navy); }

/* Rotating slides */
.hero-body { position: relative; z-index: 3; flex: 1; display: flex; align-items: center; }
.hero-slides { position: relative; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 60px var(--gutter); min-height: 46vh; }
.hero-slide {
  position: absolute; inset: 0; margin: auto var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide .tag {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px;
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 600; color: var(--on-navy-soft);
}
.hero-slide .tag::before { content: ''; width: 40px; height: 1px; background: var(--on-navy-faint); }
.hero-slide h2 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--on-navy);
  font-size: clamp(2.3rem, 5vw, 4.3rem); max-width: 15ch;
}
.hero-slide h2 a { color: var(--on-navy); transition: opacity 0.35s var(--ease); }
.hero-slide h2 a:hover { opacity: 0.72; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-navy);
}
.hero-cta .arrow { transition: transform 0.4s var(--ease); }
.hero-cta:hover .arrow { transform: translateX(6px); }

/* Slide controls */
.hero-controls {
  position: relative; z-index: 3;
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  padding: 0 var(--gutter) 44px; display: flex; align-items: center; gap: 24px;
}
.hero-counter { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--on-navy-soft); font-variant-numeric: tabular-nums; }
.hero-counter b { color: var(--on-navy); font-weight: 600; }
.hero-dots { display: flex; gap: 9px; }
.hero-dots button {
  width: 30px; height: 2px; border: none; padding: 0; cursor: pointer;
  background: var(--on-navy-faint); transition: background 0.35s var(--ease), width 0.35s var(--ease);
}
.hero-dots button:hover { background: var(--on-navy-soft); }
.hero-dots button.active { background: var(--on-navy); width: 46px; }
.hero-nav { margin-left: auto; display: flex; gap: 10px; }
.hero-nav button {
  width: 46px; height: 46px; border: 1px solid var(--line-navy); background: transparent;
  color: var(--on-navy); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.35s var(--ease);
}
.hero-nav button:hover { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  margin-top: var(--nav-height);
  background: var(--navy); color: var(--on-navy);
  padding: 88px 0 78px; position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 90% 0%, rgba(18,58,107,0.5) 0%, rgba(0,37,84,0) 55%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header .breadcrumb { color: var(--on-navy-faint); margin-bottom: 22px; }
.page-header .breadcrumb a { color: var(--on-navy-soft); }
.page-header .breadcrumb a:hover { color: var(--on-navy); }
.page-header .breadcrumb span { color: var(--on-navy-faint); }
.page-header h1 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.06;
  letter-spacing: -0.01em; font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  max-width: 20ch; margin-bottom: 20px;
}
.page-header p { color: var(--on-navy-soft); font-size: 1.05rem; max-width: 60ch; font-weight: 400; }
.page-header.light { background: var(--paper); color: var(--ink); }
.page-header.light h1 { color: var(--ink); }
.page-header.light p { color: var(--ink-soft); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section--tight { padding: 84px 0; }
.section-alt { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: var(--on-navy); }
.section-navy p { color: var(--on-navy-soft); }

.section-label { /* legacy hook */
  font-family: var(--font-body); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.2em; font-weight: 600; color: var(--navy); margin-bottom: 16px;
}
.section h2 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.14; letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section p.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; }

.rule { height: 1px; background: var(--line); border: 0; }

/* Prose block */
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.lead-serif {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.72rem); line-height: 1.5; letter-spacing: 0;
  max-width: 24ch;
}
.lead-serif--wide { max-width: 34ch; }

/* ============================================================
   NUMBERED FEATURE LIST (homepage 01/02/03)
   ============================================================ */
.numbered { border-top: 1px solid var(--line); }
.numbered-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 40px;
  padding: 58px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.numbered-row .num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-faint);
  font-weight: 400; font-variant-numeric: tabular-nums; padding-top: 6px;
}
.numbered-row .body { max-width: 68ch; }
.numbered-row .body h3 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.14; margin-bottom: 18px; letter-spacing: -0.01em;
}
.numbered-row .body h3 a { color: var(--ink); }
.numbered-row .body h3 a:hover { color: var(--navy-700); }
.numbered-row .body p { color: var(--ink-soft); font-size: 1.02rem; max-width: 62ch; }
.numbered-row.serif-lead .body p {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
  font-size: clamp(1.3rem, 2.1vw, 1.62rem); line-height: 1.5;
}

/* Text link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy);
}
.arrow-link .arrow { transition: transform 0.4s var(--ease); }
.arrow-link:hover .arrow { transform: translateX(6px); }
.section-navy .arrow-link { color: var(--on-navy); }

/* ============================================================
   NEWS / INSIGHTS LIST (Cravath numbered rows)
   ============================================================ */
.news-index { border-top: 1px solid var(--line); }
.news-row {
  display: grid; grid-template-columns: 66px 190px 1fr auto; gap: 32px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background 0.3s var(--ease);
}
.news-row:hover { background: var(--paper); }
.news-row .n-num { font-size: 0.72rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; padding-top: 6px; }
.news-row .n-meta { padding-top: 4px; }
.news-row .n-cat { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--navy); display: block; }
.news-row .n-date { font-size: 0.78rem; color: var(--ink-faint); margin-top: 5px; display: block; }
.news-row .n-title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; line-height: 1.28;
  letter-spacing: -0.005em;
}
.news-row .n-title a { color: var(--ink); }
.news-row .n-title a:hover { color: var(--navy-700); }
.news-row .n-arrow { color: var(--ink-faint); font-size: 1rem; align-self: center; transition: transform 0.4s var(--ease), color 0.3s; }
.news-row:hover .n-arrow { color: var(--navy); transform: translateX(5px); }

/* Search input */
.field-search {
  width: 100%; padding: 16px 20px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink); outline: none;
  transition: border-color 0.3s var(--ease);
}
.field-search:focus { border-color: var(--navy); }
.field-search::placeholder { color: var(--ink-faint); }

/* ============================================================
   PRACTICES (grouped index — Cravath style)
   ============================================================ */
.practice-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 72px; }
.practice-group { border-top: 2px solid var(--navy); padding-top: 26px; }
.practice-group h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin-bottom: 18px; color: var(--ink);
}
.practice-group ul { list-style: none; }
.practice-group li { border-bottom: 1px solid var(--line-soft); }
.practice-group li:last-child { border-bottom: 0; }
.practice-group li a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 2px; color: var(--ink); font-size: 0.98rem; transition: padding 0.35s var(--ease), color 0.3s;
}
.practice-group li a .p-arrow { color: var(--ink-faint); opacity: 0; transform: translateX(-6px); transition: all 0.35s var(--ease); }
.practice-group li a:hover { color: var(--navy); padding-left: 12px; }
.practice-group li a:hover .p-arrow { opacity: 1; transform: none; color: var(--navy); }

/* ============================================================
   TEAM / PEOPLE
   ============================================================ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-bar button {
  background: transparent; border: 1px solid var(--line); padding: 9px 20px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; color: var(--ink-soft); font-family: var(--font-body); transition: all 0.3s var(--ease);
}
.filter-bar button:hover { border-color: var(--navy); color: var(--navy); }
.filter-bar button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.people-group + .people-group { margin-top: 56px; }
.people-group-title {
  font-family: var(--font-body); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: var(--ink-faint); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.team-card {
  display: block; text-decoration: none; padding: 30px 0; border-bottom: 1px solid var(--line-soft);
  transition: opacity 0.3s var(--ease); position: relative;
}
.team-card:hover { opacity: 1; }
.team-card .avatar {
  width: 100%; aspect-ratio: 4/5; background: var(--paper-2); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--navy); font-weight: 500;
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; color: var(--ink);
  line-height: 1.2; margin-bottom: 6px; transition: color 0.3s;
}
.team-card:hover h3 { color: var(--navy); }
.team-card .role { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.team-card .brief { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   BIO / PERSON DETAIL
   ============================================================ */
.bio-layout { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.bio-sidebar { position: sticky; top: calc(var(--nav-height) + 40px); }
.bio-avatar {
  width: 100%; aspect-ratio: 4/5; background: var(--paper-2); margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 4rem; color: var(--navy); font-weight: 500; overflow: hidden;
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-contact { display: flex; flex-direction: column; gap: 14px; }
.bio-contact .row .k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); font-weight: 600; margin-bottom: 3px; }
.bio-contact .row .v { font-size: 0.9rem; color: var(--ink); }
.bio-contact .row .v a { color: var(--ink); }
.bio-contact .row .v a:hover { color: var(--navy); }
.bio-content .bio-eyebrow { color: var(--navy); margin-bottom: 14px; }
.bio-content h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.08; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.bio-content .bio-role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--navy); font-weight: 600; margin-bottom: 32px; }
.bio-content h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin: 40px 0 14px; }
.bio-content h2:first-of-type { margin-top: 0; }
.bio-content p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.75; }
.bio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bio-tags .tag { font-size: 0.72rem; padding: 6px 14px; border: 1px solid var(--line); color: var(--ink-soft); }

/* ============================================================
   CONTACT / LOCATIONS
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-info h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; color: var(--ink); margin-bottom: 28px; }
.contact-detail { margin-bottom: 26px; }
.contact-detail .label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.contact-detail .value { font-size: 0.98rem; color: var(--ink); line-height: 1.6; }
.contact-detail .value a { color: var(--ink); }
.contact-detail .value a:hover { color: var(--navy); }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink); outline: none;
  transition: border-color 0.3s var(--ease); border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { min-height: 140px; resize: vertical; }

.map-frame { width: 100%; border: 1px solid var(--line); filter: grayscale(0.25) contrast(1.02); }
.map-placeholder { width: 100%; height: 400px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 0.85rem; text-align: center; padding: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 34px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; transition: all 0.35s var(--ease);
  border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: var(--line-navy); }
.btn-ghost:hover { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }
.btn-sm { padding: 12px 26px; font-size: 0.66rem; }
/* legacy button aliases */
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-900); }
.btn-white { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-gold-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-gold-outline:hover { background: var(--navy); color: #fff; }

/* ============================================================
   EMPTY STATE / MISC
   ============================================================ */
.empty-state { text-align: center; padding: 64px 40px; background: var(--paper); border: 1px solid var(--line-soft); }
.empty-state h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 0.92rem; color: var(--ink-soft); }

.breadcrumb { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--ink-faint); }

/* Admin messages (used on contact form) */
.admin-success { background: #eef4ec; color: #2f5233; padding: 14px 16px; border: 1px solid #cfe0cd; font-size: 0.85rem; margin-bottom: 18px; }
.admin-error { background: #f7edec; color: #7a2e29; padding: 14px 16px; border: 1px solid #e6cfcd; font-size: 0.85rem; margin-bottom: 18px; }
.admin-badge { display: inline-block; padding: 4px 12px; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.admin-badge.headline { background: var(--navy); color: #fff; }
.admin-badge.lesser { background: var(--paper-2); color: var(--ink-soft); }

/* Article body */
.article-body { max-width: 68ch; }
.article-body p { font-size: 1.12rem; color: var(--ink); line-height: 1.78; margin-bottom: 24px; font-family: var(--font-body); }
.article-lede { font-family: var(--font-display) !important; font-weight: 400; font-size: 1.5rem !important; line-height: 1.5 !important; color: var(--ink) !important; }

/* ============================================================
   FOOTER — navy, minimal
   ============================================================ */
.footer { background: var(--navy-900); color: var(--on-navy-soft); padding: 84px 0 40px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-navy); }
.footer-brand .footer-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--on-navy); letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.75; color: var(--on-navy-soft); max-width: 34ch; }
.footer h5 { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--on-navy-faint); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer-top a { font-size: 0.82rem; color: var(--on-navy-soft); }
.footer-top a:hover { color: var(--on-navy); }
.footer-bottom {
  padding-top: 30px; margin-top: 30px; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--on-navy-faint); flex-wrap: wrap; gap: 14px;
}
.footer-bottom a { color: var(--on-navy-faint); }
.footer-bottom a:hover { color: var(--on-navy); }
.footer-bottom .footer-legal { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; --section-pad: 88px; }
  .practice-groups { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .bio-layout { grid-template-columns: 1fr; gap: 40px; }
  .bio-sidebar { position: static; max-width: 320px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  :root { --nav-height: 66px; --gutter: 22px; --section-pad: 64px; }
  html { font-size: 16px; }
  .nav-right { gap: 0; }
  .nav-links, .nav-sub, .nav-sep { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-mobile-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-mobile-btn.active span:nth-child(2) { opacity: 0; }
  .nav-mobile-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero-slides { padding: 40px var(--gutter); min-height: 52vh; }
  .hero-slide { margin: auto var(--gutter); }
  .hero-feature-inner { padding: 12px var(--gutter); }
  .hero-feature-title { display: none; }
  .hero-controls { padding: 0 var(--gutter) 32px; flex-wrap: wrap; gap: 16px; }
  .hero-nav { margin-left: 0; }

  .numbered-row { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .numbered-row .num { padding-top: 0; }
  .news-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .news-row .n-num, .news-row .n-arrow { display: none; }
  .news-row .n-meta { padding-top: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: flex-start; }
  .page-header { padding: 60px 0 52px; }
}

/* ============================================================
   MOTION SYSTEM — Refined & Premium
   Scroll reveals, hero entrance, nav progress, micro-interactions.
   All hidden states are JS-gated (html.js) so the page degrades
   gracefully with no JS, and everything is silenced for users who
   prefer reduced motion.
   ============================================================ */

/* ---- JS gate: only hide content when we have JS to reveal it ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: opacity, transform;
}
html.js [data-reveal="fade"]   { transform: none; }
html.js [data-reveal="left"]   { transform: translateX(-34px); }
html.js [data-reveal="right"]  { transform: translateX(34px); }
html.js [data-reveal].is-revealed,
html.js [data-reveal-group] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Reveal groups: children get a progressive stagger set in JS */
html.js [data-reveal-group] { --reveal-count: 1; }
html.js [data-reveal-group] > [data-reveal] { transition-delay: calc(var(--reveal-i, 0) * 90ms); }
html.js [data-reveal-group] > [data-reveal].is-revealed { transition-delay: calc(var(--reveal-i, 0) * 90ms); }

/* ---- Hero: staggered entrance of each slide's inner elements ----
   The slide fades as a unit; its children then raise in sequence. */
html.js .hero-slide [data-reveal],
html.js .hero-slide .tag,
html.js .hero-slide h2,
html.js .hero-slide .hero-cta {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
html.js .hero-slide .tag     { transition-delay: 0.05s; }
html.js .hero-slide h2       { transition-delay: 0.18s; }
html.js .hero-slide .hero-cta{ transition-delay: 0.34s; }
html.js .hero-slide.active [data-reveal],
html.js .hero-slide.active .tag,
html.js .hero-slide.active h2,
html.js .hero-slide.active .hero-cta {
  opacity: 1;
  transform: none;
}

/* ---- Headline mask reveal (premium line-by-line raise) ---- */
.mask-line {
  display: block;
  overflow: hidden;
}
.mask-line > .mask-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
html.js .is-revealed > .mask-line > .mask-inner,
html.js .mask-line.is-revealed > .mask-inner {
  transform: none;
}

/* ---- Nav: scroll-progress bar + elevation on scroll ---- */
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--navy), var(--navy-600));
}
html.js .nav-progress { transition: transform 0.1s linear; }
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(0,24,52,0.08); }
html.js .nav { transition: transform 0.4s var(--ease), background 0.3s ease, height 0.3s ease, box-shadow 0.35s ease; }

/* ---- Buttons: refined fill + arrow nudge ---- */
.btn, .btn-outline, .btn-primary, .btn-white, .btn-gold-outline, .btn-ghost {
  position: relative; overflow: hidden;
}
.btn::before, .btn-outline::before, .btn-primary::before,
.btn-white::before, .btn-gold-outline::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-102%) skewX(-18deg);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn-outline:hover::before, .btn-primary:hover::before,
.btn-white:hover::before, .btn-gold-outline:hover::before { transform: translateX(102%) skewX(-18deg); }
.btn span, .btn-outline span, .btn-primary span, .btn-white span, .btn-gold-outline span { position: relative; }

/* ---- Cards / rows: gentle lift on hover ---- */
.news-row, .team-card, .practice-group li a {
  transition:
    background 0.3s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    color 0.3s,
    padding 0.35s var(--ease);
}
.news-row:hover, .team-card:hover { transform: translateY(-3px); }
.news-row:hover { box-shadow: 0 14px 34px rgba(0,24,52,0.06); }

/* ---- Arrow links: underline sweep ----
   The arrow-link already nudges its arrow; add a refined underline. */
.arrow-link { position: relative; }
.arrow-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.arrow-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Milestone counters ----
   Numbers ease in and count up via JS; this holds the metric styling. */
.count-up { font-variant-numeric: tabular-nums; }

/* ---- Subtle section marker line draw-in ---- */
.draw-in { position: relative; }
html.js .draw-in::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}
html.js .draw-in.is-revealed::after { transform: scaleX(1); }

/* ---- Resolve inline slide children when the slide is active ---- */
.hero-slide h2 a { transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.section-navy :focus-visible, .hero :focus-visible, .page-header :focus-visible, .footer :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
