/* Template de corretor: site, páginas de imóvel e link da bio. A cor de destaque (--sea, --sea-l) vem do dados.mjs de cada corretor. */
:root {
  --paper: #f4f3ef;
  --paper2: #eae8e1;
  --ink: #1c1f22;
  --ink2: #43474b;
  --mute: #6f7376;
  --line: rgba(28, 31, 34, .15);
  --sea: #0b857d;
  --sea-l: #67d3c7;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 76px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; font-optical-sizing: auto; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }

.mono { width: 40px; height: 40px; flex: none; overflow: visible; }
.mono text { fill: currentColor; }
.mono--sm { width: 26px; height: 26px; }
.ar { width: 28px; height: 12px; flex: none; transition: transform .45s var(--ease); }
.wa-i { width: 18px; height: 18px; flex: none; }
@keyframes develop { from { clip-path: inset(0 0 100% 0); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: background .3s; }
.btn:hover { background: var(--sea); }
.lnk { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .3s; }
.lnk:hover { text-decoration-color: currentColor; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; padding: 0 var(--pad); border-bottom: 1px solid transparent; }
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .45s; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-me { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #d9d9d7; }
.brand span { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1.2; }
.brand small { font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink2); transition: color .25s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav .nav-cta { display: inline-flex; flex: none; align-items: center; height: 44px; padding: 0 22px; margin-left: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: .01em; transition: background-color .3s, color .3s, border-color .3s; }
.nav .nav-cta:hover { border-color: var(--sea); background: var(--sea); color: #fff; }
.menu-btn, .menu-x { display: none; }
@supports (animation-timeline: scroll()) {
  .top { animation: topline linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes topline { to { border-bottom-color: var(--line); } }
}
.top { transition: color .45s, border-color .45s; }
.js .top--over { animation: none; border-bottom-color: rgba(255, 255, 255, .14); color: #fff; }
.js .top--over::before { opacity: 0; }
.js .top--over .brand small { color: rgba(255, 255, 255, .7); }
.js .top--over .brand-me { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
/* o menu em linha só cabe a partir de 1121px; abaixo disso vira o botão de menu */
@media (min-width: 1121px) {
  .js .top--over .nav a { color: rgba(255, 255, 255, .8); }
  .js .top--over .nav a:hover { color: #fff; }
  .js .top--over .nav .nav-cta { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; }
  .js .top--over .nav .nav-cta:hover { border-color: #fff; background: #fff; color: var(--ink); }
}
@media (max-width: 1120px) { .js .top--over .menu-btn i { background: #fff; } }
@media (max-width: 860px) { .top { height: 64px; } }
@media (max-width: 1120px) {
  .menu-btn { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; }
  .menu-btn i { display: block; width: 26px; height: 1.5px; background: var(--ink); }
  .menu-btn i + i { width: 18px; justify-self: end; }
  .nav { position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 80px var(--pad) 40px; background: var(--paper); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
  .nav:target { visibility: visible; opacity: 1; transition: opacity .35s; }
  .nav a { font-family: var(--serif); font-size: clamp(30px, 8.6vw, 44px); line-height: 1.15; color: var(--ink); white-space: nowrap; }
  .nav .nav-cta { height: 54px; margin: 28px 0 0; padding: 0 28px; font-family: var(--sans); font-size: 17px; color: var(--paper); }
  .nav .menu-x { display: block; position: absolute; top: 18px; right: var(--pad); font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; }
}

/* ---------- hero ---------- */
/* fotos dos imóveis em tela cheia, trocando sozinhas; a faixa de baixo mostra qual é qual */
.hero { --dur: 3s; position: relative; display: grid; grid-template-rows: 1fr auto; height: 100svh; min-height: 620px; max-height: 1180px; margin-top: -76px; color: #fff; background: #15181a; overflow: hidden; isolation: isolate; }
.hero-fotos { position: absolute; inset: 0; z-index: -1; }
.hero-fotos::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10, 12, 14, .55) 0, rgba(10, 12, 14, 0) 190px),
  linear-gradient(90deg, rgba(10, 12, 14, .78) 0%, rgba(10, 12, 14, .5) 45%, rgba(10, 12, 14, 0) 76%),
  linear-gradient(0deg, rgba(10, 12, 14, .7) 0, rgba(10, 12, 14, 0) 300px); }
.hs { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hs.on { opacity: 1; }
.hs img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale 0s 1s; }
.hs.on img { scale: 1; transition: scale calc(var(--dur) + 1s) linear; }

.hero-in { align-self: end; padding: 140px var(--pad) clamp(44px, 8vh, 96px); max-width: 1180px; }
.hero-t { font-size: clamp(46px, 6.6vw, 112px); line-height: .98; letter-spacing: -.025em; }
.hero-t > span { display: block; overflow: hidden; padding: .12em 0 .1em; margin: -.12em 0 -.1em; }
.hero-t > span > span { display: block; animation: rise 1.15s var(--ease) both; }
.hero-t > span + span > span { animation-delay: .14s; }
.hero-t em { font-style: italic; color: var(--sea-l); }
@keyframes rise { from { transform: translateY(135%); } }
@keyframes show { from { opacity: 0; } }
.hero-lede { max-width: 50ch; margin-top: clamp(20px, 3vh, 32px); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .84); animation: show .9s .45s both; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(26px, 4vh, 40px); }
.hero .hero-act { animation: show .9s .6s both; }
.btn--sea { background: var(--sea); color: #fff; }
.btn--sea:hover { background: color-mix(in srgb, var(--sea) 84%, #000); }
.btn--sea:hover .ar { transform: translateX(5px); }
.hero .lnk { text-decoration-color: rgba(255, 255, 255, .4); }

.hero-nav { display: flex; align-items: stretch; padding-left: var(--pad); border-top: 1px solid rgba(255, 255, 255, .16); animation: show .9s .8s both; }
.hn-list { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.hn-list li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.hn { position: relative; display: grid; gap: 4px; height: 100%; padding: 22px clamp(14px, 1.6vw, 28px) 26px; text-decoration: none; color: rgba(255, 255, 255, .62); transition: color .4s, background-color .4s; }
.hn-list li:first-child .hn { padding-left: 0; }
.hn:hover, .hn.on { color: #fff; }
.hn:hover { background: rgba(255, 255, 255, .05); }
.hn b { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.hn-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.hn-bar i { display: block; height: 100%; background: var(--sea-l); transform-origin: 0 50%; scale: 0 1; }
.hn.on .hn-bar i { animation: hn-fill var(--dur) linear both; }
@keyframes hn-fill { from { scale: 0 1; } to { scale: 1 1; } }
.hero.is-paused .hn-bar i, .hero.is-off .hn-bar i, .hero-nav:hover .hn-bar i, .hero-nav:focus-within .hn-bar i { animation-play-state: paused; }
.hn-pause { flex: none; width: 64px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, .12); background: none; color: rgba(255, 255, 255, .7); cursor: pointer; transition: color .3s; }
.hn-pause:hover { color: #fff; }
.hn-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hn-pause .i-play { display: none; fill: currentColor; stroke: none; }
.hero.is-paused .i-pause { display: none; }
.hero.is-paused .i-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .hn.on .hn-bar i { scale: 1 1; }
  .hn-pause { display: none; }
}
@media (max-width: 860px) {
  .hero { margin-top: -64px; min-height: 560px; }
  .hero-fotos::after { background:
    linear-gradient(180deg, rgba(10, 12, 14, .5) 0, rgba(10, 12, 14, 0) 140px),
    linear-gradient(0deg, rgba(10, 12, 14, .86) 0, rgba(10, 12, 14, .55) 45%, rgba(10, 12, 14, 0) 75%); }
  .hero-in { padding-bottom: 28px; }
  .hero-t { font-size: clamp(40px, 11.5vw, 64px); }
  .hero-lede { font-size: 16px; }
  .hero-nav { padding-left: 0; border-top: 0; }
  .hn-list li:first-child .hn { padding-left: var(--pad); }
  .hn-list { --seg: calc((100vw - var(--pad) - 64px + 6px) / var(--n, 6)); grid-auto-flow: row; grid-template-areas: "a"; }
  .hn-list li { grid-area: a; border: 0 !important; }
  .hn { padding: 22px 0 22px var(--pad); }
  .hn:not(.on) { pointer-events: none; }
  .hn b, .hn span { opacity: 0; transition: opacity .5s; }
  .hn.on b, .hn.on span { opacity: 1; }
  .hn:hover { background: none; }
  .hn-bar { top: 0; left: calc(var(--pad) + var(--seg) * var(--i, 0)); right: auto; width: calc(var(--seg) - 6px); background: rgba(255, 255, 255, .24); }
  .hn-pause { border-left: 0; }
}

/* ---------- a corretora ---------- */
/* nome grande + retrato recortado em pé sobre a faixa grafite */
.quem { padding-top: clamp(96px, 15vh, 180px); view-timeline-name: --quem; }
.quem-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 5vw, 96px); align-items: end; padding: 0 var(--pad); }
.quem-txt { padding-bottom: clamp(48px, 8vh, 96px); }
.quem-t { font-size: clamp(calc(60px * var(--qn, 1)), calc(9.6vw * var(--qn, 1)), 168px); line-height: .9; letter-spacing: -.035em; }
/* a máscara sobe .16em além da linha: com line-height .9, o topo das letras altas (S, t, h) passava dela */
.quem-t > span { display: block; overflow: hidden; padding: .16em 0 .08em; margin-top: -.16em; }
.quem-t > span > span { display: block; }
.quem-t > span + span > span { padding-left: clamp(0px, 8vw, 150px); }
.quem-t em { font-style: italic; color: var(--sea); }
.quem-role { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: clamp(16px, 2.4vh, 28px); padding-left: clamp(0px, 8vw, 150px); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.quem-role span { color: var(--sea); }
.quem-lead { margin: clamp(40px, 7vh, 72px) 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; }
.quem-txt > p:not(.quem-role, .quem-lead) { max-width: 52ch; font-size: 17px; color: var(--ink2); }
.quem-txt > p:not(.quem-role, .quem-lead) + p { margin-top: 14px; }
.quem-me { margin: 0 0 -8px; align-self: end; justify-self: center; width: 100%; max-width: 540px; }
.quem-me picture { display: block; }
.quem-me img { display: block; width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; object-position: 50% 100%; }
.quem-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: clamp(40px, 7vh, 72px) var(--pad); list-style: none; background: var(--ink); color: var(--paper); }
.quem-list li { display: grid; align-content: start; gap: 8px; padding: 0 clamp(20px, 2.6vw, 44px); border-left: 1px solid rgba(244, 243, 239, .16); }
.quem-list li:first-child { padding-left: 0; border-left: 0; }
.quem-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.quem-list span { max-width: 34ch; color: rgba(244, 243, 239, .66); font-size: 15px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .quem-t > span > span { animation: rise linear both; animation-timeline: --quem; animation-range: entry 4% entry 34%; }
    .quem-t > span + span > span { animation-range: entry 10% entry 40%; }
    /* o retrato aparece sempre inteiro: só cresce um pouco, apoiado na faixa de baixo, sem recorte */
    .quem-me img { transform-origin: 50% 100%; animation: portrait linear both; animation-timeline: --quem; animation-range: entry 10% entry 80%; }
    @keyframes portrait { from { scale: .9; } to { scale: 1; } }
  }
}
@media (max-width: 860px) {
  .quem-in { grid-template-columns: minmax(0, 1fr); }
  .quem-t { font-size: clamp(calc(54px * var(--qn, 1)), calc(17vw * var(--qn, 1)), 80px); }
  .quem-t > span + span > span, .quem-role { padding-left: 0; }
  .quem-role { font-size: 11px; margin-top: 14px; }
  .quem-lead { margin-top: 36px; }
  .quem-txt { padding-bottom: 44px; }
  .quem-me { width: 88%; max-width: 400px; }
  .quem-me img { max-height: 72svh; }
  .quem-list { grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 36px; }
  .quem-list li { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(244, 243, 239, .16); }
  .quem-list li:first-child { border-top: 0; }
}

/* ---------- me conte o que você procura: convite na página, perguntas em tela cheia ---------- */
.busca { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); align-items: center; padding: clamp(90px, 14vh, 170px) var(--pad); background: var(--paper2); }
.busca-t { max-width: 11ch; font-size: clamp(44px, 6vw, 100px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.busca-sub { margin-top: 26px; max-width: 44ch; font-size: 18px; color: var(--ink2); }
.busca-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(32px, 5vh, 48px); }
.busca-act span { font-size: 14px; color: var(--mute); }
.btn--g { height: 60px; padding: 0 30px; font-size: 16px; }
/* as perguntas como falas, com travessão: é o corretor perguntando */
.busca-qs { display: grid; gap: clamp(10px, 1.6vh, 16px); margin: 0; padding: 0; list-style: none; }
.busca-qs li { display: flex; gap: .45em; font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.2; letter-spacing: -.015em; opacity: max(.3, 1 - var(--i) * .14); }
.busca-qs li::before { content: '—'; flex: none; color: var(--sea); }
@keyframes qs-in { from { opacity: 0; translate: 0 18px; } }

.ob { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.ob::backdrop { background: rgba(28, 31, 34, .5); }
.ob[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 84px minmax(0, 1fr); grid-template-areas: 'foto top' 'foto corpo'; animation: ob-in .8s var(--ease) both; }
.ob.fecha { animation: ob-out .42s cubic-bezier(.6, 0, .8, .3) both; }
@keyframes ob-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes ob-out { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }
html:has(.ob[open]) { overflow: hidden; }

/* lado da foto: mostra o imóvel que mais combina até agora */
.ob-foto { grid-area: foto; position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.ob-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .4), transparent 22%, transparent 50%, rgba(0, 0, 0, .66)); pointer-events: none; }
.ob-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity .8s var(--ease), scale 1.8s var(--ease); }
.ob-img.on { opacity: 1; scale: 1; }
.ob-marca { position: absolute; z-index: 1; top: 0; left: clamp(24px, 3vw, 48px); display: flex; align-items: center; gap: 10px; height: 84px; font-size: 14px; font-weight: 500; letter-spacing: .01em; }
/* no fim: nome do imóvel indicado sobre a foto e setas para ver as outras fotos dele */
.ob-leg { position: absolute; z-index: 1; left: clamp(24px, 3vw, 48px); right: clamp(24px, 3vw, 48px); bottom: clamp(24px, 4.5vh, 48px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ob-leg[hidden], .ob-nav[hidden] { display: none; }
.ob-leg p { display: grid; gap: 6px; animation: ob-num .6s var(--ease) both; }
.ob-leg span { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--sea-l); }
.ob-leg b { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.ob-nav { display: flex; flex: none; gap: 8px; }
.ob-nav button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.ob-nav button:hover { border-color: #fff; background: #fff; color: var(--ink); }
.ob-nav button:focus-visible { outline-color: #fff; }
.ob-nav svg { width: 22px; height: 10px; }
@keyframes ob-num { from { opacity: 0; translate: 0 35%; } }

.ob-top { grid-area: top; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 0 clamp(24px, 5vw, 96px); }
.ob-voltar, .ob-x { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink2); cursor: pointer; transition: color .25s; }
.ob-voltar:hover { color: var(--ink); }
.ob-voltar:disabled { visibility: hidden; }
.ob-voltar svg { width: 22px; height: 10px; transition: transform .35s var(--ease); }
.ob-voltar:hover svg { transform: translateX(-4px); }
.ob-x { width: 44px; margin-right: -14px; color: var(--ink); }
.ob-x svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.ob-x:hover svg { transform: rotate(90deg); }
.ob-prog { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin: 0; padding: 0; list-style: none; }
.ob-prog li { height: 2px; overflow: hidden; background: rgba(28, 31, 34, .13); }
.ob-prog li::before { content: ''; display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease), background-color .3s; }
.ob-prog li.on::before { transform: scaleX(1); }
.ob-prog li.cur::before { transform: scaleX(1); background: var(--sea); }

.ob-corpo { grid-area: corpo; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(24px, 5vw, 96px) clamp(32px, 6vh, 64px); }
.ob-palco { width: 100%; max-width: 640px; margin: auto 0; }
.ob-passo { --dir: 1; }
.ob-passo > *, .ob-op { animation: ob-entra .6s var(--ease) both; }
.ob-passo > :nth-child(2) { animation-delay: .04s; }
.ob-passo > :nth-child(n+3) { animation-delay: .1s; }
.ob-op { animation-delay: calc(.1s + var(--i) * .045s); }
.ob-ops { animation: none !important; }
.ob-passo.sai { animation: ob-sai .22s ease-in both; }
@keyframes ob-entra { from { opacity: 0; translate: calc(var(--dir) * 40px) 0; } }
@keyframes ob-sai { to { opacity: 0; translate: calc(var(--dir) * -28px) 0; } }
.ob-n { font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--sea); }
.ob-t { margin: 14px 0 clamp(26px, 4.5vh, 44px); font-size: clamp(34px, 3.6vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; outline: none; }
.ob-ops { border-top: 1px solid var(--line); }
.ob-op { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; width: 100%; padding: clamp(17px, 2.4vh, 24px) 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ob-op::before { content: ''; position: absolute; inset: 0 -16px; z-index: -1; background: var(--paper2); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease), background-color .2s; }
.ob-op:hover::before, .ob-op:focus-visible::before { transform: scaleY(1); }
.ob-op span { font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -.015em; }
.ob-op:hover .ar { transform: translateX(6px); }
.ob-op[aria-pressed="true"] span { color: var(--sea); }
.ob-op span { transition: color .16s; }
.ob-op.is-on::before { transform: scaleY(1); background: var(--ink); transition-duration: .16s; }
.ob-op.is-on span { color: var(--paper); }
.ob-op.is-on .ar { color: var(--paper); transform: translateX(10px); }

/* fim */
.ob-fim-foto, .ob-gal { display: none; }
.ob-lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; color: var(--ink2); text-wrap: pretty; }
.ob-fim .ob-t { margin: 10px 0 14px; font-size: clamp(40px, 4.4vw, 72px); line-height: 1; }
.ob-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; font-size: 16px; color: var(--ink2); }
.ob-where b { font-weight: 600; color: var(--ink); }
.ob-resumo { margin-top: 20px; max-width: 46ch; font-size: 17px; color: var(--ink2); }
.ob-fatos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.ob-fatos dt { font-size: 12px; color: var(--mute); }
.ob-fatos dd { margin: 3px 0 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.ob-nome { display: grid; gap: 4px; max-width: 420px; margin-top: 34px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ink2); }
.ob-nome input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font: inherit; font-size: 19px; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.ob-nome input:focus { outline: none; border-bottom-color: var(--sea); box-shadow: 0 1px 0 var(--sea); }
.ob-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; }
.ob-mais { margin-top: clamp(36px, 6vh, 56px); }
.ob-mais > p { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ink2); }
.ob-mais ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ob-mais a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ob-mais img, .ob-sem { display: block; width: 76px; height: 56px; object-fit: cover; background: var(--paper2); }
.ob-mais b { display: block; font-weight: 600; font-size: 16px; }
.ob-mais em { display: block; font-style: normal; font-size: 13px; color: var(--ink2); }
.ob-mais a:hover .ar { transform: translateX(6px); }
.ob-resp { margin-top: clamp(32px, 5vh, 48px); font-size: 14px; line-height: 1.6; color: var(--mute); }
.ob-refazer { margin-left: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.ob-refazer:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .busca-qs li { animation: qs-in linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ob[open], .ob.fecha, .ob-passo, .ob-passo > *, .ob-op, .ob-leg p { animation: none !important; }
}
@media (max-width: 860px) {
  .busca { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .busca-txt { display: contents; }
  .busca-qs { order: 3; margin-top: 36px; }
  .busca-qs li { font-size: 21px; }
  .busca-act { order: 4; margin-top: 36px; }
  .busca-act .btn { width: 100%; }

  .ob[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 60px clamp(128px, 24svh, 210px) minmax(0, 1fr); grid-template-areas: 'top' 'foto' 'corpo'; transition: grid-template-rows .5s var(--ease); }
  /* no resultado a faixa da foto fecha (as fotos vêm em fila no texto): anima a linha do grid, não a altura */
  .ob--fim[open] { grid-template-rows: 60px 0px minmax(0, 1fr); }
  .ob-top { gap: 12px; padding: 0 var(--pad); }
  .ob-voltar { width: 44px; margin-left: -12px; }
  .ob-voltar span { display: none; }
  .ob-foto { margin: 0 var(--pad); }
  .ob-marca { display: none; }
  .ob-leg { display: none; }
  .ob-corpo { padding: 0 var(--pad) 32px; }
  .ob-palco { margin: 0; padding-top: 24px; }
  .ob-t { margin: 10px 0 24px; font-size: clamp(30px, 8.4vw, 40px); }
  .ob-op { gap: 14px; }
  .ob-op span { font-size: 18px; }
  .ob-fim-foto { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 22px; object-fit: cover; background: var(--paper2); }
  .ob-gal { display: flex; gap: 8px; margin: 0 calc(var(--pad) * -1) 22px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .ob-gal::-webkit-scrollbar { display: none; }
  .ob-gal img { flex: 0 0 100%; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; background: var(--paper2); }
  .ob-gal--varias img { flex-basis: 86%; }
  .ob-fim .ob-t { font-size: clamp(34px, 10vw, 46px); }
  .ob-fatos { gap: 12px; }
  .ob-act .btn { width: 100%; }
}

/* ---------- costa ---------- */
.costa { padding: clamp(96px, 16vh, 180px) var(--pad) clamp(80px, 12vh, 140px); }
.costa-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 32px 6vw; }
.costa-head h2 { font-size: clamp(42px, 6.4vw, 104px); line-height: .98; }
.costa-head p { max-width: 38ch; font-size: 17px; color: var(--ink2); }
.filtro { display: flex; gap: 0 28px; margin: clamp(40px, 6vh, 64px) calc(var(--pad) * -1) 0; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px var(--line); }
.filtro::-webkit-scrollbar { display: none; }
.filtro label { position: relative; display: inline-flex; align-items: baseline; gap: 4px; cursor: pointer; padding: 8px 0 16px; color: var(--mute); font-size: 15px; white-space: nowrap; transition: color .25s; }
.filtro input { position: absolute; opacity: 0; pointer-events: none; }
.filtro sup { font-size: 11px; color: var(--sea); }
.filtro label:hover { color: var(--ink); }
.filtro label:has(input:checked) { color: var(--ink); }
.filtro label:has(input:checked)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.filtro label:has(input:focus-visible) { outline: 2px solid var(--sea); outline-offset: -2px; }
/* as regras que escondem os outros tipos ficam no <head> da home (o build gera para os tipos de cada corretor) */

.costa-grid { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 6vw; margin-top: 8px; }
.costa-mapa { position: sticky; top: 96px; height: calc(100vh - 120px); max-height: 900px; padding: 24px 0; }
.mapa { width: 100%; height: 100%; overflow: visible; }
.mapa .mar { fill: color-mix(in srgb, var(--sea) 7%, transparent); }
.mapa .lagoa { fill: color-mix(in srgb, var(--sea) 13%, transparent); }
.mapa .ilha { fill: var(--paper); }
.mapa .costa-linha { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.mapa text { font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.mapa .mapa-mar { fill: var(--sea); font-size: 10px; letter-spacing: .3em; opacity: .7; }
.mapa .mapa-lg { fill: var(--sea); font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 13px; opacity: .8; }
@property --on { syntax: '<number>'; inherits: true; initial-value: 0; }
.stop { --on: 0; }
.stop .dot { fill: color-mix(in srgb, var(--sea) calc(var(--on) * 100%), var(--paper)); stroke: color-mix(in srgb, var(--sea) calc(var(--on) * 100%), var(--ink)); stroke-width: 1.2; }
.stop .halo { fill: var(--sea); opacity: calc(var(--on) * .2); transform-box: fill-box; transform-origin: center; scale: calc(.4 + var(--on) * .8); }
.stop text { fill: color-mix(in srgb, var(--ink) calc(var(--on) * 100%), #8d9194); font-weight: calc(400 + var(--on) * 200); }
.stop--in .dot { stroke-dasharray: 2 2; }
@keyframes lit { 0% { --on: 0; } 22%, 78% { --on: 1; } 100% { --on: 0; } }
@supports (animation-timeline: view()) {
  .mapa .costa-linha { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw linear both; animation-timeline: --lista; animation-range: entry 10% exit 70%; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.trilha { display: none; }
@media (max-width: 1000px) {
  .trilha { position: sticky; top: 63px; z-index: 10; display: block; height: 50px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .trilha::before { content: ''; position: absolute; left: calc(var(--pad) + 46%); right: calc(var(--pad) + 14px); top: 25px; height: 1px; background: var(--ink); opacity: .35; }
  .trilha-n, .trilha-s { position: absolute; top: 18px; font-size: 10px; letter-spacing: .1em; color: var(--mute); }
  .trilha-n { left: calc(var(--pad) + 46% - 16px); } .trilha-s { right: var(--pad); }
  .trilha i { --on: 0; }
  .trilha u { position: absolute; top: 21px; left: calc(var(--pad) + 46% + (54% - 2 * var(--pad) - 14px) * var(--x) - 4px); width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--sea) calc(var(--on) * 100%), var(--paper)); border: 1px solid color-mix(in srgb, var(--sea) calc(var(--on) * 100%), var(--ink)); scale: calc(.8 + var(--on) * .5); }
  .trilha b { position: absolute; left: var(--pad); top: 14px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; line-height: 1; opacity: var(--on); translate: 0 calc((1 - var(--on)) * 8px); white-space: nowrap; }
  .costa-grid { grid-template-columns: 1fr; }
  .costa-mapa { display: none; }
  .costa-head { grid-template-columns: 1fr; }
}

.regiao { padding-top: clamp(56px, 8vh, 96px); }
.regiao + .regiao { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); }
.regiao-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(36px, 5vh, 56px); }
.regiao-h h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1; font-style: italic; }
.regiao-h p { max-width: 40ch; color: var(--mute); font-size: 15px; }

.im { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); align-items: end; }
.im + .im { margin-top: clamp(64px, 9vh, 112px); }
.im-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper2); }
.im-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), scale 1.2s var(--ease); }
.im-pic .alt { opacity: 0; }
.im:hover .im-pic .alt { opacity: 1; }
.im:hover .im-pic img { scale: 1.03; }
.im-body { padding-bottom: 6px; }
.im h3 { font-size: clamp(32px, 3.5vw, 54px); line-height: 1.02; }
.im h3 a { text-decoration: none; }
.im h3 a:hover { font-style: italic; }
.im-where { margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.im-where span { color: var(--sea); letter-spacing: .06em; }
.im-resumo { margin-top: 18px; max-width: 40ch; font-size: 17px; color: var(--ink2); }
.im-fatos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.im-fatos dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.im-fatos dd { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }
.im-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.im-preco { font-family: var(--serif); font-size: 26px; }
.im-foot a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.im-foot a:hover .ar, .im:hover .im-foot .ar { transform: translateX(6px); }
.im--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.im--wide .im-pic { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.im--wide .im-body { display: contents; }
.im--wide { align-items: start; }
.im--wide h3, .im--wide .im-where, .im--wide .im-resumo { grid-column: 1; }
.im--wide h3 { grid-row: 2; } .im--wide .im-where { grid-row: 3; }
.im--wide .im-fatos, .im--wide .im-foot { grid-column: 2; }
.im--wide h3 { font-size: clamp(40px, 5vw, 76px); margin-top: 4px; }
.im--wide .im-fatos { margin-top: 0; }
.im--wide { row-gap: 0; }
.im--wide .im-pic { margin-bottom: 28px; }
.im--wide .im-where { margin-bottom: 0; }
.im--wide .im-resumo { grid-row: 4; }
.im--wide .im-fatos { grid-row: 2 / 4; align-self: start; margin-top: 14px; }
.im--wide .im-foot { grid-row: 4; align-self: end; }
@supports (animation-timeline: view()) {
  .im-pic { animation: wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  @keyframes wipe { from { clip-path: inset(0 0 100% 0); } }
  .im-pic img:first-child { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes settle { from { scale: 1.16; } }
  .im-foot { animation: hair linear both; animation-timeline: view(); animation-range: entry 40% entry 100%; }
  @keyframes hair { from { border-top-color: transparent; } }
}
@media (max-width: 760px) {
  .im, .im--wide { grid-template-columns: 1fr; gap: 22px; }
  .im--wide .im-body { display: block; }
  .im--wide .im-pic { aspect-ratio: 4 / 5; margin-bottom: 0; }
  .im-fatos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-fatos div:nth-child(3) { grid-column: 1 / -1; }
}
.costa-fim { margin-top: clamp(80px, 12vh, 140px); padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; max-width: 32ch; }
.costa-fim a { font-style: italic; color: var(--sea); text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- vender ---------- */
.vender { padding: clamp(90px, 14vh, 170px) var(--pad); }
.vender h2 { font-size: clamp(38px, 5.4vw, 88px); font-weight: 500; line-height: .98; letter-spacing: -.025em; max-width: 15ch; margin-bottom: clamp(40px, 6vh, 72px); }
.vender-rows a { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; padding: clamp(26px, 3.6vh, 40px) 0; border-top: 1px solid var(--line); text-decoration: none; isolation: isolate; }
.vender-rows a:last-child { border-bottom: 1px solid var(--line); }
.vender-rows a::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--paper2); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.vender-rows a:hover::before { transform: scaleY(1); }
.vender-rows b { font-weight: 500; font-size: clamp(22px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.03em; transition: color .3s; }
.vender-rows a:hover b { color: var(--sea); }
.vender-rows span { color: var(--ink2); max-width: 44ch; }
.vender-rows a:hover .ar { transform: translateX(8px); }
@media (max-width: 760px) { .vender-rows a { grid-template-columns: 1fr auto; } .vender-rows span { grid-column: 1; } .vender-rows .ar { grid-row: 1; grid-column: 2; } }

/* ---------- rodapé ---------- */
/* agendamento em forma de frase: cada parte sublinhada é um campo */
.ag { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 380px); gap: clamp(32px, 5vw, 96px); align-items: end; padding: clamp(80px, 13vh, 150px) var(--pad) clamp(56px, 9vh, 96px); background: var(--ink); color: var(--paper); }
.ag-frase { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 84px); line-height: 1.16; letter-spacing: -.025em; max-width: 17ch; }
.ag-sel { display: inline-block; max-width: 100%; } /* nome de imóvel longo não passa da largura da tela no celular */
.ag-sel select { appearance: none; -webkit-appearance: none; max-width: 100%; margin: 0; padding: 0 .36em 0 0; border: 0; border-radius: 0; border-bottom: 2px solid color-mix(in srgb, var(--sea-l) 40%, transparent); font: inherit; letter-spacing: inherit; line-height: 1.05; color: var(--sea-l); cursor: pointer; field-sizing: content;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2367d3c7' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right .02em center / .24em auto; transition: border-color .3s; }
.ag-sel select:hover { border-bottom-color: var(--sea-l); }
.ag-sel select:focus-visible { outline: 2px solid var(--sea-l); outline-offset: 6px; }
.ag-sel option { font-family: var(--sans); font-size: 16px; letter-spacing: 0; color: var(--ink); background: #fff; }
.ag-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(36px, 6vh, 60px); }
.ag-nota { max-width: 34ch; font-size: 14px; color: rgba(244, 243, 239, .62); }
.ag-nota a { color: var(--paper); white-space: nowrap; text-underline-offset: 4px; }
.ag-foto { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #2a2e31; }
.ag-foto img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, scale .9s var(--ease); }
.ag-foto img.sai { opacity: 0; scale: 1.04; }
.foot-in { padding: 0 var(--pad) 40px; background: var(--ink); color: var(--paper); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid rgba(244, 243, 239, .16); font-size: 14px; color: rgba(244, 243, 239, .72); }
.foot-sig { display: flex; gap: 12px; align-items: flex-start; }
.foot-sig .mono { width: 34px; height: 34px; color: var(--paper); margin-top: -4px; }
.foot-cols a { text-decoration: none; } .foot-cols a:hover { color: var(--paper); text-decoration: underline; }
.foot-small { margin-top: 40px; font-size: 12px; color: rgba(244, 243, 239, .45); max-width: 70ch; }
@media (max-width: 860px) {
  .ag { grid-template-columns: minmax(0, 1fr); padding-top: 72px; }
  .ag-foto { grid-row: 1; aspect-ratio: 16 / 10; }
  .ag-frase { font-size: clamp(32px, 9vw, 52px); }
}
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols p:last-child { grid-column: 1 / -1; } }

/* ---------- página do imóvel ---------- */
.pg-head { padding: clamp(28px, 5vh, 56px) var(--pad) clamp(28px, 4vh, 44px); }
.pg-back a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.pg-back a:hover { color: var(--ink); }
.pg-head h1 { margin-top: clamp(18px, 3vh, 32px); font-size: clamp(50px, 9.6vw, 160px); line-height: .95; letter-spacing: -.03em; animation: rise2 1s var(--ease) both; }
@keyframes rise2 { from { clip-path: inset(-.3em 0 100% 0); translate: 0 .3em; } to { clip-path: inset(-.3em 0 -10% 0); } } /* -.3em em cima: não corta acento de maiúscula (KAÁ, ÉDEN) */
.pg-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pg-sub p:first-child { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.pg-preco { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); }

.galeria { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 26vw, 380px)); gap: 6px; padding: 0 var(--pad); }
.galeria .g { position: relative; display: block; overflow: hidden; background: var(--paper2); }
.galeria .g img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.galeria .g:hover img { scale: 1.04; }
.galeria .g1 { grid-row: 1 / 3; }
.galeria .g:nth-child(n+6) { display: none; }
.galeria .g1 img { animation: develop 1.6s .1s var(--ease) both; }
.g-all { position: absolute; right: calc(var(--pad) + 16px); bottom: 16px; padding: 12px 18px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.g-all:hover { background: var(--ink); color: var(--paper); }
.g-note { position: absolute; left: calc(var(--pad) + 16px); bottom: 16px; color: #fff; font-size: 12px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
@media (max-width: 760px) {
  .galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .galeria::-webkit-scrollbar { display: none; }
  .galeria .g, .galeria .g:nth-child(n+6) { display: block; flex: 0 0 84%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .g-all { display: none; }
  .g-note { left: calc(var(--pad) + 12px); }
}
.lb { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(14, 16, 18, .96); padding: 56px 64px; }
.lb:target { display: grid; animation: show .3s both; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lb a { position: absolute; color: #fff; text-decoration: none; }
.lb-x { top: 18px; right: 24px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.lb-p, .lb-n { top: 50%; translate: 0 -50%; font-family: var(--serif); font-size: 56px; line-height: 1; padding: 12px; }
.lb-p { left: 8px; } .lb-n { right: 8px; }
.lb-c { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .1em; }
@media (max-width: 640px) { .lb { padding: 56px 8px; } .lb-p, .lb-n { top: auto; bottom: 4px; translate: none; font-size: 40px; } }

.pg-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(36px, 6vw, 110px); padding: clamp(56px, 9vh, 110px) var(--pad); }
.pg-lead { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; margin-bottom: 32px; }
.pg-txt p:not(.pg-lead):not(.pg-lazer) { max-width: 60ch; font-size: 17px; color: var(--ink2); }
.pg-txt p + p { margin-top: 16px; }
.pg-txt h2 { margin-top: 48px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.pg-lazer { margin-top: 14px !important; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; }
.pg-lazer i { font-style: normal; color: var(--sea); margin: 0 .45em; }
.pg-ficha { position: sticky; top: 100px; align-self: start; }
.pg-ficha dl { margin: 0 0 28px; }
.pg-ficha dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pg-ficha dl div:first-child { border-top: 1px solid var(--ink); }
.pg-ficha dt { color: var(--mute); font-size: 14px; }
.pg-ficha dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
.btn--wa { width: 100%; height: 58px; }
.pg-ficha .lnk { display: flex; margin-top: 16px; }
.lnk--soft { color: var(--mute); font-size: 14px !important; }
@media (max-width: 900px) { .pg-body { grid-template-columns: 1fr; } .pg-ficha { position: static; } }

.seguir { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 var(--pad) clamp(80px, 12vh, 140px); }
.seguir a { display: grid; gap: 4px; text-decoration: none; }
.seguir img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 14px; transition: opacity .4s; }
.seguir a:hover img { opacity: .85; }
.seguir span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.seguir b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; }
.seguir a:hover b { font-style: italic; }
.seguir em { font-style: normal; color: var(--mute); font-size: 14px; }
.seguir-b { text-align: right; }
@media (max-width: 640px) { .seguir { grid-template-columns: 1fr; gap: 40px; } .seguir-b { text-align: left; } }

.barra-wa { display: none; }
@media (max-width: 760px) {
  .pg .barra-wa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
  .pg .foot-in { padding-bottom: 100px; }
}

.nf { min-height: 60vh; padding: 14vh var(--pad); }
.nf h1 { font-size: clamp(48px, 8vw, 128px); line-height: 1; margin-bottom: 40px; }

/* ---------- link na bio ---------- */
.lk-body { background: var(--paper); }
.lk { max-width: 500px; margin: 0 auto; padding-bottom: 40px; }
.lk-head { text-align: center; padding: 0 20px; }
.lk-cover { margin: 0 -20px; height: 190px; overflow: hidden; }
.lk-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; animation: develop 1.6s both; }
.lk-av { width: 96px; height: 96px; margin: -48px auto 0; position: relative; border-radius: 50%; border: 4px solid var(--paper); object-fit: cover; }
.lk-head h1 { margin-top: 14px; font-size: 36px; line-height: 1.05; }
.lk-head p { margin-top: 6px; color: var(--mute); font-size: 14px; }
/* primeira ação da página: abre o site já nas perguntas de "encontrar o imóvel" */
.lk-busca { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px 22px; background: var(--sea); color: #fff; text-align: left; text-decoration: none; transition: background .3s; }
.lk-busca:hover { background: color-mix(in srgb, var(--sea) 84%, #000); }
.lk-busca span { display: grid; gap: 3px; }
.lk-busca b { font-size: 17px; font-weight: 600; letter-spacing: .005em; }
.lk-busca em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .8); text-wrap: balance; }
.lk-busca .ar { flex: none; }
.lk-busca:hover .ar { transform: translateX(5px); }
.lk-wa { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin-top: 10px; border: 1px solid var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.lk-wa:hover { background: var(--ink); color: var(--paper); }
.lk-sec { margin-top: 40px; }
.lk-sec h2 { display: flex; align-items: baseline; justify-content: space-between; padding: 0 20px; font-size: 26px; margin-bottom: 14px; }
.lk-sec h2 span { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
/* barrinhas dos destaques, como nos stories: a atual enche em 2,5 s e o carrossel passa para o próximo */
.lk-prog { --dur: 2.5s; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 20px 12px; }
.lk-prog:empty, .lk-prog[hidden] { display: none; }
.lk-prog i { height: 2px; overflow: hidden; background: rgba(28, 31, 34, .14); }
.lk-prog b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.lk-prog .ok b { transform: scaleX(1); }
.lk-prog .on b { animation: lk-fill var(--dur) linear forwards; }
.lk-sec.is-paused .lk-prog .on b { animation-play-state: paused; }
@keyframes lk-fill { to { transform: scaleX(1); } }
.lk-stories { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none; }
.lk-stories::-webkit-scrollbar { display: none; }
.st { position: relative; flex: 0 0 64%; aspect-ratio: 9 / 15; overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: var(--ink); }
.st img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(10, 12, 14, .78)); }
.st > *:not(img) { position: relative; z-index: 1; }
.st-local { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.st b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; margin-top: 4px; }
.st em { font-style: normal; font-size: 14px; margin-top: 6px; color: var(--sea-l); font-weight: 600; }
.st--novo::before { content: 'Novo'; position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; border-bottom: 1px solid var(--sea-l); }
@supports (animation-timeline: view()) {
  .st img { animation: storyzoom linear both; animation-timeline: view(inline); }
  @keyframes storyzoom { from { scale: 1.18; translate: -6% 0; } 50% { scale: 1.04; } to { scale: 1.18; translate: 6% 0; } }
}
.lk-reg { border-top: 1px solid var(--line); margin: 0 20px; }
.lk-reg a, .lk-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lk-thumbs { grid-row: 1 / 3; display: flex; width: 104px; }
.lk-thumbs img { width: 46px; height: 46px; object-fit: cover; border: 2px solid var(--paper); }
.lk-thumbs img + img { margin-left: -18px; }
.lk-reg b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.lk-reg em { font-style: normal; color: var(--mute); font-size: 13px; grid-column: 2; }
.lk-reg .ar, .lk-list .ar { grid-row: 1 / 3; grid-column: 3; }
.lk-reg a:hover .ar, .lk-list a:hover .ar { transform: translateX(6px); }
.lk-list { margin: 36px 20px 0; border-top: 1px solid var(--ink); }
.lk-list a { grid-template-columns: minmax(0, 1fr) auto; }
.lk-list b { font-weight: 600; font-size: 16px; }
.lk-list span { color: var(--mute); font-size: 13px; grid-column: 1; }
.lk-list .ar { grid-column: 2; }
.lk-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; font-size: 13px; color: var(--mute); }
.lk-foot a { text-decoration: none; }

/* ---------- movimento na rolagem ----------
   Tudo preso à rolagem (sem timers): o que entra na tela sobe 28px e aparece; nada fica escondido
   se a pessoa rolar rápido, e quem pede menos movimento no celular não vê nada disso. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes sobe { 0% { opacity: 0; translate: 0 28px; } 55% { opacity: 1; } 100% { opacity: 1; translate: 0 0; } }
    @keyframes assenta { from { transform: scale(1.1); } to { transform: none; } }

    /* topo: ao sair, a foto desce mais devagar que a página e o texto vai sumindo */
    .hero-fotos { animation: hero-desce linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes hero-desce { to { translate: 0 16%; } }
    .hero-in { animation: hero-sai linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes hero-sai { to { translate: 0 -40px; opacity: .3; } }

    /* títulos, textos e linhas que entram na tela */
    .quem-role, .quem-lead, .quem-txt > p:not(.quem-role, .quem-lead), .quem-txt > .hero-act,
    .busca-t, .busca-sub, .busca-act,
    .costa-head h2, .costa-head p, .filtro, .im-body > :not(.im-foot), .costa-fim,
    .vender h2, .vender-rows a,
    .ag-frase, .ag-act,
    .pg-sub, .pg-txt > *, .pg-ficha dl div, .pg-ficha > .btn, .pg-ficha > .lnk, .seguir a,
    .lk-sec h2, .lk-reg a, .lk-list a {
      animation: sobe linear both; animation-timeline: view(); animation-range: entry 0% cover 20%;
    }
    /* as três colunas da faixa escura entram uma depois da outra */
    .quem-list li { animation: sobe linear both; animation-timeline: view(); animation-range: cover 0% cover 18%; }
    .quem-list li:nth-child(2) { animation-range: cover 3% cover 21%; }
    .quem-list li:nth-child(3) { animation-range: cover 6% cover 24%; }

    /* fotos que ainda não tinham movimento: um leve zoom que assenta */
    .ag-foto img, .seguir img { animation: assenta linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
