:root {
  --ink: #1c1b19;
  --muted: #5c574e;
  --line: #e3ddd2;
  --paper: #f6f3ec;
  --white: #fcfbf8;
  --stamp: #8f2d22;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  border-top: 4px solid var(--stamp);
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

h1, h2, h3, .brand, .stat-value, .practice-index {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1, h2, h3, p { margin: 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav-menu a:hover { color: var(--ink); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  padding: 8px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: none;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: var(--paper); }

.btn-primary:hover { background: #000; }

.btn-ghost { border-color: var(--ink); color: var(--ink); }

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-inverse { background: var(--paper); color: var(--ink); }

.btn-inverse:hover { background: #fff; }

section, .stats { scroll-margin-top: 76px; }

.hero { padding: 72px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 64px;
  align-items: end;
}

h1 {
  max-width: 16ch;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
}

.lede {
  max-width: 38rem;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.scope {
  margin: 0;
  padding: 8px 0 8px 28px;
  border-left: 1px solid var(--line);
}

.scope div + div { margin-top: 22px; }

.scope dt {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.scope dd { margin: 0; }

.stats { border-block: 1px solid var(--line); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid > div {
  padding: 32px 28px 32px 0;
}

.stats-grid > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.stat-value {
  font-size: 42px;
  line-height: 1;
}

.stat-label {
  max-width: 28ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.section { padding: 88px 0; }

.section-tight { padding-top: 8px; }

.section-intro { max-width: 40rem; margin-bottom: 40px; }

.section-intro h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
}

.section-intro p:last-child {
  margin-top: 14px;
  color: var(--muted);
}

.practices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.practice { padding: 36px 40px 8px 0; }

.practice + .practice {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.practice-index {
  color: var(--muted);
  font-size: 18px;
}

.practice h3 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.practice > p { color: var(--muted); }

.practice ul, .specs ul, .footer ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.practice li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 8px 0 28px;
}

.practice-actions a {
  font-weight: 600;
  text-underline-offset: 3px;
}

.practice-actions button {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
}

.steps h3 { font-size: 24px; }

.steps p {
  max-width: 46rem;
  margin-top: 4px;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  margin-bottom: -1px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tab-pane { display: none; padding-top: 8px; }

.tab-pane.active { display: block; }

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.specs h3 {
  margin: 28px 0 0;
  font-size: 22px;
}

.specs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-band {
  background: var(--ink);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  padding: 72px 0;
  align-items: end;
}

.contact-band .kicker { color: #e7b2ab; }

.contact-band h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
}

.contact-band p { margin-top: 12px; color: #d9d3c8; }

.contact-side a { color: var(--paper); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(28, 27, 25, 0.45);
  opacity: 0;
  visibility: hidden;
}

.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(440px, 100%);
  height: 100%;
  background: var(--white);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-header, .drawer-body { padding: 28px; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 { font-size: 28px; }

.drawer-close {
  align-self: start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawer-note { color: var(--muted); }

.field { margin-top: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc8bc;
  background: var(--white);
}

.field textarea { min-height: 120px; resize: vertical; }

.drawer-body .btn { width: 100%; margin-top: 18px; }

.drawer-direct {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.drawer-direct p + p { margin-top: 4px; }

.footer { padding: 56px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer .brand { display: block; margin-bottom: 12px; }

.footer h2 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer li { margin: 0 0 8px; color: var(--muted); }

.footer a { color: var(--muted); }

.footer a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-grid, .practices, .specs, .contact-grid, .footer-grid, .stats-grid {
    grid-template-columns: 1fr;
  }

  .scope {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .practice, .practice + .practice, .stats-grid > div, .stats-grid > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .practice + .practice { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 32px)); }

  .brand { font-size: 18px; }

  .nav { gap: 16px; }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 8px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.open { display: flex; }

  h1 { max-width: none; }

  .hero { padding-top: 40px; }

  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .drawer { transition: none; }
}
