/* =========================================================
   Denis Souza Fotografia, versão 2
   Tema escuro único (vem da logo). Acento: âmbar.
   Formas: cantos retos em tudo; só o botão flutuante é redondo.
   Movimento: CSS scroll-driven (quando o navegador suporta)
   + IntersectionObserver para entradas. Tudo desliga com
   "reduzir movimento".
   Camadas (z-index): 1 conteúdo | 40 botão flutuante |
   50 topo | 60 menu | 70 lightbox
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #121213;
  --bg-3: #19191a;
  --linha: rgba(241, 238, 232, 0.12);
  --texto: #f1eee8;
  --suave: #aaa69e;
  --ac: #e3a650;
  --ac-2: #cf8f3a;
  --tinta: #151210;
  --gutter: clamp(18px, 4.5vw, 56px);
  --max: 1320px;
  --topo-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 330;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.04; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ac { color: var(--ac); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pular {
  position: absolute; left: 8px; top: -80px; z-index: 80;
  background: var(--ac); color: var(--tinta); padding: 10px 14px; text-decoration: none;
}
.pular:focus { top: 8px; }

/* Rótulo em caixa alta, eco do "FOTOGRAFIA" da logo. Racionado. */
.selo {
  display: block;
  font-size: 0.76rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ac);
}

.titulo { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.lead { color: var(--suave); font-size: clamp(1.06rem, 1.35vw, 1.22rem); max-width: 52ch; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0 1.5em;
  background: var(--ac); color: var(--tinta); border: 1px solid var(--ac);
  font-weight: 500; font-size: 1rem; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--ac-2); border-color: var(--ac-2); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--vazado { background: rgba(11, 11, 12, 0.25); color: var(--texto); border-color: rgba(241, 238, 232, 0.35); }
.btn--vazado:hover { background: rgba(241, 238, 232, 0.08); border-color: var(--texto); }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: 0.95rem; }

.seta {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--texto); text-decoration: none; font-weight: 400;
  padding-bottom: 6px; border-bottom: 1px solid rgba(227, 166, 80, 0.55);
  transition: gap 0.35s var(--ease), border-color 0.25s;
}
.seta .ico { color: var(--ac); transition: transform 0.35s var(--ease); }
.seta:hover { border-color: var(--ac); }
.seta:hover .ico { transform: translateX(4px); }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo-h);
  transition: background-color 0.45s, border-color 0.45s, backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.topo::before {
  /* sombra suave para o topo continuar legível sobre fotos claras */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.7), rgba(11, 11, 12, 0));
  transition: opacity 0.45s;
}
.topo.is-solido {
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--linha);
}
.topo.is-solido::before { opacity: 0; }
.topo__in { position: relative; height: 100%; display: flex; align-items: center; gap: 2rem; }
.topo__logo { margin-right: auto; display: block; line-height: 0; }
.topo__logo img { height: 46px; width: auto; }
.topo__nav { display: flex; align-items: center; gap: 1.9rem; }
.topo__nav a {
  position: relative; text-decoration: none; color: rgba(241, 238, 232, 0.78); font-size: 0.95rem;
  padding-block: 6px; transition: color 0.25s;
}
.topo__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ac);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.topo__nav a:hover, .topo__nav a[aria-current="page"] { color: var(--texto); }
.topo__nav a:hover::after, .topo__nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--texto);
  transition: transform 0.4s var(--ease), opacity 0.2s;
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 979px) {
  .topo__nav, .topo .btn { display: none; }
  .menu-btn { display: block; }
  .topo__logo img { height: 40px; }
}

/* Menu do celular */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: calc(var(--topo-h) + 24px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s;
}
.menu.is-aberto { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.menu__links { display: grid; gap: 0.4rem; }
.menu__links a {
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 300; letter-spacing: -0.02em; text-decoration: none;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu.is-aberto .menu__links a { opacity: 1; transform: none; }
.menu.is-aberto .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-aberto .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-aberto .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-aberto .menu__links a:nth-child(5) { transition-delay: 0.2s; }
.menu.is-aberto .menu__links a:nth-child(6) { transition-delay: 0.25s; }
.menu .btn { align-self: flex-start; }
.menu-fechar-topo { position: relative; z-index: 61; }
body.menu-aberto { overflow: hidden; }
body.menu-aberto .topo { z-index: 65; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-aberto .topo::before { opacity: 0; }

/* ---------- HERO (home): os quatro temas ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; overflow: hidden;
  padding: calc(var(--topo-h) + 2rem) 0 clamp(3rem, 8vh, 6rem);
}
.hero__arte {
  position: absolute; z-index: 0;
  height: min(62vh, 560px); aspect-ratio: 968 / 1087;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  top: calc(50% + var(--topo-h) / 2); translate: 0 -50%;
}
.hero__arte::before {
  /* brilho âmbar bem sutil atrás dos traços */
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(closest-side, rgba(227, 166, 80, 0.13), rgba(227, 166, 80, 0.04) 55%, transparent 75%);
}
.hero__arte img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero__in { position: relative; z-index: 1; }
.hero__texto { max-width: 46rem; }
@media (min-width: 761px) { .hero__texto { max-width: min(46rem, 44vw); } }
.hero h1 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.03; margin-top: 1.4rem; max-width: 17ch; }
.hero__sub { margin-top: 1.6rem; max-width: 40ch; color: var(--suave); font-size: clamp(1.08rem, 1.4vw, 1.25rem); }
.hero__ctas { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 760px) {
  .hero { align-items: end; }
  .hero__arte { height: min(40svh, 78vw); right: auto; left: 50%; top: calc(var(--topo-h) + 2svh); translate: -50% 0; }
  .hero h1 { max-width: 13ch; }
}

/* ---------- Manifesto (texto que acende ao rolar) ---------- */
.manifesto { padding-block: clamp(7rem, 18vh, 12rem); }
.manifesto p {
  font-size: clamp(1.9rem, 4.2vw, 3.6rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.02em;
  max-width: 24ch;
}
.manifesto .p { transition: color 0.3s; }

/* ---------- Capítulos com foto de fundo fixa ---------- */
.cap { position: relative; view-timeline-name: --cap; view-timeline-axis: block; }
.cap__fundo {
  /* a foto começa logo abaixo do topo, para nada importante ficar escondido atrás dele */
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 0;
  padding-top: var(--topo-h);
}
.cap__fundo picture { display: block; height: 100%; }
.cap__fundo img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); transform-origin: 50% 0;
  /* a foto nasce do escuro, sem borda dura na troca de capítulo */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}
.cap__fundo::after {
  content: ""; position: absolute; inset: var(--topo-h) 0 0 0;
  background:
    linear-gradient(to top, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.35) 45%, rgba(11, 11, 12, 0.08) 75%, rgba(11, 11, 12, 0.2) 100%),
    linear-gradient(to right, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0) 60%);
}
.cap__conteudo {
  position: relative; z-index: 1;
  margin-top: -100vh; margin-top: -100lvh;
  padding-top: 50vh; padding-bottom: 18vh;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "texto arte"; align-items: center; gap: 3rem;
}
.cap__texto { width: fit-content; max-width: 100%; }
.cap__titulo { font-size: clamp(3rem, 8.4vw, 8rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 250; text-wrap: balance; }
.cap__texto p { margin-top: 1.2rem; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: #dcd8d0; max-width: 34ch; }
.cap__texto .seta { margin-top: 1.8rem; }

.cap__texto { grid-area: texto; }
/* Ilustração do tema, flutuando sobre a foto */
.cap__arte { grid-area: arte; position: relative; width: min(440px, 34vw); }
.cap__arte::before {
  /* sombra escura e difusa atrás do traço, para ele ler bem sobre qualquer foto */
  content: ""; position: absolute; inset: -22%;
  background: radial-gradient(closest-side, rgba(11, 11, 12, 0.72), rgba(11, 11, 12, 0.4) 55%, transparent 78%);
}
.cap__arte img { position: relative; width: 100%; }
.cap--dir .cap__conteudo { grid-template-columns: auto 1fr; grid-template-areas: "arte texto"; }
.cap--dir .cap__texto { margin-left: auto; text-align: right; }
.cap--dir .cap__texto p { margin-left: auto; }
.cap--dir .cap__fundo::after {
  background:
    linear-gradient(to top, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.35) 45%, rgba(11, 11, 12, 0.1) 70%, rgba(11, 11, 12, 0.45) 100%),
    linear-gradient(to left, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0) 60%);
}
@media (max-width: 760px) {
  .cap__conteudo, .cap--dir .cap__conteudo {
    padding-top: 44vh; padding-bottom: 26vh;
    grid-template-columns: 1fr; grid-template-areas: "texto" "arte"; gap: 3.5rem;
  }
  .cap__arte { width: min(76vw, 340px); justify-self: center; }
  .cap--dir .cap__texto { text-align: left; margin-left: 0; }
  .cap--dir .cap__texto p { margin-left: 0; }
}

/* Variação só com frase (páginas internas) */
.cap--frase .cap__conteudo { display: block; padding-top: 60vh; padding-bottom: 30vh; }
.cap--frase .cap__frase {
  font-size: clamp(2.2rem, 5.4vw, 4.8rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 280; max-width: 16ch;
}

/* ---------- Sobre ---------- */
.secao { padding-block: clamp(5rem, 11vh, 8rem); position: relative; }
.sobre { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.sobre__foto { position: relative; overflow: hidden; background: var(--bg-2); }
.sobre__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.sobre__txt .titulo { margin-bottom: 1.8rem; }
.sobre__txt p { color: var(--suave); max-width: 52ch; }
.sobre__txt p + p { margin-top: 1.1rem; }
.sobre__txt .seta { margin-top: 2.2rem; }
.sobre__assinatura { margin-top: 2.5rem; width: 220px; opacity: 0.9; }
@media (min-width: 900px) { .sobre { grid-template-columns: 5fr 6fr; } }

/* ---------- Como funciona (linha que se desenha) ---------- */
.passos { position: relative; display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: clamp(3rem, 6vw, 5rem); }
.passos__linha { display: none; }
.passos li { position: relative; padding-left: 2.2rem; }
.passos li:not(.passos__linha)::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px; border: 1px solid var(--ac); background: var(--bg);
}
.passos h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 0.7rem; }
.passos p { color: var(--suave); max-width: 32ch; }
@media (min-width: 860px) {
  .passos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding-top: 3rem; }
  .passos__linha {
    display: block; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--linha);
  }
  .passos__linha::after {
    content: ""; position: absolute; inset: 0; background: var(--ac); transform-origin: left; transform: scaleX(1);
  }
  .passos li { padding-left: 0; }
  .passos li:not(.passos__linha)::before { top: -3rem; translate: 0 -0.5px; }
  .passos .passos__linha { position: absolute; padding: 0; }
}

/* ---------- Dúvidas ---------- */
.duvidas { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .duvidas { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.duvidas .selo { margin-bottom: 1.2rem; }
.duvidas .titulo { margin-bottom: 2rem; }
.area { display: grid; gap: 0.9rem; color: var(--suave); }
.area__sede { display: flex; gap: 0.6rem; align-items: center; color: var(--texto); }
.area__sede .ico { color: var(--ac); }
.area__cidades { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area__cidades li { border: 1px solid var(--linha); padding: 0.35rem 0.8rem; font-size: 0.92rem; }

.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 350; transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--ac); transition: transform 0.4s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq summary:hover { color: var(--ac); }
.faq details p { color: var(--suave); padding-bottom: 1.6rem; max-width: 60ch; }

/* ---------- Chamada final ---------- */
.final { position: relative; overflow: hidden; padding-block: clamp(7rem, 18vh, 12rem); text-align: center; }
.final__lua {
  width: clamp(280px, 42vw, 540px); aspect-ratio: 1; margin: 0 auto 3rem;
}
.final__lua img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 86.5%, transparent 90%); mask-image: radial-gradient(circle closest-side, #000 86.5%, transparent 90%);
}
.final h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.final p { color: var(--suave); margin: 1.2rem auto 2.4rem; max-width: 40ch; }
.final__alt { margin-top: 1.4rem; font-size: 0.95rem; color: var(--suave); }
.final__alt a { color: var(--texto); }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: 0.95rem; }
.rodape__in { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .rodape__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .rodape__in { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.rodape__logo { width: 210px; margin-bottom: 1rem; }
.rodape p, .rodape li { color: var(--suave); }
.rodape h2 { font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400; color: var(--texto); margin-bottom: 1.1rem; }
.rodape ul { display: grid; gap: 0.55rem; }
.rodape a { color: var(--suave); text-decoration: none; display: inline-flex; align-items: center; gap: 0.55em; transition: color 0.25s; }
.rodape a:hover { color: var(--texto); }
.rodape .ico { color: var(--ac); }
.rodape__fim {
  border-top: 1px solid var(--linha); padding-block: 1.4rem 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.85rem; color: var(--suave);
}

/* ---------- Botão flutuante ---------- */
.flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ac); color: var(--tinta); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease), background-color 0.2s;
}
.flutuante .ico { width: 28px; height: 28px; }
.flutuante.is-visivel { opacity: 1; transform: none; pointer-events: auto; }
.flutuante:hover { background: var(--ac-2); }
body.menu-aberto .flutuante { opacity: 0; pointer-events: none; }

/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */
.trilha { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.88rem; color: var(--suave); }
.trilha a { color: var(--suave); text-decoration: none; }
.trilha a:hover { color: var(--texto); }
.trilha li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(241, 238, 232, 0.3); }

.intro {
  position: relative; min-height: min(100svh, 980px);
  display: grid; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: calc(var(--topo-h) + 3rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  max-width: var(--max); margin-inline: auto;
  grid-template-columns: 1fr;
}
.intro__arte { position: relative; justify-self: center; width: min(100%, 560px); }
.intro__arte::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(227, 166, 80, 0.12), transparent 70%);
  transform: scale(1.25);
}
.intro__arte img { position: relative; width: 100%; }
.intro__texto h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); margin-block: 1.4rem 1.5rem; max-width: 15ch; }
.intro__texto .btn { margin-top: 2.3rem; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 6fr 5fr; }
  .intro__arte { order: 2; }
}
@media (max-width: 899px) {
  .intro__arte { width: min(78%, 420px); }
}

.ocasioes { display: grid; grid-template-columns: 1fr; gap: 0 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.ocasioes li { border-top: 1px solid var(--linha); padding: 1.5rem 0 1.8rem; }
.ocasioes h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: 0.5rem; }
.ocasioes p { color: var(--suave); max-width: 40ch; }
@media (min-width: 760px) { .ocasioes { grid-template-columns: 1fr 1fr; } }

.bloco-txt { display: grid; gap: 1.5rem; max-width: 60rem; }
.bloco-txt .lead { max-width: 58ch; }

/* Galeria */
.projeto + .projeto { margin-top: clamp(5rem, 10vw, 8rem); }
.projeto__cab { margin-bottom: clamp(2rem, 4vw, 3rem); }
.projeto__cab h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.projeto__meta { margin-top: 0.9rem; color: var(--ac); font-size: 0.95rem; letter-spacing: 0.02em; }
.projeto__cab p:not(.projeto__meta) { margin-top: 1rem; color: var(--suave); max-width: 56ch; }

/* Linhas justificadas: cada foto mantém a proporção (--r = largura/altura) e a linha fecha a largura toda */
.galeria { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; --alt: clamp(140px, 18vw, 260px); }
.galeria li { flex-grow: var(--r, 1.4); flex-basis: calc(var(--r, 1.4) * var(--alt)); aspect-ratio: var(--r, 1.4); max-height: calc(var(--alt) * 1.7); }
.galeria a { display: block; position: relative; overflow: hidden; background: var(--bg-2); cursor: zoom-in; height: 100%; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity 0.4s; }
.galeria a:hover img { transform: scale(1.04); }
.galeria a::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(227, 166, 80, 0); transition: border-color 0.4s;
}
.galeria a:hover::after { border-color: rgba(227, 166, 80, 0.6); }
@media (max-width: 640px) { .galeria { gap: 8px; --alt: 150px; } }

/* Outros trabalhos */
.outros { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 2.5rem; }
.outros a {
  position: relative; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 1.3rem;
  padding: 1.4rem 1.6rem; background: var(--bg-2); border: 1px solid var(--linha); text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s;
}
.outros img { width: 96px; height: 80px; object-fit: contain; transition: transform 0.6s var(--ease); }
.outros span { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 300; }
.outros .ico { color: var(--ac); transition: transform 0.4s var(--ease); }
.outros a:hover { border-color: rgba(227, 166, 80, 0.5); background: var(--bg-3); }
.outros a:hover img { transform: scale(1.06); }
.outros a:hover .ico { transform: translateX(4px); }
@media (min-width: 900px) { .outros { grid-template-columns: repeat(3, 1fr); } .outros a { grid-template-columns: 1fr auto; } .outros img { grid-column: 1 / -1; width: 100%; height: 150px; margin-bottom: 0.4rem; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(8, 8, 9, 0.96); color: var(--texto);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__palco { position: relative; display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lightbox__legenda { text-align: center; color: var(--suave); padding: 12px var(--gutter) 22px; font-size: 0.95rem; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  background: rgba(241, 238, 232, 0.06); border: 1px solid var(--linha); transition: background-color 0.2s, border-color 0.2s;
}
.lightbox button:hover { background: rgba(241, 238, 232, 0.12); border-color: var(--ac); }
.lightbox button .ico { width: 22px; height: 22px; }
.lightbox__fechar { top: 14px; right: 14px; }
.lightbox__ant { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__prox { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__palco { padding: 64px 8px 8px; }
  .lightbox__ant, .lightbox__prox { top: auto; bottom: 8px; translate: none; }
  .lightbox__legenda { padding-bottom: 72px; }
}

/* =========================================================
   MOVIMENTO
   ========================================================= */

/* Entradas (IntersectionObserver adiciona .is-in) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0; transform: translateY(28px);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .rv.is-in { opacity: 1; transform: none; }

  /* Foto do "Sobre": uma cortina escura sobe e revela a foto */
  .js .sobre__foto.rv { opacity: 1; transform: none; }
  .js .sobre__foto.rv::after {
    content: ""; position: absolute; inset: 0; background: var(--bg);
    transform-origin: top; transition: transform 1.4s var(--ease-io);
  }
  .js .sobre__foto.rv img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
  .js .sobre__foto.rv.is-in::after { transform: scaleY(0); }
  .js .sobre__foto.rv.is-in img { transform: none; }

  /* Ilustração da abertura se desenha (home) */
  .hero__arte img { animation: desenha 2.8s var(--ease-io) both 0.15s; }
  .hero__arte::before { animation: aparece 2.4s ease both 0.8s; }
  .hero__texto > * { animation: sobe 1.2s var(--ease) both; }
  .hero__texto > :nth-child(1) { animation-delay: 0.35s; }
  .hero__texto > :nth-child(2) { animation-delay: 0.45s; }
  .hero__texto > :nth-child(3) { animation-delay: 0.6s; }
  .hero__texto > :nth-child(4) { animation-delay: 0.72s; }
  @keyframes sobe { from { opacity: 0; transform: translateY(22px); } }

  /* Ilustração "se desenha" da esquerda para a direita (páginas internas) */
  .intro__arte img { animation: desenha 2.4s var(--ease-io) both 0.2s; }
  .intro__arte::before { animation: aparece 2.4s ease both 0.6s; }
  @keyframes desenha { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes aparece { from { opacity: 0; } }
  .intro__texto > * { animation: sobe 1.1s var(--ease) both; }
  .intro__texto > :nth-child(2) { animation-delay: 0.1s; }
  .intro__texto > :nth-child(3) { animation-delay: 0.2s; }
  .intro__texto > :nth-child(4) { animation-delay: 0.3s; }
}

/* Efeitos ligados à rolagem (Chrome, Edge, Safari recentes). Fora disso, tudo fica parado e legível. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Ilustração sobe e se apaga, texto do topo se despede */
    .hero__arte { animation: arte-rola auto linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes arte-rola { to { transform: translateY(-12vh) scale(1.08); opacity: 0.15; } }
    .hero__in { animation: hero-sai auto linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    @keyframes hero-sai { to { opacity: 0; transform: translateY(-8vh); } }

    /* Manifesto: cada palavra acende quando passa pelo meio da tela */
    .manifesto [data-palavras] { view-timeline-name: --manifesto; }
    .manifesto .p { color: rgba(241, 238, 232, 0.16); animation: acende auto linear both; animation-timeline: --manifesto; }
    @keyframes acende { to { color: var(--texto); } }
    .manifesto .p.ac-p { animation-name: acende-ac; }
    @keyframes acende-ac { to { color: var(--ac); } }

    /* Fundo do capítulo: aproxima devagar enquanto entra */
    .cap__fundo img { animation: aproxima auto linear both; animation-timeline: --cap; animation-range: entry 0% contain 30%; }
    @keyframes aproxima { from { transform: scale(1.18); } to { transform: scale(1); } }
    .cap__fundo::after { animation: escurece auto linear both; animation-timeline: --cap; animation-range: exit -20% exit 60%; }
    @keyframes escurece { to { background-color: rgba(11, 11, 12, 0.6); } }

    /* Ilustração do capítulo: sobe mais devagar que o texto e gira de leve (profundidade) */
    .cap__arte { animation: flutua auto linear both; animation-timeline: view(); }
    @keyframes flutua { from { transform: translateY(16vh) rotate(-3deg); opacity: 0.2; } 35% { opacity: 1; } to { transform: translateY(-14vh) rotate(2deg); } }

    /* Linha do "Como funciona" se desenha */
    .passos__linha::after { animation: risca auto linear both; animation-timeline: view(); animation-range: cover 25% cover 50%; }
    @keyframes risca { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    /* Lua do final */
    .final__lua { animation: lua-final auto linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes lua-final { from { transform: translateY(40px) scale(0.85); opacity: 0; } }
  }
}
