@import url("./theme-motion.css");
@import url("./menu-motion.css");

:root {
  color-scheme: dark;
  --ink: #10100f;
  --panel: #191816;
  --cream: #f6f1e8;
  --muted: #bcb5a9;
  --gold: #d5b478;
  --gold-light: #efcf92;
  --line: rgba(230, 205, 167, .18);
  --serif: 'Times New Roman', 'Liberation Serif', Times, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(22px, 5.1vw, 86px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; }
svg { display: block; width: 22px; height: 22px; flex: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); letter-spacing: -.036em; line-height: 1.03; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.container { width: min(calc(100% - var(--gutter) * 2), 1328px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; background: var(--gold); color: #19130b; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.glass {
  background: linear-gradient(125deg, rgba(63, 58, 51, .40), rgba(28, 28, 28, .60));
  border: 1px solid rgba(237, 226, 204, .23);
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .09), 0 12px 36px rgba(0, 0, 0, .24);
  backdrop-filter: blur(22px) saturate(1.25);
}
.site-header { position: absolute; inset: 24px 0 auto; z-index: 3; padding-inline: var(--gutter); }
.header-inner {
  max-width: 1328px;
  min-height: 71px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-radius: 19px;
  padding-inline: 24px;
}
.brand { width: max-content; display: inline-grid; justify-items: end; color: var(--gold-light); }
.brand-mark {
  width: 127px;
  height: 26px;
  background: linear-gradient(100deg, #edd49f, #be9657 60%, #e0bd7d);
  mask: url(assets/brand.png) center / contain no-repeat;
}
.brand-word { font-size: .57rem; line-height: 1.1; font-weight: 650; letter-spacing: .34em; margin-right: 1px; }
.navigation { display: flex; align-items: center; gap: clamp(18px, 2.45vw, 40px); white-space: nowrap; }
.navigation a, .footer-nav a { color: #e6ded0; font-size: .9rem; font-weight: 550; transition: color .18s; }
.navigation a:hover, .navigation a[aria-current], .footer-nav a:hover, .footer-nav a[aria-current] { color: var(--gold-light); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-button, .language {
  display: inline-grid;
  width: 39px;
  height: 39px;
  place-items: center;
  flex: none;
  padding: 0;
  border: 1px solid rgba(244, 230, 208, .15);
  border-radius: 50%;
  background: rgba(255, 255, 255, .044);
  color: #f5ebdc;
  transition: color .18s, background .18s, border-color .18s;
}
.icon-button:hover, .language:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(222, 187, 126, .13); }
.icon-button svg { width: 19px; height: 19px; }
.language { border-color: transparent; background: transparent; font-size: .8rem; font-weight: 700; letter-spacing: .09em; }
.favorites-button { position: relative; }
.favorites-count { background: var(--gold-light); color: #23180a; font-size: .65rem; font-weight: 750; position: absolute; top: -4px; right: -4px; border-radius: 50%; min-width: 17px; line-height: 17px; }
.menu-toggle { display: none; }

.nav-enhanced {
  --compact-menu-size: 54px;
  position: fixed;
  z-index: 10;
  pointer-events: none;
}
.nav-enhanced .header-inner {
  position: relative;
  isolation: isolate;
  background: none;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.nav-enhanced .header-inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block-start: -1px;
  inset-inline-end: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 1px solid rgba(237, 226, 204, .28);
  border-radius: inherit;
  background: linear-gradient(117deg, rgba(61, 55, 46, .56), rgba(27, 25, 23, .69));
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .10), 0 12px 36px rgba(0, 0, 0, .28);
  backdrop-filter: blur(22px) saturate(1.25);
  transition: width .48s cubic-bezier(.2, .72, .23, 1),
    height .38s cubic-bezier(.22, .75, .23, 1),
    border-radius .40s ease-out;
}
.nav-enhanced.is-compact .header-inner::before {
  width: var(--compact-menu-size);
  height: var(--compact-menu-size);
  border-radius: 50%;
  transition-timing-function: cubic-bezier(.52, .01, .21, 1), cubic-bezier(.65, .02, .3, 1), ease-in;
}
.nav-enhanced .header-inner > :is(.brand, .navigation, .header-actions) {
  opacity: 1;
  visibility: visible;
  transition: opacity .23s ease-out .15s, translate .32s ease-out .09s, visibility 0s;
}
.nav-enhanced.is-compact .header-inner > :is(.brand, .navigation, .header-actions) {
  opacity: 0;
  visibility: hidden;
  translate: 14px -2px;
  transition: opacity .13s ease-in, translate .26s ease-in, visibility 0s .13s;
}
.nav-enhanced:not(.is-compact) :is(a, button),
.nav-enhanced.is-compact .compact-menu-toggle {
  pointer-events: auto;
}
.nav-enhanced .compact-menu-toggle {
  position: absolute;
  inset-block-start: -1px;
  inset-inline-end: -1px;
  width: var(--compact-menu-size);
  height: var(--compact-menu-size);
  opacity: 0;
  visibility: hidden;
  scale: .78;
  color: var(--gold-light);
  border-color: transparent;
  background: transparent;
  transition: opacity .12s ease-in, scale .17s ease-in, background .18s, visibility 0s .12s;
}
.nav-enhanced.is-compact .compact-menu-toggle {
  opacity: 1;
  visibility: visible;
  scale: 1;
  transition: opacity .18s ease-out .29s, scale .23s ease-out .26s, background .18s, visibility 0s;
}
.nav-enhanced .compact-menu-toggle svg { width: 23px; height: 23px; }
.nav-enhanced .compact-menu-toggle:is(:hover, :focus-visible) {
  opacity: 1;
  background: rgba(222, 187, 126, .14);
}
.nav-enhanced .compact-menu-toggle:focus-visible { transition-delay: 0s; }

.site-menu-drawer {
  --drawer-inset: 16px;
  position: fixed;
  inset-block: var(--drawer-inset) auto;
  inset-inline: auto var(--drawer-inset);
  width: max-content;
  max-width: calc(100% - var(--drawer-inset) * 2);
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  color: var(--cream);
  background: transparent;
  opacity: 0;
  transform: translateX(calc(100% + var(--drawer-inset)));
  transition: transform .44s cubic-bezier(.22, .75, .24, 1), opacity .28s ease-out,
    overlay .44s allow-discrete, display .44s allow-discrete;
}
.site-menu-drawer[open] {
  opacity: 1;
  transform: none;
  animation: site-menu-enter .44s cubic-bezier(.22, .75, .24, 1);
}
.site-menu-drawer::backdrop {
  background: transparent;
}
@keyframes site-menu-enter {
  from {
    opacity: 0;
    transform: translateX(calc(100% + var(--drawer-inset)));
  }
  to { opacity: 1; transform: none; }
}
.site-menu-panel {
  max-height: calc(100dvh - var(--drawer-inset) * 2);
  padding: clamp(16px, 4vw, 22px);
  border: 1px solid rgba(236, 218, 184, .27);
  border-radius: 23px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(110, 81, 43, .35), transparent 58%),
    linear-gradient(150deg, rgba(34, 30, 25, .97), rgba(18, 17, 15, .98));
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .12), 0 14px 60px #000a;
  backdrop-filter: blur(24px) saturate(1.2);
}
.site-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.site-menu-heading h2 {
  font-size: clamp(2.15rem, 6vw, 3.2rem);
}
.site-menu-heading .site-menu-close {
  width: 44px;
  height: 44px;
}
.site-menu-links {
  display: grid;
  gap: 3px;
}
.site-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--cream);
  font: 400 clamp(1.45rem, 5vw, 1.8rem)/1.18 var(--serif);
}
.site-menu-links a[aria-current] { color: var(--gold-light); }
.site-menu-links a:is(:hover, :focus-visible) {
  color: var(--gold-light);
  background: rgba(222, 187, 126, .12);
}
.site-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.site-menu-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(229, 205, 171, .24);
  border-radius: 9px;
  background: rgba(222, 187, 126, .055);
  color: var(--cream);
  font-size: .9rem;
  font-weight: 650;
}
.site-menu-actions button:is(:hover, :focus-visible) {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(222, 187, 126, .12);
}
.site-menu-favorites-count {
  min-width: 20px;
  padding-inline: 4px;
  border-radius: 20px;
  background: var(--gold-light);
  color: #25190b;
  font-size: .75rem;
  line-height: 20px;
  text-align: center;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(635px, 47.5vw, 720px);
  display: flex;
  background: #211d19 url(assets/hero.webp) center 52% / cover no-repeat;
}
.hero::before {
  content: '';
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, .86) 1%, rgba(13, 12, 12, .68) 24%, rgba(13, 12, 11, .25) 57%, rgba(13, 12, 11, .05) 85%),
    linear-gradient(0deg, #10100f 0%, rgba(16, 16, 15, .25) 28%, transparent 55%, rgba(14, 13, 12, .30) 100%);
}
.hero-inner { display: flex; flex-direction: column; justify-content: flex-end; padding-block: 135px 27px; }
.hero-copy { margin-bottom: clamp(32px, 4.6vw, 67px); }
.catalog-hero {
  min-height: clamp(490px, 42vw, 600px);
  background-image: var(--catalog-cover, url(assets/feature.webp));
  background-position: center 48%;
}
.catalog-hero .hero-inner { padding-bottom: 23px; }
.catalog-hero .hero-description { max-width: 480px; }
.eyebrow { color: var(--gold-light); font-size: .806rem; font-weight: 650; letter-spacing: .19em; line-height: 1.45; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(3.6rem, 6.25vw, 6rem); letter-spacing: -.04em; line-height: .97; margin: 22px 0 21px; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-description { max-width: 400px; font-size: clamp(1rem, 1.23vw, 1.12rem); color: #e2dacf; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  color: var(--cream);
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: linear-gradient(115deg, #edce92, #d2ab67); color: #241b10; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 3px 16px rgba(39, 25, 10, .2); }
.button-gold:hover { background: linear-gradient(115deg, #f7dda7, #e7c17c); }
.button-glass { background: rgba(43, 39, 36, .43); border-color: rgba(247, 233, 209, .28); backdrop-filter: blur(16px); }
.button-glass:hover, .button-outline:hover { color: var(--gold-light); background: rgba(213, 180, 120, .09); border-color: var(--gold); }
.button-outline { background: transparent; border-color: rgba(216, 184, 128, .36); color: var(--gold-light); }

.search-bar {
  display: grid;
  grid-template-columns: 1.06fr 1fr 1fr auto;
  align-items: center;
  gap: 0;
  padding: 11px 12px 11px 14px;
  border-radius: 17px;
  width: 100%;
}
.search-field { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 17px; border-right: 1px solid rgba(225, 203, 165, .19); }
.search-field:nth-child(3) { border: 0; }
.search-icon { color: var(--gold); }
.search-icon svg { width: 19px; height: 19px; }
.search-value { display: grid; min-width: 0; width: 100%; }
.search-value > span { font-weight: 650; color: #f5ead8; font-size: .84rem; line-height: 1.2; margin-bottom: 2px; }
.search-value select {
  appearance: none;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 3px 17px 3px 0;
  color: #ddd4c7;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 6px) center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 1px) center / 5px 5px no-repeat;
  text-overflow: ellipsis;
  font-size: .87rem;
}
.search-value option { background: #25221d; color: var(--cream); }
.search-submit { min-width: 145px; }
.search-submit svg { width: 17px; height: 17px; }

.section { padding-block: clamp(65px, 8vw, 115px); }
.catalog { padding-top: clamp(42px, 4.25vw, 63px); }
.section-heading { margin-bottom: 29px; }
.section-heading .eyebrow, .investment .eyebrow, .editorial-panel .eyebrow, .contact .eyebrow { margin-bottom: 13px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 17px; }
.result-count { margin-top: 8px; color: var(--muted); }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.property-card {
  min-width: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #191816;
  transition: border-color .22s;
}
.property-card:hover { border-color: #947341; }
.property-media { position: relative; overflow: hidden; background: #322b21; }
.property-image { width: 100%; aspect-ratio: 1.56; object-fit: cover; transition: transform .55s; }
.property-no-image { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.property-card:hover .property-image { transform: scale(1.04); }
.property-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 8, 7, .20), transparent 48%); pointer-events: none; z-index: 0; }
.badge, .heart { position: absolute; top: 13px; z-index: 1; border: 1px solid rgba(248, 229, 194, .34); backdrop-filter: blur(12px); }
.badge { left: 13px; border-radius: 7px; background: rgba(35, 28, 18, .72); color: #f8dfaf; padding: 4px 9px; text-transform: uppercase; font-size: .72rem; font-weight: 750; letter-spacing: .07em; }
.heart { right: 13px; z-index: 3; display: grid; place-items: center; padding: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(21, 19, 16, .60); color: #ffedcd; }
.heart svg { width: 19px; height: 19px; transform-origin: center; }
.heart:hover, .heart[aria-pressed="true"] { color: var(--gold-light); background: #33291d; }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.property-content { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 17px 17px 14px; }
.property-location, .property-meta { color: var(--muted); font-size: .85rem; }
.property-location, .property-meta, .property-meta span { display: flex; align-items: center; gap: 6px; }
.property-location svg, .property-meta svg, .property-link svg { color: var(--gold); width: 15px; height: 15px; }
.property-content h3 { font-size: clamp(1.5rem, 2vw, 1.95rem); line-height: 1.12; }
.property-meta { gap: 13px; flex-wrap: wrap; }
.property-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.property-price { color: var(--gold-light); font-weight: 700; font-size: 1rem; }
.property-link { font-size: .86rem; display: inline-flex; align-items: center; gap: 5px; color: #eee7db; text-underline-offset: 3px; }
.property-link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 14px; }
.property-link:is(:hover, :focus-visible) { color: var(--gold-light); text-decoration: underline; }
.property-link:focus-visible::after { box-shadow: inset 0 0 0 2px var(--gold-light); }
.property-link svg { display: none; }
.property-alert-link { position: relative; z-index: 3; align-self: start; width: fit-content; color: var(--gold-light); font-size: .86rem; text-decoration: underline; text-underline-offset: .2em; }
.catalog-actions { display: flex; justify-content: center; gap: 12px; margin-top: 27px; }
.property-grid > :only-child:not(.property-card) { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }

.investment { background: #151411; border-block: 1px solid rgba(215, 180, 120, .13); }
.investment-layout { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(33px, 7vw, 112px); }
.investment-image { border-radius: 19px; overflow: hidden; border: 1px solid var(--line); }
.investment-image img { height: clamp(340px, 43vw, 570px); object-fit: cover; }
.investment-copy > p:not(.eyebrow), .editorial-panel > p:not(.eyebrow), .contact h2 + p { color: var(--muted); margin-top: 17px; max-width: 46ch; }
.investment-links { list-style: none; margin: 22px 0 23px; padding: 0; }
.investment-links li { border-top: 1px solid var(--line); }
.investment-links li:last-child { border-bottom: 1px solid var(--line); }
.investment-links a { display: block; padding: 9px 0; }
.investment-links a:hover { color: var(--gold-light); }
.secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editorial-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(25px, 4.2vw, 63px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: radial-gradient(ellipse at 100% 0%, #2c231a 0%, transparent 62%), #171613;
}
.editorial-panel h2 { font-size: clamp(2.15rem, 3.5vw, 3.55rem); }
.editorial-panel > p:not(.eyebrow) { margin-bottom: 25px; }
.editorial-panel .button { margin-top: auto; }
.service-teaser {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
}
.service-teaser p { max-width: 60ch; margin-top: 10px; color: var(--muted); }
.service-teaser .button { margin-top: 0; }
.contact { background: #1a1713; border-block: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(26px, 7vw, 105px); }
.contact-details { display: grid; gap: 5px; margin-top: 21px; color: var(--gold-light); }
.contact-details a:hover { text-decoration: underline; }
.contact-form, .contact-form label { display: grid; gap: 7px; }
.contact-form { gap: 16px; }
.contact-form label { color: #eee4d5; font-size: .92rem; font-weight: 600; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form :is(input, textarea) { color: var(--cream); background: #141310; border: 1px solid var(--line); border-radius: 8px; width: 100%; padding: 10px; font-weight: 400; font-size: 1rem; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
#contact-feedback { font-size: .92rem; color: var(--gold-light); }
.inquiry-property { color: var(--gold-light); border-left: 2px solid var(--gold); padding-left: 12px; }
.site-footer { padding-block: 29px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-nav { display: flex; gap: clamp(13px, 2vw, 28px); flex-wrap: wrap; }
.footer-info { display: grid; justify-items: end; gap: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px 14px; font-size: .85rem; }
.footer-legal a:hover, .footer-legal a[aria-current] { color: var(--gold-light); }
.copyright { color: var(--muted); font-size: .8rem; white-space: nowrap; }

.legal-page {
  min-height: 78vh;
  padding-block: clamp(112px, 12vw, 155px) clamp(65px, 9vw, 120px);
  background: radial-gradient(ellipse 52rem 26rem at 70% 0%, #2e251aa1, transparent);
}
.legal-document { width: min(100%, 790px); }
.legal-document h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.legal-document > section { margin-top: 32px; padding-top: 23px; border-top: 1px solid var(--line); }
.legal-document h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.legal-document p { max-width: 72ch; color: var(--muted); overflow-wrap: anywhere; }
.legal-document p + p { margin-top: 11px; }
.legal-document a { color: var(--gold-light); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal-document dl { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.legal-document dt { font-weight: 650; }
.legal-document dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.legal-document code { color: var(--cream); overflow-wrap: anywhere; }
.favorites-dialog {
  max-width: min(960px, calc(100% - 28px));
  max-height: 88dvh;
  width: max-content;
  padding: clamp(17px, 4vw, 35px);
  border-radius: 17px;
  background: #181613;
  color: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 16px 90px #000b;
}
.favorites-dialog::backdrop { background: #080807b8; backdrop-filter: blur(6px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin-bottom: 15px; }
.dialog-header h2 { font-size: clamp(1.95rem, 4vw, 3.25rem); }
.dialog-close { font-size: 1.65rem; line-height: 1; }
#favorites-empty { color: var(--muted); }
#favorites-grid { grid-template-columns: repeat(3, minmax(200px, 1fr)); }

@media (max-width: 1050px) {
  .header-inner { padding-inline: 17px; gap: 17px; }
  .navigation { gap: 18px; }
  .hero h1 { font-size: clamp(3.3rem, 7.15vw, 5rem); }
}
@media (max-width: 970px) {
  .site-header { top: 15px; }
  .header-inner { min-height: 63px; display: flex; justify-content: space-between; }
  .menu-toggle { display: inline-grid; }
  .navigation {
    position: absolute;
    top: calc(100% + 7px);
    inset-inline: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #201c17;
    box-shadow: 0 12px 30px #0006;
  }
  .site-header:not(.nav-enhanced) .navigation.open { display: flex; }
  .navigation a { padding: 9px 12px; }
  .navigation a:hover { background: #30261b; border-radius: 6px; }
}
@media (max-width: 820px) {
  .hero { min-height: 660px; background-position: 59% 50%; }
  .catalog-hero { min-height: 515px; }
  .search-bar { padding: 8px; }
  .search-field { padding-inline: 10px; gap: 8px; }
  .search-submit { min-width: 105px; padding-inline: 12px; }
  .investment-layout { gap: 25px; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  #favorites-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
@media (max-width: 575px) {
  .header-inner { min-height: 58px; padding-inline: 10px; gap: 8px; border-radius: 15px; }
  .nav-enhanced { --compact-menu-size: 50px; }
  .site-menu-drawer { --drawer-inset: 8px; }
  .site-menu-panel { border-radius: 18px; }
  .header-actions { gap: 4px; }
  .icon-button, .language { width: 35px; height: 35px; }
  .brand-mark { width: 95px; height: 20px; }
  .brand-word { font-size: .49rem; letter-spacing: .23em; }
  .hero { background-position: 63% 50%; }
  .hero::before { background: linear-gradient(90deg, rgba(11,11,11,.83), rgba(12,11,10,.29)), linear-gradient(0deg, #10100f, transparent 61%); }
  .hero-inner { padding-block: 135px 17px; }
  .catalog-hero { min-height: 0; }
  .catalog-hero .hero-inner { padding-top: 127px; }
  .hero-copy { margin-bottom: 25px; }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 3.5rem); margin-block: 17px; }
  .hero-actions { margin-top: 19px; gap: 8px; }
  .hero-actions .button { font-size: .82rem; padding-inline: 12px; }
  .eyebrow { font-size: .74rem; }
  .search-bar { grid-template-columns: 1fr 1fr; padding: 7px; row-gap: 6px; border-radius: 13px; }
  .search-field { padding: 5px 7px; gap: 6px; }
  .search-field:nth-child(2) { border-right: 0; }
  .search-icon svg { width: 16px; height: 16px; }
  .search-value > span, .search-value select { font-size: .77rem; }
  .search-submit { min-width: 0; min-height: 44px; font-size: .83rem; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .property-grid { grid-template-columns: minmax(0, 1fr); }
  .property-content h3 { font-size: 1.75rem; }
  .investment-layout, .secondary-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .investment-image img { height: 315px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-nav { order: 3; width: 100%; }
  .footer-info { justify-items: start; }
  .footer-legal { justify-content: start; }
  #favorites-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .legal-document dl { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .legal-document dd + dt { margin-top: 9px; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .button { transition-property: color, border-color, background, transform, scale, box-shadow; }
  .button:active:not(:disabled) { scale: .975; }

  .favorites-dialog[open] { animation: favorites-enter .27s cubic-bezier(.2, .68, .26, 1) both; }
  .favorites-dialog[open]::backdrop { animation: panel-fade-in .22s ease-out both; }
  .investments-portfolio details[open] > :not(summary) { animation: panel-fade-in .22s ease-out both; }

  @keyframes favorites-enter {
    from { opacity: 0; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes panel-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .scroll-reveal-pending {
    opacity: 0;
    translate: 0 16px;
    pointer-events: none;
  }

  .scroll-reveal-in {
    animation: scroll-reveal 560ms cubic-bezier(.2, .68, .26, 1) var(--reveal-delay, 0ms) backwards;
  }

  :is(.scroll-reveal-pending, .scroll-reveal-in):is(:target, :focus-within) {
    opacity: 1;
    translate: none;
    pointer-events: auto;
    animation: none;
  }

  @keyframes scroll-reveal {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .property-card { transition: border-color .22s, translate .25s ease-out; }
  .property-card:not(.scroll-reveal-pending, .scroll-reveal-in):hover { translate: 0 -3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .nav-enhanced *, .nav-enhanced .header-inner::before, .site-menu-drawer { transition-delay: 0s !important; }
  .site-menu-drawer[open] { animation: none; }
}
