/* NUSA Imbassaí — LP de pré-lançamento (reconstrução estática) */
:root {
  --bg: #071714;
  --bg-2: #0a1f1a;
  --brand: #cbc4ad;
  --brand-soft: #c2bda7;
  --cream: #f4f1e6;
  --cream-2: #efebdd;
  --sand: #cfc8b8;
  --field: #f2f0e9;
  --ink: #3b4038;
  --muted: #5e6157;
  --wood: #826146;
  --wood-dark: #6b4f39;
  --sage: #b9c7bb;
  --body-copy: clamp(1rem, 1.05vw, 1.125rem);
  --photo-filter: saturate(0.78) contrast(1.04) brightness(0.92) sepia(0.12);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--brand-soft);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> só escolhe o formato (AVIF/WebP); quem faz o layout é o <img> */
picture:not(.hero__media) { display: contents; }
a { color: inherit; }
h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.sr-only {
  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 {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: var(--bg); padding: .75rem 1rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 1px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 4rem; } }

/* ───────────── HERO (frame 1) ───────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(2rem, 7vh, 4.5rem) 1.5rem clamp(7rem, 15vh, 9rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%;
}
.hero__media img { object-fit: cover; object-position: 60% 55%; }
/* celular: a foto inteira desliza devagar da esquerda para a direita (e volta) */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero__media { right: auto; width: auto; aspect-ratio: 1920 / 911; animation: hero-pan 26s ease-in-out infinite alternate; will-change: transform; }
  .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
@keyframes hero-pan {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% + 100vw)); }
}
/* escurece topo (logo) e base (título) para leitura sobre a foto */
.hero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(7 23 20 / .72) 0%, rgb(7 23 20 / .18) 30%, rgb(7 23 20 / .1) 52%, rgb(7 23 20 / .78) 100%);
}
/* véu escuro com textura: cobre a foto durante a abertura */
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgb(194 189 167 / .06) 0%, transparent 62%),
    var(--bg) url("../img/bg-nusa-1920.webp") center / cover no-repeat;
}
.hero__brand { width: min(24rem, 66vw); }
.hero__logo { width: 100%; height: auto; overflow: visible; }
.logo-wordmark path, .logo-symbol path, .petal__fill { fill: var(--brand); }

.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  max-width: 54rem; font-weight: 300; text-transform: uppercase; color: var(--cream);
  font-size: clamp(1.35rem, 2.9vw, 2.5rem); line-height: 1.3; letter-spacing: .11em;
  text-shadow: 0 2px 24px rgb(7 23 20 / .55);
}
.hero__line { display: inline; }
@media (min-width: 900px) {
  .hero__line { display: block; white-space: nowrap; }
}
.hero__cta { margin-top: 2rem; border-color: rgb(244 241 230 / .6); color: var(--cream); backdrop-filter: blur(2px); }
.hero__cta:hover { background: var(--cream); border-color: var(--cream); color: var(--bg); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2.25rem; padding: .95rem 2.1rem;
  border: 1px solid rgb(194 189 167 / .45);
  font-size: .7rem; letter-spacing: .3em; text-decoration: none; text-transform: uppercase;
  color: var(--brand-soft);
  transition: background-color .5s, color .5s, border-color .5s;
}
.btn-outline:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--bg); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  color: rgb(244 241 230 / .6); font-size: .55rem; letter-spacing: .34em; text-decoration: none;
}
.scroll-cue__line { display: block; width: 1px; height: 2.5rem; overflow: hidden; background: rgb(244 241 230 / .2); }
.scroll-cue__line::after {
  content: ""; display: block; width: 1px; height: 1rem; background: rgb(244 241 230 / .75);
  animation: scroll-cue 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(-100%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(250%); }
}

/* ── Abertura ──────────────────────────────────────────────────────
   Estado inicial (só com html.intro-on, que o JS controla):
   véu escuro por cima da foto e marca/título escondidos. A flor
   grande fica numa camada fixa e "pousa" no lugar do símbolo.
   Sem JS ou com "reduzir movimento": tudo já aparece no estado final. */
.intro { display: none; }
.intro-on .intro {
  display: flex; position: fixed; inset: 0; z-index: 60;
  align-items: center; justify-content: center; pointer-events: none;
}
.intro__flower {
  width: min(64vh, 78vw); height: auto; overflow: visible;
  transform-origin: 0 0; will-change: transform;
}
.petal { will-change: transform, opacity; }
.petal__fill { opacity: 0; }
.intro-on .hero__veil { opacity: 1; }
.intro-on .logo-symbol,
.intro-on .logo-wordmark,
.intro-on .hero__line,
.intro-on .hero__cta,
.intro-on .scroll-cue { opacity: 0; }

/* ───────────── HISTÓRIA (moldura do book: fundo areia + ikat, foto grande, tarja verde) ───────────── */
.historia {
  --tarja: #2b3829;
  position: relative; isolation: isolate; overflow: hidden;
  background:
    url("../img/ikat-claro.webp") center bottom / auto 46% repeat-x,
    radial-gradient(ellipse 75% 85% at 42% 38%, #f4f3ef 0%, #e2e0d7 45%, #bdb8a3 100%);
  display: flex; flex-direction: column;
  padding-bottom: 4.5rem;
}
.historia__tarja {
  order: -1; position: relative; z-index: 1;
  background: var(--tarja); color: var(--cream);
  padding: 3.25rem 1.5rem 5.5rem; text-align: center;
}
/* faixa de ikat verde no pé da tarja, como no book */
.historia__tarja::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3rem;
  background: url("../img/ikat.webp") center / auto 100% repeat-x;
}
.historia__inner { max-width: 22rem; margin: 0 auto; }
.historia__flor { width: 2.4rem; height: auto; margin: 0 auto 1.6rem; fill: var(--cream); }
.historia__title {
  font-weight: 600; text-transform: uppercase;
  font-size: .95rem; line-height: 2; letter-spacing: .48em; margin-right: -.48em;
}
.historia__frases { margin-top: 1.5rem; font-size: 1rem; line-height: 1.75; color: rgb(244 241 230 / .9); }
.historia__frases span { display: block; }
.historia__photo { position: relative; margin: 1.5rem 1rem 0; }
.historia__photo img { width: 100%; aspect-ratio: 1920 / 1068; object-fit: cover; filter: var(--photo-filter); }
.historia .historia__legenda { text-align: left; }

@media (min-width: 900px) {
  .historia {
    display: block; padding: 0;
    height: min(56.25vw, 100vh); min-height: 600px;
  }
  /* a foto ocupa quase tudo, com a margem do book em volta */
  .historia__photo { position: absolute; inset: 9.3% 5.2%; margin: 0; }
  .historia__photo img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 40% 50%; }
  /* a tarja corta a foto de cima a baixo, sem cobrir o encontro do rio com o mar */
  .historia__tarja {
    position: absolute; top: 0; bottom: 0; left: 63%; width: 28%;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 2rem 9.3%;
  }
  .historia__tarja::after { height: 9.3%; }
  .historia__inner { max-width: 24rem; }
  .historia__flor { width: clamp(2.2rem, 3vw, 3rem); margin-bottom: clamp(1.4rem, 2.6vw, 2.4rem); }
  .historia__title { font-size: clamp(.85rem, 1.1vw, 1.15rem); }
  .historia__frases { margin-top: clamp(1.2rem, 2.2vw, 2rem); font-size: clamp(.95rem, 1.1vw, 1.15rem); }
}

/* ───────────── CONCEITO ───────────── */
.conceito {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--bg); padding: 5rem 0 3.5rem;
}
@media (min-width: 768px) { .conceito { padding: 6rem 0 0; } }
.conceito__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg-2), transparent 10rem),
              linear-gradient(rgb(7 23 20 / .8), rgb(7 23 20 / .8)),
              url("../img/bg-nusa-1920.webp") center / cover;
}
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .3em; color: var(--sage); }
@media (min-width: 768px) { .eyebrow { font-size: .75rem; } }
.conceito h2 {
  margin-top: 1.5rem; max-width: 46rem;
  font-weight: 300; text-transform: uppercase; color: #e9e5d8;
  font-size: clamp(1.75rem, 7vw, 3.625rem); line-height: 1.09; letter-spacing: .075em;
}
@media (min-width: 768px) { .conceito h2 { margin-top: 2rem; } }
.copy { font-size: var(--body-copy); line-height: 1.68; color: #c7cfc5; }
.copy--light { color: #e2e7de; }
.copy--muted { color: #b7c2b7; }
.copy strong { font-weight: 300; color: var(--cream-2); }

.split { position: relative; margin-top: 3.5rem; }
.split__text { padding: 0 1.5rem; max-width: 72rem; margin: 0 auto; }
.split figure { margin-top: 2.5rem; width: 100%; overflow: hidden; position: relative; }
@media (min-width: 768px) {
  .split { margin-top: 5rem; }
  .split__text { padding: 0 4rem; }
}
@media (min-width: 1024px) {
  .split { display: grid; align-items: start; gap: 2.5rem; }
  .split--territory { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); }
  .split--living { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); align-items: center; gap: 3rem; margin-top: 6rem; }
  .split__text { margin: 0; padding: 0 0 0 4rem; max-width: none; }
  .split--territory .split__text { padding-top: 8vh; }
  .split figure { margin-top: 0; }
}
.split--territory .copy { max-width: 26.25rem; }
.split--living .split__text > * + * { margin-top: 1.75rem; }
.split--living .copy { max-width: 31rem; }

.aerial img {
  width: 100%; height: 46vh; max-height: 520px; object-fit: cover; filter: var(--photo-filter);
}
@media (min-width: 640px) { .aerial img { height: 54vh; } }
@media (min-width: 1024px) { .aerial img { height: 66vh; max-height: 680px; } }
.aerial::after {
  content: ""; position: absolute; inset: 50% 0 0; pointer-events: none;
  background: linear-gradient(to top, rgb(7 23 20 / .75), rgb(7 23 20 / .2), transparent);
}
.aerial figcaption { position: absolute; z-index: 1; left: 0; bottom: 0; padding: 0 1.5rem 2rem; }
@media (min-width: 768px) { .aerial figcaption { padding: 0 2.5rem 2.75rem; } }
.metric {
  white-space: nowrap; text-transform: uppercase; color: var(--cream-2);
  font-size: clamp(3.25rem, 4.4vw, 4.25rem); line-height: 1; letter-spacing: .02em;
}
.metric sup { font-size: .42em; vertical-align: super; line-height: 0; }
.metric-label {
  display: block; margin-top: 1rem; padding-top: .75rem; max-width: 22rem;
  border-top: 1px solid rgb(194 189 167 / .35);
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #d6d0c0;
}
.living-photo img { width: 100%; aspect-ratio: 1920 / 1477; object-fit: cover; }

.tag {
  display: inline-block; padding: .5rem .9rem;
  border: 1px solid rgb(194 189 167 / .45); border-radius: 999px;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand);
}
.living-title {
  margin: 0; font-weight: 300; text-transform: uppercase; color: #e9e5d8;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.18; letter-spacing: .07em;
}
.split--living .split__text > .tag + .living-title { margin-top: 1.25rem; }

/* Faixa de bem-estar (foto de ioga) com título à esquerda */
.bemestar { position: relative; margin-top: 4rem; }
@media (min-width: 768px) { .bemestar { margin-top: 6rem; } }
.bemestar__photo { position: relative; overflow: hidden; }
.bemestar__photo img { width: 100%; height: 62vh; min-height: 320px; max-height: 820px; object-fit: cover; object-position: 60% 60%; filter: var(--photo-filter); }
.bemestar__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}
.bemestar__content { padding-top: 2rem; padding-bottom: 4rem; }
.bemestar .bemestar__title {
  margin-top: 0; max-width: 26rem; font-weight: 300; text-transform: uppercase; color: var(--cream);
  font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.6; letter-spacing: .16em;
}
.bemestar__texto {
  margin-top: 1.25rem; max-width: 30rem;
  font-size: var(--body-copy); line-height: 1.7; color: rgb(244 241 230 / .85);
}
@media (min-width: 768px) { .bemestar__texto { max-width: min(30rem, 40vw); text-shadow: 0 1px 14px rgb(7 23 20 / .7); } }
.bemestar .bemestar__title sup { font-size: .45em; vertical-align: super; line-height: 0; }
@media (min-width: 768px) {
  .bemestar__photo img { height: 86vh; }
  /* escurece a esquerda para o título; a vela e a vista ficam livres à direita */
  .bemestar__photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, rgb(7 23 20 / .8) 0%, rgb(7 23 20 / .45) 32%, transparent 58%), linear-gradient(to top, rgb(7 23 20 / .7) 0%, transparent 45%);
  }
  .bemestar__content {
    position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; right: 0;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding-top: 0; padding-bottom: clamp(4rem, 12vh, 8rem); pointer-events: none;
  }
  .bemestar__content > * { pointer-events: auto; }
  .bemestar .bemestar__title { max-width: min(36rem, 44vw); text-shadow: 0 2px 22px rgb(7 23 20 / .6); }
}

/* celular: título → imagem → texto | desktop: imagem à esquerda, título e texto à direita */
.closing {
  display: grid; gap: 2rem; margin-top: 4rem;
  grid-template-areas: "titulo" "foto" "texto";
}
.closing__title { grid-area: titulo; }
.closing figure { grid-area: foto; }
.closing__text { grid-area: texto; }
.closing__destaque { margin-top: 1.25rem; }
@media (min-width: 768px) {
  .closing {
    grid-template-columns: 58fr 42fr; grid-template-rows: auto 1fr;
    grid-template-areas: "foto titulo" "foto texto";
    column-gap: 3.5rem; row-gap: 1.75rem; margin-top: 6rem;
  }
  .closing figure { align-self: start; }
  .closing__title { align-self: start; font-size: clamp(1.3rem, 2vw, 1.95rem); }
  .closing__text { align-self: start; }
}
.closing figure { margin: 0 -6%; overflow: hidden; }
@media (min-width: 768px) { .closing figure { margin: 0; } }
.closing img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.closing .copy { max-width: 32.5rem; }

.pilares__rule { height: 1px; background: rgb(194 189 167 / .3); transform-origin: left center; }
.pilares ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem; padding-top: 1.5rem;
}
@media (min-width: 640px) { .pilares ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .pilares ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 1.25rem; padding-top: 1.75rem; } }
.pilares__num { display: block; font-size: .68rem; letter-spacing: .16em; color: var(--sage); font-variant-numeric: tabular-nums; }
.pilares__name {
  display: block; margin-top: .5rem;
  font-size: .72rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2);
}

/* ───────────── CARROSSEL (perspectivas) ───────────── */
.galeria { margin-top: 4.5rem; }
@media (min-width: 768px) { .galeria { margin-top: 6rem; } }
.galeria__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.galeria__titulo {
  margin: 0; font-weight: 300; text-transform: uppercase; color: #e9e5d8;
  font-size: clamp(1.35rem, 2.6vw, 2.35rem); line-height: 1.18; letter-spacing: .07em;
}
@media (max-width: 480px) { .galeria__count { display: none; } }
.galeria__nav { display: flex; align-items: center; gap: .6rem; }
.galeria__count { white-space: nowrap; margin-right: .5rem; font-size: .7rem; letter-spacing: .2em; color: var(--sage); font-variant-numeric: tabular-nums; }
.galeria__btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid rgb(194 189 167 / .4); border-radius: 50%; background: transparent; color: var(--brand);
  cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.galeria__btn svg { width: 1.1rem; height: 1.1rem; }
.galeria__btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.galeria__btn:disabled { opacity: .3; cursor: default; }
.galeria__track {
  display: flex; gap: 1rem; margin-top: 1.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem));
  padding-inline: max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem));
  scrollbar-width: none; cursor: grab;
}
@media (min-width: 768px) {
  .galeria__track {
    gap: 1.5rem;
    scroll-padding-inline: max(4rem, calc((100vw - 72rem) / 2 + 4rem));
    padding-inline: max(4rem, calc((100vw - 72rem) / 2 + 4rem));
  }
}
.galeria__track::-webkit-scrollbar { display: none; }
.galeria__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.galeria__track:focus-visible { outline-offset: -2px; }
.galeria__slide { flex: 0 0 auto; scroll-snap-align: start; }
.galeria__slide img {
  height: min(58vh, 560px); min-height: 240px; width: auto; max-width: 86vw; object-fit: cover;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.galeria__progress { position: relative; height: 1px; margin-top: 1.75rem; background: rgb(194 189 167 / .2); overflow: hidden; }
.galeria__progress span {
  position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--brand);
  transform-origin: left center; transform: scaleX(.1); transition: transform .3s var(--ease-out);
}
.galeria__nota { margin-top: .9rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(194 189 167 / .5); }

/* ───────────── LEGENDAS DAS IMAGENS ─────────────
   Só o nome do ambiente, na parte inferior da foto, com uma sombra
   suave (degradê + text-shadow) para garantir a leitura. */
.living-photo, .closing figure, .galeria__slide figure { position: relative; }
.legenda {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 3rem 1.25rem .9rem; text-align: right; pointer-events: none;
  background: linear-gradient(to top, rgb(7 23 20 / .55) 0%, rgb(7 23 20 / .2) 55%, transparent 100%);
  color: var(--cream); font-size: .66rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgb(7 23 20 / .7);
}
@media (min-width: 768px) { .legenda { padding: 4rem 1.5rem 1.1rem; font-size: .7rem; } }
.hero__legenda {
  position: absolute; z-index: 1; right: 1.5rem; bottom: 1.25rem; margin: 0;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgb(244 241 230 / .8);
  text-shadow: 0 1px 8px rgb(7 23 20 / .7);
}
@media (min-width: 768px) { .hero__legenda { right: 2rem; bottom: 1.75rem; } }
.intro-on .hero__legenda { opacity: 0; }

/* ───────────── CTAs ao longo da página ───────────── */
.cta { margin-top: 2rem; letter-spacing: .22em; text-align: center; }
@media (max-width: 767px) { .cta { display: flex; width: 100%; letter-spacing: .16em; padding-inline: 1rem; } }
@media (min-width: 768px) { .cta { white-space: nowrap; } }
.closing__text .copy { max-width: 32.5rem; }
.galeria__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.galeria__foot .cta { margin-top: 1.25rem; }
.bemestar__content .cta { border-color: rgb(244 241 230 / .55); color: var(--cream); }
.bemestar__content .cta:hover { background: var(--cream); border-color: var(--cream); color: var(--bg); }

/* CTA fixo */
.cta-fixo {
  position: fixed; z-index: 45; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.25rem; background: var(--wood); color: var(--cream);
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 30px rgb(7 23 20 / .35);
  opacity: 0; transform: translateY(140%); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), background-color .3s;
}
.cta-fixo:hover { background: var(--wood-dark); }
.cta-fixo.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) {
  .cta-fixo { left: auto; right: 1.5rem; bottom: 1.5rem; padding: .95rem 1.6rem; border-radius: 999px; }
}
.whatsapp { bottom: 5.25rem; }
@media (min-width: 768px) { .whatsapp { bottom: 5rem; right: 1.5rem; } }

/* ───────────── FORMULÁRIO ───────────── */
.cadastro { display: grid; grid-template-columns: 1fr; background: var(--sand); }
@media (min-width: 768px) { .cadastro { grid-template-columns: 35% 65%; } }
.cadastro__photo { min-height: 240px; position: relative; overflow: hidden; }
.cadastro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cadastro__panel { position: relative; overflow: hidden; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .cadastro__panel { padding: 5rem 4rem; } }
.cadastro__leaf {
  position: absolute; bottom: -4rem; left: 50%; width: 420px; max-width: none;
  transform: translateX(-25%); opacity: .25; mix-blend-mode: multiply; pointer-events: none;
}
.cadastro__inner { position: relative; max-width: 30rem; margin: 0 auto; }
.cadastro h2 {
  text-align: center; font-weight: 300; text-transform: uppercase; color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.18; letter-spacing: .07em;
}
.cadastro__lead {
  margin-top: 1rem; text-align: center; font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; line-height: 1.6; color: var(--wood);
}
.form { margin-top: 2.5rem; display: grid; gap: 1rem; }
.field input {
  width: 100%; padding: 1rem 1.25rem;
  border: 1px solid rgb(7 23 20 / .12); border-radius: 0; background: var(--field);
  font: inherit; font-size: .9rem; letter-spacing: .06em; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #6f6d62; text-transform: uppercase; font-size: .72rem; letter-spacing: .18em; }
.field input:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 1px var(--wood); }
.field input[aria-invalid="true"] { border-color: #7a2e20; box-shadow: 0 0 0 1px #7a2e20; }
.field .iti { width: 100%; }
.form__legal { padding-top: .25rem; font-size: .66rem; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form__legal a { color: var(--wood-dark); text-underline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-solid {
  width: 100%; padding: 1rem 1.5rem; border: 0; border-radius: 0; cursor: pointer;
  background: var(--wood); color: var(--cream);
  font: inherit; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  transition: background-color .3s;
}
.btn-solid:hover { background: var(--wood-dark); }
.btn-solid:disabled { opacity: .6; cursor: progress; }
.form__status { min-height: 1.25rem; text-align: center; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #7a2e20; }
.cadastro__brand { margin-top: 3.5rem; display: flex; justify-content: center; }
.cadastro__brand img { height: 3rem; width: auto; opacity: .9; }

/* ───────────── RODAPÉ ───────────── */
.footer { background: var(--bg); color: rgb(194 189 167 / .7); padding: 2.5rem 0 3rem; font-size: .7rem; letter-spacing: .08em; }
.footer__row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer a { text-decoration: none; text-transform: uppercase; letter-spacing: .18em; }
.footer a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: 1.25rem; max-width: 52rem; line-height: 1.7; color: rgb(194 189 167 / .5); }

/* ───────────── WHATSAPP (só aparece se o número for configurado) ───────────── */
.whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; border-radius: 999px;
  background: var(--wood); color: var(--cream); text-decoration: none;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgb(7 23 20 / .35);
}
.whatsapp[hidden] { display: none; }
.whatsapp svg { width: 1.1rem; height: 1.1rem; }

/* ───────────── REVELAÇÃO NA ROLAGEM ─────────────
   Funciona descendo e subindo: o JS marca de que lado o elemento
   entra (.from-top quando ele vem de cima, ao subir a página) e
   tira o .is-in quando ele sai da tela, para animar de novo. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: var(--rd, 0s);
  }
  .js .reveal.from-top { transform: translateY(-28px); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-clip { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal-clip.from-top { clip-path: inset(0 100% 0 0); }
  .js .reveal-clip.is-in { clip-path: inset(0 0 0 0); }
  .js .reveal-clip figcaption { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease-out) .7s, transform 1.1s var(--ease-out) .7s; }
  .js .reveal-clip.is-in figcaption { opacity: 1; transform: none; }
  .js .pilares__rule.reveal { transform: scaleX(0); opacity: 1; transition: transform 1.4s var(--ease-out); }
  .js .pilares__rule.reveal.is-in { transform: scaleX(1); }
  /* fotos grandes: leve zoom ao entrar */
  .js figure.reveal img, .js .reveal-clip img { transform: scale(1.06); transition: transform 1.8s var(--ease-out); }
  .js figure.reveal.is-in img, .js .reveal-clip.is-in img { transform: none; }
}

/* tarja da 2ª dobra: desce de cima para baixo (e sobe ao voltar a página) */
@media (prefers-reduced-motion: no-preference) {
  .js .historia__tarja.reveal-clip { clip-path: inset(0 0 100% 0); }
  .js .historia__tarja.reveal-clip.from-top { clip-path: inset(100% 0 0 0); }
  .js .historia__tarja.reveal-clip.is-in { clip-path: inset(0 0 0 0); }
  .js .historia__inner { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-out) .6s, transform 1.1s var(--ease-out) .6s; }
  .js .historia__tarja.is-in .historia__inner { opacity: 1; transform: none; }
}

/* ───────────── LUPA + IMAGEM AMPLIADA (carrossel no celular) ───────────── */
.galeria__zoom {
  position: absolute; z-index: 4; top: .75rem; right: .75rem;
  display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid rgb(244 241 230 / .55); border-radius: 50%;
  background: rgb(7 23 20 / .45); color: var(--cream); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.galeria__zoom svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 767px) {
  .galeria__zoom { display: grid; }
  .galeria__slide figure { cursor: zoom-in; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #050f0d; opacity: 0; transition: opacity .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; padding: 4rem .5rem 0; touch-action: pinch-zoom; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__cap { min-height: 4.75rem; padding: 1rem 4rem 1.5rem; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .66rem; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid rgb(203 196 173 / .45); border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { bottom: 1rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__close svg, .lightbox__nav svg { width: 1.2rem; height: 1.2rem; }
@media (min-width: 768px) { .lightbox__nav { bottom: auto; top: 50%; transform: translateY(-50%); } .lightbox__stage { padding: 4rem 5rem 0; } }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
html.lightbox-open .cta-fixo { visibility: hidden; }
