/* ===========================================================
   Paulo Vasques — Studio de Arquitetura e Urbanismo
   Paleta e tipografia herdadas do projeto do Claude Design.
   =========================================================== */

:root {
  --bone:      #fbf9ee;   /* fundo claro  */
  --bone-2:    #f2eee0;   /* fundo claro alternativo */
  --ink:       #363435;   /* escuro médio */
  --ink-deep:  #232122;   /* escuro profundo */
  --gold:      #d7cb75;   /* dourado sobre escuro */
  --gold-dark: #ab9d70;   /* dourado sobre claro */
  --ivory:     #fffbd6;   /* texto sobre escuro */
  --mute-d:    #b8b3a3;   /* texto secundário sobre escuro */
  --mute-l:    #5a5758;   /* texto secundário sobre claro */
  --line-d:    rgba(215, 203, 117, 0.22);
  --line-l:    #ddd6be;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 5vw, 48px);
  --gap: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* `clip` em vez de `hidden`: contém o estouro lateral sem transformar o
   elemento num contêiner de rolagem — se virasse, o evento `scroll` deixaria
   de chegar em `window` e a nav fixa, o parallax e a linha do processo parariam. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0 0 20px; }

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

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 200; top: 12px; left: 12px;
  padding: 12px 20px; background: var(--ink-deep); color: var(--ivory);
}

.wrap { max-width: 1280px; margin: 0 auto; }

/* --- rótulos de seção ------------------------------------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow--gold { color: var(--gold); }

/* --- botões ------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--gold); color: var(--ink-deep); }
.btn--gold:hover { background: var(--ivory); }
.btn--ghost { border-color: rgba(255, 251, 214, 0.45); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark  { background: var(--ink); color: var(--ivory); align-self: flex-start; }
.btn--dark:hover { background: var(--gold-dark); color: var(--ink-deep); }

/* ═══════════════════════ NAV ═══════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease),
              box-shadow .4s var(--ease);
}
.nav.is-stuck {
  background: rgba(35, 33, 34, 0.93);
  backdrop-filter: blur(8px);
  padding: 12px var(--pad);
  box-shadow: 0 1px 0 var(--line-d);
}

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand,
.nav__menu a,
.nav__toggle {
  animation: navIn .7s var(--ease) both;
}
.nav__menu a:nth-child(1) { animation-delay: .06s; }
.nav__menu a:nth-child(2) { animation-delay: .1s; }
.nav__menu a:nth-child(3) { animation-delay: .14s; }
.nav__menu a:nth-child(4) { animation-delay: .18s; }
.nav__menu a:nth-child(5) { animation-delay: .22s; }
.nav__toggle { animation-delay: .12s; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }
.nav__icone {
  height: 40px; width: auto; flex: none;
  transition: transform .5s var(--ease);
}
.nav__brand:hover .nav__icone { transform: rotate(-6deg) scale(1.06); }
.nav__wordmark {
  height: 30px; width: auto;
  transition: opacity .3s var(--ease);
}
.nav__brand:hover .nav__wordmark { opacity: .85; }

.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__menu a {
  font-size: 13px; letter-spacing: 0.04em; color: var(--ivory);
  position: relative; padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__menu a:not(.nav__cta):hover { color: var(--gold); }
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
/* Afastado do último link e com um filete separando, para ler como ação
   e não como mais um item de menu.
   O seletor precisa ser `.nav__menu .nav__cta` (0,2,0) e não `.nav__cta`
   (0,1,0): a regra `.nav__menu a { padding: 4px 0 }` acima tem peso (0,1,1)
   e estava anulando o padding horizontal — o texto encostava na borda. */
.nav__menu .nav__cta {
  margin-left: 12px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 251, 214, 0.5);
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.nav__cta::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  width: 1px; height: 20px; margin-top: -10px;
  background: rgba(255, 251, 214, 0.2);
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; color: var(--ivory);
}
.nav__bars { display: block; width: 26px; }
.nav__bars i {
  display: block; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__bars i + i { margin-top: 7px; }
.nav.is-open .nav__bars i:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__bars i:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--pad) 180px;
  background: var(--ink-deep);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -8% 0 0; will-change: transform; }
.hero__bg img {
  width: 100%; height: 116%; object-fit: cover;
  animation: heroMediaIn 1.35s var(--ease) both;
}
@keyframes heroMediaIn { from { opacity: .82; transform: scale(1.025); } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(35,33,34,0.62) 0%, rgba(35,33,34,0.28) 28%,
    rgba(35,33,34,0.58) 66%, rgba(35,33,34,0.95) 100%);
}
/* leve granulado, para as fotos antigas não parecerem "limpas demais" */
.hero__grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 3px 3px;
}

.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.hero__eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 26px;
}
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(52px, 12vw, 152px);
  line-height: 0.92; letter-spacing: 0.01em;
  color: var(--ivory);
  text-shadow: 0 6px 44px rgba(0,0,0,0.45);
  margin: 0;
}
.hero__title span { display: block; }
.hero__lede {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55; color: #ece7d0;
  max-width: 560px; margin: 30px auto 34px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.statsbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0;
  background: rgba(35, 33, 34, 0.7);
  border-top: 1px solid var(--line-d);
  backdrop-filter: blur(6px);
}
.statsbar__item {
  padding: 20px clamp(14px, 2vw, 28px);
  border-right: 1px solid rgba(215, 203, 117, 0.15);
}
.statsbar__item:last-child { border-right: 0; }
.statsbar dt {
  font-family: var(--serif); font-size: clamp(17px, 2vw, 26px);
  color: var(--gold); font-weight: 600; line-height: 1.1;
}
.statsbar dd {
  margin: 6px 0 0; font-size: 10px; letter-spacing: 0.09em;
  text-transform: uppercase; color: #ccc6b0;
}

/* ═══════════════════════ SOBRE ═══════════════════════ */
.sobre { padding: var(--gap) var(--pad); background: var(--bone); }
.sobre__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.sobre__portrait { margin: 0; position: relative; }
.sobre__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
  border-radius: 2px;
  filter: grayscale(1) contrast(1.04);
  transition: filter .8s var(--ease);
}
.sobre__portrait:hover img { filter: grayscale(0) contrast(1); }
.sobre__portrait figcaption {
  margin-top: 12px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8a8687;
}
.sobre__body h2 {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.15; margin: 0 0 26px;
}
.sobre__body h2 em { font-style: italic; color: var(--gold-dark); }
.sobre__body p { color: var(--mute-l); line-height: 1.8; max-width: 62ch; }

.facts {
  list-style: none; margin: 34px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line-l);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px;
}
.facts strong {
  display: block; font-family: var(--serif); font-size: 28px;
  color: var(--gold-dark); font-weight: 600;
}
.facts span { font-size: 12px; color: #7a7677; line-height: 1.45; display: block; margin-top: 4px; }

/* ═══════════════════════ SERVIÇOS ═══════════════════════ */
.servicos { padding: var(--gap) var(--pad); background: var(--ink); color: var(--ivory); }

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; flex-wrap: wrap; margin-bottom: 56px;
}
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); }
.sec-head__note {
  font-size: 15px; line-height: 1.7; max-width: 46ch; margin: 0;
  color: var(--mute-d);
}
.servicos .sec-head h2 { color: var(--ivory); }

.svc { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.svc__row {
  display: grid; grid-template-columns: 60px 1fr 1.5fr; gap: clamp(20px, 4vw, 48px);
  padding: 32px 0; border-top: 1px solid var(--line-d);
  align-items: baseline;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.svc__row:last-child { border-bottom: 1px solid var(--line-d); }
.svc__row::before {
  counter-increment: svc; content: counter(svc, decimal-leading-zero);
  font-family: var(--serif); font-size: 14px; color: var(--gold); opacity: .65;
}
.svc__row:hover { background: rgba(215, 203, 117, 0.05); transform: translateX(6px); }
.svc__row h3 { font-size: clamp(20px, 2.4vw, 26px); color: var(--ivory); }
.svc__row p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--mute-d); }

/* ═══════════════════════ CANTEIRO ═══════════════════════ */
.canteiro { position: relative; background: var(--ink-deep); overflow: hidden; }
.canteiro video {
  width: 100%; height: clamp(360px, 62vh, 640px); object-fit: cover;
}
.canteiro__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,33,34,0.55) 0%,
              rgba(35,33,34,0.2) 34%, rgba(35,33,34,0.9) 100%);
}
.canteiro__text {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(28px, 5vw, 60px) var(--pad);
  max-width: 720px;
}
.canteiro__text h2 { font-size: clamp(24px, 3.4vw, 42px); color: var(--ivory); margin: 0 0 16px; line-height: 1.2; }
.canteiro__text p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--mute-d); }

/* ═══════════════════════ PROCESSO ═══════════════════════ */
.processo {
  padding: var(--gap) var(--pad); background: var(--ink-deep);
  color: var(--ivory); text-align: center;
}
.processo h2 { font-size: clamp(28px, 4vw, 50px); margin: 0 0 56px; color: var(--ivory); }

/* --- linha do tempo, copiada do protótipo antigo -------------------------- */
.timeline { position: relative; }
.timeline-line {
  position: absolute;
  top: -0.4rem;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: visible;
}
#timeline-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 0.2s linear;
}

.timeline-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  /* a linha SVG ocupa ~120px a partir do topo; os steps começam abaixo dela */
  padding-top: 8.5rem;
  text-align: left;
}
/* Como no protótipo: as etapas sobem uma após a outra, com 0,09s de intervalo.
   O peso (0,2,0)/(0,3,0) garante que estas regras vençam o `.reveal` genérico,
   que usa um `--d` em segundos — aqui o `--d` é um índice de 0 a 4. */
.tstep { text-align: left; }
.tstep.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.09s);
}
.tstep.reveal.is-in { opacity: 1; transform: none; }
.tnum {
  display: block;
  font-family: var(--mono);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.tstep h3 { font-size: 1.15rem; color: var(--ivory); margin: 0 0 0.5rem; }
.tstep p { color: var(--mute-d); font-size: 0.88rem; line-height: 1.65; margin: 0; }

/* ═══════════════════════ PROJETOS ═══════════════════════ */
.projetos { padding: var(--gap) var(--pad); background: var(--bone); }
.projetos .sec-head { margin-bottom: 36px; }

.rail {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-l);
}
.rail__btn {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  padding: 9px 18px; border-radius: 2px; cursor: pointer;
  background: transparent; color: #7a7677;
  border: 1px solid var(--line-l);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.rail__btn:hover { border-color: var(--gold-dark); color: var(--ink); }
.rail__btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.rail__count {
  margin: 16px 0 30px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a8687;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
}

.card {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--ink-deep);
  overflow: hidden; border-radius: 2px; cursor: pointer;
  aspect-ratio: 4 / 3;
  font-family: var(--sans); text-align: left; color: var(--ivory);
  animation: cardIn .5s var(--ease) both;
  animation-delay: var(--i, 0s);
}
.card--wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.card:hover img, .card:focus-visible img { transform: scale(1.06); }

.card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,33,34,0) 38%, rgba(35,33,34,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover .card__veil, .card:focus-visible .card__veil { opacity: 1; }
.card__veil b {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  line-height: 1.25; display: block;
  transform: translateY(10px); transition: transform .45s var(--ease) .04s;
}
.card:hover .card__veil b, .card:focus-visible .card__veil b { transform: none; }
.card__veil small {
  font-size: 11px; letter-spacing: 0.08em; color: var(--mute-d);
  margin-top: 7px; display: block;
  transform: translateY(10px); transition: transform .45s var(--ease) .1s;
}
.card:hover .card__veil small, .card:focus-visible .card__veil small { transform: none; }

/* ano sempre visível, canto superior — o acervo é cronológico por essência */
.card__year {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.06em;
  color: var(--ivory); padding: 4px 10px;
  background: rgba(35, 33, 34, 0.6); backdrop-filter: blur(3px);
  border-left: 2px solid var(--gold);
}
.card__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); padding: 5px 9px;
  border: 1px solid rgba(215, 203, 117, 0.5);
  background: rgba(35, 33, 34, 0.55); backdrop-filter: blur(3px);
}

/* ═══════════════════════ ATUAÇÃO ═══════════════════════ */
.atuacao { padding: var(--gap) var(--pad); background: var(--ink); color: var(--ivory); }
.atuacao__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.atuacao h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.2; margin: 0 0 24px; color: var(--ivory); }
.atuacao p { color: var(--mute-d); line-height: 1.8; margin: 0; }

.mapa { list-style: none; margin: 0; padding: 0; }
.mapa li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 0; border-top: 1px solid var(--line-d);
  transition: transform .4s var(--ease);
}
.mapa li:last-child { border-bottom: 1px solid var(--line-d); }
.mapa li:hover { transform: translateX(6px); }
.mapa b { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); color: var(--gold); font-weight: 600; }
.mapa span { font-size: 13px; letter-spacing: 0.04em; color: var(--mute-d); }
.mapa i { font-style: normal; color: var(--gold); opacity: .5; margin: 0 4px; }

/* ═══════════════════════ PENSAMENTO ═══════════════════════ */
.pensamento {
  padding: var(--gap) var(--pad);
  background: var(--ink-deep); color: var(--ivory); text-align: center;
}
.pensamento__lead p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.4vw, 40px); line-height: 1.35;
  color: var(--ivory); max-width: 20ch; margin: 0 auto 48px;
}
/* --- A prancheta: a planta se desenha sozinha ao entrar em tela ---- */
.prancheta {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
  max-width: 1120px; margin: 0 auto;
  text-align: left;
}
.prancheta__board {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line-d);
  background:
    repeating-linear-gradient(0deg,   transparent 0 27px, rgba(215,203,117,0.055) 27px 28px),
    repeating-linear-gradient(90deg,  transparent 0 27px, rgba(215,203,117,0.055) 27px 28px),
    rgba(255, 251, 214, 0.015);
}
.planta { width: 100%; height: auto; display: block; }
.planta text {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  fill: var(--mute-d); text-anchor: middle;
}

/* etapa 1 — o terreno do sonho */
.lote rect {
  fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 6 8;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.st1 .lote rect { opacity: 0.45; }

/* etapa 2 — cômodos soltos, sem paredes */
.frag rect { fill: none; stroke: var(--mute-d); stroke-width: 1; stroke-dasharray: 5 7; }
.frag { opacity: 0; transition: opacity 0.9s var(--ease); }
.st2 .frag { opacity: 1; }
.st2 .frag:nth-child(2) { transition-delay: 0.25s; }
.st2 .frag:nth-child(3) { transition-delay: 0.5s; }
.st2 .frag:nth-child(4) { transition-delay: 0.75s; }
.frags { transition: opacity 0.7s var(--ease); }
.st5 .frags { opacity: 0; }

/* etapas 3 e 4 — anotações a lápis */
.nota {
  font-family: var(--serif) !important; font-style: italic;
  font-size: 22px !important; letter-spacing: 0 !important;
  fill: var(--gold) !important;
  opacity: 0; transition: opacity 0.8s var(--ease);
}
.st3 .nota--juntar { opacity: 1; }
.st4 .nota--juntar { opacity: 0; }
.st4 .nota--paredes { opacity: 1; }
.st5 .nota--paredes { opacity: 0; }

/* etapa 5 — o arquiteto traça as paredes */
/* O comprimento real de cada parede é medido no main.js
   (getTotalLength, como na linha do processo) — o CSS só
   define o traço e o ritmo da transição. */
.plan .w {
  fill: none; stroke: var(--ivory); stroke-width: 6; stroke-linecap: square;
  visibility: hidden;
  transition: stroke-dashoffset 0.9s var(--ease);
}
.plan .w:nth-of-type(2)  { transition-delay: 0.12s; }
.plan .w:nth-of-type(3)  { transition-delay: 0.24s; }
.plan .w:nth-of-type(4)  { transition-delay: 0.3s; }
.plan .w:nth-of-type(5)  { transition-delay: 0.42s; }
.plan .w:nth-of-type(6)  { transition-delay: 0.6s; }
.plan .w:nth-of-type(7)  { transition-delay: 0.68s; }
.plan .w:nth-of-type(8)  { transition-delay: 0.8s; }
.plan .w:nth-of-type(9)  { transition-delay: 0.88s; }
.plan .w:nth-of-type(10) { transition-delay: 1.0s; }
.plan .w:nth-of-type(11) { transition-delay: 1.08s; }
.plan .w:nth-of-type(12) { transition-delay: 1.16s; }
.plan .porta {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  opacity: 0; transition: opacity 0.7s var(--ease) 1.4s;
}
.st5 .plan .porta { opacity: 0.9; }
.rotulos text { fill: var(--ivory); opacity: 0; transition: opacity 0.8s var(--ease) 1.6s; }
.st5 .rotulos text { opacity: 0.9; }
.rotulo--mini { font-size: 10px !important; }

/* etapa 6 — projeto pronto: norte */
.norte { opacity: 0; transition: opacity 0.8s var(--ease) 0.2s; }
.norte circle { fill: none; stroke: var(--line-d); stroke-width: 1; }
.norte path { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.norte text { font-size: 10px; }
.st6 .norte { opacity: 0.9; }

/* etapa 7 — durante a obra: nuvem de revisão */
.rev { opacity: 0; transition: opacity 0.9s var(--ease) 0.2s; }
.rev .nuvem { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.rev .selo { fill: var(--ink-deep); stroke: var(--gold); stroke-width: 1; }
.rev .selo-txt { fill: var(--gold); font-size: 11px; }
.st7 .rev { opacity: 1; }

/* carimbo — selo técnico da prancheta */
.carimbo {
  display: grid; grid-template-columns: 1.4fr 1.2fr 0.7fr 0.7fr;
  margin-top: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-d);
}
.carimbo > div { padding: 10px 14px; }
.carimbo > div + div { border-left: 1px solid var(--line-d); }
.carimbo span {
  display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute-d);
  margin-bottom: 4px;
}
.carimbo b {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--ivory); letter-spacing: 0.04em; white-space: nowrap;
}
.carimbo em { font-style: normal; }
.carimbo .rev02 { display: none; color: var(--gold); }
.prancheta__board.st7 .carimbo .rev01 { text-decoration: line-through; color: var(--mute-d); }
.prancheta__board.st7 .carimbo .rev02 { display: inline; margin-left: 6px; }

/* a fala — o texto fica parado; o desenho acompanha */
.passo + .passo { margin-top: 22px; }
.passo p { color: var(--mute-d); font-size: 16px; line-height: 1.8; margin: 0; }
.passo blockquote {
  margin: 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px); line-height: 1.5;
  color: var(--gold);
}
.passo--kicker p {
  color: var(--ivory); font-size: 17px;
  padding-top: 26px; border-top: 1px solid var(--line-d);
}

/* folha 02 — o arquiteto */
.pensamento__marcos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 3vw, 32px);
  margin: clamp(56px, 8vw, 90px) auto 0;
  max-width: 1100px;
}
.pensamento__foto {
  flex: 1 1 300px; max-width: 360px; margin: 0;
  padding: clamp(10px, 1.6vw, 16px);
  border: 1px solid var(--line-d);
}
.pensamento__foto img { display: block; width: 100%; height: auto; }
.pensamento__foto figcaption {
  margin-top: 14px; padding: 0 4px 4px;
  font-size: 14px; color: var(--mute-d); text-align: left;
}
.pensamento__foto figcaption span {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .prancheta { display: block; }
  .planta { max-height: 52vh; margin: 0 auto; }
  .carimbo { display: none; }
  .prancheta__fala { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .prancheta__board * { transition: none !important; }
}

/* ═══════════════════════ FRASES ═══════════════════════ */
.frases { padding: var(--gap) var(--pad); background: var(--bone-2); }
.frases .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.frase { margin: 0; }
.frase blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--ink);
  padding-top: 30px; border-top: 2px solid var(--gold-dark);
  position: relative;
}
.frase blockquote::before {
  content: "“"; position: absolute; top: 6px; left: -2px;
  font-family: var(--serif); font-size: 54px; line-height: 1;
  color: var(--gold-dark); opacity: .28;
}
.frase figcaption {
  margin-top: 20px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-dark);
}
.frase--foto {
  grid-column: 1 / -1;
  display: flex; justify-content: center;
  margin-top: clamp(12px, 3vw, 24px);
}
.frase--foto img {
  max-width: 420px; width: 100%; height: auto;
  border: 1px solid var(--line-d);
}

/* ═══════════════════════ CONTATO ═══════════════════════ */
.contato { padding: var(--gap) var(--pad); background: var(--bone); }
.contato__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); }
.contato h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.2; margin: 0 0 28px; }

.contato__list { margin: 0; padding-top: 28px; border-top: 1px solid var(--line-l); }
.contato__list > div + div { margin-top: 22px; }
.contato__list dt {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7a7677; margin-bottom: 6px;
}
.contato__list dd { margin: 0; font-size: 17px; line-height: 1.5; }
.contato__list a {
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contato__list a:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 7px; }
.form label > span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a7677;
}
.form input, .form textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #c9c1a0;
  padding: 10px 2px; outline: none; resize: none;
  transition: border-color .3s var(--ease);
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--gold-dark); }
.form input:user-invalid, .form textarea:user-invalid { border-bottom-color: #a8564a; }
.form__status { margin: 0; font-size: 13px; color: var(--gold-dark); min-height: 1.4em; }

.office-map {
  margin-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line-l);
  padding-top: clamp(24px, 4vw, 36px);
}
.office-map iframe {
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  border: 0;
  border-radius: 2px;
  background: var(--bone-2);
  filter: grayscale(.12) contrast(.96);
}
.office-map__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.office-map__bar p {
  margin: 0;
  color: var(--mute-l);
  font-size: 15px;
  line-height: 1.6;
}

/* ═══════════════════════ RODAPÉ ═══════════════════════ */
.rodape { background: var(--ink-deep); padding: 54px var(--pad) 32px; }
.rodape__top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-d);
}
.rodape__top .nav__icone { height: 46px; }
.rodape__top .nav__wordmark { height: 34px; }
.rodape__links { display: flex; gap: 28px; flex-wrap: wrap; }
.rodape__links a {
  font-size: 12px; color: var(--mute-d);
  transition: color .25s var(--ease);
}
.rodape__links a:hover { color: var(--gold); }
.rodape__social { display: flex; gap: 16px; }
.rodape__social a {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  color: var(--mute-d);
  border: 1px solid var(--line-d);
  border-radius: 50%;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.rodape__social a:hover { color: var(--gold); border-color: var(--gold); }
.rodape__fine { margin: 22px auto 0; font-size: 11px; color: #6f6a5c; }

/* ═══════════════════════ LIGHTBOX ═══════════════════════ */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(20, 19, 19, 0.96);
  backdrop-filter: blur(10px);
  padding: clamp(16px, 4vw, 48px);
  animation: lbIn .3s var(--ease);
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }

.lb__stage {
  margin: 0; display: flex; flex-direction: column; gap: 18px;
  max-width: min(1200px, 100%); max-height: 100%;
}
.lb__stage img {
  max-width: 100%; max-height: 74vh; object-fit: contain;
  margin: 0 auto; border-radius: 2px;
  animation: lbImg .4s var(--ease);
}
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } }
.lb__stage iframe {
  width: min(100%, 1200px); aspect-ratio: 16 / 9; max-height: 74vh;
  margin: 0 auto; border: 0; border-radius: 2px; background: #000;
  animation: lbImg .4s var(--ease);
}
.lb__stage img[hidden], .lb__stage iframe[hidden] { display: none; }

.lb__meta { text-align: center; color: var(--ivory); }
.lb:not([hidden]) .lb__meta { animation: lbMeta .45s var(--ease) .06s both; }
@keyframes lbMeta { from { opacity: 0; transform: translateY(8px); } }
.lb__meta h3 { font-size: clamp(19px, 2.4vw, 26px); margin: 0 0 8px; }
.lb__meta p { margin: 0; font-size: 13px; color: var(--mute-d); line-height: 1.6; }
.lb__counter {
  margin-top: 10px !important; font-size: 11px; letter-spacing: 0.16em;
  color: var(--gold);
}

.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  background: rgba(255, 255, 255, 0.06); color: var(--ivory);
  border: 1px solid rgba(255, 251, 214, 0.18);
  cursor: pointer; font-family: var(--sans);
  display: grid; place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.lb__close:hover, .lb__nav:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink-deep);
}
.lb__close {
  top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px);
  width: 46px; height: 46px; font-size: 26px; line-height: 1;
}
.lb__nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; font-size: 30px; line-height: 1;
}
.lb__nav--prev { left: clamp(8px, 2vw, 24px); }
.lb__nav--next { right: clamp(8px, 2vw, 24px); }

/* ═══════════════════════ REVEAL ═══════════════════════ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  filter: blur(4px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ═══════════════════════ ANIMAÇÕES ═══════════════════════ */

/* Título do hero: cada palavra sobe por trás de uma máscara, em vez de
   simplesmente aparecer. A máscara é o próprio span externo. */
.hero__title span { display: block; overflow: hidden; padding-bottom: .06em; }
/* o span só serve de máscara e de gatilho do observer — quem se move é o <i> */
.hero__title span.reveal { opacity: 1; transform: none; filter: none; transition: none; }
.hero__title i {
  display: block; font-style: normal;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero__title span.is-in i { opacity: 1; transform: none; }

/* Fio dourado que cresce sob cada rótulo de seção quando ele entra. */
.eyebrow { position: relative; display: inline-block; padding-bottom: 10px; }
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor; opacity: .45;
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) .15s;
}
.eyebrow.is-in::after { transform: scaleX(1); }

/* Foto do "Sobre": leve aproximação enquanto rola, dá vida sem distrair. */
.sobre__portrait img { will-change: transform; }
.sobre__portrait.is-in img { animation: portraitIn 1.6s var(--ease) both; }
@keyframes portraitIn { from { transform: scale(1.08); } to { transform: none; } }

/* Linhas de serviço: o filete superior corre da esquerda para a direita. */
.svc__row { position: relative; }
.svc__row::after {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 100%; height: 1px; background: var(--gold); opacity: .5;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.svc__row.is-in::after { transform: scaleX(1); }
.svc__row.reveal.is-in:hover { transform: translateX(6px); }

/* Cards: leve elevação e sombra ao passar o mouse. */
.card {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover, .card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(35, 33, 34, 0.28);
}
.card--reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(3px);
  animation: none;
  transition: opacity .86s var(--ease), transform .86s var(--ease), filter .86s var(--ease),
              box-shadow .45s var(--ease);
  transition-delay: var(--i, 0s), var(--i, 0s), var(--i, 0s), 0s;
}
.card--reveal.is-in { opacity: 1; transform: none; filter: none; }
.card--reveal.is-in:hover, .card--reveal.is-in:focus-visible {
  transform: translateY(-5px);
}
.card__year { transition: background .4s var(--ease), border-color .4s var(--ease); }
.card:hover .card__year { background: var(--gold); color: var(--ink-deep); }

/* Filtros de década: preenchimento que sobe de baixo. */
.rail__btn { position: relative; overflow: hidden; z-index: 0; }
.rail__btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.rail__btn:hover::before { transform: none; }
.rail__btn:hover { color: var(--ivory); border-color: var(--ink); }
.rail__btn.is-on::before { transform: none; }

/* Aspas das frases: giram e assentam ao entrar. */
.frase blockquote::before {
  transform: rotate(-12deg) translateY(8px);
  opacity: 0;
  transition: transform 1s var(--ease) .2s, opacity 1s var(--ease) .2s;
}
.frase.is-in blockquote::before { transform: none; opacity: .28; }

/* Botão do formulário e CTAs: brilho que atravessa no hover. */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  /* translate em vez de `left`: mesma varredura, sem recalcular layout */
  transform: translateX(-200%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(300%); }

/* ─── Variantes direcionais do reveal ──────────────────────────────────────
   Só transform: não deslocam o layout nem criam rolagem lateral. */
.reveal--left  { transform: translate3d(-42px, 0, 0); }
.reveal--right { transform: translate3d(42px, 0, 0); }
.reveal--left.is-in, .reveal--right.is-in { transform: none; }

/* ─── Sequência dentro de uma mesma seção ──────────────────────────────────
   Os 5 serviços revelavam juntos; agora entram em cascata. `.reveal` já lê
   `--d` como transition-delay, então basta alimentar a variável. */
.svc__row:nth-child(1) { --d: 0s;    }
.svc__row:nth-child(2) { --d: .08s;  }
.svc__row:nth-child(3) { --d: .16s;  }
.svc__row:nth-child(4) { --d: .24s;  }
.svc__row:nth-child(5) { --d: .32s;  }

/* Filhos de listas que já revelam como bloco: cada item entra atrás do outro.
   O pai é quem recebe `.is-in`; os filhos só respondem. */
.facts li,
.mapa li,
.contato__list > div {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.facts.is-in li,
.mapa.is-in li,
.contato__list.is-in > div { opacity: 1; transform: none; }
.mapa.is-in li:hover { transform: translateX(6px); }

.facts li:nth-child(2), .mapa li:nth-child(2), .contato__list.is-in > div:nth-child(2) { transition-delay: .09s; }
.facts li:nth-child(3), .mapa li:nth-child(3), .contato__list.is-in > div:nth-child(3) { transition-delay: .18s; }
.mapa li:nth-child(4), .contato__list.is-in > div:nth-child(4) { transition-delay: .27s; }

/* Barra de números do hero: entra junto com o resto da abertura, em cascata.
   Está em position:absolute, então o transform não empurra nada. */
.statsbar__item {
  animation: statIn .8s var(--ease) both;
  animation-delay: calc(.75s + var(--n, 0) * .09s);
}
.statsbar__item:nth-child(2) { --n: 1; }
.statsbar__item:nth-child(3) { --n: 2; }
.statsbar__item:nth-child(4) { --n: 3; }
@keyframes statIn { from { opacity: 0; transform: translateY(14px); } }

/* ─── Microinterações ──────────────────────────────────────────────────────*/

/* Links do rodapé: mesmo sublinhado que corre no menu principal. */
.rodape__links a { position: relative; }
.rodape__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.rodape__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Campo em foco: o rótulo acompanha a cor da linha, sem mexer no tamanho. */
.form label > span { transition: color .3s var(--ease); }
.form label:focus-within > span { color: var(--gold-dark); }

/* Etapas do processo e itens do mapa: alvo de toque inalterado, só cor. */
.tnum { transition: color .35s var(--ease); }

/* Foto do lightbox: a troca entre fotos ganha o mesmo fade da abertura. */
.lb__stage img { will-change: opacity, transform; }

/* ═══════════════════════ RESPONSIVO ═══════════════════════ */
@media (max-width: 1080px) {
  .frases .wrap { grid-template-columns: 1fr; }
  .frase blockquote { max-width: 60ch; }
}

/* A linha em ziguezague só faz sentido com as 5 etapas lado a lado. Abaixo
   disso as etapas viram 2 colunas e a linha sai — antes esse corte era em
   1080px, o que escondia a animação em qualquer janela não maximizada. */
@media (max-width: 900px) {
  .timeline-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: 0; }
  .timeline-line { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav { background: rgba(35, 33, 34, 0.93); backdrop-filter: blur(8px); }
  .nav__menu {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-deep);
    border-top: 1px solid var(--line-d);
    padding: 8px var(--pad) 24px;
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; animation: menuIn .3s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
  .nav__menu a { padding: 15px 0; border-bottom: 1px solid rgba(215,203,117,0.12); }
  .nav__cta { margin: 16px 0 0; text-align: center; border-bottom: 1px solid rgba(255,251,214,.5); }
  .nav__cta::before { display: none; }

  .sobre__grid, .atuacao__grid, .contato__grid { grid-template-columns: 1fr; }
  .sobre__portrait img { aspect-ratio: 3 / 2; }
  .statsbar { grid-template-columns: repeat(2, 1fr); }
  .statsbar__item:nth-child(2n) { border-right: 0; }
  .statsbar__item:nth-child(n+3) { border-top: 1px solid rgba(215,203,117,0.15); }
  .svc__row { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .svc__row p { grid-column: 2; }
  .card--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 210px; }
  .timeline-steps { grid-template-columns: 1fr; }
  .form__pair { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .lb__nav { width: 42px; height: 42px; font-size: 24px; }
  .lb__stage img { max-height: 62vh; }
}

/* ═══════════════════════ MOVIMENTO REDUZIDO ═══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
  #timeline-path { stroke-dashoffset: 0 !important; }
  .tstep.reveal { opacity: 1 !important; transform: none !important; }
  .reveal--left, .reveal--right { transform: none !important; }
  .facts li, .mapa li, .contato__list > div, .statsbar__item, .card--reveal {
    opacity: 1 !important; transform: none !important;
  }
}
