:root {
  --bg: #0c0d10;
  --ink: #f0f0ee;
  --muted: rgba(240, 240, 238, .56);
  --line: rgba(240, 240, 238, .16);
  --gold: #d2ae67;
  --pad: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #f3f2f2; text-underline-offset: 3px; }
a:hover { color: #fff; }
img { display: block; user-select: none; }
.muted { color: var(--muted); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; letter-spacing: 0; }
.eyebrow { margin: 0 0 32px; font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.eyebrow::before { content: "( "; }
.eyebrow::after { content: " )"; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media picture { display: contents; }
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: translateZ(0);
}
.clean { filter: saturate(.85); }
.reveal {
  opacity: 0; transition: opacity .4s ease-out; will-change: opacity; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 220px 280px; mask-size: 220px 280px;
}
.alt { filter: contrast(1.05); }

/* parede de palavras: a "estampa" escondida no fundo */
.words {
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: .1em .5em; padding: 2vh 2vw; overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(18px, 2.1vw, 32px); font-weight: 400; line-height: 1.25;
  color: var(--gold); text-transform: lowercase; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 16% 36% at 50% 38%, transparent 70%, #000 100%);
  mask-image: radial-gradient(ellipse 16% 36% at 50% 38%, transparent 70%, #000 100%);
}
.words span:nth-child(4n) { color: var(--ink); }
.words.base { opacity: .08; }
.scrim { background: linear-gradient(180deg, rgba(12,13,16,.6) 0%, rgba(12,13,16,.1) 45%, rgba(12,13,16,.72) 100%); pointer-events: none; }

.hero-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column;
  padding: 44px var(--pad) 40px; pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.topbar { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.group { display: flex; gap: 28px; }
.group.tight { gap: 14px; }
.pill { border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 20px; font-size: 15px; }
.headline {
  margin: 40px 0 0; font-size: clamp(40px, 4.6vw, 84px); font-weight: 500;
  letter-spacing: -.02em; line-height: .98; text-transform: lowercase;
}
.headline .line { display: block; overflow: hidden; }
.headline .row { display: inline-flex; align-items: center; gap: 24px; }
.plus {
  display: inline-grid; place-items: center; flex: none;
  width: .8em; height: .8em; border: 1.5px solid var(--ink); border-radius: 50%;
  line-height: 1; font-weight: 400;
}
.plus > span { font-size: .45em; }
.bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.origin { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.45; }
.origin .muted { font-size: 14px; font-weight: 400; }
.intro { max-width: 400px; }
.intro p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; font-weight: 400; letter-spacing: -.005em; }
.hint { color: var(--gold); }
.meta { margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; letter-spacing: .02em; }
.meta a { text-decoration: none; }

/* entrada do hero */
.headline .line > *, .headline .line:first-child { animation: rise 1.1s cubic-bezier(.2,.7,.1,1) both; }
.headline .line.row { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
.topbar, .bottom { animation: fadein 1.4s .35s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- MANIFESTO ---------- */
.manifesto { height: 220vh; position: relative; }
.manifesto > * { position: sticky; }
.manifesto .eyebrow { top: 18vh; padding: 0 var(--pad); }
.manifesto-text {
  top: 26vh; margin: 0; padding: 0 var(--pad); max-width: 1400px;
  font-size: clamp(34px, 5.4vw, 84px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em;
}
.manifesto-text .w { opacity: .12; transition: opacity .25s linear, color .25s; }
.manifesto-text .w.on { opacity: 1; }

/* ---------- NÚMEROS ---------- */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 12vh var(--pad) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 48px 32px 44px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(72px, 10vw, 160px); font-weight: 500; letter-spacing: -.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.stat b::after { content: "+"; color: var(--gold); font-weight: 300; font-size: .5em; vertical-align: top; margin-left: .05em; }
.stat p { margin: 18px 0 0; max-width: 300px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- ORIGEM ---------- */
.origem { padding: 10vh var(--pad) 18vh; }
.row-item {
  display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 32px; align-items: baseline;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 1px solid var(--line); }
.row-item .num { font-size: 14px; color: var(--muted); }
.row-item h2 { margin: 0; font-size: clamp(30px, 4vw, 60px); font-weight: 500; letter-spacing: -.02em; }
.row-item p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 520px; }
[data-in] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.1,1); }
[data-in].in { opacity: 1; transform: none; }

/* ---------- VERSÕES ---------- */
.versoes { height: 640vh; position: relative; }
.versoes-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; padding: 40px var(--pad) 32px; overflow: hidden;
}
.versoes-head { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.counter b { color: var(--ink); font-weight: 500; }
.versoes-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 5vw; align-items: center; padding: 24px 0; }

/* palco 3D: janela do site + retrato flutuante */
.stage { position: relative; height: 100%; max-height: 640px; perspective: 1400px; }
.stage-inner { position: absolute; inset: 4% 6% 8% 0; transform-style: preserve-3d; will-change: transform; }
.stage-num {
  position: absolute; left: -2%; top: -14%; z-index: 0;
  font-size: clamp(160px, 22vw, 340px); font-weight: 600; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(210, 174, 103, .35);
  transform: translateZ(-120px); pointer-events: none; transition: opacity .4s;
}
.screen {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: #15171c;
  border: 1px solid rgba(240,240,238,.14);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4);
  opacity: 0; transform: translate3d(0, 60px, -80px) rotateX(14deg) scale(.92);
  clip-path: inset(0 0 100% 0 round 12px);
  transition: opacity .7s ease, transform 1.1s cubic-bezier(.2,.7,.1,1), clip-path 1s cubic-bezier(.7,0,.2,1);
}
.screen.is-active { opacity: 1; transform: translate3d(0, 0, 0); clip-path: inset(0 0 0 0 round 12px); z-index: 2; }
.screen.was-active { opacity: 0; transform: translate3d(0, -40px, -160px) scale(.9); clip-path: inset(0 0 0 0 round 12px); }
.bar { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1c1f25; border-bottom: 1px solid rgba(240,240,238,.08); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(240,240,238,.18); }
.bar i:first-child { background: #e0604f; } .bar i:nth-child(2) { background: #e3b54a; } .bar i:nth-child(3) { background: #5bbf6a; }
.bar span { margin-left: 12px; padding: 4px 12px; border-radius: 6px; background: rgba(240,240,238,.06); color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view { position: relative; flex: 1; overflow: hidden; }
.view img[data-scroll-img] { width: 100%; height: auto; will-change: transform; }

/* celular do motor */
.screen.phone { inset: 0 auto 0 50%; width: min(300px, 58%); margin-left: max(-150px, -29%); border-radius: 36px; border: 8px solid #1c1f25; background: #000; }
.screen.phone.is-active { clip-path: inset(0 0 0 0 round 30px); }
.feed { display: flex; flex-direction: column; gap: 6px; will-change: transform; }
.feed img { width: 100%; display: block; }
.pipeline { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; padding: 10px 12px; list-style: none; border-radius: 14px; background: rgba(12,13,16,.82); backdrop-filter: blur(8px); font-size: 11px; }
.pipeline li { color: rgba(240,240,238,.35); padding: 2px 0; transition: color .3s; }
.pipeline li::before { content: "○ "; }
.pipeline li.done { color: var(--ink); } .pipeline li.done::before { content: "● "; color: var(--gold); }
.pipeline li.now { color: var(--gold); } .pipeline li.now::before { content: "◌ "; }

.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 12px; mix-blend-mode: soft-light; opacity: 0; transition: opacity .5s;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.22), transparent 45%); }
.stage.is-phone .glare { display: none; }
.stage:hover .glare { opacity: 1; }

/* retrato flutuante */
.versoes-photos {
  position: absolute; right: -8%; bottom: -10%; width: 30%; aspect-ratio: 3 / 4; overflow: hidden; z-index: 4;
  border-radius: 10px; border: 1px solid rgba(240,240,238,.2);
  box-shadow: 0 30px 80px -10px rgba(0,0,0,.9);
  transform: translateZ(90px); will-change: transform;
}
.versoes-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  clip-path: inset(100% 0 0 0); transform: scale(1.12);
  transition: clip-path 1s cubic-bezier(.7,0,.2,1), transform 1.4s cubic-bezier(.2,.7,.1,1);
}
.versoes-photos img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.versoes-photos img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }
.versoes-text { position: relative; height: 100%; }
.versoes-text article {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(30px); pointer-events: none;
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.1,1);
}
.versoes-text article.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.versoes-text .tag { margin: 0 0 12px; font-size: 14px; color: var(--gold); letter-spacing: .02em; }
.versoes-text h3 { margin: 0; font-size: clamp(48px, 6.6vw, 112px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.versoes-text .quote { margin: 28px 0 16px; font-size: clamp(20px, 2vw, 30px); line-height: 1.25; max-width: 620px; }
.versoes-text .body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.versoes-text .links { display: flex; gap: 24px; margin: 24px 0 0; font-size: 14px; }
.versoes-nav { display: flex; gap: 26px; font-size: 14px; flex-wrap: wrap; }
.versoes-nav a { color: var(--muted); text-decoration: none; transition: color .3s; }
.versoes-nav a.is-active { color: var(--ink); }
.versoes-bar { margin-top: 14px; height: 1px; background: var(--line); }
.versoes-bar span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- ÍNDICE ---------- */
.indice { padding: 16vh var(--pad) 10vh; }
.idx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.idx li { border-bottom: 1px solid var(--line); }
.idx a {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) 160px; gap: 24px; align-items: baseline;
  padding: 26px 0; text-decoration: none; color: var(--ink); position: relative;
  transition: padding .4s cubic-bezier(.2,.7,.1,1), color .3s;
}
.idx a::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2,.7,.1,1); z-index: -1; }
.idx a:hover { color: var(--bg); padding-left: 20px; padding-right: 20px; }
.idx a:hover::before { transform: scaleY(1); }
.idx a:hover .t, .idx a:hover .n, .idx a:hover .k { color: var(--bg); }
.idx li { position: relative; z-index: 0; }
.idx .n, .idx .k { color: var(--muted); font-size: 13px; }
.idx .k { text-align: right; }
.idx b { font-size: clamp(24px, 2.8vw, 42px); font-weight: 500; letter-spacing: -.02em; }
.idx .t { color: var(--muted); font-size: 16px; line-height: 1.4; }

.idx-preview { position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; pointer-events: none; z-index: 40;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.6) rotate(-6deg); transition: opacity .3s, transform .5s cubic-bezier(.2,.7,.1,1); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.idx-preview.on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(var(--r, 0deg)); }
.idx-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (hover: none) { .idx-preview { display: none; } }

/* ---------- DESAPARECER ---------- */
.fade { height: 260vh; position: relative; }
.fade-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
.fade-text { margin: 0; font-size: clamp(40px, 7vw, 120px); font-weight: 500; line-height: 1; letter-spacing: -.03em; max-width: 1500px; }
.vanish { display: inline-block; color: var(--gold); }
.vanish .l { display: inline-block; will-change: opacity, filter, transform; }
.fade-words { display: flex; gap: 28px; margin: 48px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- PROJETOS ---------- */
.projetos { padding: 14vh 0 12vh; border-top: 1px solid var(--line); }
.pad { padding: 0 var(--pad); }
.marquee { overflow: hidden; white-space: nowrap; }
.track { display: inline-flex; align-items: center; gap: .5em; font-size: clamp(48px, 8vw, 130px); font-weight: 500; letter-spacing: -.03em; will-change: transform; }
.gap { margin-top: 10vh; }
.mono-track { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 400; font-size: clamp(32px, 5vw, 80px); letter-spacing: -.02em; color: var(--muted); }
.track a { text-decoration: none; color: var(--ink); transition: color .3s; }
.track a:hover { color: var(--gold); }
.track i { font-style: normal; font-weight: 300; color: var(--gold); font-size: .5em; }

/* ---------- CONTATO ---------- */
.contato { padding: 16vh var(--pad); }
.cta-title { margin: 0; font-size: clamp(38px, 6vw, 96px); font-weight: 500; letter-spacing: -.03em; line-height: 1; max-width: 1200px; }
.cta-sub { margin: 28px 0 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.cta-row { display: flex; gap: 16px; margin-top: 56px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 18px; padding: 18px 30px;
  border: 1.5px solid var(--ink); border-radius: 999px; font-size: 18px; text-decoration: none;
  background: var(--ink); color: var(--bg); transition: background .3s, color .3s;
}
.cta b { font-weight: 400; transition: transform .3s; }
.cta:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.cta:hover b { transform: translate(3px, -3px); }
.cta.ghost { background: transparent; color: var(--ink); }
.cta.ghost:hover { color: var(--bg); }

.footer { padding: 0 var(--pad) 32px; overflow: hidden; }
.foot-big { font-size: 15.5vw; font-weight: 500; letter-spacing: -.05em; line-height: .8; white-space: nowrap; margin-left: -.04em; color: #17191e; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .hide-sm { display: none; }
  .hero .clean, .hero .alt { top: 22%; height: 46%; width: 100%; object-position: center 24%;
    -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); }
  .words { -webkit-mask-image: radial-gradient(ellipse 34% 20% at 50% 40%, transparent 70%, #000 100%); mask-image: radial-gradient(ellipse 34% 20% at 50% 40%, transparent 70%, #000 100%); }
  .hero-content { padding: 24px var(--pad) 28px; }
  .topbar { font-size: 14px; }
  .headline .row { gap: 14px; }
  .bottom { flex-direction: column; align-items: stretch; gap: 20px; }
  .intro p { font-size: 17px; }
  .hint { display: none; }
  .row-item { grid-template-columns: 1fr; gap: 10px; }
  .versoes-sticky { padding: 20px var(--pad) 20px; }
  .versoes-stage { grid-template-columns: 1fr; grid-template-rows: 44% 1fr; gap: 14px; }
  .stage-inner { inset: 2% 10% 6% 0; }
  .stage-num { font-size: 140px; top: -6%; }
  .versoes-photos { width: 30%; right: -10%; bottom: -8%; }
  .bar { height: 24px; } .bar span { font-size: 9px; }
  .screen.phone { width: 46%; margin-left: -23%; border-width: 5px; border-radius: 22px; }
  .pipeline { font-size: 9px; padding: 6px 8px; }
  .versoes-text h3 { font-size: 54px; }
  .versoes-text .quote { margin: 14px 0 10px; font-size: 19px; }
  .versoes-text .body { font-size: 14.5px; }
  .versoes-text article { justify-content: flex-start; }
  .versoes-nav { gap: 14px; font-size: 12px; }
  .foot-row { flex-direction: column; }
  .numeros { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 32px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .idx a { grid-template-columns: 36px 1fr; gap: 6px 12px; padding: 20px 0; }
  .idx .t, .idx .k { grid-column: 2; text-align: left; }
  .versoes-text h3 { font-size: 44px; }
}
@media (hover: none) { .hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-in] { opacity: 1; transform: none; }
}
