/* KAMASE · Estúdio de produção gráfica — estilo do site
   Paleta do manual: Preto #161616 · Papel #F5F1EA · Cinza quente #CFC8BC · Tomate #E5432D · Grafite #47433D */
:root {
  --preto: #161616;
  --papel: #F5F1EA;
  --papel-2: #ECE6DB;
  --cinza: #CFC8BC;
  --tomate: #E5432D;
  --tomate-claro: #F05A44;
  --grafite: #47433D;
  --branco: #FFFDF9;
  --raio: 22px;
  --largura: 1180px;
  --borda: 1px solid rgba(22, 22, 22, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--preto);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--tomate); outline-offset: 3px; border-radius: 6px; }

.caixa { width: min(var(--largura), 100% - 40px); margin-inline: auto; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 14px; z-index: 50;
  width: min(var(--largura), 100% - 28px); margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px;
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: var(--borda); border-radius: 999px;
}
.topo .marca img { height: 26px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--grafite);
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--papel-2); color: var(--preto); }
.menu a[aria-current="page"] { color: var(--preto); background: var(--papel-2); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.botao:hover { transform: translateY(-2px); }
.botao.tomate { background: var(--tomate); color: #fff; }
.botao.tomate:hover { background: var(--tomate-claro); }
.botao.preto { background: var(--preto); color: var(--papel); }
.botao.linha { border: 1.5px solid rgba(22, 22, 22, .25); }
.botao.linha:hover { border-color: var(--preto); }
.botao .seta { transition: transform .2s; }
.botao:hover .seta { transform: translateX(3px); }

/* ---------- Primeira dobra ---------- */
.abre { padding: 84px 0 0; text-align: center; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: var(--borda); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; color: var(--grafite);
}
.etiqueta::before { content: ''; width: 14px; height: 5px; border-radius: 3px; background: var(--tomate); }
.abre h1 {
  margin: 26px auto 0; max-width: 15ch;
  font-size: clamp(2.5rem, 7.2vw, 5.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.03em;
}
.abre h1 em { font-style: normal; color: var(--tomate); }
.abre .apoio { margin: 24px auto 0; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--grafite); }
.abre .acoes { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.leque { margin-top: 64px; display: flex; justify-content: center; align-items: flex-end; padding: 20px 0 0; }
.leque figure {
  margin: 0 -1.2vw; width: clamp(120px, 18vw, 236px); aspect-ratio: 4 / 5;
  border-radius: var(--raio); overflow: hidden; background: var(--cinza);
  box-shadow: 0 22px 44px -22px rgba(22, 22, 22, .45);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.leque figure:hover { transform: translateY(calc(var(--y, 0px) - 18px)) rotate(0deg); z-index: 2; }
.leque img { width: 100%; height: 100%; object-fit: cover; }
.leque figure:nth-child(1) { --r: -9deg; --y: 34px; }
.leque figure:nth-child(2) { --r: -4.5deg; --y: 10px; }
.leque figure:nth-child(3) { --r: 0deg; --y: 0px; z-index: 1; }
.leque figure:nth-child(4) { --r: 4.5deg; --y: 10px; }
.leque figure:nth-child(5) { --r: 9deg; --y: 34px; }

/* ---------- Animação de entrada da página principal ----------
   1) as palavras do título sobem uma a uma; 2) "aparecer." surge do desfoque e ganha o sublinhado da marca;
   3) texto e botões entram; 4) as artes saem empilhadas do centro e se abrem em leque. */
.anima .sobe { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.anima .sobe > span { display: inline-block; animation: sobe .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 80ms + 150ms); }
.anima h1 em { position: relative; display: inline-block; animation: aparece 1s cubic-bezier(.2, .9, .25, 1.15) .8s backwards; }
.anima h1 em::after {
  content: ''; position: absolute; left: .03em; right: .2em; bottom: -.04em; height: .085em; border-radius: 1em;
  background: var(--preto); transform-origin: left; animation: risca .7s cubic-bezier(.6, 0, .2, 1) 1.55s backwards;
}
.anima .etiqueta { animation: entra .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.anima .apoio { animation: entra .8s cubic-bezier(.2, .8, .2, 1) 1.1s backwards; }
.anima .acoes { animation: entra .8s cubic-bezier(.2, .8, .2, 1) 1.25s backwards; }
.anima .leque figure { animation: abre-leque 1.1s cubic-bezier(.2, .9, .25, 1.1) backwards; animation-delay: calc(1.35s + var(--n, 0) * 70ms); }
.anima .leque figure:nth-child(1) { --cx: 190%; --n: 2; }
.anima .leque figure:nth-child(2) { --cx: 95%; --n: 1; }
.anima .leque figure:nth-child(3) { --cx: 0%; --n: 0; }
.anima .leque figure:nth-child(4) { --cx: -95%; --n: 1; }
.anima .leque figure:nth-child(5) { --cx: -190%; --n: 2; }
@keyframes sobe { from { transform: translateY(115%); } }
@keyframes aparece { from { opacity: 0; transform: translateY(.18em) scale(.72); filter: blur(14px); } }
@keyframes risca { from { transform: scaleX(0); } }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes abre-leque { from { opacity: 0; transform: translateX(var(--cx, 0%)) translateY(90px) rotate(0deg) scale(.86); } }
@media (prefers-reduced-motion: reduce) {
  .anima .sobe > span, .anima h1 em, .anima h1 em::after, .anima .etiqueta, .anima .apoio, .anima .acoes, .anima .leque figure { animation: none; }
}

/* ---------- Fundo da abertura que reage ao mouse ----------
   Padrão de "camadas" (barrinhas da marca) bem claro. Perto do cursor as barrinhas ficam tomate e surge um brilho suave.
   Um véu na cor do papel protege a área do texto, para nada atrapalhar a leitura.
   SITE.js atualiza --mx/--my (posição do cursor) e --px/--py (de -1 a 1, para o leve deslocamento). */
.abre.anima { position: relative; isolation: isolate; }
.fundo {
  position: absolute; z-index: -1; top: -120px; bottom: -30px; left: 50%; width: 100vw; transform: translateX(-50%);
  pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%); mask-image: linear-gradient(#000 60%, transparent 100%);
}
.fundo i {
  position: absolute; inset: -40px; background-size: 168px 84px; background-position: center top;
  translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -12px);
}
.fundo .base { opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='84'%3E%3Crect x='12' y='16' width='46' height='9' rx='4.5' fill='%23CFC8BC'/%3E%3Crect x='96' y='58' width='46' height='9' rx='4.5' fill='%23CFC8BC'/%3E%3C/svg%3E"); }
.fundo .luz {
  opacity: .9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='84'%3E%3Crect x='12' y='16' width='46' height='9' rx='4.5' fill='%23E5432D'/%3E%3Crect x='96' y='58' width='46' height='9' rx='4.5' fill='%23E5432D'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(circle 230px at calc(var(--mx, -999px) + 40px) calc(var(--my, -999px) + 40px), #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
  mask-image: radial-gradient(circle 230px at calc(var(--mx, -999px) + 40px) calc(var(--my, -999px) + 40px), #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
}
.fundo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle 340px at var(--mx, -999px) var(--my, -999px), rgba(229, 67, 45, .09), transparent 100%); }
.fundo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 40% 34% at 50% 46%, var(--papel) 0%, rgba(245, 241, 234, .92) 55%, rgba(245, 241, 234, 0) 100%); }
@media (max-width: 640px) { .fundo::after { background: radial-gradient(ellipse 70% 30% at 50% 44%, var(--papel) 0%, rgba(245, 241, 234, .92) 60%, rgba(245, 241, 234, 0) 100%); } }

/* ---------- Números ---------- */
.numeros { margin-top: 96px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--borda); border-bottom: var(--borda); }
.numeros div { padding: 30px 20px; text-align: center; }
.numeros div + div { border-left: var(--borda); }
.numeros b { display: block; font-size: clamp(1.9rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.numeros span { font-size: 14px; color: var(--grafite); }

/* ---------- Seções ---------- */
.secao { padding: 104px 0 0; }
.cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 36px; }
.cabeca h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.cabeca p { margin-top: 10px; max-width: 44ch; color: var(--grafite); }

.abas { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--papel-2); border-radius: 999px; }
.abas button {
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--grafite);
  transition: background .2s, color .2s;
}
.abas button sup { font-size: 11px; margin-left: 4px; opacity: .6; }
.abas button:hover { color: var(--preto); }
.abas button[aria-selected="true"] { background: var(--preto); color: var(--papel); }

.grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.cartao { text-align: left; display: block; width: 100%; }
.cartao .capa { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--raio); overflow: hidden; background: var(--cinza); }
.cartao img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cartao:hover img { transform: scale(1.045); }
.cartao .ver {
  position: absolute; left: 12px; bottom: 12px; padding: 7px 13px; border-radius: 999px;
  background: var(--branco); font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.cartao:hover .ver, .cartao:focus-visible .ver { opacity: 1; transform: none; }
.cartao .nome { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 12px 4px 0; }
.cartao .nome b { font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.cartao .nome span { font-size: 13px; color: var(--grafite); white-space: nowrap; }

.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logos div {
  position: relative; min-width: 0; display: grid; place-items: center; height: clamp(120px, 15vw, 180px); padding: 0 8%;
  border: var(--borda); border-radius: var(--raio); background: var(--branco);
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.25), box-shadow .45s, border-color .3s;
}
.logos img {
  width: calc(var(--l, 1.6) * clamp(42px, 6vw, 76px)); max-width: 100%; height: auto;
  filter: grayscale(1) contrast(1.05); opacity: .62;
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.25), filter .35s, opacity .35s;
}
/* Ao passar o mouse: o cartão salta para a frente e a logo ganha cor e tamanho */
.logos div:hover, .logos div:active {
  z-index: 2; transform: translateY(-10px) scale(1.07) rotate(-1.2deg);
  border-color: transparent; box-shadow: 0 26px 48px -22px rgba(22, 22, 22, .45);
}
.logos div:nth-child(even):hover, .logos div:nth-child(even):active { transform: translateY(-10px) scale(1.07) rotate(1.2deg); }
.logos div:hover img, .logos div:active img { filter: none; opacity: 1; transform: scale(1.14); }
.logos:hover div:not(:hover) img { opacity: .38; }
@media (prefers-reduced-motion: reduce) {
  .logos div, .logos img { transition: filter .2s, opacity .2s; }
  .logos div:hover, .logos div:nth-child(even):hover { transform: none; }
  .logos div:hover img { transform: none; }
}
[hidden] { display: none !important; }

/* ---------- Faixa da biblioteca ---------- */
.faixa {
  margin-top: 112px; padding: clamp(32px, 6vw, 72px); border-radius: 36px;
  background: var(--preto); color: var(--papel);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; overflow: hidden;
}
.faixa .etiqueta { border-color: rgba(245, 241, 234, .2); color: var(--cinza); }
.faixa h2 { margin-top: 22px; font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; }
.faixa h2 em { font-style: normal; color: var(--tomate-claro); }
.faixa p { margin-top: 18px; max-width: 40ch; color: var(--cinza); }
.faixa .botao { margin-top: 30px; }
.pilha { position: relative; height: 320px; }
.pilha img {
  position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r));
}
.pilha img:nth-child(1) { --x: -62%; --r: -8deg; }
.pilha img:nth-child(2) { --x: 62%; --r: 8deg; }
.pilha img:nth-child(3) { --x: 0%; --r: 0deg; width: 50%; }

/* ---------- Fechamento e rodapé ---------- */
.fecho { padding: 128px 0 110px; text-align: center; }
.fecho h2 { font-size: clamp(2.2rem, 6.4vw, 5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.03; }
.fecho h2 em { font-style: normal; color: var(--tomate); display: block; }
.fecho .acoes { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.rodape { border-top: var(--borda); padding: 34px 0 44px; }
.rodape .caixa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.rodape img { height: 22px; width: auto; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--grafite); }
.rodape nav a:hover { color: var(--tomate); }
.rodape small { width: 100%; font-size: 13px; color: var(--grafite); opacity: .8; }

/* ---------- Janela da coleção ---------- */
.janela { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--papel); color: var(--preto); }
.janela::backdrop { background: var(--papel); }
.janela .barra {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px max(20px, calc((100% - var(--largura)) / 2)); background: rgba(245, 241, 234, .9); backdrop-filter: blur(12px); border-bottom: var(--borda);
}
.janela .barra b { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.janela .barra span { margin-left: 10px; font-size: 14px; color: var(--grafite); }
.janela .fechar { padding: 9px 16px; border-radius: 999px; background: var(--preto); color: var(--papel); font-size: 14px; font-weight: 600; }
.janela .artes { width: min(var(--largura), 100% - 40px); margin: 28px auto 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.janela .artes img { width: 100%; height: auto; border-radius: 18px; background: var(--cinza); }

/* ---------- Página de venda da biblioteca ---------- */
.abre.venda h1 { max-width: 17ch; }
.abre .nota { margin-top: 16px; font-size: 14px; color: var(--grafite); }
.numeros.quatro { grid-template-columns: repeat(4, 1fr); }

.rolo { margin-top: 64px; display: grid; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rolo .trilho { display: flex; gap: 16px; width: max-content; animation: rolar 80s linear infinite; }
.rolo .trilho.volta { animation-direction: reverse; }
.rolo:hover .trilho { animation-play-state: paused; }
.rolo img { width: clamp(130px, 15vw, 200px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 16px; background: var(--cinza); }
@keyframes rolar { to { transform: translateX(-50%); } }

.pacote { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pacote article { padding: 26px 24px 28px; border: var(--borda); border-radius: var(--raio); background: var(--branco); }
.pacote article:first-child { background: var(--preto); color: var(--papel); border-color: var(--preto); }
.pacote b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pacote article:first-child b { color: var(--tomate-claro); }
.pacote h3 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.pacote p { margin-top: 6px; font-size: 15px; color: var(--grafite); }
.pacote article:first-child p { color: var(--cinza); }

.itens { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.itens div { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--papel-2); font-size: 15px; }
.itens div::before { content: ''; flex: none; margin-top: 8px; width: 16px; height: 6px; border-radius: 3px; background: var(--tomate); }

.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pilulas span { padding: 8px 14px; border: var(--borda); border-radius: 999px; background: var(--branco); font-size: 13px; font-weight: 500; letter-spacing: .5px; }
.pilulas span i { margin-left: 8px; font-style: normal; color: var(--tomate); font-weight: 600; }

.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: passo; }
.passos > div { padding-top: 20px; border-top: 2px solid var(--preto); counter-increment: passo; }
.passos > div::before { content: '0' counter(passo); font-size: 14px; font-weight: 600; color: var(--tomate); letter-spacing: 1px; }
.passos h3 { margin-top: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.passos p { margin-top: 6px; font-size: 15.5px; color: var(--grafite); }

.oferta { grid-template-columns: 1fr 1fr; }
.oferta .preco { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.oferta .preco b { font-size: clamp(3rem, 7vw, 5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.oferta .preco span { font-size: 15px; color: var(--cinza); }
.oferta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.oferta li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid rgba(245, 241, 234, .14); }
.oferta li::before { content: ''; flex: none; margin-top: 9px; width: 16px; height: 6px; border-radius: 3px; background: var(--tomate-claro); }

.faq { max-width: 820px; margin-inline: auto; border-top: var(--borda); }
.faq details { border-bottom: var(--borda); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--tomate); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 4px 24px; max-width: 62ch; color: var(--grafite); }
.cabeca.centro { justify-content: center; text-align: center; }

@media (prefers-reduced-motion: reduce) { .rolo .trilho { animation: none; } }
@media (max-width: 900px) {
  .pacote { grid-template-columns: repeat(2, 1fr); }
  .numeros.quatro { grid-template-columns: repeat(2, 1fr); }
  .numeros.quatro div:nth-child(3) { border-left: 0; }
  .numeros.quatro div:nth-child(n+3) { border-top: var(--borda); }
  .oferta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rolo { margin-top: 44px; gap: 10px; }
  .rolo .trilho { gap: 10px; }
  .numeros.quatro { grid-template-columns: repeat(2, 1fr); }
  .numeros.quatro div + div { border-top: 0; border-left: var(--borda); }
  .numeros.quatro div:nth-child(3) { border-left: 0; }
  .numeros.quatro div:nth-child(n+3) { border-top: var(--borda); }
  .pacote { gap: 10px; }
  .pacote article { padding: 20px 16px; }
  .itens, .passos { grid-template-columns: 1fr; }
  .passos { gap: 22px; }
  .faq summary { font-size: 16.5px; padding: 18px 2px; }
}

/* ---------- Destaque da atualização mensal ---------- */
.etiquetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.etiqueta.viva { background: var(--tomate); border-color: var(--tomate); color: #fff; font-weight: 600; }
.etiqueta.viva::before { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulso 1.8s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.mensal {
  margin-top: 16px; padding: clamp(26px, 4.5vw, 52px); border-radius: 32px;
  border: 1.5px solid var(--tomate); background: rgba(229, 67, 45, .07);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; scroll-margin-top: 110px;
}
.mensal h3 { margin-top: 18px; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; }
.mensal h3 em { font-style: normal; color: var(--tomate); }
.mensal p { margin-top: 14px; max-width: 48ch; color: var(--grafite); }
/* pilha de três "artes": a da frente é a nova do mês, que sobe e desce de leve */
.folhas { position: relative; width: clamp(120px, 16vw, 180px); aspect-ratio: 4 / 5; margin: 10px 26px 10px 14px; }
.folhas i { position: absolute; inset: 0; border-radius: 18px; font-style: normal; }
.folhas i:nth-child(1) { background: var(--cinza); transform: rotate(-12deg) translateX(-14%); opacity: .55; }
.folhas i:nth-child(2) { background: var(--preto); transform: rotate(-5deg) translateX(-5%); opacity: .9; }
.folhas i:nth-child(3) {
  background: var(--tomate); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: 0 22px 40px -20px rgba(229, 67, 45, .8); animation: flutua 3.2s ease-in-out infinite; transform: rotate(5deg) translateX(8%);
}
.folhas b { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: .8; }
.folhas span { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
@keyframes flutua { 50% { transform: rotate(3deg) translateX(8%) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .etiqueta.viva::before, .folhas i:nth-child(3) { animation: none; } }
@media (max-width: 640px) {
  .mensal { grid-template-columns: 1fr; border-radius: 24px; }
  .folhas { width: 120px; margin: 6px auto 4px; }
}

/* ---------- Página Sobre (estrutura; textos e foto entram depois) ---------- */
.sobre { padding: 84px 0 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.sobre h1, .sobre .nome-grande { margin-top: 24px; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.sobre h1 em, .sobre .nome-grande em { font-style: normal; color: var(--tomate); }
.sobre .acoes { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.vaga { margin-top: 26px; display: grid; gap: 12px; max-width: 46ch; }
.vaga i { display: block; height: 12px; border-radius: 6px; background: var(--papel-2); }
.vaga i:nth-child(2) { width: 92%; }
.vaga i:nth-child(3) { width: 97%; }
.vaga i:last-child { width: 58%; }
.vaga.titulo i { height: 20px; border-radius: 10px; width: 62%; background: var(--cinza); }
.foto { margin: 0; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--papel-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 900px) { .foto { max-width: 420px; } }
.foto-vaga {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px; background: var(--papel-2);
  border: 1.5px dashed rgba(22, 22, 22, .25); display: grid; place-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; color: var(--grafite);
}
.foto-vaga::before, .foto-vaga::after { content: ''; position: absolute; left: 12%; right: 12%; height: 12px; border-radius: 6px; }
.foto-vaga::before { bottom: 44px; background: var(--cinza); }
.foto-vaga::after { bottom: 22px; height: 14px; background: var(--tomate); }
.blocos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blocos article { padding: 26px 24px 30px; border: var(--borda); border-radius: var(--raio); background: var(--branco); }
.sobre .apoio { margin-top: 24px; max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--grafite); }
.blocos h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.blocos p { margin-top: 10px; font-size: 15.5px; color: var(--grafite); }
.blocos .vaga { margin-top: 18px; }
.blocos .vaga.titulo { margin-top: 0; }
.passos .vaga { margin-top: 14px; }
/* ---------- Sobre: abertura com a logo se montando ---------- */
.estreia { min-height: calc(100vh - 90px); min-height: calc(100svh - 90px); display: grid; align-content: center; justify-items: center; gap: 40px; padding: 40px 0 30px; text-align: center; }
.estreia h1 { display: grid; justify-items: center; gap: clamp(18px, 3vw, 30px); font-weight: 600; }
.simbolo-vivo { width: clamp(104px, 15vw, 176px); height: auto; overflow: visible; }
.simbolo-vivo .moldura, .simbolo-palco .moldura { fill: none; stroke: var(--preto); stroke-width: 6; }
.simbolo-vivo .b1, .simbolo-palco .b1 { fill: var(--barra-cima, #CFC8BC); }
.simbolo-vivo .b2, .simbolo-palco .b2 { fill: var(--preto); }
.simbolo-vivo .b3, .simbolo-palco .b3 { fill: var(--tomate); }
[data-tema="escuro"] { --barra-cima: #5A554E; }
.simbolo-vivo rect, .simbolo-palco rect { transform-box: fill-box; transform-origin: left center; }
.simbolo-vivo .moldura { stroke-dasharray: 300; animation: traca 1.1s cubic-bezier(.6, 0, .2, 1) .15s backwards; }
.simbolo-vivo .b1 { animation: camada .6s cubic-bezier(.2, .9, .25, 1.2) .85s backwards; }
.simbolo-vivo .b2 { animation: camada .6s cubic-bezier(.2, .9, .25, 1.2) 1.02s backwards; }
.simbolo-vivo .b3 { animation: camada .7s cubic-bezier(.2, .9, .25, 1.3) 1.19s backwards; }
/* Símbolo em 3D. Medidas em "em": 1em = 1 unidade do desenho original da logo (quadro de 92 x 92).
   Sem animação, o que fica é a logo exata: moldura + três barras. A animação parte de três placas
   quadradas caindo em perspectiva (base, meio, topo), segura a pilha, gira de frente e achata as placas em barras. */
.logo3d { position: relative; display: block; width: 92em; height: 92em; font-size: calc(clamp(104px, 15vw, 176px) / 92); perspective: 900px; }
/* As placas se empilham no centro da tela, maiores; na hora de virar a logo, o conjunto vai para o lugar dele.
   --dy (distância até o centro da tela) é medida pelo SITE.js. Enquanto isso a rolagem fica travada (html.travado). */
.logo3d { animation: centro 3s linear both; }
@keyframes centro {
  0%, 60% { transform: translateY(var(--dy, 0px)) scale(2.3); animation-timing-function: cubic-bezier(.7, 0, .15, 1); }
  88%, 100% { transform: none; }
}
html.travado, html.travado body { overflow: hidden; }
html.travado { scrollbar-gutter: stable; }
html.travado .role { pointer-events: none; }@media (prefers-reduced-motion: reduce) { .logo3d { animation: none; } }
.logo3d .eixo { position: absolute; inset: 0; transform-style: preserve-3d; animation: gira 3s linear both; }
.logo3d i { position: absolute; display: block; }
.logo3d .mol { left: 3em; top: 3em; width: 86em; height: 86em; border: 6em solid var(--preto); border-radius: 21em; animation: moldura 3s linear both; }
.logo3d .c { left: 20em; width: 52em; animation: 3s linear both; }
.logo3d .c1 { top: 24em; height: 10em; border-radius: 5em; background: var(--barra-cima, #CFC8BC); animation-name: placa1; }
.logo3d .c2 { top: 41em; height: 10em; border-radius: 5em; background: var(--preto); animation-name: placa2; }
.logo3d .c3 { top: 58em; height: 12em; border-radius: 6em; background: var(--tomate); animation-name: placa3; }
.logo3d .chao { left: 14em; top: 14em; width: 64em; height: 64em; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); opacity: 0; animation: chao 3s linear both; }
@keyframes gira {
  0% { transform: rotateX(64deg) rotateZ(-58deg) scale(.86); }
  60% { transform: rotateX(60deg) rotateZ(-32deg) scale(1.04); animation-timing-function: cubic-bezier(.7, 0, .15, 1); }
  88%, 100% { transform: none; }
}
@keyframes chao {
  0% { opacity: 0; transform: translateZ(-30em) scale(.6); }
  22%, 60% { opacity: 1; transform: translateZ(-30em) scale(1.35); }
  80%, 100% { opacity: 0; transform: translateZ(-30em) scale(.8); }
}
@keyframes moldura {
  0%, 62% { opacity: 0; transform: scale(.72); animation-timing-function: cubic-bezier(.2, .9, .25, 1.2); }
  90%, 100% { opacity: 1; transform: none; }
}
/* cada placa: some lá em cima -> cai -> quica -> espera -> vira barra */
@keyframes placa3 {
  0%, 3% { top: 20em; height: 52em; border-radius: 11em; opacity: 0; transform: translateZ(170em); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  17% { top: 20em; height: 52em; border-radius: 11em; opacity: 1; transform: translateZ(-27em) scale(1.14); }
  21%, 60% { top: 20em; height: 52em; border-radius: 11em; opacity: 1; transform: translateZ(-22em); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); animation-timing-function: cubic-bezier(.7, 0, .15, 1); }
  88%, 100% { top: 58em; height: 12em; border-radius: 6em; opacity: 1; transform: none; box-shadow: none; }
}
@keyframes placa2 {
  0%, 16% { top: 20em; height: 52em; border-radius: 11em; opacity: 0; transform: translateZ(190em); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  30% { top: 20em; height: 52em; border-radius: 11em; opacity: 1; transform: translateZ(-5em) scale(1.14); }
  34%, 60% { top: 20em; height: 52em; border-radius: 11em; opacity: 1; transform: translateZ(0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); animation-timing-function: cubic-bezier(.7, 0, .15, 1); }
  88%, 100% { top: 41em; height: 10em; border-radius: 5em; opacity: 1; transform: none; box-shadow: none; }
}
@keyframes placa1 {
  0%, 29% { top: 20em; height: 52em; border-radius: 11em; opacity: 0; transform: translateZ(210em); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  43% { top: 20em; height: 52em; border-radius: 11em; opacity: 1; transform: translateZ(17em) scale(1.16); }
  47%, 60% { top: 20em; height: 52em; border-radius: 11em; opacity: 1; transform: translateZ(22em); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); animation-timing-function: cubic-bezier(.7, 0, .15, 1); }
  88%, 100% { top: 24em; height: 10em; border-radius: 5em; opacity: 1; transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .logo3d .eixo, .logo3d .mol, .logo3d .c, .logo3d .chao { animation: none; } }

/* Impacto: a cada placa que pousa, a abertura treme e uma onda se espalha no chão (a terceira é a mais forte) */
.estreia h1 { animation: tremor 3s linear both; }
.logo3d .onda { left: 14em; top: 14em; width: 64em; height: 64em; border-radius: 50%; border: 2.5em solid var(--tomate); opacity: 0; animation: 3s linear both; }
.logo3d .o1 { animation-name: onda1; } .logo3d .o2 { animation-name: onda2; border-color: var(--preto); } .logo3d .o3 { animation-name: onda3; }
@keyframes onda1 { 0%, 16.9% { opacity: 0; transform: translateZ(-29em) scale(.5); } 17% { opacity: .8; transform: translateZ(-29em) scale(.5); } 30%, 100% { opacity: 0; transform: translateZ(-29em) scale(2); } }
@keyframes onda2 { 0%, 29.9% { opacity: 0; transform: translateZ(-29em) scale(.5); } 30% { opacity: .7; transform: translateZ(-29em) scale(.5); } 43%, 100% { opacity: 0; transform: translateZ(-29em) scale(2.3); } }
@keyframes onda3 { 0%, 42.9% { opacity: 0; transform: translateZ(-29em) scale(.5); } 43% { opacity: .95; transform: translateZ(-29em) scale(.5); } 60%, 100% { opacity: 0; transform: translateZ(-29em) scale(3); } }
@keyframes tremor {
  0%, 16.8% { transform: none; } 17.6% { transform: translate(0, 9px); } 19% { transform: translate(-2px, -5px); } 20.4% { transform: translate(1px, 3px); } 22%, 29.8% { transform: none; }
  30.6% { transform: translate(0, 11px); } 32% { transform: translate(3px, -6px); } 33.4% { transform: translate(-2px, 3px); } 35%, 42.8% { transform: none; }
  43.6% { transform: translate(0, 16px); } 45% { transform: translate(-4px, -9px); } 46.4% { transform: translate(3px, 5px); } 47.8% { transform: translate(-1px, -2px); } 49.5%, 100% { transform: none; }
}
/* Botão do som da abertura */
.som { display: inline-flex; align-items: center; gap: 8px; margin-top: -22px; font-size: 13px; font-weight: 500; color: var(--grafite); opacity: .75; animation: entra .8s cubic-bezier(.2, .8, .2, 1) 4s backwards; transition: opacity .2s; }
.som:hover { opacity: 1; }
.som::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tomate); }
.som[aria-pressed="false"]::before { background: var(--cinza); }
@media (prefers-reduced-motion: reduce) { .estreia h1, .logo3d .onda, .som { animation: none; } }
.nome-vivo { display: flex; font-size: clamp(2.8rem, 9.5vw, 7.4rem); line-height: 1; letter-spacing: .12em; margin-right: -.12em; overflow: hidden; padding-bottom: .06em; }
.nome-vivo span { display: inline-block; animation: sobe .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(2.7s + var(--i) * 70ms); }
.assinatura { font-size: clamp(.72rem, 1.5vw, 1.05rem); font-weight: 400; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; color: var(--grafite); animation: entra .8s cubic-bezier(.2, .8, .2, 1) 3.4s backwards; }
.role { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: var(--borda); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--grafite); animation: entra .8s cubic-bezier(.2, .8, .2, 1) 3.8s backwards; }
.role span { display: inline-block; color: var(--tomate); animation: pinga 1.6s ease-in-out 4.4s infinite; }
@keyframes traca { from { stroke-dashoffset: 300; } }
@keyframes camada { from { transform: scaleX(0); opacity: 0; } }
@keyframes pinga { 50% { transform: translateY(5px); } }

/* ---------- Sobre: a origem da marca contada ao rolar ----------
   O quadro (.palco) fica parado enquanto os capítulos passam; SITE.js marca o capítulo atual em data-passo (1 a 4). */
.historia { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 90px); align-items: start; padding-top: 40px; scroll-margin-top: 80px; }
.palco {
  position: sticky; top: 104px; height: min(calc(100vh - 150px), 640px); border-radius: 36px; background: var(--papel-2);
  display: grid; place-items: center; overflow: hidden;
}
.progresso { position: absolute; top: 26px; left: 30px; display: flex; gap: 6px; }
.progresso i { width: 26px; height: 7px; border-radius: 4px; background: var(--cinza); opacity: .55; transition: background .4s, width .4s, opacity .4s; }
[data-passo="1"] .progresso i:nth-child(1), [data-passo="2"] .progresso i:nth-child(2),
[data-passo="3"] .progresso i:nth-child(3), [data-passo="4"] .progresso i:nth-child(4) { width: 44px; background: var(--tomate); opacity: 1; }
.palavras { display: grid; font-size: clamp(2.2rem, 5.6vw, 4.8rem); font-weight: 600; letter-spacing: .06em; line-height: 1.14; transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.palavras > div { position: relative; padding-left: 1.05em; transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.palavras s { text-decoration: none; transition: opacity .6s; }
.palavras i { position: absolute; left: 0; font-style: normal; font-weight: 400; color: var(--tomate); transition: opacity .5s; }
.palavras .l3 { margin-top: .2em; padding-top: .2em; }
.palavras .l3::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--preto); transform-origin: left; transition: transform .7s cubic-bezier(.6, 0, .2, 1); }
.palavras em { font-style: normal; color: var(--tomate); }
.simbolo-palco { position: absolute; width: min(46%, 250px); height: auto; overflow: visible; opacity: 0; transform: scale(.8); transition: opacity .6s, transform .8s cubic-bezier(.2, .9, .25, 1.15); }
.simbolo-palco .b1, .simbolo-palco .b2, .simbolo-palco .b3 { transform: scaleX(0); transition: transform .6s cubic-bezier(.2, .9, .25, 1.2); }
/* passo 1: só CAMADA */
[data-passo="1"] .l2, [data-passo="1"] .l3 { opacity: 0; transform: translateY(24px); }
[data-passo="1"] .l3::before, [data-passo="2"] .l3::before { transform: scaleX(0); }
/* passo 2: BASE entra, CAMADA recua */
[data-passo="2"] .l1 { opacity: .28; }
[data-passo="2"] .l2 i { opacity: 0; }
[data-passo="2"] .l3 { opacity: 0; transform: translateY(24px); }
/* passo 3: a soma — as letras que sobram apagam e o nome aparece */
[data-passo="3"] .palavras s, [data-passo="4"] .palavras s { opacity: .2; }
/* passo 4: as palavras dão lugar ao símbolo, que monta as camadas */
[data-passo="4"] .palavras { opacity: 0; transform: scale(.9); }
[data-passo="4"] .simbolo-palco { opacity: 1; transform: none; }
[data-passo="4"] .simbolo-palco .b1 { transform: none; transition-delay: .35s; }
[data-passo="4"] .simbolo-palco .b2 { transform: none; transition-delay: .5s; }
[data-passo="4"] .simbolo-palco .b3 { transform: none; transition-delay: .65s; }

.capitulo { min-height: 78vh; display: grid; align-content: center; padding: 30px 0; opacity: .3; transition: opacity .5s; }
.capitulo.ativo { opacity: 1; }
.capitulo > span { font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--tomate); }
.capitulo h2 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; }
.capitulo p { margin-top: 18px; max-width: 42ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--grafite); }
.sobre#iago { padding-top: 120px; }

@media (prefers-reduced-motion: reduce) {
  .simbolo-vivo .moldura, .simbolo-vivo .b1, .simbolo-vivo .b2, .simbolo-vivo .b3, .nome-vivo span, .assinatura, .role, .role span { animation: none; }
  .palavras, .palavras > div, .palavras s, .simbolo-palco, .simbolo-palco rect, .capitulo { transition-duration: .01s; transition-delay: 0s !important; }
}
@media (max-width: 900px) {
  .historia { grid-template-columns: 1fr; gap: 0; }
  .palco { top: 70px; z-index: 5; height: 38vh; min-height: 230px; border-radius: 26px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35); }
  .palavras { font-size: clamp(1.9rem, 9vw, 3.2rem); }
  .simbolo-palco { width: min(34%, 150px); }
  .progresso { top: 16px; left: 20px; }
  .capitulo { min-height: 50vh; align-content: start; padding-top: 40px; opacity: 1; }
  .capitulo:last-child { min-height: 58vh; }
  .sobre#iago { padding-top: 60px; }
}
.aviso-vaga { margin-top: 14px; font-size: 13px; color: var(--grafite); opacity: .8; }
@media (max-width: 900px) {
  .sobre { grid-template-columns: 1fr; }
  .foto-vaga { max-width: 420px; }
  .blocos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .sobre { padding-top: 56px; } }

/* ---------- Página em preparo ---------- */
.espera { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 90px 0; }
.espera h1 { margin-top: 22px; font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.espera p { margin: 18px auto 30px; max-width: 40ch; color: var(--grafite); }

/* ---------- Entrada suave ---------- */
.surge { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.surge.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surge { opacity: 1; transform: none; transition: none; }
  .leque figure, .cartao img, .botao { transition: none; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 900px) {
  .grade { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faixa { grid-template-columns: 1fr; }
  .pilha { height: 260px; }
  .janela .artes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .caixa { width: calc(100% - 32px); }
  .topo { padding: 8px 8px 8px 16px; top: 10px; }
  .topo .marca img { height: 21px; }
  .topo .botao { display: none; }
  .menu a { padding: 8px 10px; font-size: 14px; }
  .abre { padding-top: 56px; }
  .leque { margin-top: 44px; }
  .leque figure { width: 30vw; margin: 0 -2vw; border-radius: 14px; }
  .leque figure:nth-child(1), .leque figure:nth-child(5) { display: none; }
  .numeros { margin-top: 64px; grid-template-columns: 1fr; }
  .numeros div + div { border-left: 0; border-top: var(--borda); }
  .numeros div { padding: 20px; }
  .secao { padding-top: 72px; }
  .grade { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .cartao .nome { flex-direction: column; gap: 0; }
  .cartao .nome b { font-size: 12.5px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .abas { border-radius: 22px; }
  .abas { flex-wrap: nowrap; }
  .abas button { padding: 9px 10px; font-size: 13px; white-space: nowrap; }
  .abas button sup { display: none; }
  .faixa { margin-top: 80px; border-radius: 26px; }
  .pilha { height: 220px; }
  .fecho { padding: 88px 0 76px; }
  .janela .artes { gap: 10px; margin-top: 16px; width: calc(100% - 24px); }
  .janela .artes img { border-radius: 12px; }
}

/* ---------- Modo escuro ----------
   Ligado pelo botão de sol/lua (SITE.js grava a escolha no navegador e marca <html data-tema="escuro">).
   As cores trocam de papel: o fundo vira preto e o texto vira papel. */
:root[data-tema="escuro"] {
  --preto: #F5F1EA;
  --papel: #161616;
  --papel-2: #242322;
  --branco: #1E1D1C;
  --grafite: #B8B1A6;
  --borda: 1px solid rgba(245, 241, 234, .14);
  color-scheme: dark;
}
[data-tema="escuro"] .topo { background: rgba(30, 29, 28, .82); }
[data-tema="escuro"] .marca img,
[data-tema="escuro"] .rodape img { content: url("IMAGENS/MARCA/KAMASE_LOGO_HORIZONTAL_NEGATIVO.svg"); }
[data-tema="escuro"] .botao.linha { border-color: rgba(245, 241, 234, .3); }
[data-tema="escuro"] .faixa { background: #232221; color: #F5F1EA; box-shadow: inset 0 0 0 1px rgba(245, 241, 234, .08); }
[data-tema="escuro"] .pacote article:first-child { background: var(--tomate); border-color: var(--tomate); color: #fff; }
[data-tema="escuro"] .pacote article:first-child b { color: #fff; }
[data-tema="escuro"] .pacote article:first-child p { color: rgba(255, 255, 255, .88); }
[data-tema="escuro"] .logos div { background: #EFEAE1; }
[data-tema="escuro"] .janela .barra { background: rgba(22, 22, 22, .9); }
[data-tema="escuro"] .foto-vaga { border-color: rgba(245, 241, 234, .3); }
[data-tema="escuro"] .vaga.titulo i { background: #4A4743; }
[data-tema="escuro"] .foto-vaga::before { background: #4A4743; }
[data-tema="escuro"] .fundo .base { opacity: .13; }
[data-tema="escuro"] .fundo::before { background: radial-gradient(circle 340px at var(--mx, -999px) var(--my, -999px), rgba(240, 90, 68, .14), transparent 100%); }
[data-tema="escuro"] .fundo::after { background: radial-gradient(ellipse 40% 34% at 50% 46%, #161616 0%, rgba(22, 22, 22, .92) 55%, rgba(22, 22, 22, 0) 100%); }
[data-tema="escuro"] .leque figure, [data-tema="escuro"] .pilha img { box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .9); }
@media (max-width: 640px) {
  [data-tema="escuro"] .fundo::after { background: radial-gradient(ellipse 70% 30% at 50% 44%, #161616 0%, rgba(22, 22, 22, .92) 60%, rgba(22, 22, 22, 0) 100%); }
}

/* Botão de modo claro/escuro: no topo em telas grandes, flutuante no canto em telas pequenas */
.tema {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: var(--borda); background: var(--branco); color: var(--preto);
  transition: transform .25s, background .2s;
}
.tema:hover { transform: rotate(18deg) scale(1.06); }
.tema svg { width: 19px; height: 19px; }
.tema .lua, [data-tema="escuro"] .tema .sol { display: none; }
[data-tema="escuro"] .tema .lua { display: block; }
.topo .lado { display: flex; align-items: center; gap: 8px; }
.tema.solto { position: fixed; z-index: 60; right: 14px; bottom: 14px; width: 48px; height: 48px; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); }
body, .topo, .logos div, .pacote article, .faixa { transition: background-color .35s, color .35s, border-color .35s; }

/* ---------- Página do curso ---------- */
.sobre.curso h1 { max-width: 12ch; }
/* painel de camadas da abertura: as linhas entram uma a uma e a "Base" fica em destaque */
.painel { padding: 18px; border-radius: 28px; background: var(--branco); border: var(--borda); box-shadow: 0 30px 60px -34px rgba(22, 22, 22, .45); display: grid; gap: 10px; rotate: 2.5deg; }
.painel-topo { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--grafite); }
.painel-topo b { flex: 1; font-weight: 600; }
.painel-topo span { width: 8px; height: 8px; border-radius: 50%; background: var(--cinza); }
.linha-camada { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--papel-2); font-weight: 500; animation: entra .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.3s + var(--i) * .16s); }
.linha-camada.ativa { background: var(--tomate); color: #fff; }
.linha-camada .olho { flex: none; width: 18px; height: 10px; border-radius: 10px; border: 2px solid currentColor; opacity: .55; }
.linha-camada .mini { flex: none; width: 46px; height: 34px; border-radius: 8px; background: var(--cinza); }
.mini.m1 { background: repeating-linear-gradient(var(--preto) 0 3px, transparent 3px 8px) center / 60% 55% no-repeat var(--branco); }
.mini.m2 { background: linear-gradient(135deg, #CFC8BC 50%, #47433D 50%); }
.mini.m3 { background: radial-gradient(circle at center, var(--tomate) 0 34%, var(--branco) 36%); }
.mini.m4 { background: rgba(255, 255, 255, .28); }
.modulos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.modulos article { padding: 24px 22px 28px; border: var(--borda); border-radius: var(--raio); background: var(--branco); }
.modulos article > span { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--tomate); }
.modulos .vaga { margin-top: 16px; }
.modulos .vaga.titulo { margin-top: 0; }
.vaga.clara i { background: rgba(245, 241, 234, .16); width: 100%; }
.oferta .vaga.clara { margin-top: 0; width: 100%; }
@media (prefers-reduced-motion: reduce) { .linha-camada { animation: none; } }
@media (max-width: 900px) { .modulos { grid-template-columns: repeat(2, 1fr); } .painel { rotate: 0deg; } }

/* Menu com quatro itens: no celular a logo vira só o símbolo, para caber */
@media (max-width: 640px) {
  .topo .marca img { content: url("IMAGENS/MARCA/KAMASE_ICONE_POSITIVO.svg"); width: 26px; height: 26px; }
  [data-tema="escuro"] .topo .marca img { content: url("IMAGENS/MARCA/KAMASE_ICONE_NEGATIVO.svg"); }
  .menu { gap: 0; }
  .menu a { padding: 8px 9px; }
  .modulos { gap: 10px; }
}
