@charset "utf-8";
/* ==========================================================================
   Advocacia Gonçalves Coelho — folha de estilo principal
   HTML + CSS + JS puro. Sem frameworks, sem dependências externas.
   ========================================================================== */

@import url("../assets/fonts/fonts.css");

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores — base grafite */
  --ink-900: #07090c;
  --ink-800: #0b0e13;
  --ink-700: #11151c;
  --ink-600: #171d26;
  --ink-500: #212936;
  --ink-400: #2e3847;

  /* Cores — dourado/bronze */
  --gold-400: #e0c68d;
  --gold-500: #c9a961;
  --gold-600: #b08d47;
  --gold-700: #8a6d33;

  /* Cores — papel */
  --paper-000: #ffffff;
  --paper-100: #f7f5f1;
  --paper-200: #efece5;
  --paper-300: #e2ded4;

  /* Texto */
  --text-dark: #1a1f27;
  --text-body: #414a57;
  --text-muted: #6b7684;
  --text-light: #f2efe9;
  --text-light-muted: #a9b1bd;

  /* Tipografia */
  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 4vw, 5rem);
  --fs-stat: clamp(2.5rem, 1.8rem + 3vw, 4rem);

  /* Espaçamento */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  --container: 1240px;
  --container-narrow: 780px;

  /* Outros */
  --radius: 2px;
  --radius-lg: 4px;
  --header-h: 84px;
  --header-h-compact: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(7, 9, 12, 0.06), 0 4px 16px rgba(7, 9, 12, 0.05);
  --shadow-md: 0 8px 24px rgba(7, 9, 12, 0.1), 0 2px 6px rgba(7, 9, 12, 0.06);
  --shadow-lg: 0 24px 64px rgba(7, 9, 12, 0.18);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-compact);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* clip evita o corte lateral sem criar contexto de rolagem — que quebraria
     o position:sticky do índice das publicações. hidden fica de reserva para
     navegadores antigos. */
  overflow-x: clip;
}

img, picture, svg, video, iframe {
  display: block;
  max-width: 100%;
}
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection {
  background: var(--gold-500);
  color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   3. Utilitários de layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }

.section--ink {
  background: var(--ink-800);
  color: var(--text-light-muted);
}
.section--ink h2,
.section--ink h3 { color: var(--text-light); }

.section--paper-alt { background: var(--paper-200); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--gold-500);
  color: var(--ink-900);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: var(--fs-small);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   4. Blocos tipográficos
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--ink .eyebrow { color: var(--gold-400); }

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--text-muted); }
.section--ink .section-head p { color: var(--text-light-muted); }

.prose > * + * { margin-top: 1.35em; }
.prose .eyebrow + h2 { margin-top: 0; }
.prose p { font-size: var(--fs-body); }
.prose strong { color: var(--text-dark); font-weight: 600; }
.section--ink .prose strong { color: var(--text-light); }

.lead { font-size: var(--fs-lead); line-height: 1.6; }

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--gold {
  background: var(--gold-500);
  color: var(--ink-900);
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.28);
}
.btn--gold:hover {
  background: var(--gold-400);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.38);
}

.btn--ghost-light {
  border-color: rgba(242, 239, 233, 0.35);
  color: var(--text-light);
}
.btn--ghost-light:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  background: rgba(201, 169, 97, 0.08);
}

.btn--ghost-dark {
  border-color: rgba(26, 31, 39, 0.22);
  color: var(--text-dark);
}
.btn--ghost-dark:hover {
  border-color: var(--gold-600);
  color: var(--gold-700);
  background: rgba(201, 169, 97, 0.08);
}

.btn--wa { background: #128c4b; color: #fff; }
.btn--wa:hover { background: #0f7a41; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-600);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-more::after {
  content: "";
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.link-more:hover { gap: 0.85rem; color: var(--gold-700); }
.link-more:hover::after { width: 1.75rem; }
.section--ink .link-more { color: var(--gold-400); }
.section--ink .link-more:hover { color: var(--gold-500); }

/* --------------------------------------------------------------------------
   6. Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 9, 12, 0.55), rgba(7, 9, 12, 0));
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck {
  height: var(--header-h-compact);
  background: rgba(11, 14, 19, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(201, 169, 97, 0.18);
  box-shadow: 0 8px 32px rgba(7, 9, 12, 0.28);
}
.site-header.is-stuck::before { opacity: 0; }

/* Páginas internas: cabeçalho sólido desde o início */
.site-header--solid {
  background: rgba(11, 14, 19, 0.96);
  border-bottom-color: rgba(201, 169, 97, 0.18);
}
.site-header--solid::before { opacity: 0; }

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  height: 46px;
  width: auto;
  transition: height 0.35s var(--ease);
}
.site-header.is-stuck .brand img { height: 38px; }

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.3rem + 1.6vw, 2.25rem);
}
.primary-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 233, 0.86);
  transition: color 0.25s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }
.primary-nav a.is-active { color: var(--gold-400); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-400);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.header-phone:hover { color: var(--gold-500); }
.header-phone svg { width: 1rem; height: 1rem; }
.header-actions .btn { padding: 0.7rem 1.4rem; }

/* CTA visível só dentro da gaveta mobile */
.nav-cta { display: none; }

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(242, 239, 233, 0.28);
  border-radius: var(--radius);
  
  flex: none;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-light);
  transition: background-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 1.5px;
  background: var(--text-light);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
  background: var(--ink-900);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 9, 12, 0.94) 0%, rgba(7, 9, 12, 0.78) 42%, rgba(7, 9, 12, 0.32) 78%, rgba(7, 9, 12, 0.5) 100%),
    linear-gradient(to top, rgba(7, 9, 12, 0.85) 0%, rgba(7, 9, 12, 0) 45%);
}

.hero__inner { position: relative; z-index: 1; max-width: 46rem; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.75rem;
}
.hero__eyebrow::before {
  content: "";
  width: 3rem; height: 1px;
  background: currentColor;
  flex: none;
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero h1 .accent {
  display: block;
  font-style: italic;
  color: var(--gold-400);
}

.hero__text {
  margin-top: 1.75rem;
  max-width: 40rem;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: rgba(242, 239, 233, 0.8);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__scroll {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: 1.75rem;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.55);
  transition: color 0.3s var(--ease);
}
.hero__scroll:hover { color: var(--gold-400); }
.hero__scroll i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, transparent, var(--gold-500));
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);   transform-origin: top; }
}

/* --------------------------------------------------------------------------
   8. Blocos de conteúdo em duas colunas
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold-600);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.split--reverse .split__media::before { inset: -1.5rem 1.5rem 1.5rem -1.5rem; }
.split__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.split__body h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   9. Faixa "Serviço Proativo e Eficiente"
   -------------------------------------------------------------------------- */
.proactive {
  position: relative;
  background: var(--ink-900);
  color: var(--text-light-muted);
  overflow: hidden;
  isolation: isolate;
}
.proactive__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.proactive__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(0.6);
}
.proactive__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, rgba(7, 9, 12, 0.55), rgba(7, 9, 12, 0.95));
}
.proactive h2 { color: var(--text-light); }
.proactive .eyebrow { color: var(--gold-400); }
.proactive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
}
.proactive__grid p { color: rgba(242, 239, 233, 0.76); }
.proactive__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--gold-400) !important;
  border-left: 2px solid var(--gold-600);
  padding-left: clamp(1.25rem, 0.8rem + 1.2vw, 2rem);
}

/* --------------------------------------------------------------------------
   10. Cards de áreas de atuação
   -------------------------------------------------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1px;
  background: var(--paper-300);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  background: var(--paper-100);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.area-card:hover { background: var(--paper-000); }
.area-card:hover::before { transform: scaleX(1); }

.area-card__num {
  flex: none;   /* não pode crescer — só a descrição empurra o link para baixo */
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-600);
}
.area-card h3 {
  font-size: var(--fs-h3);
  min-height: 2.28em;   /* reserva 2 linhas para alinhar os textos entre os cards */
  transition: color 0.3s var(--ease);
}
.area-card:hover h3 { color: var(--gold-700); }
.area-card > p:not(.area-card__num) {
  flex: 1;   /* só a descrição cresce, empurrando o link para a base do card */
  font-size: 0.9688rem;
  color: var(--text-muted);
}
.area-card .link-more { margin-top: 0.35rem; align-self: flex-start; }
.area-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   11. Números
   -------------------------------------------------------------------------- */
.stats {
  background: var(--ink-900);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  border-block: 1px solid rgba(201, 169, 97, 0.16);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3rem);
  text-align: center;
}
.stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1rem, 0.5rem + 1.5vw, 1.5rem));
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(201, 169, 97, 0.22);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   12. Outras áreas de atuação
   -------------------------------------------------------------------------- */
.other-areas__list {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 0 clamp(1.5rem, 0.8rem + 2.4vw, 3.5rem);
  counter-reset: oa;
}
.other-areas__list li {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--paper-300);
  font-size: 0.9688rem;
  color: var(--text-body);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.other-areas__list li:hover {
  color: var(--text-dark);
  padding-left: 0.35rem;
}
.other-areas__list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.62em;
  background: var(--gold-500);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.other-areas__list li:hover::before { transform: rotate(135deg); }

/* --------------------------------------------------------------------------
   13. Time
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
}
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-700);
  isolation: isolate;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.01);
  transition: filter 0.55s var(--ease), transform 0.7s var(--ease-out);
}
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0) 52%);
  opacity: 0.6;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
/* Assim que um card recebe nome/cargo, o gradiente escurece sozinho
   para garantir contraste do texto sobre a foto. */
.team-card:has(.team-card__info)::after {
  background: linear-gradient(to top, rgba(7, 9, 12, 0.92) 0%, rgba(7, 9, 12, 0.45) 28%, rgba(7, 9, 12, 0) 62%);
  opacity: 0.95;
}

.team-card:hover img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.04);
}
.team-card:hover::after {
  opacity: 0.75;
}
.team-card:hover .team-card__info {
  transform: translateY(0);
}

.team-card__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(1.15rem, 0.8rem + 1vw, 1.75rem);
  transform: translateY(8px);
  transition: transform 0.55s var(--ease-out);
}
.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.2;
}
.team-card__role {
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.team-card__name + .team-card__role::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--gold-600);
  margin-bottom: 0.55rem;
}

.team-card__frame {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(201, 169, 97, 0);
  transition: border-color 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   13b. Em memória
   Bloco dedicado, discreto, separado dos profissionais em atuação.
   -------------------------------------------------------------------------- */
.memoriam {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  max-width: 56rem;
  margin: clamp(3rem, 2rem + 3.5vw, 5rem) auto 0;
  padding-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  border-top: 1px solid var(--paper-300);
}
.memoriam__foto {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-700);
}
.memoriam__foto img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.02);
}
.memoriam__texto > * + * { margin-top: 1rem; }
.memoriam__texto p { font-size: var(--fs-small); color: var(--text-muted); }
.memoriam__nome {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}
.memoriam__texto .memoriam__nome { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); color: var(--text-dark); }
.memoriam__data {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-700);
}
.memoriam--text-only {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.memoriam--text-only .eyebrow { justify-content: center; }

@media (max-width: 640px) {
  .memoriam {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .memoriam__foto { max-width: 13rem; }
  .memoriam .eyebrow { justify-content: center; }
}

/* --------------------------------------------------------------------------
   14. Contato
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1.2rem + 4vw, 4.5rem);
  align-items: start;
}

.contact-list { display: grid; gap: 0.25rem; margin-top: 2.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid rgba(242, 239, 233, 0.1);
}
.contact-item__icon {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 50%;
  color: var(--gold-400);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-item:hover .contact-item__icon {
  background: var(--gold-500);
  color: var(--ink-900);
}
.contact-item__icon svg { width: 1.15rem; height: 1.15rem; }
.contact-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.3rem;
}
.contact-item__value {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.5;
}
a.contact-item__value:hover { color: var(--gold-400); }

.contact-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.contact-actions .btn { padding-inline: 1.3rem; }

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.22);
  box-shadow: var(--shadow-lg);
  background: var(--ink-700);
}
.contact-map::before {
  content: "Mapa";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 97, 0.35);
}
.contact-map iframe {
  position: relative;
  width: 100%;
  height: clamp(340px, 46vh, 520px);
  border: 0;
  filter: grayscale(0.85) invert(0.9) contrast(0.86);
}

/* --------------------------------------------------------------------------
   15. Depoimentos
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.25rem, 0.6rem + 2vw, 2rem);
}
.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  background: var(--paper-000);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: var(--shadow-md);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.22;
}
.testimonial blockquote {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}
.testimonial figcaption img {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.testimonial__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
}
.testimonial__place {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* --------------------------------------------------------------------------
   16. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--text-light-muted);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  border-top: 1px solid rgba(201, 169, 97, 0.16);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.9375rem; max-width: 34ch; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.25rem;
}
.footer-col li + li { margin-top: 0.7rem; }
.footer-col a, .footer-col p {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  padding-block: 1.75rem;
  border-top: 1px solid rgba(242, 239, 233, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8438rem;
  color: rgba(169, 177, 189, 0.75);
}

/* --------------------------------------------------------------------------
   17. Voltar ao topo
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.2vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 1.2vw, 2rem);
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink-800);
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 50%;
  color: var(--gold-400);
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s var(--ease), background-color 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-500); color: var(--ink-900); border-color: var(--gold-500); }
.to-top svg { width: 1.1rem; height: 1.1rem; }

/* --------------------------------------------------------------------------
   18. Páginas internas (áreas de atuação)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--ink-900);
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(201, 169, 97, 0.12), transparent 62%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800));
}
.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 500;
  color: #fff;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span[aria-hidden] { color: var(--gold-600); }
.breadcrumb [aria-current] { color: var(--gold-400); }

.article-body { max-width: 70ch; }
.article-body > * + * { margin-top: 1.4em; }
.article-body p { font-size: var(--fs-body); line-height: 1.78; }
.article-body h2 {
  font-size: var(--fs-h3);
  margin-top: 2.5em;
  padding-top: 1.75rem;
  border-top: 1px solid var(--paper-300);
}
.article-list { display: grid; gap: 0; margin-top: 1.75em !important; }
.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--paper-300);
}
.article-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.62em;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.article-nav {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--paper-300);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 1px;
  background: var(--paper-300);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.related a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--paper-100);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--text-dark);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.related a:hover { background: var(--paper-000); color: var(--gold-700); }
.related a span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* --------------------------------------------------------------------------
   19. Animações de entrada
   -------------------------------------------------------------------------- */
/* Sem JS, nada fica escondido: a classe .js é adicionada por um script inline
   no <head>. Se o JS falhar, o conteúdo continua visível. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .header-actions .btn { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --header-h-compact: 64px; }

  .nav-toggle { display: flex; }

  /* backdrop-filter cria containing block e prenderia o painel fixo dentro
     do cabeçalho. No mobile o cabeçalho fica sólido. */
  .site-header.is-stuck,
  .site-header--solid {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink-900);
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 22rem);
    padding: calc(var(--header-h) + 2rem) 2rem 2rem;
    background: var(--ink-900);
    border-left: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: -24px 0 64px rgba(7, 9, 12, 0.5);
    /* Fechado, o painel é recortado em vez de deslocado para fora da tela.
       translateX(100%) num elemento fixed pode alargar a viewport no mobile. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.42s var(--ease-out), visibility 0.42s var(--ease-out);
    overflow-y: auto;
  }
  .primary-nav.is-open { clip-path: inset(0); visibility: visible; }
  .primary-nav > ul,
  .primary-nav .nav-cta {
    transform: translateX(14px);
    opacity: 0;
    transition: transform 0.45s var(--ease-out) 0.06s, opacity 0.35s var(--ease) 0.06s;
  }
  .primary-nav.is-open > ul,
  .primary-nav.is-open .nav-cta { transform: none; opacity: 1; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(242, 239, 233, 0.08); }
  /* só os itens de menu ganham a serifada — o botão e o telefone seguem sans */
  .primary-nav > ul a {
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
  }
  .primary-nav > ul a::after { bottom: 0.7rem; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(7, 9, 12, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s var(--ease), visibility 0.42s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }

  .nav-cta {
    display: grid;
    gap: 0.85rem;
    margin-top: 2.25rem;
  }
  .nav-cta .btn { width: 100%; }
  .nav-cta__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold-400);
  }
  .nav-cta__phone svg { width: 1rem; height: 1rem; }

  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--reverse .split__media { order: 0; }
  .split__media::before { display: none; }
  .split__media img { aspect-ratio: 16 / 11; }

  .stat + .stat::before { display: none; }
}

@media (max-width: 640px) {
  .header-phone span { display: none; }
  .hero { min-height: 88svh; }
  .hero__scroll { display: none; }
  .hero__eyebrow { font-size: 0.6875rem; letter-spacing: 0.16em; }
  .hero__eyebrow::before { width: 1.75rem; }
  .hero__actions { display: grid; }
  .hero__actions .btn { width: 100%; }
  .contact-actions { display: grid; }
  .contact-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   21. Preferências do usuário
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: scale(1.02); }
}

@media print {
  .site-header, .nav-toggle, .to-top, .hero__scroll, .contact-map, .nav-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* --------------------------------------------------------------------------
   22. Publicações
   -------------------------------------------------------------------------- */

/* Cabeçalho da página do artigo */
.pub-titulo-en {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.375rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--gold-400);
}
.pub-creditos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(242, 239, 233, 0.12);
  font-size: var(--fs-small);
  color: var(--text-light-muted);
}
.pub-autor { font-weight: 600; color: var(--text-light); }
.pub-data { position: relative; }
.pub-intro {
  margin-top: 1.25rem;
  max-width: 62ch;
  font-size: var(--fs-lead);
  color: var(--text-light-muted);
}

/* Índice lateral + corpo */
.pub-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3.5vw, 4.5rem);
  align-items: start;
}

.pub-indice { position: sticky; top: calc(var(--header-h-compact) + 1.75rem); }
.pub-indice__box {
  border-left: 2px solid var(--gold-500);
  padding-left: 1.25rem;
}
.pub-indice__box > summary {
  display: none;          /* no desktop o índice fica sempre aberto */
  
}
.pub-indice__box > summary::-webkit-details-marker { display: none; }
.pub-indice .eyebrow { margin-bottom: 1rem; }
.pub-indice ol {
  counter-reset: idx;
  max-height: calc(100vh - var(--header-h-compact) - 8rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pub-indice li + li { margin-top: 0.55rem; }
.pub-indice a {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pub-indice a:hover { color: var(--text-dark); transform: translateX(2px); }
.pub-indice a.is-active { color: var(--gold-700); font-weight: 600; }

/* Corpo do artigo */
.pub-corpo { max-width: 72ch; }

.pub-resumo {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: var(--paper-200);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.pub-resumo__bloco p:not(.eyebrow):not(.pub-chaves) {
  font-size: 0.9688rem;
  line-height: 1.68;
  text-align: justify;
  hyphens: auto;
}
.pub-resumo .eyebrow { margin-bottom: 0.75rem; }
.pub-chaves {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.pub-chaves strong { color: var(--text-dark); }

.pub-secao { scroll-margin-top: calc(var(--header-h-compact) + 1.5rem); }
.pub-secao + .pub-secao { margin-top: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); }
.pub-secao h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.65vw, 1.625rem);
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-300);
}
.pub-secao h3 {
  font-size: var(--fs-h3);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}
.pub-secao p {
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}
.pub-secao p + p { margin-top: 1.15em; }

.pub-secao--refs p {
  font-size: 0.9063rem;
  line-height: 1.6;
  text-align: left;
  padding-left: 1.75rem;
  text-indent: -1.75rem;   /* recuo francês, como em bibliografia */
}
.pub-secao--refs p + p { margin-top: 0.85em; }

.pub-nota {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--paper-200);
  border-radius: var(--radius-lg);
}
.pub-nota h2 { border-bottom: 0; padding-bottom: 0; font-size: var(--fs-h3); }
.pub-nota p { text-align: left; font-size: 0.9375rem; }

/* Listagem */
.pub-grupo + .pub-grupo { margin-top: clamp(3rem, 2.2rem + 3vw, 5rem); }
.pub-lista {
  /* bordas nos próprios cards, em vez de gap colorido: assim a última linha
     incompleta não deixa um retângulo vazio destoando */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--paper-300);
  border-left: 1px solid var(--paper-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  background: var(--paper-100);
  border-right: 1px solid var(--paper-300);
  border-bottom: 1px solid var(--paper-300);
  transition: background-color 0.35s var(--ease);
}
.pub-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.pub-card:hover { background: var(--paper-000); }
.pub-card:hover::before { transform: scaleX(1); }
.pub-card__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-600);
}
.pub-card h3 { font-size: var(--fs-h3); line-height: 1.28; }
.pub-card:hover h3 { color: var(--gold-700); }
.pub-card__en {
  font-family: var(--font-display);
  font-size: 0.9063rem;
  font-style: italic;
  color: var(--text-muted);
}
.pub-card__resumo {
  flex: 1;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--text-muted);
}
.pub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pub-card__meta span + span { position: relative; padding-left: 1rem; }
.pub-card__meta span + span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.pub-card .link-more { margin-top: 0.35rem; align-self: flex-start; }
.pub-card__link { position: absolute; inset: 0; z-index: 2; }

@media (max-width: 1024px) {
  .pub-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .pub-indice { position: static; }
  .pub-indice__box {
    border-left: 0;
    padding: 1rem 1.25rem;
    background: var(--paper-200);
    border-radius: var(--radius-lg);
  }
  .pub-indice__box > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
  }
  .pub-indice__box > summary svg {
    width: 1.1rem; height: 1.1rem;
    color: var(--gold-600);
    transition: transform 0.3s var(--ease);
  }
  .pub-indice__box[open] > summary svg { transform: rotate(180deg); }
  .pub-indice__box > summary .eyebrow { margin-bottom: 0; }
  .pub-indice nav { margin-top: 1.15rem; }
  .pub-indice ol { max-height: 45vh; }
  .pub-corpo { max-width: none; }
}

@media (max-width: 640px) {
  .pub-secao p, .pub-resumo__bloco p { text-align: left; }
}

/* URLs longas nas referências precisam quebrar para não estourar a largura */
.pub-corpo,
.pub-secao p,
.pub-secao--refs p { overflow-wrap: anywhere; }
.pub-secao--refs a {
  color: var(--gold-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(176, 141, 71, 0.4);
  transition: text-decoration-color 0.25s var(--ease);
}
.pub-secao--refs a:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   Modal de Currículo da Equipe
   -------------------------------------------------------------------------- */
.team-card {
  
  position: relative;
}
.team-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #fff;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.team-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.team-modal__inner {
  padding: 2rem;
  position: relative;
}
.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  color: #333;
  transition: background 0.2s;
}
.team-modal__close:hover {
  background: #e0e0e0;
}
.team-modal__close svg {
  width: 16px;
  height: 16px;
}

.team-modal__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-right: 2rem;
}
.team-modal__foto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 3px solid var(--gold-400);
}
.team-modal__nome {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.team-modal__cargo {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.team-modal__body {
  display: grid;
  gap: 1rem;
}
.team-modal__section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
}
.team-modal__section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
}
.team-modal__section p {
  font-size: 0.9375rem;
  color: #495057;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .team-modal__header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .team-modal__header { padding-right: 0; margin-top: 1rem; }
}
