/* Jaqueline Verdi: Quiet Luxury. Design system em identidade/design-system-quiet-luxury.md */
/* Fontes hospedadas no próprio site (licença OFL em assets/fontes/): nenhuma conexão com o Google */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fontes/playfair-display.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fontes/marcellus.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --noite: #090E18;
  --azul: #0C2039;
  --marfim: #F2EBDF;
  --nevoa: #AEB5C0;
  --ouro: #D4AE72;
  --fio: rgb(212 174 114 / .28);

  --titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --fonte: "Marcellus", Georgia, "Times New Roman", serif;

  --margem: clamp(1.25rem, 5.5vw, 5rem);
  --respiro: clamp(6rem, 12vw, 11rem);
  --largura: 96rem;
  --lateral: max(var(--margem), calc((100% - var(--largura)) / 2));
  --suave: .4s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background-color: var(--noite); }

body {
  margin: 0;
  background-color: var(--noite);
  color: var(--marfim);
  font-family: var(--fonte);
  font-size: 1.125rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.65;
}

h1, h2, h3, h4, blockquote {
  margin: 0;
  font-family: var(--titulo);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  letter-spacing: -.012em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; }
/* A Marcellus desenha 1 e 0 como I e O: números sempre na Playfair */
.n { font-family: var(--titulo); font-variant-numeric: lining-nums; }
.invisivel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--marfim); outline-offset: 4px; }
::selection { background: var(--ouro); color: var(--noite); }

.pular {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 5;
  padding: .75rem 1.25rem;
  background: var(--marfim);
  color: var(--noite);
  transform: translateY(-300%);
}
.pular:focus { transform: none; }

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .75rem 2.25rem;
  border-radius: 999px;
  background-color: var(--ouro);
  color: var(--noite);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--suave);
}
.botao:hover { background-color: var(--marfim); }


/* Rótulo de seção, como no portfólio: fio curto em ouro antes do nome */
.rotulo {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-block-end: 1.5rem;
  color: var(--ouro);
  font-size: 1rem;
}
.rotulo::before { content: ""; flex: none; width: 2.5rem; height: 1px; background: var(--ouro); }
.numero {
  color: var(--ouro);
  font-family: var(--titulo);
  font-variant-numeric: lining-nums;
}

/* Blocos que abrem: o título com o sinal de mais. A abertura suave fica em abrir.js */
.abre summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding-block: 1rem;
  list-style: none;
  cursor: pointer;
  transition: color var(--suave);
}
.abre summary::-webkit-details-marker { display: none; }
.abre summary:hover { color: var(--ouro); }
/* sinal de mais, que vira menos quando o bloco está aberto */
.abre summary::after {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background:
    linear-gradient(var(--ouro), var(--ouro)) center / 100% 1px no-repeat,
    linear-gradient(var(--ouro), var(--ouro)) center / 1px 100% no-repeat;
  transition: background-size var(--suave);
}
.abre[open]:not(.fechando) summary::after { background-size: 100% 1px, 1px 0; }
.abre__corpo { display: flow-root; } /* a altura inclui as margens de dentro, para a animação não dar saltos */

/* Abertura: o vídeo do logo como banner ao fundo, o título à esquerda e a Jaqueline à frente */
.palco {
  /* título e apoio formam um bloco: o apoio começa logo abaixo das três linhas do título */
  --titulo-topo: clamp(7.5rem, 23svh, 13rem);
  --titulo-tam: min(4.9vw, 9.5svh);
  position: relative;
  height: clamp(46rem, 100svh, 64vw);
  overflow: clip;
  background-color: var(--noite);
}
.palco__video {
  position: absolute;
  z-index: 0;
  top: var(--video-y, 50%);
  left: var(--video-x, 76%);
  width: auto;
  height: var(--video-alt, 110%);
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--noite);
  opacity: .8;
  transform: translate(-50%, -50%);
  /* as bordas do vídeo somem no fundo, sem moldura */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}
/* Véu à esquerda, para o título ler bem sobre o vídeo */
.palco::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, var(--noite) 0%, rgb(9 14 24 / .85) 28%, rgb(9 14 24 / .25) 52%, rgb(9 14 24 / 0) 68%);
  pointer-events: none;
}
.palco__pessoa {
  position: absolute;
  right: 0;
  bottom: -6%; /* desce a imagem para a cabeça ficar abaixo do menu; a base já some no escuro */
  width: auto;
  height: 100%;
}
.palco__titulo {
  position: absolute;
  z-index: 1;
  top: var(--titulo-topo);
  left: var(--lateral);
  font-size: var(--titulo-tam);
  line-height: 1.08;
  letter-spacing: -.018em;
}
.palco__titulo span { display: block; }
.palco__pessoa { z-index: 2; }

.topo {
  position: absolute;
  z-index: 3;
  inset: 0 var(--lateral) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  min-height: 2.75rem;
  font-family: var(--titulo);
  font-size: 1.3125rem;
  text-decoration: none;
  white-space: nowrap;
}
.marca__logo { flex: none; width: auto; height: 3.25rem; }
.menu { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: underline transparent 1px;
  text-underline-offset: .4em;
  transition: text-decoration-color var(--suave);
}
.menu a:hover { text-decoration-color: var(--ouro); }
.menu-botao { display: none; }

.palco__apoio {
  position: absolute;
  z-index: 3;
  left: var(--lateral);
  top: calc(var(--titulo-topo) + 3 * 1.08 * var(--titulo-tam) + clamp(2rem, 4.5svh, 3rem));
  display: grid;
  justify-items: start;
  gap: 2rem;
  max-width: min(34rem, 44vw);
}
.palco__sub {
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--fio);
  color: var(--nevoa);
  font-family: var(--titulo);
  font-size: clamp(1.25rem, 1.85vw, 1.75rem);
  line-height: 1.35;
  text-wrap: balance;
}

/* Quem sou */
.quem {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(2.5rem, 6vw, 7rem);
  padding: var(--respiro) var(--lateral);
  background-color: var(--azul);
}
.quem > .rotulo,
.quem > h2 { grid-column: 1 / -1; }
.quem > h2 {
  max-width: 14em;
  margin-block-end: clamp(3rem, 6vw, 6rem);
  font-size: clamp(2.375rem, 5vw, 5.25rem);
  line-height: 1.08;
}
.quem__foto {
  position: sticky;
  top: 2.5rem;
  align-self: start;
}
.quem__foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  outline: 1px solid var(--fio);
  outline-offset: .875rem;
}
.quem__abertura {
  font-variant-numeric: lining-nums;
  font-family: var(--titulo);
  font-size: clamp(1.5rem, 2.3vw, 2.125rem);
  line-height: 1.3;
}
.quem__trajetoria { margin-block-start: clamp(2rem, 3.5vw, 3rem); }
.quem__abertura em, .quem__trajetoria em { color: var(--ouro); font-style: normal; }
.quem__trajetoria li {
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  border-block-start: 1px solid var(--fio);
  font-family: var(--titulo);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-variant-numeric: lining-nums;
  line-height: 1.4;
  text-wrap: pretty;
}
.quem__trajetoria li:last-child { border-block-end: 1px solid var(--fio); }
.quem__hoje {
  margin-block-start: 2rem;
  color: var(--ouro);
  font-family: var(--titulo);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.35;
}
.quem__dados {
  margin: clamp(2rem, 3.5vw, 3rem) 0 0;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--ouro);
}
.quem__dados dt { margin-block-end: .75rem; color: var(--ouro); font-family: var(--titulo); font-size: 1.25rem; }
.quem__dados dd { margin: 0; text-wrap: pretty; }
/* Bloco que abre: formação e demais detalhes da trajetória */
.quem__mais { margin-block-start: clamp(2rem, 3.5vw, 3rem); border-block: 1px solid var(--fio); }
.quem__mais summary { font-family: var(--titulo); font-size: 1.25rem; line-height: 1.3; }
.quem__detalhes { padding-block: .5rem 2rem; }
.quem__detalhes li { padding-block: 1.125rem; border-block-start: 1px solid var(--fio); text-wrap: pretty; }
.quem__detalhes .quem__dados { margin-block-start: 1rem; }

/* Método Integra: primeiro a animação (.visao), depois os três passos (.metodo__passos).
   Na animação, Negócio, Governança e Direito se encontram com a rolagem e formam o logo, como no vídeo.
   Sem script, ou para quem prefere menos movimento, o logo já aparece pronto. */
.visao { --q: 1; }
.visao__fixo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  column-gap: 2rem;
  min-height: 100svh;
  padding: var(--respiro) var(--lateral);
  overflow: clip;
}
.com-movimento .visao { height: 320svh; }
.com-movimento .visao__fixo { position: sticky; top: 0; height: 100svh; min-height: 0; padding-block: 2rem; }
.visao__titulo {
  font-size: clamp(2rem, min(max(4.6vw, 2.375rem), 9.5svh), 4.75rem); /* em janelas baixas, acompanha a altura */
  line-height: 1.08;
}
.visao__titulo span { display: block; }
.visao__resto {
  color: var(--ouro);
  color: color-mix(in srgb, var(--ouro) calc(var(--q) * 100%), var(--marfim));
  text-shadow: 0 0 .9em rgb(212 174 114 / calc(.28 * var(--q)));
}
.visao__linhas {
  margin-block-start: clamp(1rem, min(max(3.5vw, 1.75rem), 5.5svh), 3rem);
  font-family: var(--titulo);
  font-size: clamp(1.125rem, min(max(1.9vw, 1.25rem), 4svh), 1.75rem);
  line-height: 1.4;
}
.visao__linhas span { display: block; }
.visao__linhas em { color: var(--ouro); font-style: normal; }
.visao__fecho {
  max-width: 26em;
  margin-block-start: clamp(.75rem, min(max(2.5vw, 1.25rem), 3.5svh), 2rem);
  color: var(--ouro);
  opacity: calc(.3 + .7 * var(--q));
  font-size: clamp(1rem, min(max(1.4vw, 1.0625rem), 3svh), 1.25rem);
  text-wrap: pretty;
}

/* O palco reproduz o recorte 520 140 880 780 do quadro do vídeo */
.encontro {
  position: relative;
  justify-self: center;
  width: min(100%, calc(84svh * 880 / 780));
  aspect-ratio: 880 / 780;
}
.encontro__aneis,
.encontro__rotulos {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* letras e logo na posição exata do logo no quadro final do vídeo */
.encontro__letra,
.encontro__logo {
  position: absolute;
  left: 8.068%;
  top: 5.641%;
  width: 83.75%;
  height: auto;
}
.encontro__letra { display: none; opacity: 0; }
.encontro__rotulos text {
  fill: var(--marfim);
  font-family: var(--titulo);
  font-size: 30px;
  text-anchor: middle;
  dominant-baseline: central;
}
/* o desenho dos anéis tem folga em volta do palco, para as bordas não serem cortadas */
.encontro__aneis {
  inset: auto;
  left: -2.2727%;
  top: -2.5641%;
  width: 104.5455%;
  height: 105.1282%;
}
.com-movimento .encontro__aneis,
.com-movimento .encontro__rotulos,
.com-movimento .encontro__letra { display: block; }
.com-movimento .encontro__logo { opacity: 0; }

/* Desafios */
.desafios {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr;
  column-gap: 2rem;
  padding: var(--respiro) var(--lateral);
}
.desafios > .rotulo { grid-column: 1; grid-row: 1; }
.desafios > h2 {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 2.5rem;
  max-width: 10em;
  font-size: clamp(2.25rem, 4.2vw, 4.25rem);
  line-height: 1.1;
}
.desafios__lista { grid-column: 2; grid-row: 1 / span 2; }
.desafios__lista li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  border-block-start: 1px solid var(--fio);
  font-family: var(--titulo);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.desafios__lista li:last-child { border-block-end: 1px solid var(--fio); }
.desafios__lista .numero { font-size: .8em; line-height: 1.6; }

/* Como posso ajudar: cada frente é um cartão. Com a rolagem, o cartão seguinte sobe por cima do anterior,
   que encolhe e fica como uma aba com o nome da frente. movimento.js calcula a posição de cada cartão e
   --cobre (de 0 a 1, quanto o seguinte já cobriu). Sem script, ou para quem prefere menos movimento,
   os cartões ficam um embaixo do outro. */
.frentes { padding: var(--respiro) var(--lateral); background-color: var(--azul); }
.pilha {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
}
.frente {
  --cobre: 0;
  --folga: clamp(1.5rem, 4.4vw, 4.25rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--folga);
  border: 1px solid var(--fio);
  border-radius: 1.5rem;
  background:
    radial-gradient(70% 85% at 0% 100%, rgb(212 174 114 / .17), rgb(212 174 114 / 0) 70%),
    linear-gradient(165deg, #15304F 0%, #0E2440 46%, #0A192D 100%);
  transform-origin: 50% 0;
}
.frente + .frente {
  background:
    radial-gradient(70% 85% at 100% 100%, rgb(212 174 114 / .15), rgb(212 174 114 / 0) 70%),
    linear-gradient(195deg, #15304F 0%, #0E2440 46%, #0A192D 100%);
}
/* um dos anéis do logo, em fio, no canto do cartão */
.frente::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -9rem;
  top: -21rem;
  width: 34rem;
  aspect-ratio: 1;
  border: 1px solid rgb(212 174 114 / .26);
  border-radius: 50%;
  pointer-events: none;
}
.frente + .frente::before { right: -14rem; top: -25rem; width: 40rem; }
/* o cartão coberto escurece um pouco */
.frente::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background-color: var(--noite);
  opacity: calc(var(--cobre) * .45);
  pointer-events: none;
}
/* título e subtítulo da frente em cima, os serviços logo abaixo */
.frente__corpo {
  display: grid;
  row-gap: clamp(1.75rem, 3.2vw, 2.75rem);
  opacity: clamp(0, calc((1 - var(--cobre)) / .45), 1); /* some só no fim, quando o seguinte já quase cobriu */
}
/* A aba: o nome da frente na faixa que fica à mostra quando o cartão seguinte cobre este */
.frente__aba {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: none;
  align-items: center;
  height: 3.5rem;
  padding-inline: var(--folga);
  font-family: var(--titulo);
  font-size: 1.125rem;
  line-height: 1.2;
  opacity: clamp(0, calc((var(--cobre) - .7) / .3), 1);
  pointer-events: none;
}
/* em coluna flexível, as margens de um cartão e do seguinte não se fundem */
.pilha--ativa { display: flex; flex-direction: column; gap: 0; margin-block-end: calc(-1 * var(--pausa, 0px)); } /* a pausa não aumenta o espaço até a seção seguinte */
.pilha--ativa::after { content: ""; flex: none; height: var(--pausa, 0px); } /* a pausa da pilha completa, depois do último cartão */
.pilha--ativa .frente {
  position: sticky;
  top: var(--topo, 2rem);
  margin-block: var(--antes, 0px) var(--depois, 0px);
  transform: scale(calc(1 - .05 * var(--cobre)));
}
.pilha--ativa .frente__aba { display: flex; }
.frente--coberta .frente__corpo { pointer-events: none; }
.frente--coberta .frente__aba { pointer-events: auto; cursor: pointer; }
.frente--coberta .frente__aba:hover { color: var(--ouro); }
.frente__cabeca h3 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.1;
}
.frente__cabeca p { max-width: 34em; margin-block-start: .875rem; color: var(--ouro); }
.frente .servico__detalhes > p { max-width: 46em; } /* com o serviço na largura do cartão, a linha não fica longa demais */
.servico { --recuo: 3.25rem; border-block-start: 1px solid var(--fio); }
.servico:last-child { border-block-end: 1px solid var(--fio); }
.servico summary { align-items: first baseline; gap: 0; padding-block: clamp(1.25rem, 2vw, 1.75rem); }
.servico summary::after { align-self: center; margin-inline-start: 1.5rem; }
.servico .numero { flex: none; width: var(--recuo); font-size: 1.125rem; }
.servico h4 {
  flex: 1;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.22;
}
.servico__detalhes { padding: .25rem 0 clamp(2rem, 3vw, 2.5rem) var(--recuo); }
.servico p + p { margin-block-start: .875rem; }
.servico__partes {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
}
.servico__partes > div { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--ouro); }
.servico__partes dt { margin-block-end: .375rem; color: var(--ouro); font-family: var(--titulo); font-size: 1.25rem; }
.servico__partes dd { margin: 0; color: var(--nevoa); }

/* Para quem */
.para-quem {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr;
  column-gap: 2rem;
  padding: var(--respiro) var(--lateral) 0;
  background-color: var(--azul);
}
.para-quem > .rotulo { grid-column: 1; grid-row: 1; }
.para-quem > h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 9em;
  font-size: clamp(2.25rem, 4.2vw, 4.25rem);
  line-height: 1.1;
}
.para-quem__lista { grid-column: 2; grid-row: 1 / span 2; }
.para-quem__lista li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  padding-block: clamp(1.25rem, 2.2vw, 2rem);
  border-block-start: 1px solid var(--fio);
  font-family: var(--titulo);
  font-size: clamp(1.5rem, 2.5vw, 2.375rem);
  line-height: 1.2;
  text-wrap: balance;
}
.para-quem__lista li:last-child { border-block-end: 1px solid var(--fio); }
.para-quem__lista .numero { font-size: max(1.125rem, .55em); line-height: 2.1; }

/* Os três passos do Método Integra, logo abaixo da animação */
.metodo__passos { padding: 2rem var(--lateral) var(--respiro); }
.metodo__etapas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  text-align: center;
}
.metodo__etapas li { position: relative; display: grid; justify-items: center; align-content: start; }
/* Cada passo surge com a rolagem (--p, de 0 a 1) e o fio se desenha até o anel seguinte (--c).
   Os valores vêm de movimento.js; sem eles, tudo aparece pronto. */
.metodo__etapas li > * {
  opacity: var(--p, 1);
  transform: translateY(calc((1 - var(--p, 1)) * 1.75rem));
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.metodo__etapas .metodo__anel { transform: scale(calc(.8 + .2 * var(--p, 1))); }
.metodo__etapas li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: calc(50% + 2.5rem);
  width: calc(100% + 2rem - 5rem); /* até o anel seguinte: largura da coluna e do vão, menos um anel */
  height: 1px;
  background: var(--ouro);
  transform: scaleX(var(--c, 1));
  transform-origin: 0 50%;
  transition: transform .25s ease-out;
}
.metodo__anel {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin-block-end: 1.75rem;
  border: 1px solid var(--ouro);
  border-radius: 50%;
  background-color: var(--noite);
  color: var(--ouro);
  font-family: var(--titulo);
  font-size: 1.375rem;
  font-variant-numeric: lining-nums;
}
.metodo__etapas h3 { margin-block-end: .75rem; font-size: clamp(1.625rem, 2.4vw, 2.25rem); }
.metodo__etapas p { max-width: 20em; color: var(--nevoa); }

/* Como podemos começar: segue no mesmo fundo de "Para quem" */
.comecar { padding: var(--respiro) var(--lateral); background-color: var(--azul); }
.comecar__formas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.comecar__formas li { padding-block-start: 1.25rem; border-block-start: 1px solid var(--ouro); }
.comecar__formas h3 { margin-block-end: .625rem; color: var(--ouro); font-size: clamp(1.5rem, 2vw, 1.875rem); }

/* Contato */
.contato {
  display: grid;
  justify-items: start;
  padding: var(--respiro) var(--lateral);
}
.contato h2 {
  max-width: 12em;
  color: var(--ouro);
  font-size: clamp(2.5rem, 5.2vw, 5.5rem);
  line-height: 1.08;
}
.contato__texto {
  max-width: 38em;
  margin-block-start: clamp(2rem, 3.5vw, 3rem);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
}
.contato .botao { margin-block-start: clamp(2rem, 3.5vw, 3rem); }
.canais {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.5rem 2rem;
  width: 100%;
  margin-block-start: clamp(3rem, 5vw, 5rem);
}
.canais li {
  display: grid;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--fio);
}
.canais span { color: var(--nevoa); font-size: 1rem; }
.canais a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
  font-family: var(--titulo);
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-variant-numeric: lining-nums;
  text-decoration: underline transparent 1px;
  text-underline-offset: .3em;
  transition: text-decoration-color var(--suave);
}
.canais a:hover { text-decoration-color: var(--ouro); }

/* Rodapé */
.rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 3rem;
  padding: 2rem var(--lateral);
  border-block-start: 1px solid var(--fio);
  color: var(--nevoa);
  font-size: 1rem;
}
.rodape__logo { width: auto; height: 3rem; }
.rodape__oab { margin-inline-start: auto; }
.rodape__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: underline var(--fio) 1px;
  text-underline-offset: .4em;
  transition: text-decoration-color var(--suave);
}
.rodape__link:hover { text-decoration-color: var(--ouro); }

/* Página de texto: Política de Privacidade */
.topo--pagina { position: relative; inset: auto; padding-inline: var(--lateral); }
.documento { padding: clamp(3rem, 7vw, 6rem) var(--lateral) var(--respiro); }
.documento > * { max-width: 44rem; }
.documento h1 { font-size: clamp(2.375rem, 5vw, 4.5rem); line-height: 1.08; }
.documento__abertura { margin-block-start: 2rem; font-size: 1.25rem; }
.documento h2 {
  margin-block: clamp(2.5rem, 4.5vw, 3.5rem) 1rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--fio);
  color: var(--ouro);
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  line-height: 1.2;
}
.documento p + p, .documento ul + p, .documento p + ul { margin-block-start: 1rem; }
.documento ul { display: grid; gap: .875rem; }
.documento li { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--ouro); text-wrap: pretty; }
.documento strong { color: var(--ouro); font-weight: 400; }
.documento a { overflow-wrap: anywhere; text-decoration-color: var(--ouro); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.documento .documento__data { margin-block-start: 2rem; color: var(--nevoa); }

/* Em telas largas o título não pode avançar a ponto de esconder letras atrás dela */
@media (min-width: 1600px) {
  .palco { --titulo-tam: min(4.6vw, 9.5svh, 6.25rem); }
}

/* No computador os cartões têm a mesma altura, a do maior com os serviços fechados (movimento.js) */
@media (min-width: 900px) {
  .pilha--ativa .frente { min-height: var(--alto, 0px); }
  /* as três partes da Consultoria Jurídico-Societária lado a lado, aproveitando a largura do cartão */
  .servico__partes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .canais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palco { --titulo-tam: min(4.3vw, 9.5svh); }
  .palco__apoio { max-width: min(30rem, 42vw); }
}

/* Tablet e celular */
@media (max-width: 899.98px) {
  body { font-size: 1.0625rem; }

  .palco {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .palco > * { grid-column: 1; } /* o vídeo divide linhas com o título e a foto */
  .topo { position: relative; inset: auto; grid-row: 1; padding-inline: var(--margem); padding-block: 1rem; }
  .palco__titulo {
    position: relative;
    grid-row: 2;
    top: auto;
    left: auto;
    padding-inline: var(--margem);
    padding-block-start: 1.5rem;
    font-size: clamp(2.125rem, 9.4vw, 4.5rem);
    text-align: center;
  }
  .palco__titulo span { display: inline; }
  .palco__video {
    position: relative;
    grid-row: 2 / 4;
    grid-column: 1;
    top: auto;
    left: auto;
    align-self: center;
    justify-self: start;
    width: var(--video-larg, 190vw);
    height: auto;
    margin-inline-start: calc(50% - var(--video-larg, 190vw) / 2);
    transform: none;
  }
  .palco::before { background: linear-gradient(180deg, var(--noite) 0, rgb(9 14 24 / .7) 14%, rgb(9 14 24 / 0) 32%); }
  .palco__pessoa {
    position: relative;
    grid-row: 3;
    grid-column: 1;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: 118vw;
    max-width: none;
    height: auto;
    margin-block-start: 1rem;
    margin-inline-end: -7.2vw;
  }
  .palco__apoio {
    position: relative;
    grid-row: 4;
    top: auto;
    left: auto;
    justify-self: center;
    justify-items: center;
    max-width: 38rem;
    margin-block-start: -14vw;
    padding: 0 var(--margem) 3rem;
    text-align: center;
  }
  .palco__sub { padding-block-start: 1.5rem; }

  .visao__fixo { grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 1rem; }
  .com-movimento .visao__fixo { padding-block: 1.5rem; }
  .visao__texto { display: contents; }
  .visao .rotulo { order: 1; margin-block-end: 0; }
  .visao__titulo { order: 2; font-size: clamp(2rem, 8.4vw, 3.25rem); }
  .encontro { order: 3; width: min(100%, calc(36svh * 880 / 780)); }
  .encontro__rotulos text { font-size: 40px; } /* o palco é menor: os nomes crescem para seguir legíveis */
  .visao__linhas { order: 4; margin-block-start: 0; font-size: clamp(1.0625rem, 4.4vw, 1.375rem); text-align: center; }
  .visao__fecho { order: 5; justify-self: center; margin-block-start: 0; font-size: 1rem; text-align: center; text-wrap: balance; }

  .quem, .desafios, .para-quem { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  /* centralizada, com espaço para a moldura (afastada .875rem da foto) caber na tela */
  .quem__foto { position: static; justify-self: center; width: min(calc(100% - 1.75rem), 26rem); margin-block: .875rem 3.5rem; }
  .desafios > .rotulo, .desafios > h2, .desafios__lista,
  .para-quem > .rotulo, .para-quem > h2, .para-quem__lista { grid-column: 1; grid-row: auto; }
  .desafios > h2 { position: static; margin-block-end: 2.5rem; }
  .para-quem > h2 { margin-block-end: 2.5rem; }
  .frente { border-radius: 1.25rem; }
  .frente__corpo { row-gap: 1.75rem; }
  .frente__aba { height: 3rem; font-size: 1rem; }
  .frente::before { display: none; } /* no cartão estreito, o anel passaria por trás do texto */
  .comecar__formas, .canais { grid-template-columns: minmax(0, 1fr); }

  .metodo__etapas { grid-template-columns: minmax(0, 1fr); text-align: start; }
  .metodo__etapas li:not(:last-child)::after { top: 5rem; bottom: -2.5rem; left: 2.5rem; width: 1px; height: auto; transform: scaleY(var(--c, 1)); transform-origin: 50% 0; }
  .metodo__etapas li { grid-template-columns: 5rem minmax(0, 1fr); column-gap: 1.5rem; justify-items: start; }
  .metodo__anel { grid-row: span 2; margin: 0; }
  .metodo__etapas h3 { align-self: end; margin-block: .5rem .375rem; }
}

/* O menu desce para baixo da marca; no celular, em duas linhas de dois */
@media (max-width: 799.98px) {
  .topo { flex-wrap: wrap; gap: 0; }
  .menu { flex: 1 0 100%; justify-content: space-between; }
}

/* Celular: o botão ao lado da marca abre os links em tela cheia (menu.js) */
@media (max-width: 799.98px) {
  .com-menu .topo:not(.topo--pagina) { flex-wrap: nowrap; }
  .com-menu .menu-botao {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline-end: -.5rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-botao span { position: relative; width: 1.75rem; height: .5rem; }
  .menu-botao span::before,
  .menu-botao span::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: var(--ouro);
    transition: transform var(--suave);
  }
  .menu-botao span::before { top: 0; }
  .menu-botao span::after { bottom: 0; }
  .menu-aberto .menu-botao span::before { transform: translateY(calc(.25rem - .5px)) rotate(45deg); }
  .menu-aberto .menu-botao span::after { transform: translateY(calc(.5px - .25rem)) rotate(-45deg); }

  .com-menu .topo .menu[id] {
    position: fixed;
    z-index: -1; /* atrás da marca e do botão, que seguem visíveis */
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: 0;
    padding: 6rem var(--margem) 3rem;
    overflow-y: auto;
    background-color: var(--noite);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--suave), visibility var(--suave);
  }
  .com-menu .menu[id] a {
    min-height: 4.25rem;
    padding-block: .875rem;
    border-block-start: 1px solid var(--fio);
    font-family: var(--titulo);
    font-size: clamp(1.625rem, 7.6vw, 2.25rem);
    line-height: 1.15;
    text-decoration: none;
  }
  .com-menu .menu[id] a:last-child { border-block-end: 1px solid var(--fio); }
  .com-menu .menu[id] a:active { color: var(--ouro); }
  .menu-aberto { overflow: hidden; }
  .menu-aberto .topo { z-index: 10; }
  .menu-aberto .topo .menu[id] { visibility: visible; opacity: 1; }
  .topo--pagina .menu { flex: 0 1 auto; }
}

/* Celular deitado: os quatro links cabem sem rolar */
@media (max-width: 799.98px) and (max-height: 479.98px) {
  .com-menu .topo .menu[id] { padding-block: 5.5rem 1rem; }
  .com-menu .menu[id] a { min-height: 3.25rem; padding-block: .5rem; font-size: 1.5rem; }
}

@media (max-width: 579.98px) {
  .menu:not(.topo--pagina .menu) { display: grid; grid-template-columns: auto auto; gap: 0 1.5rem; }
  .rodape__oab { margin-inline-start: 0; }
}

/* Telas baixas: o palco diminui mais, e os nomes acompanham */
@media (max-width: 899.98px) and (max-height: 599.98px) {
  .encontro__rotulos text { font-size: 46px; }
  .com-movimento .visao__fixo { row-gap: .625rem; padding-block: .75rem; }
  .visao__titulo { font-size: clamp(1.5rem, 8vw, 2.25rem); }
  .encontro { width: min(100%, calc(31svh * 880 / 780)); }
  .visao__linhas { font-size: clamp(1rem, 4.4vw, 1.25rem); }
  .visao__fecho { font-size: .9375rem; line-height: 1.5; }
}

/* Celular deitado: o texto ao lado da animação, como no computador */
@media (max-height: 479.98px) and (orientation: landscape) {
  .visao__fixo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 1.5rem; }
  .com-movimento .visao__fixo { row-gap: 0; padding-block: .75rem; }
  .visao__texto { display: block; }
  .visao .rotulo { margin-block-end: .375rem; font-size: .875rem; }
  .visao__titulo { font-size: clamp(1.375rem, 8svh, 2.25rem); }
  .visao__linhas { margin-block-start: .5rem; font-size: clamp(.9375rem, 4.4svh, 1.125rem); text-align: start; }
  .visao__fecho { margin-block-start: .5rem; font-size: clamp(.875rem, 3.9svh, 1rem); line-height: 1.45; text-align: start; text-wrap: pretty; }
  .encontro { width: min(100%, calc(84svh * 880 / 780)); }
  .encontro__rotulos text { font-size: 44px; }
}

@media (max-width: 479.98px) {
  .botao { width: 100%; }
  .servico { --recuo: 2.5rem; }
  .servico summary::after { margin-inline-start: 1rem; }
  .servico__detalhes { padding-inline-start: 0; } /* o texto usa a largura toda */
}

/* Movimento: a entrada da abertura. O vídeo da abertura e o encontro dos anéis ficam em movimento.js */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes surgir {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .palco__video { animation: surgir 1.4s ease both; }
  .palco__titulo { animation: surgir 1s ease .15s both; }
  .palco__pessoa { animation: surgir 1.2s ease .3s both; }
  .palco__apoio { animation: surgir 1s ease .6s both; }
}
