/* Elói Savedra · Portfólio imersivo
   Abertura com telas em 3D, vitrine fixada com navegador que rola cada site,
   faixa cinética e mosaico "Além dos sites" que se monta vindo do fundo.
   Sem JavaScript (ou com movimento reduzido) tudo aparece em fluxo normal. */

/* ---------- abertura ---------- */
.pz-hero { position: relative; background: var(--ink); }
.pz-hero__pin { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding: 140px var(--gutter) clamp(48px, 9vh, 96px); }
.pz-hero--immersive { min-height: 210vh; min-height: 210svh; }
.pz-hero--immersive .pz-hero__pin { position: sticky; top: 0; isolation: isolate; }
.pz-space { display: none; }
.pz-hero__glow { position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(40% 40% at 50% 55%, rgba(212,255,58,.12), transparent 70%); }
html.js:not(.reduce) .pz-hero__glow { z-index: 2; background: radial-gradient(34% 30% at 50% 50%, rgba(10,11,13,.92), rgba(10,11,13,.55) 60%, transparent 100%), radial-gradient(45% 45% at 50% 55%, rgba(212,255,58,.10), transparent 70%); }
.pz-crumb { position: absolute; z-index: 4; left: var(--gutter); top: 100px; }
.pz-hero__copy { position: relative; z-index: 3; display: grid; gap: 22px; justify-items: start; }
.pz-hero__copy .lead { max-width: 44ch; }
.pz-hint { display: none; }

html.js:not(.reduce) .pz-hero__pin { height: 100vh; height: 100svh; align-items: center; justify-items: center; text-align: center; isolation: isolate; padding-top: max(72px, 10svh); padding-bottom: max(80px, 11svh); }
html.js:not(.reduce) .pz-hero__copy { justify-items: center; }
.pz-hero__copy .ptitle {
  max-width: min(100%, 19ch); font-size: clamp(2.6rem, min(8.25vw, 12svh), 7.3rem);
  line-height: .98; text-wrap: balance; overflow-wrap: anywhere;
}
.pz-hero__copy .ptitle em { display: block; margin-top: .05em; }
.pz-hero__pin .pz-crumb { top: clamp(68px, 11svh, 104px); }
@media (max-width: 600px) {
  html.js:not(.reduce) .pz-hero__copy { gap: 13px; }
  .pz-hero__copy .ptitle { font-size: clamp(2rem, 9.3vw, 3.45rem); }
  .pz-hero__copy .lead { font-size: .96rem; }
}
html.js:not(.reduce) .pz-hero__copy .eyebrow::before { display: none; }
html.js:not(.reduce) .pz-space { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
html.js:not(.reduce) .pz-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pz-tile { position: absolute; margin: 0; width: min(34vw, 460px); left: calc(min(34vw, 460px) / -2); top: calc(min(34vw, 460px) * -.3125); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #15171c; box-shadow: 0 0 0 1px rgba(242,241,234,.12), 0 16px 32px rgba(0,0,0,.4); }
.pz-tile--wide { top: calc(min(34vw, 460px) * -.28125); aspect-ratio: 16 / 9; }
.pz-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pz-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,0) 40%, rgba(10,11,13,.5)); }
html.js:not(.reduce) .pz-hint { display: flex; position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%); align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .12em; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.pz-hint span { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid currentColor; position: relative; }
.pz-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: pzWheel 1.6s ease-in-out infinite; }
@keyframes pzWheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- vitrine ---------- */
.pz-show { position: relative; background: var(--ink); }
.pz-show { padding: clamp(2.5rem, 7vw, 6rem) var(--gutter); }
.pz-case-index {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.pz-case-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.pz-case-index a:hover { color: var(--lime); }
.pz-show__cases { display: grid; }
.pz-show__cases .pz-site {
  padding-block: clamp(2.5rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.pz-show__cases .pz-browser__page > :not(:first-child) { display: none; }
.pz-site { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .pz-site { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); } }
.pz-site__info { display: grid; gap: 16px; justify-items: start; }
.pz-site__meta { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acc, var(--lime)); font-weight: 700; }
.pz-site__name { font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: .95; max-width: 11ch; text-wrap: balance; }
.pz-site__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pz-site__tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: rgba(242,241,234,.82); }
.pz-site__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.pz-browser { position: relative; border-radius: 16px; overflow: hidden; background: #f4f4f1; box-shadow: 0 0 0 1px rgba(242,241,234,.14), 0 50px 120px rgba(0,0,0,.6); }
.pz-browser__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #1b1d22; }
.pz-browser__bar > i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d45; }
.pz-browser__bar > i:first-child { background: #ff5f57; } .pz-browser__bar > i:nth-child(2) { background: #febc2e; } .pz-browser__bar > i:nth-child(3) { background: #28c840; }
.pz-browser__bar span { margin-left: 14px; flex: 1; max-width: 340px; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 8px; background: #2a2d34; color: #c9cbd1; font-size: .8rem; white-space: nowrap; overflow: hidden; }
.pz-browser__bar svg { width: 12px; height: 12px; color: #28c840; flex: none; }
.pz-browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pz-browser__page img { display: block; width: 100%; height: auto; }

html.js .pz-case-summary, html:not(.js) .pz-site__more { display: none; }
#sites, .pz-site { scroll-margin-top: 82px; }

.pz-service { display: flex; justify-content: center; padding: clamp(32px, 7vh, 78px) var(--gutter); }

/* ---------- faixa cinética (mesma linguagem da Home) ---------- */
.kin { position: relative; overflow: hidden; padding: clamp(36px, 7vh, 80px) 0; background: var(--ink); border-block: 1px solid var(--line); }
.kin__track { display: flex; width: max-content; will-change: transform; }
.kin__item { flex: none; display: inline-flex; align-items: center; gap: .3em; padding-right: .3em; white-space: nowrap; font-family: var(--display); font-weight: 700; font-stretch: 82%; font-size: clamp(3.2rem, 10vw, 11rem); line-height: 1.02; letter-spacing: -.01em; color: var(--paper); }
.kin__item em { font-size: 1.04em; padding-right: .08em; }
.kin__item i { font-style: normal; color: var(--lime); font-size: .5em; display: inline-block; }
.kin__item i svg.lg { width: .62em; height: .94em; }
.kin--out .kin__item { color: transparent; -webkit-text-stroke: 2px rgba(242,241,234,.8); }
.kin--out .kin__item em { color: var(--lime); -webkit-text-stroke: 0; }
.kin--out .kin__item i { -webkit-text-stroke: 0; }
html.reduce .kin__track, html:not(.js) .kin__track { width: auto; padding: 0 var(--gutter); }
html.reduce .kin__item + .kin__item, html:not(.js) .kin__item + .kin__item { display: none; }
html.reduce .kin__item, html:not(.js) .kin__item { white-space: normal; font-size: clamp(2.4rem, 7vw, 6rem); }

/* ---------- além dos sites: mosaico ---------- */
.pz-more { position: relative; background: var(--ink); }
.pz-more__pin { display: grid; gap: clamp(28px, 5vh, 48px); padding: clamp(80px, 12vh, 140px) var(--gutter); }
.pz-more__head { display: grid; gap: 14px; position: relative; z-index: 3; }
.pz-more__head .eyebrow { color: var(--paper); }
.pz-more__lead { max-width: 58ch; color: var(--paper); text-shadow: 0 2px 12px var(--ink); }
.pz-more__head :is(.eyebrow, .pz-more__title) { text-shadow: 0 2px 12px var(--ink); }
.pz-more__title { font-size: clamp(2.6rem, 6.4vw, 7rem); line-height: .95; }
.pz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .pz-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pz-card { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; background: #15171c; color: var(--paper); isolation: isolate; }
.pz-card__img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.pz-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pz-card--lead .pz-card__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10,11,13,.1); }
#imagem-mapa-redes .pz-card__img img:is([src*="boppre-goulart"], [src*="fox-instagram-previa"]) {
  object-position: center top;
}
.pz-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,0) 35%, rgba(10,11,13,.88)); }
.pz-card--lead .pz-card__img::after { opacity: var(--caption-shade, 1); }
.pz-card__txt { position: absolute; left: 18px; right: 60px; bottom: 16px; display: grid; gap: 4px; }
.pz-card__txt b { font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1.05; }
.pz-card__txt small { font-size: .85rem; color: rgba(242,241,234,.72); }
.pz-card__go { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,241,234,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.pz-card__go svg { width: 17px; height: 17px; }
.pz-card:hover .pz-card__go, .pz-card:focus-visible .pz-card__go { background: var(--lime); color: var(--on-lime); }
.pz-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 640px) { .pz-card__txt { left: 12px; right: 12px; bottom: 12px; } .pz-card__txt small { display: none; } .pz-card__go { display: none; } .pz-card__txt b { font-size: .98rem; } }

html.js:not(.reduce) .pz-more__pin { height: 100vh; height: 100svh; align-content: center; padding-top: 96px; padding-bottom: 32px; overflow: hidden; }
html.js:not(.reduce) .pz-grid { perspective: 1400px; grid-auto-rows: calc((100svh - 96px - 32px - 170px - 16px) / 2); }
html.js:not(.reduce) .pz-card { aspect-ratio: auto; will-change: transform, opacity; transform-style: preserve-3d; }
html.js:not(.reduce) .pz-card--lead { z-index: 2; }
@media (max-width: 899px) {
  html.js:not(.reduce) .pz-more__pin { padding-top: 84px; }
  html.js:not(.reduce) .pz-more__title { font-size: clamp(2rem, 9vw, 3rem); }
  html.js:not(.reduce) .pz-grid { grid-auto-rows: calc((100svh - 84px - 32px - 110px - 36px) / 4); }
}

/* Detalhes dos sites */
.pz-detail {
  width: min(820px, calc(100% - 28px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--graphite); color: var(--paper); overscroll-behavior: contain;
}
.pz-detail::backdrop { background: #0a0b0ddd; }
.pz-detail__bar {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px clamp(16px, 4vw, 34px); background: var(--graphite); border-bottom: 1px solid var(--line);
}
.pz-detail__bar h2 { font-size: clamp(1.25rem, 3.5vw, 2.5rem); line-height: 1.05; }
.pz-detail__body { display: grid; gap: 12px; padding: clamp(16px, 4vw, 34px); }
.pz-detail__body > .btn { justify-self: start; }
.pz-detail__description { line-height: 1.65; max-width: 72ch; }
.pz-detail__browser {
  margin-top: 8px; min-width: 0; overflow: hidden; border-radius: 13px;
  border: 1px solid var(--line); background: var(--ink);
}
.pz-detail__screen { width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: auto; }
.pz-detail__browser--animated .pz-detail__screen { position: relative; overflow: hidden; contain: paint; }
.pz-detail__browser--animated .pz-detail__track { position: absolute; inset: 0 0 auto; pointer-events: none; }
.pz-detail__track img { display: block; width: 100%; height: auto; }
.pz-detail__body > button { justify-self: start; }
.pz-detail__body > button[hidden] { display: none; }
@media (pointer: fine) {
  html.js:not(.reduce) body:has(.pz-detail[open]) .cursor { display: none; }
  html.js:not(.reduce) .pz-detail { cursor: auto; }
  html.js:not(.reduce) .pz-detail :is(a, button) { cursor: pointer; }
}

/* vitrine: com animação, a página inteira do site aparece e rola dentro do navegador (28/11/2026) */
html.js:not(.reduce) .pz-show--scroll .pz-show__cases .pz-browser__page > :not(:first-child) { display: block; }
html.js:not(.reduce) .pz-show--scroll .pz-browser__page { will-change: transform; }

/* 28/11/2026 (lote 22): o card principal cresce até a tela inteira; sem will-change/3D/filter ele é redesenhado nítido a cada quadro
   (antes a imagem era rasterizada pequena e ampliada, ficando pixelada) */
html.js:not(.reduce) .pz-card--lead { will-change: auto; transform-style: flat; }
.pz-card--lead .pz-card__img img { filter: none; image-rendering: auto; }

.pz-sites-intro { padding-bottom: clamp(24px, 5vw, 64px); }
.pz-sites-teaser {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(16px, 3vw, 32px);
  min-height: 86svh;
  padding: clamp(48px, 9svh, 100px) var(--gutter);
  background: var(--ink-2);
  text-align: center;
  overflow: clip;
}
.pz-sites-teaser .actions { justify-content: center; }
.pz-sites-teaser .h2 { text-wrap: balance; }
.pz-sites-teaser .cta-lead { max-width: 46ch; }
.pz-sites-teaser__view { width: 100%; }
.pz-sites-teaser__ring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pz-sites-teaser__ring figure { margin: 0; }
.pz-sites-teaser__ring img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.pz-sites-teaser__ring figcaption { margin-top: 8px; color: var(--paper); font-weight: 700; }
.pz-sites-teaser.is-rotating .pz-sites-teaser__view {
  --card-width: min(51vw, 23rem);
  height: calc(var(--card-width) * .625 + 4rem);
  position: relative;
  perspective: 1450px;
}
.pz-sites-teaser.is-rotating .pz-sites-teaser__ring { position: absolute; left: 50%; top: 0; display: block; transform-style: preserve-3d; }
.pz-sites-teaser.is-rotating figure { position: absolute; top: 0; left: calc(var(--card-width) / -2); width: var(--card-width); backface-visibility: hidden; }
.pz-sites-teaser.is-rotating figure:not(.is-front) { filter: brightness(.56); }
.pz-sites-teaser.is-rotating figure:not(.is-front) figcaption { visibility: hidden; }
