/* Residencial Solace · book digital
   Paleta tirada do próprio book: tijolo, madeira, areia e o dourado das etiquetas. */

:root {
  --ink: #12100e;
  --ink-2: #1a1714;
  --ink-3: #25201b;
  --ivory: #f4eee6;
  --ivory-2: #e9e1d5;
  --on-dark: #f4eee6;
  --on-dark-muted: #b9afa3;
  --on-light: #1e1a16;
  --on-light-muted: #5f564c;
  --gold: #c9a36a;
  --gold-hi: #dcbb84;
  --gold-ink: #7e5d2b;
  --plan-bg: #e8e8e8;
  --line-dark: rgb(244 238 230 / 0.14);
  --line-light: rgb(30 26 22 / 0.14);
  --glass: rgb(18 16 14 / 0.6);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-ui: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 1rem/1.65 var(--font-ui);
  font-variant-numeric: lining-nums; /* algarismos de altura uniforme também nos títulos serifados */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--gold-ink); }
::selection { background: var(--gold); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--gold); color: var(--ink);
  font-weight: 500; text-decoration: none; transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  font: 500 0.75rem/1.2 var(--font-ui);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--center { justify-content: center; }
.section--light .eyebrow { color: var(--gold-ink); }

.h2 {
  font: 300 clamp(2.4rem, 5vw, 4.6rem)/1.02 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font: 400 clamp(1.9rem, 3vw, 2.75rem)/1.08 var(--font-display);
  letter-spacing: -0.005em;
}
.h2 em, .h3 em, .film__statement em, .contact__title em { font-style: italic; color: var(--gold-hi); }
.section--light .h2 em { color: var(--gold-ink); }
/* Algarismos dentro de títulos serifados: usa a fonte sem serifa, com desenho padrão. */
.num { font-family: var(--font-ui); font-weight: 300; font-style: normal; font-size: 0.86em; letter-spacing: 0; }
.lead {
  margin-top: 24px; max-width: 46ch;
  font: 300 clamp(1.0625rem, 1.4vw, 1.3125rem)/1.6 var(--font-ui);
  color: var(--on-dark);
}
.section--light .lead { color: var(--on-light); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font: 500 0.8125rem/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.75rem; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: rgb(244 238 230 / 0.42); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.section--light .btn--ghost { border-color: rgb(30 26 22 / 0.36); color: var(--on-light); }
.section--light .btn--ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: 50%;
  background: transparent; color: var(--on-dark); cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn--glass {
  background: var(--glass); border-color: rgb(244 238 230 / 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

.text-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0; margin-top: 18px;
  border: 0; background: none; cursor: pointer;
  font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  transition: color 0.25s var(--ease);
}
.text-btn svg { width: 16px; height: 16px; }
.text-btn:hover { color: var(--gold-hi); }

.chip {
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: transparent; cursor: pointer;
  font: 500 0.8125rem/1 var(--font-ui); letter-spacing: 0.04em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.section--light .chip { border-color: rgb(30 26 22 / 0.24); }
.section--light .chip:hover { border-color: var(--gold-ink); }
.section--light .chip[aria-selected="true"] { background: var(--on-light); border-color: var(--on-light); color: var(--ivory); }

/* ---------------------------------------------------------------- brand */
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  color: var(--on-dark); text-decoration: none; line-height: 1;
}
.brand__pre {
  font: 500 0.5625rem/1 var(--font-ui); letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--on-dark-muted); margin: 0 -0.42em 2px 0;
}
.brand__name, .film__title {
  background: linear-gradient(180deg, #ffffff 0%, #e4ddd3 38%, #a49a8e 52%, #f1ebe3 70%, #cfc6ba 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__name { font: 400 1.875rem/0.86 var(--font-display); letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line-dark);
}
.site-header .brand { margin-right: auto; }
.site-nav { display: none; gap: 30px; }
.site-nav a {
  position: relative; padding: 12px 0;
  font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark-muted); text-decoration: none;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--on-dark); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-toggle {
  display: grid; place-content: center; gap: 7px;
  width: 48px; height: 48px; margin-right: -12px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--on-dark); transition: transform 0.35s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1140px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  background: var(--ink);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font: 300 clamp(2rem, 9vw, 3rem)/1.25 var(--font-display);
  color: var(--on-dark); text-decoration: none; padding: 4px 0;
}
.menu nav a:hover { color: var(--gold-hi); }
.menu .btn { align-self: flex-start; }

/* ---------------------------------------------------------------- film */
.film { position: relative; background: var(--ink); }
.film__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; background: var(--ink);
  --win-h: min(133.333vw, 74svh);
}
.js.film-scrub .film { height: 520vh; height: 520svh; }
@media (orientation: portrait) {
  .js.film-scrub .film { height: 440vh; height: 440svh; }
}

.film__poster, .film__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__poster { pointer-events: none; transition: opacity 0.6s var(--ease); }
html:not(.film-scrub) .film__canvas { display: none; }
.film__poster.is-hidden { opacity: 0; }
@media (orientation: portrait) {
  /* Mesma "janela" 3:4 que o canvas desenha no celular. */
  .film__poster img {
    inset: auto;
    top: calc((100svh - var(--win-h)) * 0.38);
    left: 50%; transform: translateX(-50%);
    width: auto; height: var(--win-h); aspect-ratio: 3 / 4;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
  }
}
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(18 16 14 / 0.6) 0%, rgb(18 16 14 / 0) 24%),
    linear-gradient(0deg, rgb(18 16 14 / 0.88) 0%, rgb(18 16 14 / 0.45) 30%, rgb(18 16 14 / 0) 58%),
    linear-gradient(90deg, rgb(18 16 14 / 0.5) 0%, rgb(18 16 14 / 0) 60%);
}

.film__chapter {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: clamp(64px, 13svh, 150px);
  max-width: 980px;
  will-change: opacity, transform;
}
.js.film-scrub .film__chapter { opacity: 0; }
.js.film-scrub .film__chapter--intro { opacity: 1; }
html:not(.film-scrub) .film__chapter:not(.film__chapter--intro) { display: none; }

.film__title {
  display: flex; flex-direction: column; align-items: flex-start;
  font: 300 clamp(5.25rem, 19vw, 15rem)/0.8 var(--font-display);
  letter-spacing: -0.025em; margin-left: -0.04em;
}
.film__pre {
  font: 500 clamp(0.75rem, 1.1vw, 0.9375rem)/1 var(--font-ui);
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--on-dark); -webkit-text-fill-color: var(--on-dark);
  margin: 0 0 clamp(10px, 1.6vw, 22px) 0.3em;
}
.film__lead {
  margin-top: clamp(18px, 2.4vw, 30px);
  font: 300 clamp(1.125rem, 1.9vw, 1.625rem)/1.35 var(--font-ui);
  letter-spacing: 0.02em; color: var(--on-dark);
}
.film__kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.film__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.film__statement {
  max-width: 17ch;
  font: 300 clamp(2.2rem, 5vw, 4.75rem)/1.04 var(--font-display);
  letter-spacing: -0.01em; color: var(--on-dark);
  text-wrap: balance;
}
.film__chapter--final .film__statement { max-width: 19ch; }
.film__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.altimeter {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: 500 0.6875rem/1 var(--font-ui); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--on-dark-muted);
  --track: 30svh;
}
.altimeter__track { position: relative; display: block; width: 1px; height: var(--track); background: rgb(244 238 230 / 0.24); }
.altimeter__track::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 100%;
  background: var(--gold); transform-origin: bottom; transform: scaleY(var(--p, 0));
}
.altimeter__dot {
  position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgb(201 163 106 / 0.18);
  transform: translateY(calc((1 - var(--p, 0)) * var(--track)));
}
html:not(.film-scrub) .altimeter { display: none; }

.film__cue {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 0.6875rem/1 var(--font-ui); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: calc(1 - var(--p, 0) * 30);
  pointer-events: none;
}
.film__cue i { display: block; width: 1px; height: 38px; background: linear-gradient(180deg, var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html:not(.film-scrub) .film__cue { display: none; }

.film__loading { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transition: opacity 0.8s var(--ease); }
.film__loading i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--load, 0)); transition: transform 0.4s var(--ease); }
.film.is-loaded .film__loading { opacity: 0; }

@media (orientation: portrait) {
  .film__veil {
    background:
      linear-gradient(180deg, rgb(18 16 14 / 0.65) 0%, rgb(18 16 14 / 0) 20%),
      linear-gradient(0deg, rgb(18 16 14 / 0.92) 0%, rgb(18 16 14 / 0.5) 28%, rgb(18 16 14 / 0) 48%);
  }
  .film__chapter { bottom: clamp(56px, 9svh, 110px); }
  .film__chapter--intro { bottom: clamp(96px, 13svh, 140px); }
  .film__statement { font-size: clamp(2rem, 8.6vw, 3.4rem); }
  .film__cue i { height: 26px; }
  .altimeter { right: 10px; --track: 20svh; }
  .altimeter span { display: none; }
}

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(96px, 12vw, 176px) 0; }
.section--light { background: var(--ivory); color: var(--on-light); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 860px; }
section[tabindex="-1"]:focus { outline: none; }

/* concept */
.concept__grid { display: grid; gap: 56px; align-items: center; }
.concept__text > p:not(.eyebrow):not(.lead) { margin-top: 20px; max-width: 58ch; color: var(--on-light-muted); }
.concept__figure {
  position: relative; overflow: hidden;
  height: min(110vw, 640px);
  background: #d7cdbf;
}
.concept__figure img { width: 100%; will-change: transform; }
.concept__figure figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font: 500 0.6875rem/1 var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.5);
}
@media (min-width: 1024px) {
  .concept__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(64px, 8vw, 120px); }
  .concept__figure { height: min(86svh, 860px); }
}

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: clamp(80px, 9vw, 128px);
  border-top: 1px solid var(--line-light);
}
.facts li { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px 10px 0; }
.facts__num {
  font: 300 clamp(1.7rem, 2.5vw, 2.5rem)/1.05 var(--font-ui);
  color: var(--on-light); letter-spacing: -0.01em; white-space: nowrap;
}
.facts__num small {
  font: 400 0.8125rem/1 var(--font-ui); letter-spacing: 0.06em;
  color: var(--on-light-muted); margin: 0 0.45em;
}
.facts__label { max-width: 26ch; font-size: 0.9375rem; line-height: 1.5; color: var(--on-light-muted); }
@media (min-width: 1024px) {
  .facts li + li { padding-left: 28px; border-left: 1px solid var(--line-light); }
}

/* ---------------------------------------------------------------- leisure */
.leisure { position: relative; }
.leisure__intro {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: flex-end;
  padding: 160px 0 clamp(72px, 10vw, 128px);
}
.leisure__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.leisure__intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--ink) 2%, rgb(18 16 14 / 0.72) 36%, rgb(18 16 14 / 0.28) 70%, rgb(18 16 14 / 0.6) 100%),
    linear-gradient(90deg, rgb(18 16 14 / 0.55), rgb(18 16 14 / 0) 70%);
}

/* horizontal gallery */
.gallery { position: relative; }
.gallery__sticky { padding: 24px 0 8px; }
.gallery.is-pinned .gallery__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: var(--header-h) 0 24px;
}
.gallery__head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.gallery__count { font: 300 1.25rem/1 var(--font-ui); letter-spacing: 0.04em; color: var(--on-dark-muted); white-space: nowrap; }
.gallery__count span { color: var(--on-dark); }
.gallery__hint { flex: 1; font-size: 0.875rem; color: var(--on-dark-muted); }
.gallery__nav { display: flex; gap: 10px; }
.gallery.is-pinned .gallery__nav { display: none; }

.gallery__track {
  display: flex; gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.gallery:not(.is-pinned) .gallery__track {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; padding-bottom: 8px;
}
.gallery:not(.is-pinned) .gallery__track::-webkit-scrollbar { display: none; }
.gcard { flex: 0 0 auto; width: min(84vw, 420px); scroll-snap-align: start; }
@media (min-width: 1024px) {
  .gcard { width: clamp(340px, 30vw, 540px); }
}
.gcard__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--ink-3); }
.gallery.is-pinned .gcard__media { aspect-ratio: auto; height: min(52svh, calc(30vw * 0.8)); }
.gcard__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gcard__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gcard__btn:hover img { transform: scale(1.045); }
.gcard__inset {
  position: absolute; right: 14px; bottom: 14px; width: 34%; aspect-ratio: 5 / 4;
  padding: 0; border: 2px solid var(--ink); background: var(--ink-3);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.35); cursor: zoom-in; overflow: hidden;
}
.gcard__inset img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gcard__inset:hover img { transform: scale(1.06); }
.gcard__meta { display: grid; gap: 6px; padding-top: 18px; }
.gcard__level { font: 500 0.6875rem/1.2 var(--font-ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.gcard__title { font: 400 clamp(1.6rem, 2.2vw, 2.125rem)/1.1 var(--font-display); }
.gcard__text { max-width: 34ch; font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-muted); }

.gallery__progress { height: 1px; margin-top: 32px; background: var(--line-dark); }
.gallery__progress i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--gp, 0)); }

/* leisure plan explorer */
.leisure-map { padding: clamp(96px, 11vw, 156px) 0 clamp(96px, 12vw, 176px); }
.leisure-map__head p:not(.eyebrow) { margin-top: 14px; color: var(--on-dark-muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.tabpanel { animation: fade-in 0.5s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.plan-scroll { overflow-x: auto; overscroll-behavior-x: contain; background: var(--plan-bg); }
.plan-scroll__hint { display: none; margin-top: 10px; font-size: 0.8125rem; color: var(--on-dark-muted); }
.hotspot-plan { position: relative; }
.hotspot-plan img { width: 100%; }
.hotspot-plan--wide { min-width: 760px; }
@media (max-width: 799px) {
  .plan-scroll__hint { display: block; }
}
.hotspot {
  position: absolute; left: var(--x); top: var(--y);
  width: 46px; height: 46px; padding: 0; margin: -23px 0 0 -23px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.hotspot--lg { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.hotspot::before, .hotspot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold);
}
.hotspot::before { animation: ping 2.6s var(--ease) infinite; }
.hotspot::after { opacity: 0; transition: opacity 0.25s var(--ease); box-shadow: 0 0 0 4px rgb(201 163 106 / 0.35); }
.hotspot:hover::after, .hotspot:focus-visible::after { opacity: 1; }
@keyframes ping { 0% { transform: scale(0.85); opacity: 0.95; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.hotspot__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  padding: 8px 12px; white-space: nowrap;
  font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.06em; color: var(--on-dark);
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.hotspot:hover .hotspot__tip, .hotspot:focus-visible .hotspot__tip { opacity: 1; transform: translate(-50%, 0); }

.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; margin-top: 28px; }
.legend button, .tiles button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line-dark);
  background: none; text-align: left; cursor: pointer;
  font: 400 1.0625rem/1.2 var(--font-ui);
  transition: color 0.25s var(--ease);
}
.legend b, .tiles b, .mini-plan figcaption b {
  font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.12em; color: var(--gold);
}
.legend b { width: 24px; }
.legend button:hover, .tiles button:hover { color: var(--gold-hi); }

.mini-plans { display: grid; gap: 28px; }
@media (min-width: 900px) { .mini-plans { grid-template-columns: 1fr 1fr; } }
.mini-plan .hotspot-plan { background: var(--plan-bg); }
.mini-plan figcaption { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 1.0625rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tiles button { flex-direction: column; align-items: stretch; gap: 0; border: 0; min-height: 0; }
.tiles img { aspect-ratio: 5 / 4; width: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.tiles button > span { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.tiles li { overflow: hidden; }
.tiles button:hover img { transform: scale(1.03); }

/* ---------------------------------------------------------------- residences */
.mosaic { display: grid; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(48px, 6vw, 80px); }
.mosaic__item { position: relative; overflow: hidden; background: var(--ivory-2); }
.mosaic__item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mosaic__item img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.mosaic__item button:hover img { transform: scale(1.035); }
.mosaic__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 4px; padding: 56px 22px 20px;
  background: linear-gradient(0deg, rgb(18 16 14 / 0.78), rgb(18 16 14 / 0));
  color: #fff; font-size: 0.9375rem; line-height: 1.45; pointer-events: none;
}
.mosaic__item figcaption b { font: 400 1.5rem/1.1 var(--font-display); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.9fr 1fr; grid-template-rows: auto auto; }
  .mosaic__item--lg { grid-row: span 2; }
  .mosaic__item--lg img { aspect-ratio: auto; min-height: 100%; }
}

/* plans */
.plans { margin-top: clamp(80px, 10vw, 136px); }
.plans__head { display: grid; gap: 4px; }
.plans__head .tabs { margin-bottom: 36px; }
.plan { display: grid; gap: 36px; align-items: center; }
.plan__figure {
  position: relative; display: grid; place-items: center;
  width: 100%; padding: clamp(16px, 3vw, 40px);
  border: 0; background: var(--plan-bg); cursor: zoom-in;
}
.plan__figure img { width: auto; max-width: 100%; max-height: min(74svh, 760px); object-fit: contain; }
.plan__figure--wide img { max-height: min(64svh, 640px); }
.plan__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  font: 500 0.6875rem/1 var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark); background: rgb(18 16 14 / 0.78);
  transition: background-color 0.25s var(--ease);
}
.plan__zoom svg { width: 14px; height: 14px; }
.plan__figure:hover .plan__zoom { background: var(--ink); }

.plan__floor { font: 500 0.75rem/1.3 var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.section--light .plan__floor { color: var(--gold-ink); }
.plan__title { margin-top: 14px; font: 400 clamp(2rem, 3.2vw, 2.9rem)/1.05 var(--font-display); }
.plan__sub { margin-top: 8px; font-size: 1rem; color: var(--on-dark-muted); }
.section--light .plan__sub { color: var(--on-light-muted); }
.plan__area {
  margin-top: 26px;
  font: 300 clamp(2.4rem, 4.2vw, 3.6rem)/1 var(--font-ui); letter-spacing: -0.02em;
}
.plan__area small { font: 400 1rem/1 var(--font-ui); letter-spacing: 0.04em; color: var(--on-dark-muted); margin: 0 0.2em; }
.section--light .plan__area small { color: var(--on-light-muted); }
.plan__features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.plan__features li {
  padding: 9px 14px; border: 1px solid var(--line-dark);
  font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase;
}
.section--light .plan__features li { border-color: var(--line-light); }
.plan__position { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.plan__position p { display: grid; gap: 6px; max-width: 30ch; font-size: 0.875rem; line-height: 1.5; color: var(--on-dark-muted); }
.plan__position p b { font: 500 0.8125rem/1.2 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); }
.section--light .plan__position p { color: var(--on-light-muted); }
.section--light .plan__position p b { color: var(--on-light); }
.plan__cta { margin-top: 32px; }
.plans__legal { margin-top: 28px; max-width: 72ch; font-size: 0.8125rem; line-height: 1.55; color: var(--on-dark-muted); }
.section--light .plans__legal { color: var(--on-light-muted); }
@media (min-width: 1024px) {
  .plans__head { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .plans__head .tabs { justify-content: flex-end; margin: 0; }
  .plans__head { margin-bottom: 40px; }
  .plan { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}

/* unit position diagram (posição no pavimento) */
.stack { display: grid; gap: 4px; width: 46px; flex: none; color: var(--on-dark-muted); }
.section--light .stack { color: var(--on-light-muted); }
.stack__u {
  display: grid; place-items: center; height: 24px;
  border: 1px solid currentColor; opacity: 0.6;
  font: 500 0.75rem/1 var(--font-ui);
}
.stack__u--big { height: 36px; width: 120%; }
.stack__gap { display: block; height: 14px; }
.stack__u.is-on { opacity: 1; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.section--light .stack__u.is-on { background: var(--on-light); border-color: var(--on-light); color: var(--ivory); }

/* apartment room tour */
.tour { display: grid; gap: 56px; margin-top: clamp(48px, 6vw, 80px); }
.tour__media { display: none; }
.tour__step { padding-bottom: 56px; }
.tour__inline { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 22px; }
.tour__num { font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.26em; color: var(--gold); }
.tour__title { margin-top: 12px; font: 300 clamp(2.1rem, 3.6vw, 3.4rem)/1.04 var(--font-display); }
.tour__text { margin-top: 12px; max-width: 34ch; font-size: 1.0625rem; color: var(--on-dark-muted); }
@media (min-width: 1024px) {
  .tour { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .tour__media {
    display: block; position: sticky; order: 2;
    top: calc(var(--header-h) + 7svh);
    height: min(70svh, 700px); overflow: hidden; background: var(--ink-3);
  }
  .tour__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity 0.9s var(--ease), transform 1.8s var(--ease-out);
  }
  .tour__media img.is-active { opacity: 1; transform: none; }
  .tour__inline { display: none; }
  .tour__step {
    min-height: 72svh; display: flex; flex-direction: column; justify-content: center;
    padding: 0; opacity: 0.38; transition: opacity 0.6s var(--ease);
  }
  .tour__step.is-active { opacity: 1; }
  .tour__steps { padding-bottom: 8svh; }
}

/* ---------------------------------------------------------------- location */
.location__grid { display: grid; gap: 48px; align-items: center; }
.location__address { display: grid; gap: 4px; margin: 34px 0 30px; font-style: normal; color: var(--on-light-muted); }
.location__street { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--font-display); color: var(--on-light); }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ivory-2); }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgb(18 16 14 / 0.45), rgb(18 16 14 / 0) 55%);
  transition: opacity 0.4s var(--ease);
}
.map__btn { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1; }
.map iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.map.is-live::after { opacity: 0; }
@media (min-width: 1024px) {
  .location__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(56px, 7vw, 112px); }
}

/* ---------------------------------------------------------------- contact */
.contact {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(128px, 16vw, 220px) 0;
}
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgb(18 16 14 / 0.62), rgb(18 16 14 / 0.9) 70%);
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font: 300 clamp(3.75rem, 11vw, 9rem)/0.92 var(--font-display); letter-spacing: -0.02em; }
.contact .lead { margin-inline: auto; text-align: center; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
@media (max-width: 559px) {
  .contact__actions { flex-direction: column; align-items: stretch; width: min(100%, 360px); }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding: 64px 0 calc(48px + env(safe-area-inset-bottom));
  background: #0c0a09; color: var(--on-dark-muted); font-size: 0.875rem;
  border-top: 1px solid var(--line-dark);
}
.footer__grid { display: grid; gap: 28px; align-items: start; }
.brand--footer { align-self: start; justify-self: start; }
.footer__info { display: grid; gap: 10px; max-width: 64ch; }
.footer__legal { font-size: 0.8125rem; line-height: 1.55; }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: auto 1fr; gap: 56px; }
  .brand--footer { align-items: flex-end; }
}

/* ---------------------------------------------------------------- mobile bar */
.mobile-bar {
  position: fixed; z-index: 40; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgb(244 238 230 / 0.14);
  transform: translateY(calc(100% + 40px)); transition: transform 0.5s var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (max-width: 767px) { .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(12 10 9 / 0.97); color: var(--on-dark);
}
.lightbox::backdrop { background: rgb(12 10 9 / 0.75); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__stage {
  position: relative; display: grid; place-items: center; min-height: 0;
  padding: 72px 80px 12px; overflow: hidden;
}
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox__img.is-swapping { opacity: 0.25; }
.lightbox__stage.is-plan .lightbox__img { cursor: zoom-in; }
.lightbox__stage.is-zoomed { place-items: start center; overflow: auto; overscroll-behavior: contain; }
.lightbox__stage.is-zoomed .lightbox__img { max-width: none; max-height: none; width: min(1800px, 220%); cursor: zoom-out; }
.lightbox__bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 14px 80px calc(22px + env(safe-area-inset-bottom));
}
.lightbox__caption { display: grid; gap: 4px; }
.lightbox__caption b { font: 400 1.5rem/1.15 var(--font-display); }
.lightbox__caption span { font-size: 0.9375rem; color: var(--on-dark-muted); }
.lightbox__count { font: 500 0.75rem/1 var(--font-ui); letter-spacing: 0.2em; color: var(--on-dark-muted); white-space: nowrap; }
.lightbox__hint {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  font: 500 0.6875rem/1 var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted);
}
.lightbox__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 767px) {
  .lightbox__stage { padding: 64px 10px 8px; }
  .lightbox__bar { padding-inline: 18px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; }
  .lightbox__prev { left: auto; right: 72px; }
  .lightbox__bar { padding-right: 140px; }
}

/* ---------------------------------------------------------------- reveal */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(10% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hotspot::before { animation: none; opacity: 0.9; }
}
