/* Reserva Cuiabá: cores, textura e tipografia tiradas do book (CUI_BOOK v13).
   Garamond Premier Pro -> EB Garamond; Gotham -> Montserrat (gratuitas, self-hosted). */

@font-face { font-family: "Garamond"; src: url("../assets/fonts/garamond.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Garamond"; src: url("../assets/fonts/garamond-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }

:root {
  --linho: #b8b7ac;
  --linho-claro: #c7c8c0;
  --oliva: #938f5e;
  --mata: #26302a;
  --mata-funda: #1a211c;
  --tinta: #1d1f1a;
  --creme: #fff9b6;
  --terracota: #a65a3a;
  --branco: #f7f6f0;
  --serif: "Garamond", "EB Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --borda: 16px;
  --lado: clamp(16px, 5vw, 72px);
  --suave: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linho-claro) url("../assets/img/linho.webp?v=3") repeat;
  background-size: 520px;
  background-blend-mode: soft-light;
  color: var(--tinta);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--oliva); color: var(--branco); }

/* textura do book sempre em soft-light sobre o linho claro: com contraste cheio o texto não se lê */
.linho, .linho-claro { background: var(--linho-claro) url("../assets/img/linho.webp?v=3") repeat; background-size: 520px; background-blend-mode: soft-light; }
.mata { background: var(--mata); color: var(--branco); }

/* ---------- Tipografia ---------- */
.titulo {
  font: 400 clamp(2.1rem, 4.6vw, 4.6rem)/1.04 var(--serif);
  text-transform: uppercase;
  letter-spacing: .045em;
  text-wrap: balance;
}
.titulo em { font-style: italic; text-transform: none; letter-spacing: 0; }
.rotulo {
  display: block;
  font: 600 .72rem/1.4 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ---------- Logo (PNG branco do book pintado por máscara) ---------- */
.logo {
  display: inline-block;
  width: 92px;
  aspect-ratio: 872 / 720;
  background: currentColor;
  -webkit-mask: url("../assets/img/logo-cuiaba.png") center / contain no-repeat;
          mask: url("../assets/img/logo-cuiaba.png") center / contain no-repeat;
}
.logo--grande { width: 150px; }
.logo-ru {
  display: inline-block;
  width: 190px;
  aspect-ratio: 883 / 225;
  background: var(--terracota);
  -webkit-mask: url("../assets/img/logo-reserva-urbanismo.png") center / contain no-repeat;
          mask: url("../assets/img/logo-reserva-urbanismo.png") center / contain no-repeat;
}
.logo-ru--claro { background: var(--linho-claro); width: 150px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--mata);
  color: var(--branco);
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--suave), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.botao:active { transform: scale(.97); }
@media (hover: hover) { .botao:hover { background: var(--oliva); } }
.botao--claro { background: rgba(247, 246, 240, .16); color: var(--branco); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(247, 246, 240, .45); }
.botao--linha { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) { .botao--linha:hover { background: var(--mata); color: var(--branco); } }

/* ---------- Topo ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: calc(14px + env(safe-area-inset-top)) var(--lado) 14px;
  color: var(--branco);
  transition: background-color .4s, color .4s, padding .4s;
}
.topo__marca { display: flex; color: inherit; }
.topo__marca .logo { width: 64px; transition: width .4s var(--suave); }
.topo__nav { display: flex; gap: 28px; margin-left: auto; }
.topo__nav a { font: 500 .7rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; opacity: .85; }
@media (hover: hover) { .topo__nav a:hover { opacity: 1; } }
.topo__cta { min-height: 44px; padding: 0 20px; font-size: .68rem; transition: transform .25s var(--suave), background-color .25s, opacity .3s; }
.topo.rolou {
  background: rgba(184, 183, 172, .82);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  color: var(--tinta);
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-bottom: 8px;
}
.topo.rolou .logo { width: 46px; }
.topo.rolou .botao--claro { background: var(--mata); box-shadow: none; }
.topo__menu { display: none; }
@media (max-width: 760px) {
  .topo { gap: 6px; }
  .topo__cta { margin-left: auto; padding: 0 16px; }
  .topo__menu { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .topo__menu span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
  .topo__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: 4px var(--lado) 14px;
    background: #bfbfb5;
    color: var(--tinta);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .22);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--suave), visibility 0s .25s;
  }
  .topo.aberto .topo__nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .topo__nav a { padding: 17px 0; font-size: .78rem; opacity: 1; border-bottom: 1px solid rgba(29, 31, 26, .16); }
  .topo__nav a:last-child { border-bottom: 0; }
  .topo.aberto { background: #bfbfb5; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--tinta); }
  .topo.aberto .botao--claro { background: var(--mata); box-shadow: none; }
  /* um botão só por vez: com o fixo de baixo na tela, o do topo sai */
  .topo.com-fixo .topo__cta { opacity: 0; pointer-events: none; }
}

/* ---------- Abertura ---------- */
.hero { position: relative; height: 210vh; background: var(--mata-funda); }
.hero__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__quadro { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero__video.tocando { opacity: 1; }
.hero__quadro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 20, 17, .45) 0%, rgba(16, 20, 17, 0) 30%, rgba(16, 20, 17, 0) 55%, rgba(16, 20, 17, .55) 100%); }
.hero__texto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--branco);
  text-align: center;
  padding: 0 var(--lado);
}
.hero__titulo { font: 400 clamp(3.4rem, 19vw, 13rem)/.9 var(--serif); text-transform: uppercase; letter-spacing: .06em; }
.hero__titulo span { display: block; }
.hero__titulo em { display: block; font-style: italic; text-transform: none; letter-spacing: 0; font-size: max(.34em, 1.7rem); margin-top: .25em; }
.hero__titulo span, .hero__titulo em, .hero__texto .rotulo { animation: subir 1.4s var(--suave) both; }
.hero__titulo em { animation-delay: .25s; }
.hero__texto .rotulo { animation-delay: .5s; }
@keyframes subir { from { opacity: 0; transform: translateY(28px); } }
.hero__depois {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 var(--lado) calc(9vh + env(safe-area-inset-bottom));
  color: var(--branco);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.hero__frase { font: 400 clamp(1.6rem, 3.4vw, 3rem)/1.15 var(--serif); max-width: 22ch; text-wrap: balance; }
.hero__dados { font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 10px; opacity: .9; }
.hero__seta { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); width: 1px; height: 48px; background: linear-gradient(var(--branco), transparent); transform-origin: top; animation: seta 2.4s var(--suave) infinite; }
@keyframes seta { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(110px, 18vw, 240px) var(--lado); }
.manifesto__texto {
  max-width: 21ch;
  margin: 0 auto;
  font: 400 clamp(2rem, 5.4vw, 5.2rem)/1.1 var(--serif);
  text-align: center;
  text-wrap: balance;
}
.pal { transition: opacity .15s linear; }
.manifesto__trio { display: flex; justify-content: center; gap: clamp(18px, 6vw, 90px); margin-top: clamp(60px, 9vw, 120px); flex-wrap: wrap; }
.manifesto__trio li { font: 600 .74rem/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; }

/* ---------- Entrada ao aparecer ---------- */
.js [data-entra] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--suave), transform .9s var(--suave); }
.js [data-entra].visivel { opacity: 1; transform: none; }

/* ---------- Do traço ao lugar ---------- */
.traco { position: relative; height: 260vh; background: #e9e8e2; }
.traco__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.traco__render, .traco__croqui, .traco__croqui img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.traco__croqui { clip-path: inset(0 0 0 0); background: #ecebe5; will-change: clip-path; }
.traco__croqui img { mix-blend-mode: multiply; object-position: 55% 50%; }
/* véu da cor do papel atrás do título, para o traço não brigar com a leitura; por ficar dentro do croqui, sai com ele na virada */
.traco__croqui::after { content: ""; position: absolute; left: 0; top: 0; width: min(78vw, 1120px); height: 640px; background: rgba(182, 182, 170, .9); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 70%, transparent 100%); pointer-events: none; }
@media (max-width: 760px) { .traco__croqui::after { width: 100%; height: 340px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); } }
.traco__linha { position: absolute; top: 0; bottom: 0; left: 100%; width: 1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 24px rgba(255, 255, 255, .8); will-change: transform; }
.traco__texto {
  position: absolute;
  left: var(--lado);
  top: calc(96px + env(safe-area-inset-top));
  max-width: min(640px, 86vw);
  display: grid;
  gap: 16px;
  color: var(--tinta);
  transition: color .5s;
}
.traco.virou .traco__texto { color: var(--branco); text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.traco__legenda {
  position: absolute;
  right: var(--lado);
  bottom: calc(48px + env(safe-area-inset-bottom));
  max-width: 36ch;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(26, 33, 28, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--branco);
  font: 400 clamp(1.1rem, 1.6vw, 1.4rem)/1.35 var(--serif);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--suave), transform .8s var(--suave);
}
.traco.virou .traco__legenda { opacity: 1; transform: none; }
@media (max-width: 760px) { .traco__legenda { left: var(--lado); bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- Números ---------- */
.numeros { padding: clamp(100px, 14vw, 200px) var(--lado); }
.numeros__cabeca { display: grid; gap: 28px; max-width: 1200px; margin: 0 auto; }
.numeros__cabeca .titulo { max-width: 16ch; }
.numeros__cabeca p { max-width: 46ch; font-size: 1.05rem; }
.numeros__lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: clamp(60px, 9vw, 120px) auto 0;
  border-top: 1px solid rgba(29, 31, 26, .35);
}
.numeros__lista > div { padding: 28px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 10px; }
.numeros__lista dd { font: 400 clamp(3.6rem, 8.5vw, 8.4rem)/.9 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.numeros__lista dd small { font: 500 .8rem/1 var(--sans); letter-spacing: .2em; margin-left: .5em; text-transform: uppercase; vertical-align: .9em; }
.numeros__lista dt { font: 600 .68rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
@media (max-width: 760px) {
  .numeros__lista { grid-template-columns: 1fr; }
  .numeros__lista > div { padding: 26px 0; border-bottom: 1px solid rgba(29, 31, 26, .25); }
}

/* ---------- Localização: o condomínio surge no terreno ---------- */
.terreno { position: relative; height: 240vh; background: #3388d3; }
.terreno__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(#2f7fcd, #3388d3); }
.terreno__mundo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 100svh * 1.483);
  aspect-ratio: 8000 / 5394;
  transform: translate(-50%, -50%);
}
.terreno__mundo > img { width: 100%; height: 100%; object-fit: cover; }
/* recorte 21:9 da fotomontagem onde fica o condomínio */
.terreno__vazio, .terreno__linha { position: absolute; left: 13%; top: 46.607%; width: 84%; height: 53.393%; }
.terreno__vazio { --a: -14%; -webkit-mask-image: linear-gradient(to left, transparent var(--a), #000 calc(var(--a) + 14%)); mask-image: linear-gradient(to left, transparent var(--a), #000 calc(var(--a) + 14%)); }
.terreno__vazio img { width: 100%; height: 100%; }
.terreno__linha { overflow: visible; pointer-events: none; }
.terreno__linha path { fill: none; stroke: var(--creme); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 10px rgba(255, 249, 182, .9)); }
/* rótulos no estilo do book: círculo verde, linha pontilhada e um ponto no lugar */
.ponto {
  position: absolute;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  transform: translate(-50%, calc(-100% + 4px)) translateY(calc((1 - var(--pinos, 0)) * 14px));
  opacity: var(--pinos, 0);
  pointer-events: none;
}
.ponto::before { order: 1; content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 2px rgba(38, 48, 42, .5); }
.ponto::after { order: 2; content: ""; height: var(--linha, 40px); border-left: 2px dotted var(--creme); }
.ponto b {
  order: 3;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(38, 48, 42, .88);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 182, .55), 0 8px 24px rgba(0, 0, 0, .3);
  color: var(--branco);
  font: 600 .72rem/1.2 var(--sans);
  text-align: center;
  text-wrap: balance;
}
.ponto--marca b { width: 120px; height: 120px; }
.ponto--marca .logo { width: 70px; color: var(--creme); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) {
  .ponto b { width: 84px; height: 84px; font-size: .68rem; padding: 7px; }
  .ponto--marca b { width: 100px; height: 100px; }
  .ponto--marca .logo { width: 62px; }
}
.terreno__texto {
  position: absolute;
  inset: calc(110px + env(safe-area-inset-top)) var(--lado) auto;
  color: var(--branco);
  text-shadow: 0 2px 40px rgba(20, 40, 70, .45);
  opacity: 0;
}
.terreno__texto .titulo { max-width: 13ch; }
/* celular em pé: a foto fica ancorada embaixo, centrada no condomínio, e o céu completa o topo */
@media (orientation: portrait) {
  .terreno__mundo { width: 340vw; top: auto; bottom: 0; left: calc(50vw - 340vw * .56); transform: translate3d(var(--pan, 0px), 0, 0); will-change: transform; }
  .terreno__mundo > img { -webkit-mask-image: linear-gradient(transparent, #000 6%); mask-image: linear-gradient(transparent, #000 6%); }
  .terreno__linha path { stroke-width: 9; }
}

/* ---------- Localização em texto, com o mapa do Google embutido e os botões de rota ---------- */
.local { padding: clamp(80px, 10vw, 150px) var(--lado); }
.local__grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1280px; margin: 0 auto; }
.local__texto { display: grid; gap: 22px; justify-items: start; }
.local__texto .titulo { font-size: clamp(1.9rem, 3.4vw, 3.4rem); }
.local__texto p:not(.rotulo) { max-width: 44ch; }
.local__enderecos { display: grid; gap: 22px; width: 100%; margin-top: 6px; padding-top: 24px; border-top: 1px solid rgba(29, 31, 26, .28); }
.local__endereco { display: grid; gap: 8px; justify-items: start; }
.local__endereco .rotulo { opacity: .7; }
.local__endereco p { font: 400 1.3rem/1.3 var(--serif); }
.local__rotas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.local__mapa-rotulo { position: absolute; z-index: 1; left: 14px; top: 14px; pointer-events: none; }
.local__mapa { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--borda); background: var(--linho); box-shadow: 0 30px 60px rgba(29, 31, 26, .2); }
.local__mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.local__mapa.ativo iframe { pointer-events: auto; }
.local__mapa-toque { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 18px; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.local__mapa-toque span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: rgba(38, 48, 42, .9); color: var(--branco); font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.local__mapa.ativo .local__mapa-toque { display: none; }
@media (max-width: 900px) {
  .local__grade { grid-template-columns: 1fr; }
  .local__mapa { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .local__rotas .botao { flex: 1 1 100%; } }

/* ---------- Tela cheia com texto ---------- */
.tela { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--branco); background: var(--mata-funda); }
.tela > img, .tela > video { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.tela > video { opacity: 0; transition: opacity 1s; }
.tela > video.tocando { opacity: 1; }
.tela::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 20, 17, 0) 40%, rgba(16, 20, 17, .6) 100%); pointer-events: none; }
.tela__texto { position: absolute; z-index: 1; inset: auto var(--lado) calc(64px + env(safe-area-inset-bottom)); display: grid; gap: 26px; }
.tela__texto .titulo { max-width: 15ch; }
.tela--centro::after { background: rgba(10, 14, 12, .3); }
.tela--centro .tela__texto { inset: 0 var(--lado); place-content: center; text-align: center; }
.tela__grande { font: 400 clamp(2.4rem, 7vw, 7rem)/1.02 var(--serif); text-transform: uppercase; letter-spacing: .04em; max-width: 14ch; margin: 0 auto; text-wrap: balance; }
.selos { display: flex; flex-wrap: wrap; gap: 10px; }
.selos li { padding: 11px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(247, 246, 240, .6); font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Capítulos: a palavra grande monta letra por letra ---------- */
.capitulo { position: relative; height: 130vh; background: var(--mata-funda); }
.capitulo__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.capitulo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.capitulo__palco::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 14, 12, .45), rgba(10, 14, 12, .15) 70%); }
.capitulo__titulo { position: relative; z-index: 1; display: grid; justify-items: center; color: var(--branco); text-align: center; padding: 0 12px; }
.capitulo__palavra { font: 400 clamp(2.9rem, 13.5vw, 14rem)/.9 var(--serif); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.capitulo__palavra .letra { display: inline-block; opacity: 0; transform: translateY(.35em); will-change: transform, opacity; }
.capitulo__titulo em { font: italic 400 clamp(1.4rem, 3.4vw, 3.4rem)/1 var(--serif); margin-top: .35em; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--suave), transform .7s var(--suave); }
.capitulo.completo .capitulo__titulo em { opacity: 1; transform: none; }

/* ---------- Mosaico ---------- */
.mosaico {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(10px, 1.4vw, 20px);
}
.cartao { position: relative; overflow: hidden; border-radius: var(--borda); aspect-ratio: 4 / 3; background: var(--mata); color: var(--branco); }
.cartao--grande { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.cartao--panorama { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.cartao > img, .cartao > video { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.cartao > video { opacity: 0; transition: opacity 1s; }
.cartao > video.tocando { opacity: 1; }
.cartao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 12, 0) 55%, rgba(10, 14, 12, .62) 100%); pointer-events: none; }
.cartao figcaption { position: absolute; z-index: 1; left: clamp(18px, 3vw, 44px); right: clamp(18px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px); display: grid; gap: 10px; justify-items: start; }
.cartao figcaption strong { font: 400 clamp(1.3rem, 2.6vw, 2.6rem)/1.08 var(--serif); text-transform: uppercase; letter-spacing: .04em; max-width: 20ch; text-wrap: balance; }
.cartao:not(.cartao--grande):not(.cartao--panorama) figcaption strong { font-size: clamp(1.15rem, 1.8vw, 1.8rem); }
.cartao figcaption small { font-size: .8rem; opacity: .95; max-width: 44ch; line-height: 1.45; }
.selo-redondo { padding: 8px 14px; border-radius: 999px; background: rgba(38, 48, 42, .85); color: var(--creme); font: 600 .64rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 760px) {
  .mosaico { grid-template-columns: 1fr; }
  .cartao, .cartao--grande { aspect-ratio: 4 / 5; }
  .cartao--panorama { aspect-ratio: 4 / 3; }
}

/* ---------- Dupla (wellness) ---------- */
.dupla {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "img texto" "img quadrada";
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(80px, 10vw, 140px) var(--lado);
  align-items: end;
}
.dupla__img { grid-area: img; position: relative; overflow: hidden; border-radius: var(--borda); aspect-ratio: 4 / 5; }
.dupla__img--quadrada { grid-area: quadrada; aspect-ratio: 1; }
.dupla__img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.dupla__texto { grid-area: texto; display: grid; gap: 20px; padding-bottom: clamp(16px, 4vw, 60px); }
.dupla__texto .titulo { font-size: clamp(1.8rem, 3.2vw, 3.2rem); }
.dupla__texto p:not(.rotulo) { opacity: .85; }
@media (max-width: 900px) {
  .dupla { grid-template-columns: 1fr; grid-template-areas: "texto" "img" "quadrada"; }
}

/* ---------- Lazer: carrossel travado, um trilho só ---------- */
.trava { position: relative; background: var(--mata); color: var(--branco); }
.trava__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.6vh, 36px); padding: calc(70px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom)); }
.trava__cabeca { padding: 0 var(--lado); display: grid; gap: 10px; }
.trava__cabeca .rotulo { opacity: .7; }
.trava__titulo { font-size: clamp(2rem, 3.6vw, 3.6rem); }
.trava__titulo em { font-size: .72em; }
/* a palavra do capítulo troca com uma piscada curta quando o grupo de fotos muda */
.trava__titulo span { display: inline-block; transition: opacity .16s, transform .16s var(--suave); }
.trava__titulo span.troca { opacity: 0; transform: translateY(.18em); }
.trava__trilho { display: flex; gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--lado); will-change: transform; }
/* desktop: uma foto e meia na tela (60vw). Em tela baixa a foto perde altura antes de perder largura. */
.trava__trilho figure { position: relative; flex: 0 0 auto; width: min(60vw, calc((100svh - 350px) * 2.2)); }
.trava__trilho figure[data-inicio] { margin-left: clamp(18px, 3vw, 56px); }
.trava__trilho img { width: 100%; height: min(37.5vw, calc(100svh - 350px)); object-fit: cover; border-radius: var(--borda); }
.trava__trilho .selo-redondo { position: absolute; left: 14px; top: 14px; }
.trava__trilho figcaption { margin-top: 14px; font: 400 clamp(1.05rem, 1.5vw, 1.4rem)/1.2 var(--serif); text-transform: uppercase; letter-spacing: .05em; text-wrap: balance; }
.trava__trilho figcaption small { display: block; margin-top: 6px; font: 400 .8rem/1.45 var(--sans); text-transform: none; letter-spacing: 0; opacity: .85; }
.trava__pe { display: grid; gap: 6px; padding: 0 var(--lado); }
.trava__grupos { display: flex; gap: clamp(16px, 3vw, 40px); }
.trava__grupos button { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: 600 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .5; cursor: pointer; transition: opacity .3s; -webkit-tap-highlight-color: transparent; }
.trava__grupos button.ativo { opacity: 1; }
@media (hover: hover) { .trava__grupos button:hover { opacity: 1; } }
.trava__barra { height: 1px; background: rgba(247, 246, 240, .2); }
.trava__barra span { display: block; height: 100%; background: var(--branco); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .trava__palco { gap: 16px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  /* "por natureza" sempre na linha de baixo, para o bloco não mudar de altura quando a palavra troca */
  .trava__titulo em { display: block; }
  .trava__trilho figure { width: 84vw; }
  /* a altura da foto é o que sobra da tela depois do título, da legenda, dos grupos e do botão fixo */
  .trava__trilho img { aspect-ratio: auto; height: min(105vw, calc(100svh - 440px)); }
  .trava__trilho figcaption { min-height: 2.4em; }
  .trava__grupos { justify-content: space-between; gap: 8px; }
  .trava__grupos button { font-size: .64rem; letter-spacing: .14em; }
}

/* ---------- Implantação ---------- */
.implantacao {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "planta cabeca" "planta lista" "planta ficha";
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(100px, 12vw, 170px) var(--lado);
  align-items: start;
}
.implantacao__cabeca { grid-area: cabeca; }
.implantacao__cabeca .titulo { max-width: 16ch; font-size: clamp(1.9rem, 3.2vw, 3.4rem); }
.implantacao__planta { grid-area: planta; position: sticky; top: 90px; display: grid; justify-items: end; gap: 16px; }
.implantacao__mapa { position: relative; width: 100%; }
.implantacao__planta img { width: 100%; filter: drop-shadow(0 30px 40px rgba(29, 31, 26, .25)); }
.zona { position: absolute; transform: translate(-50%, -50%); padding: 8px 12px; border-radius: 999px; background: var(--branco); color: var(--tinta); font: 600 clamp(.6rem, .85vw, .7rem)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.zona::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: var(--branco); }
.zona--mata { background: var(--mata); color: var(--creme); }
.zona--esq { transform: translate(-22%, -50%); }
.zona--esq::before { left: 22%; }
.zona--mata::before { background: var(--mata); }
.implantacao__ampliar { min-height: 44px; padding: 0 22px; font-size: .68rem; }
.implantacao__lista { grid-area: lista; display: grid; gap: 30px; }
.implantacao__lista .rotulo { padding-bottom: 12px; border-bottom: 1px solid rgba(29, 31, 26, .3); margin-bottom: 12px; }
.implantacao__lista li { font: 400 1.15rem/1.35 var(--serif); padding: 4px 0; }
.ficha { grid-area: ficha; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 26px; border-radius: var(--borda); background: var(--mata); color: var(--branco); }
.ficha dt { font: 600 .66rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.ficha dd { font: 400 1.2rem/1.2 var(--serif); margin-top: 4px; }
@media (max-width: 1000px) {
  .implantacao__planta { position: relative; top: 0; }
  .implantacao { grid-template-columns: 1fr; grid-template-areas: "cabeca" "planta" "lista" "ficha"; }
}

/* ---------- Realização ---------- */
.realizacao { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; padding: clamp(100px, 12vw, 170px) var(--lado); }
.realizacao__texto { display: grid; gap: 34px; }
.realizacao__texto p { font: 400 clamp(1.5rem, 2.6vw, 2.4rem)/1.2 var(--serif); }
.realizacao__obras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.obra { display: grid; align-content: end; gap: 4px; min-height: 160px; padding: 22px; border-radius: var(--borda); background: var(--oliva); color: var(--branco); font-size: .8rem; letter-spacing: .08em; }
.obra strong { font: 400 1.4rem/1.1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.obra span { margin-top: 8px; font: 600 .64rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--creme); }
.obra--foto { grid-column: 1 / -1; position: relative; overflow: hidden; padding: 0; min-height: 0; background: var(--mata); }
.obra--foto img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.obra--foto figcaption { position: absolute; left: 22px; bottom: 22px; display: grid; gap: 4px; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.obra--meia { grid-column: auto; }
.obra--meia img { aspect-ratio: 1 / 1; object-position: 50% 42%; }
.obra--meia::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(rgba(20, 28, 22, 0), rgba(20, 28, 22, .7)); }
.obra--meia figcaption { z-index: 1; right: 22px; }
@media (max-width: 560px) {
  .obra--meia { grid-column: 1 / -1; }
  .obra--meia img { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) { .realizacao { grid-template-columns: 1fr; } }

/* ---------- Contato ---------- */
.contato { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; justify-items: end; padding: clamp(90px, 10vw, 140px) var(--lado); overflow: hidden; background: var(--mata-funda); }
.contato__fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.contato__caixa { position: relative; width: min(520px, 100%); display: grid; gap: 18px; padding: clamp(26px, 4vw, 48px); border-radius: 22px; background: rgba(199, 200, 192, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.contato__caixa .titulo { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
form { display: grid; gap: 14px; margin-top: 8px; }
form label { display: grid; gap: 7px; font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
form input:not([type="radio"]) { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid rgba(29, 31, 26, .3); border-radius: 12px; background: rgba(247, 246, 240, .75); color: var(--tinta); font: 400 16px/1 var(--sans); letter-spacing: 0; text-transform: none; }
form input:focus { outline: 2px solid var(--mata); outline-offset: 1px; }
form input.erro { border-color: #9b3b22; }
fieldset { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { width: 100%; margin-bottom: 8px; padding: 0; font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.opcao { position: relative; display: block; }
.opcao input { position: absolute; opacity: 0; }
.opcao span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(29, 31, 26, .4); font: 500 .82rem/1 var(--sans); letter-spacing: .08em; text-transform: none; cursor: pointer; }
.opcao input:checked + span { background: var(--mata); color: var(--branco); box-shadow: none; }
.opcao input:focus-visible + span { outline: 2px solid var(--mata); outline-offset: 2px; }
form .botao { margin-top: 6px; }
.form__status { min-height: 1.2em; font-size: .85rem; }
.form__nota { font-size: .76rem; line-height: 1.5; opacity: .82; }
@media (max-width: 760px) { .contato { justify-items: stretch; } }

/* ---------- Convite: formulário curto depois da localização ---------- */
.convite { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding: clamp(70px, 9vw, 120px) var(--lado); }
.convite__texto { display: grid; gap: 18px; }
.convite__texto .titulo { font-size: clamp(1.7rem, 2.6vw, 2.6rem); max-width: 22ch; }
.convite__form { grid-template-columns: 1fr 1fr auto; align-items: end; margin: 0; }
.convite__form input:not([type="radio"]) { background: rgba(247, 246, 240, .95); border-color: transparent; }
.convite__form input:focus { outline-color: var(--creme); }
.convite__form input.erro { border-color: #e39a7c; box-shadow: 0 0 0 2px #e39a7c; }
.convite__form .botao { margin: 0; min-height: 50px; }
.convite__form .form__status, .convite__form .form__nota { grid-column: 1 / -1; }
.botao--branco { background: var(--branco); color: var(--mata); }
@media (hover: hover) { .botao--branco:hover { background: var(--creme); } }
@media (max-width: 900px) { .convite { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 600px) { .convite__form { grid-template-columns: 1fr; } }

/* ---------- Painel da lista de prioridade: de lado no desktop, de baixo no celular ---------- */
html:has(dialog[open]) { overflow: hidden; }
.painel { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; overflow: clip; color: var(--tinta); }
.painel::backdrop { background: rgba(16, 20, 17, .58); }
.painel__caixa { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); display: grid; align-content: start; gap: 14px; padding: calc(76px + env(safe-area-inset-top)) clamp(22px, 4vw, 44px) calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; box-shadow: -30px 0 80px rgba(0, 0, 0, .35); }
.painel .titulo { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.painel__fechar { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(29, 31, 26, .1); color: var(--tinta); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.painel[open] .painel__caixa { animation: painel-lado .42s var(--suave) both; }
.painel[open]::backdrop { animation: painel-fundo .3s both; }
.painel.fechando .painel__caixa { animation: painel-lado-sai .22s ease-in both; }
.painel.fechando::backdrop { animation: painel-fundo-sai .22s both; }
@keyframes painel-lado { from { transform: translateX(100%); } }
@keyframes painel-lado-sai { to { transform: translateX(100%); } }
@keyframes painel-baixo { from { transform: translateY(100%); } }
@keyframes painel-baixo-sai { to { transform: translateY(100%); } }
@keyframes painel-fundo { from { opacity: 0; } }
@keyframes painel-fundo-sai { to { opacity: 0; } }
@media (max-width: 760px) {
  .painel__caixa { top: auto; left: 0; width: 100%; max-height: 92dvh; padding-top: 30px; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); }
  .painel__fechar { top: 14px; right: 14px; }
  .painel .titulo { padding-right: 52px; }
  .painel[open] .painel__caixa { animation-name: painel-baixo; }
  .painel.fechando .painel__caixa { animation-name: painel-baixo-sai; }
}

/* ---------- Rodapé ---------- */
.rodape { display: grid; gap: 50px; padding: 90px var(--lado) calc(110px + env(safe-area-inset-bottom)); }
.rodape__marcas { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; color: var(--linho-claro); }
.rodape__dados { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1000px) { .rodape__dados { grid-template-columns: repeat(2, 1fr); } }
.rodape__dados .rotulo { margin-bottom: 8px; opacity: .65; }
.rodape__legal { font-size: .76rem; line-height: 1.65; opacity: .8; max-width: 1100px; }
@media (max-width: 760px) { .rodape__dados { grid-template-columns: 1fr; } }

/* ---------- Botão fixo ---------- */
.fixo {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--mata);
  color: var(--branco);
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(247, 246, 240, .3);
  transition: transform .5s var(--suave);
}
.fixo.visivel { transform: translate(-50%, 0); }
.fixo.oculto { transform: translate(-50%, 140%); }
@media (min-width: 761px) { .fixo { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16, 20, 17, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.lightbox__fechar { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(247, 246, 240, .15); color: var(--branco); font-size: 1.6rem; cursor: pointer; }

/* ---------- Movimento reduzido: tudo parado e legível ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .traco, .capitulo, .trava { height: auto; }
  .trava__palco { position: relative; height: auto; }
  .trava__trilho { overflow-x: auto; }
  .trava__barra { display: none; }
  .hero__palco, .traco__palco, .capitulo__palco { position: relative; }
  .hero__depois { opacity: 1; transform: none; position: relative; padding-top: 30px; }
  .hero__palco { height: auto; min-height: 100svh; }
  .traco__croqui, .traco__linha { display: none; }
  .traco__legenda { opacity: 1; transform: none; }
  .terreno { height: auto; }
  .terreno__vazio { display: none; }
  .terreno__linha path { stroke-dashoffset: 0; opacity: .3; }
  .terreno__texto, .terreno { --pinos: 1; }
  .terreno__texto { opacity: 1; }
  .capitulo__img { transform: none; }
  .capitulo__palavra .letra { opacity: 1; transform: none; }
  .capitulo__titulo em { opacity: 1; transform: none; }
  .js [data-entra] { opacity: 1; transform: none; }
  .painel[open] .painel__caixa, .painel[open]::backdrop, .painel.fechando .painel__caixa, .painel.fechando::backdrop { animation: none; }
  .hero__titulo span, .hero__titulo em, .hero__texto .rotulo { animation: none; }
}
