/* =========================================================================
   LEGADO STUDIO — sistema visual
   O Sistema de Zonas de Ansel Adams e a estrutura desta pagina: cada secao
   ocupa um degrau da escala tonal, e a pagina expoe da Zona 0 (preto sem
   detalhe) ate a Zona X (branco puro). O ouro nao decora — e a marcacao do
   tecnico sobre a escala.
   ========================================================================= */

/* ---------- Fontes -------------------------------------------------------
   Jost e a geometria da wordmark existente (Futura). Nenhuma outra face
   reproduz o desenho da logo, por isso ela carrega titulos e rotulos.
   Archivo faz o texto corrido, com numerais tabulares para os dados. */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ------------------------------------------------------ */

:root {
  /* A escala de zonas. Cada degrau e um stop de luz do vizinho, derivado da
     refletancia real (18% na Zona V) e convertido para sRGB. As sombras
     recebem um desvio frio e as altas luzes um desvio quente, como o
     split-tone de um papel baritado revelado em tom morno. */
  --z0:  #050506;
  --z1:  #0a0a0c;
  --z2:  #0f0f12;
  --z3:  #141417;
  --z4:  #1a1a1e;
  --z5:  #212125;
  --z6:  #27272b;
  --z7:  #8b8880;
  --z8:  #d6d1c5;
  --z9:  #efeae0;
  --z10: #fbf8f2;

  /* Cinzas de texto, calibrados para passar AA sobre as zonas baixas. */
  --texto:      #d9d5cb;
  --texto-fraco: #8f8c84;
  --texto-tenue: #5c5a55;

  /* O ouro da marca, amostrado do gradiente da logo original. */
  --ouro-alto: #f0e2bc;
  --ouro:      #c9a961;
  --ouro-medio:#b08d4c;
  --ouro-fundo:#7c5f33;
  --ouro-tinta:#5b4526;

  /* Acento contextual: as secoes claras trocam o ouro por um tom que
     mantem 4.5:1 sobre papel. */
  --acento: var(--ouro);
  --acento-fraco: var(--ouro-fundo);

  --fio: rgba(201, 169, 97, 0.22);
  --fio-tenue: rgba(217, 213, 203, 0.1);

  --display: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --corpo: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Ritmo tipografico */
  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.05rem + 0.36vw, 1.375rem);
  --t-xl: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --t-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --t-3xl: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem);

  /* Espaco */
  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;
  --secao-y: clamp(5rem, 3.5rem + 7vw, 9.5rem);

  --regua-w: 80px;
  --borda-x: clamp(1.25rem, 4vw, 4.5rem);
  --largura: 78rem;

  /* Uma unica curva: saida exponencial, como a densidade subindo no banho. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* A propria barra de rolagem e a escala de zonas. */
  scrollbar-color: var(--ouro-fundo) var(--z1);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--z0);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--z8);
}

p { margin: 0; }
p + p { margin-top: 1.15em; }

a { color: inherit; }

/* ---------- Superficies do navegador -------------------------------------
   Selecao, cursor, foco e barra de rolagem sao parte do desenho. */

::selection { background: var(--ouro); color: var(--z0); }

:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 1px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--z1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ouro-medio), var(--ouro-tinta));
  border: 3px solid var(--z1);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ouro); }

/* ---------- Utilitarios --------------------------------------------------- */

.oculto-visual {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pular {
  position: absolute;
  top: -100%;
  left: var(--s3);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ouro);
  color: var(--z0);
  font-family: var(--display);
  font-size: var(--t-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.pular:focus { top: var(--s3); }

.envelope {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: var(--borda-x);
}

/* Rotulo tecnico: caps geometrico, tracking largo, como a wordmark. */
.tec {
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* =========================================================================
   REGUA DE ZONAS — a navegacao e a escala tonal
   ========================================================================= */

.regua {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--regua-w);
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding-left: 14px;
  pointer-events: none;
}
@media (min-width: 1100px) { .regua { display: flex; } }

/* A perfuracao do filme: a regua e uma tira que corre a altura inteira, e os
   furos sao a medida contra a qual os degraus se posicionam. */
.regua::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 5px;
  background-image: radial-gradient(circle at 2.5px 7px, var(--z5) 1.8px, transparent 2.2px);
  background-size: 5px 15px;
}

.regua__degrau {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: min(5.6vh, 56px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--texto-tenue);
  text-align: left;
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

/* O degrau desenha o proprio valor tonal. */
.regua__tom {
  width: 26px;
  height: calc(100% - 2px);
  flex: none;
  background: var(--tom);
  /* As zonas baixas são quase idênticas ao fundo: o fio é o que torna a
     escala legível sem falsear o valor tonal de cada degrau. */
  box-shadow: inset 0 0 0 1px rgba(217, 213, 203, 0.16);
  /* A largura é animada de propósito: um scaleX esticaria o fio de 1px que
     torna a escala legível. A régua é fixed com 11 filhos, então o reflow
     não sai dela e nunca toca o layout da página. */
  transition: width 0.5s var(--ease), box-shadow 0.4s var(--ease);
}

.regua__degrau[data-transicao] {
  cursor: default;
  pointer-events: none;
  height: min(2.6vh, 26px);
}
.regua__degrau[data-transicao] .regua__tom { width: 15px; }

.regua__numeral {
  font-family: var(--display);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}

/* O nome da secao so aparece no degrau ativo ou sob o ponteiro. */
.regua__nome {
  position: absolute;
  left: calc(26px + 34px);
  white-space: nowrap;
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ouro);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.regua__degrau:hover .regua__tom,
.regua__degrau:focus-visible .regua__tom { width: 34px; }
.regua__degrau:hover .regua__nome,
.regua__degrau:focus-visible .regua__nome { opacity: 1; transform: none; }
.regua__degrau:hover .regua__numeral { opacity: 1; color: var(--ouro); }

/* Marcacao do tecnico: o losango de ouro fica no degrau em que voce esta. */
.regua__degrau[aria-current='true'] { color: var(--ouro); }
.regua__degrau[aria-current='true'] .regua__numeral { opacity: 1; color: var(--ouro); }
.regua__degrau[aria-current='true'] .regua__nome { opacity: 1; transform: none; }
.regua__degrau[aria-current='true'] .regua__tom {
  width: 34px;
  box-shadow: inset 0 0 0 1px var(--ouro), -3px 0 0 0 var(--ouro);
}

/* ---------- Regua no telefone: uma fita fina de 11 celulas ---------------- */

.regua-movel {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  height: 4px;
  background: var(--z1);
  border-top: 1px solid rgba(217, 213, 203, 0.06);
}
@media (min-width: 1100px) { .regua-movel { display: none; } }

.regua-movel span {
  flex: 1;
  background: var(--tom);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  transform-origin: bottom;
}
.regua-movel span[data-ativo] {
  box-shadow: inset 0 2px 0 0 var(--ouro);
  transform: scaleY(2.4);
}

/* =========================================================================
   CABECALHO
   ========================================================================= */

.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: clamp(0.9rem, 2vw, 1.4rem) var(--borda-x);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.92), rgba(5, 5, 6, 0));
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
@media (min-width: 1100px) { .topo { padding-left: calc(var(--regua-w) + 1.5rem); } }

.topo[data-fixo] {
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(14px) saturate(0.9);
  border-bottom: 1px solid var(--fio-tenue);
}
/* Sobre as zonas claras o cabecalho inverte. */
.topo[data-luz] {
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(5, 5, 6, 0.12);
}
.topo[data-luz] .marca__texto strong,
.topo[data-luz] .marca__texto span { color: var(--z0); }
.topo[data-luz] .menu a { color: rgba(5, 5, 6, 0.66); }
.topo[data-luz] .menu a:hover { color: var(--z0); }
.topo[data-luz] .menu-botao { color: var(--z0); }
.topo[data-luz] .menu-botao span { background: var(--z0); }

.marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.marca img { width: 20px; height: auto; }
.marca__texto { display: flex; flex-direction: column; line-height: 1; }
.marca__texto strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.34em;
  color: var(--z8);
  transition: color 0.4s var(--ease);
}
.marca__texto span {
  font-family: var(--display);
  font-size: 0.5rem;
  letter-spacing: 0.52em;
  color: var(--ouro);
  margin-top: 5px;
  transition: color 0.4s var(--ease);
}

.menu { display: none; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); }
@media (min-width: 860px) { .menu { display: flex; } }

.menu a {
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texto-fraco);
  padding-block: 4px;
  position: relative;
  transition: color 0.35s var(--ease);
}
.menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.menu a:hover { color: var(--z8); }
.menu a:hover::after { transform: scaleX(1); }

/* ---------- Menu do telefone: tipografia monumental ---------------------- */

.menu-botao {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--z8);
}
@media (min-width: 860px) { .menu-botao { display: none; } }
.menu-botao span {
  display: block;
  height: 1px;
  width: 24px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.menu-botao[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-botao[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.gaveta {
  position: fixed;
  inset: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 6rem var(--borda-x) 4rem;
  background: var(--z0);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.gaveta[data-aberta] { visibility: visible; opacity: 1; }

.gaveta a {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 9vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--z8);
  padding-block: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.gaveta[data-aberta] a { opacity: 1; transform: none; }
.gaveta a:hover { color: var(--ouro); }
.gaveta a small {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--ouro-fundo);
  font-variant-numeric: tabular-nums;
}
.gaveta__pe {
  margin-top: auto;
  padding-top: var(--s4);
  border-top: 1px solid var(--fio-tenue);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--texto-fraco);
  font-size: var(--t-sm);
}
.gaveta__pe a { font-size: var(--t-sm); letter-spacing: 0.04em; text-transform: none; color: var(--ouro); }

/* =========================================================================
   SECOES / ZONAS
   ========================================================================= */

.zona {
  position: relative;
  padding-block: var(--secao-y);
  background: var(--fundo);
  transition: background 0.6s linear;
}
/* A regua ocupa a borda esquerda; as secoes cedem essa faixa. */
@media (min-width: 1100px) { .zona { padding-left: var(--regua-w); } }

/* A anotacao de margem: numeral e nome da zona vivem na lateral, alinhados
   ao topo do bloco. Nunca acima do titulo. */
.zona__marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--s4);
  color: var(--ouro-fundo);
}
.zona__marca .tec { color: var(--texto-tenue); }
.zona__marca i {
  display: block;
  width: 40px;
  height: 8px;
  background: var(--tom-marca);
  box-shadow: inset 0 0 0 1px rgba(217, 213, 203, 0.14);
  flex: none;
}
@media (min-width: 1100px) {
  .zona > .envelope { position: relative; padding-left: calc(var(--borda-x) + 4.25rem); }
  .zona__marca {
    position: absolute;
    left: var(--borda-x);
    top: 0.35rem;
    margin: 0;
    writing-mode: vertical-rl;
    align-items: flex-start;
    gap: 1rem;
  }
  .zona__marca i { width: 8px; height: 40px; }
}

/* Secoes claras: o acento troca para um ouro que segura contraste no papel. */
.zona--luz {
  --acento: var(--ouro-tinta);
  --acento-fraco: var(--ouro-fundo);
  --texto: #23221f;
  --texto-fraco: #5a574f;
  --texto-tenue: #8a867c;
  --fio: rgba(91, 69, 38, 0.28);
  --fio-tenue: rgba(5, 5, 6, 0.12);
  color: var(--texto);
}
.zona--luz h1, .zona--luz h2, .zona--luz h3 { color: var(--z0); }
.zona--luz .zona__marca .tec { color: var(--texto-tenue); }

.zona__titulo {
  font-size: var(--t-2xl);
  max-width: 22ch;
}

.zona__intro {
  margin-top: var(--s3);
  max-width: 62ch;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--texto-fraco);
}

/* =========================================================================
   ZONA 0 — ABERTURA
   O centro do quadro fica vazio. Tudo que informa orbita a borda.
   ========================================================================= */

.abertura {
  --fundo: var(--z0);
  min-height: 100svh;
  display: flex;
  /* padding-block apenas: o padding-left da régua vem de .zona e não pode
     ser apagado por um shorthand. */
  padding-block: clamp(6rem, 14vh, 9rem) clamp(2rem, 5vh, 3.5rem);
  position: relative;
  overflow: hidden;
}
/* O quadro da abertura usa o mesmo eixo das demais zonas, para que o titulo
   nasca na mesma coluna em que o resto da pagina continua. */
.abertura__quadro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* O retículo de enquadramento — a moldura esperando a imagem. */
/* No telefone não sobra centro vazio para emoldurar, então o retículo
   enquadra a tela inteira em vez de cruzar o título. */
.reticulo {
  position: absolute;
  inset: 4.5rem 1rem 2.5rem;
  pointer-events: none;
  opacity: 0;
  animation: reticulo-entra 1.6s var(--ease) 0.5s forwards;
}
/* Onde há espaço, o quadro vazio ocupa a coluna que o texto não usa: o
   centro da página fica sem marcação e a moldura espera a imagem. */
@media (min-width: 1100px) {
  .reticulo {
    inset: 50% clamp(3rem, 9vw, 9rem) auto auto;
    transform: translateY(-50%);
    width: min(34vw, 27rem);
    aspect-ratio: 4 / 5;
  }
}
.reticulo i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ouro-fundo);
}
.reticulo i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticulo i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticulo i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticulo i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.reticulo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(201, 169, 97, 0.05), transparent 68%);
}
@keyframes reticulo-entra { to { opacity: 1; } }

.abertura__topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s3);
  position: relative;
  z-index: 2;
}

.abertura__base { position: relative; z-index: 2; }

.abertura h1 {
  font-size: var(--t-3xl);
  font-weight: 300;
  letter-spacing: -0.035em;
  max-width: 15ch;
  color: var(--z8);
}
.abertura h1 em {
  font-style: normal;
  color: var(--ouro);
}

.abertura__linha {
  margin-top: var(--s3);
  max-width: 46ch;
  color: var(--texto-fraco);
  font-size: var(--t-lg);
  line-height: 1.5;
}

/* A ação principal segue o parágrafo: quem termina de ler já está sobre ela. */
.abertura__acao {
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.abertura__pe {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  padding-top: var(--s3);
  border-top: 1px solid var(--fio);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.abertura__dados {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  color: var(--texto-tenue);
}
.abertura__dados span { display: inline-flex; align-items: center; gap: 0.5rem; }
.abertura__dados b { color: var(--texto-fraco); font-weight: 400; }

/* O convite a descer, como o proximo degrau da escala. */
.desce {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--texto-tenue);
  transition: color 0.35s var(--ease);
}
.desce:hover { color: var(--ouro); }
.desce i {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--ouro), transparent);
  display: block;
  animation: desce-pulso 2.6s var(--ease) infinite;
}
@keyframes desce-pulso {
  0%, 100% { transform: scaleY(1); opacity: 0.9; transform-origin: top; }
  50% { transform: scaleY(0.45); opacity: 0.35; transform-origin: top; }
}

/* =========================================================================
   BOTOES
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ouro);
  background: none;
  color: var(--ouro);
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* O preenchimento sobe como a densidade no papel. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ouro);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--z0); }
.btn:hover::before { transform: scaleY(1); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--solido { background: var(--ouro); color: var(--z0); }
.btn--solido::before { background: var(--ouro-alto); }
.btn--solido:hover { color: var(--z0); border-color: var(--ouro-alto); }

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================================
   ZONA I — MANIFESTO
   ========================================================================= */

.manifesto { --fundo: var(--z1); }
.manifesto__texto {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--t-xl);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 30ch;
  color: var(--z8);
}
.manifesto__texto em { font-style: normal; color: var(--ouro); }

.manifesto__corpo {
  display: grid;
  gap: var(--s5);
  align-items: start;
}
@media (min-width: 900px) {
  .manifesto__corpo { grid-template-columns: 1.15fr 1fr; gap: var(--s6); }
}
.manifesto__nota {
  max-width: 58ch;
  color: var(--texto-fraco);
  padding-top: 0.5rem;
}

/* =========================================================================
   ZONA II — PORTFOLIO
   Indice denso primeiro: todos os trabalhos de uma vez, sem paginacao.
   ========================================================================= */

.portfolio { --fundo: var(--z2); }

.portfolio__cabeca {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.filtros { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filtro {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--fio-tenue);
  background: none;
  color: var(--texto-fraco);
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.filtro:hover { color: var(--z8); border-color: var(--fio); }
.filtro[aria-pressed='true'] { color: var(--ouro); border-color: var(--ouro); }

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.frame {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--z1);
  overflow: hidden;
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
/* Doacao da bancada de montagem: o que sai do filtro nao some da bancada,
   continua pendurado, apenas fora de foco. */
.frame[data-fora] {
  opacity: 0.22;
  filter: grayscale(1) brightness(0.6);
  pointer-events: none;
}

/* Proporção fixa: as legendas alinham na fileira e a foto real que entrar
   no lugar da cartela ocupa o mesmo quadro sem refazer nada. */
.frame__imagem {
  position: relative;
  overflow: hidden;
  background: var(--z0);
  aspect-ratio: 4 / 5;
}
/* Um destaque por página dá hierarquia à bancada. */
@media (min-width: 760px) {
  .frame--largo { grid-column: span 2; }
  .frame--largo .frame__imagem { aspect-ratio: 16 / 10; }
}
.frame__imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.frame:hover .frame__imagem img { transform: scale(1.045); }

.frame__legenda {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--fio-tenue);
  margin-top: 0.9rem;
  transition: border-color 0.4s var(--ease);
}
.frame:hover .frame__legenda { border-color: var(--fio); }
.frame__legenda h3 {
  font-size: var(--t-base);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--z8);
}
.frame__legenda p { font-size: var(--t-sm); color: var(--texto-tenue); margin-top: 3px; }
.frame__legenda .tec { color: var(--ouro-fundo); flex: none; }

/* Selo honesto: estas cartelas nao sao fotografias. */
.frame__selo {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--fio);
  color: var(--ouro);
  font-family: var(--display);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portfolio__vazio {
  padding: var(--s5) 0;
  border-top: 1px solid var(--fio-tenue);
  color: var(--texto-tenue);
  display: none;
}
.portfolio__vazio[data-visivel] { display: block; }

/* =========================================================================
   ZONA III — OFICIO
   ========================================================================= */

.oficio { --fundo: var(--z3); }

.oficio__lista {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  border-top: 1px solid var(--fio-tenue);
}
.oficio__item {
  display: grid;
  gap: 0.5rem var(--s4);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--fio-tenue);
  align-items: start;
}
@media (min-width: 820px) {
  .oficio__item { grid-template-columns: 2.5rem 1fr 1.5fr; align-items: baseline; }
}
.oficio__item svg {
  width: 26px; height: 26px;
  color: var(--ouro);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.oficio__item h3 {
  font-size: var(--t-xl);
  font-weight: 300;
  letter-spacing: -0.015em;
}
.oficio__item p { color: var(--texto-fraco); max-width: 52ch; }
.oficio__entrega {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  color: var(--texto-tenue);
}
.oficio__entrega span::before { content: '— '; color: var(--ouro-fundo); }

/* =========================================================================
   ZONA IV — AUTOR
   ========================================================================= */

.autor { --fundo: var(--z4); }

.autor__corpo {
  display: grid;
  gap: var(--s5);
  align-items: start;
}
@media (min-width: 900px) {
  .autor__corpo { grid-template-columns: 0.85fr 1.15fr; gap: var(--s6); }
}

/* O retrato entra na escala: tratado em preto e branco, com o mesmo
   split-tone quente das altas luzes do sistema. */
.retrato {
  position: relative;
  background: var(--z0);
}
.retrato img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.12) brightness(0.92) sepia(0.14);
  transition: filter 0.8s var(--ease);
}
.retrato:hover img { filter: grayscale(1) contrast(1.06) brightness(1) sepia(0.1); }
.retrato::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px 10px rgba(5, 5, 6, 0.6);
  pointer-events: none;
}
.retrato__nota {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.9));
  color: var(--ouro);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.autor__texto p { max-width: 66ch; color: var(--texto-fraco); }
.autor__texto p strong { color: var(--z8); font-weight: 500; }

.ficha {
  margin-top: var(--s5);
  border-top: 1px solid var(--fio-tenue);
}
.ficha div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--fio-tenue);
}
@media (min-width: 640px) { .ficha div { grid-template-columns: 10rem 1fr; } }
.ficha dt { color: var(--texto-tenue); }
.ficha dd { margin: 0; color: var(--texto); }

/* =========================================================================
   ZONA V — PRINCIPIOS (missao, visao, valores)
   ========================================================================= */

.principios { --fundo: var(--z5); }

.principios__grupo {
  display: grid;
  gap: 0;
  margin-top: var(--s5);
  border-top: 1px solid var(--fio-tenue);
}
@media (min-width: 900px) {
  .principios__grupo { grid-template-columns: repeat(3, 1fr); border-top: 0; }
}
.principio {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--fio-tenue);
}
@media (min-width: 900px) {
  .principio {
    padding: var(--s4) var(--s4) var(--s5) 0;
    border-bottom: 0;
    border-top: 1px solid var(--fio-tenue);
  }
  .principio + .principio { padding-left: var(--s4); border-left: 1px solid var(--fio-tenue); }
}
.principio h3 {
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ouro);
}
.principio p { margin-top: 0.85rem; color: var(--texto-fraco); max-width: 42ch; }

.valores { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 700px) { .valores { grid-template-columns: repeat(2, 1fr); column-gap: var(--s5); } }
.valores li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--fio-tenue);
}
.valores .tec { color: var(--ouro-fundo); padding-top: 0.28rem; }
.valores b { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); color: var(--z8); letter-spacing: 0.01em; }
.valores p { margin-top: 0.3rem; color: var(--texto-fraco); font-size: var(--t-sm); line-height: 1.6; }

/* =========================================================================
   ZONA VI — PROCESSO
   ========================================================================= */

.processo { --fundo: var(--z6); }
.processo__passos { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: passo; }
.processo__passos li {
  display: grid;
  gap: 0.4rem 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--fio-tenue);
  position: relative;
}
@media (min-width: 780px) { .processo__passos li { grid-template-columns: 4rem 14rem 1fr; align-items: baseline; } }
.processo__passos .tec { color: var(--ouro); }
.processo__passos b { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); color: var(--z8); }
.processo__passos p { color: var(--texto-fraco); max-width: 56ch; }

/* ---------- A transicao de exposicao (Zona VII) --------------------------
   O salto do laboratorio para o papel acontece a vista, nao por corte. */
.transicao {
  height: clamp(6rem, 16vh, 11rem);
  background: linear-gradient(180deg, var(--z6) 0%, #3d3b36 38%, #8b8880 66%, var(--z8) 88%, var(--z9) 100%);
  position: relative;
}
.transicao span {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  color: rgba(5, 5, 6, 0.5);
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* =========================================================================
   ZONA VIII — CONTATO (a exposicao chega ao papel)
   ========================================================================= */

.contato { --fundo: var(--z9); }

.contato__corpo { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 950px) { .contato__corpo { grid-template-columns: 0.85fr 1.15fr; gap: var(--s6); } }

.contato__lado p { color: var(--texto-fraco); max-width: 40ch; }
.contato__diretos { margin-top: var(--s4); display: grid; gap: 0; }
.contato__diretos a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--fio-tenue);
  text-decoration: none;
  color: var(--texto);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.contato__diretos a:last-child { border-bottom: 1px solid var(--fio-tenue); }
.contato__diretos a:hover { color: var(--ouro-tinta); transform: translateX(6px); }
.contato__diretos svg { width: 18px; height: 18px; color: var(--ouro-tinta); stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contato__diretos small { display: block; color: var(--texto-tenue); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--display); }

/* ---------- Formulario ---------------------------------------------------- */

.form { display: grid; gap: var(--s3); }
.form__dupla { display: grid; gap: var(--s3); }
@media (min-width: 620px) { .form__dupla { grid-template-columns: 1fr 1fr; } }

.campo { display: grid; gap: 0.4rem; }
.campo > label {
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texto-fraco);
}
.campo > label span { color: var(--ouro-tinta); }

.campo input,
.campo textarea,
.campo select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(5, 5, 6, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  color: var(--z0);
  font-family: var(--corpo);
  font-size: var(--t-base);
  line-height: 1.5;
  caret-color: var(--ouro-tinta);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.campo textarea { min-height: 8.5rem; resize: vertical; }
.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235b4526' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
}
.campo input::placeholder,
.campo textarea::placeholder { color: #7d7a72; }

.campo input:hover,
.campo textarea:hover,
.campo select:hover { border-color: rgba(5, 5, 6, 0.34); }

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  outline: none;
  border-color: var(--ouro-tinta);
  background: #fff;
  box-shadow: 0 2px 14px -6px rgba(91, 69, 38, 0.4);
}

.campo[data-erro] input,
.campo[data-erro] textarea,
.campo[data-erro] select { border-color: #8c2f21; background: #fdf3f1; }

.campo__erro {
  font-size: var(--t-sm);
  color: #8c2f21;
  display: none;
  align-items: center;
  gap: 0.4rem;
}
.campo[data-erro] .campo__erro { display: flex; }

.form__pe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: 0.5rem;
}
.form__nota { font-size: var(--t-sm); color: var(--texto-tenue); max-width: 36ch; }

.contato .btn { border-color: var(--ouro-tinta); color: var(--ouro-tinta); }
.contato .btn::before { background: var(--ouro-tinta); }
.contato .btn:hover { color: var(--z10); }

/* Estado de envio: o botao mede o tempo, como um cronometro de revelacao. */
.btn[data-carregando] { pointer-events: none; }
.btn[data-carregando] .btn__rotulo { opacity: 0.5; }
.btn__medidor {
  display: none;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gira 0.8s linear infinite;
}
.btn[data-carregando] .btn__medidor { display: block; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Retorno do envio */
.recado {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--ouro-tinta);
  background: rgba(201, 169, 97, 0.12);
  color: var(--z0);
}
.recado[data-visivel] { display: flex; }
.recado[data-tom='erro'] { border-color: #8c2f21; background: #fdf3f1; }
.recado svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.recado b { display: block; font-family: var(--display); font-weight: 500; letter-spacing: 0.02em; }
.recado p { font-size: var(--t-sm); color: var(--texto-fraco); margin-top: 0.2rem; }

/* =========================================================================
   ZONA X — ASSINATURA
   ========================================================================= */

.rodape {
  --fundo: var(--z10);
  --texto: #23221f;
  --texto-fraco: #5a574f;
  --texto-tenue: #8a867c;
  --fio-tenue: rgba(5, 5, 6, 0.12);
  color: var(--texto);
  padding-block: var(--s6) var(--s5);
}
.rodape__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--fio-tenue);
}
.rodape__marca { display: flex; align-items: center; gap: 1rem; }
.rodape__marca img { width: 34px; }
.rodape__marca strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.34em;
  color: var(--z0);
}
.rodape__marca span {
  display: block;
  font-family: var(--display);
  font-size: 0.5625rem;
  letter-spacing: 0.5em;
  color: var(--ouro-tinta);
  margin-top: 5px;
}
.rodape__redes { display: flex; gap: 1.5rem; }
.rodape__redes a {
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texto-fraco);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rodape__redes a:hover { color: var(--z0); border-color: var(--ouro-tinta); }

.rodape__base {
  margin-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem var(--s4);
  color: var(--texto-tenue);
  font-size: var(--t-sm);
}
.rodape__base a { color: var(--texto-fraco); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(91, 69, 38, 0.4); }
.rodape__base a:hover { color: var(--z0); text-decoration-color: var(--ouro-tinta); }

/* =========================================================================
   BOTAO FLUTUANTE DE WHATSAPP
   ========================================================================= */

.zap {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1.35rem, 3vw, 2rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.15rem;
  background: var(--ouro);
  color: var(--z0);
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.85), 0 3px 10px -4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.35s var(--ease);
}
.zap[data-visivel] { opacity: 1; transform: none; }
/* Na zona do formulário o atalho sai de cena: ali o próprio contato é a
   ação, e o botão flutuante cobria o "Enviar pedido". */
.zap[data-recolhido] {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.zap:hover { background: var(--ouro-alto); }
.zap svg { width: 17px; height: 17px; flex: none; }
.zap span { display: none; }
@media (min-width: 520px) { .zap span { display: inline; } }

/* =========================================================================
   MOVIMENTO — a revelacao
   Um unico gesto autoral: o conteudo chega como uma copia no revelador,
   subindo de contraste ate o tom final. As secoes seguintes usam a versao
   discreta; a abertura usa a completa.
   ========================================================================= */

[data-revela] {
  opacity: 0;
  filter: contrast(0.35) brightness(1.5) blur(9px);
  transform: translateY(18px);
}
[data-revela][data-revelado] {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 1.1s var(--ease),
    filter 1.4s var(--ease),
    transform 1.2s var(--ease);
  transition-delay: var(--atraso, 0ms);
}

/* O fio de ouro que abre cada secao risca da esquerda para a direita. */
[data-risco] {
  transform: scaleX(0);
  transform-origin: left;
}
[data-risco][data-revelado] {
  transform: scaleX(1);
  transition: transform 1.1s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-revela] { opacity: 1; filter: none; transform: none; }
  [data-risco] { transform: none; }
  .reticulo { opacity: 1; animation: none; }
}
