/* MobilyTech · portfólio e 404 no estilo único (16/11/2026). Carregado por trabalhos.html, trabalho-*.html e 404.html.
   Só sobrepõe a CASCA (eyebrow, títulos, CTAs, voltar, letreiro); o conteúdo e as cores/fontes de cada caso ficam como estão.
   Movimento: só transform/opacity/translate/clip-path; curvas .22,1,.36,1 e .2,.8,.2,1; sem JS ou com movimento reduzido = estado final.
   JS par: portfolio-estilo.js (marca html.pe-ok; revelação via .pe-in; odômetro da 404; velocidade do letreiro). */
:root { --pe-az: #0F60D9; --pe-az-h: #0A4FB8; --pe-hl: #1478FF; --pe-e1: cubic-bezier(.22, 1, .36, 1); --pe-e2: cubic-bezier(.2, .8, .2, 1); }

/* ---------- títulos da casca: Poppins 400 + uma palavra em Instrument Serif itálica azul ---------- */
.tt-tit, .tt .t-h2, .pj-final__tit, .pj-final__tit--mt, .pj-px__frase { font-family: var(--f-display); font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
.tt-tit em, .tt .t-h2 em, .pj-final__tit em, .pj-final__tit--mt em, .pj-px__frase em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; line-height: .9; color: var(--pe-hl); }
.pj-final__tit em, .pj-final__tit--mt em, .pj-px__frase em { font-size: 1.22em; }
.pj-pagina--escura .pj-final__tit em, .pj-pagina--escura .pj-final__tit--mt em, .pj-pagina--escura .pj-px__frase em { color: #5AA2FF; }
.pj-final__tit { font-size: clamp(30px, 3vw, 44px); line-height: 1.12; }
.tt-tit { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; }
.tt-tit em { font-size: 1.14em; }

/* ---------- rótulos: Geist Mono, ponto de destaque azul ---------- */
.pj-rot, .pj-migalha, .pj-px__pe { font-family: var(--f-mono); }
.pj-rot:before, .pj-final__caixa--anuncio .pj-rot:before { background: var(--pe-hl); box-shadow: 0 0 0 4px rgba(20, 120, 255, .18); }

/* ---------- voltar: Poppins, azul da marca ---------- */
.pj-migalha__volta, .pj-px__voltar { font-family: var(--f-display); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--pe-az); text-underline-offset: 4px; transition: color .18s var(--pe-e2), gap .3s var(--pe-e1); }
.pj-pagina--escura .pj-migalha__volta, .pj-pagina--escura .pj-px__voltar { color: #6FA9FF; }
.pj-migalha__volta:hover, .pj-px__voltar:hover { color: var(--pe-az-h); text-decoration: underline; }
.pj-pagina--escura .pj-migalha__volta:hover, .pj-pagina--escura .pj-px__voltar:hover { color: #A8CBFF; }

/* ---------- mockups computador/celular: flutuação lenta, só com o palco na tela ---------- */
@keyframes pe-flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--u, 1px) * -9); } }
@media (prefers-reduced-motion: no-preference) {
  .pj-palco .pj-at { animation: pe-flutua 7s ease-in-out infinite; animation-play-state: paused; }
  .pj-palco .pj-at:nth-of-type(2n) { animation-duration: 8.5s; animation-delay: -3.2s; }
  .pj-palco.pj-em-tela .pj-at { animation-play-state: running; }
}

/* ---------- revelação por rolagem (só esconde com html.js-motion; rede de segurança em 3 s) ---------- */
@keyframes pe-socorro { to { opacity: 1; translate: none; clip-path: none; } }
html.js-motion .pe-rev:not(.pe-in) { opacity: 0; translate: 0 16px; }
html.js-motion .pe-rev.pe-in { opacity: 1; translate: none; transition: opacity .6s var(--pe-e1) var(--pe-d, 0ms), translate .6s var(--pe-e1) var(--pe-d, 0ms); }
html.js-motion:not(.pe-ok) .pe-rev:not(.pe-in), html.js-motion:not(.pe-ok) .tt-janela:not(.pe-in) { animation: pe-socorro .5s var(--pe-e1) 2.5s both; }

/* ---------- /trabalhos ---------- */
.tt-topo:before { background: radial-gradient(closest-side, rgba(20, 120, 255, .09), transparent); opacity: 1; }
.tt-topo .eyebrow, .tt-fim .eyebrow, .nf-caixa .eyebrow { font-family: var(--f-mono); }
.tt-lead { color: var(--ui-tinta-2, #3B3B42); }
/* filtros no padrão .ui-seg (cinza-claro, ativo preto) */
.tt-filtros.ui-seg { display: flex; flex-wrap: nowrap; gap: 0; max-width: 100%; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
.tt-filtros.ui-seg::-webkit-scrollbar { display: none; }
.tt-filtros .tt-filtro.ui-seg__item { align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; font: 600 13px/1 var(--f-text); color: var(--ui-tinta-2, #3B3B42); transition: color .25s var(--pe-e2), background-color .25s var(--pe-e2), box-shadow .25s var(--pe-e2); }
.tt-filtros .tt-filtro.ui-seg__item:after { display: none; }
.tt-filtros .tt-filtro.ui-seg__item span { translate: none; font: 500 11px/1 var(--f-mono); color: inherit; opacity: .65; }
.tt-filtros .tt-filtro.ui-seg__item:hover { color: var(--ui-tinta, #0A0A0A); }
.tt-filtros .tt-filtro.ui-seg__item[aria-pressed="true"] { color: var(--seg-ativo-fg, #fff); background: var(--seg-ativo, #0A0A0A); box-shadow: var(--ui-ativo-sombra, none); }
/* painéis: a janela revela com clip-path ao rolar e libera o clip no fim (o "cresce" do hover não é cortado) */
@media (prefers-reduced-motion: no-preference) {
  html.js-motion .tt-janela:not(.pe-in):not(.pe-feito) { clip-path: inset(0 0 100% 0 round 10px); }
  html.js-motion .tt-janela.pe-in:not(.pe-feito) { clip-path: inset(0 0 0 0 round 10px); transition: clip-path .9s var(--pe-e1); }
}
.tt-janela { border-radius: var(--raio-lg, 10px); }
.tt-fim { border-radius: 14px 14px 0 0; }
.tt-fim .btn-row { align-items: center; gap: 14px 22px; }

/* ---------- 404 ---------- */
.nf-caixa .nf-cod { font-weight: 400; color: var(--pe-hl); font-variant-numeric: tabular-nums; letter-spacing: -.04em; display: inline-flex; line-height: 1.1; }
.nf-d { display: inline-block; height: 1.1em; overflow: hidden; line-height: 1.1; }
.nf-d__fita { display: flex; flex-direction: column; transform: translateY(calc(var(--nf-i, 0) * -1.1em)); }
.nf-d__fita > span { display: block; height: 1.1em; line-height: 1.1; }
.nf-d--rola .nf-d__fita { transition: transform 1.7s var(--pe-e1) var(--nf-dl, 0s); }
.nf-lupa { display: inline-flex; width: 48px; height: 48px; color: var(--pe-az); }
.nf-lupa svg { width: 100%; height: 100%; overflow: visible; }
@keyframes pe-procura { 0% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(10px, -6px) rotate(8deg); } 50% { transform: translate(-6px, -10px) rotate(-6deg); } 75% { transform: translate(-10px, 4px) rotate(-10deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
@media (prefers-reduced-motion: no-preference) { .nf-lupa svg { animation: pe-procura 4.2s var(--pe-e2) infinite; } }
.nf-acoes { align-items: center; gap: 14px 24px; }
