@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #222322;
  --muted: #6c6c66;
  --line: #d9d7d0;
  --stone: #e9e5dc;
  --accent: #344d52;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--white); background: var(--accent); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section-wrap { width: min(var(--content), calc(100% - 96px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; min-height: 92px; padding: 14px max(48px, calc((100vw - var(--content))/2)); background: rgb(248 247 243 / 94%); border-bottom: 1px solid rgb(217 215 208 / 75%); backdrop-filter: blur(14px); }
.brand { display: inline-flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.brand-name { font: 600 15px/1 var(--serif); letter-spacing: .11em; }
.brand-sub { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); margin-left: auto; }
.primary-nav a, .back-top { position: relative; padding: 12px 0; font-size: 13px; }
.primary-nav a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--accent); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current="location"]::after { transform: scaleX(1); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 500; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--accent); }
.header-contact { min-width: 132px; min-height: 44px; font-size: 11px; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr); align-items: center; gap: clamp(44px, 8vw, 120px); min-height: min(800px, calc(100svh - 92px)); padding-top: 80px; padding-bottom: 100px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 10px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 32px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { max-width: 740px; margin-bottom: 24px; font-size: clamp(48px, 5.6vw, 78px); letter-spacing: -.045em; line-height: 1.05; }
h1 em, h2 em { color: var(--accent); font-weight: 500; }
.hero-intro { max-width: 580px; margin-bottom: 30px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 12px; transition: border-color .2s ease, color .2s ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 66px; color: var(--muted); font-size: 10px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); content: ''; }
.hero-portrait { position: relative; min-width: 0; height: clamp(420px, 48vw, 610px); margin: 0; background: var(--stone); overflow: hidden; }
.hero-portrait::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgb(20 23 22 / 55%) 100%); content: ''; pointer-events: none; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hero-portrait:hover img { transform: scale(1.025); }
.hero-portrait figcaption { position: absolute; z-index: 1; right: 28px; bottom: 24px; left: 28px; display: flex; justify-content: space-between; gap: 12px; color: white; font-size: 11px; letter-spacing: .04em; }
.portrait-index { position: absolute; z-index: 1; top: 18px; right: 18px; padding: 9px 11px; color: white; background: rgb(20 23 22 / 42%); font-size: 9px; letter-spacing: .12em; }
.hero-bottomline { position: absolute; right: 0; bottom: 30px; left: 0; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }

.posh-section { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; column-gap: 11%; padding-top: 132px; padding-bottom: 132px; border-top: 1px solid var(--line); }
.section-number { color: var(--accent); }
.section-heading h2, .contact-copy h2 { margin: 0; font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -.035em; line-height: 1.13; }
.posh-content { padding-top: 52px; }
.posh-lede { max-width: 550px; margin-bottom: 34px; color: var(--muted); font: 500 19px/1.55 var(--serif); }
.posh-services { border-top: 1px solid var(--line); }
.posh-services > div { display: flex; align-items: baseline; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.service-index { color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.fine-print { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.section-arrow { grid-column: 2; display: flex; justify-content: space-between; width: 100%; margin-top: 30px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; transition: color .2s ease, border-color .2s ease; }
.section-arrow:hover { color: var(--accent); border-color: var(--accent); }

.practice-section { background: #eeede8; }
.practice-inner { padding-top: 124px; padding-bottom: 138px; }
.practice-section .section-heading { margin-bottom: 52px; }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; padding: 8px; margin: -8px; }
.practice-card { position: relative; display: flex; min-width: 0; min-height: 310px; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 38px); background: var(--paper); border: 1px solid transparent; outline: none; transform: translateZ(0); transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease, opacity .25s ease, border-color .25s ease; }
.practice-card-feature { background: var(--accent); color: var(--white); }
.card-kicker { margin-bottom: 36px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.practice-card-feature .card-kicker { color: #d0d9d8; }
.practice-card h3 { max-width: 100%; margin-bottom: 16px; font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.18; overflow-wrap: anywhere; }
.practice-card > p:not(.card-kicker) { max-width: 100%; margin-bottom: 28px; color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.practice-card-feature > p:not(.card-kicker) { color: #e1e5e1; }
.card-arrow { display: grid; width: 32px; height: 32px; place-items: center; margin-top: auto; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; transition: transform .24s ease, background .24s ease; }
.practice-card-feature .card-arrow { border-color: rgb(255 255 255 / 35%); }
.practice-card:hover, .practice-card:focus-visible { z-index: 2; border-color: rgb(52 77 82 / 35%); box-shadow: 0 22px 48px rgb(32 36 34 / 12%); transform: scale(1.035); }
.practice-grid:has(.practice-card:hover) .practice-card:not(:hover), .practice-grid:has(.practice-card:focus-visible) .practice-card:not(:focus-visible) { opacity: .72; transform: scale(.985); }
.practice-card:hover .card-arrow, .practice-card:focus-visible .card-arrow { background: var(--stone); transform: rotate(45deg); }
.practice-card-feature:hover .card-arrow, .practice-card-feature:focus-visible .card-arrow { background: rgb(255 255 255 / 16%); }

.profile-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 11%; padding-top: 150px; padding-bottom: 150px; align-items: start; }
.profile-mark { display: block; width: min(100%, 360px); aspect-ratio: 1; padding: 0; color: var(--accent); background: transparent; border: 0; perspective: 1000px; cursor: pointer; }
.profile-mark-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.profile-mark:hover .profile-mark-inner, .profile-mark:focus-visible .profile-mark-inner, .profile-mark[aria-pressed="true"] .profile-mark-inner { transform: rotateY(180deg); }
.profile-mark-front, .profile-mark-back { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; backface-visibility: hidden; }
.profile-mark-front { background: var(--stone); font: 500 clamp(90px, 13vw, 180px)/1 var(--serif); letter-spacing: -.08em; }
.profile-mark-back { background: var(--stone); transform: rotateY(180deg); }
.profile-mark-back img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.profile-copy h2 { margin: 0 0 22px; font-size: clamp(40px, 4vw, 54px); letter-spacing: -.035em; }
.profile-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 34px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.credentials { margin: 0; border-top: 1px solid var(--line); }
.credentials div { display: grid; grid-template-columns: minmax(120px, .65fr) 1.35fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.credentials dt { color: var(--muted); }
.credentials dd { margin: 0; }

.contact-section { color: var(--white); background: var(--ink); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-top: 116px; padding-bottom: 120px; }
.contact-section .eyebrow, .contact-section .section-number { color: #c1c4bd; }
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy h2 em { color: #c9d6d3; }
.contact-copy > p:last-child { color: #c7c8c3; font-size: 13px; }
.contact-details { align-self: center; font-style: normal; }
.contact-row { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgb(255 255 255 / 22%); font-size: 12px; transition: color .2s ease; }
.contact-row:first-child { border-top: 1px solid rgb(255 255 255 / 22%); }
.contact-row > span:first-child { color: #c1c4bd; }
.contact-row > span:last-child { display: flex; justify-content: space-between; gap: 10px; overflow-wrap: anywhere; }
.contact-row b { font-weight: 400; transition: transform .2s ease; }
.contact-row:hover { color: #c9d6d3; }
.contact-row:hover b { transform: translate(2px, -2px); }
.contact-details .fine-print { max-width: 410px; margin-top: 24px; color: #c1c4bd; }
.site-footer { color: var(--muted); }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 18px; padding-bottom: 34px; }
.footer-bottom p { max-width: 620px; margin: 0; font-size: 9px; line-height: 1.6; }
.back-top { font-size: 10px; }
.mobile-contact { display: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.practice-card.reveal:hover, .practice-card.reveal:focus-visible { transform: scale(1.035); }

:focus-visible { outline: 2px solid #58777b; outline-offset: 4px; }

@media (max-width: 960px) {
  .section-wrap { width: min(var(--content), calc(100% - 56px)); }
  .site-header { min-height: 82px; padding-inline: 28px; gap: 22px; }
  .primary-nav { gap: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 44px; min-height: auto; padding-top: 78px; padding-bottom: 92px; }
  .hero-portrait { height: 470px; }
  h1 { font-size: clamp(44px, 6vw, 64px); }
  .posh-section { column-gap: 6%; }
  .practice-card { min-height: 340px; padding: 24px; }
  .practice-card h3 { font-size: 24px; }
  .contact-inner { gap: 7%; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  .section-wrap { width: calc(100% - 40px); }
  .site-header { min-height: 72px; padding: 10px 20px; gap: 12px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 8px; }
  .header-contact { min-width: 104px; min-height: 40px; gap: 8px; padding: 0 12px; font-size: 10px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; flex: 0 0 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 71px; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px rgb(20 23 22 / 6%); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .primary-nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding-top: 58px; padding-bottom: 76px; }
  .hero-copy { padding: 0; }
  .eyebrow { gap: 9px; margin-bottom: 22px; font-size: 9px; }
  h1 { margin-bottom: 19px; font-size: clamp(42px, 11vw, 58px); }
  .hero-intro { max-width: 520px; margin-bottom: 22px; font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 16px; }
  .button { min-height: 46px; gap: 12px; padding-inline: 16px; font-size: 11px; }
  .text-link { font-size: 11px; }
  .hero-facts { gap: 9px 16px; margin-top: 32px; font-size: 9px; }
  .hero-portrait { height: min(112vw, 460px); max-height: 460px; }
  .hero-portrait img { object-position: center 70%; }
  .hero-portrait figcaption { right: 18px; bottom: 18px; left: 18px; font-size: 10px; }
  .hero-bottomline { bottom: 22px; font-size: 8px; }
  .posh-section { grid-template-columns: 1fr; gap: 26px; padding-top: 82px; padding-bottom: 86px; }
  .section-heading h2, .contact-copy h2 { font-size: clamp(36px, 9vw, 48px); }
  .posh-content { padding-top: 0; }
  .posh-lede { margin-bottom: 22px; font-size: 17px; }
  .posh-services > div { gap: 16px; padding: 14px 0; font-size: 12px; }
  .section-arrow { grid-column: 1; margin-top: 8px; }
  .practice-inner { padding-top: 82px; padding-bottom: 90px; }
  .practice-section .section-heading { margin-bottom: 28px; }
  .practice-grid { grid-template-columns: 1fr; gap: 13px; padding: 0; margin: 0; }
  .practice-card { min-height: 0; padding: 24px; }
  .card-kicker { margin-bottom: 22px; font-size: 9px; }
  .practice-card h3 { margin-bottom: 12px; font-size: 25px; }
  .practice-card > p:not(.card-kicker) { max-width: 440px; margin-bottom: 20px; font-size: 12px; }
  .card-arrow { width: 30px; height: 30px; }
  .practice-card:hover, .practice-card:focus-visible { transform: translateY(-2px); }
  .practice-grid:has(.practice-card:hover) .practice-card:not(:hover), .practice-grid:has(.practice-card:focus-visible) .practice-card:not(:focus-visible) { opacity: 1; transform: none; }
  .practice-card.reveal:hover, .practice-card.reveal:focus-visible { transform: translateY(-2px); }
  .profile-section { grid-template-columns: 1fr; gap: 34px; padding-top: 88px; padding-bottom: 90px; }
  .profile-mark { width: min(100%, 300px); margin-inline: auto; }
  .profile-mark-front { font-size: 112px; }
  .profile-copy h2 { margin-bottom: 18px; font-size: 42px; }
  .profile-copy > p:not(.eyebrow) { font-size: 13px; }
  .credentials div { grid-template-columns: 106px 1fr; gap: 12px; font-size: 10px; }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; padding-top: 80px; padding-bottom: 92px; }
  .contact-copy > p:last-child { max-width: 350px; line-height: 1.7; }
  .contact-row { grid-template-columns: 66px 1fr; gap: 12px; padding: 16px 0; font-size: 11px; }
  .contact-row > span:last-child { overflow-wrap: anywhere; }
  .footer-top { padding-top: 24px; padding-bottom: 22px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 8px; padding-bottom: 88px; }
  .mobile-contact { position: fixed; z-index: 15; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 20px; color: var(--white); background: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 18%); font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
