/* Dos Anjos Sociedade de Advogados — folha do site

   Papel, tinta e carimbo. O texto inteiro é impresso numa tinta só, violeta
   quase preta; a cor de carimbo aparece onde há algo novo ou algo a fazer:
   os tributos que entram na reforma, os links, o foco do teclado.

   Grade de 12 colunas. Os títulos de seção ficam no trilho (colunas 1–3) e
   todo texto corrido começa na coluna 4, da abertura ao rodapé. */

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("fontes/SofiaSansExtraCondensed.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fontes/Literata.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fontes/Literata-Italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --papel: #F5F5F1;
  --tinta: #25223E;
  --carimbo: #4C3A9A;
  --lavagem: #E8E5F2;
  --lapis: #6B6878;
  --barra-velha: #83808F; /* 3,5:1 sobre o papel: barra é informação, precisa de 3:1 */
  --regua: #D5D2DC;

  --grot: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --texto: "Literata", Georgia, serif;

  --vao: 24px;
  --largura: 1280px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scrollbar-gutter: stable; } /* o menu esconde a barra; a largura não pode mudar */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  /* rede de segurança: nada que entre animado (o carimbo começa maior) pode alargar a página */
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: #D9D3EE; }

p { margin: 0 0 1em; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 4; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: normal; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: rgb(37 34 62 / .38);
}
a:hover { color: var(--carimbo); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--carimbo); outline-offset: 3px; }

.sigla { font-variant-caps: all-small-caps; letter-spacing: .03em; text-decoration: none; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.a-confirmar { font-style: italic; color: var(--lapis); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.pular {
  position: absolute; left: 16px; top: -60px; z-index: 2;
  background: var(--tinta); color: var(--papel); padding: 8px 14px;
}
.pular:focus { top: 12px; }

/* ── Grade ─────────────────────────────────────────────── */

.faixa {
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.secao,
.rodape {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--vao);
  margin-top: 136px;
}
.secao::before {
  content: "";
  grid-column: 1 / -1;
  border-top: 1px solid var(--regua);
  margin-bottom: 26px;
}
.trilho { grid-column: 1 / span 3; padding-right: 8px; }
.corpo  { grid-column: 4 / -1; min-width: 0; }

.trilho h2 {
  font-family: var(--grot);
  font-weight: 460;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: .005em;
  margin-bottom: 14px;
}
.trilho p { font-size: 15px; line-height: 1.5; color: var(--lapis); max-width: 19em; }

/* ── Cabeçalho ─────────────────────────────────────────── */

.topo {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  color: var(--tinta);
}
.js .topo { position: fixed; transition: background-color .35s, color .35s, box-shadow .35s; }
.topo.sobre { color: var(--papel); }
.topo.solido { background: var(--papel); box-shadow: 0 1px 0 var(--regua); }
.topo .faixa {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 26px;
  padding-bottom: 18px;
}
.marca {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.marca:hover { color: inherit; }
.topo.sobre .marca-nome rect { fill: #B9AEEA; }
.marca-nome { display: block; width: 145px; height: 34px; } /* assinatura: a cauda do j desce abaixo da linha de base */
.marca-desc {
  font-style: italic;
  font-size: 15px;
  line-height: 1;
  opacity: .72;
  padding-bottom: 10px;
}
.topo ul { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-bottom: 1px; }
.topo nav a {
  font-family: var(--grot);
  font-size: 21px;
  font-weight: 470;
  letter-spacing: .01em;
  text-decoration: none;
}
.topo nav a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }

.menu-botao {
  display: none;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--grot);
  font-size: 21px;
  font-weight: 470;
  padding: 4px 0;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: var(--tinta);
  color: var(--papel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px clamp(16px, 4vw, 48px) 40px;
}
.menu[hidden] { display: none; }
.menu { overflow-y: auto; overscroll-behavior: contain; }
.menu ul { display: grid; gap: 4px; }
.menu nav a {
  font-family: var(--grot);
  font-weight: 290;
  font-size: clamp(44px, 13vw, 72px);
  line-height: 1.02;
  text-decoration: none;
}
.menu nav a:hover { color: #B9AEEA; }
.menu-pe { font-size: 15px; opacity: .72; margin: 0; font-variant-numeric: lining-nums; }
.menu-aberto .topo { color: var(--papel); background: transparent; box-shadow: none; }

/* ── Abertura em vídeo ──────────────────────────────────
   O quadro nasce pequeno entre as cantoneiras do carimbo e se abre
   até a tela inteira; depois, na rolagem, o vídeo desce e escurece. */

.heroi {
  --cx: clamp(16px, 2.4vw, 34px);
  --ct: 100px;
  --cb: 30px;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background: var(--tinta);
  color: var(--papel);
  overflow: hidden;
}
.heroi-quadro {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--tinta);
  clip-path: inset(0 round 0);
  will-change: clip-path;
}
.heroi-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.heroi-gradiente {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(37 34 62 / .84) 0%, rgb(37 34 62 / .5) 42%, rgb(37 34 62 / 0) 72%),
              linear-gradient(to right, rgb(37 34 62 / .35), rgb(37 34 62 / 0) 55%),
              linear-gradient(to bottom, rgb(37 34 62 / .45), rgb(37 34 62 / 0) 22%);
}
.heroi-sombra, .heroi-veu { position: absolute; inset: 0; background: var(--tinta); opacity: 0; }

.canto {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0 solid var(--papel);
  pointer-events: none;
}
.canto-no { top: var(--ct); left: var(--cx); border-top-width: 2px; border-left-width: 2px; }
.canto-ne { top: var(--ct); right: var(--cx); border-top-width: 2px; border-right-width: 2px; }
.canto-so { bottom: var(--cb); left: var(--cx); border-bottom-width: 2px; border-left-width: 2px; }
.canto-se { bottom: var(--cb); right: var(--cx); border-bottom-width: 2px; border-right-width: 2px; }

.heroi-conteudo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding-bottom: clamp(64px, 10vh, 104px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.heroi h1 {
  font-family: var(--grot);
  font-weight: 290;
  font-size: clamp(50px, 10.4vw, 156px);
  line-height: .9;
  letter-spacing: -.012em;
  margin-left: -.035em; /* o T alinha pelo traço, não pela caixa */
}
.heroi h1 .linha { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.heroi h1 .linha > span { display: block; }
.anima [data-heroi-linha] { transform: translateY(110%); } /* o GSAP zera y e assume com yPercent */
.anima .canto { visibility: hidden; }

.heroi-pausa {
  flex: none;
  border: 0;
  background: none;
  color: inherit;
  opacity: .75;
  font-family: var(--texto);
  font-style: italic;
  font-size: 14px;
  padding: 6px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  cursor: pointer;
}
.heroi-pausa:hover { opacity: 1; }

.apresentacao { padding-top: clamp(96px, 14vh, 150px); }

.abertura-pe {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--vao);
}
.lide { grid-column: 4 / span 7; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.42; hyphens: manual; }
.abertura-links {
  grid-column: 4 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-size: 19px;
  margin: 14px 0 0;
}

/* ── A reforma, ano a ano ──────────────────────────────── */

.quadro { position: relative; }
.quadro-trilha {
  position: absolute;
  left: 24%; right: 0; top: 0;
  height: 2px;
  background: var(--regua);
  opacity: 0;
  transition: opacity .3s;
}
.quadro-trilha span { display: block; height: 100%; background: var(--carimbo); transform-origin: 0 50%; transform: scaleX(0); }
.quadro-trilha { z-index: 2; }
/* a faixa do ano escolhido desliza por trás das colunas, em vez de saltar */
.quadro-faixa {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0;
  background: var(--lavagem);
  pointer-events: none;
  will-change: transform;
}
.quadro table { position: relative; z-index: 1; }
.fixo .quadro-trilha { opacity: 1; }
.fixo .quadro td { --alt: 36px; height: 50px; }
.fixo .quadro thead button { min-height: 52px; }
.fixo .quadro tr.grupo th { padding-top: 14px; }

.quadro table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: lining-nums tabular-nums;
}
.quadro thead td { width: 24%; }

.quadro thead th { padding: 0; font-weight: normal; vertical-align: bottom; }
.quadro thead button {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 6px 0 8px;
  border: 0;
  background: transparent;
  color: var(--lapis);
  font-family: var(--grot);
  font-size: 21px;
  font-weight: 480;
  font-variant-numeric: lining-nums tabular-nums;
  cursor: pointer;
}
.quadro thead button:hover { color: var(--tinta); }
.quadro thead button[aria-pressed="true"] { color: var(--tinta); }
.quadro thead button:focus-visible { outline-offset: -2px; }
.hoje {
  display: block;
  font-family: var(--texto);
  font-style: italic;
  font-size: 13px;
  line-height: 1.2;
  color: var(--carimbo);
}

.quadro tbody th[scope="row"] {
  text-align: left;
  vertical-align: bottom;
  padding: 10px 12px 7px 0;
  font-family: var(--grot);
  font-size: 21px;
  font-weight: 480;
  line-height: 1;
  border-bottom: 1px solid var(--regua);
}
.quadro tbody th small {
  display: block;
  margin-top: 3px;
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 400;
  color: var(--lapis);
}
.quadro tr.grupo td { height: auto; border-bottom: 0; }
.quadro tr.grupo th {
  text-align: left;
  padding: 26px 0 2px;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--lapis);
}
.quadro tbody.saem tr.grupo th { padding-top: 10px; }

.quadro td {
  --alt: 44px;
  position: relative;
  height: 62px;
  padding: 0 5px;
  vertical-align: bottom;
  border-bottom: 1px solid var(--regua);
}
.quadro td b {
  display: block;
  height: calc(var(--v) * var(--alt));
  background: var(--barra-velha);
  transform-origin: 50% 100%;
}
.quadro .entram td b { background: var(--carimbo); }
.quadro td i {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--v) * var(--alt) + 3px);
  text-align: center;
  font-style: normal;
  font-family: var(--grot);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--lapis);
}

/* o desenho: as barras sobem uma vez, ano a ano, quando o quadro aparece */
.quadro.espera td b { transform: scaleY(0); }
.quadro.desenhar td b { animation: sobe .75s cubic-bezier(.25, .7, .2, 1) both; }
.quadro td:nth-of-type(2) { --i: 1; } .quadro td:nth-of-type(3) { --i: 2; }
.quadro td:nth-of-type(4) { --i: 3; } .quadro td:nth-of-type(5) { --i: 4; }
.quadro td:nth-of-type(6) { --i: 5; } .quadro td:nth-of-type(7) { --i: 6; }
.quadro td:nth-of-type(8) { --i: 7; }
.quadro.desenhar td b { animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes sobe { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.ano-texto {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  margin-top: 34px;
  max-width: 50em;
}
.ano-num {
  font-family: var(--grot);
  font-weight: 300;
  font-size: 64px;
  line-height: .8;
  color: var(--carimbo);
  font-variant-numeric: lining-nums;
  margin: 0;
}
.ano-texto [data-ano-desc] { font-size: 19px; line-height: 1.55; max-width: 34em; margin: 0; hyphens: manual; }
.trilho .nota { margin-top: 22px; font-size: 13px; line-height: 1.5; color: var(--lapis); max-width: 21em; }

/* ── Entradas ──────────────────────────────────────────
   Títulos e textos grandes sobem linha a linha por trás de uma máscara;
   o resto aparece com um deslocamento curto. Tudo uma vez só. */

.linha-texto-mask { padding-bottom: .12em; margin-bottom: -.12em; }

/* antes da abertura rodar, o vídeo já está recolhido e velado */
@media (min-width: 768px) {
  .anima .heroi-quadro { clip-path: inset(22vh 18vw round 2px); }
  .anima .topo, .anima .heroi-pausa { opacity: 0; }
}
.anima .heroi-veu { opacity: 1; }

/* ── Atuação ───────────────────────────────────────────── */

.atuacao {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--vao);
}
.area-maior { grid-column: 1 / span 6; padding-right: 12px; }
.areas-menores {
  grid-column: 7 / -1;
  border-left: 1px solid var(--regua);
  padding-left: var(--vao);
  display: grid;
  align-content: start;
  gap: 52px;
}
.area h3 { font-family: var(--grot); }
.area-maior h3 {
  font-weight: 290;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: .9;
  letter-spacing: -.01em;
  margin: -6px 0 22px;
}
.areas-menores h3 { font-weight: 420; font-size: 31px; line-height: 1; margin-bottom: 12px; }
.area > p { max-width: 30em; }
.area-maior > p { font-size: 21px; line-height: 1.5; max-width: 26em; }
.areas-menores p { font-size: 16px; line-height: 1.55; }

.area li { border-top: 1px solid var(--regua); padding: 9px 0 10px; line-height: 1.4; }
.area-maior ul { columns: 2; column-gap: var(--vao); margin-top: 30px; }
.area-maior li { break-inside: avoid; }
.areas-menores li { font-size: 16px; padding: 7px 0 8px; }

/* ── Escritório ────────────────────────────────────────── */

.texto-longo p {
  font-size: clamp(22px, 2.35vw, 30px);
  line-height: 1.42;
  max-width: 27em;
  margin-bottom: .8em;
  hyphens: manual; /* em corpo grande, hífen de quebra pesa */
}

/* ── Pessoas ───────────────────────────────────────────── */

/* um sócio: nome e registro à esquerda, formação ao lado */
.pessoa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--vao) * 2);
  align-items: start;
}
.pessoa h3, .pessoa-reg { grid-column: 1; }
.pessoa p:last-child { grid-column: 2; grid-row: 1 / span 2; padding-top: 6px; }
.pessoa h3 {
  font-family: var(--grot);
  font-weight: 300;
  font-size: clamp(42px, 4.8vw, 62px);
  line-height: .92;
  letter-spacing: -.005em;
}
.pessoa-reg {
  margin: 12px 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--lapis);
  font-variant-numeric: lining-nums;
}
.pessoa p:last-child { max-width: 30em; margin: 0; }

/* ── Análises ──────────────────────────────────────────── */

.pauta { border-bottom: 1px solid var(--regua); }
.pauta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  border-top: 1px solid var(--regua);
  padding: 16px 0 18px;
}
.pauta-titulo { font-size: 21px; line-height: 1.38; max-width: 30em; text-wrap: pretty; }
.pauta-estado { font-style: italic; font-size: 15px; color: var(--lapis); white-space: nowrap; }

/* o carimbo entra maior e desce até o papel; a seção corta o excesso,
   senão o celular afasta o zoom para mostrar a sobra */
#contato { overflow-x: clip; }

/* ── Contato ───────────────────────────────────────────── */

.contato {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--vao);
  align-items: center;
}
.contato dl { grid-column: 1 / span 5; margin: 0; }
.contato dl > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--regua);
  padding: 13px 0 15px;
}
.contato dl > div:last-child { border-bottom: 1px solid var(--regua); }
.contato dt {
  font-family: var(--grot);
  font-size: 19px;
  font-weight: 460;
  color: var(--lapis);
  line-height: 1.5;
}
.contato dd { margin: 0; font-size: 18px; line-height: 1.55; } /* o e-mail só quebra depois do @ (<wbr> no HTML) */
.carimbo { grid-column: 7 / -1; margin: 0; min-width: 0; display: flex; justify-content: center; } /* o carimbo nunca passa da própria coluna */
.carimbo img {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  mix-blend-mode: multiply;
  transform: rotate(-1.4deg);
}

/* entre 1001 e 1280 px a coluna do contato fica estreita: rótulo em cima, dado embaixo */
@media (max-width: 1280px) {
  .contato dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ── Rodapé ────────────────────────────────────────────── */

.rodape { margin-top: 128px; padding-bottom: 56px; }
.rodape .corpo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--vao);
  border-top: 1px solid var(--regua);
  padding-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lapis);
}
.rodape p { margin: 0 0 12px; hyphens: manual; }
/* o selo autentica a página, como o carimbo no pé de um parecer */
.rodape-selo { grid-column: 1 / span 3; padding-top: 18px; }
.rodape-selo img { display: block; width: 150px; height: auto; }

/* ── Telas médias ──────────────────────────────────────── */

@media (max-width: 1000px) {
  .trilho, .corpo { grid-column: 1 / -1; }
  .trilho { padding-right: 0; margin-bottom: 22px; }
  .trilho p { max-width: 34em; }
  .lide, .abertura-links { grid-column: 1 / -1; max-width: 32em; }
  .rodape-selo { grid-column: 1 / -1; order: 2; padding: 28px 0 0; }
  .trilho .nota { max-width: 40em; }
  .secao { margin-top: 104px; }
}

/* ── Telas estreitas ───────────────────────────────────── */

@media (max-width: 860px) {
  .topo nav { display: none; }
  .menu-botao { display: block; }
  .topo .faixa { flex-wrap: nowrap; align-items: center; }
}
@media (max-width: 520px) {
  .marca-desc { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .topo .faixa { padding-top: 18px; padding-bottom: 14px; }
  .heroi { --ct: 78px; --cb: 20px; }
  .heroi-conteudo { flex-direction: column; align-items: flex-start; padding-bottom: 54px; }
  .canto { width: 28px; height: 28px; }
  .marca-desc { font-size: 14px; padding-bottom: 7px; }
  .topo ul { gap: 4px 20px; }
  .topo nav a { font-size: 19px; }

  .apresentacao { padding-top: 72px; }
  .lide { font-size: 21px; }
  .abertura-links { flex-direction: column; font-size: 18px; }

  .secao { margin-top: 84px; }
  .trilho h2 { font-size: 28px; }

  .quadro thead td { width: 27%; }
  .quadro thead button { font-size: 15px; min-height: 48px; padding: 4px 0 6px; }
  .hoje { font-size: 11px; }
  .quadro tbody th[scope="row"] { font-size: 16px; padding-right: 6px; }
  .quadro tbody th small { font-size: 11px; }
  .quadro td { --alt: 34px; height: 50px; padding: 0 2px; }
  .quadro td i { font-size: 11px; }
  .ano-texto { grid-template-columns: 1fr; row-gap: 10px; }
  .ano-num { font-size: 52px; }
  .ano-texto [data-ano-desc] { font-size: 17px; }

  .atuacao, .contato { grid-template-columns: 1fr; }
  .area-maior, .areas-menores, .contato dl, .carimbo { grid-column: 1 / -1; }
  .area-maior { padding-right: 0; }
  .area-maior ul { columns: 1; }
  .area-maior > p { font-size: 19px; }
  .areas-menores {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--tinta);
    padding-top: 28px;
    margin-top: 44px;
    gap: 44px;
  }

  .pessoa { grid-template-columns: 1fr; }
  .pessoa p:last-child { grid-column: 1; grid-row: auto; padding-top: 0; }

  .pauta li { flex-direction: column; gap: 4px; }
  .pauta-titulo { font-size: 19px; }

  .contato dl > div { grid-template-columns: 1fr; gap: 0; }
  .carimbo { justify-content: flex-start; margin-top: 40px; }
  .carimbo img { max-width: 280px; }

  .rodape { margin-top: 96px; }
  .rodape .corpo { grid-template-columns: 1fr; }
}

/* ── Telas baixas: celular deitado ─────────────────────
   O hero cabe na altura da tela e o título é medido pela altura,
   para não ficar abaixo da dobra. */

@media (max-height: 520px) and (orientation: landscape) {
  .heroi { min-height: 0; --ct: 70px; --cb: 16px; }
  .heroi h1 { font-size: max(36px, min(10.4vw, 14svh)); }
  .heroi-conteudo { padding-bottom: 34px; flex-direction: row; align-items: flex-end; }
  .canto { width: 26px; height: 26px; }
  .menu { padding-top: 76px; padding-bottom: 20px; }
  .menu nav a { font-size: 34px; }
  .menu ul { grid-template-columns: repeat(2, max-content); column-gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .quadro.espera td b, .quadro.desenhar td b { transform: none; animation: none; }
}
