:root {
  color-scheme: light dark;
  --ink: #111714;
  --ink-soft: #27312c;
  --paper: #f1f3ef;
  --surface: #f8f9f6;
  --surface-alt: #dfe5df;
  --text: #17201b;
  --muted: #56625c;
  --line: rgba(17, 23, 20, .18);
  --accent: #6c9b7c;
  --accent-strong: #3f7352;
  --on-accent: #09100c;
  --white: #f8faf7;
  --max: 1260px;
  --header: 72px;
  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; width: 100%; height: auto; }
address { font-style: normal; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; z-index: 40; inset: 0 0 auto; color: var(--white); border-bottom: 1px solid rgba(248,250,247,.18); background: rgba(17,23,20,.83); backdrop-filter: blur(16px); transition: background .25s ease; }
.site-header.scrolled { background: rgba(17,23,20,.96); }
.nav-wrap { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.wordmark-monogram { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .8px; }
.wordmark-name { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.nav-links > a:not(.button) { color: rgba(248,250,247,.7); transition: color .2s ease; }
.nav-links > a:not(.button):hover, .nav-links > a:not(.button):focus-visible { color: var(--white); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(248,250,247,.35); background: transparent; color: var(--white); cursor: pointer; }
.menu-button span { display: block; width: 18px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .25s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); background: #7faf8f; border-color: #7faf8f; }
.button:active { transform: translateY(1px) scale(.99); }
.button:focus-visible, .text-link:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.button-small { min-height: 42px; padding-inline: 17px; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid currentColor; color: var(--white); font-size: 13px; font-weight: 750; }
.text-link span, .button span { transition: transform .2s ease; }
.text-link:hover span, .button:hover span { transform: translate(2px, -2px); }
.dark-link { color: var(--text); }

.hero { position: relative; min-height: min(860px, 100dvh); display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,12,.2), rgba(10,15,12,.03)), url("hero-advocacia.jpg") center / cover no-repeat; transform: scale(1.025); animation: hero-scale 1.6s cubic-bezier(.16,1,.3,1) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,12,.86) 0%, rgba(10,15,12,.58) 36%, rgba(10,15,12,.07) 68%); }
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--header) + 48px); padding-bottom: clamp(56px, 8vh, 86px); }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.7px; }
.hero h1 { max-width: 920px; margin: 0; font-size: clamp(48px, 5.5vw, 76px); line-height: .98; letter-spacing: 0; font-weight: 720; }
.hero-summary { max-width: 520px; margin: 28px 0 0; color: rgba(248,250,247,.76); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hero-enter { opacity: 0; transform: translateY(22px); animation: hero-enter .75s cubic-bezier(.16,1,.3,1) forwards; }
.hero h1 { animation-delay: .08s; }
.hero-summary { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
@keyframes hero-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-scale { to { transform: scale(1); } }

.scope-ticker { overflow: hidden; border-block: 1px solid var(--ink); background: var(--accent); color: var(--on-accent); }
.ticker-track { width: max-content; display: flex; animation: ticker 28s linear infinite; }
.ticker-group { display: flex; }
.ticker-group span { display: inline-flex; align-items: center; padding: 17px 24px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.ticker-group span::after { content: "+"; margin-left: 48px; font-size: 15px; font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

section { scroll-margin-top: var(--header); }
.practice, .process, .contact { padding: clamp(84px, 10vw, 132px) 0; }
.section-intro { max-width: 780px; margin-bottom: 62px; }
.section-intro h2, .process-title h2, .editorial-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: .99; letter-spacing: 0; font-weight: 720; }
.section-intro p, .process-title p, .editorial-copy > p, .contact-copy > p { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.practice { background: var(--surface); }
.practice-grid { display: grid; grid-template-columns: 1.12fr .88fr; border: 1px solid var(--line); }
.practice-lead { min-height: 560px; padding: clamp(36px, 5vw, 68px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface-alt); }
.practice-kicker { margin: 0 auto auto 0; color: var(--accent-strong); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.practice-lead h3 { max-width: 640px; margin: 0 0 20px; font-size: clamp(40px, 5vw, 70px); line-height: .98; }
.practice-lead > p:not(.practice-kicker) { max-width: 520px; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.practice-list { display: grid; grid-template-rows: repeat(3, 1fr); }
.practice-item { padding: 34px; border-bottom: 1px solid var(--line); background: var(--surface); transition: background .25s ease, color .25s ease; }
.practice-item:last-child { border-bottom: 0; }
.practice-item:hover { background: var(--ink-soft); color: var(--white); }
.practice-item h3 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 34px); }
.practice-item p { max-width: 450px; margin: 0; color: var(--muted); line-height: 1.55; }
.practice-item:hover p { color: rgba(248,250,247,.67); }

.process { background: var(--ink); color: var(--white); }
.process-title { max-width: 740px; margin-bottom: 64px; }
.process-title p { color: rgba(248,250,247,.62); }
.process-grid { display: grid; grid-template-columns: 1.1fr .9fr 1.1fr; border-top: 1px solid rgba(248,250,247,.22); }
.process-item { min-height: 330px; padding: 34px 28px 28px 0; display: flex; flex-direction: column; border-right: 1px solid rgba(248,250,247,.22); }
.process-item:nth-child(2) { padding-left: 28px; }
.process-item:last-child { padding-left: 28px; border-right: 0; }
.process-item > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 800; }
.process-item h3 { margin: auto 0 14px; font-size: clamp(25px, 2.8vw, 38px); line-height: 1.05; }
.process-item p { margin: 0; color: rgba(248,250,247,.58); line-height: 1.55; }

.editorial { padding: 0; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--surface-alt); }
.editorial-image { min-height: 760px; overflow: hidden; }
.editorial-image img { height: 100%; object-fit: cover; }
.editorial-copy { padding: clamp(60px, 8vw, 112px); align-self: center; }
.principles { margin: 44px 0 0; }
.principles div { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 21px 0; border-top: 1px solid var(--line); }
.principles div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { color: var(--accent-strong); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.principles dd { margin: 0; color: var(--muted); line-height: 1.5; }

.facts { padding: 0; background: var(--accent); color: var(--on-accent); border-block: 1px solid var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { min-height: 210px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(9,16,12,.34); }
.fact:first-child { border-left: 1px solid rgba(9,16,12,.34); }
.fact span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.fact strong { font-size: clamp(28px, 3vw, 44px); line-height: 1; overflow-wrap: anywhere; }

.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 8vw, 108px); align-items: start; }
.contact-copy { position: sticky; top: 108px; }
.contact-lines { margin-top: 44px; }
.contact-lines > div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-lines > div:last-child { border-bottom: 1px solid var(--line); }
.contact-lines span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.1px; }
.contact-lines a, .contact-lines address { width: fit-content; display: block; margin-bottom: 5px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--accent-strong); }
.contact-form { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--paper); }
.form-head { margin-bottom: 34px; }
.form-head h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.form-head p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid #89938d; border-radius: var(--radius); background: var(--surface); color: var(--text); outline: none; }
.field input { height: 54px; padding: 0 14px; }
.field textarea { min-height: 144px; padding: 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(63,115,82,.22); }
.field input.invalid, .field textarea.invalid { border-color: #a43939; }
.field-help, .field-error { display: block; margin-top: 7px; font-size: 12px; line-height: 1.45; }
.field-help { color: var(--muted); }
.field-error { min-height: 17px; color: #8e2f2f; font-weight: 700; }
.form-button { margin-top: 26px; }
.form-status { min-height: 22px; margin: 14px 0 0; color: var(--accent-strong); font-size: 13px; font-weight: 800; }

.site-footer { padding: 76px 0 28px; background: var(--ink); color: var(--white); }
.footer-main { display: grid; grid-template-columns: 1.45fr .55fr .9fr; gap: 70px; padding-bottom: 64px; }
.footer-brand .wordmark { margin-bottom: 22px; }
.footer-brand p { max-width: 470px; margin: 0; color: rgba(248,250,247,.58); line-height: 1.65; }
.footer-column h3 { margin: 0 0 22px; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; }
.footer-column a { width: fit-content; display: block; margin: 0 0 14px; color: rgba(248,250,247,.68); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.footer-column a:hover { color: var(--white); }
.footer-legal { padding: 24px 0; border-top: 1px solid rgba(248,250,247,.16); border-bottom: 1px solid rgba(248,250,247,.16); color: rgba(248,250,247,.62); font-size: 12px; line-height: 1.6; }
.footer-legal p { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 28px; padding-top: 24px; color: rgba(248,250,247,.47); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(248,250,247,.7); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal-page { min-height: 100dvh; background: var(--paper); }
.legal-header { position: sticky; top: 0; z-index: 10; color: var(--white); background: rgba(17,23,20,.96); border-bottom: 1px solid rgba(248,250,247,.16); backdrop-filter: blur(14px); }
.legal-nav { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.legal-back { font-size: 13px; font-weight: 700; color: rgba(248,250,247,.72); }
.legal-main { padding: 92px 0 120px; }
.legal-hero { max-width: 880px; margin-bottom: 72px; }
.legal-hero p { margin: 0 0 18px; color: var(--accent-strong); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.legal-hero h1 { margin: 0; font-size: clamp(45px, 7vw, 88px); line-height: .98; }
.legal-hero time { display: block; margin-top: 24px; color: var(--muted); font-size: 14px; }
.legal-content { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(48px, 9vw, 120px); align-items: start; }
.legal-index { position: sticky; top: 112px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.legal-index strong { display: block; margin-bottom: 10px; color: var(--text); }
.legal-article section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-article section:first-child { padding-top: 18px; }
.legal-article h2 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; }
.legal-article h3 { margin: 26px 0 10px; font-size: 18px; }
.legal-article p, .legal-article li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-article ul { padding-left: 20px; }
.legal-article a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111714;
    --surface: #161d19;
    --surface-alt: #202923;
    --text: #eef2ed;
    --muted: #a8b2ac;
    --line: rgba(238,242,237,.18);
    --accent: #79aa89;
    --accent-strong: #a4ceb0;
    --on-accent: #08110b;
  }
  .practice-item:hover { background: #2a362f; }
  .field input, .field textarea { border-color: #7b8981; }
  .field-error { color: #ff9e9e; }
}

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: var(--header) 0 auto; padding: 26px 24px 30px; display: none; align-items: stretch; flex-direction: column; gap: 20px; background: var(--ink); border-bottom: 1px solid rgba(248,250,247,.18); }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .nav-links .button { width: 100%; }
  .hero { min-height: min(820px, 100dvh); }
  .hero-media { background-position: 58% center; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-lead { min-height: 480px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item, .process-item:nth-child(2), .process-item:last-child { min-height: 250px; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(248,250,247,.22); }
  .process-item:last-child { border-bottom: 0; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-image { min-height: 580px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 1px solid rgba(9,16,12,.34); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-content { grid-template-columns: 1fr; }
  .legal-index { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .wordmark-name { font-size: 12px; }
  .hero { min-height: 760px; }
  .hero-media { background-position: 67% center; }
  .hero::after { background: linear-gradient(90deg, rgba(10,15,12,.88), rgba(10,15,12,.32)); }
  .hero-content { padding-top: calc(var(--header) + 44px); padding-bottom: 48px; }
  .hero h1 { max-width: 360px; font-size: 48px; line-height: 1; }
  .hero-summary { max-width: 340px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; max-width: 320px; }
  .hero-actions .text-link { justify-content: space-between; }
  .practice, .process, .contact { padding: 80px 0; }
  .section-intro h2, .process-title h2, .editorial-copy h2, .contact-copy h2 { font-size: 42px; }
  .section-intro p, .process-title p, .editorial-copy > p, .contact-copy > p { font-size: 16px; }
  .practice-lead { min-height: 400px; padding: 28px 22px; }
  .practice-lead h3 { font-size: 42px; }
  .practice-item { padding: 28px 22px; }
  .process-item, .process-item:nth-child(2), .process-item:last-child { min-height: 230px; }
  .editorial-image { min-height: 420px; }
  .editorial-copy { padding: 72px 20px; }
  .principles div { grid-template-columns: 105px 1fr; gap: 16px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { min-height: 160px; padding: 20px 16px; }
  .fact strong { font-size: 27px; }
  .contact-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .legal-main { padding: 68px 0 88px; }
  .legal-hero { margin-bottom: 54px; }
  .legal-hero h1 { font-size: 48px; }
}

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