/* =========================================================
   McClintock Tax Law — refined legal/tax visual system
   Palette: black, white, and measured grayscale
   ========================================================= */

:root {
  /* light theme */
  --bg: #ffffff;
  --bg-2: #f2f2f2;
  --surface: #fbfbfb;
  --ink: #050505;
  --ink-2: #1f1f1f;
  --ink-3: #4a4a4a;
  --rule: #d8d8d8;
  --rule-strong: #9a9a9a;
  --muted: #6d6d6d;
  --accent: #000000;
  --accent-2: #f7f7f7;
  --logo-filter: none;
  --footer-logo-filter: invert(1);
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 38px -24px rgba(0,0,0,.24);

  /* type */
  --serif: "DM Serif Display", "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* sizing */
  --maxw: 1200px;
  --gap: clamp(20px, 4vw, 64px);
  --r: 6px;
}

[data-theme="dark"] {
  --bg: #050505;
  --bg-2: #111111;
  --surface: #0c0c0c;
  --ink: #f7f7f7;
  --ink-2: #e2e2e2;
  --ink-3: #b7b7b7;
  --rule: #303030;
  --rule-strong: #686868;
  --muted: #969696;
  --accent: #ffffff;
  --accent-2: #111111;
  --logo-filter: none;
  --footer-logo-filter: none;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 60px -28px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-2); }
::selection { background: var(--accent); color: var(--bg); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.skip {
  position: absolute; left: -9999px; top: 0; padding: 10px 14px; background: var(--ink); color: var(--bg);
  z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #d8d8d8;
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(0,0,0,.35); }
[data-theme="light"] .site-header,
[data-theme="dark"] .site-header { background-color: #ffffff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; color: var(--ink); }
.brand-logo {
  width: clamp(168px, 18vw, 236px);
  height: auto;
  filter: var(--logo-filter);
  flex: 0 0 auto;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14px; color: var(--ink-3); letter-spacing: .2px;
  position: relative; padding: 6px 0;
}
[data-theme="dark"] .site-nav a { color: #4a4a4a; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ink);
  transition: width .25s ease;
}
.site-nav a:hover { color: var(--ink); }
[data-theme="dark"] .site-nav a:hover { color: #050505; }
.site-nav a:hover::after { width: 100%; }

.nav-cta {
  background: #050505;
  color: #ffffff !important;
  padding: 10px 16px !important;
  border-radius: var(--r);
  letter-spacing: .3px;
}
.nav-cta:hover { background: #2b2b2b; color: #ffffff !important; }
.nav-cta::after { display: none; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle {
  background: transparent; border: 1px solid #d8d8d8; color: #050505;
  width: 38px; height: 38px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink); color: var(--ink); }
.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: .2px;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); color: var(--bg); }

.btn-ghost { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }

/* ============ Eyebrow / section heads ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px 0;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--ink); border-radius: 50%; display: inline-block;
}
.section-head {
  max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.1;
  margin: 0 0 16px 0; letter-spacing: -.01em; color: var(--ink);
}
.section-lede {
  font-size: 17px; color: var(--ink-3); margin: 0; max-width: 62ch;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 0;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in oklab, var(--ink) 5%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 75%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero::before {
  /* subtle ledger column pattern in background */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc((100% / 12) - 1px), color-mix(in oklab, var(--rule) 70%, transparent) calc((100% / 12) - 1px) calc(100% / 12));
  opacity: .35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(56px, 9vw, 120px);
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.02; letter-spacing: -.018em;
  margin: 8px 0 24px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  color: var(--ink-2);
}
.hero-lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-3);
  max-width: 56ch; margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-meta {
  list-style: none; margin: 0; padding: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 22px 32px;
  border-top: 1px solid var(--rule);
}
.hero-meta li {
  font-size: 13px; color: var(--muted); letter-spacing: .3px;
}
.hero-meta strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 22px; color: var(--ink); margin-bottom: 4px; letter-spacing: 0;
}

/* hero side card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-tag {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--ink); border: 1px solid color-mix(in oklab, var(--ink) 35%, transparent);
  padding: 4px 8px; border-radius: 2px;
}
.card-tag.muted { color: var(--muted); border-color: var(--rule); }
.card-title { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; font-weight: 400; line-height: 1.1; }
.card-body { color: var(--ink-3); font-size: 15px; margin: 0 0 22px; }

.card-stats { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; }
.card-stats > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.card-stats dt {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.card-stats dd { margin: 0; font-size: 14px; color: var(--ink); }

.card-rule {
  height: 1px; background: var(--rule); margin: 22px 0 16px;
  position: relative;
}
.card-rule::after {
  content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 1px; background: var(--ink);
}
.card-foot { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.55; }
.card-foot strong { color: var(--ink); }

.hero-rule { padding: 0 clamp(20px, 4vw, 40px) 28px; }
.ledger-line {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  font-size: 11px; letter-spacing: 3px; color: var(--muted);
}
.ledger-line span { display: inline-block; }

/* ============ Credibility strip ============ */
.cred-strip {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
.cred-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0;
}
.cred-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 18px; border-left: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.cred-item:first-child { border-left: 0; }
.cred-item:nth-child(4n+1) { border-left: 0; }
.cred-num {
  font-family: var(--serif); font-size: 22px; color: var(--accent-2);
}
.cred-label {
  font-size: 12px; color: color-mix(in oklab, var(--bg) 75%, transparent); line-height: 1.4;
}

/* ============ Services ============ */
.services { padding: clamp(72px, 10vw, 140px) 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service-card {
  color: var(--ink);
  display: block;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.service-card:hover { background: var(--surface); color: var(--ink); }
.service-link:hover { transform: translateY(-2px); border-color: var(--rule-strong); }
.service-card-wide { grid-column: 1 / -1; }
.service-num {
  font-family: var(--serif); font-size: 14px; color: var(--accent);
  letter-spacing: 2px;
}
.service-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15;
  margin: 14px 0 14px;
}
.service-card p { color: var(--ink-3); font-size: 15.5px; margin: 0 0 18px; max-width: 52ch; }
.service-list {
  list-style: none; margin: 0; padding: 18px 0 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.service-list li {
  font-size: 13.5px; color: var(--ink-2);
  padding-left: 16px; position: relative;
}
.service-list li::before {
  content: "§";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-family: var(--serif); font-size: 14px;
}
.service-more {
  display: inline-flex;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

/* ============ Practice pages ============ */
.page-hero {
  padding: clamp(56px, 9vw, 118px) 0 clamp(48px, 7vw, 92px);
  background:
    radial-gradient(850px 460px at 85% -20%, color-mix(in oklab, var(--ink) 5%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 82%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--ink); border-color: var(--ink); }
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: 0 0 24px;
  color: var(--ink);
}
.page-lede {
  color: var(--ink-3);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0;
}
.page-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow);
}
.page-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.page-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-card li {
  color: var(--ink-2);
  font-size: 14.5px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.page-section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.page-section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.split-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.detail-card {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.detail-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.detail-card p {
  color: var(--ink-3);
  margin: 0;
  font-size: 15px;
}
.deliverables-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.deliverables-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
}
.deliverables-list strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}
.page-cta {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--ink);
  color: var(--bg);
}
.page-cta .section-title,
.page-cta .eyebrow,
.page-cta .section-lede { color: var(--bg); }
.page-cta .eyebrow-dot { background: var(--bg); }
.page-cta .btn-primary { background: var(--bg); color: var(--ink); }
.page-cta .btn-primary:hover { background: color-mix(in oklab, var(--bg) 86%, transparent); color: var(--ink); }
.page-cta .btn-ghost { color: var(--bg); border-color: color-mix(in oklab, var(--bg) 35%, transparent); }
.page-cta .btn-ghost:hover { color: var(--bg); border-color: var(--bg); }

/* ============ Matters ============ */
.matters {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.matters-grid {
  display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(28px, 5vw, 72px);
}
.matters-foot { margin-top: 24px; color: var(--ink-2); font-size: 15px; max-width: 32ch; }

.matters-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.matters-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.matters-list li:last-child { border-bottom: 1px solid var(--rule); }
.matters-marker {
  font-family: var(--serif); color: var(--accent); font-size: 22px; line-height: 1;
}
.matters-list h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.matters-list p { margin: 0; color: var(--ink-3); font-size: 14.5px; }

/* ============ Process ============ */
.process { padding: clamp(72px, 10vw, 140px) 0; }
.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}
.process-steps li {
  padding: 32px 24px 28px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.process-steps li:last-child { border-right: 0; padding-right: 0; }
.step-num {
  font-family: var(--serif); color: var(--accent); font-size: 18px;
  letter-spacing: 1px;
}
.process-steps h3 {
  font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 10px 0 10px;
  line-height: 1.2;
}
.process-steps p { color: var(--ink-3); font-size: 14.5px; margin: 0; max-width: 28ch; }

/* ============ Attorney ============ */
.attorney {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--ink);
  color: var(--bg);
}
.attorney .eyebrow { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.attorney .eyebrow-dot { background: var(--accent-2); }
.attorney .section-title { color: var(--bg); }
.attorney p { color: color-mix(in oklab, var(--bg) 80%, transparent); font-size: 16.5px; }
.attorney p strong { color: var(--bg); }

.attorney-grid {
  display: grid; grid-template-columns: .85fr 1.4fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.attorney-portrait {
  background: color-mix(in oklab, var(--bg) 5%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--r);
  aspect-ratio: 4 / 5;
  color: var(--accent-2);
  overflow: hidden;
  padding: 18px;
  position: relative;
}
.attorney-portrait::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.monogram { position: relative; height: 100%; color: var(--accent-2); }

.attorney-facts {
  margin: 28px 0 28px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.attorney-facts > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.attorney-facts dt {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent-2);
}
.attorney-facts dd {
  margin: 0; font-size: 14.5px; color: color-mix(in oklab, var(--bg) 88%, transparent);
}
.attorney .btn-ghost { color: var(--bg); border-color: color-mix(in oklab, var(--bg) 30%, transparent); }
.attorney .btn-ghost:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ============ Contact ============ */
.contact {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.contact-meta {
  list-style: none; margin: 24px 0 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.contact-meta li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-2);
}
.contact-meta li span {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted);
}
.contact-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 36px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted);
}
.field .opt { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12px; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--accent); }
.netlify-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

/* ============ Success page ============ */
.success-hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 140px) 0;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in oklab, var(--ink) 5%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 78%, var(--bg-2) 100%);
}
.success-card {
  max-width: 780px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.success-card .section-title { margin-bottom: 18px; }
.success-card .section-lede { margin-bottom: 28px; }
.success-meta {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.success-meta li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
}
.success-meta span {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--bg) 85%, transparent);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; color: var(--bg); }
.footer-logo {
  width: min(260px, 100%);
  height: auto;
  filter: var(--footer-logo-filter);
}
.footer-name { font-family: var(--serif); font-size: 18px; margin: 0; color: var(--bg); }
.footer-tag {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; margin: 6px 0 0;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4, .footer-meta h4 {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 6px;
}
.footer-nav a, .footer-meta a {
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  font-size: 14px;
}
.footer-nav a:hover, .footer-meta a:hover { color: var(--accent-2); }
.footer-meta { display: flex; flex-direction: column; gap: 8px; }
.footer-address { font-size: 13px; margin: 6px 0 0; color: color-mix(in oklab, var(--bg) 65%, transparent); }

.footer-fine {
  display: grid; grid-template-columns: 2fr 1fr; gap: 18px;
  align-items: end; padding-top: 24px;
}
.disclaimer {
  font-size: 12px; line-height: 1.5; color: color-mix(in oklab, var(--bg) 60%, transparent);
  max-width: 75ch; margin: 0;
}
.copyright { font-size: 12px; color: color-mix(in oklab, var(--bg) 55%, transparent); margin: 0; text-align: right; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-item { border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); }
  .cred-item:nth-child(-n+2) { border-top: 0; }
  .cred-item:nth-child(odd) { border-left: 0; }
  .matters-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .process-steps li:nth-child(even) { border-right: 0; }
  .process-steps li:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .attorney-grid { grid-template-columns: 1fr; }
  .attorney-portrait { max-width: 380px; aspect-ratio: 4 / 3; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; flex-direction: row; gap: 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); }
  .page-hero-grid,
  .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav { display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: inline-flex; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: auto; }
  .service-list { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .deliverables-list li { grid-template-columns: 1fr; gap: 4px; }
  .cred-grid { grid-template-columns: 1fr; }
  .cred-item { border-left: 0; border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); padding: 12px 0; }
  .cred-item:nth-child(-n+2) { border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); }
  .cred-item:first-child { border-top: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 0; }
  .process-steps li:last-child { border-bottom: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-fine { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
  .hero-meta { gap: 14px 24px; }
  .attorney-facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
