/* =========================================================
   Filtros Brasil · Caixas Coletivas 2026
   Tipografia e diagramação baseadas em fishlab.com.br
   (Alan Sans para títulos · Ubuntu para texto)
   ========================================================= */

:root {
  --ink: #181818;
  --muted: #6d6d6d;
  --soft: #9a9a9a;
  --line: rgba(24, 24, 24, .1);
  --bg: #f7f6f3;
  --paper: #ffffff;
  --red: #e31e24;
  --navy: #1d3364;
  --kraft: #c9a676;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: 'Alan Sans', system-ui, sans-serif;
  --text: 'Ubuntu', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font-family: var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ================= PRELOADER ================= */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 1s var(--ease), opacity .6s ease;
}
#preloader.done { transform: translateY(-100%); }
.pl-grain {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pl-word { display: flex; align-items: flex-end; }
.pl-word span {
  font-family: var(--head); font-weight: 700; line-height: 1;
  font-size: clamp(60px, 12vw, 148px); letter-spacing: -.03em; color: var(--ink);
  display: inline-block; opacity: 0;
  animation: letter-in .55s var(--ease) forwards;
}
.pl-word span.sp { width: .28em; }
.pl-word span:nth-last-child(-n+2) { color: var(--red); }
.pl-sub {
  margin-top: 22px; font-size: 11px; text-transform: uppercase; letter-spacing: .25em; color: var(--muted);
  opacity: 0; animation: fade-in .8s ease .7s forwards;
}
.pl-label, .pl-pct, .pl-step {
  position: absolute; bottom: 40px; font-family: var(--head); font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.pl-label { left: 48px; letter-spacing: .22em; text-transform: uppercase; }
.pl-step { left: 50%; transform: translateX(-50%); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.pl-pct { right: 48px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e7e5e0; }
.pl-bar div { height: 100%; width: 0; background: var(--red); transition: width .2s linear; }

@keyframes letter-in { 0% { opacity: 0; filter: blur(4px); transform: translateY(28px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* ================= STAGE 1920×1080 ================= */
#viewport { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  background: var(--paper); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.06);
}

/* Marcas fixas sutis */
.brand-client {
  position: absolute; z-index: 20; left: 96px; top: 72px; width: 150px;
  opacity: .9; transition: opacity .6s ease;
}
.brand-me {
  position: absolute; z-index: 20; right: 64px; bottom: 44px; width: 58px; height: 58px;
  opacity: .55; filter: grayscale(.25); border-radius: 50%; transition: opacity .3s ease;
}
.brand-me:hover { opacity: 1; filter: none; }
body.on-cover .brand-me { opacity: .75; }

/* Slides */
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  /* fora da tela quando inativo: o model-viewer pausa a renderização */
  translate: 200% 0;
  transition: opacity .7s ease, visibility 0s linear .7s, translate 0s linear .7s;
}
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; translate: 0 0; transition: opacity .7s ease, visibility 0s, translate 0s; }
.slide > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slide:not(.slide--cover) > .bg { opacity: .9; }
.slide--soft > .bg { opacity: .28 !important; }

.wrap { position: absolute; inset: 200px 160px 150px 160px; }

/* Reveal */
.r { opacity: 0; transform: translateY(26px); filter: blur(4px); }
.slide.is-active .r {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}

/* ================= TIPOGRAFIA ================= */
.eyebrow {
  font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
  margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.display {
  font-family: var(--head); font-weight: 700; font-size: 132px; line-height: 1.02; letter-spacing: -.035em;
  color: var(--ink);
}
.display-sm { font-family: var(--head); font-weight: 700; font-size: 92px; line-height: 1.06; letter-spacing: -.03em; }
.heading { font-family: var(--head); font-weight: 700; font-size: 72px; line-height: 1.1; letter-spacing: -.025em; max-width: 900px; }
.heading--sm { font-size: 58px; max-width: 1200px; }
.lead { font-size: 22px; line-height: 1.58; color: var(--muted); max-width: 560px; margin-top: 36px; }
.body { font-size: 20px; line-height: 1.62; color: var(--muted); max-width: 620px; margin-top: 30px; }
.body strong { color: var(--ink); font-weight: 500; }
.hint { margin-top: 44px; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--soft); }

/* ================= CAPA / FINAL ================= */
.slide--cover .cover-content { position: absolute; left: 160px; top: 0; bottom: 0; width: 680px; display: flex; flex-direction: column; justify-content: center; }
.slide--cover .display { margin-top: 4px; }
.meta { display: flex; gap: 28px; margin-top: 56px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.meta span:first-child { color: var(--red); font-weight: 500; }
.slide--end .display { font-size: 168px; }
.signature-me { margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; width: 420px; }
.signature-me .name { font-family: var(--head); font-weight: 700; font-size: 34px; letter-spacing: -.01em; }
.signature-me .site { font-size: 18px; color: var(--muted); text-decoration: none; letter-spacing: .06em; }
.signature-me .site:hover { color: var(--red); }

/* ================= 02 PROJETO ================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.pillar { padding: 44px 40px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar-n { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--red); letter-spacing: .1em; }
.pillar h3 { font-family: var(--text); font-weight: 400; font-size: 24px; margin: 20px 0 12px; line-height: 1.3; }
.pillar p { font-size: 17px; color: var(--muted); line-height: 1.58; }

/* ================= 03 CONCEITO ================= */
.concept { display: grid; grid-template-columns: 620px 1fr; gap: 90px; align-items: center; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tags li { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: rgba(255,255,255,.75); }
.concept-art img { width: 100%; box-shadow: 0 30px 70px rgba(60, 40, 10, .18); cursor: zoom-in; }
figcaption { margin-top: 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* ================= 04 OPÇÕES ================= */
.options { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 36px; margin-top: 44px; align-items: end; }
.option {
  position: relative; text-align: left; padding: 30px 30px 32px; background: rgba(255,255,255,.82);
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.option:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.08); }
.option img { width: 100%; aspect-ratio: 16/9; object-fit: contain; margin-bottom: 14px; mix-blend-mode: multiply; }
.option--main { border-color: var(--red); box-shadow: 0 24px 60px rgba(227, 30, 36, .12); }
.option-n { display: block; font-family: var(--head); font-weight: 700; font-size: 34px; letter-spacing: -.01em; }
.option-t { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.badge { position: absolute; top: 22px; right: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--red); padding: 8px 12px; z-index: 2; }

/* ================= model-viewer ================= */
model-viewer.mv { width: 100%; height: 100%; --poster-color: transparent; background: transparent; outline: none; }
model-viewer.mv:focus-visible { outline: none; }

/* ================= 05 HERO ================= */
.hero { display: grid; grid-template-columns: 640px 1fr; gap: 40px; align-items: center; }
.hero-3d { height: 820px; margin-right: -60px; position: relative; }
.hero-3d::after {
  content: ""; position: absolute; inset: 12% 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(227,30,36,.08), transparent);
}

/* ================= 06 ASSINATURA ================= */
.signature { display: grid; grid-template-columns: 640px 1fr; gap: 100px; align-items: center; }
.sig-demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.sig-row { display: flex; height: 232px; filter: drop-shadow(0 18px 24px rgba(60,40,10,.18)); }
.half { height: 100%; background-repeat: no-repeat; background-size: auto 100%; transition: transform 1.3s var(--ease); }
.half--a { width: 360px; background-position: right center; transform: translateX(-70px); }
.half--b { width: 175px; background-position: left center; transform: translateX(70px); filter: brightness(.9); }
.slide.is-active .half { transform: none; transition-delay: .9s; }
.slide.is-active .sig-row:nth-child(2) .half { transition-delay: 1.05s; }
.slide.is-active .sig-row:nth-child(3) .half { transition-delay: 1.2s; }
.sig-caption { margin-top: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* ================= 07 EMPILHADA ================= */
.stack { display: grid; grid-template-columns: 1fr 620px; gap: 60px; align-items: center; }
.stack-3d { height: 840px; margin-left: -60px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: 1px solid var(--line); }
.stats div { padding-top: 24px; }
.stats strong { display: block; font-family: var(--head); font-size: 54px; font-weight: 700; letter-spacing: -.02em; color: var(--red); line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ================= 08 FACES ================= */
.faces-layout { display: grid; grid-template-columns: 1fr auto; gap: 80px; margin-top: 44px; align-items: center; }
.faces-pairs { display: flex; flex-direction: column; gap: 34px; }
.pair-row { display: flex; height: 250px; box-shadow: 0 20px 40px rgba(60,40,10,.15); width: max-content; }
.pair-row img { height: 100%; width: auto; cursor: zoom-in; }
.pair-row img + img { filter: brightness(.93); }
.pair figcaption span { color: var(--red); margin: 0 6px; }
.faces-note .body { margin-top: 0; margin-bottom: 26px; font-size: 19px; }

/* ================= 09/10 ALTERNATIVAS ================= */
.alt { display: grid; grid-template-columns: 680px 1fr; gap: 40px; align-items: center; }
.alt-3d { height: 800px; margin-right: -60px; }
.mini-faces { display: grid; grid-template-columns: 1.24fr 1.24fr .83fr .83fr; gap: 12px; margin-top: 50px; align-items: end; }
.mini-faces img { width: 100%; cursor: zoom-in; box-shadow: 0 10px 24px rgba(60,40,10,.15); transition: transform .4s var(--ease); }
.mini-faces img:hover { transform: translateY(-4px); }

/* ================= 11 CONTEXTO ================= */
.context { display: grid; grid-template-columns: 1fr 560px; gap: 70px; align-items: center; }
.context-photo img { width: 100%; height: 700px; object-fit: cover; cursor: zoom-in; }
.context-3d { height: 560px; margin-top: 0; }

/* ================= 12 COMPARATIVO ================= */
.compare { display: grid; grid-template-columns: 300px repeat(3, 1fr); margin-top: 40px; background: rgba(255,255,255,.85); border-top: 1px solid var(--line); }
.compare > div { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: 18px; }
.cmp-head { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
.cmp-head img { height: 150px; width: auto; object-fit: contain; }
.cmp-head span { font-family: var(--head); font-weight: 700; font-size: 26px; }
.cmp-k { font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cmp-v { color: var(--ink); }
.compare .is-main { background: rgba(227,30,36,.05); }
.cmp-head.is-main span { color: var(--red); }
.lv { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: #e9e7e2; position: relative; overflow: hidden; }
.lv::after { content: ""; position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 3px; }
.lv.l1::after { width: 33%; } .lv.l2::after { width: 66%; } .lv.l3::after { width: 100%; }
.is-main .lv::after { background: var(--red); }

/* ================= NAVEGAÇÃO ================= */
.deck-nav { position: absolute; z-index: 30; left: 96px; bottom: 50px; display: flex; align-items: center; gap: 10px; }
.counter { font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 86px; }
.counter b { color: var(--ink); }
.slide-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); min-width: 260px; }
.nav-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.8); transition: background .3s, border-color .3s; }
.nav-btn:hover { background: var(--ink); border-color: var(--ink); }
.nav-btn:hover svg { stroke: #fff; }
.nav-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.deck-progress { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.04); }
.deck-progress div { height: 100%; width: 0; background: var(--red); transition: width .7s var(--ease); }

/* ================= LIGHTBOX ================= */
#lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(247,246,243,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; cursor: zoom-out; }
#lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
#lightbox img { max-width: 90vw; max-height: 86vh; box-shadow: 0 40px 90px rgba(0,0,0,.18); transform: scale(.96); transition: transform .5s var(--ease); }
#lightbox.open img { transform: none; }
.lb-close { position: absolute; top: 28px; right: 36px; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
