/* =========================================================
   Hugo Gueiros Bernardes Filho · Advocacia e Consultoria
   Visual sóbrio e premium, adequado ao meio jurídico.
   ========================================================= */

:root {
  --ink:        #15181c;   /* texto principal (mais profundo p/ contraste cinematográfico) */
  --ink-soft:   #51575f;   /* texto secundário */
  --ink-faint:  #8a909a;   /* notas */
  --paper:      #ffffff;
  --paper-alt:  #f7f5f1;   /* off-white clean e quente */
  --line:       #ebe8e1;   /* bordas sutis e claras */
  --navy:       #1c3a5e;   /* azul institucional profundo */
  --navy-deep:  #142b45;
  --navy-soft:  #2f5680;   /* azul mais suave (CTA) */
  --gold:       #a67c3d;   /* dourado discreto (acento) */
  --gold-soft:  #c9a25f;
  --radius:     0px;       /* cantos retos, sem suavização */
  --maxw:       1120px;
  --shadow:     0 1px 2px rgba(20,43,69,.05), 0 10px 30px rgba(20,43,69,.05);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* kerning + ligaduras: refinamento tipográfico premium */
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600; line-height: 1.12; color: var(--ink);
  letter-spacing: 0;
  /* numerais old-style e kerning para títulos com elegância editorial */
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "onum" 1;
}
h1 { font-weight: 700; letter-spacing: -0.015em; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
p { margin: 0 0 1rem; }
/* ênfase elegante: itálico serifado em vez de só negrito quando fizer sentido */
em { font-style: italic; }

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

/* ---------- header (transparente sobre o hero, sólido ao rolar) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-monogram {
  display: inline-grid; place-items: center;
  height: 44px; padding: 0 18px; border-radius: 0;
  border: 1px solid var(--navy);
  background: var(--navy); color: var(--gold-soft);
  font-family: "Cormorant Garamond", serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: .14em; line-height: 1;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.brand-name {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 1.12rem; color: var(--ink); letter-spacing: .01em;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand-name { display: none; }
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .3s ease; }
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); }
.site-nav a.active:not(.nav-cta)::after { content: ""; display: block; height: 2px; background: var(--gold); margin-top: 3px; }

/* estado rolado: barra branca sólida (reforço de legibilidade) */
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(20,43,69,.06);
}
.nav-cta {
  border: 1px solid var(--navy); background: var(--navy); color: #fff !important;
  padding: 8px 18px; border-radius: 0; transition: all .25s ease;
}
.nav-cta:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff !important; }
.site-nav a.nav-cta.active { color: #fff !important; }

/* botão hambúrguer (só mobile) */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--navy);
  transition: transform .3s ease, opacity .3s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .2s ease, color .2s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn::after {
  content: none;
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-primary { background: var(--navy-soft); color: #fff; box-shadow: 0 2px 8px rgba(20,43,69,.12); }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,43,69,.16); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
/* no hero, o contorno do botão secundário é azul institucional (nunca branco) */
.hero .btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
}
.hero .btn-ghost:hover {
  border-color: var(--navy-deep);
  background: rgba(255,255,255,.55);
}

/* ---------- hero (cinema clean) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fcfbf9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 128px 0 116px;
}
/* vídeo da biblioteca como fundo cinematográfico, com véu claro (white mode) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  opacity: .82;
  /* camufla a baixa resolução: leve desfoque (profundidade de campo) +
     escala para não revelar as bordas borradas + tom levemente dessaturado */
  filter: blur(3px) saturate(.9) contrast(1.02) brightness(1.02);
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform;
}
/* grão sutil por cima do vídeo, mascarando artefatos de compressão */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 180px 180px;
}
/* véu claro + base de legibilidade, tudo em gradientes de largura total
   (sem caixa) para não aparecer nenhum retângulo atrás do título */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    /* clareamento mínimo atrás do texto, bem discreto */
    radial-gradient(80% 75% at 20% 44%, rgba(252,251,249,.34) 0%, rgba(252,251,249,.12) 44%, rgba(252,251,249,0) 72%),
    /* véu horizontal suave (menos branco) */
    linear-gradient(90deg, rgba(252,251,249,.66) 0%, rgba(252,251,249,.36) 38%, rgba(252,251,249,.1) 68%, rgba(252,251,249,0) 100%),
    radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(21,24,28,.08) 100%); /* vinheta sutil */
}
@media (max-width: 760px) {
  .hero { padding: 84px 0 72px; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(252,251,249,.92) 40%, rgba(252,251,249,.5) 78%, rgba(252,251,249,.2) 100%),
      radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(21,24,28,.06) 100%);
  }
}
/* .hero-inner É o próprio .container (class="container hero-inner"), então
   NÃO limitamos a largura aqui — isso encolhia e centralizava o container,
   jogando o texto para o meio. Mantemos o container cheio e alinhamos o
   conteúdo à esquerda, como o botão HGBF do header. */
.hero-inner { position: relative; z-index: 1; }
/* eyebrow com filete dourado — assinatura discreta e premium */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  text-transform: uppercase; letter-spacing: .24em; font-size: .84rem;
  font-weight: 700; color: #8a6625; margin-bottom: 26px;
  text-shadow: 0 0 10px rgba(252,251,249,.85);
}
.eyebrow::before {
  content: ""; width: 42px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(166,124,61,0));
}
/* título display: nome em ink profundo, sobrenome destacado, entrada serena */
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  max-width: 14ch;
  margin: 0 0 26px; letter-spacing: -0.012em; line-height: 1.02;
  font-weight: 700; color: var(--ink);
  /* halo bem curto: firma as bordas sem espalhar branco */
  text-shadow:
    0 1px 2px rgba(252,251,249,.6),
    0 0 6px rgba(252,251,249,.45);
}
.hero h1 .hero-surname {
  display: block; color: var(--navy);
}
/* filete dourado sob o título, ancorando a composição cinematográfica */
.hero h1::after {
  content: ""; display: block; width: 88px; height: 3px;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
}
.hero-lead {
  font-size: 1.24rem; font-weight: 400; color: #23282f;
  max-width: 600px; margin-bottom: 38px; line-height: 1.72;
  letter-spacing: .002em;
  text-shadow: 0 0 12px rgba(252,251,249,.9), 0 0 4px rgba(252,251,249,.9);
}
.hero-lead strong { color: #0f1216; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; font-weight: 700; color: var(--gold); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 16px; letter-spacing: -0.01em; }
.section-sub { font-size: 1.14rem; font-weight: 400; color: #363c44; margin: 0; line-height: 1.68; letter-spacing: .002em; }

/* ---------- biografia ---------- */
.bio-grid { display: block; }
.bio-text p { font-size: 1.08rem; color: #363c44; line-height: 1.78; letter-spacing: .002em; }
/* texto entra rápido, sem máscara lenta */
.bio-fade { opacity: 0; transition: opacity .5s ease; }
.bio-fade.is-visible { opacity: 1; }
.bio-text strong { color: var(--ink); }
.bio-photo {
  position: relative;
  margin: 6px 0 18px 36px; float: right; width: 300px; max-width: 44%;
  clear: right;
}
.bio-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(20,43,69,.10);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
/* entrada: a foto desliza claramente da direita para a esquerda */
.bio-photo {
  opacity: 0;
  transform: translateX(120px);
  transition: opacity .7s ease .15s, transform 1s cubic-bezier(.16,1,.3,1) .15s;
  will-change: opacity, transform;
}
.bio-photo.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.bio-photo:hover img { transform: translateY(-3px); box-shadow: 0 26px 52px rgba(20,43,69,.18); }

.timeline {
  background: transparent; border: none;
  border-radius: 0; padding: 4px 0 0; box-shadow: none;
}
.timeline-title { font-size: 1.1rem; margin: 0 0 18px; color: var(--navy); }
.timeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 20px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 8px; top: 16px;
  width: 1px; bottom: 0; background: var(--line);
}
.tl-year { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; }
.tl-desc { display: block; color: var(--ink-soft); font-size: .95rem; }

.areas { margin-top: 56px; }
.areas-title { font-size: 1.25rem; margin: 0 0 22px; }
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  background: var(--paper); border: none;
  border-radius: 0; padding: 26px; border-top: 3px solid var(--navy);
  box-shadow: var(--shadow);
}
.area-card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.area-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.bio-note {
  margin-top: 36px; font-size: .86rem; color: var(--ink-faint);
  border-left: 3px solid var(--line); padding-left: 14px; max-width: 760px;
}

/* ---------- desafio (pain) ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pain {
  background: var(--paper); border: none;
  border-radius: 0; padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.pain:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,43,69,.10); }
.pain-num {
  display: inline-block; font-family: "Cormorant Garamond", serif; font-size: 1.5rem;
  font-weight: 600; color: var(--gold); line-height: 1;
  padding-bottom: 12px; margin-bottom: 14px; position: relative;
  letter-spacing: .04em; transition: color .3s ease;
}
.pain-num::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--gold); opacity: .5;
  transition: width .3s ease;
}
.pain:hover .pain-num { color: var(--navy); }
.pain:hover .pain-num::after { width: 44px; }
.pain h3 { font-size: 1.1rem; margin: 0 0 8px; }
.pain p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- áreas de atuação (features com imagem) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  position: relative; overflow: hidden; background: var(--paper); border: none;
  border-radius: 0; padding: 0; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.feature-img { margin: 0; overflow: hidden; aspect-ratio: 16/10; }
.feature-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease-soft); filter: saturate(.96);
}
.feature:hover .feature-img img { transform: scale(1.06); }
.feature-body { padding: 24px 24px 28px; }
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,43,69,.12); }
.feature:hover::before { transform: scaleY(1); }
.feature-num {
  font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 600;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.feature h3 { font-size: 1.32rem; margin: 0 0 10px; letter-spacing: -0.005em; }
.feature p { margin: 0; color: #3a414a; line-height: 1.62; font-weight: 400; }

/* ========== Áreas de atuação — entrada cinematográfica ========== */
/* Perspectiva no contêiner para a cascata 3D das cartas */
.areas-grid { perspective: 1400px; perspective-origin: 50% 0%; }

/* Estado inicial: carta recuada no espaço, levemente inclinada */
.areas-grid.reveal-stagger > .feature {
  opacity: 0;
  clip-path: none;                 /* sobrescreve o clip padrão do stagger */
  transform: translateY(46px) rotateX(14deg) scale(.965);
  transform-origin: 50% 100%;
  transition:
    opacity .7s var(--ease-soft),
    transform .9s cubic-bezier(.16,1,.3,1);
}
.areas-grid.reveal-stagger.is-visible > .feature {
  opacity: 1;
  clip-path: none;
  transform: translateY(0) rotateX(0) scale(1);
}
/* Cascata: cada carta entra em sequência */
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(1) { transition-delay: .00s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(2) { transition-delay: .12s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(3) { transition-delay: .24s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(4) { transition-delay: .36s; }

/* Cartas com flip: a entrada NÃO pode usar transform no elemento que tem
   perspective, senão achata o 3D. Entram só com opacidade (e sobem via inner). */
.areas-grid.reveal-stagger > .feature.flip { transform: none; transition: opacity .7s var(--ease-soft); }
.areas-grid.reveal-stagger > .feature.flip .flip-inner { transform: translateY(40px); }
.areas-grid.reveal-stagger.is-visible > .feature.flip { transform: none; }
.areas-grid.reveal-stagger.is-visible > .feature.flip .flip-inner { transform: translateY(0); }
.areas-grid.reveal-stagger.is-visible > .feature.flip.is-flipped .flip-inner { transform: rotateY(180deg); }

/* Varredura dourada diagonal sobre a imagem, na entrada */
.areas-grid .feature-img { position: relative; }
.feature-scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,.0) 44%,
    rgba(201,162,77,.55) 50%,     /* dourado */
    rgba(255,255,255,.85) 52%,
    rgba(201,162,77,.0) 60%,
    transparent 66%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  mix-blend-mode: screen;
}
.areas-grid.reveal-stagger.is-visible > .feature .feature-scan {
  animation: areaScan 1.05s cubic-bezier(.22,.61,.36,1) both;
}
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(1) .feature-scan { animation-delay: .30s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(2) .feature-scan { animation-delay: .42s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(3) .feature-scan { animation-delay: .54s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(4) .feature-scan { animation-delay: .66s; }
@keyframes areaScan {
  0%   { transform: translateX(-120%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* O numeral chega destacado e assenta */
.areas-grid.reveal-stagger .feature-num {
  transform: translateY(8px); opacity: 0;
  transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.areas-grid.reveal-stagger.is-visible > .feature .feature-num { transform: translateY(0); opacity: 1; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(1) .feature-num { transition-delay: .34s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(2) .feature-num { transition-delay: .46s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(3) .feature-num { transition-delay: .58s; }
.areas-grid.reveal-stagger.is-visible > .feature:nth-child(4) .feature-num { transition-delay: .70s; }

/* A barra dourada lateral "se desenha" quando a carta assenta */
.areas-grid.reveal-stagger.is-visible > .feature::before {
  transform: scaleY(1); transition: transform .6s ease .4s;
}
.areas-grid.reveal-stagger.is-visible > .feature:hover::before { transition: transform .35s ease; }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .areas-grid.reveal-stagger > .feature { transform: none; }
  .feature-scan { display: none; }
  .areas-grid.reveal-stagger .feature-num { transform: none; }
}

/* ========== Flip 3D ao clicar (neuromarketing no verso) ========== */
.areas-hint {
  text-align: center; color: var(--ink-faint); font-size: .92rem;
  letter-spacing: .02em; margin: -28px 0 34px;
}
/* a carta vira o palco 3D; o conteúdo vive em .flip-inner */
.feature.flip::before { display: none; content: none; }
.feature.flip {
  position: relative; background: transparent; box-shadow: none;
  cursor: pointer; perspective: 1200px;
  outline: none; overflow: visible; display: block; transition: none;
  height: 500px;
}
.feature.flip .flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
  transform-style: preserve-3d;
}
.feature.flip.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
/* a face frontal mantém o visual atual do card */
.flip-back { transform: rotateY(180deg); }

/* realce de foco/hover na carta inteira */
.feature.flip:hover .flip-face,
.feature.flip:focus-visible .flip-front { box-shadow: 0 16px 36px rgba(20,43,69,.16); }
.feature.flip:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* dica "Ver mais" na frente */
.flip-cue {
  display: inline-block; margin-top: 14px; color: var(--navy);
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  opacity: .0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.feature.flip:hover .flip-cue,
.feature.flip:focus-visible .flip-cue { opacity: 1; transform: translateY(0); }

/* ---- verso: imagem nova + copy de neuromarketing ---- */
.flip-back { color: #fff; }
.flip-back-img { position: absolute; inset: 0; margin: 0; z-index: 0; }
.flip-back-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* véu com peso na base: topo quase limpo (imagem aparece), base escura
   só onde fica o texto — garante leitura sem engolir a foto */
.flip-back::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13,24,40,.1) 0%,
    rgba(13,24,40,.2) 28%,
    rgba(11,20,34,.72) 48%,
    rgba(9,17,29,.92) 66%,
    rgba(8,15,26,.97) 100%
  );
}
.flip-back-body {
  position: relative; z-index: 2; margin-top: auto;
  padding: 22px 22px 26px;
}
/* painel sólido atrás do texto — garante leitura sobre qualquer imagem */
.flip-back-body::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,19,32,.82) 0%, rgba(8,15,26,.96) 100%);
}
.flip-kicker {
  display: block; font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem; font-weight: 700; line-height: 1.14;
  color: #fff; margin-bottom: 10px;
  text-shadow: 0 1px 12px rgba(5,10,18,.85);
}
.flip-lead {
  margin: 0 0 16px; font-size: 1rem; line-height: 1.6;
  color: #fff; font-weight: 500;
  text-shadow: 0 1px 10px rgba(5,10,18,.95);
}
.flip-cta {
  display: inline-block; font-size: .94rem; font-weight: 700;
  letter-spacing: .02em; color: #e3c585;
  border-bottom: 1px solid rgba(201,162,95,.7); padding-bottom: 3px;
  text-shadow: 0 1px 10px rgba(5,10,18,.9);
}
/* barra dourada no topo do verso, ancorando a identidade */
.flip-back-body::before {
  content: ""; display: block; width: 46px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .feature.flip .flip-inner { transition: none; }
}

/* ---------- fases ---------- */
.phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-bottom: 56px; }
.phase {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.phase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.phase-tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; color: #fff;
}
.phase-tag-1 { background: var(--navy); }
.phase-tag-2 { background: var(--gold); }
.phase-head h3 { margin: 0; font-size: 1.25rem; }
.phase-list { margin: 0 0 18px; padding: 0; list-style: none; }
.phase-list li { position: relative; padding: 0 0 10px 24px; color: var(--ink-soft); }
.phase-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.phase-foot { margin: 0; font-style: italic; color: var(--ink-faint); font-size: .95rem; }

/* ---------- diferenciais ---------- */
.diff {
  background: var(--navy); color: #eaf0f6; border-radius: var(--radius);
  padding: 40px 44px;
}
.diff-title { color: #fff; margin: 0 0 20px; font-size: 1.4rem; }
.diff-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.diff-list li { position: relative; padding-left: 24px; color: #cdd9e6; }
.diff-list li::before {
  content: "\2014"; position: absolute; left: 0; color: var(--gold-soft);
}
.diff-list strong { color: #fff; }

/* ---------- cta ---------- */
/* ---------- Contato + Rodapé unificados (claro) ---------- */
.contact-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-footer-inner {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.contact-footer .footer-logo { margin: 0 0 28px; max-width: 320px; }
.footer-logo-img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.contact-footer h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 16px; }
.contact-lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 32px; line-height: 1.7; }
.contact-footer .btn-lg { margin-bottom: 48px; }
.footer-tagline {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  color: var(--ink-soft); margin: 0 0 10px; font-size: 1.05rem;
  padding-top: 28px; border-top: 1px solid var(--line); width: 100%; max-width: 280px;
}
.footer-legal { color: var(--ink-faint); font-size: .84rem; margin: 0; }

/* ---------- responsivo ---------- */
@media (max-width: 920px) {
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .area-cards { grid-template-columns: 1fr 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .diff-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20,43,69,.10);
    padding: 8px 0;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .35s ease, opacity .3s ease, visibility .35s;
  }
  .site-header.nav-open .site-nav {
    max-height: 70vh; opacity: 1; visibility: visible;
  }
  .site-nav a {
    color: var(--ink) !important; padding: 15px 24px; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.active:not(.nav-cta)::after { display: none; }
  .nav-cta { border: 0; margin: 6px 24px 10px; padding: 14px; text-align: center; background: var(--navy); color: #fff !important; }
  .nav-cta:hover { background: var(--navy-deep); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bio-photo { float: none; width: 100%; max-width: 280px; margin: 0 auto 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .area-cards, .pain-grid { grid-template-columns: 1fr; }
  .diff { padding: 30px 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* =========================================================
   ANIMAÇÕES PREMIUM (v2)
   ========================================================= */

:root {
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
}

/* Barra de progresso de rolagem (dourada) no topo */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 100; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(166,124,61,.5);
}

/* Header com transição e leve blur reforçado ao rolar */
.site-header { transition: box-shadow .4s ease, background .4s ease, border-color .4s ease; }
.site-header.scrolled {
  box-shadow: 0 6px 28px rgba(20,43,69,.10);
  background: rgba(255,255,255,.96);
  border-color: #d9d4ca;
}

/* ---------- Entrada do hero (clip-reveal editorial) ---------- */
.hero .eyebrow,
.hero h1,
.hero .hero-lead,
.hero .hero-actions {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(8px);
  animation: heroReveal 1.1s cubic-bezier(.16,1,.3,1) forwards;
}
.hero .eyebrow { animation-delay: .1s; }
.hero .hero-lead { animation-delay: .5s; }
.hero .hero-actions { animation-delay: .68s; }
@keyframes heroReveal {
  to { opacity: 1; clip-path: inset(0 0 -2% 0); transform: translateY(0); }
}

/* Título do hero: tinta sólida; revela em duas linhas com atraso */
.hero h1 {
  color: var(--ink);
  animation: heroReveal 1.2s cubic-bezier(.16,1,.3,1) .3s forwards;
}

/* ---------- Revelação ao rolar (clip-reveal, não o fade-up clichê) ---------- */
.reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), clip-path 1.1s cubic-bezier(.16,1,.3,1);
  will-change: opacity, clip-path;
}
.reveal.is-visible { opacity: 1; clip-path: inset(0 0 -2% 0); }

/* Variações direcionais (revelação lateral por máscara) */
.reveal-left  { clip-path: inset(0 100% 0 0); }
.reveal-right { clip-path: inset(0 0 0 100%); }
.reveal-left.is-visible,
.reveal-right.is-visible { clip-path: inset(0 0 0 0); }

/* ---------- Stagger: cada item revela por máscara, tempos variados ---------- */
.reveal-stagger > * {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(10px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), clip-path .95s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
  will-change: opacity, clip-path, transform;
}
.reveal-stagger.is-visible > * { opacity: 1; clip-path: inset(0 0 -4% 0); transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .13s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .22s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .33s; }

/* ---------- Linha dourada sob os títulos ---------- */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: -10px;
  height: 3px; width: 0; border-radius: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .9s var(--ease-out) .25s;
}
.section-head.is-visible h2::after { width: 64px; }

/* ---------- Timeline em cascata (sóbria, sem pulso) ---------- */
.timeline.is-visible li { animation: tlIn .7s var(--ease-out) both; }
.timeline.is-visible li:nth-child(1) { animation-delay: .05s; }
.timeline.is-visible li:nth-child(2) { animation-delay: .18s; }
.timeline.is-visible li:nth-child(3) { animation-delay: .31s; }
.timeline.is-visible li:nth-child(4) { animation-delay: .44s; }
@keyframes tlIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Cards: elevação discreta, sem 3D nem brilho ---------- */
.feature, .pain {
  transition: transform .3s var(--ease-soft), box-shadow .3s ease;
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero .eyebrow, .hero h1, .hero .hero-lead, .hero .hero-actions {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .hero h1 { -webkit-text-fill-color: var(--ink); color: var(--ink); }
  .hero::before, .hero::after, .hero-bg::before { animation: none !important; transform: none !important; }
  .scroll-progress { display: none; }
}

/* =========================================================
   CINEMA CLEAN — refinamentos finais (white mode)
   ========================================================= */

/* Grão de filme sutil sobre toda a página (cinematográfico, bem discreto) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Mais ar e respiro nas seções */
.section { padding: 104px 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
.section-sub { font-size: 1.14rem; line-height: 1.7; }

/* Kicker com traço fino à esquerda (detalhe editorial de revista/cinema) */
.kicker { position: relative; padding-left: 0; display: block; margin-bottom: 16px; }

/* Transições gerais mais lentas e suaves = sensação cinematográfica */
.btn, .feature, .pain, .bio-photo img, .area-card { transition-timing-function: var(--ease-out); }

/* Cartões com fundo levemente translúcido sobre o papel, respiro interno maior */
.feature-body { padding: 28px 28px 30px; }
.pain { padding: 32px 28px; background: rgba(255,255,255,.72); }

/* Foto com leve profundidade cinematográfica */
.bio-photo img { box-shadow: 0 24px 60px rgba(20,43,69,.16); }

/* Rodapé unificado com o contato (ver .contact-footer acima) */

@media (max-width: 640px) {
  .section { padding: 68px 0; }
}

/* =========================================================
   FAIXA VISUAL — carrossel de citações (frase + imagem)
   ========================================================= */
.justice-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 72px 0;
}
.justice-band-grid { display: block; }
.justice-slides { position: relative; min-height: 360px; }
.justice-slide {
  position: absolute; inset: 0; margin: 0;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), visibility .9s;
  pointer-events: none;
}
.justice-slide.is-active {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.justice-quote {
  position: relative;
  font-family: "Cormorant Garamond", serif; font-style: normal; font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.4;
  color: #fff; margin: 0; max-width: 620px; letter-spacing: .01em;
  padding-top: 26px;
}
.justice-quote::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 48px; height: 2px; background: var(--gold-soft);
}
.justice-slide-img { display: flex; justify-content: center; }
.justice-slide-img img {
  width: 100%; max-width: 360px; height: 260px; object-fit: cover; display: block;
  border-radius: 0; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
/* indicadores (dots) */
.justice-controls { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.justice-dots { display: flex; gap: 10px; }
.justice-dots button {
  width: 30px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.28); transition: background .3s ease;
}
.justice-dots button.is-active { background: var(--gold-soft); }
.justice-arrow {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: transparent;
  color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.justice-arrow:hover { background: rgba(255,255,255,.12); border-color: var(--gold-soft); color: var(--gold-soft); }
.justice-arrow:active { transform: scale(.94); }

@media (max-width: 760px) {
  .justice-band { padding: 56px 0; }
  .justice-slides { min-height: 420px; }
  .justice-slide { grid-template-columns: 1fr; gap: 24px; }
  .justice-slide-img img { max-width: 280px; height: 200px; }
}

/* Reduced motion: desliga transições do carrossel */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-bg { background: url("media/hero-alt-poster.jpg") center right / cover no-repeat; }
  .justice-slide { transition: opacity .2s linear; transform: none; }
}


/* =========================================================
   IMAGENS ACOMPANHANDO OS TEXTOS
   ========================================================= */

/* Atuação: imagem à esquerda, cards à direita */
.atuacao-layout {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px;
  align-items: stretch;
}
.atuacao-figure {
  margin: 0; position: relative; overflow: hidden; border-radius: 3px;
  min-height: 100%;
  box-shadow: 0 16px 40px rgba(20,43,69,.12);
}
.atuacao-figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s var(--ease-soft);
}
.atuacao-figure:hover img { transform: scale(1.04); }
.feature-grid-2 { grid-template-columns: 1fr 1fr; }

/* =========================================================
   TRAJETÓRIA — linha do tempo horizontal animada
   ========================================================= */
.timeline-h {
  list-style: none; margin: 0; padding: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative;
}
/* linha-base que conecta os marcos */
.timeline-h::before {
  content: ""; position: absolute; top: 47px; left: 0; right: 0;
  height: 1px; background: var(--line);
}
/* linha dourada que se "desenha" ao revelar */
.timeline-h::after {
  content: ""; position: absolute; top: 47px; left: 0;
  height: 1px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 1.1s cubic-bezier(.16,1,.3,1) .1s;
}
.timeline-h.is-visible::after { width: 100%; }

.tl-item {
  position: relative; padding-top: 72px; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease-out), transform .55s var(--ease-out);
}
.timeline-h.is-visible .tl-item { opacity: 1; transform: translateY(0); }
.timeline-h.is-visible .tl-item:nth-child(1) { transition-delay: .05s; }
.timeline-h.is-visible .tl-item:nth-child(2) { transition-delay: .15s; }
.timeline-h.is-visible .tl-item:nth-child(3) { transition-delay: .25s; }
.timeline-h.is-visible .tl-item:nth-child(4) { transition-delay: .35s; }

/* ponto do marco sobre a linha — navy com anel dourado, centralizado */
.tl-dot {
  position: absolute; top: 40px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--paper-alt); transform: scale(.5);
  transition: transform .5s cubic-bezier(.22,1.4,.36,1);
}
.timeline-h.is-visible .tl-item:nth-child(1) .tl-dot { transition-delay: .12s; }
.timeline-h.is-visible .tl-item:nth-child(2) .tl-dot { transition-delay: .22s; }
.timeline-h.is-visible .tl-item:nth-child(3) .tl-dot { transition-delay: .32s; }
.timeline-h.is-visible .tl-item:nth-child(4) .tl-dot { transition-delay: .42s; }
.timeline-h.is-visible .tl-dot { transform: scale(1); }

.tl-ano {
  display: block; font-family: "Cormorant Garamond", serif; font-weight: 700;
  font-size: 2.1rem; color: var(--navy); line-height: 1; margin-bottom: 10px;
  letter-spacing: .01em;
}
.tl-item h3 { font-size: 1.08rem; margin: 0 0 8px; color: var(--navy-deep); }
.tl-item p { margin: 0 auto; max-width: 230px; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }

/* vertical em telas menores */
@media (max-width: 760px) {
  .timeline-h { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .timeline-h::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline-h::after { top: 0; left: 7px; width: 1px !important; height: 0; background: linear-gradient(180deg, var(--gold), var(--gold-soft)); transition: height 1.6s cubic-bezier(.16,1,.3,1) .2s; }
  .timeline-h.is-visible::after { height: 100%; }
  .tl-item { padding: 0 0 32px 34px; text-align: left; }
  .tl-dot { top: 4px; left: 1px; margin-left: 0; }
  .tl-item p { margin: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-h::after { transition: none; width: 88%; }
  .tl-item, .tl-dot { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   TRAJETÓRIA — linha do tempo premium em SVG (D3.js)
   ========================================================= */
.timeline-d3 {
  margin: 0;
  padding: 8px 0 0;
  position: relative;
}
.timeline-d3 .tl-svg {
  display: block;
  width: 100%;
  overflow: visible;
}

/* Quando o D3 assume, a <ol> vira conteúdo só para leitores de tela */
.timeline-d3.is-enhanced .timeline-h {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Trilho base e linha dourada */
.timeline-d3 .tl-rail {
  stroke: var(--line);
  stroke-width: 2;
}
.timeline-d3 .tl-progress {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(166,124,61,.28));
}

/* Nós e anéis */
.timeline-d3 .tl-ring {
  fill: rgba(166,124,61,.10);
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0;
  transform: scale(.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .5s ease, transform .6s cubic-bezier(.22,1.4,.36,1);
}
.timeline-d3 .tl-node {
  fill: var(--paper-alt);
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0;
  transform: scale(.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .45s ease, transform .6s cubic-bezier(.22,1.4,.36,1), fill .4s ease;
}
.timeline-d3 .tl-g.is-in .tl-ring {
  opacity: 1; transform: scale(1);
}
.timeline-d3 .tl-g.is-in .tl-node {
  opacity: 1; transform: scale(1);
  fill: var(--gold);
}
.timeline-d3 .tl-g:hover .tl-ring {
  fill: rgba(166,124,61,.16);
  transform: scale(1.14);
}

/* Cartão de marco (dentro do foreignObject) */
.timeline-d3 .tl-fo { overflow: visible; }
.timeline-d3 .tl-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  text-align: center;
  padding: 0 6px;
}
.timeline-d3 .tl-card-v { text-align: left; padding: 0; }
.timeline-d3 .tl-g.is-in .tl-card {
  opacity: 1; transform: translateY(0);
}
.timeline-d3 .tl-ano-d3 {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
  font-feature-settings: "onum" 1, "kern" 1;
}
.timeline-d3 .tl-card h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.timeline-d3 .tl-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .timeline-d3 .tl-ano-d3 { font-size: 1.6rem; }
  .timeline-d3 .tl-card p { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-d3 .tl-progress { filter: none; }
  .timeline-d3 .tl-ring,
  .timeline-d3 .tl-node,
  .timeline-d3 .tl-card { transition: none; }
}
