/* ==========================================================
   MARINHO LEGAL — stylesheet
   Palette: deep navy, warm ivory, muted gold
   ========================================================== */
:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --navy-3: #1b3c5e;
  --gold: #b8975a;
  --gold-light: #d4bb86;
  --ink: #16212d;
  --body: #3b4754;
  --muted: #6b7682;
  --line: #e4ded2;
  --line-dark: rgba(255,255,255,.12);
  --ivory: #faf8f3;
  --cream: #f3efe6;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Cormorant", "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--sans); color: var(--body); background: var(--white);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy); }

/* ---------- language visibility ---------- */
html[data-lang="en"] [lang="pt"], html[data-lang="en"] [lang="zh"],
html[data-lang="pt"] [lang="en"], html[data-lang="pt"] [lang="zh"],
html[data-lang="zh"] [lang="en"], html[data-lang="zh"] [lang="pt"] { display: none !important; }
html[data-lang="zh"] body { line-height: 1.9; }
html[data-lang="zh"] h1, html[data-lang="zh"] .display { letter-spacing: .03em; font-weight: 600; }
html[data-lang="zh"] h1 em, html[data-lang="zh"] .display em { font-style: normal; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.62); font-size: .76rem; letter-spacing: .04em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 24px; }
.topbar-reg { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 26px; }
.topbar-links a { text-decoration: none; transition: color .2s; }
.topbar-links a:hover { color: var(--gold-light); }

.lang-switch { display: inline-flex; gap: 2px; }
.lang-switch button {
  font: inherit; font-size: .72rem; letter-spacing: .1em; border: 0; background: transparent; cursor: pointer;
  color: rgba(255,255,255,.55); padding: 4px 8px; position: relative;
}
.lang-switch button + button::before {
  content: ""; position: absolute; left: -1px; top: 30%; height: 40%; width: 1px; background: rgba(255,255,255,.2);
}
.lang-switch button[aria-pressed="true"] { color: var(--gold-light); }
.lang-switch-mobile { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(11,31,51,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100px; gap: 32px; transition: height .3s; }
.site-header.scrolled .header-inner { height: 88px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-custom { display: block; width: 270px; max-width: 100%; flex-shrink: 0; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.site-header.scrolled .brand-custom { width: 240px; }
.brand-mark { width: 42px; height: 42px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .2em; color: var(--navy); white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  text-decoration: none; font-size: .84rem; font-weight: 500; letter-spacing: .06em; color: var(--ink);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 11px 22px !important;
  letter-spacing: .12em !important; text-transform: uppercase; font-size: .72rem !important;
  transition: background .25s !important;
}
.nav-cta:hover { background: var(--gold); }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 1.5px; background: var(--navy); margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 18px 32px; cursor: pointer; border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-line:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, #1d3f62 0%, var(--navy) 55%, #071524 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-monogram { position: absolute; right: -4%; top: 50%; width: 720px; height: 720px; transform: translateY(-50%); color: rgba(184,151,90,.18); }

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.45fr 1fr; gap: 80px; align-items: end;
  padding-top: 150px; padding-bottom: 130px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px; font-size: .74rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 2.2em;
}
.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 400; letter-spacing: -.005em; margin-bottom: .55em; }
.hero h1 em { color: var(--gold-light); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.75); max-width: 600px; margin-bottom: 2.6em; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-index {
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03);
  backdrop-filter: blur(4px); padding: 34px 34px 18px;
}
.hero-index-title { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.hi-row {
  display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 10px;
  padding: 18px 0; border-top: 1px solid var(--line-dark); text-decoration: none; color: #fff;
  transition: color .25s, padding .3s var(--ease);
}
.hi-row::after { content: "→"; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
.hi-row:hover { color: var(--gold-light); padding-left: 6px; }
.hi-row:hover::after { opacity: 1; transform: none; }
.hi-no { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-style: italic; }
.hi-text { font-family: var(--serif); font-size: 1.28rem; line-height: 1.3; }

/* ---------- pillars ---------- */
.pillars { background: var(--ivory); border-bottom: 1px solid var(--line); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 40px 32px 34px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar-k { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--navy); line-height: 1; margin-bottom: 12px; }
.pillar p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ---------- section scaffolding ---------- */
.section { padding: 130px 0; }
.section-cream { background: var(--ivory); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.72); }
.section-label {
  display: flex; align-items: center; gap: 14px; font-size: .72rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px;
}
.section-label::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--gold); }
.section-label.light { color: rgba(255,255,255,.55); }
.sl-no { font-family: var(--serif); font-size: 1rem; letter-spacing: .05em; color: var(--gold); font-style: italic; }
.display { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 400; max-width: 860px; margin-bottom: .9em; }
.light-text { color: #fff; }
.muted { color: var(--muted); }

/* ---------- firm ---------- */
.firm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.prose p { font-size: 1.04rem; }
.pull {
  margin: 40px 0 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--navy); font-style: italic;
}
html[data-lang="zh"] .pull { font-style: normal; font-size: 1.3rem; }
.pull cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .14em; color: var(--muted); }

/* ---------- core practices ---------- */
.core {
  display: block; border-top: 1px solid var(--line-dark); padding: 64px 0;
}
.core:last-child { padding-bottom: 0; }
.core-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 36px; }
.core-no { font-family: var(--serif); font-style: italic; font-size: 4.2rem; line-height: .9; color: var(--gold); }
.core h3 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; }
.core-intro { font-size: 1.06rem; max-width: 760px; color: rgba(255,255,255,.72); margin: 0; }
.core-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.core > .core-list { margin-left: 144px; }
.core-list li {
  position: relative; padding: 15px 0 15px 30px; border-bottom: 1px solid var(--line-dark); font-size: .96rem; color: rgba(255,255,255,.82);
}
.core-list li::before {
  content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 1px; background: var(--gold);
}
.core-cols { margin-left: 144px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.core-cols .core-list { grid-template-columns: 1fr; }
.core-cols h4 { margin-bottom: 8px; }
.opinion-steps {
  list-style: none; margin: 0 0 0 144px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark); counter-reset: op;
}
.opinion-steps li { padding: 30px 28px; border-left: 1px solid var(--line-dark); font-size: .93rem; color: rgba(255,255,255,.72); counter-increment: op; }
.opinion-steps li:first-child { border-left: 0; }
.opinion-steps li::before { content: "0" counter(op); display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-style: italic; margin-bottom: 10px; }
.opinion-steps strong { display: block; color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 8px; }
.core-note { margin: 26px 0 0 144px; font-size: .86rem; color: rgba(255,255,255,.5); max-width: 760px; font-style: italic; }
html[data-lang="zh"] .core-note { font-style: normal; }

/* ---------- expertise index ---------- */
.xp-list { border-top: 1px solid var(--ink); margin-top: 20px; }
.xp-row {
  display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 32px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: background .35s, padding .35s var(--ease);
}
.xp-row:hover { background: var(--ivory); padding-left: 20px; padding-right: 20px; }
.xp-no { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.xp-row h3 { margin: 0; font-size: 1.6rem; }
.xp-row p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- clients ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; }
.client { padding: 44px 34px; border-left: 1px solid var(--line); transition: background .3s; position: relative; }
.client:first-child { border-left: 0; }
.client::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.client:hover::before { transform: scaleX(1); }
.client h3 { font-size: 1.4rem; }
.client p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- approach ---------- */
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 40px 32px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.step-no { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--muted); font-size: .94rem; }

/* ---------- people ---------- */
.lawyer { display: grid; grid-template-columns: 400px 1fr; gap: 90px; align-items: center; }
.lawyer-visual { margin: 0; min-width: 0; }
.lawyer-photo {
  aspect-ratio: 4 / 5; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 60%, #071524 100%);
}
.lawyer-photo::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(184,151,90,.45); pointer-events: none; z-index: 1; }
.lawyer-photo::after { content: ""; position: absolute; right: -22px; bottom: -22px; width: 55%; height: 55%; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.lawyer-photo span { font-family: var(--serif); font-size: 4.4rem; color: var(--gold-light); letter-spacing: .14em; font-style: italic; }
.lawyer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.role { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1em; }
.lawyer-body > p:not(.role) { font-size: 1.04rem; }
.credentials { margin: 34px 0 30px; border-top: 1px solid var(--line); }
.credentials div { display: grid; grid-template-columns: 170px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credentials dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.credentials dd { margin: 0; color: var(--ink); font-weight: 500; }
.link-arrow { text-decoration: none; color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.link-arrow::after { content: " →"; color: var(--gold); }

/* ---------- team life ---------- */
.team-section-head { margin-bottom: 36px; }
.team-section-head .display { margin-bottom: 0; }
.team-feature { aspect-ratio: 16 / 9; overflow: hidden; background: #071524; border: 1px solid var(--line-dark); }
.team-feature img { width: 100%; height: 100%; object-fit: contain; }
.team-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.team-thumb { appearance: none; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 4px; border: 2px solid transparent; background: var(--navy-2); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.team-thumb img { width: 100%; height: 100%; object-fit: contain; }
.team-thumb:hover { border-color: var(--gold-light); }
.team-thumb[aria-pressed="true"] { border-color: var(--gold); }
.team-thumb:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 90px; align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 28px 56px 28px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 1px; background: var(--gold); transition: transform .3s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { padding: 0 56px 28px 0; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; border-top: 1px solid rgba(184,151,90,.4); border-bottom: 1px solid rgba(184,151,90,.4); margin: 14px 0; pointer-events: none; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; margin: 0; max-width: 700px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink); }
.contact-list a { color: var(--navy); text-decoration: none; font-weight: 500; transition: color .2s; }
.contact-list a:hover { color: var(--gold); }
.ci-label { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.contact-form { background: var(--ivory); border: 1px solid var(--line); padding: 50px 46px; position: relative; }
.contact-form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 80px; height: 2px; background: var(--gold); }
.form-title { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #cfc7b6; padding: 10px 0; border-radius: 0; transition: border-color .25s;
}
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin: 18px 0 0; line-height: 1.6; }
.form-error { font-size: .85rem; color: #9a3324; margin: 12px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #071524; color: rgba(255,255,255,.55); padding-top: 90px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 70px; }
.brand-footer { margin-bottom: 22px; }
.brand-footer.brand-custom { width: 320px; padding: 12px 14px; background: var(--ivory); border: 1px solid rgba(184,151,90,.35); }
.brand-footer .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.72); transition: color .2s; }
.site-footer a:hover { color: var(--gold-light); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; padding-bottom: 30px; font-size: .76rem; color: rgba(255,255,255,.4); }
.footer-legal p { margin: 0 0 6px; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; z-index: 40;
  display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-light);
  border: 1px solid rgba(184,151,90,.5); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .site-header .brand-custom { width: 240px; }
  .brand-sub { display: none; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 32px 26px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(11,31,51,.1);
    display: none; max-height: calc(100dvh - 140px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 18px; text-align: center; border-bottom: 0 !important; }
  .lang-switch-mobile { display: flex; justify-content: center; margin-top: 18px; }
  .lang-switch-mobile button { color: var(--muted); font-size: .85rem; padding: 6px 14px; }
  .lang-switch-mobile button + button::before { background: var(--line); }
  .lang-switch-mobile button[aria-pressed="true"] { color: var(--navy); font-weight: 600; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-top: 110px; padding-bottom: 100px; }
  .hero-index { max-width: 560px; }
  .core-head { grid-template-columns: 80px 1fr; }
  .core > .core-list, .core-cols, .opinion-steps, .core-note { margin-left: 104px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client:nth-child(3) { border-left: 0; }
  .client:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .lawyer { grid-template-columns: 320px 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .topbar-reg { display: none; }
  .topbar-inner { justify-content: center; }
  .firm-grid, .faq-wrap, .contact { grid-template-columns: 1fr; gap: 50px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .xp-row { grid-template-columns: 60px 1fr; }
  .xp-row p { grid-column: 2; }
  .lawyer { grid-template-columns: 1fr; }
  .lawyer-photo { max-width: 340px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .topbar-links > a:nth-child(2) { display: none; }
  .section { padding: 90px 0; }
  .header-inner { height: 84px; gap: 14px; }
  .site-header.scrolled .header-inner { height: 80px; }
  .site-header .brand-custom, .site-header.scrolled .brand-custom { width: 230px; max-width: calc(100% - 64px); }
  .menu-toggle { flex-shrink: 0; }
  .brand-name { font-size: 1.2rem; letter-spacing: .14em; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-grid { padding-top: 80px; padding-bottom: 80px; }
  .hero-monogram { width: 480px; height: 480px; right: -30%; }
  .hero-index { padding: 26px 22px 10px; }
  .core-head { grid-template-columns: 1fr; gap: 6px; }
  .core-no { font-size: 3rem; }
  .core > .core-list, .core-cols, .opinion-steps, .core-note { margin-left: 0; }
  .core-list, .core-cols { grid-template-columns: 1fr; }
  .opinion-steps { grid-template-columns: 1fr; }
  .opinion-steps li { border-left: 0; border-top: 1px solid var(--line-dark); }
  .opinion-steps li:first-child { border-top: 0; }
  .pillars-grid, .clients-grid, .steps { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .client { border-left: 0 !important; border-top: 1px solid var(--line); }
  .client:first-child { border-top: 0; }
  .xp-row { grid-template-columns: 1fr; gap: 8px; }
  .xp-row p { grid-column: auto; }
  .xp-row:hover { padding-left: 0; padding-right: 0; background: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 36px 24px; }
  .credentials div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-section-head { margin-bottom: 26px; }
  .team-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
  .lawyer-photo::after { right: -12px; bottom: -12px; }
}
