/* =========================================================
   Manu Cavalcanti — Portfólio (versão minimalista)
   Regras de desempenho:
   - só animamos transform e opacity (GPU)
   - nada roda em loop no JS; animações contínuas são CSS
   - fundo estático (sem canvas / partículas)
   ========================================================= */

@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #140827;
  --bg-2: #1c0d35;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(216, 180, 254, 0.14);
  --line-2: rgba(216, 180, 254, 0.26);

  --text: #f6efff;
  --muted: #bba8d8;
  --faint: #9a87b8;

  --orange: #f57c00;
  --orange-2: #ff9800;
  --gold: #ffd54f;
  --lilac: #c084fc;
  --green: #34d399;

  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

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

html {
  font-size: 93.75%;                /* 15px: escala geral um pouco menor */
  scroll-behavior: smooth;          /* rolagem suave nativa (substitui a lib Lenis) */
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }
html { scrollbar-color: #4b2a78 var(--bg); scrollbar-width: thin; }
::selection { background: var(--orange); color: #1a0b30; }
input, textarea { caret-color: var(--orange); }
a:hover { text-underline-offset: 0.2em; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fundo ambiente (topo e por trás de tudo): uma camada fixa e estática */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 50%, transparent 55%, rgba(6, 2, 14, 0.65) 100%),   /* vinheta de lente */
    radial-gradient(55vw 70vh at 100% 72%, rgba(245, 124, 0, 0.28), transparent 70%),   /* calor laranja */
    radial-gradient(45vw 45vh at 92% 8%, rgba(255, 152, 0, 0.10), transparent 70%),
    radial-gradient(70vw 70vh at 0% 30%, rgba(139, 40, 183, 0.38), transparent 70%),     /* roxo */
    linear-gradient(160deg, #1d0b38 0%, #140827 50%, #1e0b26 100%);
}

/* Fundo da TELA do monitor, com textura de feltro.
   Fica escondido no topo e aparece junto com o monitor: o JS do monitor (Rig) copia para cá
   a mesma opacidade do monitor. Fora da tela, o "quarto" do monitor cobre esta camada.
   A textura (feltro.webp, 512px, cinza neutro, sem emenda) entra em "overlay": só dá relevo
   às cores de baixo, sem mudar o roxo e o laranja. Tudo num elemento só: o navegador desenha
   uma vez e depois só muda a opacidade (leve na rolagem).
   Força da textura: vem do próprio arquivo (gerado com contraste baixo, bem suave). */
.screen-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  background:
    url(../img/feltro.webp) 0 0 / 512px 512px repeat,                                     /* feltro */
    radial-gradient(130% 95% at 50% 50%, transparent 50%, rgba(8, 2, 16, 0.6) 100%),     /* vinheta de lente */
    radial-gradient(55vw 70vh at 100% 72%, rgba(245, 124, 0, 0.30), transparent 70%),   /* calor laranja */
    radial-gradient(45vw 45vh at 92% 8%, rgba(255, 152, 0, 0.10), transparent 70%),
    radial-gradient(70vw 70vh at 0% 30%, rgba(160, 50, 200, 0.42), transparent 70%),     /* roxo */
    linear-gradient(160deg, #2e0c4c 0%, #250a40 50%, #2a0c36 100%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal;
}
.screen-bg.on { visibility: visible; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
/* seções recebem foco só para leitores de tela ao navegar; sem anel visível */
section[tabindex="-1"]:focus, footer[tabindex="-1"]:focus { outline: none; }

.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #1a0b30; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-weight: 600; white-space: nowrap;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-lg { padding: 0.95em 1.7em; font-size: 1.02rem; }
.btn-primary { background: var(--orange); color: #1a0b30; font-weight: 700; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
.btn-primary:hover { background: var(--gold); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(20, 8, 39, 0.4); }
.btn-ghost:hover { border-color: var(--lilac); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: #fff; background: var(--surface-2); border-color: var(--orange); }
.chip .n { font-size: 0.78em; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip .n:empty { display: none; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 8, 39, 0.95);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--orange); background: var(--bg-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: 1rem; white-space: nowrap; }
.brand-text small { font-size: 0.8rem; color: var(--gold); }

.nav-links { display: flex; gap: 2rem; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.only-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.status { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.82rem; color: var(--green); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); outline: 3px solid rgba(52, 211, 153, 0.18); }
.status.is-full { color: var(--gold); }
.status.is-full .dot { background: var(--orange); outline-color: rgba(245, 124, 0, 0.22); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }

@media (max-width: 820px) {
  .nav .status, .brand-text small { display: none; }
  .polaroid .hand { font-size: 1.7rem; }
  .menu-btn { display: inline-flex; }
  .only-mobile { display: block; }
  .nav-links {
    position: absolute; top: calc(var(--nav-h) - 4px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 0;
    padding: 0.5rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: 0 20px 40px -20px #000;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }
  .nav-links a { padding: 0.85rem 1rem; border-radius: var(--r-sm); }
  .nav-links a:hover { background: var(--surface-2); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(20, 8, 39, 0.95); }
}

@media (max-width: 440px) { .nav .brand-text { display: none; } }

/* ---------- Troca de idioma (PT | EN | ES) ----------
   No computador fica no menu de cima; no celular, dentro do menu (☰), na última linha. */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(20, 8, 39, 0.55);
}
.lang button {
  display: grid; place-items: center;
  height: 28px; min-width: 36px; padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.lang button:hover { color: var(--text); background: var(--surface-2); }
.lang button[aria-pressed="true"] { color: #1a0b30; background: var(--gold); cursor: default; }
.lang-switch[hidden], html:not(.js) .lang-switch { display: none !important; }
.lang-row { display: none; }

@media (max-width: 820px) {
  .lang-bar { display: none; }
  .lang-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: 0.35rem; padding: 0.8rem 0.5rem 0.4rem 1rem;
    border-top: 1px solid var(--line);
  }
  .lang-row-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
  .lang-row .lang button { height: 36px; min-width: 48px; font-size: 0.8rem; }   /* alvo de toque maior */
}

/* texto só para leitores de tela */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero-scroll { position: relative; height: 240vh; }   /* trilha da animação */
.hero-scroll.is-static { height: auto; }
.hero {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  min-height: 600px;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* o fundo do topo some aos poucos embaixo e revela o feltro (sem "degrau" na passagem) */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 26%);
  mask-image: linear-gradient(to top, transparent 0, #000 26%);
}
.hero-bg img, .hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-bg canvas { transform: translateZ(0); }
.hero-bg canvas { opacity: 0; transition: opacity 0.4s; }
.hero-bg canvas.ready { opacity: 0.6; }

.scroll-hint {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); bottom: 1.6rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--gold);
  transition: opacity 0.4s;
}
.scroll-hint.hide { opacity: 0; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; opacity: 0.8; }
.scroll-hint .mouse span { width: 3px; height: 7px; border-radius: 2px; background: currentColor; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(10px); opacity: 0; } }
.is-static .scroll-hint { display: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 39, 0.92) 0%, rgba(20, 8, 39, 0.6) 45%, rgba(20, 8, 39, 0.15) 100%),
    linear-gradient(180deg, rgba(139, 40, 183, 0.18), rgba(245, 124, 0, 0.08));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero h1 { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 4.9rem); max-width: 12ch; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
.hero h1 em { color: var(--orange-2); }
.lead { margin-top: 1.6rem; max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 0.92rem + 0.3vw, 1.12rem); line-height: 1.55; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.metrics { display: flex; flex-wrap: wrap; gap: 0.4rem 1.8rem; margin: 2.2rem 0 0; }
.metrics div { display: flex; align-items: baseline; gap: 0.4rem; }
.metrics dt { font-weight: 700; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.metrics dd { margin: 0; font-size: 0.95rem; color: var(--muted); }

.polaroid {
  justify-self: center;
  margin: 0;
  width: min(100%, 380px);
  padding: 14px 14px 0;
  background: #fbf8ff;
  border-radius: 6px;
  transform: rotate(3deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.6s var(--ease);
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #1c0d35; border-radius: 2px; }
.polaroid figcaption { text-align: center; padding: 0.6rem 0 0.9rem; color: #1a0b30; }
.polaroid .hand { display: block; font-family: var(--hand); font-size: 1.95rem; line-height: 1; }
.polaroid small { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: #9a4400; font-weight: 700; }

/* telas baixas de notebook (ex.: 1366×768): o topo inteiro cabe sem encostar no menu */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { padding: calc(var(--nav-h) + 1rem) 0 2rem; }
  .hero h1 { font-size: min(clamp(2.5rem, 1.1rem + 4.6vw, 4.9rem), 8.5vh); }
  .lead { margin-top: 1.1rem; }
  .cta-row { margin-top: 1.5rem; }
  .metrics { margin-top: 1.4rem; }
  .polaroid { width: min(100%, 330px); }
}

@media (max-width: 860px) {
  .hero-scroll { height: auto; }
  .hero { position: relative; height: auto; min-height: auto; }
  .scroll-hint { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .polaroid { order: -1; width: min(50vw, 210px); }
  .hero { padding-top: calc(var(--nav-h) + 1.2rem); }
  .hero-bg::after { background: linear-gradient(0deg, rgba(20, 8, 39, 0.9) 10%, rgba(20, 8, 39, 0.7) 100%); }
}

/* ---------- Surpresa: a polaroid do gatinho ao lado da da Manu ----------
   As duas polaroids dividem a mesma célula do grid. A do gatinho fica escondida (hidden) atrás da
   da Manu até alguém digitar o código; aí o JS calcula onde cada uma para (translate e scale),
   para caberem lado a lado em qualquer tela. */
.hero-copy { grid-column: 1; grid-row: 1; }
.hero .polaroid {
  grid-column: 2; grid-row: 1; z-index: 1;
  translate: 0px 0px; scale: 1;
  transition: transform 0.6s var(--ease), translate 1.2s var(--ease), scale 1.2s var(--ease);
}
.hero .polaroid:hover { z-index: 2; }
.hero .polaroid-memorial { z-index: 0; transform: rotate(-4deg); }
.hero .polaroid-memorial:hover { transform: rotate(0deg) translateY(-6px); }
.polaroid-memorial[hidden] { display: none; }
.polaroid-photo {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px;
  background: radial-gradient(120% 120% at 35% 30%, #3b3446 0%, #211b2b 55%, #15111c 100%);   /* polaroid ainda sem imagem */
}
/* a foto "revela" devagar: começa escura, sem cor e desfocada, como uma polaroid recém-tirada */
.polaroid-memorial .polaroid-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: none;
  opacity: 0;
  filter: brightness(0.45) sepia(0.7) saturate(0.35) contrast(0.8) blur(2px);
  transition: opacity 2.6s ease-out, filter 4.5s cubic-bezier(0.3, 0, 0.2, 1);
}
.polaroid-memorial.is-developed .polaroid-photo img { opacity: 1; filter: none; }
.memorial-heart { width: 0.75em; height: 0.75em; margin: 0.125em auto; fill: #8b28b7; }
.polaroid-memorial small { color: #6d2a91; }
@media (max-width: 860px) {
  .hero-copy { grid-row: 2; }
  .hero .polaroid { grid-column: 1; grid-row: 1; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { position: relative; margin-bottom: 2.75rem; }
.section-head h2, .section-head .sub { max-width: 18ch; }
.section-head .sub { max-width: 52ch; }
.section-head.small { margin-bottom: 1.5rem; }
.section h2, .creators h2 { font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); letter-spacing: -0.04em; line-height: 0.98; }
.sub { margin-top: 1rem; color: var(--muted); font-size: 1rem; }

/* ---------- Computador (fundo depois do hero) ----------
   As seções aparecem dentro da tela de um monitor de edição.
   --rt / --rs / --rb = distância da tela até o topo, laterais e base da janela.
   No desktop o conteúdo é reduzido (--s, calculado no JS) para caber na tela,
   como um site aberto no monitor. No celular vira o próprio app de edição. */
:root {
  --rt: calc(var(--nav-h) + 8px);
  --rs: clamp(10px, 1.4vw, 28px);
  --rb: clamp(46px, 7.5vh, 84px);
  --bz: 12px;          /* moldura */
  --chin: 20px;        /* "queixo" do monitor */
  --bar-h: 30px;       /* barra do programa */
  --tl-h: 40px;        /* mini linha do tempo */
}

/* o conteúdo dentro da tela respeita a moldura e as barras */
.timeline-area {
  position: relative;
  container-type: inline-size;   /* 100cqw = largura da área (mesmo quando reduzida) */
  --gutter: max(clamp(16px, 4vw, 40px), calc((var(--rs) + var(--bz)) / var(--s, 1) + 24px));
}
/* Redução para caber na tela: a área fica 1/s mais larga e é reduzida por s,
   então ocupa exatamente a largura da janela. O JS compensa a altura com margin-bottom. */
/* o pedaço "fantasma" do layout sem redução não pode gerar rolagem extra no fim da página;
   overflow: clip corta sem criar contêiner de rolagem (o hero sticky continua funcionando) */
main { display: flow-root; overflow: clip; }   /* flow-root: o margin negativo não "vaza" para fora do main */
.js .timeline-area.is-scaled {
  width: calc(100% / var(--s));
  margin-left: calc((100% - 100% / var(--s)) / 2);
  transform: scale(var(--s));
  transform-origin: 50% 0;
}

.rig {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: 0; visibility: hidden;
  will-change: opacity;
}
.rig.on { visibility: visible; }

/* quarto: camada opaca com um recorte retangular exatamente onde fica a tela */
.rig-room {
  position: absolute; inset: 0;
  padding: var(--rt) var(--rs) var(--rb);
  background:
    radial-gradient(38vw 55vh at 6% 12%, rgba(245, 124, 0, 0.30), transparent 70%),   /* luminária laranja */
    radial-gradient(40vw 50vh at 98% 85%, rgba(255, 152, 0, 0.14), transparent 70%),
    radial-gradient(70vw 50vh at 50% 100%, rgba(139, 40, 183, 0.40), transparent 70%),
    linear-gradient(180deg, #1f0b3a, #12071f 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* mesa + reflexo da luz da tela */
.rig-desk {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--rb) * 0.42);
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(192, 132, 252, 0.24), transparent 70%),
    radial-gradient(35% 140% at 8% 0%, rgba(245, 124, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #2a1446 0, #180a2c 3px, #0d0618);
  border-top: 1px solid rgba(216, 180, 254, 0.18);
}

/* pé do monitor */
.rig-stand { position: absolute; left: 50%; bottom: calc(var(--rb) * 0.42 - 6px); transform: translateX(-50%); width: 0; }
.rig-neck {
  position: absolute; left: -34px; width: 68px; bottom: 6px;
  height: calc(var(--rb) * 0.58 - var(--chin) + 8px);
  background: linear-gradient(90deg, #120a20, #2a1846 45%, #1a0f2d);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.rig-base {
  position: absolute; left: -110px; width: 220px; bottom: 0; height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #33205a, #140a24);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.8);
}

/* reflexo leve no vidro da tela */
.rig-glare {
  position: absolute; top: var(--rt); left: var(--rs); right: var(--rs); bottom: var(--rb);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 30%, transparent 46%);
}

/* moldura */
.rig-bezel {
  position: absolute;
  top: calc(var(--rt) - var(--bz)); left: calc(var(--rs) - var(--bz)); right: calc(var(--rs) - var(--bz));
  bottom: calc(var(--rb) - var(--chin));
  border: var(--bz) solid #0d0718; border-bottom-width: var(--chin);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(216, 180, 254, 0.12),
    0 30px 60px -20px rgba(0, 0, 0, 0.75);
}
.rig-bezel::after { /* logo discreto no queixo */
  content: ""; position: absolute; left: 50%; bottom: calc(-1 * var(--chin) / 2 - 3px);
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(245, 124, 0, 0.7);
}
.rig-cam { position: absolute; left: 50%; top: calc(-1 * var(--bz) / 2 - 2px); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #2a1d40; }

/* barra do programa de edição */
.rig-bar {
  position: absolute; top: var(--rt); left: var(--rs); right: var(--rs); height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 14px;
  background: #0d0718;
  border-bottom: 1px solid rgba(216, 180, 254, 0.12);
  font-size: 0.8rem; color: var(--muted);
  contain: layout paint;   /* o timecode muda sem relayout do resto da página */
}
.rig-dots { display: flex; gap: 6px; }
.rig-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a2858; }
.rig-dots i:first-child { background: var(--orange); }
.rig-tc { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.rig-tc .ic { width: 13px; height: 13px; color: var(--orange); }

/* mini linha do tempo: cada seção é um clipe; clicar leva até ela */
.rig-timeline {
  position: absolute; left: var(--rs); right: var(--rs); bottom: var(--rb); height: var(--tl-h);
  padding: 7px 14px;
  background: #0d0718;
  border-top: 1px solid rgba(216, 180, 254, 0.12);
  pointer-events: auto;
  contain: layout paint;
}
.rig-clips { position: relative; display: flex; gap: 3px; height: 100%; }
.rig-clips button {
  position: relative; min-width: 0; height: 100%;
  border-radius: 5px; overflow: hidden;
  padding: 0 8px; text-align: left;
  font-size: 0.74rem; font-weight: 700; color: #1a0b30;
  white-space: nowrap; text-overflow: ellipsis;
  opacity: 0.55; transition: opacity 0.25s;
}
.rig-clips button:hover, .rig-clips button[aria-current="true"] { opacity: 1; }
.rig-clips button:nth-child(4n+1) { background: #c084fc; }
.rig-clips button:nth-child(4n+2) { background: #7dd3fc; }
.rig-clips button:nth-child(4n+3) { background: #f0abfc; }
.rig-clips button:nth-child(4n+4) { background: var(--orange-2); }
.rig-playhead {
  position: absolute; top: 2px; bottom: 2px; left: 14px; width: 2px;
  background: var(--gold); border-radius: 1px;
  pointer-events: none;
}
.rig-playhead::before { /* cabeça do playhead */
  content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 8px;
  background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* respiro do conteúdo para não ficar embaixo das barras (dividido por --s porque a área é reduzida) */
.timeline-area > section:first-child { padding-top: calc(var(--bar-h) / var(--s, 1) + clamp(3rem, 7vw, 5.5rem)); }
/* o rodapé é a última coisa na tela: termina acima da mini linha do tempo */
.timeline-area > .footer { padding-bottom: calc((var(--rb) + var(--tl-h)) / var(--s, 1) + 1.5rem); }

/* Celular e tablet em pé: a tela inteira já é o "monitor". Sem quarto, moldura nem pé;
   o conteúdo usa a largura toda e a linha do tempo vira a barra de navegação de baixo. */
@media (max-width: 860px) {
  :root { --rt: var(--nav-h); --rs: 0px; --rb: 0px; --bz: 0px; --chin: 0px; --bar-h: 0px; --tl-h: 48px; }
  .rig-room, .rig-desk, .rig-stand, .rig-bezel, .rig-glare, .rig-bar { display: none; }
  .timeline-area { --gutter: clamp(16px, 4vw, 40px); }
  .rig-timeline {
    padding: 8px 10px;
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 24px -14px rgba(0, 0, 0, 0.8);
  }
  .rig-playhead { left: 10px; }
  .rig-clips { gap: 4px; }
  .rig-clips button { font-size: 0.72rem; padding: 0 6px; text-align: center; min-width: max-content; }
}

/* ---------- Criadores (marquee 100% CSS, cards no estilo original) ---------- */
.creators { padding: clamp(4rem, 8vw, 6.5rem) 0 1.5rem; }
.creators-head { position: relative; margin-bottom: 2rem; }
.creators-head h2 { max-width: 16ch; }
.creators-head .sub { margin-top: 0.9rem; }

.marquee {
  overflow: hidden;
  padding: 1rem 0 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: marquee var(--dur, 48s) linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(calc(-50% - 0.75rem), 0, 0); } }

.creator {
  position: relative;
  flex: none; width: 360px;
  display: flex; align-items: center; gap: 1.3rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(36, 15, 66, 0.72);
  transition: border-color 0.25s, background-color 0.25s;
}
.creator:hover { border-color: var(--orange); background: rgba(52, 22, 94, 0.9); }
.creator-avatar { position: relative; flex: none; width: 88px; height: 88px; }
.creator-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--lilac); background: var(--bg-2);
  transition: border-color 0.25s;
}
.creator:hover .creator-avatar img { border-color: var(--orange); }
.creator-badge { position: absolute; right: -2px; bottom: -2px; width: 28px !important; height: 28px !important; border: 2px solid var(--bg-2); }
.creator-info { min-width: 0; flex: 1; }
.creator-name { display: flex; align-items: center; gap: 0.35em; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.creator-name .ic { width: 0.9em; height: 0.9em; color: var(--lilac); }
/* o link do nome cobre o card inteiro; os botões sociais ficam por cima */
.creator-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.creator-metric { margin-top: 0.3rem; font-size: 0.92rem; font-weight: 600; color: var(--gold); }
.creator-tag { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.creator-socials { position: relative; z-index: 1; display: flex; gap: 0.4rem; margin-top: 0.7rem; }
.soc {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.soc .ic { width: 15px; height: 15px; }
.creator-socials .soc:hover { transform: scale(1.12); filter: brightness(1.15); }
.soc-youtube { background: #e62117; }
.soc-twitch { background: #9146ff; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.soc-tiktok { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.soc-x { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.creator-go {
  align-self: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface-2);
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.creator:hover .creator-go { background: var(--orange); border-color: var(--orange); color: #1a0b30; transform: translate(2px, -2px); }

@media (max-width: 560px) {
  .creator { width: 290px; gap: 1rem; padding: 1rem 1.1rem; }
  .creator-avatar { width: 68px; height: 68px; }
  .creator-go { display: none; }
}

/* ---------- Filtros ---------- */
.rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3.3rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chev {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, opacity 0.2s;
}
.chev .ic { width: 26px; height: 26px; }
.chev:hover:not(:disabled) { color: var(--text); }
.chev:disabled { opacity: 0.25; cursor: default; }

/* Navegação em "linha do tempo": cada página é um clipe na trilha */
.scrub { display: flex; align-items: center; gap: 4px; }
.scrub button { position: relative; width: clamp(22px, 5vw, 44px); height: 20px; }
.scrub button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; margin-top: -2px; border-radius: 2px;
  background: var(--line-2);
  transition: background-color 0.25s, height 0.25s, margin 0.25s;
}
.scrub button:hover::before { background: var(--lilac); }
.scrub button[aria-current="true"]::before { background: var(--orange); height: 6px; margin-top: -3px; }

/* ---------- Carrossel genérico (depoimentos) ---------- */
.rail {
  display: flex; gap: 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100cqw - var(--max)) / 2));
  padding: 0.5rem max(var(--gutter), calc((100cqw - var(--max)) / 2)) 1rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar, .pager::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }

/* ---------- Portfólio: páginas em grade (scroll-snap) ---------- */
.pager {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -6px;        /* espaço para a sombra/hover não cortar */
}
.page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
  align-content: start;
  padding: 6px 6px 10px;
}

.vcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(36, 15, 66, 0.55);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}
.vcard:hover { border-color: var(--line-2); }
.vcard-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.shorts-mode .vcard-media { aspect-ratio: 9 / 16; }
.vcard-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.vcard-media.is-fill img.bg { filter: blur(14px) brightness(0.55); transform: scale(1.2); }
.vcard-media.is-fill img.fg { object-fit: contain; }
.vcard-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 4, 20, 0.55), transparent 45%);
}
.vcard:hover .vcard-media img:not(.bg) { transform: scale(1.05); }

.play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20, 8, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.play .ic { width: 24px; height: 24px; margin-left: 3px; }
.vcard:hover .play, .vcard-media:focus-visible .play { transform: scale(1.12); background: var(--orange); border-color: transparent; color: #1a0b30; }

.badge {
  position: absolute; z-index: 1;
  font-size: 0.74rem; font-weight: 600;
  padding: 0.25em 0.6em; border-radius: 6px;
  background: rgba(10, 4, 20, 0.72);
}
.badge-tag { top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 0.35em; }
.badge-time { bottom: 8px; right: 8px; font-variant-numeric: tabular-nums; }
.badge .ic { width: 1.05em; height: 1.05em; }

.vcard-body { padding: 0.8rem 0.95rem 1rem; }
.vcard-title {
  font-size: 0.98rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcard-desc {
  margin-top: 0.35rem; font-size: 0.84rem; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Clipe principal: o primeiro vídeo de cada página ocupa 2×2 e dá ritmo à grade */
.vcard.is-feature { grid-column: span 2; grid-row: span 2; }
.is-feature .vcard-media { aspect-ratio: auto; flex: 1; min-height: 220px; }
.is-feature .vcard-body { padding: 1.1rem 1.3rem 1.3rem; }
.is-feature .vcard-title { font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.55rem); line-height: 1.12; letter-spacing: -0.025em; }
.is-feature .vcard-desc { font-size: 0.98rem; -webkit-line-clamp: 3; margin-top: 0.5rem; max-width: 60ch; }
.is-feature .play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.is-feature .play .ic { width: 34px; height: 34px; }
.is-feature .badge { font-size: 0.82rem; }
.shorts-mode .vcard-body { padding: 0.65rem 0.75rem 0.8rem; }
.shorts-mode .vcard-title { font-size: 0.88rem; }

@media (max-width: 699px) {
  .vcard-desc { display: none; }
  .vcard-body { padding: 0.6rem 0.7rem 0.75rem; }
  .vcard-title { font-size: 0.86rem; }
  .play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .play .ic { width: 20px; height: 20px; }
  .badge-tag { font-size: 0.62rem; }
}

.thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a0f4d, #140827);
  color: var(--lilac);
}
.thumb-fallback .ic { display: none; }
.rail-empty { padding: 3rem 0; color: var(--faint); }
.skeleton { aspect-ratio: 16 / 9; border-radius: var(--r-md); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

.pager-nav { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.6rem; }
.pager-nav[hidden] { display: none; }

/* ---------- Depoimentos ---------- */
.rail-quotes { gap: 1.2rem; }
.quote {
  flex: none; scroll-snap-align: start;
  width: min(720px, 86cqw);
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars .ic { width: 18px; height: 18px; }
.quote blockquote { margin: 0; flex: 1; font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
.quote blockquote::before { content: "\201C"; display: block; height: 0.55em; margin-bottom: 0.25em; font-size: 3.4em; line-height: 1; font-weight: 700; color: var(--orange); }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-2); }
.quote figcaption strong { display: block; font-weight: 600; line-height: 1.25; }
.quote figcaption small { color: var(--faint); font-size: 0.84rem; }

.quote-nav { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.2rem; }


/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}
.contact h2 { max-width: 14ch; }
.contact .sub { max-width: 44ch; }
.contact-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}
.contact-nets { margin-top: 2.2rem; }
.nets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem;
  max-width: 600px;
}
.net {
  width: 100%;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text); text-decoration: none; text-align: left;
  font: inherit; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.net:hover, .net:focus-visible { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.net-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(245, 124, 0, 0.14); color: var(--orange-2);
}
.net-ic .ic { width: 18px; height: 18px; }
.net-txt { min-width: 0; display: grid; line-height: 1.25; }
.net-txt small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.net-handle { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-go { margin-left: auto; flex: none; width: 15px; height: 15px; color: var(--faint); opacity: 0; transition: opacity 0.2s; }
.net:hover .net-go, .net:focus-visible .net-go { opacity: 1; }
.net.copied .net-handle { color: var(--green); }

.wa-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(245, 124, 0, 0.12), transparent 60%),
    var(--bg-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.wa-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.28);
}
.wa-badge .ic { width: 30px; height: 30px; }
.wa-title { margin: 1rem 0 0.35rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.wa-status { margin: 0 0 1.6rem; }
.wa-card .contact-label { margin-bottom: 0.6rem; }
.wa-card .services { margin: 0 0 1.6rem; }
.wa-card .btn-lg { width: 100%; justify-content: center; }
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }

@media (max-width: 860px) {
  /* no celular o WhatsApp vem antes das redes */
  .contact { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-intro { display: contents; }
  .wa-card { order: 2; margin-top: 3.2rem; }   /* espaço para os gatinhos em cima do cartão */
  .contact-nets { order: 3; margin-top: 2rem; }
  .net { padding: 0.6rem 0.75rem; }
  .nets { max-width: none; }
}
@media (max-width: 440px) {
  .nets { grid-template-columns: minmax(0, 1fr); }
  .net-go { opacity: 1; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: #fff; border-color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; margin-top: 2rem; font-size: 0.84rem; color: var(--faint); }
.admin-link { display: inline-flex; align-items: center; gap: 0.35em; }
.admin-link:hover { color: var(--muted); }

/* ---------- Player (dialog nativo) ---------- */
.player {
  width: min(1100px, 94vw);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--text);
  overflow: hidden;
}
.player.is-vertical { width: min(420px, 94vw); }
.player::backdrop { background: rgba(8, 3, 16, 0.85); }
.player[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player.is-vertical .player-frame { aspect-ratio: 9 / 16; max-height: 72vh; margin: 0 auto; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { padding: 1.1rem 1.4rem 1.4rem; }
.player-info h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.player-meta { display: flex; gap: 1rem; margin-top: 0.35rem; font-size: 0.86rem; color: var(--gold); }
.player-meta span + span { color: var(--muted); }
.player-desc { margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); }
.player-desc:empty { display: none; }
.player-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 4, 20, 0.7);
}
.player-close:hover { background: var(--orange); color: #1a0b30; }

/* ---------- Gatinhos (easter egg leve: só SVG + CSS) ---------- */
.cat { position: absolute; width: 74px; z-index: 2; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cat-svg { display: block; width: 100%; height: auto; transition: transform 0.35s var(--ease); }
.cat.wiggle .cat-svg { animation: wiggle 0.5s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg); } }

.bubble {
  position: absolute; bottom: calc(100% + 6px); right: 0;
  width: max-content; max-width: 210px;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem; line-height: 1.35; text-align: left;
  background: #fbf8ff; color: #1a0b30;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px #000;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.bubble b { display: block; color: var(--orange); font-size: 0.74rem; }
.cat:hover .bubble, .cat:focus-visible .bubble, .cat.talk .bubble { opacity: 1; transform: none; }

@media (max-width: 1100px) {
}
@media (max-width: 560px) {
}

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Tela de carregamento ---------- */
.loader { display: none; }
.js .loader {
  display: block;
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(85% 85% at 50% 45%, #190a32 0%, #0f0520 55%, #080212 100%);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
  /* segurança: se o script não carregar, a tela some sozinha */
  animation: loader-failsafe 0.5s 8s forwards;
}
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loading { overflow: hidden; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Gatinhos apoiados nas bordas ----------
   Cada gato fica com as patinhas na borda de cima de um cartão (não flutua).
   --edge: distância do topo do "host" até a borda; --k: altura das patas no desenho. */
.perch-host { position: relative; }
.cat.perch {
  --w: 64px; --k: 0.055; --edge: 0px;
  width: var(--w);
  top: auto;
  bottom: calc(100% - var(--edge) - var(--w) * var(--k));
  z-index: 3;
}
.cat.perch .cat-svg { transform-origin: 50% 92%; }
.cat.perch:hover .cat-svg, .cat.perch:focus-visible .cat-svg { transform: rotate(-7deg); }
.cat.perch-creators { right: max(9%, calc(var(--gutter) + 40px)); }
.cat.perch-videos { right: 24px; }   /* o JS encosta no último vídeo da 1ª linha */
.cat.perch-quotes { left: calc(max(var(--gutter), (100cqw - var(--max)) / 2) + min(720px, 86cqw) - 96px); }
.cat.perch-wa { --w: 60px; --k: 0.382; right: 30px; }
.cat.perch-wa-left { left: 30px; }
.perch-wa-left .bubble { right: auto; left: 0; }
.perch-wa .cat-svg { transform-origin: 50% 64%; }
#depoimentos .section-head { margin-bottom: 3.6rem; }
@media (max-width: 560px) {
  .cat.perch { --w: 52px; }
  .cat.perch-wa { --w: 50px; }
  .cat.perch-wa-left { left: 22px; }
}

/* Easter eggs */
.cat.zoomies .cat-svg { animation: zoomies 0.9s var(--ease); }
@keyframes zoomies {
  0% { transform: none; }
  25% { transform: translateY(-26px) rotate(-180deg) scale(1.1); }
  55% { transform: translateY(-34px) rotate(-360deg) scale(1.15); }
  80% { transform: translateY(0) rotate(-360deg) scale(0.92, 1.08); }
  100% { transform: rotate(-360deg); }
}
.paw-pop {
  position: fixed; z-index: 900; pointer-events: none;
  font-size: 18px; line-height: 1;
  animation: paw-pop 1s var(--ease) forwards;
}
@keyframes paw-pop {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - 70px)) scale(1.1) rotate(var(--r)); }
}
.paw-rain { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.paw-rain span {
  position: absolute; top: -40px; font-size: var(--s, 22px);
  animation: paw-fall var(--d, 2.6s) linear var(--delay, 0s) forwards;
}
@keyframes paw-fall { to { transform: translateY(calc(100vh + 80px)) rotate(var(--r, 200deg)); } }
.egg-toast {
  position: fixed; left: 50%; top: calc(var(--nav-h) + 54px); z-index: 950;
  transform: translate(-50%, -16px); opacity: 0;
  padding: 0.75rem 1.1rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--orange);
  color: var(--text); font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.egg-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .egg-toast { top: calc(var(--nav-h) + 12px); } }

/* ---------- Patinha antes dos títulos das seções (uma diferente em cada) ---------- */
.paw {
  display: inline-block;
  width: max(15px, 0.4em); height: max(15px, 0.4em);
  margin-right: 0.24em;
  vertical-align: 0.14em;
  transform: rotate(var(--paw-r, -14deg));
  overflow: visible;
}
.paw-laranja { --paw-r: -18deg; }
.paw-cinza { --paw-r: 12deg; }
.paw-siames { --paw-r: -6deg; }
.paw-calico { --paw-r: 20deg; }

/* ---------- Topo: palavra que troca ---------- */
.hero-title .h1-static { display: inline; }
.rotator {
  display: grid;
  /* recorte com folga em cima para os acentos; embaixo rente à linha (as palavras não têm descendentes),
     assim a palavra nova "nasce" de dentro da linha */
  clip-path: inset(-0.34em -0.3em -0.02em -0.1em);
  white-space: nowrap;
}
.rot-word { grid-area: 1 / 1; }
.rotator:not(.is-live) .rot-word:not(.is-on) { visibility: hidden; }
.rotator.is-live .ch { display: inline-block; transform: translateY(150%); }
.rotator.is-live .is-on .ch {
  transform: none;
  transition: transform 0.75s var(--ease) calc(var(--i) * 28ms);
}
.rotator.is-live .is-off .ch {
  /* a palavra que sai sobe um pouco e some (não invade a linha de cima) */
  transform: translateY(-36%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.55, 0, 0.75, 0.2) calc(var(--i) * 18ms), opacity 0.3s linear calc(var(--i) * 18ms);
}
.rotator.is-live .is-static .ch { transition: none; }

/* ---------- Textos subindo na primeira aparição ---------- */
.rv-ready .rv { opacity: 0; transform: translateY(22px); }
.rv-ready .rv.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.rv-ready .rv-words .w {
  display: inline-block;
  clip-path: inset(-0.3em -0.12em -0.22em -0.12em);
}
.rv-ready .rv-words .w > span { display: inline-block; transform: translateY(125%); }
.rv-ready .rv-words.is-in .w > span {
  transform: none;
  transition: transform 0.9s var(--ease) calc(var(--d, 0s) + var(--i) * 55ms);
}
.rv-ready .rv-words .paw { transform: rotate(var(--paw-r)) scale(0); }
.rv-ready .rv-words.is-in .paw {
  transform: rotate(var(--paw-r)) scale(1);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s);
}

/* App Check: o selo do reCAPTCHA ficaria por cima da linha do tempo; o aviso vai no rodapé */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { display: none; }
.has-appcheck .recaptcha-note { display: inline; }
.recaptcha-note a { text-decoration: underline; }

/* ---------- Barra do carrossel de clientes (avançar/voltar) ---------- */
.creators-bar { margin-top: -0.6rem; }
.creators-range {
  --p: 0%;
  display: block; width: 100%; height: 24px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: pointer;
  touch-action: none;
}
.creators-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(var(--orange), var(--orange)) 0 0 / var(--p) 100% no-repeat, var(--line-2);
}
.creators-range::-moz-range-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(var(--orange), var(--orange)) 0 0 / var(--p) 100% no-repeat, var(--line-2);
}
.creators-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 12px; margin-top: -4px; border-radius: 999px;
  background: var(--orange); border: 2px solid #1a0b30;
  box-shadow: 0 0 0 1px rgba(245, 124, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
.creators-range::-moz-range-thumb {
  width: 30px; height: 8px; border-radius: 999px;
  background: var(--orange); border: 2px solid #1a0b30;
}
.creators-range:hover::-webkit-slider-thumb, .creators-range:active::-webkit-slider-thumb { transform: scaleY(1.25); background: var(--gold); }
.creators-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.marquee.is-scrubbing .marquee-track { animation-play-state: paused; }
