/* La Luna Filmes | site (Ideiaria, 2026)
   Escuro, letra fina (Jost), foto alinhada, o vermelho só na luz de gravação e o dourado só na nota do Google.
   Cores só nos tokens do :root. Blocos numerados; o responsivo fica no fim. */

/* === 01. FONTES === */
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url(/fontes/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 200 500; font-display: swap;
  src: url(/fontes/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fontes/plex-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === 02. TOKENS === */
:root {
  --fundo: #0B0B0C;
  --fundo-2: #121214;
  --fundo-3: #1A1A1D;
  --luar: #F4F1EA;                       /* texto forte, botão e destaque: o branco quente da lua */
  --texto: rgba(244, 241, 234, 0.88);    /* corpo de texto */
  --texto-suave: rgba(244, 241, 234, 0.74);
  --linha: rgba(244, 241, 234, 0.14);
  --linha-forte: rgba(244, 241, 234, 0.34);
  --veu: rgba(11, 11, 12, 0.72);
  --tinta: #0B0B0C;                      /* letra sobre o botão claro */
  --rec: #E5322D;                        /* só a luz de gravação (REC e o ponto da casa no mapa) */
  --ouro: #D2B06E;                       /* só as estrelas e a nota do Google nas avaliações (Rodrigo, 12/11/2026:
                                            a marca é preto e branco, e ali é a única parte em que cabe dourado) */

  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1720px;                         /* conteúdo de 1576 px com --pad-x de 72 de cada lado (largura padrão da casa); era 1360, o Rodrigo achou estreito no monitor de 27" (12/11/2026) */
  --topo: 112px;
  --secao: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* === 03. BASE === */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;               /* nada vaza pro lado (armadilha do botão fixo no celular) */
  scroll-behavior: smooth;
  scroll-padding-top: var(--topo);
  background: var(--fundo);
}
/* com a rolagem suave do site.js ligada (roda do mouse), quem anima é o script: o smooth do CSS brigaria com ele */
html.rolagem-suave { scroll-behavior: auto; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 370;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--luar); font-weight: 260; line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }
h3 { font-weight: 400; line-height: 1.25; letter-spacing: 0; }
p { text-wrap: pretty; }
strong, b { font-weight: 500; color: var(--luar); }
::selection { background: var(--luar); color: var(--tinta); }
:focus-visible { outline: 1px solid var(--luar); outline-offset: 4px; }

.pular {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; background: var(--luar); color: var(--tinta);
  font-weight: 500; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.25s var(--ease);
}
.pular:focus { transform: none; }

.dentro { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.so-leitor {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* === 04. TIPOGRAFIA DAS SEÇÕES === */
.titulo-secao { font-size: clamp(2.1rem, 4.1vw, 3.75rem); max-width: 18ch; }
.titulo-medio { font-size: clamp(1.7rem, 2.8vw, 2.5rem); max-width: 22ch; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); font-weight: 330; line-height: 1.6; color: var(--texto); max-width: 46ch; }
.texto p + p { margin-top: 1.05em; }
.texto { max-width: 60ch; }
.nota { font-size: 0.95rem; color: var(--texto-suave); }

/* === 05. BOTÕES ===
   Dois estados só: sólido (luar cheio, letra escura) ou só borda. Retangular, como o Léo aprovou. */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid var(--luar); border-radius: 1px;
  font-size: 0.8rem; font-weight: 460; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.botao svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.botao-solido { background: var(--luar); color: var(--tinta); }
.botao-solido:hover { background: #FFFFFF; border-color: #FFFFFF; }
.botao-borda { background: transparent; color: var(--luar); border-color: var(--linha-forte); }
.botao-borda:hover { border-color: var(--luar); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.link-seta {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--luar); text-decoration: none;
  font-size: 0.8rem; font-weight: 460; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid var(--linha-forte);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-seta svg { width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.link-seta:hover { border-color: var(--luar); gap: 18px; }

/* --- link do café (convite da home pro estúdio de podcast): xícara em traço fino com vapor subindo --- */
.link-cafe { gap: 18px; padding: 10px 0 12px; line-height: 1.5; }
.link-cafe > span:not(.cafe) { max-width: 27ch; text-wrap: balance; }
.link-cafe:hover { gap: 22px; }
.cafe { flex: none; display: block; width: 50px; height: 54px; }
.link-cafe .cafe svg { width: 100%; height: 100%; overflow: visible; stroke-width: 1.5; }
.cafe-xicara { transition: transform 0.45s var(--ease); }
.link-cafe:hover .cafe-xicara { transform: translateY(-1.5px); }
/* cada fio de vapor é um trecho que corre pelo próprio caminho (pathLength 1) enquanto sobe e some; três tempos
   diferentes, então nunca andam juntos */
.cafe-vapor path { stroke-dasharray: 0.46 1; stroke-dashoffset: 0.5; opacity: 0; animation: cafe-vapor 4.6s ease-in-out infinite; }
.cafe-vapor path:nth-child(1) { animation-delay: -0.6s; }
.cafe-vapor path:nth-child(2) { animation-duration: 5.4s; animation-delay: -2.1s; }
.cafe-vapor path:nth-child(3) { animation-duration: 4.9s; animation-delay: -3.4s; }
@keyframes cafe-vapor {
  0%   { stroke-dashoffset: 0.5; opacity: 0; transform: translateY(2px); }
  20%  { opacity: 0.9; }
  72%  { opacity: 0.5; }
  100% { stroke-dashoffset: -1; opacity: 0; transform: translateY(-3px); }
}

/* === 06. TOPO === */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--topo);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topo.rolou { height: 92px; background: rgba(11, 11, 12, 0.94); border-bottom-color: var(--linha); }
.topo-dentro { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.topo-marca { display: block; flex: none; }
/* a marca tem traço fino e o "Filmes" pequeno: abaixo de uns 60 px de altura ela deixa de ser lida */
/* no computador a marca vai grande (pedido do Rodrigo, 11/11/2026: 66 px ainda ficava pequena); ao rolar, o topo afina */
.topo-marca img { width: auto; height: 86px; transition: height 0.4s var(--ease); }
.topo.rolou .topo-marca img { height: 66px; }
.topo-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.topo-nav a {
  position: relative; display: block; padding: 10px 0;
  font-size: 0.74rem; font-weight: 450; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--texto); text-decoration: none; transition: color 0.25s;
}
.topo-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--luar); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.topo-nav a:hover, .topo-nav a[aria-current] { color: var(--luar); }
.topo-nav a:hover::after, .topo-nav a[aria-current]::after { transform: scaleX(1); }
.topo-menu {
  display: none; align-items: center; gap: 12px; height: 46px; padding: 0 2px 0 14px;
  font-size: 0.74rem; font-weight: 450; letter-spacing: 0.16em; text-transform: uppercase; color: var(--luar);
}
.topo-menu-ico { position: relative; width: 26px; height: 14px; }
.topo-menu-ico i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.topo-menu-ico i:first-child { top: 3px; }
.topo-menu-ico i:last-child { top: 10px; }
.menu-aberto .topo-menu-ico i:first-child { top: 7px; transform: rotate(45deg); }
.menu-aberto .topo-menu-ico i:last-child { top: 7px; transform: rotate(-45deg); }

/* === 07. MENU EM TELA CHEIA (celular e tablet) === */
.menu {
  position: fixed; inset: 0; z-index: 35;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--topo) + 24px) var(--pad-x) max(32px, env(safe-area-inset-bottom));
  background: var(--fundo);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  overflow-y: auto;
}
.menu-aberto .menu { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.menu-aberto { overflow: hidden; }
.menu-lista li { border-bottom: 1px solid var(--linha); }
.menu-lista a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0;
  font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 250; line-height: 1.15; color: var(--luar); text-decoration: none;
}
.menu-lista a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.menu-lista small { font-family: var(--mono); font-size: 0.72rem; color: var(--texto-suave); letter-spacing: 0.04em; }
.menu-pe { margin-top: 40px; display: grid; gap: 6px; font-size: 1rem; }
.menu-pe a { text-decoration: none; color: var(--texto); }

/* === 08. BOTÃO FLUTUANTE (WhatsApp) === */
.flutua {
  position: fixed; z-index: 30;
  right: max(32px, env(safe-area-inset-right));
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 24px 0 20px;
  background: var(--luar); color: var(--tinta); border-radius: 1px;
  font-size: 0.8rem; font-weight: 480; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), background-color 0.3s;
}
.flutua:hover { background: #FFFFFF; }
.flutua svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flutua.some, .menu-aberto .flutua { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }

/* === 09. ABERTURA (hero) ===
   Foto ou vídeo em tela cheia, com o quadro do visor da câmera por cima: os cantos, a luz de REC,
   o timecode correndo e a posição da casa. */
.heroi {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--topo) + 40px) 0 clamp(72px, 9vh, 112px);
  overflow: hidden;
}
.heroi-midia, .heroi-midia img, .heroi-midia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heroi-midia { z-index: -2; background: var(--fundo-2); }
.heroi-midia video { opacity: 0; transition: opacity 1.2s var(--ease); }
.heroi-midia video.rodando { opacity: 1; }
.heroi::before {   /* véu: escurece em cima (pro topo) e embaixo (pro texto) */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.7) 0%, rgba(11, 11, 12, 0) 26%),
    linear-gradient(0deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.6) 36%, rgba(11, 11, 12, 0.12) 70%),
    linear-gradient(90deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0) 60%);
}
.heroi::after {    /* grão de filme, bem leve */
  content: ''; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background: url(/img/marca/grao.webp) repeat; background-size: 180px; opacity: 0.12; mix-blend-mode: overlay;
  animation: grao 0.9s steps(4) infinite;
}
/* celular e tela de toque: o grão fica parado (a mistura de camadas animada em cima do vídeo pesa na tela e na bateria) */
@media (hover: none) { .heroi::after { animation: none; } }
@keyframes grao {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } 100% { transform: translate(0, 0); }
}
.heroi-quadro {   /* o visor */
  position: absolute; z-index: 0; pointer-events: none;
  top: calc(var(--topo) + 18px); bottom: 22px;
  left: max(calc(var(--pad-x) - 14px), 10px); right: max(calc(var(--pad-x) - 14px), 10px);
}
.canto { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(244, 241, 234, 0.6); }
.canto:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.canto:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.canto:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.canto:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.visor-rec {
  position: absolute; top: 16px; left: 22px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--luar);
}
.visor-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }
.visor-tc { font-variant-numeric: tabular-nums; color: var(--texto); }
.visor-info {
  position: absolute; bottom: 16px; right: 22px; text-align: right;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--texto); line-height: 1.6;
}
.heroi-texto { position: relative; z-index: 1; }
/* título da abertura mais contido (pedido de 11/11/2026: o Léo gosta de coisa limpa); continua sendo o h1 da página */
.heroi h1 { font-size: clamp(2.3rem, 4.3vw, 4.4rem); font-weight: 240; line-height: 0.99; letter-spacing: -0.016em; max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.heroi--pagina h1 { font-size: clamp(2.2rem, 3.9vw, 4rem); max-width: 18ch; }
.heroi-sub {
  margin-top: 26px; max-width: 52ch;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem); font-weight: 380; line-height: 1.55; color: var(--luar);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}
.heroi .acoes { margin-top: 36px; }
.heroi-rolar {
  position: absolute; left: 50%; bottom: 28px; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-suave);
  text-decoration: none;
}
.heroi-rolar span { position: relative; width: 1px; height: 46px; background: var(--linha); overflow: hidden; }
.heroi-rolar span::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--luar);
  animation: rolar 2.2s var(--ease) infinite;
}
@keyframes rolar { 0% { top: -40%; } 70%, 100% { top: 100%; } }

/* abertura da foto corporativa: os retratos são em pé, então em vez de uma foto de fundo cortada em tela
   cheia, o texto em cima e uma tira de retratos inteiros passando devagar embaixo (o site.js emenda a tira) */
.heroi--retratos {
  min-height: 0; display: block;
  padding: calc(var(--topo) + clamp(56px, 9vh, 104px)) 0 clamp(56px, 7vh, 88px);
}
.heroi--retratos::before { display: none; }
.heroi-retratos-texto { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px clamp(24px, 4vw, 64px); align-items: end; }
.heroi-retratos-texto h1 { grid-column: 1 / span 7; }
.heroi-retratos-lado { grid-column: 8 / -1; padding-bottom: 6px; }
.heroi--retratos .heroi-sub { margin-top: 0; }
.heroi--retratos .acoes { margin-top: 30px; }
.heroi--retratos .migalhas { margin-top: 30px; }
.tira { position: relative; margin-top: clamp(44px, 6vh, 72px); overflow: hidden; }
.tira-trilho { display: flex; gap: 10px; width: max-content; }
.tira-lista { display: flex; gap: 10px; }
.tira-foto { position: relative; height: clamp(250px, 40vh, 440px); aspect-ratio: var(--p, 0.6667); overflow: hidden; background: var(--fundo-3); }
.tira-foto img { width: 100%; height: 100%; object-fit: cover; }
.tira.rodando .tira-trilho { animation: tira 90s linear infinite; }
.tira.rodando:hover .tira-trilho { animation-play-state: paused; }
@keyframes tira { to { transform: translateX(calc(-50% - 5px)); } }
.tira:not(.rodando) { overflow-x: auto; scrollbar-width: none; }
.tira:not(.rodando)::-webkit-scrollbar { display: none; }

/* migalhas (só nas páginas de serviço, embaixo do quadro, à direita) */
.heroi .migalhas { margin-top: 44px; }
.migalhas ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.migalhas li + li::before { content: '/'; margin-right: 8px; color: var(--texto-suave); }
.migalhas a { color: var(--texto); text-decoration: none; }
.migalhas a:hover { color: var(--luar); text-decoration: underline; }
.migalhas [aria-current] { color: var(--luar); }

/* === 10. SEÇÕES === */
.secao { position: relative; padding: var(--secao) 0; }
.secao--2 { background: var(--fundo-2); }
.secao + .secao:not(.secao--2):not(.secao--sem-linha)::before {
  content: ''; position: absolute; top: 0; left: var(--pad-x); right: var(--pad-x); max-width: calc(var(--max) - 2 * var(--pad-x)); margin: 0 auto;
  height: 1px; background: var(--linha);
}
.abre { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px clamp(24px, 4vw, 64px); align-items: end; }
.abre > :first-child { grid-column: 1 / span 7; }
.abre > :last-child { grid-column: 8 / -1; }
.abre--topo { align-items: start; }
.bloco-cabeca { margin-bottom: clamp(44px, 6vw, 80px); }
.bloco-cabeca .lead { margin-top: 24px; }

/* === 11. LISTA DE SERVIÇOS (editorial, fio fino) === */
.servicos { border-top: 1px solid var(--linha); counter-reset: servico; }
.servico { border-bottom: 1px solid var(--linha); }
.servico a {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 44px; gap: 24px;
  padding: clamp(26px, 3.2vw, 40px) 0; text-decoration: none;
}
.servico-n { font-family: var(--mono); font-size: 0.78rem; color: var(--luar); letter-spacing: 0.06em; }
.servico h3 { font-size: clamp(1.7rem, 3.1vw, 2.9rem); font-weight: 250; line-height: 1.08; transition: transform 0.5s var(--ease); }
.servico p { font-size: 1.02rem; color: var(--texto-suave); max-width: 40ch; transition: color 0.3s; }
.servico-seta { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linha-forte); border-radius: 50%; color: var(--luar); transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s; }
.servico-seta svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* a foto do serviço acompanha o mouse, inteira e na proporção dela (o site.js põe --cx e --cy na lista).
   Fica acima do ponteiro, pra não cobrir a linha que a pessoa está lendo. */
.servico-foto {
  position: fixed; z-index: 20; left: var(--cx, 50vw); top: var(--cy, 50vh);
  width: var(--w, 280px); height: var(--h, 187px);
  transform: translate(-50%, calc(-100% - 28px)) scale(0.94); opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  overflow: hidden; background: var(--fundo-3); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95);
}
.servico-foto img { width: 100%; height: 100%; object-fit: cover; }
.servicos:not(.segue) .servico-foto { display: none; }
@media (hover: hover) and (min-width: 1101px) {
  .servico a:hover h3 { transform: translateX(10px); }
  .servico a:hover p { color: var(--texto); }
  .servico a:hover .servico-seta { background: var(--luar); border-color: var(--luar); color: var(--tinta); }
  .servicos.segue .servico a:hover .servico-foto { opacity: 1; transform: translate(-50%, calc(-100% - 28px)) scale(1); }
  /* perto do topo da tela não cabe em cima: a foto vai pra baixo do ponteiro */
  .servicos.abaixo .servico-foto { transform: translate(-50%, 28px) scale(0.94); }
  .servicos.segue.abaixo .servico a:hover .servico-foto { transform: translate(-50%, 28px) scale(1); }
}

/* === 12. FOTOS ===
   Regra do Léo (11/11/2026): foto nunca aparece cortada, nem na miniatura. Toda figura tem a proporção da
   própria foto (--p, que o montar.py escreve), e numa linha as fotos ficam com a mesma altura variando só a
   largura: flex-grow = proporção e aspect-ratio = proporção fecham a conta sem sobrar nem cortar. */
.foto { position: relative; overflow: hidden; background: var(--fundo-3); aspect-ratio: var(--p, 1.5); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.legenda { margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--texto-suave); }

/* faixa: uma linha de fotos inteiras de ponta a ponta */
.faixa { display: flex; gap: 10px; }
.faixa figure { position: relative; flex: var(--p, 1.5) 1 0; aspect-ratio: var(--p, 1.5); min-width: 0; overflow: hidden; background: var(--fundo-3); }
.faixa img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.faixa figure:hover img { transform: scale(1.03); }
.faixa--sangra { padding: 0 10px; }

/* par, dupla e mosaico: as fotos menores das seções da home, na mesma lógica */
.par, .dupla, .mosaico-linha { display: flex; gap: 10px; }
.par { margin-top: 10px; }
.par > .foto, .dupla > .foto, .mosaico-linha > .foto { flex: var(--p, 1.5) 1 0; min-width: 0; }
.mosaico { display: grid; gap: 10px; }
.mosaico button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.mosaico img { transition: transform 1s var(--ease); }
.mosaico button:hover img { transform: scale(1.035); }

/* galeria: linhas justificadas (o montar.py agrupa), abre em tela cheia no clique */
.galeria { display: grid; gap: 10px; }
.galeria-linha { display: flex; gap: 10px; }
.galeria figure { position: relative; flex: var(--p, 1.5) 1 0; aspect-ratio: var(--p, 1.5); min-width: 0; overflow: hidden; background: var(--fundo-3); }
.galeria-sobra { flex: var(--p) 1 0; }
.galeria button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity 0.4s; }
.galeria button:hover img { transform: scale(1.035); }
.js .galeria:not(.aberta) .galeria-linha.mais { display: none; }
.galeria-pe { margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.galeria.aberta + .galeria-pe { display: none; }

/* === 13. DIVIDIDA (texto de um lado, foto do outro) === */
.dividida { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px clamp(28px, 4vw, 72px); align-items: center; }
.dividida-texto { grid-column: 1 / span 5; }
.dividida-midia { grid-column: 7 / -1; }
.dividida--inverte .dividida-texto { grid-column: 8 / -1; grid-row: 1; }
.dividida--inverte .dividida-midia { grid-column: 1 / span 6; grid-row: 1; }
.dividida-texto .titulo-secao, .dividida-texto .titulo-medio { margin-bottom: 26px; }
.dividida-texto .acoes, .dividida-texto .link-seta { margin-top: 34px; }
/* home, podcast: o mosaico de quatro fotos pede mais largura que a foto única */
.dividida--midia-larga .dividida-texto { grid-column: 1 / span 5; }
.dividida--midia-larga .dividida-midia { grid-column: 6 / -1; }

/* === 14. LISTA COM FIO (o que tem, o que inclui) === */
.lista-fio { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 72px); border-top: 1px solid var(--linha); }
.lista-fio--uma { grid-template-columns: 1fr; }
.lista-fio li { padding: 26px 0 28px; border-bottom: 1px solid var(--linha); }
.lista-fio h3 { font-size: 1.22rem; font-weight: 420; margin-bottom: 8px; }
.lista-fio p { color: var(--texto); font-size: 1.02rem; }
.lista-curta { columns: 2; column-gap: 40px; }
.lista-curta li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--linha); font-size: 1.05rem; }

/* === 15. PASSO A PASSO (número sólido, nunca vazado) === */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.passo { border-top: 1px solid var(--linha-forte); padding-top: 28px; }
.passo-n { display: block; font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 200; line-height: 1; color: var(--luar); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.passo h3 { font-size: 1.35rem; margin-bottom: 10px; }

/* === 16. CRÉDITOS (podcasts gravados na casa) ===
   Como os créditos no fim de um filme: a lista sobe devagar numa janela que some em cima e embaixo.
   Parado com movimento reduzido (aí a janela vira lista inteira). */
.creditos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px clamp(28px, 4vw, 72px); align-items: center; }
.creditos-texto { grid-column: 1 / span 5; }
.creditos-texto .lead { margin-top: 24px; }
.creditos-texto .link-seta { margin-top: 34px; }
.creditos > :last-child { grid-column: 7 / -1; }
.creditos-rolo {
  position: relative; height: clamp(360px, 44vw, 520px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.creditos-trilho { animation: creditos 34s linear infinite; }
.creditos-rolo:hover .creditos-trilho { animation-play-state: paused; }
@keyframes creditos { to { transform: translateY(-50%); } }
.creditos-lista li {
  display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--linha);
}
.creditos-n { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.creditos-nome { font-size: clamp(1.6rem, 2.9vw, 2.6rem); font-weight: 240; line-height: 1.12; color: var(--luar); }

/* === 17. PERGUNTAS === */
.perguntas { border-top: 1px solid var(--linha); }
.pergunta { border-bottom: 1px solid var(--linha); }
.pergunta summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-size: clamp(1.12rem, 1.6vw, 1.32rem); font-weight: 400; color: var(--luar); line-height: 1.35;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary i { position: relative; flex: none; width: 18px; height: 18px; }
.pergunta summary i::before, .pergunta summary i::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.pergunta summary i::after { transform: rotate(90deg); }
.pergunta[open] summary i::after { transform: rotate(0); }
.pergunta-resp { padding: 0 0 30px; max-width: 70ch; }
.pergunta-resp p + p { margin-top: 0.8em; }

/* === 18. CONTATO === */
.contato { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px clamp(28px, 4vw, 72px); align-items: start; }
.contato-texto { grid-column: 1 / span 5; }
.contato-mapa { grid-column: 7 / -1; }
.contato-titulo { font-size: clamp(2.8rem, 6.2vw, 6rem); font-weight: 220; line-height: 1; }
.contato .lead { margin-top: 26px; }
.contato .acoes { margin-top: 38px; }
.contato-dados { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--linha); padding-top: 30px; }
.contato-dados dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--texto-suave); margin-bottom: 6px; }
.contato-dados dd { font-size: 1.02rem; color: var(--luar); }
.contato-dados a { text-decoration: none; }
.contato-dados a:hover { text-decoration: underline; }
.contato-dados address { font-style: normal; }

/* mapa da região (OpenStreetMap, 1 km = 100 unidades; quem gera é o _ferramentas/mapa.py).
   O fundo (ruas, avenidas, rio, trem, metrô) é um arquivo à parte e fica no cache. Por cima: anéis de 1 em 1 km,
   os bairros, as duas estações mais perto, a casa piscando e uma linha que sai da casa e se desenha até um
   destino de cada vez (o site.js troca o destino; passar o mouse num destino ou na lista também troca). */
/* as bordas do desenho somem num degradê, sem moldura */
.mapa-vivo {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.mapa { width: 100%; height: auto; font-family: var(--sans); overflow: hidden; }
.mapa text { paint-order: stroke; stroke: var(--fundo-2); stroke-width: 6px; stroke-linejoin: round; }
.mapa-fundo { opacity: 0; transition: opacity 1.6s var(--ease); }
.mapa-aneis circle { fill: none; stroke: var(--linha-forte); stroke-width: 1; stroke-dasharray: 1; opacity: 0.6; }
.mapa-aneis text { fill: var(--texto-suave); font: 400 13px var(--mono); letter-spacing: 0.06em; }
.mapa-vias text { fill: var(--texto-suave); font-size: 14px; font-weight: 400; letter-spacing: 0.03em; }
.mapa-bairros text { fill: var(--texto-suave); font-size: 15px; font-weight: 340; }
.mapa-estacoes rect { fill: var(--fundo-2); stroke: var(--luar); stroke-width: 1.4; }
.mapa-estacoes text { fill: var(--luar); font-size: 14.5px; font-weight: 420; }
.mapa-estacoes .mapa-estacoes-linha { fill: var(--texto-suave); font: 400 12px var(--mono); letter-spacing: 0.04em; }
.mapa-rotas line { stroke: var(--luar); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 1.3s var(--ease), opacity 0.5s; }
.mapa-rotas line.ativo { stroke-dashoffset: 0; opacity: 0.9; }
.mapa-destino circle { fill: var(--luar); transition: transform 0.5s var(--ease); }
.mapa-destino .mapa-alvo { fill: none; stroke: var(--luar); stroke-width: 1.2; opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center;
  transition: opacity 0.4s, transform 0.6s var(--ease); }
.mapa-destino text { fill: var(--luar); font-size: 19px; font-weight: 330; transition: opacity 0.4s; }
.mapa-destino .mapa-km { fill: var(--texto-suave); font: 400 13.5px var(--mono); letter-spacing: 0.04em; }
.mapa-destino { cursor: default; }
.escolhendo .mapa-destino:not(.ativo) text { opacity: 0.55; }
.mapa-destino.ativo .mapa-alvo { opacity: 0.9; transform: scale(1); }
.mapa-destino.ativo .mapa-km { fill: var(--luar); }
.mapa-ponto { fill: var(--rec); }
.mapa-pulso { fill: none; stroke: var(--rec); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulso 3s ease-out infinite; }
.mapa-pulso--2 { animation-delay: 1.5s; }
@keyframes pulso { from { transform: scale(1); opacity: 0.9; } to { transform: scale(5.2); opacity: 0; } }
.mapa-casa-t { fill: var(--luar); font-size: 21px; font-weight: 440; }
.mapa-casa-r { fill: var(--texto); font: 400 13.5px var(--mono); letter-spacing: 0.04em; }
.mapa-legenda path, .mapa-norte path { fill: none; stroke: var(--luar); stroke-width: 1.4; stroke-linecap: round; }
.mapa-leg-trem { stroke-dasharray: 7 5; opacity: 0.7; }
.mapa-leg-metro { stroke-dasharray: 2 4; opacity: 0.7; }
.mapa-legenda text, .mapa-norte text { fill: var(--texto-suave); font: 400 13px var(--mono); letter-spacing: 0.04em; }
/* entrada: o fundo aparece, os anéis se desenham de dentro pra fora e os destinos surgem um a um */
.js .mapa-vivo .mapa-aneis circle { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--i) * 0.12s); }
.js .mapa-vivo .mapa-destino { opacity: 0; transition: opacity 0.6s var(--ease) calc(0.5s + var(--i) * 0.09s); }
.js .mapa-vivo .mapa-vias, .js .mapa-vivo .mapa-bairros, .js .mapa-vivo .mapa-estacoes { opacity: 0; transition: opacity 1.2s var(--ease) 0.6s; }
.mapa-vivo.no-ar .mapa-fundo, .mapa-vivo.no-ar .mapa-vias, .mapa-vivo.no-ar .mapa-bairros,
.mapa-vivo.no-ar .mapa-estacoes, .mapa-vivo.no-ar .mapa-destino { opacity: 1; }
.mapa-vivo.no-ar .mapa-aneis circle { stroke-dashoffset: 0; }
.mapa-vivo:not(.no-ar) .mapa-fundo { opacity: 0; }
html:not(.js) .mapa-fundo { opacity: 1; }

.distancias { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--linha); }
.distancias li { padding: 14px 10px 12px 0; border-bottom: 1px solid var(--linha); cursor: default; transition: opacity 0.35s; }
.distancias b { display: block; font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 250; color: var(--luar); line-height: 1.15; font-variant-numeric: tabular-nums; }
.distancias span { display: block; font-size: 0.86rem; color: var(--texto-suave); line-height: 1.35; }
.escolhendo .distancias li:not(.ativo) { opacity: 0.5; }
.distancias li.ativo span { color: var(--luar); }
.mapa-credito { margin-top: 14px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--texto-suave); }
.mapa-credito a { color: var(--texto); }

/* faixa de chamada no fim das páginas de serviço */
.chamada { text-align: center; }
.chamada .titulo-secao { margin: 0 auto; max-width: 20ch; }
.chamada .lead { margin: 24px auto 0; }
.chamada .acoes { justify-content: center; margin-top: 40px; }

/* === 19. AVALIAÇÕES ===
   Avaliações reais do Google (_fonte/avaliacoes.json; sem nenhuma, a seção some). No computador vira um
   palco: o elenco de quem escreveu de um lado e, do outro, a frase grande, que entra em foco palavra por
   palavra, como a lente puxando o foco. Um fio corre embaixo do nome enquanto a frase está no ar (segura com
   o mouse em cima da frase, com o foco do teclado e fora da tela); clicou num nome, o palco para de trocar
   sozinho. No celular as avaliações passam de lado, com o dedo. Sem JavaScript, viram uma lista. */
.avaliacoes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 72px); }
.avaliacoes-cabeca {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px 48px; margin-bottom: clamp(52px, 6.5vw, 96px);
}
.avaliacoes-nota { display: flex; align-items: center; gap: 22px; }
.avaliacoes-media { font-size: clamp(3.8rem, 6.4vw, 6rem); font-weight: 200; line-height: 0.86; letter-spacing: -0.03em; color: var(--ouro); font-variant-numeric: tabular-nums; }
.avaliacoes-resumo { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; line-height: 1.35; color: var(--texto-suave); }
.estrelas { display: inline-flex; gap: 4px; color: var(--ouro); }
.estrelas svg { width: 14px; height: 14px; fill: currentColor; }
.avaliacoes-lado { grid-column: 1 / span 4; }
.avaliacoes-lado .link-seta { margin-top: 36px; }
.palco { grid-column: 6 / -1; min-width: 0; }

/* o elenco: quem escreveu, numerado como nos créditos */
.elenco { border-top: 1px solid var(--linha); }
.elenco li { position: relative; border-bottom: 1px solid var(--linha); }
.elenco li::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--luar); transform: scaleX(0); transform-origin: left center;
}
.elenco button {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; gap: 14px;
  padding: 17px 0; text-align: left; color: var(--texto-suave); transition: color 0.35s var(--ease);
}
.elenco-n { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.elenco-nome { font-size: 1.1rem; font-weight: 370; line-height: 1.3; }
.elenco-o { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-align: right; }
.elenco button:hover, .elenco .ativa button { color: var(--luar); }
.elenco .ativa::after { transform: scaleX(1); }
/* trocando sozinho: o fio mede o tempo de leitura da frase e, no fim, o site.js passa pra próxima */
.avaliacoes.auto .elenco .ativa::after { transform: scaleX(0); animation: avaliacao-tempo var(--dur, 10s) linear forwards; }
.avaliacoes.auto.parado .elenco .ativa::after { animation-play-state: paused; }
@keyframes avaliacao-tempo { to { transform: scaleX(1); } }
html:not(.js) .elenco { display: none; }

/* a frase: aspas penduradas pra fora da margem, tamanho pelo comprimento do texto */
.palco-trilho { position: relative; display: grid; gap: 64px; }
.avaliacao blockquote p {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem); font-weight: 270; line-height: 1.42; letter-spacing: -0.005em;
  color: var(--luar); text-indent: -0.42em;
}
.avaliacao--curta blockquote p { font-size: clamp(1.75rem, 2.9vw, 2.7rem); font-weight: 250; line-height: 1.3; }
.avaliacao--longa blockquote p { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 300; line-height: 1.55; }
.avaliacao figcaption { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 0.98rem; color: var(--texto-suave); }
.avaliacao figcaption strong { font-weight: 420; }
.avaliacao-o { padding-left: 18px; border-left: 1px solid var(--linha-forte); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.palco-pe { display: none; }

/* o palco (computador, com JavaScript): todas no mesmo lugar, a mais alta dá a altura e nada pula */
@media (min-width: 901px) {
  .js .palco-trilho { gap: 0; }
  .js .palco .avaliacao { grid-area: 1 / 1; align-self: start; visibility: hidden; transition: visibility 0s linear 0.45s; }
  .js .palco .avaliacao.ativa { visibility: visible; transition-delay: 0s; }
  .js .palco .pal { opacity: 0; filter: blur(10px); transition: opacity 0.4s var(--ease), filter 0.4s var(--ease); }
  .js .palco .ativa .pal {
    opacity: 1; filter: none; transition-duration: 1s, 1.15s;
    transition-delay: calc(0.42s + var(--i, 0) * var(--passo, 24ms));
  }
  .js .palco figcaption { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
  .js .palco .ativa figcaption { opacity: 1; transform: none; transition-duration: 0.9s; transition-delay: 0.8s; }
}

/* contador e setas (celular) */
.palco-conta { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.palco-conta b { font-weight: 400; color: var(--luar); }
.palco-botoes { display: flex; gap: 10px; }
.palco-botao { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--linha-forte); border-radius: 50%; color: var(--luar); transition: border-color 0.25s, opacity 0.25s; }
.palco-botao:hover { border-color: var(--luar); }
.palco-botao:disabled { opacity: 0.32; cursor: default; border-color: var(--linha-forte); }
.palco-botao svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.palco-botao[data-palco='ant'] svg { transform: scaleX(-1); }

/* === 20. QUEM SOMOS === */
.assinatura { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; }
.assinatura strong { font-size: 1.2rem; font-weight: 420; }
.assinatura span { font-size: 0.95rem; color: var(--texto-suave); }

/* === 21. RODAPÉ === */
.rodape { border-top: 1px solid var(--linha); padding: clamp(64px, 8vw, 104px) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--fundo); }
.rodape-grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px 40px; }
.rodape-marca img { width: auto; height: 76px; }
.rodape-marca p { margin-top: 22px; font-size: 0.98rem; color: var(--texto-suave); max-width: 30ch; }
.rodape h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; color: var(--texto-suave); margin-bottom: 16px; text-transform: none; }
.rodape li { padding: 5px 0; }
.rodape a, .rodape button { color: var(--texto); text-decoration: none; font-size: 0.98rem; text-align: left; }
.rodape a:hover, .rodape button:hover { color: var(--luar); text-decoration: underline; }
.rodape address { font-style: normal; font-size: 0.98rem; color: var(--texto); line-height: 1.6; }
.rodape-base { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 0.88rem; color: var(--texto-suave); }
.rodape-base nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rodape-base a, .rodape-base button { font-size: 0.88rem; color: var(--texto-suave); }
/* redes com ícone (desenhado pro site, traço 1.6) */
.rodape-redes { display: flex; gap: 10px; margin-top: 20px; }
.rodape-redes li { padding: 0; }
.rodape .rodape-redes a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--linha-forte); border-radius: 50%; color: var(--luar); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s; }
.rodape .rodape-redes a:hover { background: var(--luar); border-color: var(--luar); color: var(--tinta); text-decoration: none; }
.rodape-redes svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rodape-redes svg .cheio { fill: currentColor; stroke: none; }

/* === 22. TELA CHEIA DAS FOTOS === */
.luz {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 64px 72px 24px; background: rgba(11, 11, 12, 0.97);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.luz.on { opacity: 1; }
.luz[hidden] { display: none; }
.luz-foto { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; }
.luz-pe { display: flex; align-items: center; gap: 22px; padding-top: 18px; font-family: var(--mono); font-size: 0.74rem; color: var(--texto); letter-spacing: 0.06em; }
.luz-botao { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--linha-forte); border-radius: 50%; color: var(--luar); transition: border-color 0.25s; }
.luz-botao:hover { border-color: var(--luar); }
.luz-botao svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.luz-fechar { position: absolute; top: 16px; right: 16px; }
.luz-aberta { overflow: hidden; }

/* === 23. COOKIES ===
   Aviso da primeira visita e painel de preferências (quem monta é o js/cookies.js). Aceitar e recusar
   com o mesmo peso, lado a lado (orientação da ANPD). */
.cookies {
  position: fixed; z-index: 60;
  left: max(var(--pad-x), env(safe-area-inset-left));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  width: min(440px, calc(100% - 2 * var(--pad-x)));
  padding: 26px 26px 22px; border-radius: 2px;
  background: var(--fundo-3); border: 1px solid var(--linha-forte);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.cookies.on { opacity: 1; transform: none; }
.cookies h2 { font-size: 1.2rem; font-weight: 420; line-height: 1.3; }
.cookies p { margin-top: 8px; font-size: 0.94rem; line-height: 1.55; }
.cookies a, .cookies-caixa a { color: var(--luar); }
.cookies-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookies-botoes .botao, .cookies-pe .botao { flex: 1 1 auto; min-height: 48px; padding: 0 18px; font-size: 0.74rem; }
.cookies-escolher { margin-top: 14px; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; color: var(--texto); }
.cookies-escolher:hover { color: var(--luar); }
.cookies-painel {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: 20px var(--pad-x); background: rgba(11, 11, 12, 0.78);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.cookies-painel.on { opacity: 1; }
.cookies-caixa {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 32px 30px 26px; border-radius: 2px; background: var(--fundo-3); border: 1px solid var(--linha-forte);
  transform: translateY(14px); transition: transform 0.45s var(--ease);
}
.cookies-painel.on .cookies-caixa { transform: none; }
.cookies-caixa h2 { padding-right: 48px; font-size: 1.5rem; font-weight: 300; }
.cookies-caixa > p { margin-top: 10px; font-size: 0.98rem; }
.cookies-fechar { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linha-forte); }
.cookies-fechar:hover { border-color: var(--luar); }
.cookies-fechar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cookies-grupos { margin-top: 18px; border-top: 1px solid var(--linha); }
.cookies-grupo { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 6px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--linha); }
.cookies-grupo h3 { grid-column: 1; grid-row: 1; font-size: 1.05rem; font-weight: 450; }
.cookies-grupo p { grid-column: 1 / -1; font-size: 0.92rem; line-height: 1.55; }
.cookies-grupo small { grid-column: 1 / -1; font-size: 0.82rem; color: var(--texto-suave); }
.cookies-sempre { grid-column: 2; grid-row: 1; font-size: 0.84rem; color: var(--texto-suave); white-space: nowrap; }
.cookies-chave {
  grid-column: 2; grid-row: 1; appearance: none; -webkit-appearance: none; margin: 0; position: relative;
  width: 48px; height: 28px; border-radius: 999px; cursor: pointer; border: 1px solid var(--linha-forte); background: transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.cookies-chave::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--texto); transition: transform 0.3s var(--ease), background-color 0.25s; }
.cookies-chave:checked { background: var(--luar); border-color: var(--luar); }
.cookies-chave:checked::after { transform: translateX(20px); background: var(--fundo); }
.cookies-pe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cookies-mais { margin-top: 16px; font-size: 0.88rem; color: var(--texto-suave); }
html.cookies-aberto { overflow: hidden; }
.cookies-visivel .flutua { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }

/* === 24. PÁGINAS DE TEXTO (privacidade, 404) === */
.pagina-texto { max-width: 780px; margin: 0 auto; padding: calc(var(--topo) + 72px) var(--pad-x) 112px; }
.pagina-texto h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.pagina-texto h2 { font-size: 1.5rem; font-weight: 330; margin: 52px 0 14px; }
.pagina-texto p, .pagina-texto li { margin-top: 12px; }
.pagina-texto ul { list-style: disc; padding-left: 1.2em; }
.pagina-data { font-family: var(--mono); font-size: 0.78rem; color: var(--texto-suave); margin-top: 16px !important; }
.pagina-intro { font-size: 1.2rem; font-weight: 330; margin-top: 28px !important; }
.pagina-tabela { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 0.98rem; }
.pagina-tabela th, .pagina-tabela td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
.pagina-tabela thead th { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; color: var(--texto-suave); }
.pagina-tabela tbody th { font-weight: 400; color: var(--luar); }
.pagina-acoes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.erro { min-height: 100svh; display: flex; align-items: center; }

/* === 25. ENTRADA SUAVE === */
.js .revelar { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .revelar.visivel { opacity: 1; transform: none; }
.js .revelar[data-atraso='1'] { transition-delay: 0.12s; }
.js .revelar[data-atraso='2'] { transition-delay: 0.24s; }
.js .revelar[data-atraso='3'] { transition-delay: 0.36s; }

/* === 26. RESPONSIVO === */
/* menu do topo com 8 itens (Avaliações entrou em 12/11/2026): medido com a Jost, ele estoura até uns 1180 px
   de largura e sobra pelo menos 50 px de 1241 em diante. Abaixo disso, o botão Menu e a tela cheia. */
@media (max-width: 1240px) {
  .topo-nav { display: none; }
  .topo-menu { display: inline-flex; }
}

@media (max-width: 1180px) {
  .rodape-grade { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  :root { --topo: 78px; }
  .topo, .topo.rolou { height: var(--topo); }
  .topo-marca img, .topo.rolou .topo-marca img { height: 54px; }
  .servico a { grid-template-columns: 48px minmax(0, 1fr) 44px; row-gap: 8px; }
  .servico h3 { grid-column: 2; }
  .servico p { grid-column: 2; grid-row: 2; }
  .servico-seta { grid-column: 3; grid-row: 1 / span 2; }
  .servico-foto { display: none; }
}

@media (max-width: 900px) {
  .abre, .dividida, .contato { grid-template-columns: 1fr; }
  .abre > :first-child, .abre > :last-child,
  .dividida-texto, .dividida-midia,
  .dividida--inverte .dividida-texto, .dividida--inverte .dividida-midia,
  .contato-texto, .contato-mapa { grid-column: 1; grid-row: auto; }
  .dividida-texto { order: -1; } /* no celular o texto vem antes da foto */
  .passos { grid-template-columns: 1fr; gap: 36px; }
  .lista-fio { grid-template-columns: 1fr; }
  .dividida--midia-larga .dividida-texto, .dividida--midia-larga .dividida-midia { grid-column: 1; }
  .creditos { grid-template-columns: 1fr; }
  .creditos-texto, .creditos > :last-child { grid-column: 1; }
  .creditos-rolo { height: 340px; }
  .heroi-retratos-texto { grid-template-columns: 1fr; }
  .heroi-retratos-texto h1, .heroi-retratos-lado { grid-column: 1; }
  /* avaliações: a frase vem antes do link; passam de lado, com a ponta da próxima aparecendo */
  .avaliacoes { grid-template-columns: minmax(0, 1fr); }
  .avaliacoes-cabeca, .avaliacoes-lado, .palco { grid-column: 1; }
  .palco { grid-row: 2; }
  .avaliacoes-lado { grid-row: 3; }
  .elenco { display: none; }
  .palco-trilho {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); scroll-padding: 0 var(--pad-x);
  }
  .palco-trilho::-webkit-scrollbar { display: none; }
  .palco .avaliacao { flex: 0 0 min(86%, 520px); scroll-snap-align: start; padding-top: 26px; border-top: 1px solid var(--linha-forte); }
  .avaliacao blockquote p { font-size: 1.36rem; }
  .avaliacao--curta blockquote p { font-size: 1.62rem; }
  .avaliacao--longa blockquote p { font-size: 1.14rem; }
  .avaliacao figcaption { margin-top: 26px; }
  .js .palco-pe { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
  .contato-mapa { max-width: 560px; }
  /* faixa: rola de lado, com a mesma altura */
  .faixa { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); }
  .faixa::-webkit-scrollbar { display: none; }
  .faixa figure { flex: none; height: 280px; width: calc(280px * var(--p, 1.5)); aspect-ratio: auto; scroll-snap-align: center; }
  .faixa--sangra { padding: 0 var(--pad-x); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .topo-marca img, .topo.rolou .topo-marca img { height: 50px; }
  .heroi { padding-bottom: 96px; }
  .heroi h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); font-weight: 270; line-height: 1.02; }
  .heroi--pagina h1 { font-size: clamp(2rem, 8.4vw, 2.5rem); }
  .heroi--retratos { padding-bottom: 56px; }
  .tira-foto { height: 250px; }
  /* galeria no celular: duas colunas, cada foto inteira na largura da coluna */
  .galeria { display: block; columns: 2; column-gap: 8px; }
  .galeria-linha { display: contents; }
  .galeria figure { display: block; width: 100%; margin-bottom: 8px; break-inside: avoid; }
  .galeria-sobra { display: none; }
  .mosaico-linha { flex-wrap: wrap; }
  .heroi .acoes { flex-direction: column; align-items: stretch; }
  .heroi-quadro { top: calc(var(--topo) + 10px); bottom: 12px; left: 10px; right: 10px; }
  .canto { width: 18px; height: 18px; }
  .visor-rec { top: 12px; left: 14px; }
  .visor-info { display: none; }
  .heroi-rolar { display: none; }
  .heroi .migalhas { margin-top: 28px; }
  .botao { min-height: 52px; }
  .lista-curta { columns: 1; }
  .contato-dados { grid-template-columns: 1fr; }
  .distancias { grid-template-columns: 1fr 1fr; }
  .distancias b { font-size: 1.35rem; }
  .creditos-lista li { grid-template-columns: 40px 1fr; padding: 14px 0; }
  .creditos-rolo { height: 300px; }
  /* no celular as letras do mapa crescem (o desenho fica com uns 350 px de largura) */
  .mapa-destino text { font-size: 27px; }
  .mapa-destino .mapa-km { font-size: 19px; }
  .mapa-casa-t { font-size: 28px; }
  .mapa-casa-r { font-size: 18px; }
  .mapa-vias, .mapa-bairros, .mapa-estacoes .mapa-estacoes-linha, .mapa-aneis text { display: none; }
  .mapa-estacoes text { font-size: 19px; }
  .mapa-legenda text, .mapa-norte text { font-size: 18px; }
  .rodape-grade { grid-template-columns: 1fr; }
  .rodape-base { flex-direction: column; }
  /* botão flutuante: mesma margem do conteúdo */
  .flutua { right: var(--pad-x); bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px)); height: 52px; padding: 0 18px 0 16px; font-size: 0.74rem; }
  .cookies { left: 12px; right: 12px; width: auto; bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); padding: 22px 18px 18px; }
  .cookies-caixa { padding: 26px 20px 20px; }
  .luz { padding: 56px 12px 16px; }
}

@media (hover: none) {
  .faixa figure:hover img, .galeria button:hover img, .mosaico button:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heroi::after, .visor-rec i, .mapa-pulso, .heroi-rolar span::after, .creditos-trilho, .tira-trilho { animation: none; }
  .creditos-rolo { height: auto; -webkit-mask-image: none; mask-image: none; }
  .creditos-lista[aria-hidden] { display: none; }
  .cafe-vapor path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.5; }
  .js .revelar { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
