
/* ── Tokens: ajuste pela identidade visual do cliente ───────────────────── */
:root {
  --fundo: #000000;          /* MESMA cor usada nos prompts das imagens */
  --fundo-2: #0d0d0d;
  --texto: #ffffff;
  --texto-suave: #b8b8b8;
  --acento: #ff0000;         /* vermelho Rendera */
  --acento-texto: #ffffff;   /* texto sobre o acento */
  --linha: rgb(255 255 255 / 0.13);
  --painel: rgb(8 8 8 / 0.66);
  --mistura: lighten;        /* tema escuro: lighten | tema claro: multiply */

  --fonte-titulo: "Archivo", "Arial Black", sans-serif;
  --fonte-texto: "Archivo", system-ui, sans-serif;

  --raio: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --largura: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
/* Tema claro (marcas de luz, saúde, casamento etc.): troque os tokens assim
:root {
  --fundo: #f4efe7; --fundo-2: #ebe4d8; --texto: #1d1a16; --texto-suave: #5d564c;
  --linha: rgb(29 26 22 / .12); --painel: rgb(244 239 231 / .7); --mistura: multiply;
}
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 clamp(16px, 1.05vw, 18px)/1.65 var(--fonte-texto);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Grão de filme: tira o aspecto "liso de IA" */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 1s steps(4) infinite;
}
@keyframes grao { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 700; font-stretch: 125%; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 3.9vw, 62px); }
h2 { font-size: clamp(28px, 3.4vw, 52px); }
h3 { font-size: clamp(19px, 1.5vw, 23px); font-weight: 650; }
p { margin: 0 0 1em; color: var(--texto-suave); text-wrap: pretty; }

/* ── Topo ──────────────────────────────────────────────────────────────── */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.topo.rolou { background: rgb(0 0 0 / .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.marca { text-decoration: none; display: flex; align-items: center; }
.marca-logo { height: 46px; width: auto; }
.marca-texto { font-family: var(--fonte-titulo); font-size: 22px; letter-spacing: .02em; }
.menu { display: flex; gap: 28px; align-items: center; font-size: 14px; letter-spacing: .04em; }
.menu a { text-decoration: none; opacity: .8; transition: opacity .3s; }
.menu a:hover { opacity: 1; }
.menu-cta { border: 1px solid var(--linha); padding: 9px 16px; border-radius: 999px; opacity: 1 !important; }
@media (max-width: 760px) { .menu a:not(.menu-cta) { display: none; } }

/* ── Abertura cinematográfica ──────────────────────────────────────────── */
.cine { position: relative; height: var(--altura, 400vh); }
.cine-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .45) 100%),
    linear-gradient(to bottom, transparent 70%, var(--fundo) 100%);
}
.momento {
  position: absolute; inset: auto var(--gutter) 12vh; max-width: 640px;
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
  pointer-events: none;
}
.momento.ativo { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.momento--direita { left: auto; right: var(--gutter); }
.momento--centro { left: 50%; right: auto; transform: translate(-50%, 24px); text-align: center; width: min(640px, calc(100% - 2 * var(--gutter))); }
.momento--centro.ativo { transform: translate(-50%, 0); }
.titulo-abertura { margin-bottom: .3em; }
.apoio { font-size: clamp(16px, 1.3vw, 20px); margin: 0; }
.destaque { font-family: var(--fonte-titulo); font-weight: 650; font-stretch: 112%; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.2; color: var(--texto); margin: 0 0 .6em; }
.destaque:last-child { margin: 0; }
.cine-dica {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .6;
  transition: opacity .5s;
}
.cine-dica span { width: 1px; height: 38px; background: linear-gradient(var(--texto), transparent); animation: dica 2s var(--ease) infinite; }
@keyframes dica { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cine.andou .cine-dica { opacity: 0; }

/* ── Painéis (todo texto mora num painel) ──────────────────────────────── */
.painel {
  position: relative;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: clamp(24px, 3.2vw, 48px);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.painel--vidro { background: rgb(0 0 0 / .5); }
.painel > :last-child { margin-bottom: 0; }
.rotulo { display: block; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--acento); margin-bottom: 18px; }

/* ── Seções ────────────────────────────────────────────────────────────── */
.secao {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; padding: 18vh var(--gutter);
  display: grid; align-content: center;
}
.secao-grade { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 560px) 1fr; }
.secao-grade--direita { grid-template-columns: 1fr minmax(0, 560px); }
.secao-grade--direita > .painel { grid-column: 2; }
.secao--larga { gap: 28px; justify-items: center; grid-template-columns: minmax(0, 1fr); }
.painel--cabecalho { width: 100%; max-width: var(--largura); }
.cartoes { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cartao h3 { margin-bottom: .4em; }
.cartao { transition: transform .5s var(--ease), border-color .5s; }
.cartao:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acento) 50%, transparent); }
.passos { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: p; display: grid; gap: 22px; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; }
.passos li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--fonte-titulo); color: var(--acento); font-size: 22px; }
.passos strong { font-weight: 600; }
.passos span { color: var(--texto-suave); }

/* ── Arte: imagens fundidas ao fundo (nunca retângulo com borda) ───────── */
.arte {
  position: absolute; z-index: -1; pointer-events: none;
  object-fit: cover; mix-blend-mode: var(--mistura);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.arte--direita, .arte--esquerda { top: 0; bottom: 0; width: 64vw; height: 100%; }
.arte--direita {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.arte--esquerda {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.arte--fundo {
  inset: 0; width: 100%; height: 100%; opacity: .5;
  /* closest-side: a elipse zera exatamente na borda, então nunca sobra linha reta */
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.arte--suave { opacity: .32; }
/* Parallax leve aplicado pelo app.js */
.arte[data-parallax] { will-change: transform; }

/* ── Contato ───────────────────────────────────────────────────────────── */
.secao--contato { justify-items: center; }
.painel--form { width: 100%; max-width: 760px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.campo { display: grid; gap: 6px; }
.campo--inteiro { grid-column: 1 / -1; }
.campo label { font-size: 13px; letter-spacing: .04em; color: var(--texto-suave); }
.campo input, .campo textarea {
  width: 100%; font: inherit; color: var(--texto);
  background: rgb(255 255 255 / .04); border: 1px solid var(--linha); border-radius: 12px;
  padding: 14px 16px; transition: border-color .3s, background .3s; resize: vertical;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); background: rgb(255 255 255 / .07); }
.campo.erro input { border-color: #d9776b; }
.pote { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-status.ok { color: var(--texto); }
.form-status.falha { color: #e39a90; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Botões ────────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px/1 var(--fonte-texto); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  color: var(--acento-texto); background: var(--acento); border: 0; border-radius: 999px;
  padding: 17px 30px; transition: transform .4s var(--ease), filter .3s;
}
.botao:hover { transform: translateY(-2px); filter: brightness(1.08); }
.botao[disabled] { opacity: .6; cursor: progress; }

/* ── WhatsApp flutuante ────────────────────────────────────────────────── */
.whats {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .35);
  transform: scale(0); transition: transform .5s var(--ease);
}
.whats.visivel { transform: scale(1); }
.whats:hover { transform: scale(1.07); }
.whats svg { width: 30px; height: 30px; }
.whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ── Voltar ao topo (acima do WhatsApp) ────────────────────────────────── */
.subir {
  position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 5px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); z-index: 60;
  width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgb(0 0 0 / .6); border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px) scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), background .3s, border-color .3s;
}
.subir.visivel { opacity: 1; transform: none; pointer-events: auto; }
.subir:hover { background: var(--acento); border-color: var(--acento); }
.subir:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.subir-seta { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.subir:hover .subir-seta { transform: translateY(-2px); }
.subir-anel { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.subir-anel circle { fill: none; stroke: var(--acento); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progresso, 0)); transition: stroke-dashoffset .15s linear; }
.subir:hover .subir-anel circle { stroke: #fff; }

/* ── Rodapé ────────────────────────────────────────────────────────────── */
.rodape { padding: 0 var(--gutter) 40px; }
.rodape-painel { max-width: var(--largura); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--texto-suave); padding: 24px 32px; }

/* ── Revelar ao rolar ──────────────────────────────────────────────────── */
.revelar { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }

/* ── Celular ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .secao { padding: 14vh var(--gutter); min-height: auto; }
  .secao-grade, .secao-grade--direita { grid-template-columns: 1fr; }
  .secao-grade--direita > .painel { grid-column: 1; }
  .arte--direita, .arte--esquerda { left: 0; right: 0; width: 100%; height: 70%; opacity: .55;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent); }
  .momento, .momento--direita { left: var(--gutter); right: var(--gutter); bottom: 10vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .momento:first-of-type { opacity: 1; transform: none; filter: none; }
  .cine { height: 100svh; }
  .momento:not(:first-of-type), .cine-dica { display: none; }
}

/* ── Ajustes Rendera ───────────────────────────────────────────────────── */
.botao--linha { background: transparent; color: var(--texto); border: 1px solid rgb(255 255 255 / .5); }
.botao--linha:hover { border-color: var(--acento); filter: none; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.lista li { position: relative; padding-left: 18px; color: var(--texto); }
.lista li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--acento); }
.etiquetas { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquetas li { font-size: 13px; letter-spacing: .04em; padding: 7px 14px; border: 1px solid var(--linha); border-radius: 999px; }
.secao--local { justify-items: center; }
.local { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 20px; }
address { font-style: normal; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; margin: 0 0 1em; }
.painel--mapa { padding: 0; overflow: hidden; min-height: 380px; }
.painel--mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.9); }
.rodape-painel .marca-logo { height: 32px; }
.rodape-painel a { text-decoration: none; }
.rodape-painel a:hover { color: var(--texto); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
@media (max-width: 860px) {
  .local { grid-template-columns: 1fr; }
  .marca-logo { height: 34px; }
  .momento--centro { left: var(--gutter); right: var(--gutter); width: auto; transform: translateY(24px); }
  .momento--centro.ativo { transform: none; }
}

/* ── Abertura sem painéis: só texto sobre o vídeo ──────────────────────── */
.cine-vinheta {
  background:
    linear-gradient(to top, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .45) 30%, transparent 58%),
    radial-gradient(120% 90% at 50% 40%, transparent 50%, rgb(0 0 0 / .55) 100%),
    linear-gradient(to bottom, transparent 82%, var(--fundo) 100%);
}
.texto-cine { text-shadow: 0 2px 24px rgb(0 0 0 / .75), 0 1px 3px rgb(0 0 0 / .6); }
.momento { max-width: 760px; }
.momento--direita { text-align: right; }
.momento--direita .sobretitulo { justify-content: flex-end; }
.momento--centro { width: min(900px, calc(100% - 2 * var(--gutter))); }
.momento--centro .acoes { margin-top: 34px; }
.momento .botao { text-shadow: none; }

.sobretitulo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: rgb(255 255 255 / .85);
}
.sobretitulo i { width: 36px; height: 2px; background: var(--acento); box-shadow: 0 0 12px rgb(255 0 0 / .7); flex: none; }

.titulo-abertura { font-size: clamp(34px, 5vw, 80px); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-bottom: .35em; max-width: 13ch; }
.cine em {
  font-style: normal; color: #fff;
  background: linear-gradient(var(--acento), var(--acento)) 0 94% / 100% .08em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.titulo-abertura em, .destaque--grande em { white-space: nowrap; }
.cine .apoio { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.55; color: rgb(255 255 255 / .82); max-width: 34ch; }
.momento--direita .apoio { margin-left: auto; }
.cine .destaque { font-size: clamp(24px, 2.7vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin-bottom: .45em; }
.momento--direita .destaque { max-width: 18ch; margin-left: auto; }
.destaque--grande { font-size: clamp(28px, 3.6vw, 60px) !important; line-height: 1.08 !important; }

@media (max-width: 860px) {
  .momento--direita { text-align: left; }
  .momento--direita .sobretitulo { justify-content: flex-start; }
  .momento--direita .destaque, .momento--direita .apoio { margin-left: 0; }
  .momento--centro .acoes { margin-top: 24px; }
  .cine-vinheta { background: linear-gradient(to top, rgb(0 0 0 / .88) 0%, rgb(0 0 0 / .5) 38%, transparent 65%), linear-gradient(to bottom, transparent 85%, var(--fundo) 100%); }
}

/* ── Portfólio: Reels do Instagram ─────────────────────────────────────── */
.portfolio-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.portfolio-topo > div { max-width: none; }
.portfolio-topo h2 { white-space: nowrap; }
@media (max-width: 760px) { .portfolio-topo h2 { white-space: normal; } }
.portfolio-topo p { margin: 0; max-width: 640px; }
/* Carrossel 3D: o do meio em destaque, laterais em segundo plano */
.carrossel { --w: clamp(180px, 16vw, 250px); position: relative; width: 100%; max-width: var(--largura); padding: 10px 0 0; }
.carrossel-palco { position: relative; height: calc(var(--w) * 16 / 9 + 24px); perspective: 1500px; }
.reel {
  position: absolute; top: 0; left: 50%; width: var(--w);
  transform: translateX(-50%) scale(.5); opacity: 0; pointer-events: none;
  transition: transform .9s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
}
/* 5 visíveis: destaque no meio + 2 de cada lado; o 6º fica escondido atrás de uma das bordas */
.reel[data-pos="0"] { transform: translateX(-50%); opacity: 1; z-index: 3; pointer-events: auto; }
.reel[data-pos="-1"] { transform: translateX(calc(-50% - 82%)) scale(.78) rotateY(22deg); opacity: 1; z-index: 2; filter: brightness(.42) saturate(.65) blur(.5px); pointer-events: auto; }
.reel[data-pos="1"]  { transform: translateX(calc(-50% + 82%)) scale(.78) rotateY(-22deg); opacity: 1; z-index: 2; filter: brightness(.42) saturate(.65) blur(.5px); pointer-events: auto; }
.reel[data-pos="-2"] { transform: translateX(calc(-50% - 150%)) scale(.6) rotateY(30deg); opacity: 1; z-index: 1; filter: brightness(.24) saturate(.5) blur(1px); pointer-events: auto; }
.reel[data-pos="2"]  { transform: translateX(calc(-50% + 150%)) scale(.6) rotateY(-30deg); opacity: 1; z-index: 1; filter: brightness(.24) saturate(.5) blur(1px); pointer-events: auto; }
.reel[data-pos="-3"] { transform: translateX(calc(-50% - 190%)) scale(.45) rotateY(34deg); opacity: 0; z-index: 0; }
.reel[data-pos="3"]  { transform: translateX(calc(-50% + 190%)) scale(.45) rotateY(-34deg); opacity: 0; z-index: 0; }
.reel-midia { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--raio); background: #000; }
.reel-midia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.reel-abrir { height: auto; aspect-ratio: 9 / 16; }
.reel[data-pos="0"] .reel-midia { box-shadow: 0 30px 80px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .14), 0 0 60px rgb(255 0 0 / .18); }
.reel-abrir { position: absolute; top: 0; left: 0; right: 0; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: var(--raio); }
.reel[data-pos="0"] .reel-abrir { cursor: zoom-in; }
.reel-lupa {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--acento); color: #fff;
  opacity: 0; transform: scale(.7); transition: opacity .4s, transform .4s var(--ease);
}
.reel-lupa svg { width: 20px; height: 20px; }
.reel[data-pos="0"] .reel-lupa { opacity: 1; transform: none; }
.reel-abrir:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; }

.carrossel-seta {
  position: absolute; top: calc(var(--w) * 8 / 9 + 10px); z-index: 5; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.carrossel-seta svg { width: 22px; height: 22px; }
.carrossel-seta:hover { background: var(--acento); border-color: var(--acento); }
.carrossel-seta--ant { left: 0; }
.carrossel-seta--prox { right: 0; }
.carrossel-pontos { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.carrossel-pontos button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgb(255 255 255 / .3); transition: background .3s, width .4s var(--ease); }
.carrossel-pontos button[aria-selected="true"] { width: 28px; border-radius: 999px; background: var(--acento); }
.carrossel-barra { width: 120px; height: 2px; margin: 16px auto 0; background: rgb(255 255 255 / .12); overflow: hidden; border-radius: 2px; }
.carrossel-barra span { display: block; height: 100%; width: 100%; background: var(--acento); transform-origin: left; transform: scaleX(0); }
.carrossel-barra.correndo span { animation: barra var(--tempo, 5s) linear forwards; }
.carrossel.pausado .carrossel-barra span { animation-play-state: paused; }
@keyframes barra { to { transform: scaleX(1); } }

/* Modal: reel ampliado na própria página */
.modal-reel {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgb(0 0 0 / .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal-reel[hidden] { display: none; }
.modal-reel.aberto { opacity: 1; }
.modal-quadro { width: min(92vw, calc(88vh * 9 / 16), 480px); transform: scale(.92); transition: transform .45s var(--ease); }
.modal-reel.aberto .modal-quadro { transform: none; }
.modal-quadro .reel-midia { box-shadow: 0 40px 120px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .15), 0 0 80px rgb(255 0 0 / .2); }
.modal-quadro video { pointer-events: auto; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal-fechar {
  position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .25);
  transition: background .3s;
}
.modal-fechar:hover { background: var(--acento); }
.modal-fechar svg { width: 22px; height: 22px; }
.modal-seta { top: 50%; }
.modal-seta--ant { left: max(16px, calc(50% - min(46vw, 44vh * 9 / 16, 240px) - 90px)); }
.modal-seta--prox { right: max(16px, calc(50% - min(46vw, 44vh * 9 / 16, 240px) - 90px)); }
body.modal-aberto { overflow: hidden; }

@media (max-width: 760px) {
  .carrossel { --w: min(58vw, 46vh * 9 / 16); }
  /* no celular só cabem 3: as pontas ficam escondidas */
  .reel[data-pos="-2"] { transform: translateX(calc(-50% - 110%)) scale(.55) rotateY(28deg); opacity: 0; pointer-events: none; }
  .reel[data-pos="2"]  { transform: translateX(calc(-50% + 110%)) scale(.55) rotateY(-28deg); opacity: 0; pointer-events: none; }
  .reel[data-pos="-1"] { transform: translateX(calc(-50% - 66%)) scale(.72) rotateY(22deg); }
  .reel[data-pos="1"]  { transform: translateX(calc(-50% + 66%)) scale(.72) rotateY(-22deg); }
  .carrossel-seta { width: 42px; height: 42px; }
  .carrossel-seta--ant { left: -6px; }
  .carrossel-seta--prox { right: -6px; }
  .modal-seta { top: auto; bottom: 22px; transform: none; }
  .modal-seta--ant { left: calc(50% - 60px); }
  .modal-seta--prox { right: calc(50% - 60px); }
  .modal-quadro { width: min(90vw, calc(76vh * 9 / 16)); margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .carrossel-barra { display: none; } }

/* ── Portfólio: abas por categoria ─────────────────────────────────────── */
.abas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px;
  border: 1px solid var(--linha); border-radius: 999px; background: rgb(0 0 0 / .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.aba {
  font: 600 14px/1 var(--fonte-texto); letter-spacing: .04em; color: var(--texto-suave);
  padding: 13px 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  transition: color .3s, background .3s;
}
.aba:hover { color: var(--texto); }
.aba[aria-selected="true"] { background: var(--acento); color: var(--acento-texto); }
.aba:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }
.categoria { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
.categoria[hidden] { display: none; }
.categoria.entrando { animation: entrar .6s var(--ease); }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }
.categoria-nota { margin: 0; max-width: 62ch; text-align: center; color: var(--texto-suave); font-size: .95em; }

/* Grades (vídeos, fotos, sites, apps) */
.grade { width: 100%; max-width: var(--largura); display: grid; gap: 18px; }
.grade--videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grade--sites { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.grade--fotos { display: block; columns: 3 260px; column-gap: 14px; }
.grade--vazia { display: grid; grid-template-columns: 1fr; columns: auto; }
.item { position: relative; display: block; padding: 0; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: var(--fundo-2); cursor: pointer; color: inherit; text-decoration: none; transition: transform .5s var(--ease), border-color .3s; }
.item:hover { transform: translateY(-4px); border-color: rgb(255 0 0 / .6); }
.item:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.item img { width: 100%; transition: transform .8s var(--ease), filter .5s; }
.item:hover img { transform: scale(1.04); }
.item--video { aspect-ratio: 16 / 9; }
.item--video img { height: 100%; object-fit: cover; filter: brightness(.8); }
.item--video:hover img { filter: none; }
.item-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--acento); color: #fff; box-shadow: 0 10px 40px rgb(255 0 0 / .35);
  transition: transform .4s var(--ease);
}
.item-play svg { width: 26px; height: 26px; margin-left: 3px; }
.item--video:hover .item-play { transform: scale(1.1); }
.item--foto { width: 100%; margin: 0 0 14px; break-inside: avoid; }
.item-print { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--linha); }
.item-print img { height: 100%; object-fit: cover; object-position: top; }
.item-legenda { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.item--site { width: 100%; text-align: left; font: inherit; }
.item-nome { display: grid; gap: 2px; min-width: 0; }
.item-nome strong { font-size: 17px; }
.item-nome small { font-size: 13px; color: var(--texto-suave); }
.item-acao { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 14px; color: var(--texto-suave); transition: color .3s; }
.item-acao svg { width: 16px; height: 16px; }
.item--site:hover .item-acao { color: var(--acento); }
.item--album .item-print { aspect-ratio: 4 / 3; }
.item--album .item-print img { object-position: center; }
.grade--ia .item--album .item-print { aspect-ratio: 4 / 5; }
.grade--ia .item--album .item-print img { object-position: top; }
.item-nome small.item-aviso { color: var(--acento); font-size: 12px; letter-spacing: .02em; }
.galeria-legenda { margin: 12px 0 0; font-size: 14px; color: var(--texto-suave); text-align: center; }
.galeria-legenda strong { color: var(--texto); }
.vazio {
  display: grid; justify-items: center; gap: 18px; text-align: center; padding: clamp(34px, 6vw, 64px) 24px;
  border: 1px dashed rgb(255 255 255 / .2); border-radius: var(--raio); background: var(--painel);
}
.vazio p { margin: 0; color: var(--texto-suave); }

/* ── Soluções digitais: apps ───────────────────────────────────────────── */
.grade--apps { grid-template-columns: 1fr; gap: 28px; }
.app {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px);
  padding: clamp(20px, 3vw, 40px); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 6px); background: var(--painel);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.app-telas { position: relative; }
.app--com-celular .app-telas { padding: 0 9% 9% 0; }
.app-print { width: 100%; border-radius: 12px; border: 1px solid var(--linha); box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.app-celular {
  position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 18px;
  border: 3px solid #1c1c1c; box-shadow: 0 0 0 1px rgb(255 255 255 / .15), 0 24px 60px rgb(0 0 0 / .8);
}
.app-texto h3 { font-size: clamp(30px, 3.4vw, 52px); margin-bottom: .3em; }
.app-texto p { color: var(--texto-suave); margin: 0 0 26px; }
.app-texto .botao { display: inline-flex; align-items: center; gap: 8px; }
.app-texto .botao svg { width: 18px; height: 18px; }
.app:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.app:nth-child(even) .app-telas { order: 2; }
@media (max-width: 860px) {
  .app, .app:nth-child(even) { grid-template-columns: 1fr; }
  .app:nth-child(even) .app-telas { order: 0; }
}

/* Modal da galeria (vídeos 16:9 e fotos) */
.modal-galeria .modal-quadro { width: auto; max-width: min(92vw, 1200px); }
.galeria-midia { display: grid; place-items: center; }
.galeria-midia video, .galeria-midia img, .galeria-midia iframe {
  display: block; max-width: min(92vw, 1200px); max-height: 84vh; width: auto; height: auto; border-radius: var(--raio);
  background: #000; box-shadow: 0 40px 120px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .15);
}
.galeria-midia video, .galeria-midia iframe { width: min(92vw, 1200px, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9; }
.galeria-midia iframe { border: 0; height: auto; }
.modal-galeria .modal-seta--ant { left: 16px; }
.modal-galeria .modal-seta--prox { right: 16px; }
.modal-galeria--unico .modal-seta { display: none; }
@media (max-width: 760px) {
  /* 5 abas não cabem: a barra desliza para o lado, com esmaecido indicando que há mais */
  .abas {
    flex-wrap: nowrap; justify-content: flex-start; gap: 2px; padding: 5px; width: 100%;
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .abas::-webkit-scrollbar { display: none; }
  .abas.no-fim { -webkit-mask-image: none; mask-image: none; }
  .aba { flex: none; padding: 11px 14px; font-size: 12.5px; letter-spacing: .01em; white-space: nowrap; scroll-snap-align: start; }
}
