:root {
  color-scheme: light;
  --ink: #242820;
  --dark: #1a1c17;
  --paper: #f2f0e8;
  --white: #f9f5eb;
  --gold: #d9c29a;
  --muted: #585a4d;
  --rule: #cbc8ba;
  --serif: Baskerville, Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, figure { margin: 0; }
.shell { width: min(100% - clamp(3rem, 10vw, 10rem), 81rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .75rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; background: var(--dark); color: var(--white); border-bottom: 1px solid #f1e5cc22; }
.header-inner { min-height: 5.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; justify-self: start; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; color: var(--gold); }
.brand-name { display: grid; gap: .28rem; font: 1.48rem/.88 var(--serif); letter-spacing: .115em; text-transform: uppercase; }
.brand-name small { font: .63rem/1 var(--sans); letter-spacing: .24em; }
.site-nav, .header-actions, .socials { display: flex; align-items: center; }
.site-nav { align-self: stretch; gap: clamp(1.4rem, 2.8vw, 3rem); }
.site-nav a { position: relative; display: flex; align-items: center; white-space: nowrap; font-size: .9rem; color: #e0ded2; }
.site-nav a:hover, .site-nav .home-link { color: var(--gold); }
.site-nav .home-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); }
.header-actions { justify-self: end; gap: clamp(.8rem, 2vw, 1.7rem); }
.socials { gap: .38rem; color: var(--gold); }
.social-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid #d9c29a59; border-radius: 50%; }
.social-icon svg { width: 1.05rem; height: 1.05rem; }
.contact-link { padding: .68rem 1.1rem; border: 1px solid #d9c29aa0; color: var(--gold); font-size: .9rem; transition: background-color 150ms, color 150ms; }
.contact-link:hover { background: var(--gold); color: var(--dark); }
.menu-toggle, .site-nav .mobile-contact { display: none; }

.hero { position: relative; display: grid; min-height: clamp(35rem, 70svh, 48rem); isolation: isolate; background: #21251a; color: var(--white); }
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: 50% 52%; }
.hero::after { content: ''; background: linear-gradient(90deg, #11150fe0 0%, #11150fa8 28%, #11150f25 57%, #11150f00 80%), linear-gradient(0deg, #0c100b88, transparent 24%); }
.hero-inner { position: relative; display: grid; align-items: center; padding-block: 4.5rem; }
.hero-copy { max-width: 38rem; }
.hero-kicker, .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: .8rem; color: #e4cea4; margin-bottom: 1.55rem; }
.hero-kicker::before { content: ''; width: 2rem; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.hero h1 { font-size: clamp(3.75rem, 7.3vw, 7.1rem); line-height: .98; letter-spacing: -.065em; }
.hero-text { max-width: 24rem; margin-top: 1.55rem; color: #e5e2d7; font-size: 1.08rem; line-height: 1.65; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 3.25rem; padding: .65rem 1.15rem; border: 1px solid transparent; font-size: .89rem; font-weight: 600; transition: background-color 150ms, color 150ms, border-color 150ms; }
.button-line { width: 1.25rem; height: 1px; background: currentColor; }
.button-solid { margin-top: 2rem; background: var(--gold); color: var(--dark); }
.button-solid:hover { background: #eddbb9; }
.button-solid:focus-visible { outline-color: var(--white); }
.hero-location { position: absolute; right: 0; bottom: 1.7rem; display: flex; align-items: center; gap: .6rem; color: var(--white); font-size: .84rem; }
.hero-location span { position: relative; width: .65rem; height: .65rem; border: 1px solid var(--gold); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

.portfolio { padding-block: clamp(3.4rem, 7vw, 6.25rem); }
.portfolio-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.kicker { color: #676347; }
.portfolio h2 { margin-top: .6rem; font-size: clamp(3rem, 5.8vw, 5.35rem); line-height: 1; letter-spacing: -.062em; }
.property-location { margin-top: .65rem; color: var(--muted); font-size: 1rem; }
.explore-hint { display: flex; align-items: center; gap: .85rem; max-width: 18.75rem; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.hint-icon { flex: none; width: 2.25rem; height: 2.25rem; border: 1px solid #96917a; border-radius: 50%; color: var(--ink); }
.plus-icon { position: relative; display: inline-grid; place-items: center; }
.plus-icon::before, .plus-icon::after { content: ''; grid-area: 1 / 1; width: 38%; height: 1px; background: currentColor; }
.plus-icon::after { transform: rotate(90deg); }
.touch-instruction { display: none; }
.tower-stage { position: relative; isolation: isolate; background: #665744; }
.tower-photo { width: 100%; height: auto; filter: brightness(.84) saturate(.92); }
.floor-map { position: absolute; inset: 0; }
.floor { position: absolute; inset: var(--top) 19.65% calc(100% - var(--bottom)); width: auto; background: transparent; border: 0; padding: 0; color: var(--dark); outline: none; -webkit-tap-highlight-color: transparent; }
.floor::before { content: ''; position: absolute; inset: 0; background: #fae6bd19; backdrop-filter: brightness(1.44) saturate(1.08); box-shadow: inset 0 1px #f5e0b6d0, inset 0 -1px #f5e0b6d0; opacity: 0; transition: opacity 180ms ease; }
.floor-caption, .floor-plus { position: absolute; opacity: 0; transition: opacity 180ms ease, transform 180ms ease; }
.floor-caption { top: 50%; left: clamp(.45rem, 1.4vw, 1.4rem); transform: translateY(-40%); padding: .32em .65em; background: var(--dark); color: var(--white); white-space: nowrap; font-size: clamp(.73rem, 1.1vw, .93rem); font-weight: 600; }
.floor-plus { top: 50%; right: clamp(.45rem, 1.4vw, 1.4rem); transform: translateY(-40%); width: clamp(1.55rem, 3.75vw, 3.1rem); aspect-ratio: 1; border: 1px solid #fff2d7; border-radius: 50%; background: #f1dbb1; box-shadow: 0 3px 16px #1a1c174d; }
.floor:focus-visible, .floor.is-open { z-index: 1; outline-offset: -2px; outline-color: #fff2d7; }
.floor:is(:focus-visible, .is-open)::before, .floor:is(:focus-visible, .is-open) :is(.floor-caption, .floor-plus) { opacity: 1; }
.floor:is(:focus-visible, .is-open) :is(.floor-caption, .floor-plus) { transform: translateY(-50%); }
@media (hover: hover) {
  .floor:hover::before, .floor:hover :is(.floor-caption, .floor-plus) { opacity: 1; }
  .floor:hover :is(.floor-caption, .floor-plus) { transform: translateY(-50%); }
}
.tower figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; padding: .95rem 0 0; color: var(--muted); font-size: .82rem; }

.closing { background: var(--dark); color: var(--white); }
.closing-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
.closing-grid section + section { padding-left: clamp(2rem, 6.5vw, 6.5rem); border-left: 1px solid #f1e5cc30; }
.closing .kicker { color: var(--gold); }
.closing h2 { margin-top: .65rem; font-size: clamp(2.45rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.closing h2 + p { max-width: 31rem; margin-top: .95rem; color: #d4d2c6; line-height: 1.7; }
.button-outline { margin-top: 1.4rem; border-color: #d9c29aa0; color: var(--gold); background: transparent; }
.button-outline:hover { background: var(--gold); color: var(--dark); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; padding-block: 1.3rem; border-top: 1px solid #f1e5cc30; color: #d4d2c6; }
.footer-brand { color: var(--gold); font: 1.15rem/1 var(--serif); text-transform: uppercase; letter-spacing: .13em; }
.site-footer small { font-size: .8rem; }

.details-dialog { width: min(calc(100% - 2rem), 32rem); max-height: calc(100% - 2rem); margin: auto; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid #b7ab8e; background: var(--paper); color: var(--ink); box-shadow: 0 1.25rem 5rem #11150f66; }
.details-dialog::backdrop { background: #151810b8; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: .65rem; right: .65rem; display: grid; place-items: center; width: 2.55rem; height: 2.55rem; padding: 0; background: transparent; color: var(--ink); border: 1px solid transparent; font-size: 1.7rem; line-height: 1; }
.dialog-close:hover { border-color: var(--rule); }
.dialog-close:focus-visible { outline-offset: -2px; }
.details-dialog h2 { margin-top: .55rem; font-size: clamp(2.1rem, 8vw, 3.55rem); line-height: 1.05; letter-spacing: -.052em; }
.details-description { margin-top: 1rem; line-height: 1.6; color: var(--muted); }
.details-specs { display: grid; grid-template-columns: 1.35fr 1fr .75fr; gap: .4rem 1rem; border-block: 1px solid var(--rule); margin: 1.5rem 0; padding-block: 1rem; }
.details-specs[hidden], .button[hidden] { display: none; }
.details-specs dt { color: var(--muted); font-size: .82rem; }
.details-specs dd { margin: .25rem 0 0; font-weight: 600; }
.button-dark { background: var(--dark); color: var(--white); }
.button-dark:hover { background: #3e493a; }
.details-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
html { scrollbar-gutter: stable; }
html.has-modal { overflow: hidden; }
[hidden] { display: none !important; }
.tour-dialog { width: calc(100% - 2rem); max-width: 100rem; height: calc(100dvh - 2rem); max-height: 68rem; margin: auto; padding: 0; border: 1px solid #b7ab8e; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 1.25rem 5rem #11150f66; }
.tour-dialog[open] { display: flex; flex-direction: column; }
.tour-dialog::backdrop { background: #151810d9; backdrop-filter: blur(3px); }
.tour-header { display: flex; justify-content: space-between; align-items: center; flex: none; gap: 1rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--rule); }
.tour-heading { min-width: 0; }
.tour-heading h2 { font-size: 1.8rem; letter-spacing: -.04em; line-height: 1.1; }
.tour-heading p { margin-top: .35rem; font-size: .77rem; color: var(--muted); line-height: 1.5; }
.tour-back { min-height: 2.75rem; border-color: var(--rule); background: transparent; color: var(--ink); flex: none; gap: 1rem; font-size: .8rem; }
.tour-back:hover { background: #e5e2d6; }
.tour-back>span { font-size: 1.5rem; font-weight: 400; line-height: 1; }
.tour-body { flex: 1; min-height: 0; position: relative; background: #e8e7e0; }
.tour-frame { display: block; width: 100%; height: 100%; border: 0; }
.tour-loading, .tour-error { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--muted); font-size: .9rem; }
.tour-error { flex-direction: column; gap: 1.2rem; padding: 1.5rem; text-align: center; }
@media (max-width: 28rem) {
  .details-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .details-actions .button { min-width: 0; gap: .6rem; padding-inline: .75rem; font-size: .82rem; }
  .details-actions .button-line { width: 1rem; flex: none; }
  .tour-dialog { width: calc(100% - 1rem); height: calc(100dvh - 1rem); max-height: none; }
  .tour-header { gap: .65rem; padding: .8rem; align-items: start; }
  .tour-heading h2 { font-size: 1.3rem; }
  .tour-heading p { font-size: .69rem; }
  .tour-back { padding: .5rem .65rem; gap: .5rem; font-size: .7rem; min-height: 2.5rem; }
}

@media (max-width: 60rem) {
  .header-inner { grid-template-columns: 1fr auto auto; gap: 1.15rem; }
  .site-nav { gap: 1.2rem; }
  .header-actions { gap: .65rem; }
}

@media (max-width: 48rem) {
  .shell { width: calc(100% - 3rem); }
  .header-inner { min-height: 4.55rem; grid-template-columns: 1fr auto auto; gap: .8rem; }
  .brand { gap: .43rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .brand-name { font-size: 1.14rem; }
  .brand-name small { font-size: .53rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .contact-link { display: none; }
  .social-icon { width: 1.65rem; height: 1.65rem; }
  .social-icon svg { width: .92rem; height: .92rem; }
  .menu-toggle { grid-column: 3; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: 0 0 0 .2rem; border: 0; background: none; color: var(--gold); font-size: .85rem; }
  .menu-toggle span { width: .8rem; height: .42rem; border-block: 1px solid currentColor; }
  .site-nav { position: absolute; display: none; left: 0; right: 0; top: 100%; padding: .45rem 1.5rem 1.15rem; background: var(--dark); border-bottom: 1px solid #f1e5cc30; }
  .site-nav.is-open { display: grid; gap: 0; }
  .site-nav a, .site-nav .mobile-contact { display: flex; padding: .8rem 0; border-bottom: 1px solid #f1e5cc26; }
  .site-nav .home-link::after { display: none; }
  .hero { min-height: clamp(33rem, 75svh, 42rem); }
  .hero-photo { object-position: 62% 51%; }
  .hero::after { background: linear-gradient(90deg, #11150fed, #11150f62 72%, #11150f38), linear-gradient(0deg, #0c100b88, transparent 25%); }
  .hero h1 { font-size: clamp(3.8rem, 10vw, 5.15rem); }
  .hero-location { bottom: 1.2rem; }
  .portfolio-heading { align-items: start; flex-direction: column; }
  .closing-grid { grid-template-columns: 1fr; }
  .closing-grid section + section { padding: 1.85rem 0 0; border: 0; border-top: 1px solid #f1e5cc30; }
}

@media (max-width: 26rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { gap: .65rem; }
  .socials { gap: .25rem; }
  .hero h1 { font-size: clamp(2.95rem, 13.8vw, 3.8rem); }
}

@media (hover: none), (pointer: coarse) {
  .pointer-instruction { display: none; }
  .touch-instruction { display: inline; }
}

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

/* Align the selected photo slice with the first frame of the live model. */
.tour-entry { position:absolute; inset:0; z-index:3; overflow:hidden; background:#e8e7e0; pointer-events:none; }
.tour-entry[data-phase="separacao"] { background:transparent; }
.tour-entry-layers { position:absolute; top:0; left:0; transform-origin:0 0; }
.tour-entry-photo { position:absolute; inset:0; width:100%; height:100%; max-width:none; }
.tour-dialog.is-entering .tour-header { position:relative; z-index:4; background:transparent; border-color:transparent; }
.tour-dialog.is-entering .tour-heading { opacity:0; }
.tour-dialog.is-entering .tour-back { background:var(--paper); }
@media (prefers-reduced-motion:reduce) { .tour-entry { display:none; } }
.tour-dialog.is-maximized { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; }
.tour-dialog.is-maximized .tour-header { display: none; }
/* The reserved scrollbar gutter would leave a strip beside the maximized visit. */
html.has-modal:has(.tour-dialog.is-maximized) { scrollbar-gutter: auto; }
