@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@500;600;700&display=swap");

:root {
  --ink: #15130f;
  --muted: #6e675c;
  --paper: #f7f4ef;
  --white: #fff;
  --night: #0c0b09;
  --night-soft: #15120e;
  --line: #e5ded2;
  --gold: #c19a58;
  --gold-strong: #d3ad67;
  --gold-deep: #8e6b36;
  --shadow: 0 24px 55px rgba(21, 19, 15, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --container: min(calc(100vw - 80px), 1160px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

section,
footer {
  scroll-margin-top: 84px;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 66px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(22px, 4.8vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.86), rgba(10, 9, 8, 0.22));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(12, 11, 9, 0.94);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 2px solid rgba(193, 154, 88, 0.75);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.32) 0 8%, transparent 9%),
    radial-gradient(circle, rgba(193, 154, 88, 0.7), rgba(193, 154, 88, 0.1) 46%, rgba(0, 0, 0, 0.04) 47%);
  filter: blur(4px);
  opacity: 0.86;
}

.brand-copy {
  display: grid;
  gap: 8px;
  filter: blur(4px);
  opacity: 0.82;
}

.brand-copy span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.brand-copy span:first-child {
  width: 132px;
}

.brand-copy span:last-child {
  width: 96px;
  opacity: 0.42;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.75vw, 28px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 25px 0 22px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-current::after {
  transform: scaleX(1);
}

.main-nav a.is-current {
  color: var(--gold-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language,
.outline-cta,
.menu-toggle {
  color: var(--white);
  background: transparent;
  border: 0;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
}

.language svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language .chevron {
  width: 12px;
  height: 12px;
}

.outline-cta {
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid rgba(193, 154, 88, 0.92);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.outline-cta:hover,
.outline-cta:focus-visible {
  background: var(--gold);
  color: var(--night);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: clamp(500px, 40vw, 580px);
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(10, 8, 6, 0.86) 22%, rgba(11, 9, 7, 0.34) 55%, rgba(10, 8, 6, 0.06) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.16)),
    url("assets/hero.jpg") center right / cover no-repeat;
  position: relative;
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 78px 0 104px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.expertise h2,
.valuation h2,
.modal h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(48px, 4.7vw, 67px);
}

em {
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 375px;
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.48;
}

.hero-button,
.light-button,
.gold-button,
.search-button,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.hero-button {
  min-width: 222px;
  min-height: 45px;
  padding: 0 26px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--gold);
}

.hero-button svg,
.light-button svg,
.gold-button svg,
.search-button svg,
.text-link svg,
.district-card svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-button:hover,
.hero-button:focus-visible,
.light-button:hover,
.light-button:focus-visible,
.gold-button:hover,
.gold-button:focus-visible,
.footer-cta:hover,
.footer-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.hero-button:hover {
  background: var(--gold);
  color: var(--night);
}

.search-panel {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  padding: 0 0 clamp(28px, 4.4vw, 58px);
}

.search-shell {
  width: min(calc(100vw - 140px), 1060px);
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-tabs {
  display: flex;
  height: 40px;
  border-bottom: 1px solid var(--line);
}

.search-tabs button {
  width: 122px;
  border: 0;
  border-right: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}

.search-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.property-search {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(190px, 1.25fr) minmax(160px, 1fr) minmax(130px, 0.85fr) minmax(160px, 170px);
  min-height: 70px;
}

.property-search label {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-right: 1px solid var(--line);
}

.property-search label span {
  color: #797164;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.property-search select {
  width: 100%;
  min-width: 0;
  border: 0;
  color: #585047;
  background: transparent;
  font-size: 12px;
  outline: 0;
}

.search-button {
  margin: 13px 18px;
  min-width: 128px;
  color: var(--white);
  background: var(--night);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.search-button:hover,
.search-button:focus-visible {
  background: var(--gold);
  color: var(--night);
  transform: translateY(-1px);
}

.search-feedback {
  min-height: 0;
  margin: 0;
  padding: 0 22px 0;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
}

.search-feedback:not(:empty) {
  padding-bottom: 14px;
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.properties {
  padding: 0 0 clamp(34px, 4vw, 56px);
}

.section-heading,
.district-heading,
.testimonial-heading {
  display: grid;
  align-items: end;
  gap: 24px;
}

.section-heading {
  grid-template-columns: 1fr auto;
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}

.section h2,
.expertise h2 {
  font-size: clamp(30px, 3.8vw, 40px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--gold-deep);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  padding-bottom: 6px;
}

.property-card {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: transform 190ms ease, box-shadow 190ms ease;
  outline: 0;
}

.property-card:hover,
.property-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(21, 19, 15, 0.16);
}

.property-media {
  position: relative;
  aspect-ratio: 2.12;
  overflow: hidden;
  background: #221d17;
}

.property-media::after,
.district-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.property-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 46%);
}

.property-media img,
.district-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.property-card:nth-child(1) .property-media img {
  object-position: center 58%;
}

.property-card:nth-child(3) .property-media img {
  object-position: center 48%;
}

.district-card img {
  filter: brightness(0.88) saturate(0.95);
}

.property-card:hover img,
.district-card:hover img {
  transform: scale(1.055);
}

.property-media > span {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 13px;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.favorite-button {
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.favorite-button svg {
  width: 20px;
  height: 20px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.favorite-button:hover,
.favorite-button.is-active {
  color: var(--gold-strong);
  background: rgba(0, 0, 0, 0.46);
}

.favorite-button.is-active svg {
  fill: currentColor;
}

.property-content {
  padding: 16px 16px 18px;
}

.property-content h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.04;
}

.property-content p {
  margin: 0 0 10px;
  color: #6a6258;
  font-size: 10px;
  line-height: 1.4;
}

.property-content p span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 5px 2px;
  border-radius: 50%;
  background: #9d9488;
}

.property-content strong {
  font-size: 13px;
  letter-spacing: 0;
}

.expertise {
  margin-top: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 35%, rgba(193, 154, 88, 0.11), transparent 24%),
    linear-gradient(90deg, #0b0b0a, #12100e 55%, #0b0b0a);
}

.expertise-inner {
  width: var(--container);
  min-height: 230px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 4.2vw, 56px) 0;
}

.expertise h2 {
  font-size: clamp(29px, 3.2vw, 34px);
}

.expertise-intro p:not(.section-kicker) {
  max-width: 260px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.expertise-grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 124px;
  padding: 4px clamp(16px, 2vw, 28px);
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.feature-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise h3 {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.expertise-grid p {
  max-width: 170px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.35;
}

.districts {
  padding: clamp(44px, 6vw, 76px) 0 0;
}

.district-heading {
  grid-template-columns: minmax(300px, 350px) 1fr auto;
  gap: clamp(18px, 3vw, 38px);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.district-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.light-button {
  min-height: 39px;
  padding: 0 22px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
}

.light-button:hover,
.light-button:focus-visible {
  color: var(--white);
  background: var(--night);
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.district-card {
  position: relative;
  aspect-ratio: 1.18;
  min-height: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  outline: 0;
  isolation: isolate;
}

.district-card::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
}

.district-card div {
  position: absolute;
  z-index: 2;
  inset: 18px 17px;
  display: grid;
  align-content: end;
}

.district-card div::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 28px -18px -18px -18px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.district-card span {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.district-card h3 {
  max-width: 205px;
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.02;
}

.district-card p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.testimonials {
  padding: clamp(46px, 6vw, 74px) 0 clamp(44px, 5.6vw, 68px);
}

.testimonial-heading {
  grid-template-columns: 1fr auto;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.carousel-controls {
  display: flex;
  gap: 12px;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  color: var(--gold-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.carousel-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  min-height: 122px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}

.testimonial-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.testimonial-card[hidden] {
  display: none;
}

.quote-mark {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 50px;
  line-height: 0.9;
}

.testimonial-card > p {
  margin: 0;
  color: #40392f;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.45;
}

.client {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 13px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
}

.avatar-one { background: #557d65; }
.avatar-two { background: #946e4f; }
.avatar-three { background: #597188; }
.avatar-four { background: #7a5e78; }

.client p {
  margin: 0;
  color: #635b51;
  font-size: 10px;
  line-height: 1.35;
}

.client strong {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.valuation {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.92), rgba(13, 10, 6, 0.66), rgba(8, 7, 6, 0.94)),
    url("assets/cta-interior.jpg") center / cover no-repeat;
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
}

.valuation-inner {
  width: var(--container);
  min-height: 142px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 3.6vw, 40px) 0;
}

.valuation-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: var(--gold);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.valuation-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.valuation h2 {
  font-size: clamp(27px, 3.1vw, 36px);
}

.valuation p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.gold-button {
  min-height: 48px;
  padding: 0 30px;
  color: var(--white);
  background: var(--gold);
}

.gold-button:hover,
.gold-button:focus-visible {
  color: var(--night);
  background: var(--gold-strong);
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 20% 15%, rgba(193, 154, 88, 0.12), transparent 19%),
    #0d0c0b;
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1fr 1.05fr;
  gap: clamp(24px, 3vw, 38px);
  padding: clamp(34px, 5vw, 58px) 0 24px;
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-brand p,
.contact-line {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.55;
}

.site-footer h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
}

.site-footer a,
.footer-link {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 10px;
  line-height: 1.35;
}

.site-footer a:hover,
.footer-link:hover {
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 11px;
}

.socials button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--night);
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.footer-cta {
  min-height: 40px;
  width: 100%;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.footer-cta:hover {
  color: var(--night);
  background: var(--gold);
}

.copyright {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  max-width: min(90vw, 420px);
  padding: 13px 18px;
  color: var(--night);
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  transform: translate(-50%, 24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  font-weight: 700;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(92vw, 520px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 34px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 5vw, 43px);
  line-height: 1.02;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #584f42;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 14px;
  outline: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 88, 0.18);
}

@media (max-width: 1120px) {
  :root {
    --container: min(calc(100vw - 56px), 1040px);
  }

  .site-header {
    grid-template-columns: 178px minmax(0, 1fr) auto;
    gap: 14px;
    padding-inline: 28px;
  }

  .main-nav {
    gap: 11px;
    font-size: 10px;
  }

  .outline-cta {
    padding: 0 16px;
  }

  .search-shell {
    width: var(--container);
  }

  .property-search {
    grid-template-columns: minmax(180px, 1.25fr) minmax(180px, 1.15fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(150px, 160px);
  }

  .valuation-inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(185px, 220px);
    gap: 22px;
  }

  .valuation h2 {
    font-size: clamp(25px, 2.7vw, 31px);
  }

  .valuation .gold-button {
    padding-inline: 22px;
  }
}

@media (max-width: 940px) {
  :root {
    --container: min(calc(100vw - 44px), 760px);
  }

  .property-grid,
  .district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    margin-top: -62px;
  }

  .search-shell {
    width: var(--container);
  }

  .property-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-search label:nth-child(2n) {
    border-right: 0;
  }

  .search-button {
    grid-column: 1 / -1;
    min-height: 50px;
  }

  .expertise-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }

  .district-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(calc(100vw - 40px), 660px);
  }

  .site-header {
    height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .brand {
    grid-template-columns: 42px 1fr;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy span:first-child {
    width: 116px;
  }

  .brand-copy span:last-child {
    width: 82px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .header-actions {
    position: fixed;
    left: 50%;
    right: auto;
    width: calc(100vw - 36px);
    max-width: 460px;
    box-sizing: border-box;
    transform: translateX(-50%);
    display: none;
    background: var(--night);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  .main-nav {
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-self: stretch;
    padding: 10px 18px;
    border: 1px solid rgba(193, 154, 88, 0.32);
  }

  .main-nav a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  .main-nav a::after {
    bottom: 8px;
  }

  .header-actions {
    top: 354px;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px 18px;
    border: 1px solid rgba(193, 154, 88, 0.32);
    border-top: 0;
  }

  .header-actions .outline-cta {
    min-width: 0;
    flex: 1;
    padding-inline: 14px;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 104px 0 92px;
  }

  .search-shell {
    width: var(--container);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    border-left: 0;
    padding: 0;
  }

  .valuation-inner {
    grid-template-columns: auto 1fr;
  }

  .valuation .gold-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(calc(100vw - 40px), 520px);
  }

  body {
    font-size: 14px;
  }

  .hero {
    min-height: 540px;
    background:
      linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(10, 8, 6, 0.78) 48%, rgba(11, 9, 7, 0.28) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.16)),
      url("assets/hero.jpg") 57% center / cover no-repeat;
  }

  .hero-inner {
    padding: 96px 0 76px;
  }

  .hero h1 {
    max-width: 350px;
    font-size: clamp(40px, 11.4vw, 50px);
    line-height: 0.98;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 14px;
  }

  .search-panel {
    margin-top: -28px;
    padding-bottom: 40px;
  }

  .search-shell {
    width: var(--container);
  }

  .property-search,
  .property-grid,
  .district-grid,
  .expertise-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .property-search label,
  .property-search label:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-tabs button {
    width: 50%;
  }

  .section h2,
  .expertise h2 {
    font-size: clamp(34px, 10vw, 38px);
  }

  .property-media {
    aspect-ratio: 1.78;
  }

  .property-content {
    padding: 18px 18px 20px;
  }

  .property-content h3 {
    font-size: 22px;
  }

  .property-content p {
    font-size: 11px;
  }

  .expertise-grid article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 26px 0 0;
  }

  .expertise-grid article:first-child {
    border-top: 0;
  }

  .district-card {
    min-height: 240px;
    aspect-ratio: 1.28;
  }

  .district-card h3 {
    max-width: 250px;
    font-size: 25px;
  }

  .testimonial-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .testimonial-card {
    grid-template-columns: 34px 1fr;
  }

  .valuation-inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 16px;
    padding: 24px 0;
  }

  .valuation-icon {
    width: 58px;
    height: 58px;
  }

  .gold-button,
  .light-button,
  .hero-button,
  .footer-cta {
    width: 100%;
  }

  .footer-grid {
    gap: 24px;
    padding: 28px 0 16px;
  }

  .footer-grid > div:not(:first-child) {
    padding-top: 18px;
    border-top: 1px solid rgba(193, 154, 88, 0.22);
  }

  .site-footer a,
  .footer-link {
    min-height: 24px;
  }

  .modal-panel {
    padding: 30px 22px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: min(calc(100vw - 32px), 390px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy span:first-child {
    width: 100px;
  }

  .brand-copy span:last-child {
    width: 72px;
  }

  .main-nav,
  .header-actions {
    width: calc(100vw - 32px);
  }

  .header-actions {
    align-items: stretch;
  }

  .language {
    min-width: 72px;
  }

  .hero-button,
  .gold-button,
  .light-button,
  .search-button,
  .footer-cta {
    min-height: 48px;
    padding-inline: 18px;
  }

  .property-search label {
    padding-inline: 18px;
  }

  .testimonial-card {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .modal {
    padding: 14px;
  }
}

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