:root {
  --ink: #1a1714;
  --parchment: #f4f0ea;
  --warm-white: #faf8f5;
  --gold: #b8965a;
  --gold-light: #d4b87c;
  --gold-muted: rgba(184, 150, 90, 0.12);
  --stone: #8a8279;
  --stone-light: #b5ada4;
  --charcoal: #2d2a26;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26,23,20,0.06);
  padding: 0.9rem 3rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span {
  color: var(--gold);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--warm-white) !important;
  background: var(--ink);
  padding: 0.65rem 1.6rem;
  border-radius: 0;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
  pointer-events: none;
  animation: fadeFloat 8s ease-in-out infinite alternate;
}
@keyframes fadeFloat {
  0% { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(-30px, 20px); opacity: 1; }
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.2s;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.4s;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--stone);
  max-width: 580px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.6s;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1.5px solid var(--gold);
  transition: color 0.3s, gap 0.3s;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.8s;
}
.hero-cta:hover { color: var(--gold); gap: 1.1rem; }
.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(3px); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── DIVIDER ── */
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3rem;
}

/* ── SERVICES ── */
.services {
  padding: 7rem 3rem;
  background: var(--parchment);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone-light), transparent);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  text-align: center;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--stone);
  text-align: center;
  margin-bottom: 4rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(26,23,20,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,23,20,0.06);
}
.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--ink);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.7;
}

/* ── ABOUT / FIRM ── */
.about {
  padding: 7rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about .section-title {
  margin-bottom: 1rem;
}
.about-text {
  font-size: 1.05rem;
  color: var(--stone);
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
}
.about-text em {
  font-style: italic;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
}
.about-text + .about-text {
  margin-top: 1.5rem;
}

/* ── ATTORNEY ── */
.attorney {
  padding: 7rem 3rem;
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}
.attorney::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(184,150,90,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.attorney-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}
.attorney-photo {
  width: 200px;
  height: 250px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #3d3830 100%);
  border: 1px solid rgba(184,150,90,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.attorney-photo-initials {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.attorney .section-label {
  text-align: left;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
}
.attorney h3 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 1.75rem;
}
.attorney-bio {
  font-size: 0.95rem;
  color: var(--stone-light);
  line-height: 1.85;
}
.attorney-bio + .attorney-bio {
  margin-top: 1.25rem;
}
.attorney-bio em {
  font-style: italic;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.02rem;
}

/* ── CONTACT ── */
.contact {
  padding: 7rem 3rem;
  text-align: center;
  position: relative;
}
.contact .section-title {
  margin-bottom: 0.75rem;
}
.contact-sub {
  font-size: 1.05rem;
  color: var(--stone);
  margin-bottom: 3rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--ink);
  border: none;
  padding: 1.1rem 2.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.contact-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: var(--stone-light);
  padding: 3rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3rem;
  right: 3rem;
  height: 1px;
  background: rgba(184,150,90,0.15);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--parchment);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--gold); }
.footer-copy {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--stone);
  max-width: 480px;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-light);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--warm-white);
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone);
  transition: color 0.3s;
}
.modal-close:hover { color: var(--ink); }
.modal h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.modal p {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.modal h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--warm-white);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    z-index: 150;
  }
  .hamburger { display: flex; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .services { padding: 4rem 1.5rem; }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .about { padding: 4rem 1.5rem; }
  .attorney { padding: 4rem 1.5rem; }
  .attorney-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .attorney-photo { margin: 0 auto; }
  .attorney .section-label { text-align: center; }
  .contact { padding: 4rem 1.5rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .services-grid { gap: 1.25rem; }
  .service-card { padding: 2rem 1.5rem; }
  .attorney-photo { width: 150px; height: 190px; }
  .attorney-photo-initials { font-size: 2.4rem; }
}

/* ── SERVICE CARD AS LINK ── */
a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-more svg { transition: transform 0.3s; }
.service-card:hover .service-more svg { transform: translateX(3px); }

/* ── SUBPAGE: HEADER ── */
.page-header {
  padding: 10rem 3rem 4rem;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.4s;
}
.page-lede {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--stone);
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.6s;
}
.page-lede + .page-lede { margin-top: 1.25rem; }
.page-lede strong { color: var(--ink); font-weight: 500; }

/* ── SUBPAGE: BODY ── */
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem 5rem;
}
.gc-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26,23,20,0.08);
}
.gc-toc a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.gc-toc-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.gc-toc-label {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.gc-toc a:hover .gc-toc-label { color: var(--gold); border-color: var(--gold); }

.gc-section {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
  scroll-margin-top: 6rem;
}
.gc-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  padding-top: 0.35rem;
}
.gc-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.gc-section p {
  font-size: 1.02rem;
  color: var(--stone);
  line-height: 1.85;
}
.gc-section p + p { margin-top: 1.25rem; }
.gc-section p strong { color: var(--ink); font-weight: 500; }

.gc-close {
  border-top: 1px solid rgba(26,23,20,0.08);
  padding-top: 3rem;
  text-align: center;
}
.gc-close p {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto;
}
.gc-close p em { color: var(--gold); font-style: italic; }

@media (max-width: 900px) {
  .page-header { padding: 7rem 1.5rem 3rem; }
  .page-body { padding: 0 1.5rem 3rem; }
  .gc-toc { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3.5rem; }
  .gc-section { grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 3.5rem; }
  .gc-num { font-size: 2.2rem; padding-top: 0; }
}
