:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --soft: #f5f5f4;
  --line: #e2e2e0;
  --line-dark: #2a2a2a;
  --muted: #6a6a68;
  --muted-dark: #a3a3a0;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: 26px; line-height: 1.2; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); padding-block: 12px; }

.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.06em;
}
.nav__mark--light { border-color: var(--paper); color: var(--paper); }
.nav__name { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.nav__name small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-block: 6px;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { padding: 12px 22px; font-size: 11px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(130px, 17vh, 190px) var(--gutter) clamp(60px, 9vh, 110px);
  min-height: 100vh;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero__title { font-size: clamp(40px, 5vw, 76px); font-weight: 300; line-height: 1.02; }
.hero__title em { font-weight: 400; }

.hero__lead {
  max-width: 54ch;
  margin-top: 34px;
  font-size: 17px;
  color: #333;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero__note {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
}
.portrait__mono {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(110px, 15vw, 220px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.portrait__caption {
  position: absolute;
  left: 36px; bottom: 34px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--muted-dark);
}
.portrait__tag {
  position: absolute;
  right: 36px; top: 34px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 44px 24px 44px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section--dark, .section--soft {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.section--dark { background: var(--ink); color: var(--paper); }
.section--soft { background: var(--soft); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.section--dark .section__head { border-bottom-color: var(--line-dark); }

.index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.section--dark .index { color: var(--muted-dark); }

/* ---------- About ---------- */
.about__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.25;
  max-width: 26em;
}
.about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
}
.about__cols p + p { margin-top: 20px; }

.credentials li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.credentials li:first-child { border-top: 1px solid var(--ink); }
.credentials span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 4px;
}

/* ---------- Practice ---------- */
.practice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.practice__item {
  padding: 44px 36px 52px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background .4s ease, color .4s ease;
}
.practice__item:hover { background: var(--paper); color: var(--ink); }
.practice__no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted-dark);
  margin-bottom: 44px;
  transition: color .4s ease;
}
.practice__item:hover .practice__no { color: var(--muted); }
.practice__item h3 { margin-bottom: 14px; }
.practice__item p { font-size: 15px; color: var(--muted-dark); transition: color .4s ease; }
.practice__item:hover p { color: #444; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.step__no {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: #bdbdba;
}
.step h3 { margin-bottom: 10px; }
.step p { color: #444; font-size: 15px; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  transition: border-color .35s ease, transform .35s ease;
}
.case:hover { border-color: var(--ink); transform: translateY(-4px); }
.case__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.case h3 { font-size: 28px; margin-bottom: 16px; }
.case p { font-size: 15px; color: #444; }
.case .case__meta {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.case__meta::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin-bottom: 16px;
}
.disclaimer { margin-top: 36px; font-size: 12px; color: var(--muted); max-width: 70ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.quote blockquote {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
  position: relative;
  padding-top: 44px;
}
.quote blockquote::before {
  content: "„";
  position: absolute;
  top: -22px; left: -4px;
  font-size: 80px;
  line-height: 1;
  color: var(--ink);
}
.quote figcaption {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Fees ---------- */
.fees__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  max-width: 28em;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.fees__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.fee { border-top: 1px solid var(--paper); padding-top: 26px; }
.fee h3 { font-size: 24px; }
.fee__price {
  margin: 10px 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.fee p:last-child { font-size: 15px; color: var(--muted-dark); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 900px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--ink); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 24px;
  transition: transform .3s ease;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 28px 0; color: #444; max-width: 68ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  border-top: 1px solid var(--ink);
}
.contact__intro h2 { margin: 22px 0 24px; font-weight: 300; }
.contact__intro > p { max-width: 44ch; color: #444; }
.contact__details { margin-top: 48px; }
.contact__details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact__details div:first-child { border-top: 1px solid var(--line); }
.contact__details dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact__details a { border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.contact__details a:hover { border-bottom-color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b9b9b6;
  border-radius: 0;
  background: transparent;
  padding: 10px 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .3s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 9px) 50%, calc(100% - 4px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--ink); border-bottom-style: dashed; }
.form__note { font-size: 12px; color: var(--muted); }
.form__note.is-success { color: var(--ink); font-weight: 400; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.footer__brand small { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-dark); }
.footer__legal { font-size: 12px; color: var(--muted-dark); }
.footer__legal a { border-bottom: 1px solid var(--line-dark); }
.footer__legal a:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { font-family: var(--serif); font-size: 30px; letter-spacing: 0; }
  .nav__cta { margin-top: 16px; padding: 16px 28px; }

  .practice, .cases, .quotes, .fees__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__portrait { max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 16px 32px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about__cols, .steps, .contact { grid-template-columns: 1fr; }
  .practice, .cases, .quotes, .fees__grid { grid-template-columns: 1fr; }
  .section__head { gap: 18px; }
}

@media (max-width: 520px) {
  .nav__name small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .step { grid-template-columns: 52px 1fr; }
  .step__no { font-size: 32px; }
  summary { font-size: 21px; }
  .credentials li, .contact__details div { grid-template-columns: 90px 1fr; }
}
