/* Brasil Imóveis / motion edition. Local assets; no animation dependencies. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
.reading-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 3px; background: var(--gold-ink); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 28px #17343c0b; background: #faf9f6f7; }
.button, .property-action, .scene-options button, .carousel-arrow, .scene-reset, .motion-toggle { position: relative; isolation: isolate; overflow: hidden; }
.button { transition: transform .24s var(--motion-ease), box-shadow .24s ease, background .2s ease; }
.button:active { transform: scale(.97); }
.button .icon, .text-link .icon, .property-action .icon { transition: transform .3s var(--motion-ease); }
.click-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; z-index: -1; animation: click-wave .62s ease-out; }
@keyframes click-wave { from { transform: scale(0); opacity: .2; } to { transform: scale(1); opacity: 0; } }
.desktop-nav a, .footer-main nav a { position: relative; }
.desktop-nav a::after, .footer-main nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold-ink); transform: scaleX(0); transform-origin: right; transition: transform .32s var(--motion-ease); }
.motion-word-mask { display: inline-block; vertical-align: bottom; overflow: clip; padding: .12em .08em .16em; margin: -.12em -.08em -.16em; }
.motion-word { display: inline-block; transform-origin: 50% 100%; }
.download-guide { box-shadow: 0 24px 60px -36px #17343c48, 0 1px 0 #fff inset; }
.property-card { --tilt-x: 0deg; --tilt-y: 0deg; transform: perspective(850px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: transform .32s var(--motion-ease), box-shadow .32s ease, border-color .32s ease; }
.property-card.is-tilting { transition: box-shadow .3s ease, border-color .3s ease; }
.property-image { overflow: hidden; }
.property-image img { transition: transform .7s var(--motion-ease); }
.property-action { padding-inline: 4px; margin-inline: -4px; }
.mobile-menu:not([hidden]) { animation: menu-unfold .3s var(--motion-ease); transform-origin: top; }
dialog[open] { animation: dialog-arrive .35s var(--motion-ease); }
.faq-list details[open] .faq-answer { animation: answer-reveal .35s var(--motion-ease); }
.faq-plus { transition: transform .3s var(--motion-ease); }
.steps li { position: relative; }
.steps li::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .6s var(--motion-ease); }
.steps li.is-revealed::before { width: 100%; }
.step-number { transition: color .3s, transform .3s var(--motion-ease); }
.download-inner { position: relative; }
.download-inner::after { content: ''; position: absolute; width: 300px; height: 300px; border: 1px solid #dbb56924; border-radius: 50%; top: -170px; right: 15%; pointer-events: none; }
@keyframes menu-unfold { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes answer-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* An architectural miniature with five independently lit faces per solid. */
.dimension-section { padding: 32px 0 0; border-top: 1px solid var(--line); }
.dimension-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.dimension-top .eyebrow { margin: 0; font-size: 9px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0 8px 10px; background: none; font-size: 11px; color: var(--muted); border-radius: 6px; }
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle:disabled { cursor: default; }
.dimension-layout { display: grid; gap: 28px; }
.dimension-copy { align-self: center; min-width: 0; }
.dimension-copy h2 { max-width: 15ch; }
.dimension-description { margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 42ch; }
.scene-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.scene-options button { min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.scene-options .icon { width: 16px; height: 16px; }
.scene-options button[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 5px 14px #17343c19; }
.scene-options button:active { transform: scale(.96); }
.scene-description { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 10px; max-width: 400px; }
.scene-index { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--gold-ink); }
.scene-description h3 { font-size: 15px; line-height: 1.6; letter-spacing: -.3px; }
.scene-description p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dimension-link { margin-top: 12px; font-size: 12px; }
.scene-shell { position: relative; min-width: 0; border: 1px solid #dce1d7; border-radius: 24px; background: radial-gradient(ellipse at 50% 34%, #fffef8, #eeefe6 75%); box-shadow: 0 20px 60px -38px #17343c32; }
.scene-badges { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 23px 22px 0; color: #5e706a; font-size: 8px; font-weight: 800; line-height: 1.7; letter-spacing: .8px; }
.scene-badges i { display: block; font-style: normal; font-weight: 500; letter-spacing: 2.5px; font-size: 7px; }
.scene-object-label { border: 1px solid #d4dacd; border-radius: 20px; padding: 4px 8px; font-size: 8px; white-space: nowrap; }
.model-viewport { height: 320px; position: relative; overflow: hidden; perspective: 1100px; touch-action: pan-y pinch-zoom; border-radius: 10px; user-select: none; }
.model-viewport[tabindex] { cursor: grab; }
.model-viewport.is-dragging { cursor: grabbing; }
.model-viewport:focus-visible { outline-offset: -6px; }
.scene-orbit { position: absolute; width: 86%; height: 48%; left: 7%; top: 42%; border: 1px solid #17343c10; border-radius: 50%; transform: rotate(-12deg); }
.scene-orbit::before { content: ''; position: absolute; inset: 13px; border: 1px dashed #17343c12; border-radius: inherit; }
.scene-shadow { position: absolute; width: 230px; height: 75px; top: 69%; left: 50%; background: radial-gradient(ellipse, #17343c24, transparent 68%); transform: translateX(-50%); pointer-events: none; }
.scene-float { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.motion-ready .scene-float { animation: scene-float 7s ease-in-out infinite; animation-play-state: paused; }
.motion-ready .scene-shell.is-visible .scene-float { animation-play-state: running; }
.motion-ready .scene-shell.is-interacting .scene-float, .motion-paused .scene-float, .page-hidden .scene-float { animation-play-state: paused !important; }
@keyframes scene-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.scene-world { --pitch: 58deg; --yaw: -35deg; position: absolute; width: 280px; height: 220px; left: 50%; top: 62%; transform: translate(-50%, -50%) rotateX(var(--pitch)) rotateZ(var(--yaw)); transform-style: preserve-3d; }
.model, .block, .roof { position: absolute; transform-style: preserve-3d; }
.model { inset: 0; }
.block { width: var(--w); height: var(--d); left: var(--x); top: var(--y); transform: translateZ(var(--z)); --face-top: #f3e9d7; --face-front: #d8ccb8; --face-right: #b7ae9f; }
.face { position: absolute; backface-visibility: visible; }
.face-top { width: var(--w); height: var(--d); background: var(--face-top); transform: translateZ(var(--h)); }
.face-front { width: var(--w); height: var(--h); top: var(--d); background: var(--face-front); transform-origin: 0 0; transform: rotateX(90deg); }
.face-back { width: var(--w); height: var(--h); background: var(--face-right); transform-origin: 0 0; transform: translateZ(var(--h)) rotateX(-90deg); }
.face-left { width: var(--d); height: var(--h); background: var(--face-front); transform-origin: 0 0; transform: rotateZ(90deg) rotateX(-90deg) translateY(calc(-1 * var(--h))); }
.face-right { width: var(--d); height: var(--h); left: var(--w); background: var(--face-right); transform-origin: 0 0; transform: rotateZ(90deg) rotateX(90deg); }
.island-base { --face-top: #dfd9c9; --face-front: #c5bcaa; --face-right: #b1ab9b; }
.ground { position: absolute; transform: translateZ(1px); }
.garden { background: #99aa83; border: 1px solid #8c9e76; }
.walkway { background: repeating-linear-gradient(0deg, #d9d3be 0 18px, #b9baa2 19px 20px); transform: translateZ(2px); }
.house-body { --face-top: #dfd4bd; --face-front: #f6e8cd; --face-right: #d4c7ac; }
.house-door { position: absolute; top: 0; left: 54px; width: 29px; height: 51px; background: linear-gradient(90deg, #835d37 46%, #68482c 47%, #835d37 49%); border: 3px solid #c2ad89; border-top: 0; }
.house-door::after { content: ''; position: absolute; top: 23px; right: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.house-window, .house-side-window { position: absolute; background: linear-gradient(40deg, #5b8385, #244c59); border: 4px solid #f6e9d2; box-shadow: 0 0 0 1px #b6a78d; }
.house-window { top: 27px; width: 30px; height: 31px; }
.window-one { left: 12px; } .window-two { right: 12px; }
.house-window::after, .house-side-window::after { content: ''; width: 2px; height: 100%; position: absolute; background: #dfd7bf; left: 48%; }
.house-side-window { width: 48px; height: 33px; top: 26px; left: 26px; }
.roof { width: 148px; height: 112px; }
.roof-front, .roof-back { position: absolute; width: 148px; height: 63.4px; background: repeating-linear-gradient(90deg, #ae7047 0 9px, #c58756 10px 11px); border: 1px solid #885032; transform-origin: 0 0; backface-visibility: visible; }
.roof-back { top: 0; transform: translateZ(80px) rotateX(28deg); background: repeating-linear-gradient(90deg, #955b3b 0 9px, #a86c45 10px 11px); }
.roof-front { top: 56px; transform: translateZ(109.77px) rotateX(-28deg); }
.gable { width: 112px; height: 30px; position: absolute; background: #d4c7ac; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 0 0; transform: translateZ(80px) rotateZ(90deg) rotateX(90deg); }
.gable-left { left: 6px; } .gable-right { left: 142px; }
.chimney { --face-top: #c7a880; --face-front: #b88d63; --face-right: #926d49; }
.porch-step { --face-top: #ede0c8; --face-front: #c4b99f; --face-right: #afa488; }
.tree-trunk { --face-top: #876d4b; --face-front: #8e7454; --face-right: #715b3f; }
.tree-crown { --face-top: #71947a; --face-front: #547c65; --face-right: #3d6654; }
.garden-bed { --face-top: #6b8962; --face-front: #536e4b; --face-right: #405b3d; }
.tower { --face-top: #e5d7bd; --face-front: #e7d9bd; --face-right: #b4b7a6; }
.windows { position: absolute; inset: 15px 10px 13px; display: grid; grid-template-columns: repeat(var(--columns), 1fr); grid-template-rows: repeat(var(--rows), 1fr); gap: 11px 9px; }
.windows i { background: linear-gradient(135deg, #547d80, #244b57); border: 2px solid #f0e6cd; box-shadow: 0 2px 0 #a1a18d; }
.roof-cap { --face-top: #344f51; --face-front: #466064; --face-right: #203f46; }
.roof-plant { --face-top: #93a489; --face-front: #667e6c; --face-right: #4d6658; }
.lobby { --face-top: #f0e4cb; --face-front: #cabb9f; --face-right: #9d9e8b; }
.lobby-glass { position: absolute; inset: 0 7px 4px; border: 2px solid #c7ccb9; background: repeating-linear-gradient(90deg, #315663 0 11px, #ced5be 12px 13px); }
.balcony { --face-top: #e6e1d1; --face-front: #aebbb1; --face-right: #92a59b; }
.plot { background: repeating-linear-gradient(90deg, #a1b18a 0 21px, #9bab83 22px 43px); border: 2px solid #788f6d; }
.plot-path { background: #d8cdb5; transform: translateZ(2px); }
.footprint { background: #b7c5a04d; border: 2px dashed #f8f5dd; transform: translateZ(2px); }
.fence-post, .fence-rail { --face-top: #fff2d8; --face-front: #eadcc1; --face-right: #bfbda4; }
.scene-toolbar { margin: 0 20px; border-top: 1px solid #d8ded1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scene-drag-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #52665f; }
.scene-drag-hint .icon { width: 17px; height: 17px; }
.scene-reset { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; background: transparent; font-size: 10px; font-weight: 700; padding: 8px; border-radius: 6px; }
.scene-reset .icon { width: 15px; height: 15px; }
.scene-disclaimer { margin: 0 20px; padding: 12px 0 18px; font-size: 9px; line-height: 1.7; color: var(--muted); }
.scene-shell.is-interacting { box-shadow: 0 20px 60px -30px #17343c35; }

/* Native horizontal scrolling on phones; no scroll interception. */
.carousel-controls { align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.carousel-controls > p { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; color: var(--muted); }
.carousel-position { color: var(--ink); }
.carousel-rule { width: 25px; height: 1px; background: var(--line); }
.carousel-instruction { margin-left: 4px; font-size: 10px; font-weight: 500; }
.carousel-controls > div { display: flex; gap: 7px; }
.carousel-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); transition: background .2s, transform .2s; }
.carousel-arrow[disabled] { opacity: .35; cursor: default; }
.carousel-arrow[data-carousel-prev] .icon { transform: rotate(180deg); }
.carousel-arrow:active:not([disabled]) { transform: scale(.93); }
@media (max-width: 699px) {
  .catalog-section .property-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b4bcae transparent; padding: 3px 2px 14px; }
  .catalog-section .property-card { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; border-radius: 16px; }
  .catalog-section .property-image { grid-row: auto; min-height: 0; width: 100%; aspect-ratio: 1.4; }
  .catalog-section .property-image img { position: static; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
  .catalog-section .property-info { padding: 18px 18px 14px; }
  .catalog-section .property-info h3 { font-size: 20px; }
  .catalog-section .property-info p { margin-top: 6px; font-size: 13px; min-height: 3.3em; }
  .catalog-section .property-bottom { margin: auto 18px 0; padding-block: 5px 8px; }
  .catalog-section .property-action { min-height: 44px; font-size: 12px; }
  .carousel-controls:not([hidden]) { display: flex; }
}
@media (max-width: 359px) {
  .scene-options { gap: 5px; }
  .scene-options button { padding-inline: 9px; font-size: 10px; }
  .scene-options .icon { width: 14px; }
  .scene-float { transform: scale(.78); }
  .motion-ready .scene-float { animation-name: scene-float-small; }
  .model-viewport { height: 280px; }
  .scene-badges { padding-inline: 16px; }
  .scene-toolbar, .scene-disclaimer { margin-inline: 16px; }
  .carousel-instruction { display: none; }
}
@keyframes scene-float-small { 0%, 100% { transform: scale(.78) translateY(0); } 50% { transform: scale(.78) translateY(-9px); } }
@media (min-width: 360px) and (max-width: 539px) {
  .scene-float { transform: scale(.88); }
  .motion-ready .scene-float { animation-name: scene-float-medium; }
}
@keyframes scene-float-medium { 0%, 100% { transform: scale(.88) translateY(0); } 50% { transform: scale(.88) translateY(-9px); } }
@media (min-width: 700px) {
  .dimension-section { padding-top: 40px; }
  .dimension-layout { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 30px; }
  .dimension-copy h2 { font-size: clamp(30px, 3.4vw, 46px); }
  .dimension-description { font-size: 13px; }
  .scene-options button { padding-inline: 10px; }
  .model-viewport { height: 360px; }
  .scene-float { transform: scale(.88); }
  .motion-ready .scene-float { animation-name: scene-float-medium; }
  .carousel-controls { display: none !important; }
}
@media (min-width: 1000px) {
  .dimension-top { margin-bottom: 30px; }
  .dimension-layout { grid-template-columns: .95fr 1.05fr; gap: 70px; }
  .dimension-description { font-size: 14px; }
  .scene-options { margin-top: 28px; gap: 8px; }
  .scene-options button { padding-inline: 14px; font-size: 12px; }
  .scene-description { margin-top: 28px; }
  .scene-description h3 { font-size: 17px; }
  .scene-description p { font-size: 13px; }
  .scene-badges { padding: 26px 28px 0; }
  .model-viewport { height: 380px; }
  .scene-world { top: 61%; }
  .scene-float { transform: none; }
  .motion-ready .scene-float { animation-name: scene-float; }
  .scene-toolbar, .scene-disclaimer { margin-inline: 28px; }
  .scene-disclaimer { font-size: 10px; }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -8px #17343c40; }
  .button:hover .icon { transform: translate(2px, -2px); }
  .button:active { transform: translateY(0) scale(.97); }
  .text-link:hover .icon:not(.icon-down), .property-action:hover .icon { transform: translateX(4px); }
  .desktop-nav a:hover, .footer-main nav a:hover { text-decoration: none; }
  .desktop-nav a:hover::after, .footer-main nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .property-card:hover { border-color: #bbbfae; box-shadow: 0 20px 35px -24px #17343c70; }
  .property-card:hover .property-image img { transform: scale(1.045); }
  .steps li:hover .step-number { color: var(--gold); transform: translateX(4px); }
  .scene-options button:not([aria-pressed='true']):hover, .scene-reset:hover, .carousel-arrow:not([disabled]):hover { background: #e7e9de; }
  .motion-toggle:hover { color: var(--ink); }
}
/* Everything remains readable when animation is disabled or JS is unavailable. */
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused .property-card, .motion-paused .button, .motion-paused .button .icon, .motion-paused .property-image img { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .property-card, .button, .button .icon, .property-image img { transform: none !important; }
  .motion-word { transform: none !important; opacity: 1 !important; }
}
