/* ==========================================================================
   Diamond Sky | Acervo Imóveis — versão 4 "Crepúsculo"
   Identidade tirada do céu da fachada ao entardecer: índigo, ameixa e rosa,
   areia e creme. O arco (janela do edifício) é a forma que organiza a página.
   Fontes locais: TeX Gyre Pagella (títulos) e Poppins (texto).
   ========================================================================== */
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PoppinsSite"; src: url("../fonts/poppins-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PoppinsSite"; src: url("../fonts/poppins-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PoppinsSite"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --indigo: #161a38;
  --dusk: #262a57;
  --plum: #4a3f6b;
  --rose: #c98f8c;
  --peach: #ecc3a4;
  --sand: #f3eadf;
  --sand-2: #e8dccb;
  --cream: #fbf7f0;
  --ink: #1a1c30;
  --lime: #bdd650;
  --lime-hi: #cde266;
  --muted: #666376;
  --on-dark: #d9d5e8;
  --line: rgba(26, 28, 48, .16);
  --line-d: rgba(255, 255, 255, .2);
  --serif: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "PoppinsSite", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gut: 22px;
  --sec-y: clamp(84px, 11vw, 156px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --arch: 999px 999px 20px 20px;
}
@media (min-width: 900px) { :root { --gut: 56px; --header-h: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.8; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .85); border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.65; }
.opt { font-weight: 300; font-size: .85em; color: var(--muted); margin-left: .4em; }
.note { font-size: .8rem; line-height: 1.7; color: var(--muted); max-width: 72ch; margin-top: 36px; }
.plain { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3.h2, .floor-num { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
h2, h3.h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.1; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 500; }
.intro { font-size: 1.0625rem; line-height: 1.85; max-width: 52ch; color: var(--muted); margin-top: 22px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 32px; border: 1px solid transparent; border-radius: 999px; font-family: var(--sans); font-weight: 500; font-size: .875rem; letter-spacing: .02em; line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 22px; font-size: .8rem; }
.btn-lg { min-height: 62px; padding: 0 40px; font-size: .95rem; }
.btn-wa { background: var(--lime); color: var(--indigo); }
.btn-wa:hover { background: var(--lime-hi); }
.btn-primary { background: var(--indigo); color: #fff; width: 100%; position: relative; }
.btn-primary:hover { background: var(--dusk); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; color: var(--indigo); border-color: #fff; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cabeçalho */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color .35s, backdrop-filter .35s, transform .35s var(--ease); }
.site-header.solid, body.menu-open .site-header { background: rgba(22, 26, 56, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 28px; transition: height .35s var(--ease); }
.site-header.solid .header-in { height: 72px; }
.brand img { height: 52px; width: auto; transition: height .35s var(--ease); }
@media (min-width: 900px) { .brand img { height: 70px; } .site-header.solid .brand img { height: 54px; } }
.nav { display: none; margin-left: auto; gap: 36px; font-size: .84rem; font-weight: 400; letter-spacing: .03em; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--peach), var(--peach)) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover, .nav a.on { background-size: 100% 1px; }
.site-header .btn-sm.btn-wa { margin-left: auto; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.site-header .btn-sm.btn-wa:hover { background: var(--lime); color: var(--indigo); border-color: var(--lime); }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; height: 1px; background: #fff; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 899px) {
  .site-header .btn-sm { display: none; }
  .menu-btn { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: rgba(22, 26, 56, .98); padding: 6px var(--gut) 28px; margin: 0; font-size: 1.05rem; transform: translateY(-120%); transition: transform .4s var(--ease); display: flex; visibility: hidden; }
  body.menu-open .nav { transform: none; visibility: visible; }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line-d); background: none; }
  .nav a.on { color: var(--peach); }
  .site-header.hide { transform: translateY(-100%); }
}
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } .site-header .btn-sm.btn-wa { margin-left: 0; } }

/* ============ HERO ============ */
.hero { position: relative; color: #fff; overflow: hidden; padding: calc(var(--header-h) + 24px) 0 0; background: radial-gradient(110% 80% at 88% 8%, #74528c 0%, rgba(116, 82, 140, 0) 58%), radial-gradient(90% 70% at 6% 102%, #8c5a70 0%, rgba(140, 90, 112, 0) 58%), linear-gradient(172deg, #1d2148 0%, #161a38 72%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 24s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; right: -140px; top: 4%; background: #8a62a8; }
.o2 { width: 420px; height: 420px; left: -120px; bottom: -80px; background: #b87884; animation-duration: 30s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-50px, 40px, 0) scale(1.12); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr; gap: 56px; padding-bottom: 40px; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.3rem); line-height: 1.02; text-wrap: balance; }
.hero .lead { margin-top: 28px; font-size: 1.0625rem; line-height: 1.85; color: #e1deee; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.arch { position: relative; width: 100%; max-width: 460px; aspect-ratio: 5 / 7; justify-self: center; }
.arch-line { position: absolute; inset: -14px -14px 0 -14px; width: calc(100% + 28px); height: calc(100% + 14px); overflow: visible; }
.arch-line path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.arch-img { height: 100%; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--dusk); }
.arch-img img { width: 100%; height: 100%; object-fit: cover; object-position: 16% 50%; }
.seal { position: absolute; left: -44px; bottom: 16%; width: 132px; height: 132px; border-radius: 50%; background: var(--peach); color: var(--indigo); display: grid; place-items: center; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 48s linear infinite; }
.ring text { font-family: var(--sans); font-size: 11px; font-weight: 500; fill: var(--indigo); }
.seal-n { position: relative; text-align: center; font-size: .6rem; line-height: 1.2; font-weight: 500; max-width: 8ch; }
.seal-n b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: 0; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero-sign { display: flex; align-items: center; gap: 16px; font-size: .8rem; color: #cfcbe2; padding-top: 8px; }
.hero-sign img { height: 32px; width: auto; }
.hero-note { font-size: .72rem; color: rgba(255, 255, 255, .62); }
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; }
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "copy arch" "sign arch"; align-items: end; row-gap: 0; column-gap: 72px; padding-bottom: 0; align-self: flex-end; }
  .hero-copy { grid-area: copy; align-self: center; padding-bottom: 36px; }
  .arch { grid-area: arch; justify-self: end; margin-top: 24px; width: min(100%, 460px, calc((100svh - var(--header-h) - 64px) * .714)); }
  .hero-sign { grid-area: sign; padding-bottom: 34px; }
  .hero-note { position: absolute; left: calc(var(--gut) + 0px); right: auto; bottom: 10px; display: none; }
}
@media (max-width: 899px) { .seal { left: -12px; width: 108px; height: 108px; } .seal-n b { font-size: 1.6rem; } .seal-n { font-size: .52rem; }  .hero-cta .btn { flex: 1 1 100%; } .hero-in { padding-bottom: 28px; } }

/* Números */
.stats { background: var(--sand); padding: 64px 0 40px; }
.stats-in { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 0; }
.stats-in p { padding: 4px 18px; border-left: 1px solid var(--line); }
.stats-in p:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats-in b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.05; color: var(--plum); font-variant-numeric: lining-nums; }
.stats-in span { display: block; font-size: .9rem; color: var(--muted); max-width: 22ch; line-height: 1.5; margin-top: 6px; }
.stats-note { margin-top: 44px; font-size: .78rem; color: var(--muted); }
@media (min-width: 900px) { .stats-in { grid-template-columns: repeat(4, 1fr); } .stats-in p:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 32px; } .stats-in p:first-child { border-left: 0; padding-left: 0; } }

/* ============ Seções ============ */
.sec { padding: var(--sec-y) 0; }
.floor-title { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 84px); }
.floor-num { font-size: clamp(3.6rem, 9vw, 7.4rem); line-height: .95; color: var(--plum); white-space: nowrap; }
@media (min-width: 900px) { .floor-title { grid-template-columns: minmax(300px, 5fr) 6fr; align-items: end; gap: 56px; } }

/* Imagens: retrato em arco, paisagem arredondada */
.ph { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--dusk); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; border-radius: 26px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(18, 20, 44, .62), rgba(18, 20, 44, 0)); pointer-events: none; }
.ph-cap { position: absolute; left: 20px; bottom: 16px; right: 20px; z-index: 1; font-size: .78rem; font-weight: 400; letter-spacing: .02em; color: #fff; text-align: left; }
.mid-grid .ph, .tec-photos .ph { border-radius: var(--arch); }
.mid-grid .ph-cap, .tec-photos .ph-cap { text-align: center; left: 8px; right: 8px; bottom: 18px; }
@media (min-width: 900px) { .loc-grid .ph, .roof-grid .ph, .gal-grid .ph { aspect-ratio: auto; height: 100%; } }

/* Localização */
.sec-loc { background: linear-gradient(180deg, #1a1e45 0%, #262a57 100%); color: #fff; }
.loc-head { display: grid; gap: 32px; margin-bottom: clamp(44px, 6vw, 80px); }
.loc-text { display: grid; gap: 20px; align-content: start; max-width: 52ch; }
.loc-text .muted { color: var(--on-dark); opacity: .85; }
.loc-text .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 900px) { .loc-head { grid-template-columns: 6fr 5fr; gap: 96px; align-items: end; } }
.loc-grid { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .loc-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; gap: 16px; }
  .loc-main { grid-column: 1 / span 8; grid-row: 1 / span 3; }
  .loc-plan { grid-column: 9 / span 4; grid-row: 1 / span 3; }
  .loc-aerea { grid-column: 1 / -1; grid-row: 4 / span 3; }
}
.sec-loc .note { color: #b3afc9; }
.loc-plan img { object-position: 50% 50%; }

/* Conceito */
.sec-conceito { background: var(--cream); }
.conc-grid { display: grid; gap: 48px; align-items: center; }
.conc-photo { overflow: hidden; border-radius: 999px 999px 0 0; }
.conc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.floors { margin-top: 44px; display: grid; }
.floors li { display: grid; gap: 6px; padding: 24px 0 24px 34px; border-top: 1px solid var(--line); position: relative; }
.floors li:last-child { border-bottom: 1px solid var(--line); }
.floors li::before { content: ""; position: absolute; left: 0; top: 33px; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); }
.floors h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: -.01em; }
.floors p { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) { .conc-grid { grid-template-columns: 5fr 6fr; gap: 112px; } }

/* Apartamentos */
.sec-apt { background: var(--sand); }
.tabs { display: inline-flex; gap: 4px; padding: 6px; background: var(--sand-2); border-radius: 999px; margin-bottom: 48px; max-width: 100%; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 28px; font-weight: 500; font-size: .9rem; color: var(--ink); cursor: pointer; border-radius: 999px; white-space: nowrap; transition: background-color .35s var(--ease), color .35s; }
.tabs button[aria-selected="true"] { background: var(--indigo); color: #fff; }
.tabs button:not([aria-selected="true"]):hover { background: rgba(22, 26, 56, .08); }
.panel { display: grid; gap: 36px; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panel-in .6s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-info h3 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.012em; }
.specs { margin: 30px 0 22px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .85rem; padding-top: 1px; }
.specs dd { font-weight: 400; }
.view-toggle { display: inline-flex; margin-top: 24px; padding: 4px; background: var(--sand-2); border-radius: 999px; }
.view-toggle button { background: none; border: 0; padding: 10px 20px; font-weight: 500; font-size: .82rem; cursor: pointer; border-radius: 999px; transition: background-color .3s, color .3s; }
.view-toggle button.on { background: var(--indigo); color: #fff; }
.panel-media { background: #ebe0d0; display: grid; place-items: center; padding: 64px 28px 28px; min-height: 320px; border-radius: 220px 220px 24px 24px; }
.panel-media .view { width: 100%; }
.panel-media .view[hidden] { display: none; }
.panel-media img { width: 100%; max-height: 600px; object-fit: contain; margin: 0 auto; }
@media (min-width: 900px) { .panel { grid-template-columns: 4fr 7fr; gap: 88px; align-items: start; } .panel-media { padding: 110px 48px 40px; border-radius: 340px 340px 28px 28px; } }
.apt-foot { margin-top: 88px; display: grid; gap: 44px; }
.apt-cta { display: grid; gap: 22px; justify-items: start; padding: 40px; background: linear-gradient(160deg, var(--dusk), var(--indigo)); color: #fff; border-radius: 28px; }
.apt-cta p { max-width: 40ch; color: var(--on-dark); font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.fine { display: grid; gap: 12px; font-size: .875rem; line-height: 1.75; color: var(--muted); }
.fine li { padding-left: 24px; position: relative; }
.fine li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.fine strong { color: var(--ink); }
.invest { padding: 30px 0 0; border-top: 1px solid var(--line); max-width: 64ch; }
.invest h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin-bottom: 10px; }
.invest p { color: var(--muted); }
@media (min-width: 900px) { .apt-foot { grid-template-columns: 5fr 6fr; gap: 88px; } .apt-cta { align-self: start; } .invest { grid-column: 1 / -1; } }

/* Lazer */
.sec-lazer { background: linear-gradient(180deg, #161a38 0%, #1d2148 100%); color: #fff; }
.sec-lazer .floor-num { color: var(--peach); }
.sec-lazer .intro { color: var(--on-dark); }
.sec-lazer .muted, .sec-lazer .note { color: #aaa6c1; }
.floor-block + .floor-block { margin-top: clamp(96px, 12vw, 168px); }
.mid-grid, .roof-grid, .gal-grid { display: grid; gap: 14px; }
.mid-grid { grid-template-columns: 1fr 1fr; }
.mid-grid .ph { aspect-ratio: 4 / 5.4; }
@media (min-width: 900px) {
  .mid-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: end; }
  .mid-grid .ph { aspect-ratio: auto; }
  .m1 { height: 430px; } .m2 { height: 540px; } .m3 { height: 480px; } .m4 { height: 390px; }
}
.roof-grid .ph { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .roof-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 236px; gap: 16px; }
  .r1 { grid-column: 1 / span 8; grid-row: 1 / span 2; }
  .r2 { grid-column: 9 / span 4; } .r3 { grid-column: 9 / span 4; }
  .r4 { grid-column: 1 / span 4; } .r5 { grid-column: 5 / span 4; } .r6 { grid-column: 9 / span 4; }
}
.groups { display: grid; margin-top: 56px; border-top: 1px solid var(--line-d); }
.groups > div { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line-d); }
.groups dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--peach); }
.groups dd { color: var(--on-dark); max-width: 40ch; }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-d); } .groups > div { border-bottom: 0; padding: 34px 36px 34px 0; } .groups > div + div { padding-left: 36px; border-left: 1px solid var(--line-d); } }
.center-cta { margin-top: 44px; }

/* Tecnologia */
.sec-tec { background: var(--cream); }
.tec-grid { display: grid; gap: 56px; }
.tec-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.tec-photos .ph { aspect-ratio: 4 / 5.2; }
.tec-list { display: grid; align-content: start; }
.tec-list section { padding: 30px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.tec-list h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: -.01em; color: var(--plum); }
.tec-list li { padding: 5px 0 5px 24px; position: relative; }
.tec-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.tec-list .note { margin-top: 16px; }
@media (min-width: 900px) { .tec-grid { grid-template-columns: 5fr 6fr; gap: 112px; align-items: start; } .tec-head { position: sticky; top: calc(var(--header-h) + 32px); } }

/* Galeria */
.sec-gal { background: var(--sand); }
.sec-gal h2 { margin-bottom: 48px; }
.gal-grid { grid-template-columns: 1fr 1fr; }
.gal-grid .ph { aspect-ratio: 4 / 3; border-radius: 22px; }
.g1, .g7 { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .gal-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 16px; }
  .g1 { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .g2 { grid-column: 6 / span 4; } .g3 { grid-column: 10 / span 3; }
  .g4 { grid-column: 6 / span 3; } .g5 { grid-column: 9 / span 4; }
  .g6 { grid-column: 1 / span 4; } .g7 { grid-column: 5 / span 8; }
}

/* Contato */
.sec-contato { background: linear-gradient(160deg, var(--peach) 0%, #e3b0a0 46%, #b98aa0 100%); color: var(--indigo); }
.sec-contato h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.sec-contato .intro { color: #3d3752; }
.contato-grid { display: grid; gap: 52px; align-items: center; }
.contato-copy { display: grid; gap: 26px; justify-items: start; }
.contato-copy .intro { margin-top: 0; }
.contato-copy .btn-wa { background: var(--indigo); color: #fff; }
.contato-copy .btn-wa:hover { background: var(--dusk); }
.contato-copy .small { color: #3d3752; }
@media (min-width: 900px) { .contato-grid { grid-template-columns: 5fr 5fr; gap: 104px; } }
.lead-form { background: var(--cream); color: var(--ink); padding: 36px 26px; display: grid; gap: 22px; border-radius: 28px; box-shadow: 0 40px 90px rgba(22, 26, 56, .25); }
@media (min-width: 600px) { .lead-form { padding: 50px 48px; } }
.lead-form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; letter-spacing: -.012em; line-height: 1.2; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .84rem; color: var(--ink); padding: 0; }
.field input[type="text"], .field input[type="tel"], .field select { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-weight: 300; color: var(--ink); background: #fff; border: 1px solid rgba(26, 28, 48, .24); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(74, 63, 107, .18); outline: none; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid rgba(26, 28, 48, .28); background: #fff; cursor: pointer; font-weight: 400; font-size: .9rem; border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.radios input { width: 17px; height: 17px; accent-color: var(--indigo); }
.radios label:has(input:checked) { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.radios label:has(input:checked) input { accent-color: var(--lime); }
.row2 { display: grid; gap: 22px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 300; font-size: .875rem; line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--indigo); }
.err { color: #b3261e; font-size: .84rem; font-weight: 500; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.ok { padding: 16px 18px; background: #e6efcb; color: #26301a; border-radius: 14px; }
.form-status.err { padding: 16px 18px; background: #f8e2df; color: #5f1914; border-radius: 14px; font-weight: 400; }

/* CTA final */
.final { position: relative; color: #fff; background: var(--indigo); overflow: hidden; }
.final-media { position: absolute; inset: 0; }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.final-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 26, 56, .15) 0%, rgba(22, 26, 56, .72) 56%, rgba(22, 26, 56, .92) 100%); }
.final-in { position: relative; padding-top: clamp(100px, 14vw, 190px); padding-bottom: clamp(100px, 14vw, 190px); display: grid; gap: 18px; justify-items: start; }
.final h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 13ch; }
.final p { color: #e6e3f2; max-width: 42ch; font-size: 1.0625rem; line-height: 1.85; }
.final .hero-cta { margin-top: 22px; width: 100%; }
@media (min-width: 900px) { .final-in { padding-left: calc(var(--gut) + 44%); } .final-in > * { max-width: 540px; } }
@media (max-width: 899px) { .final-media::after { background: rgba(22, 26, 56, .68); } }

/* Rodapé */
.site-footer { background: #0f1229; color: #bab7ce; padding: 88px 0 40px; }
.foot-grid { display: grid; gap: 52px; }
.foot-brand img.ds { height: 84px; width: auto; margin-bottom: 16px; }
.foot-ac img { height: 96px; width: auto; margin-top: 14px; }
.foot-contact { display: grid; gap: 14px; align-content: start; max-width: 40ch; }
.h4 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: #fff; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr 1.4fr; gap: 80px; } }
.legal { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-d); font-size: .75rem; line-height: 1.8; color: #8c89a3; }

/* Botão flutuante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--indigo); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); transition: opacity .3s, transform .3s, background-color .2s; text-decoration: none; }
.wa-float:hover { background: var(--lime-hi); }
.wa-float.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (min-width: 900px) { .wa-float { right: 32px; bottom: 32px; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: rgba(15, 18, 41, .97); color: #fff; width: 100vw; height: 100vh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(15, 18, 41, .9); }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox figure { grid-column: 2; display: grid; gap: 14px; justify-items: center; max-height: 100vh; padding: 56px 0 24px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { font-size: .85rem; color: #d3d0e4; }
.lb-nav, .lb-close { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.25rem; font-weight: 200; line-height: 1; width: 56px; height: 56px; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.lightbox :focus-visible { outline-color: #fff; box-shadow: none; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 40px 1fr 40px; } .lb-nav { width: 40px; } }

/* ============ Animações (só com JS; sem JS tudo aparece) ============ */
/* 1. Abertura do hero: o arco é desenhado e a fachada sobe dentro dele */
.js .arch-line path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s .15s var(--ease) forwards; }
.js .arch-img { clip-path: inset(100% 0 0 0); animation: arch-in 1.7s .55s var(--ease) forwards; }
.js .arch-img img { transform: scale(1.18); animation: settle 2.8s .55s var(--ease) forwards; }
.js .hero h1, .js .hero .lead, .js .hero-cta, .js .hero-sign { opacity: 0; animation: appear 1s var(--ease) forwards; }
.js .hero h1 { animation-delay: .9s; } .js .hero .lead { animation-delay: 1.1s; } .js .hero-cta { animation-delay: 1.25s; } .js .hero-sign { animation-delay: 1.5s; }
.js .seal { opacity: 0; transform: scale(.6); animation: pop .9s 2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes arch-in { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes appear { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: none; } }
/* 2. Imagens abrem ao entrar na tela (uma vez): a máscara já tem o formato da foto
      (--r) e cresce a partir de --from (padrão: de baixo para cima), com zoom de 1,15 para 1 */
.js [data-reveal] { --r: 26px; clip-path: var(--from, inset(100% 0 0 0 round var(--r))); opacity: 0; transition: clip-path .8s var(--ease) var(--d, 0s), opacity .6s ease var(--d, 0s); }
.js .conc-photo[data-reveal] { --r: 999px 999px 0 0; }
.js .mid-grid [data-reveal], .js .tec-photos [data-reveal] { --r: var(--arch); }
.js .gal-grid [data-reveal] { --r: 22px; }
.js [data-reveal] img { transform: scale(1.15); transition: transform .8s var(--ease) var(--d, 0s); }
.js [data-reveal].in { clip-path: inset(0 round var(--r)); opacity: 1; }
.js [data-reveal].in img { transform: none; }
.js .ph[data-reveal].in:hover img { transform: scale(1.04); transition-duration: 1.2s; transition-delay: 0s; }
/* 3. Textos e blocos sobem levemente ao entrar na tela (uma vez) */
.js [data-rise] { opacity: 0; transform: translateY(16px); animation: none; transition: opacity .7s ease var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js [data-rise].in { opacity: 1; transform: none; }
/* 4. Troca entre planta e visão humanizada */
.panel-media .view:not([hidden]) { animation: view-in .6s ease both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }
/* 5. Skeleton: brilho suave no lugar da imagem até ela carregar */
.js .sk { background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, var(--sk-hi, rgba(255, 255, 255, .07)) 50%, rgba(255, 255, 255, 0) 70%); background-size: 200% 100%; background-repeat: no-repeat; animation: shimmer 1.6s linear infinite; }
.js .conc-photo.sk { background-color: var(--sand-2); --sk-hi: rgba(255, 255, 255, .5); }
.js .panel-media .view.sk { --sk-hi: rgba(255, 255, 255, .5); }
.js .sk img { opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease); }
.js [data-reveal].sk img { transition: opacity .6s ease, transform .8s var(--ease) var(--d, 0s); }
.js .sk.sk-done { animation: none; background-image: none; }
.js .sk.sk-done img { opacity: 1; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
/* 6. Lightbox: indicador enquanto a imagem grande carrega (só aparece se demorar) */
.lightbox img { transition: opacity .3s ease; }
.lightbox.lb-loading img { opacity: 0; }
.lightbox::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.lb-loading::after { opacity: 1; transition-delay: .15s; animation: spin .8s linear infinite; }
/* 7. Mensagem do formulário entra com fade */
.form-status:not(:empty) { animation: view-in .5s ease both; }
/* 8. Orbs e selo param quando o hero sai da tela (classe aplicada pelo anim.js) */
.hero.off .orb, .hero.off .ring { animation-play-state: paused; }
/* 9. Barra de progresso logo abaixo do header: CSS puro onde houver scroll-driven animations,
      main.js atualiza --p nos demais navegadores e com "reduzir movimento" */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2px; background: var(--peach); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .site-header::after { animation: progress auto linear both; animation-timeline: scroll(root); }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 10. Parallax leve no hero (só desktop, só CSS): ao rolar a primeira tela, as orbs descem 60px
       e o arco 30px, mais devagar que a página. Usa "translate", que soma com o "transform"
       da abertura sem alterá-la. Sem suporte a scroll-driven animations, fica parado. */
@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .sky, .arch { animation: hero-drift auto linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .sky { --drift: 60px; }
    .arch { --drift: 30px; }
  }
}
@keyframes hero-drift { from { translate: 0 0; } to { translate: 0 var(--drift); } }
/* 11. Títulos revelados por linha (estrutura montada pelo anim.js). Cada linha sobe dentro da
       própria máscara; o padding com margem negativa só abre espaço para acentos e descendentes. */
.js [data-lines]:not(.split) { opacity: 0; }
.lines { display: block; }
.lines.ok { display: flex; flex-direction: column; } /* flex: as margens negativas das linhas não colapsam */
.ln { display: block; overflow: hidden; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.ln-in { display: block; transform: translateY(125%); transition: transform .7s var(--ease) var(--d, 0s); }
[data-lines].in .ln-in { transform: none; }
/* 12. Narrativa do Conceito (desktop): a foto acompanha a leitura dos andares; o andar em leitura
       fica em destaque e a linha rosa (.narr, aplicada pelo anim.js) sobe até a bolinha dele */
@media (min-width: 900px) {
  .conc-photo { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .floors.narr { position: relative; }
  .floors.narr::before, .floors.narr::after { content: ""; position: absolute; left: 5px; top: 39px; width: 2px; height: var(--track-h, 0); background: var(--line); }
  .floors.narr::after { background: var(--rose); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); transition: transform .6s var(--ease); }
  .floors.narr li::before { z-index: 1; transition: background-color .4s, box-shadow .4s; }
  .floors.narr li:not(.on):not(.past)::before { background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--rose); }
  .floors.narr li > * { transition: opacity .5s ease; }
  .floors.narr li:not(.on) > * { opacity: .45; }
}
/* 13. CTA principal magnético (.mag aplicada pelo anim.js só com mouse/trackpad) */
.btn.mag { transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease), translate .25s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .arch-line path { stroke-dashoffset: 0; }
  .js .arch-img, .js [data-reveal] { clip-path: none; opacity: 1; }
  .js .arch-img img, .js [data-reveal] img, .js [data-rise] { transform: none; }
  .js [data-rise] { opacity: 1; }
  .js .sk { background-image: none; }
  .js .hero h1, .js .hero .lead, .js .hero-cta, .js .hero-sign, .js .seal { opacity: 1; transform: none; }
}
