/* =========================================================
   A CONTEXTO — linguagem visual
   Ideia central: tudo é visto através de uma lente.
   A íris (círculo que abre e fecha) é o gesto da marca:
   abertura, troca de página, cursor.
   ========================================================= */

/* fontes hospedadas no próprio site (OFL) */
@font-face { font-family: "Bodoni Moda"; src: url("../assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0d0c0b;
  --ink: #f2eee6;
  --ink-soft: #b9b6b0;      /* prata da marca, levemente aquecido */
  --ink-faint: #8a8781;
  --line: rgba(242, 238, 230, .22);
  --accent: #d4af37;        /* ouro da marca — usado pouco */

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-label: .8125rem;      /* 13 */
  --t-body: 1rem;           /* 16 */
  --t-lead: 1.25rem;        /* 20 */
  --t-h3: 1.75rem;          /* 28 */
  --t-h2: clamp(2.25rem, 4.6vw, 4.5rem);
  --t-mono: clamp(4rem, 12.4vw, 14rem);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --gutter: clamp(16px, 3.2vw, 48px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: -60px; z-index: 200;
  background: var(--ink); color: #000; padding: 10px 16px; font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { top: 16px; }

/* grão de filme sobre tudo — muito leve */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .05;
  animation: grao 1.2s steps(6) infinite;
}
@keyframes grao {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- rótulos e texto ---------- */
.label {
  font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft);
}
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: .95; }

/* ---------- cabeçalho fixo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--gutter);
  pointer-events: none;
}
.topo > * { pointer-events: auto; }
.topo { transition: transform .7s var(--ease-out); }
.topo::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,5,5,.88), rgba(5,5,5,0));
  opacity: 0; transition: opacity .5s;
}
.topo.rolou::before { opacity: 1; }
.topo.escondido { transform: translateY(-110%); }
.marca { display: block; width: clamp(128px, 12vw, 176px); }
.marca img { width: 100%; height: auto; }
.btn-menu {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  padding: 10px 0 10px 12px;
}
.btn-menu .ico { position: relative; width: 26px; height: 9px; }
.btn-menu .ico::before, .btn-menu .ico::after {
  content: ""; position: absolute; right: 0; height: 1px; background: currentColor;
  transition: width .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn-menu .ico::before { top: 0; width: 100%; }
.btn-menu .ico::after { bottom: 0; width: 62%; }
.btn-menu:hover .ico::after { width: 100%; }

/* ---------- links editoriais (linha fina que desenha) ---------- */
.elink {
  position: relative; display: inline-flex; align-items: baseline; gap: .5em;
  font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  padding: 12px 0;
}
.elink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--line);
}
.elink::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; z-index: 1;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease-out);
}
.elink:hover::before, .elink:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.anel {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none;
  border: 1px solid currentColor; vertical-align: middle; position: relative; top: -1px;
  transition: background .4s, border-color .4s, transform .6s var(--ease-out);
}
a:hover .anel, a:focus-visible .anel, button:hover .anel { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.elink { align-items: center; gap: .7em; }

/* =========================================================
   PÁGINA INICIAL
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; }
.hero-midia { position: absolute; inset: 0; z-index: -2; }
.hero-midia .quadro {
  position: absolute; inset: -4%;
  opacity: 0; transition: opacity 2.4s var(--ease-io);
}
.hero-midia .quadro.ativo { opacity: 1; }
.hero-midia img, .hero-midia video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.66) contrast(1.08) saturate(.85);
}
.hero-midia .quadro.ativo img { animation: respiro 22s linear both; }
@keyframes respiro {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, -.8%, 0); }
}
/* escurecimento localizado: atrás do título e rente ao rodapé, não uma manta */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 34% at 50% 50%, rgba(0,0,0,.72), rgba(0,0,0,.35) 60%, transparent 85%),
    linear-gradient(to top, rgba(0,0,0,.7), transparent 28%),
    linear-gradient(to bottom, rgba(0,0,0,.45), transparent 20%);
}
.hero-centro {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 0 var(--gutter);
}
.titulo-mono {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: var(--t-mono); line-height: .86; letter-spacing: -.035em;
  white-space: nowrap;
}
.titulo-mono .linha { display: inline-block; overflow: hidden; padding: .04em .02em .1em; vertical-align: top; }
.titulo-mono .linha + .linha { margin-left: .2em; }
.titulo-mono .ch { display: inline-block; transform: translateY(105%); }
.revela .titulo-mono .ch {
  transform: none;
  transition: transform 1.3s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + var(--d, 0ms));
}
.titulo-mono .ponto { color: var(--accent); }
.assinatura {
  margin: var(--s3) auto 0; max-width: 34ch;
  font-size: var(--t-lead); line-height: 1.45; font-weight: 300; color: var(--ink-soft);
  font-style: italic; font-family: var(--f-display); letter-spacing: .005em;
  opacity: 0; transform: translateY(10px);
}
.revela .assinatura { opacity: 1; transform: none; transition: opacity 1.4s var(--ease-out) 1.1s, transform 1.4s var(--ease-out) 1.1s; }

.hero-base {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) var(--s4);
  display: flex; justify-content: center; gap: clamp(24px, 5vw, 80px);
  opacity: 0;
}
.revela .hero-base { opacity: 1; transition: opacity 1.2s var(--ease-out) 1.5s; }
.hero-base .elink { color: var(--ink); }
.hero-base .destaque { color: var(--ink); }
.hero-base .destaque::after { background: rgba(212, 175, 55, .55); }

.placeholder-tag {
  position: absolute; z-index: 5;
  font: 500 11px/1.3 var(--f-text); letter-spacing: .14em; text-transform: uppercase;
  color: #000; background: var(--accent); padding: 5px 8px;
}
.hero .placeholder-tag { right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }

/* =========================================================
   ÍRIS — abertura e transição de página
   ========================================================= */
.iris {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: #000;
  --r: 0px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
          mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
  display: grid; place-items: center;
}
.iris.aberta { visibility: hidden; }
.iris .lente {
  width: clamp(64px, 7vw, 96px); opacity: 0;
  transform: rotate(-30deg) scale(.86);
  transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out);
}
.iris.mostra-lente .lente { opacity: .9; transform: none; }
.iris .contagem {
  position: absolute; left: var(--gutter); bottom: var(--s4);
  font-size: var(--t-label); letter-spacing: .18em; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
html.sem-js .iris { display: none; }

/* =========================================================
   MENU TELA CHEIA
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.aberto { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu-fundo { position: absolute; inset: 0; overflow: hidden; }
.menu-fundo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out);
  filter: grayscale(.35) brightness(.5);
}
.menu-fundo img.ativa { opacity: .55; transform: scale(1); }
.menu-fundo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.6) 100%);
}
.menu-topo {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: var(--s3) var(--gutter);
}
.btn-fechar {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; padding: 10px 0 10px 12px;
}
.btn-fechar .x { position: relative; width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.btn-fechar .x::before, .btn-fechar .x::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
}
.btn-fechar .x::before { transform: rotate(45deg); }
.btn-fechar .x::after { transform: rotate(-45deg); }
.btn-fechar:hover .x { transform: rotate(90deg); }

.menu-nav {
  position: relative; z-index: 2;
  height: calc(100% - 180px);
  display: flex; align-items: center;
  padding: 0 var(--gutter) 0 clamp(16px, 12vw, 220px);
}
.menu-nav ol { list-style: none; margin: 0; padding: 0; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: flex; align-items: baseline; gap: clamp(14px, 2vw, 32px);
  padding: clamp(2px, .6vh, 8px) 0;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out), opacity .5s var(--ease-out);
}
.menu.aberto .menu-nav a { transform: none; transition-delay: calc(.25s + var(--i) * 60ms), 0s; }
.menu-nav .num {
  font-size: var(--t-label); letter-spacing: .14em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; width: 2.4em; flex: none;
}
.menu-nav .nome {
  font-family: var(--f-display); font-size: clamp(2.4rem, 6.6vh, 5.6rem); line-height: 1.04; letter-spacing: -.02em;
  transition: transform .7s var(--ease-out), color .4s;
}
.menu-nav .anel {
  width: 12px; height: 12px; color: var(--accent); opacity: 0; transform: scale(.4);
  transition: opacity .4s, transform .6s var(--ease-out), background .4s;
}
.menu-nav ol:hover a, .menu-nav ol:focus-within a { opacity: .32; }
.menu-nav ol a:hover, .menu-nav ol a:focus-visible { opacity: 1; }
.menu-nav a:hover .nome, .menu-nav a:focus-visible .nome { transform: translateX(14px); font-style: italic; }
.menu-nav a:hover .anel, .menu-nav a:focus-visible .anel { opacity: 1; transform: none; background: var(--accent); }
.menu-nav a { align-items: center; }
.menu-nav a[aria-current="page"] .num { color: var(--accent); }

.menu-base {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); flex-wrap: wrap;
  padding: 0 var(--gutter) var(--s4);
  opacity: 0; transition: opacity .6s;
}
.menu.aberto .menu-base { opacity: 1; transition-delay: .7s; }
.menu-base .contatos { display: flex; gap: var(--s4); flex-wrap: wrap; }
.menu-base .coord { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* =========================================================
   PÁGINAS INTERNAS — base comum
   ========================================================= */
.pagina { padding-top: clamp(120px, 18vh, 200px); }
.cab-pagina { padding: 0 var(--gutter) var(--s5); }
.cab-pagina .label { display: block; margin-bottom: var(--s3); }
.cab-pagina h1, .cab-pagina h2 {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 10rem); line-height: .9; letter-spacing: -.03em;
}
.cab-pagina .sub {
  margin: var(--s3) 0 0; max-width: 40ch;
  font-family: var(--f-display); font-style: italic; font-size: var(--t-lead); color: var(--ink-soft);
}
.palavras .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .2em; margin: 0 -.04em -.2em; }
.palavras .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 80ms + 150ms); }
.palavras.visivel .w > span { transform: none; }

/* revelação por máscara (imagens) */
/* o recorte fica na imagem; a moldura é que é observada (um alvo recortado a zero nunca "entra" na tela) */
.mascara { overflow: hidden; }
.mascara img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.4s var(--ease-io), transform 2s var(--ease-out); }
.mascara.visivel img { clip-path: inset(0 0 0 0); transform: scale(1); }
.sobe { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.sobe.visivel { opacity: 1; transform: none; }

.rodape {
  margin-top: var(--s6);
  padding: var(--s5) var(--gutter) var(--s4);
  border-top: 1px solid rgba(242,238,230,.12);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: end;
}
.rodape .cta {
  font-family: var(--f-display); font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; gap: .3em;
}
.rodape .cta { align-items: center; }
.rodape .cta .anel { width: 14px; height: 14px; color: var(--accent); }
.rodape .lado { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: flex-end; }
.rodape small { grid-column: 1 / -1; color: var(--ink-faint); font-size: var(--t-label); letter-spacing: .08em; }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.filtros {
  display: flex; flex-wrap: wrap; gap: 6px var(--s3);
  padding: 0 var(--gutter) var(--s5);
}
.filtros button {
  font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-faint); padding: 8px 0; position: relative; transition: color .3s;
}
.filtros button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.filtros button:hover { color: var(--ink); }
.filtros button[aria-pressed="true"] { color: var(--ink); }
.filtros button[aria-pressed="true"]::after { transform: scaleX(1); }
.filtros .qtd { font-variant-numeric: tabular-nums; color: var(--ink-faint); margin-left: 4px; font-size: 11px; }

.expo { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s3); row-gap: var(--s6); }
.obra { position: relative; display: block; }
.obra:nth-child(3n+1) { grid-column: 1 / span 8; }
.obra:nth-child(3n+2) { grid-column: 9 / span 4; margin-top: 30vh; }
.obra:nth-child(3n+3) { grid-column: 3 / span 7; }
.obra .moldura { position: relative; overflow: hidden; }
.obra .moldura img { width: 100%; height: auto; aspect-ratio: var(--ar, 3/2); object-fit: cover; transition: transform 1.6s var(--ease-out), filter 1s; }
.obra:hover .moldura img { transform: scale(1.04); }
.obra .ficha { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s2); align-items: baseline; margin-top: var(--s2); }
.obra .idx { font-size: var(--t-label); color: var(--ink-faint); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.obra h2, .obra h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--t-h3); line-height: 1.1; }
.obra .cat { font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.obra.oculta { display: none; }
.obra .placeholder-tag { left: 12px; top: 12px; }
.vazio { padding: 0 var(--gutter); color: var(--ink-soft); }

/* ---------- página de projeto ---------- */
.projeto-capa { position: relative; height: 88vh; height: 88svh; overflow: hidden; margin: 0 var(--gutter); }
.projeto-capa img { width: 100%; height: 115%; object-fit: cover; object-position: center 30%; will-change: transform; }
.projeto-info {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3);
  padding: var(--s5) var(--gutter) var(--s5);
}
.projeto-info .meta { grid-column: 1 / span 4; display: grid; gap: var(--s2); align-content: start; }
.projeto-info .meta dt { color: var(--ink-faint); }
.projeto-info .meta dd { margin: 0 0 var(--s2); font-size: var(--t-lead); }
.projeto-info .texto { grid-column: 6 / span 6; font-size: var(--t-lead); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.projeto-fotos { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3); row-gap: var(--s5); }
.projeto-fotos figure { margin: 0; }
.projeto-fotos figure:nth-child(3n+1) { grid-column: 1 / -1; }
.projeto-fotos figure:nth-child(3n+2) { grid-column: 1 / span 6; }
.projeto-fotos figure:nth-child(3n+3) { grid-column: 8 / span 5; align-self: end; }
.projeto-fotos img { width: 100%; height: auto; }
.projeto-video { padding: var(--s5) var(--gutter) 0; }
.projeto-video .caixa { position: relative; aspect-ratio: 16/9; background: var(--surface); }
.projeto-video iframe, .projeto-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prox { display: block; padding: var(--s6) var(--gutter) 0; }
.prox .label { display: block; margin-bottom: var(--s2); }
.prox .nome { font-family: var(--f-display); font-size: clamp(2.4rem, 7vw, 7rem); line-height: 1; letter-spacing: -.02em; transition: font-style .3s; }
.prox:hover .nome { font-style: italic; }

/* =========================================================
   GALERIA
   ========================================================= */
.mural { padding: 0 var(--gutter); columns: 3 320px; column-gap: var(--s3); }
.mural .peca {
  break-inside: avoid; margin: 0 0 var(--s3); position: relative; display: block; width: 100%;
  background: var(--surface); overflow: hidden; cursor: zoom-in; text-align: left;
}
.mural .peca img { width: 100%; height: auto; transition: transform 1.4s var(--ease-out), opacity .8s; opacity: 0; }
.mural .peca img.carregou { opacity: 1; }
.mural .peca:hover img { transform: scale(1.035); }
.mural .peca .leg {
  position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .6s var(--ease-out);
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.mural .peca:hover .leg, .mural .peca:focus-visible .leg { opacity: 1; transform: none; }
.mural .peca.oculta { display: none; }
.mural .peca .placeholder-tag { left: 10px; top: 10px; font-size: 10px; }
.mais { display: flex; justify-content: center; padding: var(--s5) 0 0; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.97);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s linear .6s;
  touch-action: pan-y;
}
.lb.aberto { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out), visibility 0s; }
.lb-topo, .lb-base { display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--gutter); gap: var(--s3); }
.lb-palco { position: relative; overflow: hidden; display: grid; place-items: center; padding: 0 var(--gutter); }
.lb-palco img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: transform .8s var(--ease-out), opacity .5s;
  cursor: zoom-in;
}
.lb-palco img.zoom { transform: scale(1.9); cursor: zoom-out; }
.lb-palco img.trocando { opacity: 0; }
.lb-cont { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: var(--t-label); letter-spacing: .14em; }
.lb-nav { display: flex; gap: var(--s4); }
.lb-nav button { font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; padding: 10px 0; }
.lb-nav button:hover { color: var(--accent); }
.lb-leg { color: var(--ink-soft); font-size: var(--t-label); letter-spacing: .08em; min-height: 1em; }
.lb.limpo .lb-topo, .lb.limpo .lb-base { opacity: 0; transition: opacity .6s; }

/* =========================================================
   ENCONTRE SUA FOTO
   ========================================================= */
.encontre { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.encontre-fotos { position: absolute; inset: 0; z-index: -2; }
.encontre-fotos figure { position: absolute; margin: 0; overflow: hidden; opacity: 0; transition: opacity 2.6s var(--ease-io); }
.encontre-fotos figure.ativa { opacity: 1; }
.encontre-fotos figure:nth-child(3n+1) { inset: 8vh 34vw 16vh 6vw; }
.encontre-fotos figure:nth-child(3n+2) { inset: 18vh 6vw 10vh 46vw; }
.encontre-fotos figure:nth-child(3n+3) { inset: 6vh 24vw 24vh 30vw; }
.encontre-fotos img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) contrast(1.06) saturate(.8); }
.encontre-fotos figure.ativa img { animation: respiro 16s linear both; }
.encontre::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 30% 55%, rgba(0,0,0,.55), transparent 70%), linear-gradient(to top, rgba(0,0,0,.85), transparent 45%);
}
.encontre-texto {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: end;
  padding: 140px var(--gutter) var(--s5);
}
.encontre h1, .encontre h2 {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.2rem, min(9.6vw, 15vh), 10rem); line-height: .9; letter-spacing: -.035em;
}
.encontre :is(h1, h2) .l2 { display: block; padding-left: clamp(0px, 12vw, 220px); font-style: italic; white-space: nowrap; }
.encontre-linha {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: end;
  margin-top: var(--s5);
}
.encontre .sub { margin: 0; max-width: 32ch; font-size: var(--t-lead); color: var(--ink); font-weight: 300; line-height: 1.5; }
.encontre .pequeno { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.seta-viva { display: inline-block; width: 64px; height: 1px; background: var(--accent); position: relative; overflow: visible; }

.seta-viva { animation: aponta 2.2s var(--ease-io) infinite; transform-origin: left; }
@keyframes aponta { 0%,100% { transform: scaleX(.55); } 50% { transform: scaleX(1); } }

.btn-iris {
  position: relative; display: grid; place-items: center; text-align: center;
  width: clamp(168px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(242,238,230,.5);
  font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; font-weight: 500; line-height: 1.5;
  isolation: isolate; overflow: hidden;
  transition: border-color .5s, color .5s;
}
.btn-iris::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--ink);
  transform: scale(0); transition: transform .8s var(--ease-out);
}
.btn-iris:hover, .btn-iris:focus-visible { color: #000; border-color: var(--ink); }
.btn-iris:hover::before, .btn-iris:focus-visible::before { transform: scale(1); }
.btn-iris .dentro { display: inline-block; padding: 0 12px; }

/* =========================================================
   SOBRE
   ========================================================= */
.sobre-grade { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3); padding: 0 var(--gutter); }
.sobre-grade .retrato { grid-column: 1 / span 5; position: relative; }
.sobre-grade .retrato img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.sobre-grade .texto { grid-column: 7 / span 5; align-self: center; }
.sobre-grade .texto p { font-size: var(--t-lead); line-height: 1.6; margin: 0 0 var(--s3); max-width: 46ch; }
.sobre-grade .texto p.fecho { font-family: var(--f-display); font-style: italic; font-size: var(--t-h3); line-height: 1.3; color: var(--ink); }
.blocos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); padding: var(--s6) var(--gutter) 0; }
.blocos h2 { margin: 0 0 var(--s2); }
.blocos p, .blocos li { color: var(--ink-soft); }
.blocos ul { list-style: none; margin: 0; padding: 0; }
.blocos li { padding: 10px 0; border-bottom: 1px solid rgba(242,238,230,.1); font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); }
.a-preencher {
  border: 1px dashed rgba(212,175,55,.5); padding: var(--s2); color: var(--ink-faint); font-size: .9375rem;
}
.a-preencher strong { color: var(--accent); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* =========================================================
   CONTATO
   ========================================================= */
.contato { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: 140px var(--gutter) var(--s5); }
.contato h1, .contato h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 9vw, 9.5rem); line-height: .9; letter-spacing: -.03em; max-width: 13ch; }
.contato :is(h1, h2) em { color: var(--ink); }
.contato .sub { margin: var(--s4) 0 var(--s5); font-family: var(--f-display); font-style: italic; color: var(--ink-soft); font-size: var(--t-lead); }
.contato-links { display: grid; border-top: 1px solid rgba(242,238,230,.16); }
.contato-links a {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: clamp(18px, 3vh, 30px) 0; border-bottom: 1px solid rgba(242,238,230,.16);
  font-family: var(--f-display); font-size: clamp(1.75rem, 4.4vw, 4rem); letter-spacing: -.01em; line-height: 1;
  position: relative; overflow: hidden;
}
.contato-links a .det { font-family: var(--f-text); font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); transition: color .4s; }
.contato-links a .t { transition: transform .8s var(--ease-out); display: inline-block; }
.contato-links a:hover .t { transform: translateX(clamp(8px, 2vw, 32px)); font-style: italic; }
.contato-links a:hover .det { color: var(--accent); }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor, .cursor-ponto { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-ativo, html.cursor-ativo a, html.cursor-ativo button { cursor: none; }
  .cursor-ponto {
    display: block; position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none;
    width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ink);
  }
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 179; pointer-events: none;
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
    border: 1px solid rgba(242,238,230,.45);
    transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background .4s, border-color .4s;
    mix-blend-mode: difference;
  }
  .cursor span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; font-weight: 500; }
  .cursor.link { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--ink); }
  .cursor.foto { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-color: rgba(242,238,230,.9); }
  .cursor.foto span { opacity: 1; }
  .cursor.oculto, .cursor-ponto.oculto { opacity: 0; }
}

/* =========================================================
   CELULAR — direção própria
   ========================================================= */
@media (max-width: 760px) {
  .topo { padding: var(--s2) var(--gutter); }
  .marca { width: 118px; }

  /* título empilhado: A / CONTEXTO., ancorado no terço inferior, como um cartaz vertical */
  .hero-centro { place-content: end start; text-align: left; padding-bottom: 168px; }
  .titulo-mono { font-size: 14.2vw; white-space: normal; }
  .titulo-mono .linha { white-space: nowrap; }
  .titulo-mono .linha { display: block; }
  .titulo-mono .linha + .linha { margin-left: 0; }
  .assinatura { margin: var(--s2) 0 0; font-size: 1.0625rem; max-width: 26ch; }
  .hero::before {
    background:
      linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 45%, transparent 70%),
      linear-gradient(to bottom, rgba(0,0,0,.5), transparent 18%);
  }
  .hero-base {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); justify-content: stretch;
    padding-bottom: var(--s3);
  }
  .hero-base .elink { padding: 14px 0; font-size: 12px; }
  .hero-base .destaque { grid-column: 1 / -1; order: -1; font-size: 13px; }
  .hero .placeholder-tag { top: 96px; right: var(--gutter); transform: none; }

  .menu-nav { height: calc(100% - 210px); padding: 0 var(--gutter); }
  .menu-nav .nome { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .menu-nav ol:hover a { opacity: 1; }
  .menu-base { flex-direction: column; align-items: flex-start; padding-bottom: var(--s3); }
  .menu-base .contatos { gap: var(--s3); }

  .expo { display: block; }
  .obra { margin: 0 0 var(--s5); }
  .obra:nth-child(3n+2) { margin-top: 0; padding-left: 18%; }
  .obra:nth-child(3n+3) { padding-right: 10%; }
  .obra .ficha { grid-template-columns: auto 1fr; }
  .obra .cat { grid-column: 2; }

  .projeto-capa { margin: 0; height: 70svh; }
  .projeto-info { display: block; }
  .projeto-info .texto { margin-top: var(--s4); }
  .projeto-fotos { display: block; }
  .projeto-fotos figure { margin-bottom: var(--s3); }

  .filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: var(--s3); padding-bottom: var(--s4); -webkit-overflow-scrolling: touch; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; white-space: nowrap; }
  .mural { columns: 2; column-gap: 8px; padding: 0 8px; }
  .mural .peca { margin-bottom: 8px; }

  .encontre-fotos figure:nth-child(n) { inset: 0 0 38vh 0; }
  .encontre::before { background: linear-gradient(to top, #000 0%, #000 34%, rgba(0,0,0,.4) 62%, transparent 85%); }
  .encontre :is(h1, h2) .l2 { padding-left: 0; white-space: normal; }
  .encontre-linha { grid-template-columns: 1fr; }
  .btn-iris { width: 100%; aspect-ratio: auto; border-radius: 999px; padding: 22px 0; }
  .btn-iris::before { border-radius: 999px; transform: scaleX(0); transform-origin: left; }
  .btn-iris:hover::before, .btn-iris:focus-visible::before { transform: scaleX(1); }

  .sobre-grade { display: block; }
  .sobre-grade .retrato { margin: 0 -8px var(--s4); }
  .blocos { grid-template-columns: 1fr; }

  .rodape { grid-template-columns: 1fr; }
  .rodape .lado { justify-content: flex-start; gap: 0 var(--s3); }
}


/* =========================================================
   LOGO NA CAPA — revelada da esquerda para a direita,
   depois um reflexo de luz atravessa o dourado e a prata
   ========================================================= */
.logo-hero { margin: 0; position: relative; width: min(64vw, 1040px); line-height: 0; }
.logo-hero img {
  width: 100%; height: auto;
  clip-path: inset(0 100% 0 0);
  transform: scale(1.04); filter: blur(6px);
}
.revela .logo-hero img {
  clip-path: inset(0 0 0 0); transform: none; filter: none;
  transition: clip-path 1.9s var(--ease-io), transform 2.4s var(--ease-out), filter 1.6s var(--ease-out);
}
.logo-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 220, .9) 50%, transparent 60%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url("../assets/img/logo-principal.png") center / 100% 100% no-repeat;
          mask: url("../assets/img/logo-principal.png") center / 100% 100% no-repeat;
  mix-blend-mode: screen; opacity: 0;
}
.revela .logo-hero::after { animation: reflexo 2.2s var(--ease-io) 1.7s both; }
@keyframes reflexo {
  0% { opacity: 1; background-position: 160% 0; }
  100% { opacity: 1; background-position: -60% 0; }
}
.hero-midia { will-change: transform; }

/* capa sem foto: preto com um feixe de luz quente atrás da logo, como um palco antes do show */
.hero-preto {
  background:
    radial-gradient(46% 38% at 50% 46%, rgba(212, 175, 55, .10), transparent 70%),
    radial-gradient(80% 60% at 50% 40%, #16130f, #050505 75%);
}
.hero-preto::after {
  content: ""; position: absolute; left: 50%; top: -10%; width: 70vw; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 0%, rgba(242, 238, 230, .06), transparent 70%);
  animation: respira-luz 9s ease-in-out infinite alternate;
}
@keyframes respira-luz { from { opacity: .55; } to { opacity: 1; } }

/* logo pequena do canto: na página inicial, só depois da capa */
.topo-inicio .marca { opacity: 0; transform: translateY(-6px); transition: opacity .6s, transform .6s var(--ease-out); pointer-events: none; }
.topo-inicio.passou-capa .marca { opacity: 1; transform: none; pointer-events: auto; }

/* seções da página inicial */
.bloco { padding-top: var(--s6); }
.bloco .cab-pagina { padding-bottom: var(--s5); }
.ver-tudo { padding: var(--s5) var(--gutter) 0; margin: 0; }
.mural-inicio .peca { cursor: pointer; }
.encontre[id] { margin-top: var(--s6); }
.contato-inicio { min-height: 0; padding-top: var(--s6); }
.rodape-simples { display: block; margin-top: var(--s5); }

@media (max-width: 760px) {
  .logo-hero { width: 92vw; margin-left: -1vw; }
  .hero-centro { place-content: center start; padding-bottom: 150px; }
  .hero-preto { background: radial-gradient(70% 40% at 50% 42%, rgba(212, 175, 55, .10), transparent 70%), #050505; }
  .bloco .expo .obra:nth-child(3n+2) { padding-left: 18%; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-hero img { clip-path: none !important; transform: none !important; filter: none !important; }
  .logo-hero::after { display: none; }
  .topo-inicio .marca { opacity: 1; transform: none; pointer-events: auto; }
}

/* =========================================================
   MOVIMENTO REDUZIDO — tudo visível, nada se mexe
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .titulo-mono .ch, .palavras .w > span { transform: none !important; }
  .assinatura, .hero-base, .sobe { opacity: 1 !important; transform: none !important; }
  .mascara img { clip-path: none !important; transform: none !important; }
  .iris { display: none !important; }
  body::after { display: none; }
  .mural .peca img { opacity: 1; }
}
