:root {
  --bg: #f7f7f5;
  --ink: #111;
  --card: #fff;
  --line: #e4e4e0;
  --muted: #5c5c58;
  --num: #bdbdb7;
  --band: #fff;
  --accent: #b8f04a;
  --logo-accent: #b8f04a;
  --foot-bg: #111;
  --foot-ink: #f2f2ee;
  --foot-muted: #a3a39d;
  --foot-line: #2a2a27;
  --thumb: #f2f2ee;
  --thumb-line: #e8e8e3;
  --gutter: 112px;
  --pad: 0 56px 0 24px;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0e0d; --ink: #f2f2ee; --card: #181817; --line: #2a2a27; --muted: #a3a39d;
    --num: #4a4a46; --band: #181817; --logo-accent: #5c5c58;
    --foot-bg: #f2f2ee; --foot-ink: #0e0e0d; --foot-muted: #5c5c58; --foot-line: #d6d6d0;
    --thumb: #222220; --thumb-line: #2a2a27; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e0e0d; --ink: #f2f2ee; --card: #181817; --line: #2a2a27; --muted: #a3a39d;
  --num: #4a4a46; --band: #181817; --logo-accent: #5c5c58;
  --foot-bg: #f2f2ee; --foot-ink: #0e0e0d; --foot-muted: #5c5c58; --foot-line: #d6d6d0;
  --thumb: #222220; --thumb-line: #2a2a27; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: 16px; }

.shell { max-width: 1440px; margin: 0 auto; }
.row { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); padding: var(--pad); }

/* Cabeçalho */
.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 56px; gap: 12px; }
.logo {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
}
.logo-tag { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--logo-accent); }
.pill { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; font-size: 15px; font-weight: 500; }
.nav a { padding: 9px 16px; }
.nav a + a { border-left: 1px solid var(--line); }
.top-right { display: flex; gap: 10px; align-items: center; }
.lang { display: flex; font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang a { padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }
.icon-btn {
  border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 999px;
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 15px; cursor: pointer; padding: 0; font-family: inherit;
}
.contact-btn { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 600; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 52px; z-index: 5; min-width: 180px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; }

/* Hero */
.hero { position: relative; }
.gutter { position: relative; }
.nums {
  position: absolute; left: 0; top: 72px; width: 60px; display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--mono); font-size: 13px; line-height: 42px; color: var(--num); user-select: none;
}
.hero-body {
  position: relative; padding: 72px 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px; align-items: end;
}
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.tagline { font-family: var(--mono); font-size: 15px; color: var(--muted); min-height: 20px; }
.hero-head { display: flex; flex-direction: column; gap: 24px; }
h1 { font-size: 96px; line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.sub { font-size: 26px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; max-width: 720px; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 16px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }

/* Faixa de credenciais */
.marquee-wrap { position: relative; padding-bottom: 128px; }
.marquee { position: relative; background: var(--band); overflow-x: auto; scrollbar-width: none; }
.marquee::-webkit-scrollbar { display: none; }
.track { display: flex; width: max-content; height: 88px; will-change: transform; }
.track ul { margin: 0; padding: 0; list-style: none; display: flex; }
.track li { display: flex; align-items: center; gap: 14px; padding: 0 36px; border-right: 1px solid var(--line); white-space: nowrap; }
.mark { width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.org { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.role { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Seções */
.sec-body { padding-bottom: 144px; display: flex; flex-direction: column; gap: 40px; }
h2 { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); }
.article { position: relative; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-height: 200px; }
.meta { display: flex; gap: 12px; order: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.article h3 { order: 1; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: pretty; }
.article h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.more { align-self: flex-start; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 14px 22px; font-weight: 600; font-size: 15px; }
.area { border-radius: 18px; padding: 28px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.areas .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 0; }
.area h3 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.area p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.areas .area:last-child:nth-child(3n + 1) { grid-column: 1 / -1; min-height: 140px; }

/* Rodapé */
.foot { padding: 0 16px 16px 24px; }
.foot-card { padding: 72px 40px 32px; background: var(--foot-bg); color: var(--foot-ink); border-radius: 24px; display: flex; flex-direction: column; gap: 64px; }
.foot-top { display: flex; flex-direction: column; gap: 20px; }
.motto { font-family: var(--mono); font-size: 14px; color: var(--foot-muted); }
.mail { font-size: 96px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; overflow-wrap: anywhere; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; font-size: 15px; border-top: 1px solid var(--foot-line); padding-top: 24px; }
.links { display: flex; gap: 24px; flex-wrap: wrap; }
.links a { text-decoration: underline; text-underline-offset: 3px; }
.oab { color: var(--foot-muted); }

/* Movimento: só quando o script ativa a classe */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 900px) {
  :root { --gutter: 36px; --pad: 0 20px 0 8px; }
  .top { padding: 18px 20px; }
  .logo { padding: 8px 12px; border-radius: 10px; font-size: 15px; }
  .logo-tag, .nav, .contact-btn { display: none; }
  .menu { display: block; }
  .top-right { gap: 8px; }
  .lang { font-size: 12px; }
  .lang a { padding: 5px 9px; }
  .icon-btn { width: 44px; height: 44px; }
  .nums { top: 32px; width: 18px; font-size: 10px; line-height: 34px; }
  .hero-body { padding: 32px 0 40px; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
  .hero-text { gap: 22px; }
  .tagline { font-size: 12px; line-height: 1.6; }
  .hero-head { gap: 22px; }
  h1 { font-size: clamp(36px, 11vw, 64px); line-height: 0.98; }
  .sub { font-size: 19px; }
  .photo { border-radius: 18px; }
  .ctas { order: 3; }
  .btn-solid { flex: 1; text-align: center; padding: 15px; }
  .btn-ghost { display: none; }
  .hero-text { display: contents; }
  .tagline { order: 0; } .hero-head { order: 1; } .photo { order: 2; }
  .hero-body { display: flex; flex-direction: column; }
  .marquee-wrap { padding-bottom: 72px; }
  .track { height: 64px; }
  .track li { padding: 0 22px; }
  .org { font-size: 18px; }
  .role { font-size: 11px; }
  .sec-body { padding-bottom: 80px; gap: 20px; }
  h2 { font-size: 34px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .article { border-radius: 16px; padding: 18px; min-height: 0; }
  .meta { font-size: 11px; }
  .article h3 { font-size: 17px; line-height: 1.25; }
  .areas .area:last-child:nth-child(3n + 1) { grid-column: auto; min-height: 0; }
  .areas .card:last-child:nth-child(3n+1) { grid-column: auto; }
  .area { border-radius: 16px; padding: 20px; min-height: 0; }
  .area h3 { font-size: 19px; line-height: 1.2; }
  .foot { display: block; padding: 0 12px 12px; }
  .foot .gutter { display: none; }
  .foot-card { padding: 36px 20px 24px; border-radius: 20px; gap: 28px; }
  .motto { font-size: 12px; line-height: 1.6; }
  .mail { font-size: clamp(22px, 8.6vw, 34px); letter-spacing: -0.04em; }
  .foot-bottom { border-top: 0; padding-top: 0; flex-direction: column; gap: 10px; }
  .links { gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Páginas internas */
.page-top .sec-body { padding-top: 56px; }
.page-title { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 900px) {
  .page-top .sec-body { padding-top: 24px; }
  .page-title { font-size: 34px; }
}
