/* Home em 3D: núcleo de 6 camadas fixo na tela, seções rolando por cima (guia "Interactive 3D Website") */
html { background: #0b0a09; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body.h3d { background: transparent; color: var(--texto-claro); --areia: #cdbda3; }

/* palco fixo: fundo claro no centro e escuro nas bordas onde fica o texto */
.palco { position: fixed; inset: 0; z-index: 0; background: radial-gradient(48% 62% at 70% 50%, #302a26 0%, #1a1715 45%, #0b0a09 100%); }
.palco::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(11 10 9 / .9) 0%, rgb(11 10 9 / .55) 34%, rgb(11 10 9 / 0) 52%);  transition: opacity .9s ease; }
.palco::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, rgb(11 10 9 / .9) 0%, rgb(11 10 9 / .55) 34%, rgb(11 10 9 / 0) 52%); opacity: 0; transition: opacity .9s ease; }
.palco.direita::after { opacity: 0; }
.palco.direita::before { opacity: 1; }
@media (min-width: 1001px) { .h3d .lado.dir .col { margin-left: auto; } }
.poster { position: absolute; inset: 0; background: url("poster.webp") center / cover no-repeat; transition: opacity .9s ease; }
.palco.pronto .poster { opacity: 0; }
#cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; touch-action: pan-y; cursor: grab; }
#cena.arrasta { cursor: grabbing; }
.palco.pronto #cena { transition: opacity .9s ease; }
#rotulos { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.rotulo { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; opacity: 0; will-change: transform, opacity; font: 600 14px var(--fonte); color: var(--texto-claro); }
.rotulo i { width: 7px; height: 7px; border-radius: 50%; background: var(--areia); box-shadow: 0 0 10px 2px rgb(205 189 163 / .55); flex: none; }
.rotulo s { width: 44px; height: 1px; background: rgb(241 237 230 / .5); flex: none; }
.rotulo b { font-size: 12px; letter-spacing: .1em; color: var(--sec-claro); }
.rotulo span { padding: 0; background: none; border: 0; text-shadow: 0 1px 2px rgb(0 0 0 / .9), 0 0 14px rgb(0 0 0 / .75); letter-spacing: .01em; } /* só o nome, sem caixa */
.rotulo.esq { flex-direction: row-reverse; }

/* camada de conteúdo: só o que tem conteúdo recebe clique; o resto deixa o arraste chegar ao objeto */
.h3d main { position: relative; z-index: 1; pointer-events: none; }
.h3d main .col > *, .h3d main .placa { pointer-events: auto; }
.h3d .topo { z-index: 20; }
.h3d .redes { z-index: 15; }
.h3d .rodape { position: relative; z-index: 1; background: rgb(11 10 9 / .92); }

/* beats */
.h3d section.beat { min-height: 100vh; min-height: 100svh; padding: 120px 0; display: flex; align-items: center; background: transparent; border: 0; }
.h3d .beat > .conteudo { width: 100%; }
.h3d .col { max-width: 500px; }
.h3d .hero3d .col { max-width: 640px; }
.h3d .hero3d h1 { font-size: clamp(34px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.h3d .hero3d .cargo-hero { font-size: 20px; margin-top: 18px; }
.h3d .hero3d .cargo-hero span { display: block; margin-top: 2px; }
.dica { display: flex; align-items: center; gap: 12px; margin-top: 56px; color: var(--sec-claro); font-size: 13px; }
.dica-linha { position: relative; width: 1px; height: 38px; background: rgb(241 237 230 / .18); overflow: hidden; }
.dica-linha::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--papel); animation: h3-desce 2s ease-in-out infinite; }
@keyframes h3-desce { to { top: 100%; } }

/* sobre */
.h3d .sobre { display: block; }
.h3d .sobre .foto { width: 168px; margin-bottom: 34px; }
.h3d .foto::after { background: var(--areia); opacity: .25; inset: 10px -10px -10px 10px; }
.h3d .sobre p { color: var(--sec-claro); }

/* pilares */
.h3d .habilidades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.h3d .habil { padding: 18px; background: rgb(28 26 24 / .86); border: 1px solid var(--borda); box-shadow: none; backdrop-filter: blur(6px); }
.h3d .habil h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; }
.h3d .habil h3 .traco { width: 18px; margin-right: 10px; }
.h3d .habil li { font-size: 12px; }

/* experiência, entregas, trilha em coluna */
.h3d .lado .exp-grade { grid-template-columns: 1fr; }
.h3d .exp { background: rgb(21 19 18 / .9); border: 1px solid var(--borda); border-top: 2px solid var(--papel-2); backdrop-filter: blur(6px); }
.h3d .exp.destaque { border-top: 1px solid var(--borda); border-left: 3px solid var(--areia); }
.h3d .exp.destaque ul { grid-template-columns: 1fr; }
.h3d .lado .entrega-grade, .h3d .lado .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h3d .proj { background: rgb(28 26 24 / .88); backdrop-filter: blur(6px); }
.h3d .linha-tempo::before { background: var(--borda); }
.h3d .linha-tempo .ponto { background: #151312; border-color: var(--sec-claro); }
.h3d .linha-tempo .feito .ponto { background: var(--papel); border-color: var(--papel); }
.h3d .linha-tempo .atual .ponto { background: #151312; border: 4px solid var(--areia); box-shadow: 0 0 12px rgb(205 189 163 / .5); }
.h3d .linha-tempo .rot, .h3d .linha-tempo p, .h3d .subtitulo.escuro { color: var(--sec-claro); }

/* seções cheias: placa escura sobre o objeto recuado */
.h3d .placa { background: rgb(14 13 12 / .84); border: 1px solid var(--borda); border-radius: 16px; padding: 48px; backdrop-filter: blur(12px); max-width: calc(var(--largura) + 48px); }
.h3d #projetos, .h3d #entregas, .h3d #contato { background: transparent; border: 0; }
.h3d .form { background: rgb(28 26 24 / .9); border-left: 3px solid var(--areia); }
.h3d .form .rot, .h3d .form p, .h3d .form-sub { color: var(--sec-claro); }
.h3d section.compacta { padding-top: 120px; }

@media (max-width: 1000px) {
	.palco { background: radial-gradient(70% 42% at 50% 27%, #302a26 0%, #1a1715 50%, #0b0a09 100%); }
	.poster { background-image: url("poster-m.webp"); }
	.palco::before { display: none; }
	.palco::after { background: linear-gradient(180deg, rgb(11 10 9 / 0) 0%, rgb(11 10 9 / 0) 46%, rgb(11 10 9 / .7) 64%, rgb(11 10 9 / .92) 100%); }
	.h3d section.beat { align-items: flex-end; padding: 52vh 0 72px; padding: 52svh 0 72px; }
	.h3d .col { max-width: none; }
	.h3d .lado:not(.hero3d) .col { background: rgb(14 13 12 / .8); border: 1px solid var(--borda); border-radius: 14px; padding: 24px 20px; backdrop-filter: blur(10px); }
	.h3d .placa { padding: 28px 20px; }
	.h3d .hero3d .dica { margin-top: 32px; }
	.rotulo { font-size: 13px; gap: 6px; }
	.rotulo s { width: 14px; }
	.rotulo b { display: none; }
	.rotulo span { padding: 0; white-space: normal; max-width: 132px; line-height: 1.25; }
}
@media (max-width: 640px) {
	.h3d .habilidades, .h3d .lado .entrega-grade, .h3d .lado .passos { grid-template-columns: 1fr; }
	.h3d .conteudo { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .dica-linha::after { animation: none; } .poster, #cena { transition: none !important; } }

/* clique nas peças do chip */
.toque { position: absolute; left: 0; top: 0; z-index: 3; width: 230px; padding: 12px 14px; border-radius: 10px; background: rgb(14 13 12 / .88); border: 1px solid rgb(205 189 163 / .45); box-shadow: 0 12px 40px rgb(0 0 0 / .5), 0 0 24px rgb(205 189 163 / .12); backdrop-filter: blur(8px); pointer-events: none; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .25s ease, transform .25s ease; }
.toque.on { opacity: 1; transform: none; }
.toque p { font-weight: 700; font-size: 14px; color: var(--texto-claro); margin-bottom: 8px; }
.toque p b { font-size: 12px; letter-spacing: .1em; color: var(--areia); margin-right: 4px; }
.toque ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.toque li { font-size: 12px; padding: 3px 8px; border-radius: 3px; background: #2a2724; color: var(--sec-claro); }
.rotulo span { transition: border-color .3s, box-shadow .3s, color .3s; }
.rotulo.foco span { color: #fff; text-shadow: 0 0 12px rgb(205 189 163 / .8), 0 1px 2px #000; }
.h3d .habil { transition: border-color .3s, box-shadow .3s; }
.h3d .habil.foco { border-color: var(--areia); box-shadow: 0 0 0 1px rgb(205 189 163 / .4), 0 0 28px rgb(205 189 163 / .18); }

/* seções cheias no desktop: placa à esquerda, chip visível à direita */
@media (min-width: 1001px) {
	.h3d .cheia .placa { max-width: min(780px, 56vw); margin: 0 auto 0 max(24px, calc((100vw - var(--largura)) / 2)); padding: 40px; }
	.h3d .cheia .lab-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h3d #formacao .form-grade, .h3d #formacao .cert-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================= v14: tipografia e acabamento premium ================= */
@font-face { font-family: "Space Grotesk"; src: url("fontes/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fontes/space-grotesk-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fontes/space-grotesk-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fontes/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fontes/jetbrains-mono-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
body.h3d { --mono: var(--fonte); } /* fonte anterior (do sistema): mais fácil de ler; Space Grotesk/JetBrains guardadas em fontes/ */
.h3d .rot, .h3d .sobretitulo, .h3d .periodo, .h3d .tags span, .h3d .habil li, .h3d .passos .num, .h3d .form-sub,
.h3d .topo nav a, .h3d .idioma, .h3d .dica, .rotulo, .toque, .h3d .local, .h3d .botao { font-family: var(--mono); }
.h3d .rot, .h3d .sobretitulo { letter-spacing: .14em; font-size: 12px; }
.h3d .tags span, .h3d .habil li { letter-spacing: .02em; font-size: 13px; }

/* títulos: prata escovada em degradê */
.h3d h1, .h3d h2 { letter-spacing: -.035em; font-weight: 700; }
.h3d .hero3d h1 { background: linear-gradient(100deg, #fbfaf7 0%, #d9d4cb 38%, #fffdf8 52%, #b9b2a6 78%, #efe9df 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3d h2 { font-size: clamp(30px, 3vw, 42px); }

/* número de capítulo antes de cada título de seção */
.h3d main { counter-reset: cap; }
.h3d section.beat:not(.hero3d) { counter-increment: cap; }

/* números de capítulo removidos a pedido */

/* vidro com borda de luz (degradê na borda) */
.h3d .habil, .h3d .exp, .h3d .proj, .h3d .form, .h3d .placa, .h3d .lab-cartao {
	border: 1px solid transparent;
	background: linear-gradient(rgb(20 18 16 / .78), rgb(20 18 16 / .78)) padding-box,
		linear-gradient(140deg, rgb(241 237 230 / .28), rgb(241 237 230 / .04) 40%, rgb(205 189 163 / .22)) border-box;
	backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 24px 60px -30px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .04);
}
.h3d .placa { background: linear-gradient(rgb(14 13 12 / .82), rgb(14 13 12 / .82)) padding-box, linear-gradient(140deg, rgb(241 237 230 / .22), rgb(241 237 230 / .03) 45%, rgb(205 189 163 / .18)) border-box; }
.h3d .exp.destaque { border-left: 1px solid transparent; }
.h3d .form { border-left: 1px solid transparent; }
.h3d .habil.foco { box-shadow: 0 0 0 1px rgb(205 189 163 / .5), 0 0 40px rgb(205 189 163 / .2); }

/* topo em pílula de vidro flutuante */
.h3d .topo { margin: 14px auto 0; width: min(var(--largura), calc(100% - 32px)); padding: 10px 14px 10px 18px; border-radius: 999px; background: rgb(16 14 13 / .55); border: 1px solid rgb(241 237 230 / .08); backdrop-filter: blur(16px) saturate(1.3); top: 14px; }
.h3d .topo nav a { font-size: 15px; letter-spacing: .01em; border-radius: 999px; }
.h3d .topo nav a.ativo { background: rgb(241 237 230 / .92); }
.h3d .idioma { border-radius: 999px; }

/* botões */
.h3d .botao { border-radius: 999px; letter-spacing: .08em; font-size: 12.5px; transition: box-shadow .2s, transform .15s, background .2s; }
.h3d .botao:not(.vazado) { background: linear-gradient(180deg, #fbf8f2, #ddd6ca); border-color: transparent; }
.h3d .botao:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgb(205 189 163 / .45); }
.h3d .botao.vazado { border-color: rgb(241 237 230 / .25); backdrop-filter: blur(8px); }

/* barra de progresso da rolagem */
.progresso { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 40; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgb(205 189 163 / 0), var(--areia) 60%, #fff8ea); pointer-events: none; }

/* títulos entram uma vez, deslizando por trás de uma máscara */
.h3d .revela { display: block; overflow: hidden; padding-bottom: .08em; }
.h3d .revela > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.h3d .visto .revela > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .h3d .revela > span { transform: none; transition: none; } }
@media (max-width: 640px) { .h3d .topo { border-radius: 16px; } }

/* pôster vivo enquanto o 3D carrega: animação no compositor, não trava mesmo com a página ocupada */
.poster { animation: h3-respira 6s ease-in-out infinite; will-change: transform; }
@keyframes h3-respira { 50% { transform: translateY(-8px) scale(1.012); } }
@media (prefers-reduced-motion: reduce) { .poster { animation: none; } }

/* ================= thumbnails no nível do chip: aço escovado, ouro velho, vidro e luz ================= */
.h3d .th {
	--aco: linear-gradient(135deg, #f6f5f2 0%, #bdbdba 30%, #ecebe7 48%, #9a9b99 68%, #dcdad5 100%);
	--escovado: repeating-linear-gradient(90deg, rgb(255 255 255 / .06) 0 1px, rgb(0 0 0 / .05) 1px 2px, transparent 2px 4px);
	--ouro: linear-gradient(135deg, #e0c088 0%, #8a6a3c 42%, #d6b57a 60%, #6c512b 100%);
	--brilho: 0 0 24px rgb(205 189 163 / .35);
	background: radial-gradient(60% 80% at 22% 0%, rgb(255 236 205 / .14), transparent 60%), radial-gradient(90% 90% at 50% 120%, #2a241f, transparent 70%), radial-gradient(120% 120% at 50% 50%, #191614, #0b0a09);
	border-bottom: 1px solid rgb(241 237 230 / .08);
}
.h3d .th::before { /* poeira de dados, como a do chip */
	background-image: radial-gradient(rgb(255 236 200 / .7) 0 1px, transparent 1.6px), radial-gradient(rgb(255 236 200 / .35) 0 .8px, transparent 1.3px);
	background-size: 37px 29px, 23px 41px; background-position: 3px 7px, 11px 2px; opacity: .55;
	mask-image: radial-gradient(70% 80% at 50% 50%, #000 30%, transparent 85%);
}
.h3d .th::after { background: linear-gradient(115deg, transparent 38%, rgb(255 248 235 / .1) 50%, transparent 62%); }

/* 01 homelab: escudo de ouro velho, casa em aço, aparelhos com aro de aço */
.h3d .th-casa .escudo { background: var(--ouro); filter: drop-shadow(0 10px 22px rgb(0 0 0 / .6)); }
.h3d .th-casa .escudo::before { inset: 3px; background: radial-gradient(80% 60% at 50% 15%, #3a3530, #141210 75%), repeating-linear-gradient(60deg, rgb(205 189 163 / .07) 0 1px, transparent 1px 7px); background-blend-mode: normal; }
.h3d .th-casa .telhado { background: var(--aco); }
.h3d .th-casa .telhado::after { background: #191715; }
.h3d .th-casa .corpo { border-color: #d9d8d4; background: linear-gradient(#211e1b, #151311); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.h3d .th-casa .porta { background: var(--aco); }
.h3d .th-casa .ap { border: 0; background: radial-gradient(circle at 50% 50%, #1d1a17 0 58%, transparent 60%), var(--aco); box-shadow: 0 10px 22px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .5); }
.h3d .th-casa .ap::after { background: linear-gradient(90deg, rgb(224 192 136 / .9), rgb(224 192 136 / .1)); height: 1.5px; box-shadow: 0 0 6px rgb(224 192 136 / .6); }
.h3d .th-casa .ap.d::after { background: linear-gradient(270deg, rgb(224 192 136 / .9), rgb(224 192 136 / .1)); }

/* 02 e-mail: envelope de aço escovado com lacre de ouro, selos em vidro */
.h3d .th-email .env { border: 0; background: var(--escovado), var(--aco); box-shadow: 0 22px 44px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .7); }
.h3d .th-email .env::before { background: var(--escovado), linear-gradient(180deg, #d4d3cf, #8f908e); filter: drop-shadow(0 2px 2px rgb(0 0 0 / .25)); }
.h3d .th-email .env::after { background: var(--ouro); box-shadow: 0 0 0 3px rgb(0 0 0 / .25), var(--brilho); }
.h3d .th-email .selos b { background: rgb(255 255 255 / .06); border-color: rgb(241 237 230 / .16); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.h3d .th-email .selos b::before { background-color: #d6b57a; box-shadow: 0 0 10px rgb(214 181 122 / .6); }

/* 03 dados: monitor com moldura de aço e tela de vidro, barras em ouro aceso */
.h3d .th-dados .tela { border: 0; padding: 22px 10px 10px; background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .01)), #12100e; box-shadow: 0 0 0 3px #3a3733, 0 0 0 4px #8d8c88, 0 26px 50px rgb(0 0 0 / .6); }
.h3d .th-dados .bloco { background: rgb(255 255 255 / .025); border-color: rgb(241 237 230 / .08); }
.h3d .th-dados .barras i { background: linear-gradient(180deg, #f2d9a8, #8a6a3c); box-shadow: 0 0 10px rgb(224 192 136 / .35); }
.h3d .th-dados .kpi b { background: var(--ouro); }
.h3d .th-dados .linha::before { background: linear-gradient(180deg, rgb(224 192 136 / .45), transparent); }
.h3d .th-dados .calor i { background: #e0c088; }

/* 04 automação: discos de aço com ícones de ouro, fluxo com luz correndo */
.h3d .th-auto .fluxo { height: 2px; background: linear-gradient(90deg, rgb(224 192 136 / .15), rgb(224 192 136 / .5), rgb(224 192 136 / .15)); }
.h3d .th-auto .fluxo::after { width: 26px; height: 3px; margin: -1.5px 0 0 -13px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff3dc); box-shadow: 0 0 12px 2px rgb(255 226 176 / .6); }
.h3d .th-auto .no { border: 0; background: radial-gradient(circle, #1b1815 0 60%, transparent 62%), var(--aco); box-shadow: 0 14px 28px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .6); }
.h3d .th-auto .relogio::before, .h3d .th-auto .engrenagem::before, .h3d .th-auto .engrenagem::after, .h3d .th-auto .balao::before { border-color: #d6b57a; filter: drop-shadow(0 0 4px rgb(214 181 122 / .5)); }
.h3d .th-auto .relogio::after { background: #d6b57a; }

/* 05 ranking: barras em ouro velho, avatares de aço */
.h3d .th-rank .lista b > i:first-child { background: radial-gradient(circle at 50% 38%, #1b1815 0 26%, transparent 28%), radial-gradient(circle at 50% 110%, #1b1815 0 44%, transparent 46%), var(--aco); border: 0; box-shadow: 0 4px 10px rgb(0 0 0 / .5); }
.h3d .th-rank .lista b > i:last-child { background: var(--escovado), linear-gradient(90deg, #4a443d, #8d8c88); }
.h3d .th-rank .lista b:first-child > i:last-child { background: var(--escovado), var(--ouro); box-shadow: var(--brilho); }

/* tela de carregamento: só CSS animado no compositor (não trava enquanto o 3D monta) */
.carga { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, #1d1916, #0b0a09 70%); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.carregando .carga { opacity: 1; visibility: visible; transition: none; }
.carregando body { overscroll-behavior: none; } /* sem overflow: hidden — no iPhone isso zerava a posição ao voltar */
.carga-centro { display: grid; justify-items: center; gap: 22px; }
.carga-logo { width: 64px; height: 64px; fill: #e9e6e0; filter: drop-shadow(0 0 18px rgb(205 189 163 / .45)); animation: carga-pulso 2.2s ease-in-out infinite; }
@keyframes carga-pulso { 50% { transform: scale(1.06); opacity: .85; } } /* só transform/opacity: roda no compositor mesmo com a página ocupada */
.carga-trilho { position: relative; width: 160px; height: 2px; border-radius: 2px; background: rgb(241 237 230 / .1); overflow: hidden; }
.carga-trilho i { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #e0c088, #fff3dc); animation: carga-corre 1.3s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes carga-corre { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.carga-txt { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--sec-claro); }
@media (prefers-reduced-motion: reduce) { .carga-logo, .carga-trilho i { animation: none; } }

}

/* ================= celular v3: mesmo sistema do desktop — chip em tela cheia, texto em vidro;
   o chip alterna entre cima e baixo como no desktop alterna esquerda/direita ================= */
@media (max-width: 1000px) {
	.palco { position: fixed; inset: 0 0 auto 0; height: 100lvh; background: radial-gradient(70% 45% at 50% 50%, #302a26 0%, #1a1715 55%, #0b0a09 100%); }
	.palco::before { display: none; }
	.palco::after { background: none; }
	#cena { touch-action: pan-y; }
	/* cada seção começa abaixo do chip; ao ler, o vidro sobe por cima dele com desfoque (como as placas do desktop) */
	.h3d section.beat { min-height: 100svh; padding: 50svh 0 8svh; align-items: flex-start; }
	.h3d .hero3d { padding-top: 0; align-items: flex-end; padding-bottom: 7svh; }
	.h3d .lado .col, .h3d .placa {
		border: 1px solid transparent; border-radius: 18px; padding: 22px 18px;
		background: linear-gradient(rgb(14 13 12 / .72), rgb(14 13 12 / .72)) padding-box, linear-gradient(140deg, rgb(241 237 230 / .26), rgb(241 237 230 / .04) 40%, rgb(205 189 163 / .22)) border-box;
		backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
		box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .05);
	}
	.h3d .hero3d .col { background: linear-gradient(rgb(14 13 12 / .5), rgb(14 13 12 / .5)) padding-box, linear-gradient(140deg, rgb(241 237 230 / .2), rgb(241 237 230 / .03) 40%, rgb(205 189 163 / .18)) border-box; }
	.h3d .hero3d h1 { font-size: clamp(30px, 9vw, 44px); white-space: normal; }
	.h3d .dica { margin-top: 18px; }
	.h3d .habilidades { grid-template-columns: 1fr 1fr; gap: 8px; }
	.h3d .habil { padding: 12px; }
	.h3d .habil h3 { font-size: 13.5px; }
	.h3d .habil li { font-size: 12px; padding: 3px 6px; }
	.h3d .redes { display: none; }
}

/* projetos: 5 cartões em 2 colunas deixavam um buraco — o 1º vira destaque em largura cheia (imagem ao lado do texto) */
@media (min-width: 1001px) {
	.h3d .cheia .lab-grade > .lab-cartao:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 28px; align-items: start; }
	.h3d .cheia .lab-grade > .lab-cartao:first-child .th { grid-column: 1; grid-row: 1 / -1; margin: -24px 0 -24px -24px; aspect-ratio: auto; height: calc(100% + 48px); min-height: 260px; border-bottom: 0; border-right: 1px solid rgb(241 237 230 / .08); border-radius: 4px 0 0 4px; }
	.h3d .cheia .lab-grade > .lab-cartao:first-child > :not(.th) { grid-column: 2; }
	.h3d .cheia .lab-grade > .lab-cartao:first-child h3 { font-size: 24px; }
}

/* telas de notebook (altura até 820 px): texto um pouco mais compacto para caber ao lado do chip */
@media (min-width: 1001px) and (max-height: 820px) {
	.h3d section.beat { padding: 88px 0 64px; }
	.h3d .col { max-width: 440px; }
	.h3d .hero3d h1 { font-size: clamp(34px, 3.8vw, 56px); }
	.h3d h2 { font-size: 30px; margin-bottom: 20px; }
	.h3d .sobre .foto { width: 130px; margin-bottom: 22px; }
	.h3d .sobre p { font-size: 15px; }
	.h3d .habil { padding: 14px; } .h3d .habil h3 { font-size: 14px; margin-bottom: 8px; }
	.h3d .exp ul { font-size: 13.5px; gap: 7px; }
	.h3d .cheia .placa { max-width: min(700px, 54vw); padding: 30px; }
}
.carga-pct { font: 600 13px var(--fonte); letter-spacing: .12em; color: var(--texto-claro); font-variant-numeric: tabular-nums; }
.carga-trilho i#cargaBarra { animation: none; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #8a6a3c, #e0c088, #fff3dc); }

/* aviso de deslizar só aparece no celular */
.deslize { display: none; }
@media (max-width: 1000px) { .h3d .deslize { display: block; } }

/* ================= celular v4 (referência: seções como "folhas" empilhadas) =================
   Cada seção é uma folha de cantos arredondados que sobe por cima do chip; tons alternados da Pedra quente;
   rótulo pequeno com ponto acima do título; pilares em carrossel de deslizar; botões largos. */
@media (max-width: 1000px) {
	.h3d section.beat { padding: 48svh 0 0; min-height: 0; display: block; }
	.h3d section.beat > .conteudo:not(.placa) { padding: 0; }
	.h3d .habilidades { scroll-padding-left: 22px; }
	.h3d .lado .col, .h3d .placa, .h3d .hero3d .col {
		max-width: none; margin: 0; border-radius: 28px 28px 0 0; border: 0; padding: 30px 22px 44px;
		background: #171412; box-shadow: 0 -18px 40px -10px rgb(0 0 0 / .7), inset 0 1px 0 rgb(241 237 230 / .08);
		backdrop-filter: none; -webkit-backdrop-filter: none; min-height: 52svh;
	}
	.h3d section.beat:nth-of-type(even) .col, .h3d section.beat:nth-of-type(even) .placa { background: #1f1b18; }
	.h3d #contato .col { background: linear-gradient(180deg, #2a231d, #171412); }
	.h3d .hero3d { padding-top: 47svh; }
	.h3d .hero3d .col { background: linear-gradient(180deg, rgb(23 20 18 / .0) 0, #171412 70px); box-shadow: none; padding-top: 40px; }
	/* rótulo com ponto */
	.h3d section.beat h2 { font-size: 32px; line-height: 1.08; letter-spacing: -.03em; }
	.h3d section.beat h2 .traco { display: none; }
	.h3d section.beat:not(.hero3d) h2:not(.como)::before { content: attr(data-rot); display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sec-claro); margin-bottom: 12px; }
	.h3d section.beat:not(.hero3d) h2:not(.como)::after { content: ""; position: absolute; }
	/* pilares: carrossel */
	.h3d .habilidades { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 4px 22px 14px; scrollbar-width: none; }
	.h3d .habilidades::-webkit-scrollbar { display: none; }
	.h3d .habil { flex: 0 0 78%; scroll-snap-align: start; padding: 20px; border-radius: 20px; }
	.h3d .habil h3 { font-size: 17px; }
	.h3d .habil li { font-size: 12px; padding: 4px 9px; }
	.deslize { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sec-claro); margin: 6px 0 0; }
	/* cartões internos arredondados como na referência */
	.h3d .exp, .h3d .proj, .h3d .lab-cartao, .h3d .form { border-radius: 20px; }
	.h3d .lab-cartao .th { border-radius: 20px 20px 0 0; }
	/* botões largos */
	.h3d .acoes { flex-direction: column; }
	.h3d .acoes .botao { width: 100%; justify-content: center; height: 52px; }
	.h3d .rodape { background: #171412; }
}

/* tela de carregamento v2: anel de progresso, ponto orbitando, logo com brilho e número grande */
.carga { background: radial-gradient(50% 50% at 50% 46%, #241e19 0%, #0f0d0b 60%, #0b0a09 100%); }
.carga-centro { gap: 26px; }
.carga-anel { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.carga-anel > svg:first-child, .carga-orbita { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-fundo { fill: none; stroke: rgb(241 237 230 / .08); stroke-width: 1.5; }
.cg-arco { fill: none; stroke: #d6b57a; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 6px rgb(214 181 122 / .6)); }
.carga-orbita { animation: carga-gira 2.4s linear infinite; }
.carga-orbita circle { fill: #fff3dc; filter: drop-shadow(0 0 5px #e0c088); }
@keyframes carga-gira { to { transform: rotate(360deg); } }
.carga-logo { width: 54px; height: 54px; fill: #ece8e1; animation: carga-pulso 2.4s ease-in-out infinite; filter: none; }
.carga-anel::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgb(224 192 136 / .28), transparent 70%); animation: carga-pulso 2.4s ease-in-out infinite; z-index: -1; }
.carga-pct { font: 300 15px var(--fonte); letter-spacing: .14em; color: var(--sec-claro); font-variant-numeric: tabular-nums; }
.carga-pct::after { content: "%"; margin-left: 2px; color: #8c857c; }
.carga-txt, .carga-trilho { display: none; }
.carga { transition: opacity .28s ease-out, visibility 0s linear .28s; }
.carga .carga-centro { transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
html:not(.carregando) .carga .carga-centro { transform: scale(.92); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .carga-orbita, .carga-anel::after { animation: none; } }

/* desempenho: desfoque de fundo (backdrop-filter) sobre o canvas 3D é recalculado a cada quadro em cada cartão.
   Cartões e placas ficam com vidro opaco (mesmo visual, sem o custo); só o menu mantém o desfoque */
.h3d .habil, .h3d .exp, .h3d .proj, .h3d .form, .h3d .placa, .h3d .lab-cartao, .h3d .lado .col, .h3d .hero3d .col {
	backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.h3d .habil, .h3d .exp, .h3d .proj, .h3d .form, .h3d .lab-cartao {
	background: linear-gradient(rgb(22 19 17 / .93), rgb(22 19 17 / .93)) padding-box, linear-gradient(140deg, rgb(241 237 230 / .28), rgb(241 237 230 / .04) 40%, rgb(205 189 163 / .22)) border-box;
}
.h3d .placa { background: linear-gradient(rgb(14 13 12 / .92), rgb(14 13 12 / .92)) padding-box, linear-gradient(140deg, rgb(241 237 230 / .22), rgb(241 237 230 / .03) 45%, rgb(205 189 163 / .18)) border-box; }
.h3d .botao.vazado { backdrop-filter: none; }
#cena { will-change: opacity; }

/* celular: a 1ª tela mostra o início inteiro (chip + nome + botões + dica), na mesma distância chip–nome */
@media (max-width: 1000px) {
	.h3d .hero3d { padding-top: 38svh; }
	.h3d .hero3d .col { padding: 22px 22px 26px; min-height: 0; }
	.h3d .hero3d .sobretitulo { margin-bottom: 10px; font-size: 12px; }
	.h3d .hero3d h1 { font-size: clamp(30px, 8.6vw, 40px); }
	.h3d .hero3d .cargo-hero { font-size: 15.5px; margin-top: 10px; line-height: 1.35; }
	.h3d .hero3d .frase { font-size: 15px; margin-top: 8px; }
	.h3d .hero3d .local { font-size: 13px; margin-top: 10px; }
	.h3d .hero3d .acoes { flex-direction: row; gap: 10px; margin-top: 18px; }
	.h3d .hero3d .acoes .botao { flex: 1; height: 46px; padding: 0 12px; }
	.h3d .hero3d .dica { margin-top: 16px; font-size: 12.5px; }
}

/* celular: o início usa a área visível de verdade (svh, com as barras do Safari) para chip e texto */
@media (max-width: 1000px) {
	.palco { height: 100svh; }
	.h3d section.beat.hero3d { padding-top: 37svh; }
	.h3d section.beat.hero3d .col { padding-top: 14px; padding-bottom: 18px; }
}
@media (max-width: 1000px) {
	.h3d .hero3d .cargo-hero { font-size: 14.5px; }
	.h3d .hero3d .frase { font-size: 14px; }
	.h3d section.beat.hero3d { padding-top: 35svh; }
}

/* conteúdo revisado: descrição das competências, números de resultado e método explicado */
.h3d .habil-desc { font-size: 13px; line-height: 1.45; color: var(--sec-claro); margin: -4px 0 12px; }
.h3d .numeros .proj { display: grid; gap: 4px; align-content: start; }
.h3d .numeros .numero { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(100deg, #fbfaf7, #cdbda3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3d .numeros .proj p:not(.numero) { font-size: 13.5px; color: var(--sec-claro); line-height: 1.45; }
.h3d .passos li { font-size: 15px; gap: 6px; }
.h3d .passos small { font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--sec-claro); }
@media (max-width: 1000px) {
	.h3d .lado .entrega-grade.numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.h3d .numeros .proj { padding: 16px; }
	.h3d .numeros .numero { font-size: 32px; }
	.h3d .numeros .proj p:not(.numero) { font-size: 12.5px; }
}

/* método DMAIC: lista vertical com etapa, descrição e base metodológica */
.h3d .passos.metodo { grid-template-columns: 1fr !important; gap: 0; }
.h3d .passos.metodo li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--borda); font-weight: 400; }
.h3d .passos.metodo .num { padding-top: 3px; color: var(--areia); }
.h3d .passos.metodo strong { display: block; font-size: 16px; color: var(--texto-claro); margin-bottom: 3px; }
.h3d .passos.metodo p { font-size: 13.5px; line-height: 1.5; color: var(--texto-claro); }
.h3d .passos.metodo small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-claro); }

/* "Como eu trabalho" interativo: a etapa na tela acende a peça do chip e se destaca na lista */
.h3d .passos.metodo li { transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.h3d .passos.metodo.vivo li.ativa { opacity: 1; transform: translateX(8px); }
.h3d .passos.metodo li.ativa .num { color: #fff3dc; text-shadow: 0 0 12px rgb(224 192 136 / .8); }
.h3d .passos.metodo li::after { content: ""; grid-column: 2; height: 2px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, #e0c088, transparent); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.h3d .passos.metodo li.ativa::after { transform: scaleX(1); }
@media (min-width: 1001px) { .h3d .passos.metodo li { padding: 26px 0; } }

/* "Como trabalho" interativo: competência ativa acende, as outras esmaecem; a camada do chip acompanha */
.h3d .habil { transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; cursor: pointer; }
.h3d .habilidades.vivo .habil.ativa { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(205 189 163 / .55), 0 18px 40px -18px rgb(205 189 163 / .35); }
.h3d .habil.ativa h3 .traco { background: #e0c088; }

/* Experiência interativa: o cargo no centro acende; os outros esmaecem */
.h3d .exp { transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s; }
.h3d .exp-grade.vivo .exp.ativa { opacity: 1; transform: translateX(-6px); border-color: rgb(205 189 163 / .45); box-shadow: 0 0 0 1px rgb(205 189 163 / .35), 0 18px 40px -18px rgb(205 189 163 / .3); }
.h3d .exp.ativa .cargo { color: #e0c088; }

/* Trilha: a linha se preenche com a rolagem; a etapa no centro acende */
.h3d .linha-tempo::after { content: ""; position: absolute; left: 11px; top: 6px; width: 2px; height: calc((100% - 6px - var(--fim, 6px)) * var(--avanco, 0)); background: linear-gradient(#e0c088, #a6834c); box-shadow: 0 0 10px rgb(224 192 136 / .55); border-radius: 2px; }
.h3d .linha-tempo li { transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
/* só o texto avança; a bola fica sempre no centro da linha */
.h3d .linha-tempo li > div { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.h3d .linha-tempo.vivo li.ativa > div { transform: translateX(6px); }
.h3d .linha-tempo::before { bottom: var(--fim, 6px); } /* a linha termina na última bola */
.h3d .linha-tempo li.ativa .ponto { border-color: #e0c088; box-shadow: 0 0 0 4px rgb(224 192 136 / .18), 0 0 16px rgb(224 192 136 / .6); transition: box-shadow .45s, border-color .45s; }
.h3d .linha-tempo li.ativa h3 { color: #fff3dc; }

/* Números: contam ao entrar na tela */
.h3d .numeros .proj { transition: box-shadow .8s; }
.h3d .numeros .proj.contou { box-shadow: 0 0 0 1px rgb(205 189 163 / .28); }
@media (prefers-reduced-motion: reduce) { .h3d .exp, .h3d .linha-tempo li > div { transition: none; transform: none !important; } }

/* ?filme: modo gravação, sem interface fixa */
.filme .topo, .filme .redes, .filme .progresso, .filme .menu-cel, .filme .dica { display: none !important; }

.og .acoes, .og .dica, .og .local { display: none !important; }

/* thumbnails v3: cenas 3D renderizadas (ferramentas/thumbs), fundo transparente para os dois temas */
.h3d .th.th-v3 { background: radial-gradient(60% 55% at 50% 46%, #3a332c 0%, #211d19 48%, #12100e 100%); }
.h3d .th.th-v3::before { display: none; }
.th-v3 picture { position: absolute; inset: 0; }
.th-v3 img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.lab-cartao:hover .th-v3 img { transform: scale(1.045); }
html.claro .h3d .th.th-v3 { background: radial-gradient(60% 55% at 50% 44%, #f8f7f4 0%, #e6e3dd 55%, #cbc7bf 100%); border-color: rgb(40 32 22 / .1); }
@media (prefers-reduced-motion: reduce) { .th-v3 img { transition: none; } }

/* carregamento v3: o chip se monta camada por camada conforme carrega */
.carga-anel, .carga-trilho, .carga-txt { display: none !important; }
.carga-centro { gap: 18px; }
.carga-chip { width: 150px; height: 178px; overflow: visible; }
.carga-chip .cg-luz { fill: #e0c088; opacity: calc(.06 + var(--p, 0) * .22); filter: blur(14px); }
.cg-pl { transform: translateY(-6px); opacity: .16; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; transition-delay: calc(var(--i) * .03s); }
.cg-pl.on { transform: none; opacity: 1; }
.cg-pl polygon { stroke-width: .9; stroke-linejoin: round; transition: fill .6s, stroke .6s; }
.cg-pl .f-top { fill: #3a342e; stroke: rgb(224 192 136 / .75); }
.cg-pl .f-esq { fill: #6b5532; stroke: rgb(224 192 136 / .45); }
.cg-pl .f-dir { fill: #3d301c; stroke: rgb(224 192 136 / .45); }
.cg-pl:nth-child(even of .cg-pl) .f-top { fill: #45403a; }
.cg-pl:last-of-type .f-top { fill: #c9c7c2; stroke: #f1ede6; }
.cg-pl:last-of-type .f-esq { fill: #8a6a3c; } .cg-pl:last-of-type .f-dir { fill: #5f4826; }
.cg-a path { fill: #2a2622; }
.carga-chip .cg-pl.on:not(:last-of-type) .f-top { animation: cg-acende 1.1s ease-out; }
@keyframes cg-acende { 0% { stroke: #fff3dc; fill: #6a5f52; } 100% { stroke: rgb(224 192 136 / .75); } }
.carga-rodape { display: grid; justify-items: center; gap: 10px; }
.carga-nome { font: 500 12px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .42em; text-transform: uppercase; margin-right: -.42em;
	background: linear-gradient(90deg, #6f675e 0%, #6f675e 35%, #fff3dc 50%, #6f675e 65%, #6f675e 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cg-brilho 2.4s linear infinite; }
@keyframes cg-brilho { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .carga-nome { animation: none; color: #cdbda3; background: none; } }
.carga-barra { width: 140px; height: 1px; background: rgb(241 237 230 / .12); overflow: hidden; }
.carga-barra i { display: block; height: 100%; background: linear-gradient(90deg, #8a6a3c, #e0c088, #fff3dc); transform-origin: left; transform: scaleX(var(--p, 0)); }
.carga-pct { font: 500 12px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; color: #8c857c; }
.carga-pct::after { content: "%"; margin-left: 1px; }
@media (prefers-reduced-motion: reduce) { .cg-pl { transition: none; } .carga-chip .cg-pl.on .f-top { animation: none; } }

.h3d .cargo-hero { text-wrap: balance; }

/* celular: a primeira tela ocupa a altura toda */
@media (max-width: 1000px) { .h3d section.beat.hero3d .col { min-height: 65svh; } }

/* ===== Trilha: certificações (cartões por área, galeria e visualizador) =====
   Cores só por variáveis do tema (claro/escuro). --ouro = destaque. */
.h3d { --ouro: #e0c088; --ouro-forte: #f0d4a2; --sobre-ouro: #1b1816; }

.lista-completa { margin-top: 20px; font-size: .9em; }
.lista-completa a { color: var(--sec-claro); text-underline-offset: 3px; }
.lista-completa a:hover { color: var(--texto-claro); }

/* botão "Ver certificado" (ISO 42001) */
.ver-certs { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--texto-claro); text-decoration: none; padding: 8px 16px; border: 1px solid var(--borda); border-radius: 999px; background: var(--cartao); transition: border-color .2s, transform .2s; }
.ver-certs::after { content: "→"; color: var(--ouro); transition: transform .2s; }
.ver-certs:hover, .ver-certs:focus-visible { border-color: var(--ouro); }
.ver-certs:hover::after { transform: translateX(3px); }

/* cartões das áreas */
.areas { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.areas li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.area { width: 100%; height: 100%; display: grid; gap: 4px; text-align: left; font: inherit; cursor: pointer; padding: 14px 40px 14px 16px; position: relative; color: var(--texto-claro); background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.area::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ouro); transition: transform .2s; }
.area-t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.area-n { font-size: 13px; color: var(--sec-claro); }
.area:hover, .area:focus-visible { border-color: var(--ouro); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .12); }
.area:hover::after { transform: translate(3px, -50%); }

/* modal */
.modal-aberto { overflow: hidden; }
.certs-modal { margin: auto; inset: 0; width: min(880px, calc(100vw - 32px)); max-height: min(86vh, 820px); padding: 0; color: var(--texto-claro); background: var(--escuro); border: 1px solid var(--borda); border-radius: 18px; box-shadow: 0 30px 80px rgb(0 0 0 / .35); overflow: auto; overscroll-behavior: contain; }
.certs-modal::backdrop { background: rgb(10 9 8 / .6); backdrop-filter: blur(6px); }
.certs-modal[open] { animation: certs-entra .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes certs-entra { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.certs-cab { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--escuro); border-bottom: 1px solid var(--borda); }
.certs-cab h3 { margin: 0; font-size: 20px; line-height: 1.25; color: var(--texto-claro); }
.cab-meta { margin: 4px 0 0; font-size: 13.5px; color: var(--sec-claro); }
.certs-cab .fechar { flex: none; font-size: 24px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borda); background: var(--cartao); color: var(--texto-claro); cursor: pointer; transition: border-color .2s; }
.certs-cab .fechar:hover, .certs-cab .fechar:focus-visible { border-color: var(--ouro); }

/* galeria */
.galeria { list-style: none; margin: 0; padding: 22px 24px 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cc { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; padding: 10px 10px 14px; text-decoration: none; color: var(--texto-claro); background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.cc:hover, a.cc:focus-visible { border-color: var(--ouro); transform: translateY(-3px); box-shadow: 0 14px 28px rgb(0 0 0 / .14); }
.cc-img { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 6px; overflow: hidden; border-radius: 8px; background: #f3f1ec; }
.cc-img img { width: 100%; height: 100%; object-fit: contain; }
.cc-emissor { padding: 0 12px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b665e; }
.cc-nome { padding: 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { padding: 0 4px; font-size: 12.5px; color: var(--sec-claro); }

/* visualizador */
.cert-ver { width: min(980px, calc(100vw - 32px)); max-height: 94vh; }
.cert-ver-corpo { display: grid; place-items: center; padding: 20px 24px 8px; }
.cert-ver-corpo img { width: auto; max-width: 100%; height: auto; max-height: calc(94vh - 200px); object-fit: contain; border-radius: 8px; background: #f3f1ec; box-shadow: 0 12px 34px rgb(0 0 0 / .3); }
.cert-ver-pe { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 22px; }
.nav { display: flex; align-items: center; gap: 10px; color: var(--sec-claro); font-size: 13.5px; }
.nav[hidden] { display: none; }
.nav button { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--texto-claro); background: var(--cartao); border: 1px solid var(--borda); transition: border-color .2s; }
.nav button:hover:not(:disabled), .nav button:focus-visible { border-color: var(--ouro); }
.nav button:disabled { opacity: .35; cursor: default; }
.cert-ver .credencial, .cert-ver .credencial:visited { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--ouro); color: var(--sobre-ouro); font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.cert-ver .credencial::after { content: "↗"; }
.cert-ver .credencial:hover, .cert-ver .credencial:focus-visible { background: var(--ouro-forte); color: var(--sobre-ouro); transform: translateY(-1px); }
.cert-ver .credencial[hidden] { display: none; }

@media (max-width: 560px) {
	.areas { grid-template-columns: 1fr; }
	.galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; }
	.certs-cab { padding: 16px; }
	.cc-nome { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.certs-modal[open] { animation: none; }
	.area, .cc, .ver-certs, .cert-ver .credencial { transition: none; }
	.area:hover, a.cc:hover, .cert-ver .credencial:hover { transform: none; }
}
/* os cartões ficam dentro de um item da linha do tempo: não herdam o layout dele */
.linha-tempo .areas li, .h3d .linha-tempo .areas li { display: block; position: static; transform: none; opacity: 1; padding: 0; gap: 0; grid-template-columns: none; }
.linha-tempo .areas li::before, .linha-tempo .areas li::after { content: none; }
.nav .pos { white-space: nowrap; background: none; padding: 0; min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.cc-img { position: relative; }
.cc-img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.cc-cred { padding: 2px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--ouro); }
.cc-cred::after { content: " ↗"; }
