/* =========================================================
   Thalyta Maia — Arquitetura e Interiores
   styles.css — layout, tipografia e paleta
   ========================================================= */

:root {
  --brand: #4a2e21;
  --brand-deep: #241610;
  --cream: #ffffff;
  --cream-2: #ffffff;
  --sand: #ffffff;
  --sand-2: #ffffff;
  --tan: #d8b48f;
  --terra: #a06a49;
  --ink: #3a2a20;
  --muted: lch(40.55% 12.2 63.75);

  --ff-serif: 'Marcellus', Georgia, serif;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(.16, .7, .3, 1);
  --nav-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: var(--cream);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
}

/* ---------- Elementos reutilizados ---------- */
.kicker {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.kicker--tan {
  color: var(--tan);
  letter-spacing: .3em;
}

.kicker--terra {
  color: var(--terra);
}

.section-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: .06em;
  color: var(--cream);
  margin: 14px 0 0;
  line-height: 1.12;
}

.section-title--dark {
  color: var(--ink);
}

.section-title__sep {
  opacity: .42;
  font-weight: 300;
}

.rule-center {
  width: 56px;
  height: 1px;
  background: var(--terra);
  margin: 22px auto 0;
}

.rule-left {
  width: 44px;
  height: 1px;
  background: var(--terra);
  margin: 0 0 20px;
}

.badge {
  display: inline-block;
  background: var(--brand);
  color: var(--cream);
  font-family: var(--ff-serif);
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: .14em;
  padding: 13px 30px;
}

/* ---------- Logo do rodapé (versão escura, sobre o fundo claro) ---------- */
.footer__emblem {
  width: auto;
  height: 28px;
  display: block;
  opacity: .9;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 60px);
  background: transparent;
  transition: background .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease);
}

.nav__logo {
  position: relative;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  color: var(--cream);
  transition: color .45s var(--ease);
}

/* logo oficial (arte horizontal, rasterizada do PDF vetorial em 4x, com transparência).
   58px é a altura mínima pra linha "ARQUITETURA E INTERIORES" — que é só 11% da arte —
   sair com ~7px e ser legível. Sobre a foto do hero a arte é invertida pra clara;
   quando a nav fica sólida, volta ao marrom original e pode encolher. */
.nav__logo img {
  height: 58px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .45s var(--ease), height .45s var(--ease);
}

.nav--solid .nav__logo img {
  height: 48px;
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 38px);
}

.nav__link {
  position: relative;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color .45s var(--ease), opacity .3s var(--ease);
}

/* sublinhado animado (cresce da esquerda) */
.nav__link:not(.nav__link--btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav__link:not(.nav__link--btn):hover::after {
  transform: scaleX(1);
}

.nav__link--btn {
  border: 1px solid currentColor;
  padding: 9px 18px;
  transition: color .45s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}

.nav--solid .nav__link--btn:hover {
  background: var(--brand);
  color: var(--cream);
}

/* nav sólida (aplicada via JS ao rolar) */
.nav--solid {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(74, 46, 33, .10);
  padding-top: 13px;
  padding-bottom: 13px;
}

.nav--solid .nav__logo,
.nav--solid .nav__link {
  color: var(--brand);
}

/* hamburger */
.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cream);
  transition: color .45s var(--ease);
}

.nav--solid .nav__burger {
  color: var(--brand);
}

.burger-box {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
}

.burger-line {
  position: absolute;
  left: 0;
  width: 24px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease);
}

.burger-line:nth-child(1) {
  top: 0;
}

.burger-line:nth-child(2) {
  top: 7px;
}

.burger-line:nth-child(3) {
  top: 14px;
}

/* estado aberto (classe no body) */
body.menu-open .burger-line:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

body.menu-open .burger-line:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger-line:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* ---------- Drawer mobile ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(20, 12, 8, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  width: min(82vw, 340px);
  background: var(--cream);
  border-left: 1px solid rgba(58, 42, 32, .1);
  transform: translateX(106%);
  transition: transform .5s cubic-bezier(.6, .05, .2, 1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  padding: 26px 32px 34px;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 26px;
}

.drawer__links a {
  font-family: var(--ff-serif);
  font-size: 24px;
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid rgba(58, 42, 32, .14);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}

.drawer__links a:last-child {
  border-bottom: none;
}

.drawer__links a:hover {
  color: var(--terra);
  padding-left: 6px;
}

.drawer__contact {
  margin-top: auto;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.9;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--brand-deep);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.5s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
  will-change: opacity, transform;
}

.hero__slide picture,
.hero__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slide-img {
  object-fit: cover;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(30, 19, 13, .52) 0%, rgba(30, 19, 13, .26) 42%, rgba(30, 19, 13, .66) 100%);
}

.hero__content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

/* REUNIÃO: a fonte da marca na capa deve ser fina como a identidade visual real
   da arquiteta — por isso a Cormorant (traço fino), e não a Marcellus das seções. */
.hero__title {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--cream);
  font-size: clamp(40px, 7.4vw, 98px);
  letter-spacing: .16em;
  margin: 26px 0 0;
  line-height: 1;
}

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.hero__rule {
  width: clamp(30px, 7vw, 70px);
  height: 1px;
  background: rgba(246, 241, 233, .5);
  transform-origin: center;
}

.hero__sub-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .46em;
  color: var(--cream);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 74px;
  z-index: 5;
  color: rgba(246, 241, 233, .8);
}

.hero__dots {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero__dot {
  width: 16px;
  height: 2px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(246, 241, 233, .4);
  transition: width .5s var(--ease), background .5s var(--ease);
}

.hero__dot.is-active {
  width: 38px;
  background: var(--cream);
}

/* =========================================================
   ESSÊNCIA
   ========================================================= */
.essencia {
  position: relative;
  background: var(--brand);
  color: #efe6da;
  padding: clamp(84px, 12vh, 150px) clamp(22px, 5vw, 64px);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.essencia__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(38px, 6vw, 90px);
  align-items: center;
  justify-content: center;
}

.essencia__text {
  flex: 1 1 440px;
  min-width: 0;
  max-width: 640px;
}

.essencia__text p {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.9;
  color: rgba(239, 230, 218, .86);
  text-align: justify;
  margin: 0 0 22px;
}

.essencia__text p:last-child {
  margin-bottom: 0;
}

.essencia__text .section-title {
  margin: 16px 0 30px;
}

.essencia__portrait-wrap {
  flex: 1 1 300px;
  max-width: 420px;
}

.portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .34);
}

.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait__caption {
  font-family: var(--ff-serif);
  letter-spacing: .24em;
  font-size: 15px;
  color: #efe6da;
  margin-top: 16px;
}

/* =========================================================
   SERVIÇOS
   ========================================================= */
/* fundo liso, mesma cor da seção Projetos — a faixa lateral de arcos foi removida */
.servicos {
  background: var(--cream-2);
  padding: clamp(80px, 11vh, 140px) clamp(20px, 5vw, 60px);
  scroll-margin-top: var(--nav-h);
}

.servicos__inner {
  max-width: 1220px;
  margin: 0 auto;
}

/* Cada serviço é uma faixa: texto à esquerda, 3 fotos de obra à direita.
   O topo usa a MESMA grade, pra o rótulo "Processos" cair exatamente em cima da
   coluna de fotos — se mudar as colunas aqui, mude nos dois. */
.servicos__topo,
.service {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

/* justify-items: start senão o .badge, virando item de grid, estica pela coluna toda */
.servicos__topo {
  align-items: end;
  justify-items: start;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.servicos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 4.4vw, 60px);
}

.service {
  transition: transform .5s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
}

.service__text {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.service__body {
  flex: 1;
  min-width: 0;
}

/* REGRA DA REUNIÃO: o número tem que ser do MESMO tamanho, MESMA cor e MESMA fonte
   do título do serviço. Por isso os dois seletores compartilham o mesmo bloco —
   mexeu num, mexeu nos dois. Não separar.
   Peso 400: a Marcellus só existe nesse peso — qualquer valor maior vira negrito
   sintético do navegador, grosso demais para a identidade fina do site. */
.service__num,
.service__name {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.service__num {
  flex: none;
}

.service__scope {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 9px 0 13px;
}

.service__desc {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
  margin: 0;
}

/* PROCESSOS — fotos de obra em andamento, propositalmente sem identificar o projeto */
.processos__title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 6px;
}

.processos__sub {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--muted);
  margin: 0;
}

/* a faixa de cada serviço: 3 quadrados. O 1/1 é o corte mais neutro para fotos de
   proporções variadas — o 3/4 anterior decepava as horizontais. */
.service__processos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(7px, .8vw, 11px);
}

.service__processos figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand-2);
}

.service__processos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.service__processos figure:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {

  .servicos__topo,
  .service {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PROJETOS
   ========================================================= */
.projetos {
  position: relative;
  background: var(--cream-2);
  padding: clamp(80px, 11vh, 140px) clamp(20px, 5vw, 60px);
  scroll-margin-top: var(--nav-h);
}

.projetos__inner {
  max-width: 1260px;
  margin: 0 auto;
}

.projetos__head {
  text-align: center;
  margin-bottom: clamp(28px, 3.6vw, 40px);
}

.projetos__head .section-title {
  margin: 14px 0 0;
  line-height: 1.15;
  letter-spacing: .07em;
}

/* ---------- grupos ---------- */
.projetos__grupo {
  margin-top: clamp(48px, 7vh, 84px);
}

.projetos__grupo:first-of-type {
  margin-top: 0;
}

/* títulos de grupo do portfólio — são os alvos das âncoras do menu */
.projetos__group-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.projetos__group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--terra);
  opacity: .45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .25s;
}

.projetos__group-title.is-in::after {
  transform: scaleX(1);
}

/* grid de capas: 3 colunas em 1260px, 2 no tablet, 1 no celular — o auto-fill
   resolve sozinho, sem media query */
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

/* texto de pendência dentro do projeto (some quando a descrição real chegar) */
.projetos__empty {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .75;
  margin: 0;
}

/* ---------- o card ----------
   REUNIÃO: nada de feed infinito. Cada projeto nasce FECHADO — o <details> obriga o
   clique na capa para abrir o texto e as fotos internas. Nativo, sem JS. */
.project__cover {
  display: block;
  cursor: pointer;
  list-style: none;
}

.project__cover::-webkit-details-marker {
  display: none;
}

/* num site de arquitetura a FOTO é o produto: capa grande, não miniatura */
.project__capa {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand-2);
}

.project__capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.project__cover:hover .project__capa img {
  transform: scale(1.05);
}

.project__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px 0;
}

.project__name {
  margin: 0;
  min-width: 0;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .4s var(--ease), font-size .4s var(--ease);
}

.project__cover:hover .project__name {
  color: var(--terra);
}

/* + que vira − : o sinal de que a capa abre */
.project__toggle {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(160, 106, 73, .5);
  border-radius: 50%;
}

.project__toggle::before,
.project__toggle::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 1px;
  background: var(--terra);
}

.project__toggle::after {
  transform: rotate(90deg);
  transition: transform .35s var(--ease);
}

.project[open] .project__toggle::after {
  transform: rotate(0);
}

/* ---------- MODO FOCO ----------
   Ao abrir, o projeto toma a linha inteira e os irmãos da categoria recolhem. Sem o
   :not([open]) { display: none } o grid deixaria células vazias na linha de onde o card
   saiu — que é exatamente o "espaço vazio" que motivou refazer esta seção. */
.project[open] {
  grid-column: 1 / -1;
}

.projetos__grid:has(.project[open]) .project:not([open]) {
  display: none;
}

/* ---------- CATEGORIA RECOLHIDA ----------
   Feedback pós-reunião: cada categoria mostra UMA linha (3 capas) e o resto só
   aparece no botão "Ver todos os projetos". A classe is-collapsed é posta pelo JS —
   sem JS nada some e o site continua inteiro navegável. */
.projetos__grupo.is-collapsed .projetos__grid .project:nth-child(n+4) {
  display: none;
}

.projetos__more-wrap {
  margin-top: clamp(22px, 3vw, 34px);
  text-align: center;
}

/* com um projeto aberto (modo foco) o botão sai de cena junto com os irmãos */
.projetos__grupo:has(.project[open]) .projetos__more-wrap {
  display: none;
}

.projetos__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid rgba(74, 46, 33, .4);
  color: var(--brand);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.projetos__more:hover {
  background: var(--brand);
  color: var(--cream);
  transform: translateY(-2px);
}

/* aberto, a capa vira faixa panorâmica — senão a foto de 4/3 viraria 1260×945 */
.project[open] .project__capa {
  aspect-ratio: 21/6;
}

.project[open] .project__name {
  font-size: clamp(22px, 2.6vw, 34px);
}

/* painel aberto: texto à esquerda, imagens à direita.
   O .project__text vem antes no HTML, então é flex-direction: row mesmo — NÃO usar
   row-reverse aqui (jogava as imagens pra esquerda e quebrava a regra da reunião). */
.project__panel {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3.2vw, 50px);
  align-items: stretch;
  padding: clamp(20px, 2.6vw, 34px) 0 clamp(10px, 1.4vw, 18px);
}

/* ---------- palco + miniaturas ----------
   Todas as fotos ficam no painel, mas ele tem altura fixa: a miniatura troca o
   palco, e clicar no palco abre o lightbox na foto que está em destaque. */
.project__media {
  flex: 1.5 1 440px;
  min-width: 0;
}

.project__palco {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand-2);
  margin: 0 0 12px;
  cursor: zoom-in;
}

/* duas camadas empilhadas: a troca é crossfade, nunca passa pelo fundo vazio */
.project__palco img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .9s ease;
}

.project__palco img.is-oculta {
  opacity: 0;
}

.project__palco:hover img {
  transform: scale(1.04);
}

.project__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--terra) var(--sand-2);
}

.project__thumbs::-webkit-scrollbar {
  height: 6px;
}

.project__thumbs::-webkit-scrollbar-track {
  background: var(--sand-2);
  border-radius: 99px;
}

.project__thumbs::-webkit-scrollbar-thumb {
  background: var(--terra);
  border-radius: 99px;
}

.project__thumb {
  flex: 0 0 84px;
  height: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity .35s ease;
}

.project__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__thumb:hover,
.project__thumb:focus-visible,
.project__thumb.is-ativa {
  opacity: 1;
  outline: 2px solid var(--terra);
  outline-offset: -2px;
}

.project__conta {
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 8px 0 0;
}

.project__text {
  flex: 1 1 280px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* o kicker padrão (12px) sumia ao lado da descrição do projeto */
.project__text .kicker {
  font-size: 14px;
  letter-spacing: .26em;
}

.project__text p {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: normal;
  color: var(--ink);
  max-width: 58ch;
  margin: 0;
  text-wrap: pretty;
}

/* descricao com mais de um paragrafo (margin: 0 acima colava um no outro) */
.project__text p + p {
  margin-top: .95em;
}

/* =========================================================
   CONTATO
   ========================================================= */
/* fundo claro, igual ao da seção Projetos. Três blocos distribuídos na largura do
   container de 1260px (chamada · dados · botões) — sem o vazio à direita que a
   coluna única deixava. No mobile os blocos empilham na ordem natural. */
.contato {
  background: var(--cream-2);
  color: var(--ink);
  scroll-margin-top: var(--nav-h);
  border-top: 1px solid rgba(160, 106, 73, .22);
  padding: clamp(30px, 3.2vw, 44px) clamp(20px, 5vw, 60px);
}

.contato__inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 64px);
}

.contato__text {
  flex: 1 1 320px;
  max-width: 480px;
}

/* menor que o padrão: em 56px o título quebrava em duas linhas e esticava a seção */
.contato .section-title {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
}

.contato__lead {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 400px;
}

.contato__details {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 13.5px;
  letter-spacing: .03em;
  color: var(--ink);
}

.contato__row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: color .3s var(--ease);
}

a.contato__row:hover {
  color: var(--terra);
}

/* --muted, e não --terra: em 11px sobre o fundo claro o terra dá 3.75:1 e reprova no
   WCAG AA (mínimo 4.5:1). O muted dá 5.26:1 e ainda mantém o label secundário ao valor. */
.contato__label {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  min-width: 78px;
  text-align: left;
}

/* botões empilhados na mesma largura, fechando a linha à direita */
.contato__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 216px;
}

.contato__actions .btn {
  justify-content: center;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 26px;
  text-decoration: none;
  transition: transform .3s var(--ease), color .3s var(--ease);
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

.btn svg {
  transition: transform .35s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px) scale(1.05);
}

.btn:hover {
  transform: translateY(-2px);
}

/* invertidos: os botões vivem em fundo claro agora */
.btn--solid {
  background: var(--brand);
  color: var(--cream);
}

.btn--outline {
  border: 1px solid rgba(74, 46, 33, .4);
  color: var(--brand);
}

/* preenchimento animado no hover (fill da esquerda) */
.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.btn--outline:hover {
  color: var(--cream);
}

.btn--outline:hover::before {
  transform: scaleX(1);
}

/* =========================================================
   RODAPÉ (dentro do #contato) + flutuantes
   ========================================================= */
/* era uma <footer> separada: mesmo fundo, mesma borda, dois blocos. Virou o rodapé
   da própria seção de contato — uma faixa só, separada por um filete interno. */
.contato__bottom {
  max-width: 1260px;
  margin: clamp(24px, 2.6vw, 34px) auto 0;
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid rgba(160, 106, 73, .18);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: .14em;
}

/* REUNIÃO: a "finalização" leva barra de navegação junto da chamada de contato —
   quem termina de ver qualquer portfólio encontra os atalhos sem voltar ao topo. */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.footer__nav a {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .3s var(--ease);
}

.footer__nav a:hover {
  color: var(--terra);
}

/* WhatsApp flutuante: glifo oficial sobre gradiente do marrom da marca, sombra em
   duas camadas + brilho interno. No desktop o círculo expande em pílula com rótulo.
   O anel de "aceno" periódico vive em animations.css. */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(150deg, #5f3e2c 0%, var(--brand) 55%, #33200f 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 233, .16),
    0 6px 16px rgba(28, 18, 12, .30),
    0 18px 40px rgba(28, 18, 12, .22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 233, .16),
    0 10px 22px rgba(28, 18, 12, .34),
    0 24px 48px rgba(28, 18, 12, .26);
}

.wa-float__icon {
  flex: none;
}

.wa-float__label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--cream);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: max-width .55s var(--ease), opacity .35s var(--ease), margin-left .55s var(--ease);
}

/* o rótulo só expande onde existe hover de verdade — no toque continua um
   círculo que abre o chat direto */
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-float__label {
    max-width: 220px;
    opacity: 1;
    margin-left: 11px;
  }
}

.to-top {
  position: fixed;
  left: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(74, 46, 33, .9);
  color: var(--cream);
  border: 1px solid rgba(239, 230, 218, .2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--brand);
  transform: translateY(-3px);
}

/* barra de progresso de scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--terra), var(--tan));
  transition: width .1s linear;
}

/* =========================================================
   Responsivo
   ========================================================= */
/* o menu completo (logo + 5 links) precisa de ~1180px; abaixo disso os itens eram
   cortados nas bordas — por isso o hambúrguer entra bem antes dos 860px originais */
@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }

  .nav__logo img {
    height: 44px;
  }
}

/* faixa intermediária: links levemente comprimidos para folgar sem ativar o burger */
@media (min-width: 1101px) and (max-width: 1360px) {
  .nav__link {
    font-size: 11px;
    letter-spacing: .15em;
  }

  .nav__links {
    gap: 18px;
  }
}

@media (max-width: 400px) {
  .nav__logo img {
    height: 40px;
  }
}

@media (max-width: 620px) {
  .essencia__text p {
    text-align: left;
  }

  .hero__subtitle {
    gap: 12px;
  }
}

/* =========================================================
   Quadros clicáveis (afordância de "ampliar")
   ========================================================= */
.project__palco {
  cursor: zoom-in;
}

.project__palco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(36, 22, 16, 0);
  transition: background .4s var(--ease);
  pointer-events: none;
}

.project__palco:hover::before,
.project__palco:focus-visible::before {
  background: rgba(36, 22, 16, .30);
}

.project__palco::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 233, .85);
  background: rgba(36, 22, 16, .25) center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f1e9' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.4-3.4M11 8v6M8 11h6'/%3E%3C/svg%3E");
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}

.project__palco:hover::after,
.project__palco:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================================================
   LIGHTBOX / GALERIA
   ========================================================= */
body.lb-lock {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  background: rgba(20, 12, 8, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .45s var(--ease);
}

.lightbox__stage {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__img {
  /* nunca amplia além do tamanho nativo → sempre nítida */
  width: auto;
  height: auto;
  max-width: min(92vw, 1600px);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  background: var(--brand-deep);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__img.is-swapping {
  opacity: 0;
  transform: scale(.98);
}

.lightbox__cap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.lightbox__title {
  font-family: var(--ff-serif);
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
}

.lightbox__count {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--tan);
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 241, 233, .08);
  color: var(--cream);
  border: 1px solid rgba(246, 241, 233, .28);
  cursor: pointer;
  border-radius: 50%;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}

.lightbox__btn:hover {
  background: rgba(246, 241, 233, .2);
  border-color: rgba(246, 241, 233, .6);
}

.lightbox__close {
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  width: 50px;
  height: 50px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox__nav--prev {
  left: clamp(10px, 3vw, 34px);
}

.lightbox__nav--next {
  right: clamp(10px, 3vw, 34px);
}

@media (max-width: 620px) {
  .lightbox__nav {
    width: 46px;
    height: 46px;
  }

  .lightbox__img {
    max-height: 74vh;
  }
}

/* =========================================================
   ASSINATURA EM ARCO — retrato (Essência)
   ========================================================= */
.portrait--arch {
  aspect-ratio: 4/5;
  border-radius: 1000px 1000px 6px 6px;
}

.portrait--arch .portrait__img {
  object-position: center 22%;
}


/* =========================================================
   Nitidez durante animações de escala
   ========================================================= */
.hero__slide,
.portrait__img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  image-rendering: -webkit-optimize-contrast;
}


/* =========================================================
   ANTES / DEPOIS
   Duas fotos sobrepostas + <input type="range">. O range nativo já traz
   arrasto, toque e teclado (setas, Home, End) — o JS só copia o valor
   para --p, que o CSS não consegue ler sozinho.
   ========================================================= */
.ad {
  --p: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  overflow: hidden;
  background: var(--sand);
}

.ad img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad__depois {
  clip-path: inset(0 0 0 var(--p));
}

.ad__tag {
  position: absolute;
  bottom: 12px;
  z-index: 1;
  padding: 5px 12px;
  background: rgba(36, 22, 16, .55);
  color: var(--cream);
  font-family: var(--ff-sans);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}

.ad__tag--antes {
  left: 12px;
}

.ad__tag--depois {
  right: 12px;
}

.ad__range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
}

.ad__range::-webkit-slider-runnable-track {
  background: transparent;
}

.ad__range::-moz-range-track {
  background: transparent;
}

/* a alça É a linha divisória: mais alta que a moldura e cortada pelo overflow */
.ad__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3px;
  height: 100vh;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(36, 22, 16, .4);
  cursor: ew-resize;
}

.ad__range::-moz-range-thumb {
  width: 3px;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(36, 22, 16, .4);
  cursor: ew-resize;
}