/* ===== Mynatt Springer P.C. — Design System ===== */

:root {
  /* Palette */
  --bg: #F5F2EC;
  --bg-2: #EFEAE0;
  --bg-3: #E8E1D3;
  --paper: #FBF9F4;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --mute: #6B6257;
  --rule: #CDC6B8;
  --rule-2: #B8B0A0;
  --navy: #0E2A3D;
  --navy-2: #1C3E56;
  --navy-3: #2A536F;
  --brass: #8A6A3B;
  --brass-2: #A68350;

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.rule {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 14px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.015em; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }

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

/* Section rhythm */
section { padding: clamp(72px, 9vw, 140px) 0; }
.divider { height: 1px; background: var(--rule); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 200ms ease;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Links */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
  color: var(--ink);
}
.tlink:hover { border-color: var(--brass); color: var(--brass); }
.tlink .arrow { transition: transform 200ms ease; }
.tlink:hover .arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
}
.nav.scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.logo-mark {
  width: 42px; height: 42px;
  border: 1px solid var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.02em;
  background: var(--paper);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { line-height: 1.1; }
.logo-text .name { font-family: var(--serif); font-size: 17px; color: var(--navy); letter-spacing: 0.01em; }
.logo-text .sub { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }

.nav-center {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-center svg { width: 12px; height: 12px; stroke: var(--brass); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  position: relative;
  cursor: pointer;
  transition: color 200ms ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy); }
.nav-link.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px;
  height: 1px; background: var(--brass);
}
.nav-cta {
  margin-left: 12px;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease;
}
.nav-cta:hover { background: var(--navy-2); }

.hamburger { display: none; }

@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-links { display: none; }
  .hamburger {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--rule-2);
  }
  .hamburger span {
    display: block; width: 18px; height: 1px; background: var(--ink);
    position: relative;
  }
  .hamburger span::before, .hamburger span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
  }
  .hamburger span::before { top: -6px; }
  .hamburger span::after { top: 6px; }
  .mobile-menu {
    position: fixed; inset: 0; top: 78px;
    background: var(--bg);
    padding: 40px var(--gutter);
    z-index: 40;
    display: flex; flex-direction: column; gap: 4px;
  }
  .mobile-menu a {
    padding: 20px 0;
    font-family: var(--serif);
    font-size: 28px;
    border-bottom: 1px solid var(--rule);
  }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(60px, 9vw, 120px);
  color: var(--mute);
}
.hero-meta .col { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.hero-meta .v { font-family: var(--serif); font-size: 15px; color: var(--ink); }

.hero-tag {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8.2vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy);
  max-width: 18ch;
}
.hero-tag em { font-style: italic; color: var(--brass); font-weight: 400; }
.hero-tag .tm { font-size: 0.3em; vertical-align: super; color: var(--mute); margin-left: 6px; font-family: var(--sans); letter-spacing: 0.05em; }

.hero-foot {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.hero-foot .block { }
.hero-foot .block .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.hero-foot .block .v { font-family: var(--serif); font-size: 22px; color: var(--navy); line-height: 1.2; }
.hero-foot .scroll-indic {
  justify-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--mute);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-foot .scroll-line {
  width: 1px; height: 60px; background: var(--rule);
  position: relative; overflow: hidden;
}
.hero-foot .scroll-line::after {
  content: ""; position: absolute; left: 0; right: 0; top: -60%;
  height: 60%;
  background: var(--brass);
  animation: scrollDown 2.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -60%; }
  100% { top: 160%; }
}

@media (max-width: 800px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot .scroll-indic { display: none; }
}

/* ===== Intro ===== */
.intro { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.intro-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.intro-grid h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  color: var(--navy);
}
.intro-grid h2 em { font-style: italic; color: var(--brass); }
.intro-body { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; }
.intro-body p + p { margin-top: 22px; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ===== Why us ===== */
.why { }
.why-head {
  display: flex; justify-content: space-between; align-items: end; gap: 40px;
  margin-bottom: 72px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.why-head h2 { font-size: clamp(32px, 4vw, 52px); color: var(--navy); max-width: 14ch; }
.why-head .meta { color: var(--mute); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.why-item { padding: 40px 28px 40px 0; border-right: 1px solid var(--rule); }
.why-item:last-child { border-right: none; }
.why-item:first-child { padding-left: 0; }
.why-item:not(:first-child) { padding-left: 28px; }
.why-num {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--brass);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1;
}
.why-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.why-body { color: var(--ink-2); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2) { border-right: none; }
  .why-item:nth-child(1), .why-item:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .why-item:nth-child(3) { padding-left: 0; border-right: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none !important; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .why-item:last-child { border-bottom: none; }
}

/* ===== Credibility ===== */
.cred {
  background: var(--navy);
  color: var(--bg);
}
.cred-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cred-head h3 { font-size: 28px; color: var(--bg); line-height: 1.2; }
.cred-head .k { color: var(--brass-2); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.cred-badge {
  border: 1px solid rgba(245, 242, 236, 0.18);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 200ms ease, background 200ms ease;
}
.cred-badge:hover { border-color: var(--brass); background: rgba(138, 106, 59, 0.08); }
.cred-badge .cred-img {
  height: 56px; width: auto; max-width: 100%;
  display: block; margin-bottom: 16px;
  object-fit: contain;
}
.cred-badge .seal {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--brass);
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-family: var(--serif);
  color: var(--brass);
  font-size: 20px;
  font-style: italic;
}
.cred-badge .t { font-family: var(--serif); font-size: 16px; color: var(--bg); margin-bottom: 4px; }
.cred-badge .s { color: rgba(245,242,236,0.6); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 900px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-head { grid-column: span 2; }
}
@media (max-width: 500px) {
  .cred-grid { grid-template-columns: 1fr; }
  .cred-head { grid-column: 1; }
}

/* ===== Practice teasers (homepage) ===== */
.practice-teasers .head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-bottom: 72px;
  align-items: end;
}
.practice-teasers .head h2 { font-size: clamp(40px, 5vw, 68px); color: var(--navy); line-height: 1; }
.practice-teasers .head p { color: var(--mute); font-size: 16px; max-width: 44ch; }

.practice-list { border-top: 1px solid var(--rule); }
.practice-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 300ms ease, background 300ms ease;
  position: relative;
}
.practice-row:hover { padding-left: 20px; background: var(--paper); }
.practice-row .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brass); }
.practice-row .title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); color: var(--navy); line-height: 1.15; }
.practice-row .desc { color: var(--mute); font-size: 14px; line-height: 1.6; max-width: 52ch; }
.practice-row .more { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.practice-row .more svg { transition: transform 200ms ease; }
.practice-row:hover .more svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .practice-row { grid-template-columns: 48px 1fr; }
  .practice-row .desc, .practice-row .more { grid-column: 2; }
}

/* ===== CTA Block ===== */
.cta-block {
  padding: clamp(80px, 10vw, 160px) 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
.cta-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end;
}
.cta-inner h2 { font-size: clamp(44px, 6vw, 84px); line-height: 1; color: var(--navy); }
.cta-inner h2 em { font-style: italic; color: var(--brass); }
.cta-side { display: flex; flex-direction: column; gap: 24px; }
.cta-side .address { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.cta-side .address strong { font-family: var(--serif); font-weight: 500; color: var(--navy); display: block; margin-bottom: 6px; font-size: 16px; }
@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: var(--bg);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,242,236,0.12);
}
.footer-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; color: rgba(245,242,236,0.7); font-size: 14px; padding: 5px 0; transition: color 200ms ease; }
.footer-col a:hover { color: var(--bg); }
.footer-brand .logo-mark { border-color: var(--brass); color: var(--brass); background: transparent; }
.footer-brand .name { color: var(--bg); }
.footer-brand .sub { color: var(--brass-2); }
.footer-brand p.tag { font-family: var(--serif); font-size: 17px; margin-top: 22px; color: var(--bg); font-style: italic; max-width: 22ch; line-height: 1.3; }
.footer-bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Attorneys page ===== */
.page-head {
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.page-head .eyebrow { margin-bottom: 20px; display: block; }
.page-head h1 { font-size: clamp(52px, 8vw, 116px); color: var(--navy); line-height: 0.98; letter-spacing: -0.02em; }
.page-head h1 em { font-style: italic; color: var(--brass); }
.page-head .lead { color: var(--ink-2); font-size: 18px; max-width: 52ch; line-height: 1.65; margin-top: 32px; }

.attorney-filters {
  display: flex; align-items: center; gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 78px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.filter-btn {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 200ms, background 200ms;
  border-radius: 999px;
}
.filter-btn.active { color: var(--navy); background: var(--paper); }
.filter-btn:hover { color: var(--navy); }
.filter-count {
  margin-left: auto;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.attorneys-grid {
  padding: clamp(40px, 5vw, 72px) 0 clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.attorney-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 250ms ease;
  min-height: 380px;
}
.attorney-card:hover { background: var(--paper); }
.attorney-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg, var(--bg-3) 0 2px, transparent 2px 12px),
    var(--bg-2);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.attorney-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.attorney-portrait .initials {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--navy);
  letter-spacing: 0.02em;
  font-weight: 400;
  font-style: italic;
  opacity: 0.55;
}
.attorney-portrait .cap {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
}
.attorney-card .name {
  font-family: var(--serif); font-size: 26px; color: var(--navy);
  line-height: 1.15;
  margin-bottom: 6px;
}
.attorney-card .role {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.attorney-card .bar {
  color: var(--mute); font-size: 13px; line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}
.attorney-card .footline {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-2);
}
.attorney-card .footline .view {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
  font-weight: 500;
}
.attorney-card:hover .footline .view { color: var(--brass); }

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

/* Bio overlay */
.overlay {
  position: fixed; inset: 0;
  background: rgba(14, 42, 61, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: end;
  animation: fadeIn 250ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay-card {
  background: var(--bg);
  width: min(960px, 100%);
  height: 100vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 350ms cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(60px); opacity: 0.7; } to { transform: translateX(0); opacity: 1; } }
.overlay-close {
  position: sticky;
  top: 16px; right: 16px; margin-left: auto;
  z-index: 10;
  width: 44px; height: 44px;
  border: 1px solid var(--rule-2);
  background: var(--bg);
  display: grid; place-items: center;
  border-radius: 50%;
  float: right;
  margin-right: 16px;
  margin-top: 16px;
}
.overlay-close:hover { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.overlay-body { padding: 60px clamp(32px, 6vw, 72px) 80px; }
.overlay-body .crumb { color: var(--mute); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 32px; display: flex; align-items: center; gap: 8px; }
.overlay-body h2 { font-size: clamp(40px, 6vw, 72px); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.overlay-body .title-row { display: flex; gap: 20px; align-items: baseline; margin-top: 14px; margin-bottom: 36px; }
.overlay-body .title-row .role { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.overlay-body .title-row .email { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule-2); padding-bottom: 1px; }

.overlay-portrait {
  width: 100%;
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, var(--bg-3) 0 2px, transparent 2px 12px),
    var(--bg-2);
  margin: 32px 0 48px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.overlay-portrait img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  display: block;
  position: absolute; inset: 0;
}
.overlay-portrait .cap {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
}
.overlay-portrait .initials { font-family: var(--serif); font-size: 130px; color: var(--navy); font-style: italic; opacity: 0.45; }

.bio-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-bottom: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
.bio-grid .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); padding-top: 4px; }
.bio-grid .v { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.bio-grid .v ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.bio-grid .v .bg { font-family: var(--serif); font-size: 17px; color: var(--navy); line-height: 1.6; }
.bio-grid .v.prose p + p { margin-top: 14px; }
.bio-grid .areas { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-grid .areas .chip {
  font-size: 12px; padding: 6px 12px; border: 1px solid var(--rule-2);
  color: var(--ink-2); border-radius: 999px; background: var(--paper);
}
@media (max-width: 700px) { .bio-grid { grid-template-columns: 1fr; gap: 10px; } }

/* ===== Practice Areas Page ===== */
.pa-wrap { padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 10vw, 140px); }
.pa-item {
  border-bottom: 1px solid var(--rule);
  transition: background 300ms ease;
}
.pa-item.open { background: var(--paper); }
.pa-head {
  display: grid;
  grid-template-columns: 80px 120px 1fr auto;
  gap: 32px;
  padding: 36px 0;
  align-items: center;
  cursor: pointer;
}
.pa-head .num { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--brass); }
.pa-head .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.pa-head .t { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); color: var(--navy); line-height: 1.1; }
.pa-head .toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 300ms ease, background 200ms ease;
  font-family: var(--serif); font-size: 22px; color: var(--navy);
  flex-shrink: 0;
}
.pa-item.open .pa-head .toggle { transform: rotate(45deg); background: var(--navy); color: var(--bg); border-color: var(--navy); }
.pa-item:not(.open):hover .t { color: var(--brass); }

.pa-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms ease, padding 300ms ease, opacity 300ms ease;
  opacity: 0;
}
.pa-item.open .pa-body { max-height: 2000px; padding: 0 0 56px; opacity: 1; }
.pa-body .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.pa-body .prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 64ch; }
.pa-body .prose p + p, .pa-body .prose p + h4 { margin-top: 20px; }
.pa-body .prose h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin: 24px 0 10px; font-weight: 600; }
.pa-body .prose em { font-style: italic; }
.pa-img {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 32px;
}
.badge-img { max-width: 160px; height: auto; display: block; }

@media (max-width: 800px) {
  .pa-head { grid-template-columns: 60px 1fr auto; }
  .pa-head .tag { display: none; }
  .pa-body { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== Contact page ===== */
.contact-wrap { padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 10vw, 140px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .block { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.contact-info .block:first-child { padding-top: 0; }
.contact-info .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.contact-info .v { font-family: var(--serif); font-size: 20px; color: var(--navy); line-height: 1.4; }
.contact-info .v.small { font-size: 16px; font-family: var(--sans); color: var(--ink-2); }

.map-wrap {
  margin-top: 48px;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.map-wrap .svgmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-wrap .pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
}
.map-wrap .pin .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(138, 106, 59, 0.25), 0 0 0 14px rgba(138, 106, 59, 0.12);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(138, 106, 59, 0.25), 0 0 0 14px rgba(138, 106, 59, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(138, 106, 59, 0.35), 0 0 0 22px rgba(138, 106, 59, 0.06); }
}
.map-wrap .pin-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  margin-top: -20px;
  background: var(--paper);
  padding: 10px 14px;
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--navy);
  white-space: nowrap;
  font-family: var(--serif);
}
.map-wrap .pin-label::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--rule);
}

/* Form */
.form {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--rule);
}
.form h3 { font-size: 28px; color: var(--navy); margin-bottom: 4px; }
.form .sub { color: var(--mute); font-size: 13px; margin-bottom: 32px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--brass); margin-left: 4px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
}
.field.err input, .field.err textarea { border-bottom-color: #B03A2E; }
.field textarea { resize: vertical; min-height: 100px; }
.field .help { font-size: 11px; color: var(--mute); margin-top: 6px; letter-spacing: 0.04em; }
.field .errmsg { font-size: 12px; color: #B03A2E; margin-top: 6px; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
}
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--navy); }

.captcha {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  margin: 22px 0;
  background: var(--bg);
  font-size: 12px; color: var(--mute);
}
.captcha .cbox { width: 22px; height: 22px; border: 1px solid var(--rule-2); display: grid; place-items: center; cursor: pointer; background: var(--paper); }
.captcha .cbox.on { background: var(--navy); color: var(--bg); border-color: var(--navy); }

.form-success {
  display: grid; place-items: center; text-align: center; padding: 48px 20px;
  animation: fadeIn 400ms ease;
}
.form-success .seal {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--brass);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--brass);
}
.form-success h3 { font-size: 28px; color: var(--navy); margin-bottom: 10px; }
.form-success p { color: var(--ink-2); max-width: 38ch; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--navy); color: var(--bg);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all 250ms ease;
  box-shadow: 0 8px 24px rgba(14,42,61,0.18);
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--brass); }

/* Utility */
.italic { font-style: italic; }
