/* ═══════════════════════════════════════════════════════
   DEEPCHAIN PLLC  ·  selectcounsel.com
   Design System  ·  Production Build
   ═══════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ────────────────────────────────── */
:root {
  /* Palette */
  --navy:        #0f2b3c;
  --navy-deep:   #0a1e2a;
  --navy-soft:   #1a3d52;
  --gold:        #b8956a;
  --gold-light:  #d4b88c;
  --gold-glow:   rgba(184,149,106,.12);
  --accent:      #0f2b3c;

  /* Surfaces */
  --bg:          #f8f8f9;
  --bg-elevated: #ffffff;
  --bg-deep:     #f0f0f2;
  --bg-warm:     #faf8f5;

  /* Text */
  --fg:          #1a1e26;
  --fg-secondary:#5a6170;
  --fg-faint:    #8a8f9c;

  /* Borders */
  --hl:          rgba(0,0,0,.06);
  --hl-strong:   rgba(0,0,0,.10);

  /* Shadows */
  --sh-sm:       0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
  --sh-md:       0 4px 16px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.03);
  --sh-lg:       0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --sh-xl:       0 24px 64px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.05);

  /* Status */
  --success:     #0a5c3a;
  --success-bg:  rgba(10,92,58,.06);
  --success-bdr: rgba(10,92,58,.15);
  --error:       #c0392b;

  /* Type scale */
  --serif:       'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif-body:  'Cormorant Garamond', Georgia, serif;
  --body:        'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Motion */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-expo:   cubic-bezier(.19,1,.22,1);
  --spring:      cubic-bezier(.22,1,.36,1);

  /* Layout */
  --container:   1120px;
  --nav-h:       72px;
}

/* ── 2. Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6,p { margin: 0 }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100%; height: auto }
ul, ol { margin: 0; padding: 0; list-style: none }
button { font: inherit; cursor: pointer; border: none; background: none }
input, select, textarea { font: inherit }

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

/* Focus ring */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ── 3. Scroll Progress Bar ──────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 2000;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: none; pointer-events: none;
}

/* ── 4. Navigation ───────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(248,248,249,.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hl);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,32px);
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-brand-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 900; font-size: 14px;
  color: #fff; letter-spacing: -.02em;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.nav-brand-mark::after {
  content: '';
  position: absolute; inset: 2px;
  border: 1px solid rgba(184,149,106,.25);
  border-radius: 3px; pointer-events: none;
}
.nav-brand-text {
  display: grid; gap: 1px;
}
.nav-brand-name {
  font-family: var(--serif);
  font-weight: 800; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg); line-height: 1.1;
}
.nav-brand-sub {
  font-family: var(--body);
  font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-faint);
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  font-family: var(--body);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px;
  color: var(--fg-secondary);
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--fg) }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1) }
.nav-link[aria-current="page"] { color: var(--navy); font-weight: 700 }

/* CTA button in nav */
.nav-cta {
  font-family: var(--body);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  padding: 9px 20px;
  background: var(--navy); color: #fff;
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--navy-soft); transform: translateY(-1px) }

/* Mobile hamburger */
.nav-toggle { display: none }
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hl-strong);
  border-radius: 6px;
  background: var(--bg-elevated);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-hamburger span,
.nav-hamburger::before,
.nav-hamburger::after {
  content: ''; position: absolute;
  left: 10px; right: 10px; height: 2px;
  background: var(--fg); border-radius: 1px;
  transition: transform .25s, top .25s, opacity .25s;
}
.nav-hamburger span { top: 50%; transform: translateY(-50%) }
.nav-hamburger::before { top: 14px }
.nav-hamburger::after { top: 28px }
.nav-toggle:checked + .nav-hamburger::before {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-toggle:checked + .nav-hamburger::after {
  top: 50%; transform: translateY(-50%) rotate(-45deg);
}
.nav-toggle:checked + .nav-hamburger span { opacity: 0 }

/* Mobile nav */
@media (max-width: 820px) {
  .nav-hamburger { display: block }
  .nav-links, .nav-cta-wrap {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(248,248,249,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hl);
    padding: 12px 0;
    flex-direction: column; align-items: stretch;
  }
  .nav-toggle:checked ~ .nav-links,
  .nav-toggle:checked ~ .nav-cta-wrap { display: flex }
  .nav-link { padding: 14px 24px; font-size: 13px }
  .nav-link::after { display: none }
  .nav-cta-wrap { padding: 8px 24px 16px }
  .nav-cta { width: 100%; text-align: center; padding: 14px }
}

/* ── 5. Hero ─────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(100px,14vw,180px) 0 clamp(80px,10vw,140px);
  text-align: center;
  background: var(--bg);
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(90deg, rgba(15,43,60,.03) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(15,43,60,.03) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

/* Vignette */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
}

/* Monogram */
.hero-monogram {
  width: 80px; height: 80px;
  margin: 0 auto 32px;
  background: var(--navy);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 900; font-size: 28px;
  color: #fff; letter-spacing: -.02em;
  position: relative;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.hero-monogram::after {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(184,149,106,.3);
  border-radius: 7px;
}

/* Firm name */
.hero-firm-wrap {
  display: flex; align-items: center;
  justify-content: center; gap: 20px;
  margin-bottom: 14px;
}
.hero-firm-line {
  width: clamp(24px,4vw,46px); height: 1px;
  background: var(--hl-strong);
}
.hero-firm {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(16px,2.4vw,25px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}
.hero-pllc {
  font-weight: 500;
  letter-spacing: .18em;
  margin-left: .4em;
  opacity: .55;
}

/* Tagline */
.hero-tagline {
  font-family: var(--serif-body);
  font-weight: 500; font-style: italic;
  font-size: clamp(16px,2.2vw,24px);
  letter-spacing: .035em;
  color: var(--navy);
  margin-bottom: 36px;
}

/* Hero footer */
.hero-foot {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  margin-top: 48px;
  font-family: var(--body);
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hero-foot-div {
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── 6. Sections ─────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}
.section-label::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--gold);
}
.section-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px,3.5vw,36px);
  letter-spacing: .02em;
  color: var(--fg);
  margin-bottom: 6px;
}
.section-rule {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  margin-bottom: 32px;
}

/* ── 7. Identity / About ─────────────────────────────── */
.identity {
  padding: clamp(60px,8vw,100px) 0;
  background: var(--bg);
}
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,4vw,60px);
  align-items: start;
}
.identity-statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px,2.8vw,28px);
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--fg);
}
.identity-statement::first-letter {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--navy);
  float: left;
  line-height: .85;
  margin: .06em .12em 0 0;
}
.identity-body {
  display: grid; gap: 18px;
}
.identity-body p {
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--fg-secondary);
}

@media (max-width: 820px) {
  .identity-grid { grid-template-columns: 1fr }
}

/* ── 8. Practice Cards ───────────────────────────────── */
.practices {
  padding: clamp(60px,8vw,100px) 0;
  background: var(--bg-deep);
}
.practices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hl);
  margin-top: 32px;
}
.practice-card {
  background: var(--bg);
  padding: clamp(28px,3.5vw,46px);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: box-shadow .4s var(--ease-expo), background .28s,
              transform .4s var(--ease-expo), opacity .35s var(--ease-out), filter .35s var(--ease-out);
}
.practice-card:hover {
  background: var(--bg-elevated);
  box-shadow: var(--sh-lg);
  z-index: 2;
}
/* Sibling dimming */
.practices-grid:has(.practice-card:hover) .practice-card:not(:hover) {
  opacity: .65; filter: saturate(.7);
}
.practice-card__num {
  font-family: var(--mono);
  font-size: 9px; font-weight: 400;
  color: var(--fg-faint);
  letter-spacing: .06em;
}
.practice-card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--fg);
}
.practice-card__desc {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--fg-secondary);
  flex: 1;
}
.practice-card__rule {
  display: block;
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: auto;
}

/* Gold hover accent */
.practice-card:hover .practice-card__rule {
  width: 48px;
  background: linear-gradient(90deg, var(--navy), var(--gold), transparent);
  transition: width .4s var(--ease-out);
}

@media (max-width: 960px) {
  .practices-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 600px) {
  .practices-grid { grid-template-columns: 1fr }
}

/* ── 9. Experience ───────────────────────────────────── */
.experience {
  padding: clamp(60px,8vw,100px) 0;
  background: var(--bg);
}
.experience-note {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-faint);
  margin-bottom: 32px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hl);
}
.matter-item {
  background: var(--bg);
  padding: clamp(24px,3vw,36px);
  transition: background .3s;
}
.matter-item:hover { background: var(--bg-elevated) }
.matter-item__num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-faint);
  letter-spacing: .06em;
  display: block; margin-bottom: 8px;
}
.matter-item__type {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--fg);
  display: block; margin-bottom: 8px;
}
.matter-item__desc {
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.72;
  color: var(--fg-secondary);
}
.matter-item__rule {
  display: block;
  width: 20px; height: 1px;
  background: var(--gold);
  margin-top: 16px;
}

@media (max-width: 700px) {
  .experience-grid { grid-template-columns: 1fr }
}

/* ── 10. Contact Section ─────────────────────────────── */
.contact {
  padding: clamp(60px,8vw,100px) 0;
  background: var(--bg-deep);
}
.contact-header { margin-bottom: 40px }
.contact-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px,3.5vw,36px);
  letter-spacing: .02em;
  color: var(--fg);
  margin-bottom: 6px;
}
.contact-sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--fg-faint);
  letter-spacing: .04em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hl);
  margin-bottom: 48px;
}
.contact-item {
  background: var(--bg);
  padding: 28px;
  transition: background .3s;
}
.contact-item:hover { background: var(--bg-elevated) }
.contact-item__label {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: block; margin-bottom: 8px;
}
.contact-item__value {
  font-family: var(--body);
  font-size: 14px;
  color: var(--fg);
}
.contact-item__value a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.contact-item__value a:hover {
  border-color: var(--gold);
}

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

/* CTA Block */
.cta-divider {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.cta-divider-line {
  flex: 1; height: 1px;
  background: var(--hl-strong);
}
.cta-divider-label {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.cta-block {
  background: var(--bg-elevated);
  border: 1px solid var(--hl);
  padding: clamp(32px,4vw,48px);
  text-align: center;
  position: relative; overflow: hidden;
}
/* Gold top shimmer */
.cta-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold), rgba(184,149,106,.4));
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0% { background-position: 0% 50% }
  100% { background-position: 100% 50% }
}
.cta-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .03em;
  color: var(--fg);
  margin-bottom: 10px;
}
.cta-desc {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--fg-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.72;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  border: none; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.cta-btn svg { width: 14px; height: 14px }
.cta-btn:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.cta-trust {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  margin-top: 20px;
  font-family: var(--body);
  font-size: 9px; font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--success);
}
.cta-trust-item {
  display: flex; align-items: center; gap: 5px;
}
.cta-trust-item svg { width: 12px; height: 12px }
.cta-trust-sep {
  width: 3px; height: 3px;
  background: var(--hl-strong);
  border-radius: 50%;
}

/* ── 11. Footer ──────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(200px,40%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,32px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.footer-dc {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  color: rgba(255,255,255,.3);
  letter-spacing: -.02em;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}
.footer-right {
  display: grid; gap: 4px; text-align: right;
}
.footer-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .04em;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.4);
}

/* Attorney attribution */
.footer-atty {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 24px clamp(16px,4vw,32px) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-atty-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 8px; font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 4px;
}
.footer-atty-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: .02em;
}
.footer-atty-bar {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
}
.footer-atty-contact {
  text-align: right;
  font-size: 12px;
}
.footer-atty-contact a {
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer-atty-contact a:hover { color: var(--gold) }

/* Footer links row */
.footer-links {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 clamp(16px,4vw,32px);
  display: flex; align-items: center;
  justify-content: center; gap: 24px;
}
.footer-links a {
  font-family: var(--body);
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold) }
.footer-links-sep {
  width: 3px; height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
}

/* ── 12. Scroll to Top ───────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px; z-index: 800;
  background: var(--navy); color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; pointer-events: all }
.scroll-top:hover { transform: translateY(-2px) }
.scroll-top svg { width: 16px; height: 16px }

/* ── 13. Modal ───────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(3,7,18,.68);
  backdrop-filter: blur(14px) saturate(.78) brightness(.95);
  -webkit-backdrop-filter: blur(14px) saturate(.78) brightness(.95);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(8px,2vw,20px);
  opacity: 0; pointer-events: none;
  transition: opacity 280ms var(--ease-expo);
}
.modal-backdrop.open { opacity: 1; pointer-events: all }

.modal-shell {
  position: relative; width: 100%; max-width: 680px;
  max-height: 90dvh;
  background: var(--bg-elevated);
  border: 1px solid var(--hl-strong);
  overflow: hidden;
  transform: translateY(32px) scale(.965); opacity: 0;
  transition: transform 540ms cubic-bezier(.16,1,.3,1), opacity 380ms var(--ease-out);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06),
              0 16px 48px rgba(0,0,0,.10), 0 48px 100px rgba(0,0,0,.14);
}
.modal-backdrop.open .modal-shell {
  transform: translateY(0) scale(1); opacity: 1;
}

.modal-topbar {
  position: sticky; top: 0; z-index: 12;
  background: rgba(248,248,249,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hl);
  padding: 12px 48px 12px 24px;
  display: flex; align-items: center; gap: 12px;
}
.modal-topbar-title {
  font-family: var(--serif);
  font-size: 13px; font-weight: 700;
  color: var(--fg); letter-spacing: .01em;
  flex: 1;
}
.modal-topbar-secure {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--body);
  font-size: 8.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--success);
  padding: 4px 9px;
  background: var(--success-bg);
  border: 1px solid var(--success-bdr);
}
.modal-topbar-secure svg { width: 10px; height: 10px }

.modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent;
  color: var(--fg-faint); cursor: pointer;
  transition: color .2s, border-color .2s;
  z-index: 20;
}
.modal-close:hover { color: var(--fg); border-color: var(--hl-strong) }
.modal-close svg { width: 14px; height: 14px }

.modal-body {
  overflow-y: auto;
  max-height: calc(90dvh - 54px);
  padding: 32px 28px 40px;
  overscroll-behavior: contain;
}

/* Form styles */
.mf-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--fg);
  margin-bottom: 6px;
}
.mf-desc {
  font-family: var(--body);
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}
.mf-grid {
  display: grid; gap: 16px;
}
.mf-grid-2 { grid-template-columns: 1fr 1fr }
.mf-label {
  display: block;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 6px;
}
.mf-input, .mf-select, .mf-textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 14px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--hl-strong);
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.mf-input:focus, .mf-select:focus, .mf-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,43,60,.08);
  outline: none;
}
.mf-textarea { min-height: 120px; resize: vertical }
.mf-select { appearance: none; cursor: pointer }
.mf-hint {
  font-size: 11px; color: var(--fg-faint);
  margin-top: 4px;
}
.mf-required::after {
  content: ' *'; color: var(--error); font-weight: 400;
}

/* Disclosure */
.disc-block {
  border: 1px solid var(--hl-strong);
  margin-top: 24px;
}
.disc-head {
  padding: 14px 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.disc-title {
  font-family: var(--serif);
  font-size: 13px; font-weight: 700;
  letter-spacing: .02em;
  color: var(--fg);
}
.disc-rule {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-faint);
  letter-spacing: .06em;
}
.disc-body {
  padding: 0 18px 14px;
  border-top: 1px solid var(--hl);
}
.disc-body p {
  font-family: var(--body);
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--fg-secondary);
  margin: 10px 0 0;
}

/* Acknowledgment */
.ack-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--hl);
  margin-top: -1px;
  cursor: pointer;
  transition: background .2s;
}
.ack-row:hover { background: var(--bg) }
.ack-cb {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.ack-text {
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.ack-text strong { color: var(--fg); font-weight: 700 }

/* Submit */
.submit-area {
  padding: 24px 0 0;
  text-align: center;
}
.submit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: var(--navy);
  color: #fff;
  border: none; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.submit-btn:hover:not(:disabled) {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.submit-btn:disabled {
  opacity: .4; cursor: not-allowed;
}
.submit-btn svg { width: 14px; height: 14px }

/* Success state */
.modal-success {
  display: none;
  padding: clamp(36px,5vw,60px) clamp(20px,4vw,36px);
  text-align: center;
}
.modal-success.active {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 320px;
  animation: successIn .6s var(--ease-expo);
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(20px) scale(.97) }
  to { opacity: 1; transform: none }
}
.s-mark {
  font-family: var(--serif);
  font-weight: 900; font-size: 52px;
  color: var(--navy); opacity: .10;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.s-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px,3.5vw,28px);
  color: var(--fg); letter-spacing: .02em;
  margin-bottom: 7px;
}
.s-sub {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(14px,2vw,17px);
  color: var(--navy); margin-bottom: 20px;
}
.s-msg {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--fg-secondary);
  line-height: 1.78;
  max-width: 400px; margin: 0 auto 22px;
}
.s-ref {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-faint);
  padding: 9px 18px;
  border: 1px solid var(--hl-strong);
  border-top: 2px solid var(--gold);
  background: var(--bg);
  letter-spacing: .08em;
  margin-bottom: 24px;
}
.s-footer {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--fg-faint);
  line-height: 1.65;
}
.s-footer a { color: var(--navy) }

/* ── 14. Legal Pages ─────────────────────────────────── */
.legal-page {
  padding: clamp(48px,6vw,80px) 0;
  background: var(--bg);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px,4vw,40px);
  letter-spacing: .02em;
  color: var(--fg);
  margin-bottom: 8px;
}
.legal-content .legal-updated {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 32px;
  display: block;
}
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--fg);
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hl);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0 }
.legal-content p {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.78;
  color: var(--fg-secondary);
  margin: 0 0 14px;
}
.legal-content ul {
  padding-left: 20px;
  margin: 0 0 14px;
  list-style: disc;
}
.legal-content li {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.72;
  color: var(--fg-secondary);
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  transition: border-color .2s;
}
.legal-content a:hover { border-color: var(--navy) }

/* ── 15. Mobile ──────────────────────────────────────── */
@media (max-width: 820px) {
  /* Modal */
  .modal-backdrop { padding: 0; align-items: flex-end }
  .modal-shell {
    max-width: 100%; max-height: 94dvh;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
  }
  .modal-shell::before {
    content: ''; display: block; position: absolute;
    top: 9px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px;
    background: var(--hl-strong); border-radius: 2px;
    z-index: 22; pointer-events: none;
  }
  .modal-body { padding: 24px 20px 32px }
  .modal-topbar { padding: 10px 16px 10px 14px }
  .mf-input, .mf-select, .mf-textarea {
    font-size: 16px; min-height: 48px; padding: 12px 14px;
  }
  .mf-grid-2 { grid-template-columns: 1fr }
  .ack-row { min-height: 52px }
  .ack-cb { width: 20px; height: 20px; min-width: 20px }
  .submit-btn { min-height: 54px; width: 100% }
}

@media (max-width: 480px) {
  .hero-firm { font-size: clamp(14px,4.5vw,25px); letter-spacing: .20em }
  .hero-tagline { font-size: clamp(14px,4vw,24px) }
  .contact-grid { grid-template-columns: 1fr }
  .cta-block { padding: 28px 18px }
  .cta-trust { flex-wrap: wrap }
  .footer-inner { flex-direction: column; text-align: center }
  .footer-right { text-align: center }
  .footer-atty { flex-direction: column; text-align: center }
  .footer-atty-contact { text-align: center }
}

/* ── 16. Motion / Print ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto }
}

@media (hover: none) {
  .practice-card:hover { transform: none !important; box-shadow: none !important }
  .practices-grid:has(.practice-card:hover) .practice-card:not(:hover) {
    opacity: 1 !important; filter: none !important;
  }
}

@media print {
  .nav, .scroll-top, .scroll-progress, .modal-backdrop { display: none !important }
  body { background: #fff; color: #000 }
  .hero::before, .hero::after { display: none }
  a { text-decoration: underline }
}
