/* PW7 — portfólio */
.p-hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: 130px; }
.p-hero .topo-p { position: relative; z-index: 3; text-align: center; }
.p-hero .topo-p .lead { margin-inline: auto; max-width: 560px; }
.p-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 45% at 50% 62%, rgba(47,123,255,0.28), transparent 70%), radial-gradient(80% 40% at 50% 110%, rgba(47,123,255,0.18), transparent 70%); pointer-events: none; }
.palco3d { position: relative; z-index: 2; perspective: 2200px; perspective-origin: 50% 30%; display: grid; place-items: center; min-height: 460px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.palco3d:active { cursor: grabbing; }
.anel3d { position: relative; width: var(--cw); height: calc(var(--cw) * 0.66); transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateX(var(--tx, -6deg)) rotateY(var(--a, 0deg)); --cw: 380px; --r: 900px; }
.anel3d .item { position: absolute; inset: 0; transform: rotateY(var(--ang)) translateZ(var(--r)); border-radius: 16px; overflow: hidden; backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 30px 60px -20px rgba(0,0,0,0.9); background: #111; transition: box-shadow .4s; }
.anel3d .item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; pointer-events: none; }
.anel3d .item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 30%, transparent 70%, rgba(10,10,11,0.5)); }
.anel3d .item span { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.chao3d { position: absolute; left: 50%; bottom: 6%; width: 120%; height: 140px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(47,123,255,0.25), transparent 70%); filter: blur(10px); z-index: 1; }
.dica3d { position: relative; z-index: 3; text-align: center; font-size: 13px; color: var(--gelo500); padding-bottom: 34px; }
@media (max-width: 760px) { .anel3d { --cw: 200px; --r: 470px; } .palco3d { min-height: 320px; } }

/* contadores */
.p-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--fio); }
.p-num div { padding: 34px 24px; border-left: 1px solid var(--fio); }
.p-num div:first-child { border-left: 0; }
.p-num b { display: block; font-weight: 300; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.05em; line-height: 1; }
.p-num span { font-size: 14px; color: var(--gelo500); }
.p-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 760px) { .p-num { grid-template-columns: 1fr 1fr; } .p-num div:nth-child(3) { border-left: 0; } .p-num div:nth-child(n+3) { border-top: 1px solid var(--fio); } }

/* sites: rolagem horizontal presa */
.h-sites { position: relative; height: calc(var(--n) * 78vh); }
.h-sites .preso { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.h-sites .cab-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.h-sites .cont { font-size: 15px; color: var(--gelo500); font-variant-numeric: tabular-nums; }
.h-sites .cont b { color: #fff; font-weight: 400; font-size: 22px; }
.h-sites .trilha-s { display: flex; gap: 34px; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); will-change: transform; transform: translate3d(var(--x, 0px), 0, 0); }
.slide-s { flex: none; width: min(860px, 78vw); perspective: 1400px; }
.slide-s .tela { position: relative; border-radius: 18px; overflow: hidden; background: #0B0B0D; box-shadow: inset 0 0 0 1px var(--fio-forte), 0 50px 90px -40px rgba(0,0,0,1), 0 0 80px -30px rgba(47,123,255,0.35); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.slide-s .barra { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--fio); font-size: 12px; color: var(--gelo500); background: #121215; }
.slide-s .barra i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.slide-s .barra i:nth-child(2) { background: #febc2e; } .slide-s .barra i:nth-child(3) { background: #28c840; }
.slide-s .barra span { margin: 0 auto; padding: 4px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fio); }
.slide-s .img { aspect-ratio: 16 / 10; overflow: hidden; }
.slide-s .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); }
.slide-s:hover .img img { transform: scale(1.03); }
.slide-s .brilho { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.14), transparent 60%); opacity: 0; transition: opacity .3s; }
.slide-s:hover .brilho { opacity: 1; }
.slide-s .info { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-top: 20px; }
.slide-s h3 { font-size: clamp(22px, 2.6vw, 32px); }
.slide-s .tipo { font-size: 13.5px; color: var(--azul-luz); margin-bottom: 6px; }
.slide-s p { font-size: 14.5px; color: var(--gelo500); margin-top: 6px; max-width: 520px; }
.barra-prog { height: 2px; border-radius: 2px; background: var(--g700); margin-top: 34px; overflow: hidden; }
.barra-prog i { display: block; height: 100%; width: calc(var(--p2, 0) * 100%); background: linear-gradient(90deg, var(--azul), var(--azul-luz)); }
@media (max-width: 760px), (hover: none) { .h-sites { height: auto; } .h-sites .preso { position: static; height: auto; padding: 60px 0 0; } .h-sites .trilha-s { transform: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; padding-right: var(--gut); scrollbar-width: none; } .h-sites .trilha-s::-webkit-scrollbar { display: none; } .slide-s { width: 84vw; scroll-snap-align: start; } .barra-prog { display: none; } }

/* marcas: parede isométrica */
.marcas-p { position: relative; height: 200vh; overflow: clip; margin-top: 30px; }
.marcas-p .preso-m { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.marcas-p .preso-m::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, var(--preto) 78%); z-index: 3; }
.parede { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(5, 300px); gap: 22px; align-items: center; transform: translate(-50%, -50%) perspective(2200px) rotateX(46deg) rotateZ(-26deg); transform-style: preserve-3d; }
.parede .col { display: grid; gap: 22px; transform: translate3d(0, var(--y, 0px), 0); will-change: transform; }
.parede .m { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 40px -20px #000; cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .4s; background: #111; }
.parede .m img { width: 100%; height: 100%; object-fit: cover; }
.parede .m:hover { transform: translateZ(60px) scale(1.04); box-shadow: 0 0 0 1px rgba(76,141,255,0.6), 0 50px 60px -20px rgba(47,123,255,0.5); z-index: 4; }
.marcas-p .titulo-m { position: absolute; z-index: 4; left: 0; right: 0; bottom: 70px; text-align: center; pointer-events: none; }
.marcas-p .titulo-m h2 { font-size: clamp(34px, 5vw, 64px); text-shadow: 0 10px 40px #000; }
.marcas-p .titulo-m p { font-size: 15px; color: var(--gelo300); margin-top: 10px; text-shadow: 0 4px 20px #000; }
@media (max-width: 760px) { .marcas-p { height: 120vh; } .parede { grid-template-columns: repeat(5, 170px); gap: 12px; } .parede .col { gap: 12px; } }

/* grade de marcas (lista completa) */
.grade-m { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grade-m button { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; padding: 0; cursor: zoom-in; box-shadow: inset 0 0 0 1px var(--fio); }
.grade-m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: saturate(0.9) brightness(0.92); }
.grade-m button:hover img { transform: scale(1.06); filter: none; }
.grade-m span { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 13px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.9); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.grade-m button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,0.85)); opacity: 0; transition: opacity .4s; }
.grade-m button:hover span, .grade-m button:hover::after { opacity: 1; transform: none; }
@media (max-width: 860px) { .grade-m { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grade-m span, .grade-m button::after { opacity: 1; transform: none; } }

/* manipulação: holofote + colunas em paralaxe */
.holofote { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; cursor: crosshair; box-shadow: inset 0 0 0 1px var(--fio); }
.holofote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.holofote .pb { filter: grayscale(1) brightness(0.45) contrast(1.1); }
.holofote .cor { -webkit-mask: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), #000 0, #000 var(--hr, 0px), transparent calc(var(--hr, 0px) + 80px)); mask: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), #000 0, #000 var(--hr, 0px), transparent calc(var(--hr, 0px) + 80px)); transition: --hr .5s; }
.holofote .legenda { position: absolute; left: 26px; bottom: 22px; z-index: 2; font-size: 14px; color: var(--gelo100); pointer-events: none; }
.holofote .legenda b { display: block; font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.03em; }
@media (max-width: 760px) { .holofote { aspect-ratio: 4 / 5; } }
.colunas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 14px; }
.colunas .col { display: grid; gap: 14px; transform: translate3d(0, var(--y, 0px), 0); will-change: transform; }
.colunas button { border-radius: 18px; overflow: hidden; padding: 0; cursor: zoom-in; position: relative; box-shadow: inset 0 0 0 1px var(--fio); display: block; width: 100%; }
.colunas img { width: 100%; display: block; filter: grayscale(0.85) brightness(0.8); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.colunas button:hover img { filter: none; transform: scale(1.04); }
@media (max-width: 760px) { .colunas { grid-template-columns: 1fr 1fr; } .colunas .col:nth-child(3) { display: none; } .colunas img { filter: none; } }

/* criativos: faixas cruzadas */
.faixas { position: relative; height: 640px; overflow: hidden; margin-top: 30px; }
.faixas .fx { position: absolute; left: -10%; right: -10%; display: flex; gap: 16px; width: max-content; animation: corre-fx 60s linear infinite; }
.faixas .fx.a { top: 40px; transform: rotate(-1.6deg); }
.faixas .fx.b { top: 340px; transform: rotate(1.4deg); animation-direction: reverse; animation-duration: 70s; }
.faixas .fx button { flex: none; height: 250px; border-radius: 16px; overflow: hidden; padding: 0; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 40px -24px #000; transition: transform .5s var(--ease); }
.faixas .fx button:hover { transform: translateY(-10px) scale(1.04); }
.faixas .fx img { height: 100%; width: auto; display: block; }
.faixas:hover .fx { animation-play-state: paused; }
@keyframes corre-fx { to { translate: -50% 0; } }
@media (max-width: 760px) { .faixas { height: 440px; } .faixas .fx button { height: 170px; } .faixas .fx.b { top: 230px; } }

/* lightbox */
.lbx { position: fixed; inset: 0; z-index: 95; background: rgba(5,5,6,0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: none; place-items: center; padding: 30px 70px; }
.lbx.on { display: grid; }
.lbx img { max-width: 100%; max-height: calc(100svh - 120px); border-radius: 14px; box-shadow: 0 40px 100px -30px #000; animation: entra-lbx .5s var(--ease); }
@keyframes entra-lbx { from { opacity: 0; transform: scale(0.94); } }
.lbx p { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 14px; color: var(--gelo300); }
.lbx button { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: inset 0 0 0 1px var(--fio-forte); background: rgba(255,255,255,0.06); }
.lbx button:hover { background: rgba(255,255,255,0.14); }
.lbx .fe { top: 20px; right: 20px; }
.lbx .an { left: 14px; top: 50%; transform: translateY(-50%); }
.lbx .px { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .lbx { padding: 70px 12px; } .lbx .an, .lbx .px { top: auto; bottom: 14px; transform: none; } }

/* topo v2 */
.p-hero { padding-top: 120px; grid-template-rows: auto 1fr auto; }
.p-hero .topo-p .tag-hero { margin-bottom: 22px; }
.p-hero .topo-p h1 { max-width: 900px; margin-inline: auto; }
.palco3d { min-height: 520px; }
.palavra-fundo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font-weight: 300; font-size: clamp(110px, 21vw, 340px); letter-spacing: -0.06em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.09); pointer-events: none; z-index: 0; background: linear-gradient(180deg, rgba(76,141,255,0.16), transparent 70%); -webkit-background-clip: text; background-clip: text; }
.anel3d { z-index: 1; }
.base-p { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 34px; }
.base-p .p-nav { margin: 0; }
.base-p .dica3d { padding: 0; }
@media (max-width: 760px) { .palco3d { min-height: 340px; } .base-p { justify-content: center; } .base-p .dica3d { width: 100%; text-align: center; } }
