/* =========================================================
   SENNA — Criação de sites  (paleta branca / cinza neutro)
   ========================================================= */
:root {
  --bg: #f4f4f3;
  --ink: #1d1d1f;
  --mute: rgba(29, 29, 31, .64);
  --dim: rgba(29, 29, 31, .45);
  --line: rgba(29, 29, 31, .12);
  --glass: rgba(255, 255, 255, .68);
  --glass-b: rgba(29, 29, 31, .08);
  --gut: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.carregando, html.travado { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; color: #6e6e70; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- logo (máscara: a cor vem do background) ---------- */
.logo {
  display: block; width: 104px; aspect-ratio: 1760 / 224;
  background: var(--ink);
  -webkit-mask: url(../img/logo-senna.png) center / 100% 100% no-repeat;
  mask: url(../img/logo-senna.png) center / 100% 100% no-repeat;
}
.logo--g { width: min(220px, 56vw); margin-bottom: 30px; }

/* ---------- carregamento ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.loader.sai { opacity: 0; visibility: hidden; }

/* ---------- vídeo de fundo ---------- */
.bg {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 100%; height: 100vh; height: 100lvh;
  background: var(--bg) url(../video/poster.jpg?v=3) center / cover no-repeat;
}
.bg video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bg canvas { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.bg canvas.on { opacity: 1; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 45%, rgba(244, 244, 243, .7) 100%);
}
@media (max-aspect-ratio: 1/1) { .bg { background-image: url(../video/poster-mobile.jpg?v=3); } }

/* ---------- topo: transparente na hero, vidro fosco ao rolar ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gut);
  border-bottom: 1px solid transparent;
  transition: background .4s, padding .4s, border-color .4s;
}
.topo.solido {
  padding-block: 11px;
  background: rgba(250, 250, 249, .74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--glass-b);
}
.carregando .topo { opacity: 0; }
.pronto .topo { animation: topoEntra .9s var(--ease) 1.5s both; }
@keyframes topoEntra { from { opacity: 0; transform: translateY(-16px); } }
.nav { display: flex; gap: 34px; font-size: 14px; color: var(--mute); }
.nav a { transition: color .3s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  color: #fff; background: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.btn:hover { transform: translateY(-2px); background: #000; box-shadow: 0 18px 38px -14px rgba(0, 0, 0, .55); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: #fff; border-color: var(--ink); box-shadow: none; }
.btn--wa { gap: 8px; padding: 0 16px 0 13px; }
.btn--wa svg { width: 17px; height: 17px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 16px; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; margin: 14px 0 12px; }
.sub { color: var(--mute); max-width: 46ch; }

/* ---------- hero: só a logo ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 420px;
  display: grid; place-items: center;
}
.hero__in { --h: 0; position: relative; margin-top: calc(-1 * clamp(70px, 14vh, 130px)); }
.marca {
  position: relative; z-index: 101; /* fica acima do loader branco */
  width: min(84vw, 980px); aspect-ratio: 1760 / 224;
  opacity: calc(1 - var(--h) * 1.15);
  transform: scale(calc(1 - var(--h) * .12));
}
.marca__l {
  position: absolute; top: 0; height: 100%;
  transform: translateX(calc((var(--i) - 2) * var(--h) * 9vw));
}
.marca__l:nth-child(1) { left: 0;       width: 18.239%; }
.marca__l:nth-child(2) { left: 21.25%;  width: 14.034%; }
.marca__l:nth-child(3) { left: 39.659%; width: 16.193%; }
.marca__l:nth-child(4) { left: 60.795%; width: 16.193%; }
.marca__l:nth-child(5) { left: 80.341%; width: 19.659%; }
.marca__l i {
  display: block; width: 100%; height: 100%;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  /* carregando: letra quase branca (igual à logo original) que vai enchendo de grafite */
  background: linear-gradient(90deg, var(--ink) var(--f, 0%), #f1f1f1 var(--f, 0%));
}
.marca__l:nth-child(1) i { -webkit-mask-image: url(../img/letra-0.png); mask-image: url(../img/letra-0.png); }
.marca__l:nth-child(2) i { -webkit-mask-image: url(../img/letra-1.png); mask-image: url(../img/letra-1.png); }
.marca__l:nth-child(3) i { -webkit-mask-image: url(../img/letra-2.png); mask-image: url(../img/letra-2.png); }
.marca__l:nth-child(4) i { -webkit-mask-image: url(../img/letra-3.png); mask-image: url(../img/letra-3.png); }
.marca__l:nth-child(5) i { -webkit-mask-image: url(../img/letra-4.png); mask-image: url(../img/letra-4.png); }
.carregando .marca__l { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .14)); }

/* entrada: cada letra dá um salto, depois um brilho passa pela logo */
.pronto .marca__l i { background: var(--ink); animation: salto 1.1s var(--ease) both; animation-delay: calc(.1s + var(--i) * .08s); }
@keyframes salto {
  0% { transform: none; }
  30% { transform: translateY(-22%) scaleY(1.06); }
  55% { transform: translateY(4%) scaleY(.96); }
  100% { transform: none; }
}
.marca::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../img/logo-senna.png) center / 100% 100% no-repeat;
  mask: url(../img/logo-senna.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  opacity: calc(1 - var(--h) * 4);
}
.pronto .marca::after { animation: brilho 5s ease-in-out 1.5s infinite; }
@keyframes brilho { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }

/* frase embaixo da logo: palavras surgem do desfoque e um brilho passa por elas */
/* frase + botões ficam logo abaixo da logo, sem tirar a logo do centro */
.hero__sub {
  position: absolute; left: 50%; top: 100%;
  width: max-content; max-width: 92vw; margin-top: clamp(16px, 2.6vw, 30px);
  display: grid; justify-items: center; gap: clamp(22px, 3.4vw, 34px);
  transform: translateX(-50%) translateY(calc(var(--h) * 40px));
  opacity: calc(1 - var(--h) * 1.8);
}
.hero__ctas { display: flex; gap: 12px; }
.carregando .hero__ctas .btn { opacity: 0; }
.pronto .hero__ctas .btn { animation: sobe 1s var(--ease) backwards; animation-delay: 1.7s; }
.pronto .hero__ctas .btn + .btn { animation-delay: 1.82s; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slogan {
  text-align: center; line-height: 1.15; text-wrap: balance;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 3.1vw, 2.5rem); letter-spacing: .005em;
}
.slogan span {
  display: inline-block; padding: 0 .04em .08em;
  color: transparent;
  background: linear-gradient(100deg, #48484a 44%, #b9b9bb 50%, #48484a 56%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; filter: blur(12px); transform: translateY(.45em);
}
.pronto .slogan span {
  animation: palavra 1.2s var(--ease) forwards, brilhoTxt 5s ease-in-out infinite;
  animation-delay: calc(.95s + var(--j) * .11s), calc(2.1s + var(--j) * .09s);
}
@keyframes palavra { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes brilhoTxt { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
@media (max-width: 760px) {
  .hero__sub { width: 88vw; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 0; padding: 0 14px; }
}

.hero__cue {
  position: absolute; left: 50%; bottom: clamp(24px, 5vh, 44px);
  width: 1px; height: 56px; margin-left: -.5px; overflow: hidden;
  background: var(--line); opacity: 0; transition: opacity 1s 1.4s;
}
.hero__cue i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: cue 2s var(--ease) infinite; }
.pronto .hero__cue { opacity: 1; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* ---------- números ---------- */
.numeros { display: flex; justify-content: center; padding: clamp(40px, 8vh, 80px) var(--gut) 0; }
.selo {
  display: grid; justify-items: center; text-align: center;
  width: min(100%, 300px); padding: 30px 22px 22px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .3);
}
.selo strong {
  font-size: clamp(3.2rem, 9vw, 4.4rem); font-weight: 600;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
.selo span { margin-top: 6px; font-size: 15px; font-weight: 500; }
.selo small {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
}
.selo small svg { width: 15px; height: 15px; }

/* revelar ao rolar */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- seções translúcidas ---------- */
.secao { padding: clamp(56px, 10vh, 110px) var(--gut); }
.painel {
  --pp: clamp(22px, 4.5vw, 60px);
  max-width: var(--max); margin: 0 auto; padding: var(--pp);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .25);
}

/* ---------- trabalhos ---------- */
.cabeca { margin-bottom: clamp(22px, 3vw, 32px); }

.filtros {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: clamp(20px, 3vw, 30px);
  border-radius: 999px; background: rgba(29, 29, 31, .05); border: 1px solid var(--glass-b);
}
.filtro {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--mute);
  transition: background .4s var(--ease), color .3s;
}
.filtro span {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(29, 29, 31, .08); transition: background .4s;
}
.filtro:hover { color: var(--ink); }
.filtro[aria-selected="true"] { color: #fff; background: var(--ink); }
.filtro[aria-selected="true"] span { background: rgba(255, 255, 255, .18); }
@media (max-width: 760px) {
  .filtros { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .filtro { padding: 0 6px; font-size: 13px; gap: 6px; }
  .filtro span { min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
}
@media (max-width: 360px) { .filtro span { display: none; } }

.trilho {
  display: flex; gap: 18px;
  margin: 0 calc(var(--pp) * -1); padding: 6px var(--pp) 4px;
  scroll-padding-inline: var(--pp);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(400px, 86%); scroll-snap-align: start; text-align: left; }
.card[hidden] { display: none; }
.trilho.entra .card { animation: cardEntra .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 80ms); }
@keyframes cardEntra { from { opacity: 0; transform: translateX(48px); } }
.card__tela {
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; background: #e9e9e8;
  border: 1px solid var(--glass-b);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .35);
  transition: border-color .5s, transform .6s var(--ease), box-shadow .6s;
}
.card__barra { display: flex; gap: 5px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--glass-b); }
.card__barra i { width: 7px; height: 7px; border-radius: 50%; background: rgba(29, 29, 31, .16); }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.card__ver {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink); background: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease), opacity .4s;
}
.card__ver svg { width: 16px; height: 16px; }
.card__info { display: block; padding: 14px 2px 0; }
.card__info strong { display: block; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.card__info small { display: block; font-size: 13px; color: var(--dim); }
@media (hover: hover) {
  .card__ver { opacity: 0; transform: translateY(8px); }
  .card:hover .card__tela { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .45); }
  .card:hover .card__img img { transform: scale(1.045); }
  .card:hover .card__ver { opacity: 1; transform: none; }
}

.controles { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.controles.inativo { visibility: hidden; }
.pontos { display: flex; align-items: center; gap: 8px; }
.ponto {
  position: relative; width: 8px; height: 8px; border-radius: 999px;
  background: rgba(29, 29, 31, .18);
  transition: width .45s var(--ease), background .45s;
}
.ponto::after { content: ""; position: absolute; inset: -12px -5px; }
.ponto.ativo { width: 28px; background: var(--ink); }
.setas { display: flex; gap: 10px; flex: none; }
.seta {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff;
  transition: background .3s, border-color .3s, opacity .3s, transform .3s var(--ease);
}
.seta svg { width: 20px; height: 20px; }
.seta--ant svg { transform: rotate(180deg); }
.seta:not(:disabled):hover { border-color: var(--ink); }
.seta:not(:disabled):active { transform: scale(.92); }
.seta:disabled { opacity: .35; cursor: default; }
#prox:not(:disabled) { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- contato ---------- */
.final {
  min-height: 86vh; min-height: 86svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 100px var(--gut);
}
.final__in {
  width: 100%; max-width: 720px; display: grid; justify-items: center;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px);
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .25);
}
.final h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-top: 0; }
.final .sub { margin-bottom: 30px; }
@media (max-width: 760px) { .final .btn { width: 100%; } }

/* ---------- rodapé ---------- */
.rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 24px var(--gut) calc(24px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--dim);
  background: rgba(255, 255, 255, .8); border-top: 1px solid var(--glass-b);
}
.rodape a:hover { color: var(--ink); }
.rodape__assina { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); }
.rodape__assina strong { color: var(--ink); font-weight: 600; }
.logo--p { width: 64px; flex: none; }
@media (max-width: 760px) {
  .rodape { flex-direction: column; text-align: center; gap: 10px; }
  .rodape__assina { flex-direction: column; gap: 8px; }
}

/* ---------- visualizador ---------- */
.visor {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: transparent; color: var(--ink);
}
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(30, 30, 32, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.visor__janela {
  width: min(1000px, 100% - 32px); height: min(90%, 100% - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: #fff;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5);
  animation: abre .55s var(--ease);
}
@keyframes abre { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.visor__barra { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #f6f6f5; border-bottom: 1px solid var(--glass-b); }
.visor__dots { display: flex; gap: 6px; }
.visor__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(29, 29, 31, .16); }
.visor__url {
  flex: 1; min-width: 0; padding: 6px 14px; border-radius: 999px; text-align: center;
  font-size: 13px; color: var(--mute); background: #fff; border: 1px solid var(--glass-b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.visor__fechar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 29, 31, .07); font-size: 14px; transition: background .3s; }
.visor__fechar:hover { background: rgba(29, 29, 31, .15); }
.visor__tela { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #f4f4f3; }
.visor__tela::before {
  content: ""; position: absolute; left: 50%; top: 120px; width: 28px; height: 28px; margin-left: -14px;
  border-radius: 50%; border: 2px solid rgba(29, 29, 31, .12); border-top-color: var(--ink);
  animation: gira .8s linear infinite;
}
.visor__tela.ok::before { display: none; }
.visor__tela img { position: relative; width: 100%; height: auto; opacity: 0; transition: opacity .5s; }
.visor__tela.ok img { opacity: 1; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .visor__janela { width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 14px; }
  .visor__dots { display: none; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
