/* Portfólio João Laureano · identidade Zohrix (preto, ouro, Michroma + Sora, brilho dourado e trama de pontos do manual) */
:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-2: #1C1C1F;
  --ink: #EAE9E6;
  --muted: #A9A398;
  --accent: #F5B841;
  --accent-ink: #0B0B0C;
  --laranja: #E2711D;
  --m: clamp(16px, 2.2vw, 32px);
  --t-xl: clamp(36px, 4.4vw, 64px);
  --t-l: clamp(20px, 1.7vw, 24px);
  --t-m: 17px;
  --t-s: 15px;
  --display: "Michroma", "Sora", system-ui, sans-serif;
  --text: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topo: 56px;
  /* Fundo Zohrix (manual da marca): trama de pontos dourada bem leve */
  --trama: radial-gradient(rgba(245, 184, 65, .085) 1px, transparent 1.6px) 0 0 / 22px 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--trama), var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--t-m); line-height: 1.5; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }

/* Barra do topo */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--m); background: rgba(11, 11, 12, .92); }
.marca { font-family: var(--display); font-size: var(--t-s); text-decoration: none; white-space: nowrap; }
.topo nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.topo nav a { font-size: var(--t-s); text-decoration: none; transition: color .2s; }
.topo nav a:hover { color: var(--accent); }

.botao { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--t-s); text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.botao:hover { background: var(--ink); }
.botao:active { transform: scale(.97); }

/* Abertura: brilho dourado no topo, nome, frase e o showreel */
.hero { padding: calc(var(--topo) + 7svh) var(--m) 0; background: radial-gradient(60% 55% at 50% 0%, rgba(245, 184, 65, .16), transparent 70%); }
.hero-texto { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--m); margin-bottom: 5svh; }
.hero h1 { font-size: clamp(40px, 7vw, 120px); }
.hero-lado { display: grid; gap: 18px; justify-items: start; }
.hero-lado p { font-size: 18px; max-width: 28ch; }
.reel { max-width: calc(76svh * 16 / 9); margin: 0 auto; }
.reel video { width: 100%; height: auto; background: var(--bg); }
.reel-h { aspect-ratio: 16 / 9; }
.reel-v { display: none; aspect-ratio: 9 / 16; }

/* Trabalhos: filtros e grade em colunas, cada peça no formato original (nada é cortado) */
.trabalhos { padding: 160px var(--m) 0; }
.trabalhos-cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.trabalhos h2 { font-size: var(--t-xl); }
.filtro { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro button { min-height: 40px; padding: 0 16px; font-size: var(--t-s); background: var(--surface-2); transition: background-color .2s, color .2s, transform .15s; }
.filtro button:hover { background: #2A2A2E; }
.filtro button:active { transform: scale(.97); }
.filtro button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.grade { columns: 4 230px; column-gap: 16px; }
.peca { break-inside: avoid; margin-bottom: 24px; }
.peca[hidden] { display: none; }
.peca button { display: block; width: 100%; text-align: left; }
.peca img, .peca video { width: 100%; height: auto; background: var(--surface); transition: transform .35s var(--ease), opacity .35s; }
.peca button:hover img, .peca button:hover video { transform: translateY(-4px); }
.peca-txt { display: block; margin-top: 10px; font-size: var(--t-s); color: var(--muted); }
.peca-txt strong { display: block; font-weight: 600; color: var(--ink); }
.peca button:hover strong { color: var(--accent); }

.atalhos { display: flex; flex-wrap: wrap; gap: 8px; }
.atalhos a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--surface-2); font-size: var(--t-s); text-decoration: none; transition: background-color .2s, color .2s; }
.atalhos a:hover { background: var(--accent); color: var(--accent-ink); }
.grade-mix { margin-bottom: 40px; }
.bloco { padding-top: 96px; scroll-margin-top: var(--topo); }
#carrosseis .grade { columns: 3 260px; }
.bloco h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.02em; margin-bottom: 28px; }
/* Carrossel na grade: passa card a card no próprio lugar, sem abrir */
.peca-trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; container-type: inline-size; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.peca-trilho img { flex: none; width: 100cqw; height: auto; aspect-ratio: 4 / 5; scroll-snap-align: start; background: var(--surface); }

/* Sistemas: brilho laranja do manual; cada sistema com a mídia grande e os 3 passos ilustrados */
.sistemas { margin-top: 160px; padding: 120px var(--m); background: radial-gradient(45% 40% at 85% 60%, rgba(226, 113, 29, .12), transparent 70%); }
.sistemas-cabeca { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); align-items: end; margin-bottom: 64px; }
.sistemas h2 { font-size: var(--t-xl); }
.sistemas-cabeca p { justify-self: end; max-width: 38ch; }
.sis { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 56px 0; }
.sis:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.sis:nth-of-type(even) .sis-midia { order: 2; }
.sis-midia { width: 100%; height: auto; max-height: 80svh; object-fit: contain; background: var(--surface); }
video.sis-midia { aspect-ratio: 9 / 16; }
.sis h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.02em; }
.sis-oque { font-size: var(--t-l); line-height: 1.4; margin: 14px 0 32px; max-width: 34ch; }
.sis-passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.sis-passos li { font-size: var(--t-s); color: var(--muted); }
.sis-passos li strong { color: var(--accent); font-weight: 600; }
.sis-passos img, .pedido { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: var(--surface); margin-bottom: 12px; }
.pedido { display: grid; align-content: center; gap: 8px; padding: 16px; font-size: var(--t-s); color: var(--muted); }
.pedido span:first-child { color: var(--accent); font-weight: 600; }
.pedido b { color: var(--ink); font-size: var(--t-m); }

/* Contato: preto Zohrix com brilho dourado */
.contato { min-height: 80svh; padding: 120px var(--m) 32px; display: grid; grid-template-rows: auto 1fr auto; gap: 32px; background: radial-gradient(55% 60% at 50% 100%, rgba(245, 184, 65, .16), transparent 70%); }
.contato-frase { font-family: var(--text); font-weight: 600; font-size: var(--t-l); letter-spacing: 0; line-height: 1.3; max-width: 26ch; }
.email { align-self: end; font-weight: 600; font-size: clamp(32px, 7vw, 120px); line-height: 1; letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; transition: color .25s; }
.email:hover { color: var(--accent); }
.contato-pe { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--t-s); }
.contato-pe a:not(.botao) { font-weight: 600; text-underline-offset: 3px; }

/* Visualizador */
.visor { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.visor::backdrop { background: rgba(0, 0, 0, .7); }
.visor[open] { display: grid; grid-template-rows: auto 1fr; }
.visor-barra { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--m); }
.visor-titulo { font-size: var(--t-s); }
.visor-titulo strong { font-weight: 600; margin-right: 8px; }
.visor-botoes { display: flex; gap: 8px; }
.visor-botoes button { min-height: 40px; padding: 0 14px; background: var(--surface-2); font-size: var(--t-s); transition: background-color .2s; }
.visor-botoes button:hover { background: var(--accent); color: var(--accent-ink); }
.visor-palco { display: grid; place-items: center; padding: 0 var(--m) 24px; min-height: 0; overflow: hidden; }
.visor-palco > img, .visor-palco > video { max-width: 100%; max-height: calc(100svh - 96px); width: auto; height: auto; }
.visor-trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; container-type: inline-size; }
.visor-trilho img { flex: none; width: calc(100cqw / 3); max-width: none; height: auto; aspect-ratio: 4 / 5; scroll-snap-align: start; }

/* Entrada suave das peças */
.revela { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--atraso, 0ms); }
.revela.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revela { opacity: 1; transform: none; transition: none; }
  .peca button:hover img, .peca button:hover video { transform: none; }
}

@media (max-width: 1100px) { .hero-texto { grid-template-columns: 1fr; } .hero h1 { font-size: clamp(40px, 9vw, 96px); } }

@media (max-width: 760px) {
  .topo nav { gap: 14px; }
  .topo nav a:last-child { display: none; }
  .marca { font-size: 13px; }
  .hero-texto { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: 11vw; }
  .reel-h { display: none; }
  .reel-v { display: block; width: 100%; }
  .trabalhos { padding-top: 96px; }
  .grade { columns: 2; column-gap: 12px; }
  #carrosseis .grade { columns: 1; }
  .peca { margin-bottom: 18px; }
  .peca-txt { font-size: 13px; }
  .sistemas { margin-top: 96px; padding: 72px var(--m); }
  .sistemas-cabeca { grid-template-columns: 1fr; margin-bottom: 24px; }
  .sistemas-cabeca p { justify-self: start; }
  .sis, .sis:nth-of-type(even) { grid-template-columns: 1fr; padding: 40px 0; }
  .sis:nth-of-type(even) .sis-midia { order: 0; }
  .sis-midia { width: 72vw; margin: 0 auto; }
  .sis-passos { gap: 10px; }
  .sis-passos li { font-size: 13px; }
  .contato { min-height: 70svh; padding-top: 96px; }
  .email { font-size: 7vw; }
  .contato-pe { flex-direction: column; align-items: start; }
  .visor-barra { flex-wrap: wrap; }
  .visor-trilho img { width: 100cqw; }
}

/* ===== Versão editorial ===== */
/* Capa: PORTFÓLIO gigante atrás, João recortado na frente, brilho dourado e trama de pontos da Zohrix */
.capa { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: radial-gradient(50% 50% at 50% 0%, rgba(245, 184, 65, .24), transparent 70%), var(--trama), var(--bg); }
.capa-palavra { position: absolute; left: 0; right: 0; top: calc(var(--topo) + 3svh); margin: 0; text-align: center; font-family: var(--display); font-size: 11.6vw; line-height: 1; letter-spacing: -0.03em; color: #E9D6B0; white-space: nowrap; }
.capa-foto { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 84svh; width: auto; max-width: none; }
.capa-esq, .capa-dir { position: absolute; bottom: 6svh; z-index: 2; }
.capa-esq { left: var(--m); }
.capa-esq h1 { font-family: var(--display); font-size: clamp(18px, 1.6vw, 26px); letter-spacing: 0; line-height: 1.2; }
.capa-esq p { color: var(--accent); margin-top: 6px; }
.capa-dir { right: var(--m); max-width: 26ch; display: grid; gap: 16px; justify-items: start; }

/* Sobre mim */
.sobre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 160px var(--m) 40px; }
.sobre-foto { width: 100%; height: auto; }
.sobre h2 { font-size: var(--t-xl); margin-bottom: 20px; }
.sobre-intro { font-size: var(--t-l); line-height: 1.45; max-width: 46ch; margin-bottom: 36px; }
.sobre h3 { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--accent); margin: 0 0 14px; }
.softwares { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 36px; }
.softwares li { display: flex; align-items: center; gap: 10px; font-size: var(--t-s); }
.sw { width: 48px; height: 48px; display: grid; place-items: center; font-weight: 600; font-size: 18px; border-radius: 10px; }
.sw-ps { background: #001E36; color: #31A8FF; }
.sw-ae { background: #1F0740; color: #CF96FD; }
.sw-pr { background: #00005B; color: #9999FF; }
.sw-cc { background: #2A1A12; color: #D97757; }
.sobre-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.linhas li { margin-bottom: 14px; color: var(--muted); font-size: var(--t-s); }
.linhas strong { display: block; color: var(--ink); font-size: var(--t-m); font-weight: 600; }

/* Mosaico em loop: 3 fileiras passando sozinhas, sentidos alternados. Roda mesmo com "reduzir animações" (pedido do João). */
.mosaico { padding: 120px 0 40px; display: grid; gap: 14px; 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); }
.fila { overflow: hidden; }
.fila-trilho { display: flex; gap: 14px; padding-right: 14px; width: max-content; animation: passar 80s linear infinite; }
.fila-b .fila-trilho { animation-direction: reverse; animation-duration: 70s; }
.fila-c .fila-trilho { animation-duration: 95s; }
.mosaico:hover .fila-trilho { animation-play-state: paused; }
.fila img, .fila video { flex: none; height: clamp(150px, 17vw, 240px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--surface); }
@keyframes passar { to { transform: translateX(-50%); } }

/* Contato com a foto */
.contato { position: relative; overflow: hidden; }
.contato > :not(.contato-foto) { position: relative; z-index: 1; }
.contato-foto { position: absolute; right: -2vw; bottom: 0; height: 64%; width: auto; max-width: none; pointer-events: none; }
.email { font-size: clamp(28px, 5.4vw, 92px); }

@media (max-width: 760px) {
  .capa { height: auto; min-height: 0; padding-top: calc(var(--topo) + 20px); display: flex; flex-direction: column; }
  .capa-palavra { position: static; font-size: 10vw; }
  .capa-foto { position: static; transform: none; width: 118vw; height: auto; margin: -6vw 0 0 -9vw; }
  .capa-esq, .capa-dir { position: static; padding: 0 var(--m); }
  .capa-esq { margin-top: 20px; }
  .capa-dir { margin: 14px 0 32px; max-width: none; }
  .capa-dir .botao { width: 100%; justify-content: center; }
  .sobre { grid-template-columns: 1fr; padding-top: 72px; }
  .sobre-colunas { grid-template-columns: 1fr; gap: 8px; }
  .mosaico { padding-top: 72px; }
  .fila img, .fila video { height: 128px; border-radius: 10px; }
  .contato-foto { display: none; }
}
@media (max-width: 760px) {
  .topo nav a[href="#sobre"], .topo nav a[href="#contato"] { display: none; }
  .topo nav a:last-child { display: none; }
}

/* ===== Sobre mim v2: foto 2 com cortina e zoom lento, números que contam, softwares em cartões, linha do tempo ===== */
.sobre { align-items: start; position: relative; background: radial-gradient(40% 50% at 18% 45%, rgba(226, 113, 29, .14), transparent 70%); }
.sobre-moldura { position: sticky; top: calc(var(--topo) + 6vh); margin: 0; overflow: hidden; background: var(--surface); clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.sobre.ativo .sobre-moldura { clip-path: inset(0 0 0 0); }
.sobre-foto { width: 100%; height: auto; transform-origin: 50% 30%; animation: respira 16s ease-in-out infinite alternate; }
@keyframes respira { from { transform: scale(1); } to { transform: scale(1.09); } }
.canto { position: absolute; width: 24px; height: 24px; border: 0 solid var(--accent); opacity: 0; transition: opacity .6s 1s, transform .6s 1s var(--ease); }
.c1 { top: 14px; left: 14px; border-width: 2px 0 0 2px; transform: translate(-10px, -10px); }
.c2 { top: 14px; right: 14px; border-width: 2px 2px 0 0; transform: translate(10px, -10px); }
.c3 { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; transform: translate(-10px, 10px); }
.c4 { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; transform: translate(10px, 10px); }
.sobre.ativo .canto { opacity: 1; transform: none; }
.sobre-moldura figcaption { position: absolute; left: 22px; bottom: 22px; font-size: var(--t-s); display: flex; align-items: center; gap: 8px; }
.sobre-moldura figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulsa 1.8s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .25; transform: scale(.7); } }
.sobre-intro { font-size: var(--t-l); line-height: 1.45; max-width: 48ch; margin-bottom: 36px; }
.m-linha { display: block; margin-bottom: 8px; }
.m-linha, .m-sobe { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.m-pop { opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s, background-color .3s; transition-delay: var(--d, 0ms); }
.sobre.ativo .m-linha, .sobre.ativo .m-sobe, .sobre.ativo .m-pop { opacity: 1; transform: none; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; max-width: 560px; }
.numeros li { font-size: var(--t-s); color: var(--muted); }
.numeros b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--accent); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.softwares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 44px; }
.sw-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); font-size: var(--t-s); color: var(--muted); }
.sw-card b { display: block; color: var(--ink); font-size: var(--t-m); font-weight: 600; }
.sobre.ativo .sw-card:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: 0 0 0 2px var(--accent), 0 12px 32px rgba(245, 184, 65, .18); }
.tempo { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.tempo::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(0); transition: transform 1.2s .4s var(--ease); }
.sobre.ativo .tempo::before { transform: scaleY(1); }
.tempo li { position: relative; margin-bottom: 18px; font-size: var(--t-s); color: var(--muted); }
.tempo li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.tempo li span { display: block; color: var(--accent); font-size: 13px; }
.tempo li strong { display: block; color: var(--ink); font-size: var(--t-m); font-weight: 600; }
@media (max-width: 760px) {
  .sobre-moldura { position: relative; top: 0; }
  .numeros { gap: 12px; }
  .numeros b { font-size: 34px; }
  .softwares { grid-template-columns: 1fr; }
  .sobre-moldura figcaption { display: none; }
}

/* ===== Sobre mim branco, sem foto, com a logo do Claude ===== */
.sobre { --tinta: #0B0B0C; --tinta-suave: #4E4A44; --ouro-escuro: #9A6A08; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; background: #FAF9F6; color: var(--tinta); padding: 120px var(--m); }
.sobre h2 { color: var(--tinta); }
.sobre-intro { color: var(--tinta); }
.sobre h3 { color: var(--ouro-escuro); }
.numeros li { color: var(--tinta-suave); }
.numeros b { color: var(--ouro-escuro); }
.sw-card { background: #FFFFFF; color: var(--tinta-suave); box-shadow: 0 0 0 1.5px #E7E3DB inset; }
.sw-card b { color: var(--tinta); }
.sobre.ativo .sw-card:hover { background: #FFFFFF; box-shadow: 0 0 0 2px var(--ouro-escuro), 0 12px 28px rgba(154, 106, 8, .16); }
.sw-cc { background: #F4E9E2; }
.sw-cc img { width: 28px; height: 28px; }
.tempo::before { background: var(--ouro-escuro); }
.tempo li { color: var(--tinta-suave); }
.tempo li::before { background: #FAF9F6; box-shadow: 0 0 0 2px var(--ouro-escuro); }
.tempo li span { color: var(--ouro-escuro); }
.tempo li strong { color: var(--tinta); }
@media (max-width: 760px) { .sobre { grid-template-columns: 1fr; padding: 72px var(--m); } }
