:root {
  --ink: #10182a;
  --navy: #14233d;
  --navy-deep: #0b1322;
  --paper: #f7f4ed;
  --white: #ffffff;
  --muted: #687181;
  --line: #d9d8d3;
  --gold: #b89a57;
  --gold-light: #dbc68f;
  --section-label: #66501f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16,24,42,.16);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 285px; height: auto; object-fit: contain; object-position: left center; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover { color: #755f2f; }
.nav-contact { border-bottom: 1px solid var(--gold); padding-bottom: .16rem; }
.language-switcher { position: relative; }
.language-button { display: inline-flex; align-items: center; gap: .38rem; min-height: 38px; padding: .35rem .55rem; border: 1px solid rgba(16,24,42,.2); background: transparent; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.language-button:hover, .language-button:focus-visible { border-color: var(--gold); color: #755f2f; }
.language-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.language-chevron { font-size: .65rem; transition: transform .18s ease; }
.language-button[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 20; top: calc(100% + .55rem); right: 0; min-width: 158px; padding: .35rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 34px rgba(11,19,34,.15); }
.language-menu[hidden] { display: none; }
.language-menu button { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.language-menu button:hover, .language-menu button:focus-visible { background: var(--paper); }
.language-menu button[aria-current="true"] { color: #705a29; font-weight: 700; }
.language-menu button span { width: 1.7rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }

.hero {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 5rem 0;
}
.eyebrow { margin: 0 0 1.2rem; color: #7a642f; font-size: .78rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero-name { margin: 0 0 .15rem; color: var(--navy); font-family: "Libre Franklin", Arial, sans-serif; font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.professor-title { margin-bottom: 1.35rem; color: #705a29; font-size: .9rem; line-height: 1.35; letter-spacing: .055em; }
.professor-title span { margin: 0 .35rem; color: var(--gold); }
@media (min-width: 821px) {
  .hero { align-items: start; min-height: auto; padding-bottom: 2.5rem; }
  .hero-copy, .portrait-wrap { transform: translateY(-1rem); }
  .hero-name, .professor-title { position: relative; top: -.45rem; }
  .firm-overview.section { padding-top: 2.5rem; }
}
h1, h2, h3 { font-family: "Libre Franklin", Arial, sans-serif; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.2rem, 3.4vw, 2.6rem); line-height: 1.06; font-weight: 600; }
.hero h1 { margin-top: .55rem; }
.headline-line { display: block; white-space: nowrap; }
.headline-dot { color: var(--gold); }
.hero-introduction { max-width: 760px; color: #4f5968; }
.hero-introduction p { margin: 0; font-size: clamp(1.02rem, 1.55vw, 1.18rem); }
.hero-services { margin-top: .9rem !important; color: #4f5968; }
.hero-method { margin-top: 1.15rem !important; color: #535d6c; }
.hero-objective { margin-top: .9rem !important; color: #535d6c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.25rem; text-decoration: none; font-weight: 600; font-size: .92rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: var(--white); }
.button-secondary { border: 1px solid #a9a8a3; }
.portrait-wrap { justify-self: end; width: min(100%, 430px); }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--navy-deep); }
.portrait-frame::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(219,198,143,.42); z-index: 1; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 27%; display: block; }
.portrait-caption { margin: .75rem 0 0; color: #424c5b; font-size: clamp(.56rem, 1.5vw, .72rem); font-weight: 800; letter-spacing: .035em; text-transform: uppercase; text-align: center; white-space: nowrap; }

.expertise-nav { background: var(--navy); color: #eef1f5; display: grid; grid-template-columns: 1.15fr 1fr .75fr; padding: 0 max(1.5rem, calc((100vw - var(--max)) / 2)); }
.expertise-nav a { min-height: 84px; display: flex; align-items: center; gap: .7rem; padding: .8rem 1.2rem; text-decoration: none; font-size: .96rem; font-weight: 700; letter-spacing: .025em; transition: background .2s ease; }
.expertise-nav a:hover, .expertise-nav a:focus-visible { background: rgba(255,255,255,.08); }
.expertise-nav a + a { border-left: 1px solid rgba(255,255,255,.18); }
.expertise-nav span { color: var(--gold-light); font-size: .76rem; font-weight: 800; }
.expertise-nav b { font: inherit; }

.section { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; column-gap: 4rem; align-items: end; margin-bottom: 2.3rem; }
.section-heading-single { display: block; }
.section-heading-single .eyebrow { margin-bottom: 0; }
.expertise-heading { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: clamp(2.5rem, 4vw, 4rem) 0 1.5rem; }
.expertise-heading .eyebrow, .purpose-heading .eyebrow { color: var(--section-label) !important; }
.section-heading .eyebrow { grid-column: 1; align-self: start; }
.section-heading .eyebrow, .purpose-heading .eyebrow { color: var(--section-label); font-size: .86rem; font-weight: 800; letter-spacing: .13em; }
.section-heading h2 { grid-column: 2; margin: -2.2rem 0 1rem; font-size: clamp(2.2rem, 3.4vw, 2.6rem); line-height: 1.07; font-weight: 600; }
.section-heading > p:last-child { grid-column: 2; max-width: 650px; margin: 0; color: var(--muted); }
.firm-overview { padding-top: clamp(4rem, 6vw, 6rem); padding-bottom: clamp(4.5rem, 7vw, 7rem); }
.expertise.section { padding-top: 0; }
.firm-overview-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; align-items: start; }
.firm-overview-copy { color: #4f5968; font-size: 1.06rem; }
.firm-overview-copy p { margin: 0 0 1.35rem; }
.expert-opinions { margin-top: 0; padding: 2.4rem; background: var(--navy); color: var(--white); scroll-margin-top: 2rem; }
.expert-opinions .eyebrow { margin-bottom: 1.8rem; color: var(--gold-light); }
.expert-opinions h2 { max-width: none; margin: 0 0 1.15rem; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.08; font-weight: 600; white-space: nowrap; }
.expert-opinions p { max-width: 980px; margin: 0; color: #d6dbe3; }
.expert-opinions p + p { margin-top: 1.25rem; }
.engagement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: .65rem 2.5rem; max-width: 1040px; margin: 1rem 0 1.5rem; padding-left: 1.2rem; color: #eef1f5; }
.engagement-list li { padding-left: .2rem; }
.engagement-list li::marker { color: var(--gold-light); }
.expert-matters { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.expert-matters span { padding: .42rem .72rem; border: 1px solid rgba(255,255,255,.24); color: #eef1f5; font-size: .78rem; font-weight: 600; letter-spacing: .025em; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { min-height: 340px; padding: 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; scroll-margin-top: 2rem; }
.anchor-target { position: relative; top: -2rem; }
.card-number { color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.expertise-card h3 { max-width: 410px; min-height: 3.45em; margin: 1.35rem 0 1rem; font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.15; font-weight: 600; }
.expertise-visual { position: relative; margin: 0 0 1.5rem; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.expertise-visual::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(184,154,87,.32); pointer-events: none; }
.expertise-visual img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.02); transition: transform .45s ease; }
.expertise-card:hover .expertise-visual img { transform: scale(1.025); }
.expertise-card > p:not(.card-focus) { max-width: 520px; margin: 0; color: #535d6c; }
.expertise-card > p:not(.card-focus) + p:not(.card-focus) { margin-top: 1rem; }
.card-focus { margin: auto 0 0; padding-top: 2rem; color: #7a642f; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.purpose { border-top: 1px solid var(--line); }
.purpose-heading { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; align-items: start; margin-bottom: 3.4rem; }
.purpose-heading h2 { max-width: none; margin: 0; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.07; font-weight: 600; white-space: nowrap; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); color: var(--white); }
.purpose-card { min-height: 280px; padding: 2rem; display: flex; flex-direction: column; }
.purpose-card + .purpose-card { border-left: 1px solid rgba(255,255,255,.18); }
.purpose-card > span { color: var(--gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.purpose-card h3 { margin: 0 0 1rem; font-size: clamp(1.6rem, 2.4vw, 2.25rem); font-weight: 600; }
.purpose-card p { margin: 0; color: #d6dbe3; }

.perspective { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.perspective-title { position: sticky; top: 2rem; align-self: start; }
.perspective h2 { max-width: 540px; margin: 0; font-size: clamp(2.2rem, 3.4vw, 2.6rem); line-height: 1.08; font-weight: 600; }
.perspective-copy { font-size: 1.05rem; }
.perspective-copy p { margin: 0 0 1.4rem; }
.text-links { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.text-links a { color: #705a29; text-decoration-thickness: 1px; text-underline-offset: .25rem; font-weight: 600; }

.contact { width: 100%; max-width: none; padding-left: max(1.5rem, calc((100vw - var(--max)) / 2)); padding-right: max(1.5rem, calc((100vw - var(--max)) / 2)); background: var(--navy-deep); color: var(--white); }
.contact.section { padding-top: clamp(2.5rem, 4vw, 4rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.contact .eyebrow { color: var(--gold-light); }
.contact h2 { max-width: 950px; margin: 0 0 2.5rem; font-size: clamp(2.2rem, 3.4vw, 2.6rem); line-height: 1.09; font-weight: 500; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button-light { background: var(--paper); color: var(--navy-deep); }
.button-whatsapp { border: 1px solid rgba(255,255,255,.55); color: var(--white); }
footer { background: var(--navy-deep); color: #9ca5b3; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem max(1.5rem, calc((100vw - var(--max)) / 2)); font-size: .75rem; }
footer p { margin: 0; }

[dir="rtl"] body { font-family: Arial, sans-serif; }
[dir="rtl"] .brand-logo { object-position: right center; }
[dir="rtl"] .language-menu { right: auto; left: 0; }
[dir="rtl"] .language-menu button { text-align: right; }
[dir="rtl"] .engagement-list { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .engagement-list li { padding-left: 0; padding-right: .2rem; }
[dir="rtl"] .expertise-nav a + a { border-left: 0; border-right: 1px solid rgba(255,255,255,.18); }
[dir="rtl"] .expertise-grid { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .expertise-card { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .purpose-card + .purpose-card { border-left: 0; border-right: 1px solid rgba(255,255,255,.18); }

@media (max-width: 820px) {
  .expert-opinions h2 { white-space: normal; }
  .engagement-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .site-header { min-height: 82px; }
  .brand-logo { width: 255px; height: auto; }
  nav { gap: 1rem; }
  nav a { font-size: .82rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 4rem 0; }
  .headline-line { white-space: normal; }
  .portrait-wrap { justify-self: start; width: min(100%, 420px); }
  .expertise-nav { grid-template-columns: repeat(3, 1fr); }
  .expertise-nav a { font-size: .86rem; }
  .section-heading, .purpose-heading, .perspective, .firm-overview-grid { grid-template-columns: 1fr; }
  .section-heading .eyebrow, .section-heading h2, .section-heading > p:last-child { grid-column: 1; }
  .section-heading h2 { margin: 0 0 1rem; }
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-card { min-height: auto; }
  .purpose-card + .purpose-card { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  [dir="rtl"] .purpose-card + .purpose-card { border-right: 0; }
  .perspective-title { position: static; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .brand-logo { width: 265px; }
  nav { gap: .85rem; }
  nav a { font-size: .78rem; }
}

@media (max-width: 560px) {
  .site-header, .hero, .section, .expertise-heading { width: min(calc(100% - 2rem), var(--max)); }
  nav a:not(.nav-contact) { display: none; }
  .language-switcher { display: block; }
  .brand-logo { width: 220px; height: auto; }
  h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .purpose-heading h2 { font-size: clamp(.9rem, 3.5vw, 1.1rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .credentials { gap: .5rem .8rem; }
  .credentials li:not(:last-child)::after { margin-left: .8rem; }
  .expertise-nav { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .expertise-nav a + a, .expertise-nav a:nth-child(3), .expertise-nav a:nth-child(4) { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 300px; padding: 1.5rem; }
  .expertise-card h3 { min-height: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
