/* ==========================================================================
   Arlem Carvalho Advocacia · "Antes do processo"
   Sistema editorial: EB Garamond (texto e títulos) + IBM Plex Mono (metadados)
   ========================================================================== */

:root {
  --paper: #F2EEE6;
  --paper-2: #EAE4D9;
  --paper-3: #DFD8CB;
  --ink: #161513;
  --ink-2: #57524B;
  --ink-3: #6B655C;
  --rule: rgba(22, 21, 19, .14);
  --rule-strong: rgba(22, 21, 19, .34);
  --accent: #9A4A2B;
  --on-accent: #fff; /* texto sobre o fundo de destaque */
  --inverse: #181715;
  --inverse-ink: #EEE9DF;
  --inverse-2: #ABA498;
  --inverse-rule: rgba(238, 233, 223, .16);

  /* Garamond em toda a tipografia. Hoefler Text é a Garamond instalada nos aparelhos Apple e serve de reserva. */
  --serif: "EB Garamond", "Hoefler Text", Garamond, "Garamond Premier Pro", "Adobe Garamond Pro", Baskerville, "Times New Roman", serif;
  --display: "Cormorant Garamond", "EB Garamond", "Hoefler Text", Garamond, Baskerville, "Times New Roman", serif;
  --mono: var(--serif); /* etiquetas: Garamond em maiúsculas espaçadas */

  /* nunca menor que a área segura (celular deitado com recorte da câmera; viewport-fit=cover) */
  --gutter: max(clamp(20px, 4.2vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1500px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .7, .12, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  /* máscaras de dissolução com curva suave (sem quina visível) */
  --fade-x: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 7.8%, rgba(0,0,0,0.156) 15.5%, rgba(0,0,0,0.316) 23.3%, rgba(0,0,0,0.500) 31.0%, rgba(0,0,0,0.684) 38.8%, rgba(0,0,0,0.844) 46.5%, rgba(0,0,0,0.957) 54.3%, rgba(0,0,0,1.000) 62.0%);
  --fade-x-hero: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.028) 4.6%, rgba(0,0,0,0.104) 9.2%, rgba(0,0,0,0.216) 13.8%, rgba(0,0,0,0.352) 18.4%, rgba(0,0,0,0.500) 23.0%, rgba(0,0,0,0.648) 27.6%, rgba(0,0,0,0.784) 32.2%, rgba(0,0,0,0.896) 36.8%, rgba(0,0,0,0.972) 41.4%, rgba(0,0,0,1.000) 46.0%);
  --fade-y: linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 2.8%, rgba(0,0,0,0.156) 5.5%, rgba(0,0,0,0.316) 8.3%, rgba(0,0,0,0.500) 11.0%, rgba(0,0,0,0.684) 13.8%, rgba(0,0,0,0.844) 16.5%, rgba(0,0,0,0.957) 19.3%, rgba(0,0,0,1.000) 22.0%, rgba(0,0,0,1.000) 74.0%, rgba(0,0,0,0.957) 77.3%, rgba(0,0,0,0.844) 80.5%, rgba(0,0,0,0.684) 83.8%, rgba(0,0,0,0.500) 87.0%, rgba(0,0,0,0.316) 90.3%, rgba(0,0,0,0.156) 93.5%, rgba(0,0,0,0.043) 96.8%, rgba(0,0,0,0.000) 100.0%);
  --fade-m1: linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 3.8%, rgba(0,0,0,0.156) 7.5%, rgba(0,0,0,0.316) 11.3%, rgba(0,0,0,0.500) 15.0%, rgba(0,0,0,0.684) 18.8%, rgba(0,0,0,0.844) 22.5%, rgba(0,0,0,0.957) 26.3%, rgba(0,0,0,1.000) 30.0%, rgba(0,0,0,1.000) 44.0%, rgba(0,0,0,0.957) 50.5%, rgba(0,0,0,0.844) 57.0%, rgba(0,0,0,0.684) 63.5%, rgba(0,0,0,0.500) 70.0%, rgba(0,0,0,0.316) 76.5%, rgba(0,0,0,0.156) 83.0%, rgba(0,0,0,0.043) 89.5%, rgba(0,0,0,0.000) 96.0%);
  --fade-m2: linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 3.0%, rgba(0,0,0,0.156) 6.0%, rgba(0,0,0,0.316) 9.0%, rgba(0,0,0,0.500) 12.0%, rgba(0,0,0,0.684) 15.0%, rgba(0,0,0,0.844) 18.0%, rgba(0,0,0,0.957) 21.0%, rgba(0,0,0,1.000) 24.0%, rgba(0,0,0,1.000) 58.0%, rgba(0,0,0,0.957) 63.3%, rgba(0,0,0,0.844) 68.5%, rgba(0,0,0,0.684) 73.8%, rgba(0,0,0,0.500) 79.0%, rgba(0,0,0,0.316) 84.3%, rgba(0,0,0,0.156) 89.5%, rgba(0,0,0,0.043) 94.8%, rgba(0,0,0,0.000) 100.0%);
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1A1917;
  --paper-3: #24221F;
  --ink: #ECE6DA;
  --ink-2: #ADA699;
  --ink-3: #8E887E;
  --rule: rgba(236, 230, 218, .13);
  --rule-strong: rgba(236, 230, 218, .32);
  --accent: #D47C55;
  --on-accent: #121110;
  --inverse: #1D1B18;
  --inverse-ink: #ECE6DA;
  --inverse-2: #ADA699;
  --inverse-rule: rgba(236, 230, 218, .14);
  color-scheme: dark;
}

/* Sem JavaScript: segue a preferência do sistema */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --paper: #121110; --paper-2: #1A1917; --paper-3: #24221F;
    --ink: #ECE6DA; --ink-2: #ADA699; --ink-3: #8E887E;
    --rule: rgba(236, 230, 218, .13); --rule-strong: rgba(236, 230, 218, .32);
    --accent: #D47C55; --on-accent: #121110; --inverse: #1D1B18;
    color-scheme: dark;
  }
  /* logotipo e assinatura feitos para fundo escuro */
  html:not([data-theme]) .logo--light { display: none; }
  html:not([data-theme]) .logo--dark { display: block; }
  html:not([data-theme]) .assinatura--claro { display: none !important; }
  html:not([data-theme]) .assinatura--escuro { display: block !important; }
  html:not([data-theme]) .assinatura video { mix-blend-mode: lighten; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.08rem, .98rem + .35vw, 1.28rem);
  line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }

.mono {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-feature-settings: "lnum", "tnum";
}
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .85rem;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner {
  height: 100%;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px;
}
.brand { display: block; line-height: 0; }
.logo { width: clamp(150px, 13vw, 196px); height: auto; }
.logo--dark { display: none; }
html[data-theme="dark"] .logo--light { display: none; }
html[data-theme="dark"] .logo--dark { display: block; }

.folio {
  justify-self: center;
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0; transform: translateY(4px);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
}
.is-scrolled .folio { opacity: 1; transform: none; }
.folio [data-folio-num] { color: var(--accent); }

.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative; padding-block: 6px;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="true"] { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px 0 10px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .3s, background-color .3s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .6s var(--ease);
}
html[data-theme="dark"] .theme-dot { transform: rotate(180deg); }

.menu-toggle { display: none; align-items: center; gap: 10px; height: 34px; padding: 0 4px; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.menu-lines { position: relative; width: 20px; height: 8px; }
.menu-lines::before, .menu-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-lines::before { top: 0; }
.menu-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-45deg); }

/* Menu móvel */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-soft), visibility 0s .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-soft); }
.menu[hidden] { display: none; }
/* em tela baixa (celular deitado, barras do navegador) o menu rola por dentro */
.menu { overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 600px) {
  .menu { padding-top: calc(var(--header-h) + 12px); }
  .menu-nav a { font-size: clamp(1.35rem, 6.5vh, 1.9rem); padding: 9px 0; }
}
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu-nav a span { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--accent); }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu-nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu-nav a:nth-child(6) { transition-delay: .2s; }
.menu-foot { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: .9rem; color: var(--ink-2); }
body.menu-open { overflow: hidden; }

/* ---------- Capa ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage {
  position: absolute; z-index: -1;
  top: var(--header-h); right: 0; bottom: 9%;
  width: 65%;
  overflow: hidden;
  clip-path: inset(0);
  -webkit-mask-image: var(--fade-x-hero), var(--fade-y);
  mask-image: var(--fade-x-hero), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
/* Borda de papel sobre o limite da mídia: evita a coluna de pixels que a
   composição de vídeo deixa visível quando a borda cai em fração de pixel */
.hero-stage::before, .interlude-media::before, .pet-media::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  left: 0; top: 0; bottom: 0; width: 8%;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 20%, transparent 100%);
}
.hero-stage::after, .interlude-media::after, .pet-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 4px 0 0 var(--paper), inset 0 4px 0 var(--paper), inset 0 -4px 0 var(--paper);
}
.scene {
  /* sangra 2% além da área mascarada para esconder bordas escuras do arquivo original */
  position: absolute; top: -1%; left: -2%; width: 104%; height: 102%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s var(--ease-soft), transform 9s linear;
}
.scene.is-active { opacity: 1; transform: scale(1); }
/* sem isso, o max-width: 100% de img/video corta os 104% e sobra uma faixa à direita */
.hero-stage .scene { max-width: none; }

.hero-inner {
  flex: 1;
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 110px));
  display: flex; flex-direction: column;
}
.hero-kicker { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); margin-bottom: clamp(26px, 5vh, 54px); }
.hero-kicker span { color: var(--ink-3); }

.slogan {
  font-weight: 400;
  font-size: clamp(3.9rem, 9.4vw, 10.4rem);
  line-height: .84;
  letter-spacing: -.035em;
  display: flex; flex-direction: column;
  font-feature-settings: "kern", "liga", "dlig";
}
.slogan-line { display: block; padding-bottom: .06em; }
.slogan-word { display: inline-block; }
.slogan-dot { display: inline-block; color: var(--accent); }
.slogan-line:nth-child(2) { padding-left: .42em; }
.slogan-line:nth-child(3) { padding-left: .84em; font-style: italic; letter-spacing: -.045em; }

.hero-note {
  margin-top: clamp(32px, 6vh, 64px);
  margin-left: .84em;
  max-width: 33rem;
  font-size: clamp(3.9rem, 9.4vw, 10.4rem); /* herda o recuo do slogan */
}
.hero-note > * { font-size: clamp(1.08rem, .98rem + .35vw, 1.28rem); }
.hero-thesis {
  font-size: clamp(1.6rem, 1.15rem + 1.25vw, 2.45rem) !important;
  line-height: 1.08; letter-spacing: -.018em;
  font-style: italic;
  text-wrap: balance;
  margin-bottom: 18px;
}
.hero-text { color: var(--ink-2); line-height: 1.45; }
.hero-sign { margin-top: 22px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .74rem !important; }

.hero-bar {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 26px var(--gutter) 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero-areas { color: var(--ink-2); }
.hero-areas i { font-style: normal; color: var(--accent); margin-inline: 4px; }
.scene-control { display: flex; align-items: center; gap: 18px; color: var(--ink-2); }
.scene-count { min-width: 16em; text-align: right; }
.scene-name { color: var(--ink); margin-left: 10px; }
.scene-ticks { display: flex; gap: 5px; }
.scene-ticks i { position: relative; width: 26px; height: 1px; background: var(--rule-strong); overflow: hidden; }
.scene-ticks i::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.scene-toggle {
  height: 30px; padding: 0 12px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: .74rem !important;
  transition: border-color .3s;
}
.scene-toggle:hover { border-color: var(--ink); }

/* Entrada do slogan: composição linha a linha */
.js .slogan-word, .js .slogan-dot, .js .hero-note, .js .hero-kicker, .js .hero-bar { opacity: 0; }
.js.is-ready .slogan-word {
  animation: word-in 1.25s var(--ease) forwards;
}
.js.is-ready .slogan-dot {
  animation: dot-in .7s var(--ease) forwards;
}
.js.is-ready .slogan-line:nth-child(1) .slogan-word { animation-delay: .15s; }
.js.is-ready .slogan-line:nth-child(1) .slogan-dot { animation-delay: .95s; }
.js.is-ready .slogan-line:nth-child(2) .slogan-word { animation-delay: 1.05s; }
.js.is-ready .slogan-line:nth-child(2) .slogan-dot { animation-delay: 1.85s; }
.js.is-ready .slogan-line:nth-child(3) .slogan-word { animation-delay: 1.95s; }
.js.is-ready .slogan-line:nth-child(3) .slogan-dot { animation-delay: 2.75s; }
.js.is-ready .hero-kicker { animation: fade-up .9s var(--ease) .05s forwards; }
.js.is-ready .hero-note { animation: fade-up 1.1s var(--ease) 2.9s forwards; }
.js.is-ready .hero-bar { animation: fade-up 1.1s var(--ease) 3.2s forwards; }
/* foco pelo teclado antes da entrada: os botões aparecem já (sem animation: none, que reiniciaria a entrada) */
.js .hero-note:focus-within, .js .hero-bar:focus-within { opacity: 1 !important; transform: none !important; }

@keyframes word-in {
  0% { opacity: 0; clip-path: inset(0 100% -.2em 0); transform: translateX(-.08em); filter: blur(10px); }
  45% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 -.1em -.2em 0); transform: none; filter: blur(0); }
}
@keyframes dot-in {
  0% { opacity: 0; transform: translateY(-.35em) scale(.4); }
  70% { opacity: 1; transform: translateY(.02em) scale(1.08); }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Estrutura de seção ---------- */
.section { padding-block: clamp(96px, 15vh, 180px); }
.kicker { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); margin-bottom: clamp(20px, 3vh, 32px); }
.kicker span { color: var(--accent); }
.display {
  font-weight: 400;
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 5.1rem);
  line-height: 1.06; /* folga entre descendente ("q") e acento da linha de baixo ("ê") */
  letter-spacing: -.028em;
  max-width: 15em;
  text-wrap: balance;
}
.section-head { margin-bottom: clamp(56px, 9vh, 110px); }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 6vw; align-items: end;
}
.section-lede { color: var(--ink-2); max-width: 22rem; font-size: 1.05em; }

/* Reveal discreto (.app: só depois que o app.js, que revela, já está rodando) */
.app .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.app .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Antes do processo ---------- */
.before .display { max-width: 12em; }
.moments { border-top: 1px solid var(--rule-strong); counter-reset: m; }
.moment {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 13rem);
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 4.5vh, 46px) 0;
  border-bottom: 1px solid var(--rule);
}
.moment-num { color: var(--accent); font-size: .74rem; }
.moment-title {
  font-weight: 400;
  font-size: clamp(1.7rem, 1rem + 2.2vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.02em;
  transition: transform .7s var(--ease);
}
.moment:hover .moment-title { transform: translateX(10px); }
.moment-text { color: var(--ink-2); max-width: 26rem; }
.moment-areas { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-self: end; justify-content: flex-end; }
.moment-areas a { border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.moment-areas a:hover { color: var(--accent); border-color: var(--accent); }
.before-close {
  margin-top: clamp(48px, 8vh, 90px);
  margin-left: calc(3.2rem + clamp(16px, 3vw, 48px));
  max-width: 34rem;
  font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem);
  line-height: 1.35;
}
.before-close em { color: var(--accent); }

/* ---------- Atuação: sanfona ---------- */
.practice { background: var(--paper-2); transition: background-color .5s var(--ease-soft); }
.areas { border-top: 1px solid var(--rule-strong); }
.area { position: relative; border-bottom: 1px solid var(--rule); }
.area::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.area.is-open::before { transform: scaleX(1); }
.area-head { font-weight: 400; font-size: inherit; }
.area-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto 28px;
  gap: clamp(14px, 2.4vw, 40px);
  align-items: center;
  padding: clamp(22px, 3.2vh, 34px) 0;
  text-align: left;
}
.area-num { color: var(--ink-3); transition: color .4s; }
.area-title {
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.35rem);
  line-height: 1.05; letter-spacing: -.018em;
  transition: transform .7s var(--ease), color .4s;
}
/* Todas as áreas com o mesmo tamanho de título; o destaque de Civil e Imobiliário fica na cor da etiqueta */
.area--minor .area-title { font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); color: var(--ink-2); }
/* Todas as etiquetas das áreas na cor de destaque, como "Centro da atuação" e "Compra, venda e locação" */
.area-tag { color: var(--accent); white-space: nowrap; }
.area-icon { position: relative; width: 22px; height: 22px; justify-self: end; }
.area-icon::before, .area-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; margin-left: -9px;
  background: currentColor; transition: transform .6s var(--ease);
}
.area-icon::after { transform: rotate(90deg); }
.area.is-open .area-icon::after { transform: rotate(0deg); }
.area-trigger:hover .area-title { transform: translateX(8px); }
.area-trigger:hover .area-num, .area.is-open .area-num { color: var(--accent); }
.area-trigger:focus-visible { outline-offset: -2px; }

.area-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease);
}
.area.is-open .area-panel { grid-template-rows: 1fr; }
.area-inner { overflow: hidden; min-height: 0; }
.area-body {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, .9fr) minmax(0, 1.35fr);
  column-gap: clamp(14px, 2.4vw, 40px);
  row-gap: 28px;
  padding: 4px 0 clamp(36px, 6vh, 64px);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .45s var(--ease-soft), transform .7s var(--ease);
}
.area.is-open .area-body { opacity: 1; transform: none; transition-delay: .15s; }
.areas.is-instant .area-panel, .areas.is-instant .area-body { transition: none !important; }
/* Sem JavaScript: todas as áreas ficam legíveis */
html:not(.js) .area-panel { grid-template-rows: 1fr; }
html:not(.js) .area-body { opacity: 1; transform: none; }
html:not(.js) .area-icon { display: none; }
.area-lead {
  grid-column: 2;
  font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.32;
  max-width: 24rem;
}
.topics {
  grid-column: 3;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(20px, 3vw, 44px);
}
.topics dt { font-size: 1.02em; margin-bottom: 6px; padding-top: 10px; border-top: 1px solid var(--rule-strong); }
.topics dd { color: var(--ink-2); font-size: .92em; line-height: 1.45; }
.area-cta {
  grid-column: 2;
  align-self: start; justify-self: start;
  display: inline-flex; gap: 12px; align-items: center;
  padding-bottom: 4px; border-bottom: 1px solid var(--ink);
  transition: color .3s, border-color .3s, gap .4s var(--ease);
}
.area-cta:hover { color: var(--accent); border-color: var(--accent); gap: 18px; }

/* ---------- Interlúdio ---------- */
.interlude {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 78vh, 820px);
  display: flex; align-items: center;
}
.interlude-media {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 58%;
  overflow: hidden; clip-path: inset(0);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.interlude-media img { width: 100%; height: 100%; object-fit: cover; }
.interlude-inner { padding-block: 80px; }
.interlude-quote p {
  max-width: min(10.5em, 46vw);
  font-size: clamp(2.1rem, 1rem + 3vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.026em;
  font-style: italic;
  text-wrap: balance;
}
.interlude-quote p::before { content: "“"; color: var(--accent); margin-left: -.42em; margin-right: .04em; }
.interlude-quote p::after { content: "”"; color: var(--accent); }

/* ---------- Escritório ---------- */
.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "head head" "text dossier";
  gap: clamp(48px, 7vh, 90px) 6vw;
}
.office-head { grid-area: head; }
.office-head .display { max-width: 12.5em; }
.office-text { grid-area: text; display: grid; gap: 1.1em; max-width: 36rem; }
/* Capitular de duas linhas exatas: initial-letter onde existe; nos demais, float com a mesma altura */
.office-text p:first-child::first-letter {
  float: left; font-size: 3.3em; line-height: .78; padding: .02em .08em 0 0; color: var(--accent);
}
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .office-text p:first-child::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0 .08em 0 0; -webkit-initial-letter: 2; initial-letter: 2; }
}
.office-aside {
  margin-top: .8em; padding-left: 22px; border-left: 1px solid var(--accent);
  font-style: italic; color: var(--ink);
  font-size: clamp(1.35rem, 1.05rem + .9vw, 1.95rem); line-height: 1.2; letter-spacing: -.012em;
  text-wrap: balance;
}
.dossier {
  grid-area: dossier; align-self: start;
  border-top: 1px solid var(--rule-strong);
}
.dossier div {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.dossier dt { color: var(--ink-3); }
.dossier dd { color: var(--ink); text-transform: none; letter-spacing: .02em; font-size: .8rem; }

/* ---------- Escritório com retrato: capítulo escuro em ambos os temas ---------- */
.office--portrait {
  background: var(--inverse); color: var(--inverse-ink);
  --paper: var(--inverse);
  --ink: var(--inverse-ink);
  --ink-2: var(--inverse-2);
  --ink-3: #8B857B;
  --rule: var(--inverse-rule);
  --rule-strong: rgba(238, 233, 223, .32);
  --accent: #D9885F;
  padding-block: 0;
  overflow: clip; /* clip, não hidden: mantém o retrato fixo durante a rolagem */
}
.office--portrait ::selection { background: var(--accent); color: var(--inverse); }
.office--portrait .office-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "portrait head" "portrait text" "portrait dossier";
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(40px, 6vw, 96px);
  padding-block: clamp(96px, 14vh, 160px);
}
.office-portrait {
  grid-area: portrait; margin: 0;
  position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
  height: min(84vh, 880px);
  margin-left: calc(var(--gutter) * -1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 64%, rgba(0,0,0,.55) 82%, transparent 100%),
                      linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, rgba(0,0,0,.45) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 64%, rgba(0,0,0,.55) 82%, transparent 100%),
              linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, rgba(0,0,0,.45) 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.office-portrait picture, .office-portrait img { display: block; width: 100%; height: 100%; }
.office-portrait img { object-fit: cover; object-position: 50% 18%; }
.office--portrait .office-head { padding-top: clamp(8px, 4vh, 48px); }
.office--portrait .office-head .display { max-width: 11em; }
.office--portrait .office-text { margin-top: clamp(28px, 5vh, 56px); }
.office--portrait .dossier { margin-top: clamp(40px, 6vh, 64px); align-self: start; }

/* ---------- Direito Pet: capítulo editorial próprio ---------- */
.pet {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(720px, 100svh);
  display: flex; align-items: center;
  border-top: 1px solid var(--rule);
}
.pet-media {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 62%;
  overflow: hidden; clip-path: inset(0);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.pet-media video { width: 100%; height: 100%; object-fit: cover; }
.pet-inner { position: relative; padding-block: clamp(96px, 14vh, 150px); }
.pet-inner > * { max-width: min(38rem, 46vw); }
.pet-title {
  font-weight: 400;
  font-size: clamp(3.6rem, 1.4rem + 6.4vw, 9rem);
  line-height: .86; letter-spacing: -.045em;
  margin-bottom: clamp(18px, 3vh, 30px);
  white-space: nowrap;
}
.pet-sub {
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + .9vw, 2rem);
  line-height: 1.18; letter-spacing: -.012em;
  margin-bottom: 24px;
}
.pet-text { color: var(--ink-2); }
.pet-index {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(20px, 2.6vw, 36px);
  margin-top: clamp(32px, 5vh, 48px);
}
.pet-index div {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--rule-strong);
}
.pet-index dt { color: var(--accent); padding-top: .35em; }
.pet-index dd { color: var(--ink-2); font-size: .92em; line-height: 1.4; }
.pet-index strong { display: block; font-weight: 400; font-size: 1.1em; color: var(--ink); margin-bottom: 3px; }
.pet-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(32px, 5vh, 44px); }
.pet-links a { border-bottom: 1px solid var(--rule-strong); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.pet-links a:first-child { border-color: var(--ink); }
.pet-links a:hover { color: var(--accent); border-color: var(--accent); }
/* cores do tema (papel translúcido e tinta): legível sobre o vídeo e sobre a parte esmaecida, nos dois temas */
.pet-toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 34px;
  height: 30px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ink); font-size: .74rem !important;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Chamada discreta na base da capa */
.hero-pet {
  display: inline-flex; gap: 10px; align-items: baseline;
  padding-bottom: 3px; border-bottom: 1px solid var(--accent);
  color: var(--ink); transition: color .3s, gap .4s var(--ease);
}
.hero-pet span { color: var(--ink-3); }
.hero-pet b { font-weight: 400; color: var(--accent); }
.hero-pet:hover { color: var(--accent); gap: 14px; }
.hero-areas, .hero-pet { white-space: nowrap; }
.hero-bar { flex-wrap: wrap; row-gap: 14px; }
@media (max-width: 80em) { .hero-pet span { display: none; } }
@media (min-width: 57.0625em) { .hero-note { max-width: min(31rem, 35vw); } }
@media (max-width: 75em) and (min-width: 57.0625em) { .hero-stage { width: 60%; } }
@media (max-width: 68.75em) and (min-width: 57.0625em) { .hero-areas { display: none; } }

/* ---------- Textos ---------- */
.articles { border-top: 1px solid var(--rule-strong); }
.articles li { border-bottom: 1px solid var(--rule); }
.articles a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding: clamp(28px, 4.6vh, 48px) 0;
}
.articles a::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -1);
  background: var(--paper-2);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.articles a:hover::before, .articles a:focus-visible::before { transform: scaleY(1); }
.article-cat { color: var(--accent); }
.article-title {
  font-size: clamp(1.6rem, 1rem + 1.9vw, 3rem);
  line-height: 1.05; letter-spacing: -.02em;
  text-wrap: balance;
  transition: transform .7s var(--ease);
}
.articles a:hover .article-title { transform: translateX(10px); }
.article-src { color: var(--ink-2); white-space: nowrap; }

/* ---------- Contato ---------- */
.contact {
  background: var(--inverse); color: var(--inverse-ink);
  padding-block: clamp(96px, 15vh, 170px);
  --rule: var(--inverse-rule);
  --rule-strong: rgba(238, 233, 223, .44); /* linha dos campos com 3:1 sobre o fundo escuro */
  --ink-2: var(--inverse-2);
  --ink-3: #8B857B;
  --accent: #D9885F;
  color-scheme: dark; /* barra de rolagem e preenchimento automático dos campos no esquema escuro */
}
.contact ::selection { background: var(--accent); color: var(--inverse); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; }
.contact-title {
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 5.6vw, 7.4rem);
  line-height: .9; letter-spacing: -.04em;
  margin-bottom: 26px;
}
.contact-text { color: var(--ink-2); max-width: 24rem; }
.lines { margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--rule); }
.lines li {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.lines li > span { color: var(--ink-3); }
.lines a:not(.map), .lines address { font-style: normal; font-size: 1.08em; line-height: 1.35; }
.lines a:not(.map) { transition: color .3s; }
.lines a:not(.map):hover { color: var(--accent); }
.copy, .map { color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.copy:hover, .map:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 28px; align-content: start; padding-top: 8px; }
.field-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.field-row--half { grid-column: span 1; }
.field-row label { color: var(--ink-2); }
.field-row label small { font-size: inherit; color: var(--ink-3); margin-left: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 8px 0 10px;
  font-size: 1.15em;
  transition: border-color .3s;
}
.form select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 28px;
}
.form select option { color: #161513; background: #F2EEE6; }
.form textarea { resize: vertical; min-height: 7.5em; line-height: 1.4; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { box-shadow: 0 1px 0 var(--accent); }
/* campo com erro: cor e linha mais grossa (o padding compensa o 1 px a mais, sem pular o texto) */
.form [aria-invalid="true"] { border-color: #E07A6B; border-bottom-width: 2px; padding-bottom: 9px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 6px; }
.submit {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 24px;
  background: var(--inverse-ink); color: var(--inverse);
  font-family: var(--mono); font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px;
  transition: background-color .35s, gap .4s var(--ease);
}
.submit:hover { background: var(--accent); gap: 20px; }
.form-status { flex: 1 1 16rem; color: var(--ink-3); text-transform: none; letter-spacing: .02em; }
.form-status.is-alert { color: #E9A08F; }

/* ---------- Rodapé ---------- */
.footer { padding: clamp(70px, 11vh, 120px) 0 30px; }
.footer-slogan {
  font-size: clamp(2.6rem, .8rem + 7.4vw, 9.2rem);
  line-height: .9; letter-spacing: -.04em;
  padding-bottom: clamp(40px, 7vh, 80px);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
.footer-slogan b { font-weight: 400; color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 28px; padding: 36px 0; align-items: start;
}
.footer-brand .logo { width: 170px; }
.footer-col { color: var(--ink-2); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-top: 22px; border-top: 1px solid var(--rule);
  color: var(--ink-3);
}
.footer-base a:hover { color: var(--accent); }

/* ==========================================================================
   Responsivo
   Quebras em em (px ÷ 16 com a fonte padrão): acompanham a fonte maior escolhida no navegador.
   57em = 912 px (até aqui, cabeçalho e leiaute do celular); 68.75em = 1100; 32.5em = 520.
   app.js e doc.js usam a mesma quebra (57.0625em) no matchMedia.
   ========================================================================== */
@media (max-width: 68.75em) {
  .folio { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { justify-self: end; }
  .moment { grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr); }
  .moment-areas { grid-column: 2 / -1; justify-self: start; justify-content: flex-start; }
  .area-body { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .area-lead, .topics, .area-cta { grid-column: 2; }
  .area-lead { max-width: 34rem; }
}

@media (max-width: 57em) {
  :root { --header-h: 64px; }
  .nav, .theme-label { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 14px; }
  .header-tools { grid-column: 3; }
  .theme-toggle { width: 34px; padding: 0; justify-content: center; }
  .menu-toggle { display: inline-flex; }

  .hero { min-height: auto; }
  .hero-stage {
    top: calc(var(--header-h) - 8px); left: 0; right: 0; bottom: auto; width: 100%;
    height: 52svh;
    -webkit-mask-image: var(--fade-m1);
    mask-image: var(--fade-m1);
    -webkit-mask-composite: source-over; mask-composite: add;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  .hero-inner { padding-top: calc(var(--header-h) + 40svh); }
  .hero-stage::before, .interlude-media::before, .pet-media::before {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 10%;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 20%, transparent 100%);
  }
  .hero-stage::after, .interlude-media::after, .pet-media::after {
    box-shadow: inset 0 4px 0 var(--paper), inset 0 -4px 0 var(--paper);
  }
  .hero-kicker { order: 2; margin: 28px 0 0; }
  .slogan { order: 1; font-size: clamp(3.4rem, 16.5vw, 6.2rem); }
  .hero-note { order: 3; margin-left: 0; margin-top: 30px; }
  .slogan-line:nth-child(2) { padding-left: .3em; }
  .slogan-line:nth-child(3) { padding-left: .6em; }
  .hero-bar { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 34px; }
  .scene-control { width: 100%; justify-content: space-between; }
  .scene-count { min-width: 0; text-align: left; }

  .section-head--split { grid-template-columns: 1fr; gap: 22px; }
  .moment { grid-template-columns: 2rem minmax(0, 1fr); row-gap: 10px; }
  .moment-text, .moment-areas { grid-column: 2; }
  .before-close { margin-left: 0; }

  .area-trigger { grid-template-columns: 2rem minmax(0, 1fr) 22px; row-gap: 6px; }
  .area-tag { grid-column: 2; grid-row: 2; }
  .area-icon { grid-column: 3; grid-row: 1; }
  .area-body { grid-template-columns: 2rem minmax(0, 1fr); column-gap: clamp(14px, 2.4vw, 40px); }
  .topics { grid-template-columns: 1fr; gap: 18px; }

  .interlude { min-height: auto; flex-direction: column; align-items: stretch; }
  .interlude-media { position: relative; width: 100%; height: 46svh;
    -webkit-mask-image: var(--fade-m2);
    mask-image: var(--fade-m2);
    -webkit-mask-composite: source-over; mask-composite: add;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  .interlude-inner { padding-block: 0 24px; margin-top: -5svh; }
  .interlude-quote p { max-width: 12em; font-size: clamp(2rem, 9vw, 3rem); }
  .interlude-quote p::before { margin-left: 0; }

  .office-grid { grid-template-columns: 1fr; grid-template-areas: "head" "text" "dossier"; }
  .dossier div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .office--portrait .office-grid { grid-template-columns: 1fr; grid-template-areas: "portrait" "head" "text" "dossier"; grid-template-rows: none; padding-top: 0; }
  .office-portrait { position: relative; top: auto; height: 68svh; margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0,0,0,.5) 80%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0,0,0,.5) 80%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .office--portrait .office-head { margin-top: -10svh; position: relative; }

  .pet { min-height: auto; flex-direction: column; align-items: stretch; }
  .pet-media { position: relative; width: 100%; height: 50svh;
    -webkit-mask-image: var(--fade-m2);
    mask-image: var(--fade-m2);
    -webkit-mask-composite: source-over; mask-composite: add;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  .pet-inner { padding-block: 0 88px; margin-top: -10svh; }
  .pet-inner > * { max-width: none; }
  .pet-title { font-size: clamp(3.3rem, 17vw, 5.6rem); }
  .pet-index { grid-template-columns: 1fr; }
  .pet-toggle { top: calc(40svh - 46px); bottom: auto; } /* sobre o vídeo, acima do título */

  .articles a { grid-template-columns: 1fr; gap: 10px; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .lines li { grid-template-columns: minmax(0, 1fr) auto; }
  .lines li > span { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-slogan { white-space: normal; }
}

@media (max-width: 32.5em) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .field-row--half { grid-column: 1 / -1; }
  .scene-ticks i { width: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .slogan-word, .js .slogan-dot, .js .hero-note, .js .hero-kicker, .js .hero-bar, .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .scene { transform: none; }
}

/* ---------- Tipografia de títulos: Cormorant Garamond ---------- */
.slogan, .display, .moment-title, .area-title, .interlude-quote p, .pet-title, .pet-sub,
.contact-title, .footer-slogan, .hero-thesis, .article-title, .office-aside, .before-close,
.menu-nav a, .field-title {
  font-family: var(--display);
  font-weight: 500;
}
.slogan { letter-spacing: -.02em; }
.slogan-line:nth-child(3) { letter-spacing: -.03em; }
.display, .contact-title, .pet-title, .footer-slogan { letter-spacing: -.018em; }
.hero-thesis { font-size: clamp(1.75rem, 1.25rem + 1.35vw, 2.65rem) !important; }
.office-aside { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.15rem); }
.menu-nav a span { font-family: var(--serif); }

/* ---------- Pontos de atenção (conteúdo jurídico informativo) ---------- */
.area-note {
  grid-column: 2 / -1;
  display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 6px 28px;
  padding-top: 18px; border-top: 1px solid var(--rule-strong);
  font-size: .98em; line-height: 1.45; max-width: 50rem; /* linhas de até ~75 caracteres */
}
.area-note .mono { color: var(--accent); padding-top: .2em; }
.area-note cite { display: block; grid-column: 2; font-style: italic; color: var(--ink-3); font-size: .9em; margin-top: 2px; }
.area-cta { grid-column: 2; }
@media (max-width: 68.75em) { .area-note { grid-column: 2; grid-template-columns: 1fr; max-width: 34rem; } .area-note cite { grid-column: 1; } }

/* ---------- Contato: preparação ---------- */
.prep { margin-top: clamp(28px, 5vh, 44px); padding: 20px 0 4px; border-top: 1px solid var(--rule); }
.prep .mono { color: var(--ink-3); margin-bottom: 10px; }
.prep ul { display: grid; gap: 6px; }
.prep li { position: relative; padding-left: 22px; color: var(--ink-2); }
.prep li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--accent); }

/* ---------- Rodapé: aviso ---------- */
.footer-base .disclaimer { flex-basis: 100%; order: -1; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 400; color: var(--ink-3); }

/* ---------- Contato: contador, alternativas de envio e privacidade ---------- */
.field-row { position: relative; }
.count { align-self: flex-end; color: var(--ink-3); font-size: .74rem !important; margin-top: -2px; }
.fallback {
  grid-column: 1 / -1;
  padding: 18px 20px; border: 1px solid var(--rule-strong); border-radius: 4px;
  color: var(--ink-2);
}
.fallback p { margin-bottom: 12px; }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fallback-btn {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--inverse-ink);
  transition: border-color .3s, color .3s;
}
.fallback-btn:hover { border-color: var(--accent); color: var(--accent); }
.privacy-note { grid-column: 1 / -1; color: var(--ink-3); font-size: .95rem; }

/* ---------- Entrada do slogan: Direito e Propósito deslizam; Futuro surge aos poucos ---------- */
.js.is-ready .slogan-line:nth-child(1) .slogan-word,
.js.is-ready .slogan-line:nth-child(2) .slogan-word {
  animation: slogan-slide 1.35s cubic-bezier(.2, .7, .15, 1) forwards;
}
.js.is-ready .slogan-line:nth-child(1) .slogan-word { animation-delay: .2s; }
.js.is-ready .slogan-line:nth-child(2) .slogan-word { animation-delay: .95s; }
.js.is-ready .slogan-line:nth-child(3) .slogan-word {
  animation: slogan-emerge 2.8s cubic-bezier(.4, 0, .2, 1) 1.8s forwards;
}
.js.is-ready .slogan-line:nth-child(1) .slogan-dot { animation-delay: 1.3s; }
.js.is-ready .slogan-line:nth-child(2) .slogan-dot { animation-delay: 2.05s; }
.js.is-ready .slogan-line:nth-child(3) .slogan-dot { animation-delay: 4.1s; }
/* frase e botões entram durante "Futuro", não depois dele */
.js.is-ready .hero-note { animation-delay: 1.6s; }
.js.is-ready .hero-bar { animation-delay: 2s; }

@keyframes slogan-slide {
  0% { opacity: 0; transform: translateX(-1.1em); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes slogan-emerge {
  0% { opacity: 0; filter: blur(8px); letter-spacing: .02em; }
  100% { opacity: 1; filter: blur(0); }
}

/* ---------- Slogan em Bodoni Moda (Bodoni 72 e Didot como reserva nos aparelhos Apple) ---------- */
:root { --slogan: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", "Libre Bodoni", Georgia, serif; }
.slogan, .footer-slogan {
  font-family: var(--slogan);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.03em;
}
.slogan { font-size: clamp(3.5rem, 8.6vw, 9.6rem); line-height: .9; }
.slogan-line:nth-child(3) { letter-spacing: -.035em; }
@media (max-width: 57em) { .slogan { font-size: clamp(3rem, 15vw, 5.6rem); } }

/* ==========================================================================
   Jornada do cliente: botões, situações, como funciona, barra de contato
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--mono); font-size: .82rem !important; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; text-align: center;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); color: var(--on-accent); }
.btn--line { border: 1px solid var(--rule-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.wa-pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: .76rem !important; letter-spacing: .12em;
  transition: background-color .3s, color .3s;
}
.wa-pill:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 87.5em) { .folio { display: none; } .header-inner { grid-template-columns: auto 1fr auto; } .nav { justify-self: end; } }

/* Sua situação */
.situations-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.situation { background: var(--paper); transition: background-color .4s var(--ease-soft); }
.situation:hover { background: var(--paper-2); }
.situation a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: clamp(24px, 3vw, 36px); }
.situation-num { color: var(--accent); }
.situation-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.45rem, 1.05rem + 1vw, 2rem); line-height: 1.08; letter-spacing: -.012em;
  transition: transform .6s var(--ease);
}
.situation a:hover .situation-title { transform: translateX(6px); }
.situation-text { color: var(--ink-2); font-size: .95em; line-height: 1.45; }
.situation-area { margin-top: auto; padding-top: 14px; color: var(--ink); }
.situation-area b { font-weight: 400; color: var(--accent); }
.situations .before-close { margin-left: 0; }

/* Como funciona */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.step { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.step-num { color: var(--accent); }
.step-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.6rem, 1.15rem + 1.1vw, 2.2rem); line-height: 1.05; margin: 12px 0 12px;
}
.step p { color: var(--ink-2); max-width: 26rem; }
.facts {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px);
}
.facts div { border-top: 1px solid var(--rule); padding-top: 14px; }
.facts dt { color: var(--ink-3); margin-bottom: 6px; }
.facts dd { font-size: 1.05em; line-height: 1.4; }
.process-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(36px, 6vh, 56px); }

.hours { margin: 0; font-size: 1.08em; line-height: 1.35; }

/* Barra fixa de contato (celular) */
.quickbar {
  position: fixed; z-index: 44;
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; grid-template-columns: 1.35fr 1fr 1fr; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.quickbar.is-visible { transform: none; }
.quickbar a {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px;
  color: var(--paper); font-family: var(--serif); font-weight: 500;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
}
.quickbar a:first-child { background: var(--accent); color: var(--on-accent); }

@media (max-width: 68.75em) {
  .situations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 57em) {
  /* o foco do teclado não fica escondido atrás da barra fixa */
  html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wa-pill { display: none; }
  .quickbar { display: grid; }
  .footer { padding-bottom: 110px; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 40em) {
  .situations-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .quickbar { transition: none; } }

/* Capa em telas de altura média (notebooks): botões visíveis sem rolar */
@media (min-width: 57.0625em) and (max-height: 920px) {
  .hero-inner { padding-top: calc(var(--header-h) + clamp(20px, 3.5vh, 40px)); }
  .slogan { font-size: clamp(3.4rem, 7.4vw, 8.4rem); }
  .hero-note { margin-top: clamp(18px, 3vh, 30px); max-width: min(33rem, 38vw); }
  .hero-thesis { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem) !important; margin-bottom: 12px; }
  .hero-text { line-height: 1.38; }
  .hero-actions { margin-top: 18px; }
  .hero-sign { margin-top: 16px; }
}

/* Botões lado a lado e fundo suave atrás do texto da capa */
@media (min-width: 57.0625em) {
  .hero-note { position: relative; z-index: 0; }
  .hero-note::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -28px -90px -28px -60px;
    background: radial-gradient(ellipse 60% 70% at 40% 50%, var(--paper) 0%, var(--paper) 55%, transparent 100%);
    opacity: .92;
  }
  /* cada botão numa linha só; sem espaço para os dois lado a lado, o segundo desce inteiro */
  .hero-actions .btn { padding: 0 18px; font-size: .74rem !important; letter-spacing: .1em; white-space: nowrap; }
}
@media (min-width: 57.0625em) and (max-height: 920px) {
  .hero-note { max-width: min(31rem, 35vw); }
}

/* Escritório: parágrafo que apresenta a nova frente, com um fio de destaque */
.office-turn { padding-left: 20px; border-left: 1px solid var(--accent); color: var(--ink); }
.office--portrait .office-text { max-width: 38rem; }

/* Linha de alcance da capa: pode quebrar em telas médias e pequenas */
.hero-areas { white-space: normal; max-width: 44rem; }
@media (max-width: 68.75em) and (min-width: 57.0625em) { .hero-areas { display: block; } }

/* Parágrafos seguidos na seção Direito Pet */
.pet-text + .pet-text { margin-top: 1em; }

/* Rodapé: dois blocos de identificação na mesma coluna */
.footer-col p + p { margin-top: 12px; }

/* Capa: frase única que explica o slogan */
.hero-thesis--solo { font-size: clamp(1.4rem, 1.05rem + .85vw, 1.95rem) !important; line-height: 1.22; margin-bottom: 0; max-width: 30rem; }
@media (min-width: 57.0625em) and (max-height: 920px) { .hero-thesis--solo { font-size: clamp(1.35rem, 1rem + .8vw, 1.8rem) !important; } }

/* ==========================================================================
   Páginas internas: artigos, termos e privacidade
   ========================================================================== */
.doc { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); padding-bottom: clamp(88px, 13vh, 150px); }
.doc-crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-3); margin-bottom: clamp(40px, 7vh, 80px); }
.doc-crumbs a { transition: color .3s; }
.doc-crumbs a:hover { color: var(--accent); }

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 37rem) minmax(0, 1fr); /* coluna de texto com ~72 caracteres */
  column-gap: clamp(24px, 5vw, 96px);
}
.doc-head { grid-column: 2 / -1; max-width: 56rem; padding-bottom: clamp(36px, 6vh, 64px); }
.doc-head .kicker { margin-bottom: clamp(16px, 2.4vh, 24px); }
.doc-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.018em; text-wrap: balance;
}
.doc-sub {
  margin-top: clamp(18px, 3vh, 28px); max-width: 40rem;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.75rem); line-height: 1.3;
  color: var(--ink-2); text-wrap: pretty;
}
.doc-meta, .prose { border-top: 1px solid var(--rule-strong); padding-top: 28px; }
.doc-meta { grid-column: 1; grid-row: 2 / span 2; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
.doc-author { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.doc-author .mono { display: block; margin-top: 6px; color: var(--ink-3); }
.doc-facts { display: grid; gap: 14px; margin: 0; color: var(--ink-3); }
.doc-author + .doc-facts { margin-top: 24px; }
.doc-facts dd { margin: 2px 0 0; color: var(--ink); }
.doc-facts a { border-bottom: 1px solid var(--rule-strong); transition: color .3s, border-color .3s; }
.doc-facts a:hover { color: var(--accent); border-color: var(--accent); }

.prose { grid-column: 2; grid-row: 2; font-size: clamp(1.1rem, 1rem + .3vw, 1.27rem); line-height: 1.62; text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2em;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.55rem, 1.2rem + .9vw, 2.1rem); line-height: 1.12; letter-spacing: -.01em;
  text-wrap: balance;
}
.prose h2 + * { margin-top: .6em; }
.prose strong { font-weight: 600; }
.prose ul { display: grid; gap: .45em; padding-left: 1.4em; }
.prose li { position: relative; }
.prose li::before { content: ""; position: absolute; left: -1.25em; top: .8em; width: .6em; height: 1px; background: var(--accent); }
.prose a { border-bottom: 1px solid var(--rule-strong); transition: color .3s, border-color .3s; }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose--legal { font-size: clamp(1.05rem, .98rem + .22vw, 1.18rem); }
.prose--legal h2 { font-size: clamp(1.35rem, 1.1rem + .6vw, 1.7rem); }

.prose .doc-file {
  display: grid; gap: 6px; margin-top: 2em; padding: 22px 24px;
  border: 1px solid var(--rule-strong);
  transition: border-color .3s, background-color .3s;
}
.prose .doc-file:hover { border-color: var(--accent); background: var(--paper-2); color: inherit; }
.doc-file-kind { color: var(--accent); }
.doc-file-name { font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.15; }
.doc-file-act { color: var(--ink-2); }

.doc-end { grid-column: 2; grid-row: 3; margin-top: clamp(56px, 9vh, 96px); padding-top: 26px; border-top: 1px solid var(--rule-strong); display: grid; gap: 22px; }
.doc-end p { color: var(--ink-3); font-size: .95rem; max-width: 36rem; }
.doc-end-links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 62.5em) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-head, .doc-meta, .prose, .doc-end { grid-column: 1; grid-row: auto; }
  .doc-meta { position: static; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 40px; padding-bottom: 28px; }
  .doc-author + .doc-facts { margin-top: 0; }
  .doc-facts { grid-auto-flow: column; gap: 32px; }
  .prose { max-width: 37rem; }
}
@media (max-width: 32.5em) {
  .doc-facts { grid-auto-flow: row; gap: 12px; }
}

/* Página inicial: acesso aos demais artigos e à política de privacidade */
.articles-more { margin-top: clamp(28px, 5vh, 48px); }
.privacy-note a { border-bottom: 1px solid currentColor; }

@media print {
  .site-header, .footer, .doc-end-links, .skip { display: none !important; }
  .doc { padding-top: 0; }
  .doc-meta { position: static; }
  /* página inicial: tudo visível no papel (seções ainda não reveladas e áreas fechadas) e sem controles de vídeo */
  .js .reveal, .js .slogan-word, .js .slogan-dot, .js .hero-note, .js .hero-bar { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; filter: none !important; clip-path: none !important; }
  .area-panel, .area-body { transition: none !important; }
  .area-panel { grid-template-rows: 1fr !important; }
  .area-body { opacity: 1 !important; transform: none !important; }
  .quickbar, .pet-toggle, .scene-toggle, .hero-stage, .pet-media { display: none !important; }
}
.prose > :first-child { margin-top: 0; }
.nw { white-space: nowrap; }

/* Cabeçalho entre 913 e 1180 px: menu em uma linha e logotipo sem encolher */
.nav a { white-space: nowrap; }
.brand { min-width: max-content; }
@media (max-width: 73.75em) and (min-width: 57.0625em) {
  .header-inner { gap: 18px; }
  .nav { gap: clamp(10px, 1.3vw, 18px); }
  .nav a { font-size: .74rem; letter-spacing: .08em; }
  .theme-label { display: none; }
  .theme-toggle { width: 34px; padding: 0; justify-content: center; }
}

/* Quadro de informações: coluna do rótulo larga o bastante para "Áreas principais" numa linha; no celular, rótulo acima do valor */
@media (max-width: 57em) and (min-width: 32.5625em) { .dossier div { grid-template-columns: 9.5rem minmax(0, 1fr); } }
@media (max-width: 32.5em) {
  .dossier div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* Capa no celular: contador da cena numa linha só; os marcadores de progresso ocupam o espaço que sobra */
@media (max-width: 32.5em) {
  .scene-control { gap: 14px; }
  .scene-count { white-space: nowrap; flex: none; }
  .scene-ticks { flex: 1 1 auto; min-width: 0; gap: 4px; }
  .scene-ticks i { flex: 1 1 0; width: auto; min-width: 6px; max-width: 26px; }
}

/* Capa: sem contador, nome da cena nem botão à vista. A pausa (exigência de acessibilidade, WCAG 2.2.2)
   aparece só para quem navega pelo teclado, como o atalho "Pular para o conteúdo". */
.scene-toggle--teclado {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.scene-toggle--teclado:focus-visible {
  right: var(--gutter); bottom: 24px; z-index: 5;
  width: auto; height: 34px; padding: 0 14px; margin: 0; overflow: visible; clip: auto;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); color: var(--ink);
}

/* ---------- Slogan em Jost (geométrica; Avenir Next e Futura como reserva nos aparelhos Apple) ---------- */
:root { --slogan: "Jost", "Avenir Next", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif; }
.slogan, .footer-slogan {
  font-family: var(--slogan);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -.01em;
  font-feature-settings: "kern";
  /* alinhamento óptico: D, P e F têm 0,08em de respiro antes da haste; o recuo faz a haste encostar na margem */
  margin-left: -.08em;
}
/* Capa: as três palavras, a frase, os botões e a assinatura na mesma margem esquerda */
.slogan-line:nth-child(2), .slogan-line:nth-child(3) { padding-left: 0; }
.slogan-line:nth-child(3) { font-style: normal; letter-spacing: inherit; }
.hero-note { margin-left: 0; }
/* Ponto final junto da palavra: o vão natural da Jost entre "o" e "." é 0,125em; fica 0,05em */
.slogan-dot, .footer-slogan b { margin-left: -.075em; }
/* No rodapé o recuo óptico vai só nas letras; o fio abaixo do slogan continua na margem */
.footer-slogan { margin-left: 0; }
.footer-slogan > [aria-hidden] { margin-left: -.08em; }

/* Nome do advogado numa linha só (a fonte diminui só o necessário, em linhas.js) */
[data-uma-linha] { white-space: nowrap; }
/* sem isso, o texto numa linha alarga a coluna da grade em vez de a fonte diminuir */
h1[data-uma-linha], h2[data-uma-linha], p[data-uma-linha], div[data-uma-linha] { contain: inline-size; min-width: 0; max-width: 100% !important; }
/* Rodapé: a coluna do logotipo cede espaço para a do nome caber numa linha */
.footer-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, .8fr); }
@media (max-width: 57em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32.5em) { .footer-grid { grid-template-columns: 1fr; } }

/* Contato entre 913 e 1400 px: rótulo em cima, valor e ação embaixo (o link de ação espremia o e-mail, o telefone
   e o endereço, que chegava a 6 linhas a 1180 px) */
@media (max-width: 87.5em) and (min-width: 57.0625em) {
  .lines li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .lines li > span { grid-column: 1 / -1; }
}
/* até 1100 px a coluna é estreita demais para valor e ação lado a lado: a ação desce para baixo do valor */
@media (max-width: 68.75em) and (min-width: 57.0625em) {
  .lines li { grid-template-columns: minmax(0, 1fr); }
  .lines .map, .lines .copy { justify-self: start; }
}
/* Direito Pet entre 913 e 1100 px: a lista em uma coluna (em duas, cada item ficava com 170 px) */
@media (max-width: 68.75em) and (min-width: 57.0625em) { .pet-index { grid-template-columns: minmax(0, 1fr); } }
/* O botão de pausa, quando aparece pelo teclado, fica no alto da capa, sem cobrir o atalho do Direito Pet */
.scene-toggle--teclado:focus-visible { top: calc(var(--header-h) + 16px); bottom: auto; }

/* ---------- Assinatura animada no rodapé: o símbolo se monta e o nome aparece; termina no logotipo ----------
   O fundo do vídeo é um pouco mais claro (tema claro) ou mais escuro (tema escuro) que a página, e a mistura
   darken/lighten deixa passar só a figura: o retângulo do vídeo não aparece em nenhum navegador.
   A ponta do símbolo fica a 4,33% da largura do vídeo: o recuo encosta o logotipo na margem do conteúdo. */
.footer { padding-top: clamp(12px, 3vh, 32px); }
.assinatura {
  --larg: clamp(260px, 32vw, 440px);
  display: block; position: relative;
  width: var(--larg); max-width: calc(100% + var(--larg) * 0.0433);
  aspect-ratio: 992 / 656;
  margin-left: calc(var(--larg) * -0.0433);
  margin-bottom: clamp(0px, 1vh, 12px);
}
.assinatura video { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }
html[data-theme="dark"] .assinatura video { mix-blend-mode: lighten; }
.assinatura--escuro { display: none !important; }
html[data-theme="dark"] .assinatura--claro { display: none !important; }
html[data-theme="dark"] .assinatura--escuro { display: block !important; }
.assinatura:focus-visible { outline-offset: -2px; }
/* sem o logotipo fixo, a grade do rodapé fica com três colunas */
.footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, .8fr); }
@media (max-width: 57em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32.5em) { .footer-grid { grid-template-columns: 1fr; } .assinatura { --larg: min(300px, 82vw); } }

/* Rodapé centrado: assinatura animada maior no centro e o slogan menor logo abaixo, também centrado.
   O logotipo assentado ocupa de 4,3% a 96% da largura do vídeo, com o centro praticamente no meio dele. */
.assinatura {
  --larg: clamp(300px, 58vw, 720px);
  width: var(--larg); max-width: 100%;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 32.5em) { .assinatura { --larg: 100%; } }
.footer-slogan {
  font-size: clamp(1.7rem, 1.05rem + 2.5vw, 3.5rem);
  line-height: 1.1;
  text-align: center;
  padding-bottom: clamp(30px, 5vh, 56px);
}
.footer-slogan > [aria-hidden] { margin-left: 0; position: relative; }

/* Instagram no rodapé: o glifo da marca (proporções do desenho oficial), antes do nome, seguindo as regras de uso da Meta:
   cor sólida sem alteração do desenho (a mesma do nome, que também muda junto no hover e segue o alto contraste do sistema),
   tamanho mínimo de 29 px e respiro de metade do glifo (14,5 px) em volta.
   O viewBox recortado na borda externa do traço faz os 29 px serem o desenho visível. A margem negativa em cima mantém
   o nome "Instagram" na mesma linha das primeiras linhas das outras colunas; o glifo sobra um pouco acima. */
.footer-links .footer-ig {
  --ig: 29px;
  display: inline-flex; align-items: center; gap: 15px; align-self: flex-start;
  margin-top: -4.9px; margin-top: calc((1lh - var(--ig)) / 2);
  margin-bottom: 4px;
}
.ig-glifo { width: var(--ig); height: var(--ig); flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; }
.ig-glifo .ig-ponto { fill: currentColor; stroke: none; }

/* ==========================================================================
   Revisão final (10/2026)
   ========================================================================== */
/* Sem JavaScript (ou se o script parar): os botões que dependem dele não aparecem */
html:not(.js) .theme-toggle, html:not(.js) .menu-toggle, html:not(.js) .pet-toggle, html:not(.js) .copy, html:not(.js) .scene-toggle { display: none !important; }

/* Setas: um só glifo, o ↑ da EB Garamond (o mesmo em todos os aparelhos), girado conforme a direção */
.seta { display: inline-block; font-family: "EB Garamond", serif; font-style: normal; font-weight: 400; line-height: 1; }
.seta--dir { transform: rotate(90deg); }
.seta--ext { transform: rotate(45deg); }
.seta--baixo { transform: rotate(180deg); }
/* girada, a seta (estreita e alta) passa da própria caixa dos dois lados; a margem devolve o respiro */
.seta--dir, .seta--ext { margin-inline: .45em .1em; }

/* Fio entre Artigos e Como funciona (as duas seções têm o mesmo fundo) */
.process { border-top: 1px solid var(--rule); }

/* Informações do quadro do Escritório e aviso do formulário: conteúdo, não rótulo */
.dossier dd { font-size: .95rem; font-weight: 400; letter-spacing: .01em; line-height: 1.4; }
.form-status { font-size: .9rem; font-weight: 400; }

/* Botão do formulário na mesma família dos demais */
.submit { height: 48px; font-weight: 500; font-size: .82rem; letter-spacing: .12em; }

/* Linhas de até ~75 caracteres */
.privacy-note { max-width: 30em; }
@media (max-width: 57em) {
  .pet-inner > .pet-text, .pet-inner > .pet-index, .office--portrait .office-text { max-width: 34rem; }
  .topics, .area-note { max-width: 32rem; } /* o fio do ponto de atenção termina junto com os dos tópicos */
}

/* E-mail e título longos (espaçamento de texto ampliado a 320 px): quebram em vez de passar da tela */
.lines a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-title { overflow-wrap: break-word; }

/* Rodapé entre 521 e 912 px: o primeiro bloco ocupa duas linhas e os links sobem para baixo do endereço */
@media (max-width: 57em) and (min-width: 32.5625em) { .footer-grid > .footer-col:first-child { grid-row: span 2; } }

/* Contato no celular: valor com a largura toda e a ação embaixo (endereço em 3 linhas, telefone numa só) */
@media (max-width: 32.5em) {
  .lines li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .lines .map, .lines .copy { justify-self: start; }
}

/* Cabeçalho abaixo de 360 px: logotipo menor para o botão Menu caber */
@media (max-width: 22.4375em) {
  .logo { width: 128px; }
  .header-inner { gap: 10px; }
}

/* Contraste alto do Windows (cores forçadas): traços, ícones e botões que dependem de fundo continuam visíveis */
@media (forced-colors: active) {
  .menu-lines::before, .menu-lines::after, .area-icon::before, .area-icon::after { forced-color-adjust: none; background: CanvasText; }
  .theme-dot { forced-color-adjust: none; border-color: CanvasText; background: linear-gradient(90deg, CanvasText 50%, Canvas 50%); }
  .form select { forced-color-adjust: none; color: CanvasText; background-color: Canvas; border-bottom: 1px solid CanvasText; background-image: linear-gradient(45deg, transparent 50%, CanvasText 50%), linear-gradient(135deg, CanvasText 50%, transparent 50%); }
  .btn, .submit, .wa-pill, .quickbar a, .fallback-btn, .pet-toggle { border: 1px solid ButtonText; }
}
