/* ==========================================================================
   Ferreira de Lima Advogados — folha de estilo principal
   Mobile-first · grid de 12 colunas · sem dependências
   ========================================================================== */

:root {
  --navy: #00344C;
  --navy-deep: #00283B;
  --gray: #A8A9AD;          /* só sobre fundo escuro ou texto grande */
  --off: #F7F6F3;
  --white: #FFFFFF;
  --ink: #1C2530;
  --ink-soft: #4A5360;
  --line: rgba(0, 52, 76, .16);
  --line-strong: rgba(0, 52, 76, .32);
  --line-light: rgba(255, 255, 255, .18);
  --ph: #D2D3D5;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1360px;
  --section: clamp(88px, 10.5vw, 160px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.1s;
}

@media (min-width: 1024px) {
  :root { --header-h: 92px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible, .mobile-menu :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 12px 20px;
  font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Tipografia ---------- */
.label {
  font-family: var(--label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.6;
}
@media (min-width: 768px) { .label { font-size: 12px; } }

.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.display { font-size: clamp(50px, 8.4vw, 124px); line-height: .98; }
.h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.02; }
.h2 { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.06; }
.h3 { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.15; }
.h4 { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 500; }
.italic { font-style: italic; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(680px + 2 * var(--gutter)); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}
.grid > * { grid-column: 1 / -1; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

@media (min-width: 768px) {
  .c-1-6 { grid-column: 1 / 7; } .c-7-12 { grid-column: 7 / 13; }
  .c-1-5 { grid-column: 1 / 6; } .c-6-12 { grid-column: 6 / 13; }
  .c-1-7 { grid-column: 1 / 8; } .c-8-12 { grid-column: 8 / 13; }
  .c-1-8 { grid-column: 1 / 9; } .c-9-12 { grid-column: 9 / 13; }
  .c-1-4 { grid-column: 1 / 5; } .c-5-12 { grid-column: 5 / 13; }
  .c-2-12 { grid-column: 2 / 13; } .c-2-8 { grid-column: 2 / 9; }
  .c-1-3 { grid-column: 1 / 4; } .c-4-12 { grid-column: 4 / 13; }
  .c-4-10 { grid-column: 4 / 11; }
}
@media (min-width: 1024px) {
  .lg-c-1-7 { grid-column: 1 / 8; } .lg-c-9-12 { grid-column: 9 / 13; }
  .lg-c-1-4 { grid-column: 1 / 5; } .lg-c-6-12 { grid-column: 6 / 13; }
  .lg-c-1-3 { grid-column: 1 / 4; } .lg-c-4-12 { grid-column: 4 / 13; }
  .lg-c-5-12 { grid-column: 5 / 13; } .lg-c-1-8 { grid-column: 1 / 9; }
}

.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--deep { background: var(--navy-deep); color: var(--white); }
.section + .section:not(.section--white):not(.section--navy):not(.section--deep) { padding-top: 0; }
.section--white + .section--white { padding-top: 0; }

.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .label { color: var(--navy); }
.section--navy .section-head .label, .section--deep .section-head .label { color: var(--gray); }
@media (min-width: 1024px) {
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
}

.eyebrow { display: flex; align-items: center; gap: 16px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .6; }

.vline { width: 1px; background: var(--line-strong); align-self: stretch; }
.on-dark .vline { background: var(--line-light); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 16px 28px;
  font-family: var(--label); font-weight: 500; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; background: transparent; color: var(--navy);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--light { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover { background: transparent; color: var(--white); }
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 10.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow { display: inline-block; width: 28px; height: 10px; flex: none; transition: transform .6s var(--ease); }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy);
  font-family: var(--label); font-weight: 500; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
}
.link-arrow:hover .arrow { transform: translateX(6px); }
.on-dark .link-arrow { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--off);
  border-bottom: 1px solid var(--line);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; position: relative; }
.brand img { height: 38px; width: auto; transition: opacity .5s var(--ease); }
@media (min-width: 1024px) { .brand img { height: 46px; } }
.brand .logo-neg { position: absolute; inset: 0; opacity: 0; }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2vw, 34px); }
.nav a {
  position: relative; display: inline-block; padding: 8px 0; text-decoration: none; color: var(--navy);
  font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 20px; }
.lang { display: none; align-items: center; gap: 8px; font-family: var(--label); font-size: 11px; letter-spacing: .2em; color: var(--navy); }
.lang a { text-decoration: none; opacity: .55; padding: 6px 2px; }
.lang a[aria-current="true"] { opacity: 1; }
.lang a:hover { opacity: 1; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; color: var(--navy);
  font-family: var(--label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}
.menu-toggle .bars { width: 26px; height: 9px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { bottom: 0; }

@media (min-width: 768px) { .lang { display: flex; } }
@media (min-width: 1200px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Header transparente sobre o hero (Home) */
.site-header.is-overlay:not(.is-scrolled) { background: transparent; border-color: transparent; }
.site-header.is-overlay:not(.is-scrolled) .nav a,
.site-header.is-overlay:not(.is-scrolled) .lang,
.site-header.is-overlay:not(.is-scrolled) .menu-toggle { color: var(--white); }
.site-header.is-overlay:not(.is-scrolled) .header-cta { color: var(--white); border-color: rgba(255,255,255,.55); }
.site-header.is-overlay:not(.is-scrolled) .header-cta:hover { background: var(--white); color: var(--navy); }
.site-header.is-overlay:not(.is-scrolled) .logo-pos { opacity: 0; }
.site-header.is-overlay:not(.is-scrolled) .logo-neg { opacity: 1; }
.site-header.is-overlay:not(.is-scrolled) :focus-visible { outline-color: var(--white); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.mobile-menu__top img { height: 38px; width: auto; }
.menu-close {
  background: none; border: 0; color: var(--white); padding: 10px 0; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}
.menu-close .x { width: 20px; height: 20px; position: relative; }
.menu-close .x::before, .menu-close .x::after { content: ""; position: absolute; top: 50%; left: -2px; right: -2px; height: 1px; background: currentColor; }
.menu-close .x::before { transform: rotate(45deg); } .menu-close .x::after { transform: rotate(-45deg); }
.mobile-menu nav { flex: 1; display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.mobile-menu nav ul { list-style: none; }
.mobile-menu nav li { border-top: 1px solid var(--line-light); }
.mobile-menu nav li:last-child { border-bottom: 1px solid var(--line-light); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 20px; padding: 16px 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(32px, 8vw, 52px); line-height: 1.1;
}
.mobile-menu nav a .label { color: var(--gray); font-size: 11px; }
.mobile-menu__foot { padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.mobile-menu__foot .lang { display: flex; color: var(--white); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--navy); color: var(--white);
  display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 9vh, 112px);
}
.hero__curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__curves path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__curves .g1 { animation: drift1 38s ease-in-out infinite alternate; }
.hero__curves .g2 { animation: drift2 52s ease-in-out infinite alternate; }
.hero__curves .g3 { animation: drift3 64s ease-in-out infinite alternate; }
.hero__curves path { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 4.2s var(--ease) forwards; }
.hero__curves g path:nth-child(2) { animation-delay: .25s; }
.hero__curves g path:nth-child(3) { animation-delay: .5s; }
.hero__curves g path:nth-child(4) { animation-delay: .75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift1 { from { transform: translate3d(0,0,0); } to { transform: translate3d(-60px, 26px, 0); } }
@keyframes drift2 { from { transform: translate3d(0,0,0); } to { transform: translate3d(70px, -20px, 0); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-40px, -30px, 0) scale(1.03); } }

.hero .container { position: relative; }
.hero .label { color: var(--gray); margin-bottom: clamp(24px, 4vh, 40px); }
.hero h1 { max-width: 12em; }
.hero h1 .line { display: block; }
.hero h1 .italic { color: var(--gray); }
.hero__foot { margin-top: clamp(32px, 6vh, 64px); display: grid; gap: 32px; }
.hero__sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 32em; margin: 0; }
@media (min-width: 1024px) {
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; gap: 64px; }
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 0; width: 1px; height: clamp(40px, 8vh, 88px); background: rgba(255,255,255,.2); overflow: hidden; display: none;
}
.hero__scroll::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--white); animation: scrollcue 2.8s var(--ease) infinite; }
@keyframes scrollcue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (min-width: 1200px) { .hero__scroll { display: block; } }

/* Entrada do hero */
.js .hero .intro { opacity: 0; transform: translateY(18px); animation: rise 1.4s var(--ease) forwards; }
.js .hero .intro:nth-child(2) { animation-delay: .2s; }
.js .hero .intro:nth-child(3) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Números ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 20px 36px 0; border-bottom: 1px solid var(--line); position: relative; }
.stat:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 6.4vw, 96px); line-height: 1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.stat .label { display: block; margin-top: 16px; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 48px 32px 44px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* ---------- Placeholders de foto ---------- */
.ph {
  position: relative; background: var(--ph); display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 4 / 5; width: 100%;
}
.ph::before { content: attr(data-label); font-family: var(--label); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #454B53; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--land { aspect-ratio: 3 / 2; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- Manifesto ---------- */
.manifesto__text { columns: 1; column-gap: clamp(24px, 3vw, 48px); color: var(--ink-soft); }
.manifesto__text p { break-inside: avoid; }
@media (min-width: 768px) { .manifesto__text { columns: 2; } }
.manifesto h2 { margin: 24px 0 clamp(36px, 4vw, 56px); }
.manifesto .ph { align-self: end; }

/* ---------- Áreas ---------- */
.areas { display: grid; grid-template-columns: 1fr; list-style: none; }
.area {
  position: relative; border-top: 1px solid var(--line);
}
.area:last-child { border-bottom: 1px solid var(--line); }
.area a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: start;
  padding: 32px 0 34px; text-decoration: none; height: 100%; align-content: start;
}
.area::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.area:hover::before, .area:focus-within::before { transform: scaleX(1); }
.area__num { font-family: var(--label); font-size: 11px; letter-spacing: .26em; color: var(--navy); padding-top: 8px; }
.area__title { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.15; color: var(--navy); }
.area__desc { grid-column: 2 / 3; color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin: 0; }
.area .arrow { color: var(--navy); margin-top: 14px; }
.area:hover .arrow, .area a:focus-visible .arrow { transform: translateX(6px); }
@media (min-width: 768px) {
  .areas { grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 3vw, 48px); }
  .area:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .areas { grid-template-columns: repeat(3, 1fr); }
  .area:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .area a { grid-template-columns: 1fr auto; padding: 36px 0 44px; }
  .area__num { grid-column: 1 / -1; padding: 0 0 12px; }
  .area__desc { grid-column: 1 / 2; }
  .area .arrow { grid-row: 2; grid-column: 2; }
}

/* Lista longa de áreas (página Áreas) */
.area-list { list-style: none; border-top: 1px solid var(--line); }
.area-row { border-bottom: 1px solid var(--line); position: relative; }
.area-row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.area-row:hover::before, .area-row:focus-within::before { transform: scaleX(1); }
.area-row a { display: grid; gap: 12px 32px; padding: clamp(32px, 4vw, 52px) 0; text-decoration: none; }
.area-row .area__title { font-size: clamp(30px, 3.4vw, 46px); }
.area-row p { margin: 0; color: var(--ink-soft); max-width: 36em; }
.area-row .tags { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); line-height: 1.9; }
@media (min-width: 1024px) {
  .area-row a { grid-template-columns: 80px 5fr 5fr 40px; align-items: start; }
  .area-row .area__num { grid-column: auto; padding-top: 14px; }
  .area-row .arrow { margin-top: 18px; }
}

/* ---------- Setores ---------- */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; border-top: 1px solid var(--line); }
.sectors li {
  padding: 28px 16px 28px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--navy);
}
.sectors li:nth-child(odd) { border-right: 1px solid var(--line); }
.sectors li:nth-child(even) { padding-left: 20px; }
.sectors .label { display: block; color: var(--ink-soft); margin-bottom: 14px; font-size: 10.5px; }
@media (min-width: 768px) {
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .sectors li, .sectors li:nth-child(odd), .sectors li:nth-child(even) { border-right: 1px solid var(--line); padding: 32px 24px; }
  .sectors li:nth-child(3n) { border-right: 0; }
  .sectors li:nth-child(3n+1) { padding-left: 0; }
}
@media (min-width: 1200px) {
  .sectors { grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
  .sectors li, .sectors li:nth-child(3n), .sectors li:nth-child(3n+1) { border-bottom: 0; border-right: 1px solid var(--line); padding: 40px 24px 48px; }
  .sectors li:first-child { padding-left: 0; }
  .sectors li:last-child { border-right: 0; }
}

/* ---------- Pessoas ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(16px, 2vw, 32px); list-style: none; }
@media (min-width: 1024px) { .people { grid-template-columns: repeat(4, 1fr); } }
.person a { display: block; text-decoration: none; }
.person .ph { aspect-ratio: 3 / 4; }
.person .ph::after {
  content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: multiply; opacity: 0;
  transition: opacity .9s var(--ease);
}
.person a:hover .ph::after, .person a:focus-visible .ph::after { opacity: .62; }
.person .ph::before { position: relative; z-index: 1; transition: color .9s var(--ease); }
.person a:hover .ph::before { color: #fff; }
.person__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; color: var(--navy); margin-top: 22px; }
.person__role { display: block; margin-top: 10px; color: var(--ink-soft); }
.person__area { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-soft); }
.person[hidden] { display: none; }

.associates { list-style: none; border-top: 1px solid var(--line); }
.associates li { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.associates li[hidden] { display: none; }
.associates .h4 { color: var(--navy); }
.associates .label { color: var(--ink-soft); font-size: 10.5px; }
@media (min-width: 768px) { .associates li { grid-template-columns: 5fr 3fr 3fr; align-items: baseline; } }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent; border: 1px solid var(--line-strong); color: var(--navy); min-height: 44px; padding: 10px 18px;
  font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line-strong); color: var(--navy);
  min-height: 44px; padding: 10px 44px 10px 18px; font-family: var(--label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; border-radius: 0;
}
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filter-empty { color: var(--ink-soft); padding: 24px 0; }

/* ---------- Linha do tempo ---------- */
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); transform-origin: top; }
.timeline li { position: relative; padding: 0 0 40px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: var(--off); border: 1px solid var(--navy); }
.section--white .timeline li::before { background: var(--white); }
.timeline li:last-child::before { background: var(--navy); }
.timeline__year { font-family: var(--serif); font-size: clamp(38px, 3.6vw, 52px); line-height: 1; color: var(--navy); }
.timeline p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; max-width: 16em; }
.js .timeline.reveal::before { transform: scaleY(0); transition: transform 2.2s var(--ease); }
.js .timeline.reveal.is-visible::before { transform: scaleY(1); }
@media (min-width: 1024px) {
  .timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding-top: 40px; }
  .timeline::before { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .timeline li { padding: 0; }
  .timeline li::before { top: -40px; }
  .js .timeline.reveal::before { transform: scaleX(0); }
  .js .timeline.reveal.is-visible::before { transform: scaleX(1); }
}

/* ---------- Insights ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 0 clamp(24px, 3vw, 48px); list-style: none; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; border-top: 1px solid var(--line); }
.card[hidden] { display: none; }
.card::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card a { display: flex; flex-direction: column; gap: 18px; padding: 32px 0 48px; text-decoration: none; height: 100%; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); }
.card__meta .area-tag { color: var(--navy); }
.card__title { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.18; color: var(--navy); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); }
.card__foot .arrow { color: var(--navy); }
.card:hover .arrow { transform: translateX(6px); }

.featured { display: grid; gap: 32px; text-decoration: none; padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.featured[hidden] { display: none; }
.featured .card__title { font-size: clamp(34px, 4vw, 56px); line-height: 1.06; }
.featured:hover .arrow { transform: translateX(6px); }
@media (min-width: 1024px) { .featured { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }

/* ---------- Presença / mapa ---------- */
.presence { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .presence { grid-template-columns: 5fr 7fr; gap: 80px; } }
.map { width: 100%; max-width: 640px; margin: 0 auto; }
.map .br { fill: none; stroke: var(--navy); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map .graticule { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .route { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 2 5; opacity: .55; vector-effect: non-scaling-stroke; }
.map .city { fill: var(--navy); }
.map .hq-ring { fill: none; stroke: var(--navy); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ring 4.5s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.map text { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; fill: var(--ink); }
.js .map.reveal .br { stroke-dasharray: 4000; stroke-dashoffset: 4000; transition: stroke-dashoffset 3.2s var(--ease); }
.js .map.reveal.is-visible .br { stroke-dashoffset: 0; }
.city-list { list-style: none; border-top: 1px solid var(--line); margin-top: 40px; }
.city-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.city-list .h4 { color: var(--navy); }
.city-list .label { color: var(--ink-soft); font-size: 10.5px; align-self: center; }

/* ---------- Chamada final ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: var(--section) 0; }
.cta .hero__curves path { stroke: rgba(255,255,255,.1); stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.cta .container { position: relative; }
.cta h2 { max-width: 11em; margin: 24px 0 48px; }
.cta .label { color: var(--gray); }

/* ---------- Páginas internas ---------- */
.page-intro { padding: calc(var(--header-h) + clamp(64px, 9vw, 136px)) 0 clamp(56px, 7vw, 104px); }
.page-intro .label { color: var(--navy); }
.page-intro h1 { margin: 24px 0 0; color: var(--navy); max-width: 14em; }
.page-intro .lead { margin-top: 32px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose { max-width: 680px; }
.prose h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.12; color: var(--navy); margin: 1.8em 0 .6em; }
.prose h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--navy); margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 1px solid var(--navy); font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; color: var(--navy); font-style: italic; }
.prose a { color: var(--navy); }
.prose > :first-child { margin-top: 0; }

.duo { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.duo > div { background: var(--off); padding: clamp(36px, 5vw, 72px); }
.duo .h2 { color: var(--navy); }
.duo .h2 span { color: var(--ink-soft); font-style: italic; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }

.principles, .steps { list-style: none; display: grid; gap: 0 clamp(24px, 3vw, 48px); counter-reset: step; }
.principles li, .steps li { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.principles .h3, .steps .h3 { color: var(--navy); margin: 16px 0 14px; }
.principles p, .steps p { color: var(--ink-soft); margin: 0; }
.principles .label, .steps .label { color: var(--navy); }
@media (min-width: 768px) { .principles, .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .principles, .steps { grid-template-columns: repeat(4, 1fr); } }

.facts { list-style: none; border-top: 1px solid var(--line); }
.facts li, .facts .fact { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts .label { color: var(--navy); }
.facts dd { margin: 0; }
@media (min-width: 768px) { .facts li, .facts .fact { grid-template-columns: 200px 1fr; gap: 24px; } }

.profile { display: grid; gap: 48px; }
@media (min-width: 1024px) { .profile { grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; } .profile__media { position: sticky; top: calc(var(--header-h) + 32px); } }
.profile .ph { aspect-ratio: 4 / 5; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.pub-list { list-style: none; border-top: 1px solid var(--line); }
.pub-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub-list .h4 { color: var(--navy); display: block; }
.pub-list .label { color: var(--ink-soft); font-size: 10.5px; }

/* Artigo */
.article-head { padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 64px); }
.article-head h1 { color: var(--navy); margin: 24px 0 32px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.author { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.author .ph { width: 56px; aspect-ratio: 1; border-radius: 50%; }
.author .ph::before { font-size: 0; }
.author strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--navy); line-height: 1.2; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share a, .share button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--navy); text-decoration: none;
  font-family: var(--label); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.share a:hover, .share button:hover { background: var(--navy); color: var(--white); }
.share-status { font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }

/* Política – índice lateral */
.toc { list-style: none; border-top: 1px solid var(--line); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 12px 0; text-decoration: none; font-size: 15.5px; color: var(--ink-soft); transition: color .3s var(--ease); }
.toc a:hover, .toc a.is-active { color: var(--navy); }
.toc a.is-active { font-weight: 600; }
@media (min-width: 1024px) { .toc-wrap { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 28px; }
.form-row { display: grid; gap: 28px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .field-label { font-family: var(--label); font-weight: 500; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 12px 0; font-size: 18px; color: var(--ink); transition: border-color .4s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300344C'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 28px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--navy); outline: none; box-shadow: 0 1px 0 0 var(--navy); }
.field input[type="file"] { border: 1px dashed var(--line-strong); padding: 18px; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--ink-soft); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #9B2C2C; }
.field .error { font-size: 14px; color: #9B2C2C; }
.req { color: var(--ink-soft); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 15.5px; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.consent.is-invalid { color: #9B2C2C; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 16px; }
.form-status.is-ok { color: var(--navy); font-weight: 600; }
.form-status.is-error { color: #9B2C2C; }
.form button[disabled] { opacity: .6; cursor: progress; }

.info-block { border-top: 1px solid var(--line); padding: 28px 0; }
.info-block .label { color: var(--navy); display: block; margin-bottom: 12px; }
.info-block address { font-style: normal; }
.info-block a { color: var(--navy); }
.map-embed { position: relative; aspect-ratio: 4 / 3; background: var(--ph); margin-top: 8px; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.jobs { list-style: none; border-top: 1px solid var(--line); }
.jobs li { display: grid; gap: 10px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.jobs .h3 { color: var(--navy); }
.jobs p { margin: 0; color: var(--ink-soft); }
@media (min-width: 1024px) { .jobs li { grid-template-columns: 5fr 5fr 2fr; align-items: baseline; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 80px; }
.notfound .display { color: var(--navy); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: clamp(72px, 9vw, 120px) 0 40px; font-size: 16px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-light); }
.footer-logo img { height: 52px; width: auto; }
.footer-cols { display: grid; gap: 40px; }
.footer-cols .label { color: var(--gray); display: block; margin-bottom: 16px; }
.footer-cols address { font-style: normal; line-height: 1.7; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .footer-top { grid-template-columns: 3fr 9fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}
.footer-bottom { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; font-size: 14px; color: rgba(255,255,255,.7); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (min-width: 1024px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Animações ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .12s; } .js .reveal-d2 { transition-delay: .24s; } .js .reveal-d3 { transition-delay: .36s; }
.js .draw-x { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.js .draw-x.is-visible { transform: scaleX(1); }
.rule { height: 1px; background: var(--line-strong); border: 0; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__curves g { animation: none !important; }
  .hero__curves path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; animation: none !important; }
  .js .hero .intro { opacity: 1; transform: none; animation: none; }
  .js .reveal, .js .draw-x { opacity: 1; transform: none; }
  .js .timeline.reveal::before, .js .map.reveal .br { transform: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .map .hq-ring, .hero__scroll::after { animation: none; display: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .mobile-menu, .site-footer, .cta, .share, .hero__curves { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 600px) { .map text { font-size: 17px; } }
