:root {
  --paper: #eee9df;
  --paper-soft: #f7f3eb;
  --ink: #17231d;
  --muted: #5f685f;
  --green: #405a4a;
  --green-deep: #20372b;
  --line: rgba(23, 35, 29, .18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #b76d3d; outline-offset: 4px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: #b76d3d; transform: scaleX(0); transform-origin: left; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled { background: rgba(238, 233, 223, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.wordmark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; text-decoration: none; }
.wordmark img { display: block; width: 100%; height: 100%; transition: transform .35s var(--ease); }
@media (hover: hover) { .wordmark:hover img { transform: rotate(-4deg) scale(1.04); } }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
nav a { text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.nav-cta { padding: .65rem 1rem; border: 1px solid currentColor; border-radius: 999px; transition: color .2s ease, background .2s ease; }
@media (hover: hover) { .nav-cta:hover { color: var(--paper-soft); background: var(--ink); } }
.whatsapp-float { position: fixed; z-index: 55; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); display: inline-flex; align-items: center; gap: .75rem; min-height: 58px; padding: .8rem 1.15rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: white; background: #176c43; box-shadow: 0 12px 35px rgba(15, 56, 36, .28); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .02em; transition: transform .3s var(--ease), background .3s ease, box-shadow .3s ease; }
.whatsapp-float svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .whatsapp-float:hover { transform: translateY(-4px); background: #125b38; box-shadow: 0 17px 40px rgba(15, 56, 36, .34); } }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: 9rem clamp(1.25rem, 6vw, 7.5rem) 5rem;
  border-bottom: 1px solid var(--line);
}
.hero::after { content: ""; position: absolute; width: 36vw; height: 36vw; max-width: 530px; max-height: 530px; right: -10vw; top: -10vw; border: 1px solid rgba(64, 90, 74, .25); border-radius: 50%; pointer-events: none; }
.eyebrow, .section-index, .card-kicker { margin: 0 0 1.5rem; font-size: .7rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; }
.eyebrow span { display: inline-flex; align-items: center; gap: .5rem; margin-left: 1rem; color: var(--muted); }
.eyebrow span::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; line-height: .94; }
h1 { max-width: 850px; font-size: clamp(3.5rem, 6.8vw, 7.7rem); }
h1 em, h2 em { color: var(--green); font-weight: 400; }
.hero-intro { max-width: 620px; margin: 2rem 0 0; color: #465148; font-size: clamp(1rem, 1.4vw, 1.22rem); }
.hero-modalities { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.hero-modalities span { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--green-deep); background: rgba(247, 243, 235, .5); font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.hero-modalities svg, .practice-icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem 2rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-width: 260px; padding: 1rem 1.25rem; border-radius: 2px; text-decoration: none; font-size: .88rem; font-weight: 600; }
.button-primary { color: #f7f3eb; background: var(--green-deep); box-shadow: 0 12px 30px rgba(32, 55, 43, .18); transition: transform .3s var(--ease), background .3s ease; }
.text-link { text-underline-offset: 6px; font-size: .84rem; }
@media (hover: hover) { .button-primary:hover { transform: translateY(-3px); background: #2e503d; } }
.portrait { position: relative; z-index: 2; align-self: center; margin: 0; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5.3; overflow: hidden; background: #d7d5ce; box-shadow: 0 25px 60px rgba(23, 35, 29, .15); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.28); pointer-events: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(.78) contrast(1.02); transition: transform 1.1s var(--ease), filter .6s ease; }
@media (hover: hover) { .portrait:hover img { transform: scale(1.025); filter: saturate(.92) contrast(1.02); } }
.portrait figcaption { position: absolute; left: -1.2rem; bottom: 1.2rem; padding: .7rem 1rem; color: var(--paper-soft); background: var(--green-deep); font-size: .68rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.hero-note { position: absolute; left: 1.3rem; bottom: 2rem; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.statement, .office, .practice, .contact { padding: clamp(6rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7.5rem); }
.section-index { color: var(--muted); }
.statement-grid { display: grid; grid-template-columns: .9fr 1fr; gap: 8vw; padding: 2.5rem 0 5rem; border-top: 1px solid var(--line); }
.statement h2, .approach h2, .practice h2, .contact h2 { font-size: clamp(3rem, 6vw, 6.8rem); }
.statement-copy { max-width: 650px; color: #38443c; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.45; }
.statement-copy p { margin: 0 0 1.3rem; }
.concerns { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concern { min-height: 260px; padding: 1.5rem; border-right: 1px solid var(--line); transition: background .35s ease, transform .35s var(--ease); }
.concern:last-child { border: 0; }
.concern span { color: #8d5d43; font-family: var(--serif); font-size: .8rem; }
.concern h3 { max-width: 210px; margin: 4rem 0 .8rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-weight: 400; }
.concern p { margin: 0; color: var(--muted); font-size: .85rem; }
@media (hover: hover) { .concern:hover { background: var(--paper-soft); transform: translateY(-5px); } }
.inline-cta { display: table; margin: 3rem 0 0 auto; padding-bottom: .4rem; border-bottom: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: .88rem; }

.approach { display: grid; grid-template-columns: 1fr 1fr; min-height: 780px; background: var(--green-deep); color: #f2eee6; }
.approach-principle { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 620px; padding: clamp(3rem, 7vw, 7rem); overflow: hidden; background: #192d23; }
.approach-principle::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(242, 238, 230, .12); pointer-events: none; }
.principle-mark { position: relative; color: #d2c0a3; font-family: var(--serif); font-size: 7rem; line-height: .5; }
.approach-principle p { position: relative; max-width: 560px; margin: 2rem 0 3.5rem; color: #f2eee6; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5.5rem); line-height: .98; letter-spacing: -.035em; }
.principle-line { position: relative; width: 7rem; height: 1px; background: #d2c0a3; }
.approach-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem); }
.approach-copy .section-index { color: #b8c0b9; }
.approach-copy h2 { max-width: 700px; margin-bottom: 2.5rem; }
.approach-copy > p:not(.section-index) { max-width: 580px; margin: 0 0 1.25rem; color: #cdd4ce; font-size: 1.02rem; }

.office { background: var(--paper); }
.office-heading { display: grid; grid-template-columns: .55fr 1.2fr .8fr; align-items: end; gap: 4vw; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.office-heading .section-index { align-self: start; }
.office-heading h2 { font-size: clamp(3rem, 5.4vw, 6rem); }
.office-heading > p:last-child { max-width: 390px; margin: 0; color: var(--muted); font-size: .95rem; }
.office-gallery { display: grid; grid-template-columns: 1.35fr .82fr .72fr; gap: clamp(.65rem, 1.3vw, 1.2rem); align-items: stretch; max-height: 560px; margin-top: 1.2rem; overflow: hidden; }
.office-photo { position: relative; min-height: 420px; margin: 0; overflow: hidden; background: #d7d2c9; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.02); transition: transform .8s var(--ease), filter .5s ease; }
.office-photo-main img { object-position: center 55%; }
.office-photo:nth-child(2) img { object-position: center 54%; }
.office-photo:nth-child(3) img { object-position: center 60%; }
@media (hover: hover) { .office-photo:hover img { transform: scale(1.025); filter: saturate(.9) contrast(1.02); } }

.practice { background: var(--paper-soft); }
.practice > h2 { max-width: 850px; margin: 2rem 0 5rem; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.practice-card { min-height: 290px; padding: 2rem 1.5rem; border-right: 1px solid var(--line); }
.practice-card:last-child { border: 0; }
.practice-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.virtual-card { background: #e7eee8; }
.virtual-card .practice-icon { color: #eef2ed; background: var(--green); border-color: var(--green); }
.practice-card .card-kicker { color: #8d5d43; }
.practice-card h3 { margin: 3.3rem 0 .8rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.05; }
.practice-card p:last-child { max-width: 330px; margin: 0; color: var(--muted); }

.contact { color: #f5f1e9; background: #8b4d32; }
.contact .section-index { color: #e4c9ba; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 6vw; padding: 2rem 0 5rem; }
.contact h2 { max-width: 800px; }
.contact-grid p { max-width: 500px; margin: 2rem 0 0; color: #f0dcd0; }
.contact-channels { display: grid; border-top: 1px solid rgba(255,255,255,.5); }
.contact-channel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; min-height: 112px; padding: 1.4rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.5); color: inherit; text-decoration: none; transition: background .3s ease, color .3s ease; }
.contact-channel span { display: flex; flex-direction: column; min-width: 0; }
.contact-channel small { margin-bottom: .18rem; font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.contact-channel strong { overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 2.25rem); line-height: 1.1; font-weight: 400; }
.contact-channel b { font-size: 1.5rem; font-weight: 400; transition: transform .35s var(--ease); }
.social-icon { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.social-icon .icon-dot, .footer-links .icon-dot { fill: currentColor; stroke: none; }
@media (hover: hover) { .contact-channel:hover { color: var(--ink); background: var(--paper); } .contact-channel:hover b { transform: translate(5px, -5px); } }
.contact-note { max-width: 760px; margin: 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.25); color: #ead3c7; font-size: .75rem; }

footer { display: grid; grid-template-columns: minmax(220px, 320px) 1fr auto; gap: 2rem; align-items: end; padding: 3rem clamp(1.25rem, 6vw, 7.5rem); color: #cad1cc; background: #14251c; font-size: .72rem; }
footer div { display: flex; flex-direction: column; }
footer strong { color: white; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
footer a { text-underline-offset: 5px; }
.footer-brand { max-width: 290px; }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-links { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .8rem 1.2rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-links svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .7fr; padding-left: 3.5rem; padding-right: 3.5rem; }
  h1 { font-size: clamp(3.4rem, 7vw, 5.7rem); }
  .concerns { grid-template-columns: repeat(2, 1fr); }
  .concern:nth-child(2) { border-right: 0; }
  .concern:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .approach-copy { padding: 4.5rem 3rem; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 1.1rem; }
  nav > a:not(.nav-cta) { display: none; }
  .whatsapp-float { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3rem; padding: 7.5rem 1.15rem 4rem; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; }
  h1 { order: 2; font-size: clamp(3.25rem, 15vw, 5rem); }
  .portrait { order: 3; width: calc(100% - 1rem); margin-left: auto; }
  .portrait-frame { aspect-ratio: 4 / 4.9; }
  .portrait figcaption { left: -1rem; }
  .hero-intro { order: 4; margin-top: 0; font-size: 1rem; }
  .hero-modalities { order: 5; margin-top: -.5rem; }
  .hero-actions { order: 6; margin-top: 0; align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .hero-note { display: none; }
  .statement, .office, .practice, .contact { padding: 5.5rem 1.15rem; }
  .statement-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
  .statement h2, .approach h2, .practice h2, .contact h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .statement-copy { font-size: 1.28rem; }
  .concerns { grid-template-columns: 1fr; }
  .concern { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .concern:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .concern h3 { margin-top: 3rem; }
  .inline-cta { margin-left: 0; }
  .approach { grid-template-columns: 1fr; min-height: auto; }
  .approach-principle { min-height: 430px; padding: 4.5rem 2rem; }
  .approach-principle p { font-size: clamp(2.7rem, 12vw, 4rem); }
  .approach-copy { padding: 5rem 1.15rem; }
  .office-heading { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
  .office-heading h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .office-gallery { grid-template-columns: 1.4fr .8fr; grid-template-rows: repeat(2, 190px); gap: .6rem; max-height: none; }
  .office-photo { min-height: 0; }
  .office-photo-main { grid-row: 1 / 3; }
  .office-photo-main img { object-position: 47% center; }
  .practice > h2 { margin-bottom: 3.5rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-card h3 { margin-top: 2rem; }
  .contact-grid { align-items: stretch; }
  .contact-channel { min-height: 100px; padding: 1.2rem 1rem; }
  .contact-channel strong { font-size: 1.5rem; }
  footer { grid-template-columns: 1fr; align-items: start; padding: 3rem 1.15rem; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition-duration: .25s; transform: translateY(8px); }
}

@media print {
  .site-header, .progress, body::before { display: none; }
  .reveal { opacity: 1; transform: none; }
}
