@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Prata&display=swap');

:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --ink: #1c201d;
  --muted: #6d716a;
  --olive: #8f927e;
  --olive-deep: #5f6555;
  --line: rgba(28, 32, 29, .17);
  --white: #fbfaf6;
  --shadow: 0 30px 80px rgba(23, 27, 24, .12);
  --radius: 0;
  --container: min(1400px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }
body {
  width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
::selection { background: var(--olive); color: white; }

.container { width: var(--container); margin: 0 auto; }
.serif { font-family: 'Prata', Georgia, serif; font-weight: 400; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.section { padding: 132px 0; }
.section-title {
  margin: 22px 0 0;
  font-size: clamp(44px, 6vw, 96px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 1100px;
}
.section-title em { font-style: italic; color: var(--olive-deep); }
.section-intro {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  margin: 28px 0 0 auto;
}

.header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  transition: background .35s, border-color .35s, color .35s, transform .35s;
  color: var(--white);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  color: var(--ink);
  background: rgba(243, 240, 232, .91);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.header-inner {
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  font-family: 'Prata', Georgia, serif;
  letter-spacing: .11em;
  font-size: 23px;
  justify-self: start;
}
.logo span { display: block; font-family: 'Manrope'; font-size: 8px; letter-spacing: .34em; margin-top: -2px; opacity: .74; }
.nav { display: flex; gap: 34px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .25s; }
.nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 12px; letter-spacing: .04em; margin-right: 10px; }
.circle-button, .menu-button {
  width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: transparent; cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.circle-button:hover { background: var(--ink); color: var(--white); transform: rotate(-8deg); }
.header:not(.is-scrolled) .circle-button:hover { background: var(--white); color: var(--ink); }
.menu-button { display: none; }

.hero {
  min-height: 100svh;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #30382f;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 18, 14, .72) 0%, rgba(13, 18, 14, .23) 58%, rgba(13, 18, 14, .1)), url('assets/generated/mediterranean-villa.webp') center/cover no-repeat;
  transform: scale(1.01);
  animation: heroZoom 10s ease-out both;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,18,14,.38), transparent 42%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 180px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr); gap: clamp(28px, 4vw, 70px); align-items: end; }
.hero-kicker { text-transform: uppercase; font-size: 11px; letter-spacing: .2em; margin-bottom: 22px; }
.hero-title {
  margin: 0;
  font-size: clamp(56px, 8.1vw, 138px);
  line-height: .86;
  letter-spacing: -.055em;
  max-width: 10.2ch;
}
.hero-title span { display: block; }
.hero-title .line-2 { margin-left: 12%; font-style: italic; }
.hero-copy { align-self: end; justify-self: end; padding-bottom: 10px; width: min(100%, 400px); max-width: 400px; transform: translateX(-40px); }
.hero-copy p { margin: 0 0 28px; font-size: 16px; color: rgba(255,255,255,.82); }
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta-row .btn { flex: 1 1 220px; }
.btn {
  border: 1px solid var(--ink);
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
  cursor: pointer;
  transition: .3s;
}
.btn::after { content: '↗'; font-size: 14px; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.8); background: var(--white); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.hero-bottom {
  margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.32);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; color: rgba(255,255,255,.76); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
}
.hero-bottom span:last-child { text-align: right; }
.hero-bottom span:nth-child(2) { text-align: center; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; padding: 18px 0; }
.marquee-item { font-family: 'Prata'; font-size: 17px; white-space: nowrap; padding: 0 38px; }
.marquee-item::after { content: '✦'; margin-left: 76px; font-family: serif; font-size: 11px; color: var(--olive); }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 74px 34px 58px 0; border-right: 1px solid var(--line); }
.stat:not(:first-child) { padding-left: 34px; }
.stat:last-child { border-right: 0; }
.stat-value { font-family: 'Prata'; font-size: clamp(48px, 6vw, 86px); line-height: 1; letter-spacing: -.04em; }
.stat-label { color: var(--muted); max-width: 220px; margin-top: 18px; font-size: 13px; }

.featured-head { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: end; margin-bottom: 64px; }
.featured-head .section-title { font-size: clamp(50px, 7vw, 108px); }
.property-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 44px 24px; }
.property-card { grid-column: span 4; position: relative; }
.property-card:nth-child(1), .property-card:nth-child(5) { grid-column: span 7; }
.property-card:nth-child(2), .property-card:nth-child(6) { grid-column: span 5; padding-top: 90px; }
.property-image-wrap { position: relative; overflow: hidden; background: var(--paper-2); }
.property-image { aspect-ratio: 1.13/1; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.property-card:nth-child(1) .property-image, .property-card:nth-child(5) .property-image { aspect-ratio: 1.45/1; }
.property-card:hover .property-image { transform: scale(1.045); }
.property-badge { position: absolute; top: 16px; left: 16px; background: rgba(248,247,242,.92); padding: 9px 12px; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.property-plus { position: absolute; right: 16px; bottom: 16px; width: 45px; height: 45px; border-radius: 50%; background: rgba(248,247,242,.92); display: flex; align-items: center; justify-content: center; font-size: 19px; transition: .3s; }
.property-card:hover .property-plus { transform: rotate(45deg); background: var(--ink); color: white; }
.property-meta { padding-top: 17px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.property-title { font-family: 'Prata'; font-size: 25px; margin: 0; }
.property-location { color: var(--muted); font-size: 12px; margin-top: 4px; }
.property-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.property-specs { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; display: flex; gap: 22px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.featured-more { margin-top: 70px; display: flex; justify-content: center; }

.process { background: var(--ink); color: var(--white); }
.process .eyebrow, .process .section-intro { color: rgba(255,255,255,.55); }
.process .section-title em { color: #c4c3b2; }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 90px; }
.process-media { position: relative; align-self: stretch; min-width: 0; }
.process-image { height: min(610px, calc(100vh - 150px)); object-fit: cover; filter: saturate(.8); will-change: transform; }
.process-list { counter-reset: step; }
.process-item { counter-increment: step; padding: 33px 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 60px 1fr; gap: 25px; }
.process-item::before { content: '0' counter(step); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.45); padding-top: 8px; }
.process-item h3 { font-family: 'Prata'; font-size: 31px; margin: 0 0 12px; font-weight: 400; }
.process-item p { color: rgba(255,255,255,.6); margin: 0; max-width: 510px; }

.locations-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 310px 310px; gap: 20px; margin-top: 70px; }
.location-card { position: relative; overflow: hidden; color: white; }
.location-card:first-child { grid-row: 1 / 3; }
.location-card img { height: 100%; object-fit: cover; transition: transform .8s; }
.location-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,22,17,.66), rgba(16,22,17,.03) 70%); }
.location-card:hover img { transform: scale(1.04); }
.location-info { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 25px; display: flex; justify-content: space-between; align-items: flex-end; }
.location-info h3 { font-family: 'Prata'; font-size: 34px; margin: 0; font-weight: 400; }
.location-info span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.location-circle { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.location-credit { position: absolute; z-index: 2; top: 14px; right: 16px; font-size: 8px; letter-spacing: .03em; opacity: .72; }

.investment { background: var(--olive); color: white; overflow: hidden; position: relative; }
.investment::before { content: '06.9'; position: absolute; right: -20px; top: -70px; font-family: 'Prata'; font-size: 320px; color: rgba(255,255,255,.07); letter-spacing: -.07em; }
.investment-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: end; }
.investment-number { font-family: 'Prata'; font-size: clamp(110px, 17vw, 270px); line-height: .75; letter-spacing: -.08em; }
.investment-number small { font-size: .28em; letter-spacing: 0; }
.investment-copy h2 { font-family: 'Prata'; font-size: clamp(46px, 6vw, 88px); line-height: 1; margin: 0 0 28px; font-weight: 400; }
.investment-copy p { max-width: 580px; color: rgba(255,255,255,.76); font-size: 17px; }
.investment-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 55px; border-top: 1px solid rgba(255,255,255,.32); padding-top: 24px; }
.investment-point strong { display: block; font-family: 'Prata'; font-size: 27px; font-weight: 400; margin-bottom: 8px; }
.investment-point span { font-size: 12px; color: rgba(255,255,255,.67); }

.about { overflow: hidden; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.about-collage { min-height: 650px; position: relative; }
.about-collage .img-a { width: 72%; height: 560px; object-fit: cover; }
.about-collage .img-b { position: absolute; width: 47%; height: 310px; object-fit: cover; right: 0; bottom: 0; border: 12px solid var(--paper); }
.about-copy .section-title { font-size: clamp(50px, 6vw, 88px); }
.about-copy p { color: var(--muted); max-width: 560px; font-size: 16px; }
.signature { font-family: 'Prata'; font-style: italic; font-size: 32px; margin: 42px 0 28px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); padding: 9px 13px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.testimonials { border-top: 1px solid var(--line); }
.testimonial-layout { display: grid; grid-template-columns: 280px 1fr; gap: 90px; margin-top: 64px; }
.testimonial-side { display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-nav { display: flex; gap: 8px; }
.testimonial-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: .2s; }
.testimonial-arrow:hover { background: var(--ink); color: white; }
.testimonial { min-height: 300px; display: none; animation: fade .45s; }
.testimonial.active { display: block; }
.testimonial blockquote { font-family: 'Prata'; font-size: clamp(34px, 5vw, 66px); line-height: 1.15; margin: 0; letter-spacing: -.025em; }
.testimonial-author { margin-top: 42px; display: flex; align-items: center; gap: 18px; color: var(--muted); }
.testimonial-author::before { content: ''; width: 52px; height: 1px; background: currentColor; }
@keyframes fade { from { opacity: .2; transform: translateY(8px); } }

.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.faq-layout .section-title { position: sticky; top: 120px; font-size: clamp(48px, 6vw, 82px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: grid; grid-template-columns: 1fr 32px; gap: 20px; align-items: center; padding: 25px 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: 'Prata'; font-size: 22px; }
.faq-icon { font-family: 'Manrope'; font-size: 20px; transition: transform .25s; }
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .4s, padding .4s; }
.faq-answer p { margin: 0; max-width: 650px; }
.faq-item.open .faq-answer { max-height: 250px; padding: 0 0 28px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.contact-section { background: #dcd7ca; }
.contact-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: end; }
.contact-box h2 { font-family: 'Prata'; font-size: clamp(52px, 7vw, 106px); line-height: .94; letter-spacing: -.045em; margin: 0; }
.contact-box h2 em { color: var(--olive-deep); }
.lead-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-control { width: 100%; border: 0; border-bottom: 1px solid rgba(28,32,29,.4); background: transparent; padding: 16px 2px 12px; outline: none; border-radius: 0; }
.form-control:focus { border-color: var(--ink); }
.form-note { color: var(--muted); font-size: 10px; margin: 8px 0 0; }
.lead-form .btn { margin-top: 14px; width: fit-content; }

.footer { background: var(--ink); color: var(--white); padding: 78px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; padding-bottom: 65px; }
.footer-logo { font-family: 'Prata'; font-size: 38px; letter-spacing: .08em; }
.footer-desc { color: rgba(255,255,255,.55); max-width: 400px; margin-top: 16px; }
.footer h4 { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); margin: 0 0 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; display: flex; justify-content: space-between; color: rgba(255,255,255,.43); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18,22,19,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(610px, 100%); background: var(--paper); padding: 42px 52px; overflow-y: auto; animation: slideIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { transform: translateX(100%); } }
.modal-close { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; float: right; cursor: pointer; font-size: 18px; }
.modal-kicker { margin-top: 80px; }
.modal-title { font-family: 'Prata'; font-size: clamp(45px, 6vw, 70px); line-height: 1; margin: 18px 0 22px; }
.modal-copy { color: var(--muted); max-width: 450px; margin-bottom: 36px; }
.success-message { display: none; padding: 20px; background: #dce2d2; margin-top: 15px; }
.success-message.show { display: block; }

.mobile-menu { position: fixed; z-index: 90; inset: 0; background: var(--ink); color: white; padding: 32px; transform: translateY(-100%); transition: transform .45s; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav { display: grid; gap: 12px; margin-top: 90px; }
.mobile-nav a { font-family: 'Prata'; font-size: 42px; line-height: 1.2; }
.mobile-menu-contact { position: absolute; left: 32px; bottom: 34px; color: rgba(255,255,255,.55); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Catalog */
.page-hero { padding: 170px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: 'Prata'; font-size: clamp(70px, 11vw, 160px); line-height: .84; letter-spacing: -.06em; margin: 30px 0 0; }
.page-hero h1 em { display: block; margin-left: 14%; color: var(--olive-deep); }
.catalog-shell { padding: 46px 0 120px; }
.filters { display: grid; grid-template-columns: repeat(5,1fr) auto; gap: 10px; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.filter-control { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); outline: none; }
.filter-control:focus { border-color: var(--ink); }
.filter-reset { min-height: 50px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.catalog-count { display: flex; justify-content: space-between; margin-bottom: 26px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px 22px; }
.catalog-grid .property-card { grid-column: auto; padding: 0; }
.catalog-grid .property-image { aspect-ratio: 1.15/1; }
.no-results { display: none; padding: 80px 0; font-family: 'Prata'; font-size: 42px; text-align: center; }

/* Property page */
.property-page-hero { min-height: 82vh; display: flex; align-items: flex-end; color: white; position: relative; background: #283029; overflow: hidden; }
.property-page-bg { position: absolute; inset: 0; object-fit: cover; height: 100%; filter: brightness(.67); }
.property-page-content { position: relative; z-index: 2; padding: 170px 0 54px; width: 100%; }
.property-page-title { font-family: 'Prata'; font-size: clamp(68px, 11vw, 150px); line-height: .86; letter-spacing: -.055em; margin: 0; }
.property-page-meta { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.4); display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.property-page-meta div span { display: block; color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.property-page-meta strong { font-family: 'Prata'; font-size: 24px; font-weight: 400; }
.property-detail { padding: 100px 0 130px; }
.property-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; }
.property-description { font-family: 'Prata'; font-size: clamp(32px, 4vw, 54px); line-height: 1.2; margin: 0; }
.property-aside { padding-top: 8px; }
.property-aside p { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; margin: 35px 0; border-top: 1px solid var(--line); }
.feature-list span { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.property-gallery { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 330px 330px; gap: 16px; margin-top: 90px; }
.property-gallery img { height: 100%; object-fit: cover; }
.property-gallery img:first-child { grid-row: 1/3; }

@media (max-width: 1050px) {
  :root { --container: min(1400px, calc(100% - 40px)); }
  .nav, .header-phone { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
  .menu-button { display: inline-flex; }
  .header .circle-button { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-content { padding-top: 150px; }
  .hero-copy { width: 100%; max-width: 520px; }
  .hero-title { font-size: clamp(54px, 10vw, 96px); max-width: 11ch; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .property-card, .property-card:nth-child(n) { grid-column: span 6; padding-top: 0; }
  .process-layout, .about-layout, .faq-layout, .contact-box, .property-detail-grid { grid-template-columns: 1fr; gap: 60px; }
  .process-media, .faq-layout .section-title { position: relative; top: 0; }
  .process-image { height: 480px; }
  .about-copy { max-width: 760px; }
  .testimonial-layout { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-side { flex-direction: row; }
  .filters { grid-template-columns: repeat(3,1fr); }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --container: calc(100% - 28px); }
  body { font-size: 14px; }
  .section { padding: 88px 0; }
  .header-inner { height: 72px; }
  .logo { font-size: 19px; }
  .menu-button { width: 40px; height: 40px; }
  .hero-content { padding: 124px 0 26px; }
  .hero-title { font-size: clamp(42px, 13vw, 62px); line-height: .92; letter-spacing: -.06em; max-width: 8.8ch; }
  .hero-title .line-2 { margin-left: 0; }
  .hero-copy p { font-size: 14px; max-width: 34ch; }
  .hero-bottom { grid-template-columns: 1fr 1fr; margin-top: 40px; gap: 12px; }
  .hero-bottom span:nth-child(2) { text-align: right; }
  .hero-bottom span:last-child { display: none; }
  .btn { width: 100%; max-width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:not(:first-child) { padding: 38px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .featured-head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 42px; }
  .property-grid { display: block; }
  .property-card, .property-card:nth-child(n) { margin-bottom: 46px; }
  .property-card:nth-child(n) .property-image { aspect-ratio: 1.12/1; }
  .property-meta { grid-template-columns: 1fr; }
  .property-price { grid-row: 2; }
  .property-specs { grid-column: 1; gap: 12px; flex-wrap: wrap; }
  .process-layout { margin-top: 50px; }
  .process-image { height: 360px; }
  .process-item { grid-template-columns: 38px 1fr; }
  .process-item h3 { font-size: 25px; }
  .locations-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3,330px); }
  .location-card:first-child { grid-row: auto; }
  .investment-grid { grid-template-columns: 1fr; gap: 55px; }
  .investment-number { font-size: 135px; }
  .investment-points { grid-template-columns: 1fr; }
  .about-collage { min-height: 500px; }
  .about-collage .img-a { height: 430px; width: 85%; }
  .about-collage .img-b { height: 220px; }
  .testimonial blockquote { font-size: 31px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .modal-panel { padding: 26px 22px; }
  .page-hero { padding-top: 130px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .filter-control:nth-child(5) { grid-column: 1/-1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .property-page-hero { min-height: 75vh; }
  .property-page-title { font-size: 64px; }
  .property-page-meta { grid-template-columns: 1fr 1fr; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3,280px); }
  .property-gallery img:first-child { grid-row: auto; }
}


/* === Revision pack: targeted portfolio refinements === */
/* Hero typography and safe spacing */
.hero-heading { transform: translateY(-30px); margin-left: 40px; }
.hero-kicker { letter-spacing: .245em; line-height: 1.5; }
.hero-title { font-size: clamp(58px, 8.25vw, 142px); letter-spacing: -.035em; line-height: .88; }
.hero-bottom { padding-left: 18px; padding-right: 18px; padding-bottom: 12px; }

/* Truly seamless marquee: two identical, non-shrinking groups */
.marquee-track { display: flex; width: max-content; padding: 18px 0; animation: marqueeContinuous 30s linear infinite; will-change: transform; }
.marquee-group { display: flex; flex: 0 0 auto; }
.marquee-item { flex: 0 0 auto; }
@keyframes marqueeContinuous { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Location and CTA editorial line breaks */
.location-title { letter-spacing: -.026em; }
.location-title em { display: block; width: fit-content; margin-left: 14%; }
.contact-title { letter-spacing: -.02em !important; }
.contact-title em { display: block; width: fit-content; }

/* Investment label separation and background number */
.investment::before { content: '6.9'; }
.investment-eyebrow { margin-bottom: 30px; }

/* Testimonials with synchronized client photography */
.testimonial-counter { font-size: 12px; letter-spacing: .12em; }
.testimonial-slides { min-width: 0; }
.testimonial { min-height: 420px; }
.testimonial.active { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); gap: clamp(36px, 5vw, 78px); align-items: center; }
.testimonial-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.testimonial-media img { height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.02); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.testimonial.active:hover .testimonial-media img { transform: scale(1.025); }
.testimonial-copy { min-width: 0; }
.testimonial blockquote { font-size: clamp(31px, 3.65vw, 58px); }

/* Readable, refined form and select controls */
.form-control,
.modal-panel .form-control,
.contact-section .form-control {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.form-control::placeholder { color: #777b73; opacity: 1; -webkit-text-fill-color: #777b73; }
select.form-control,
select.filter-control {
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231c201d' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 7px;
}
select.form-control option,
select.filter-control option { color: var(--ink); background: var(--paper); }
select.form-control:invalid { color: var(--muted); -webkit-text-fill-color: var(--muted); }
textarea.form-control { min-height: 112px; resize: vertical; }
.modal-panel { color: var(--ink); }
.modal-panel .modal-title { color: var(--ink); }
.modal-panel .modal-copy,
.modal-panel .form-note { color: #646960; }
.modal-panel .form-control { border-bottom-color: rgba(28,32,29,.48); }
.modal-panel .form-control:focus { border-bottom-color: var(--ink); }

/* Property page title and centered facts */
.property-page-title { letter-spacing: -.025em; }
.property-page-meta > div { text-align: center; }

@media (max-width: 1050px) {
  .hero-heading { transform: translateY(-18px); }
  .testimonial.active { grid-template-columns: minmax(190px, 270px) minmax(0, 1fr); gap: 38px; }
  .testimonial blockquote { font-size: clamp(29px, 4.2vw, 46px); }
}

@media (max-width: 700px) {
  .hero-heading { transform: translateY(-8px); }
  .hero-kicker { letter-spacing: .21em; }
  .hero-title { font-size: clamp(43px, 13.2vw, 62px); letter-spacing: -.035em; }
  .hero-bottom { padding-left: 8px; padding-right: 8px; padding-bottom: 8px; }
  .location-title em { margin-left: 0; }
  .contact-title em { margin-top: 4px; }
  .investment-eyebrow { margin-bottom: 24px; }
  .testimonial-layout { gap: 28px; }
  .testimonial.active { grid-template-columns: 1fr; gap: 28px; }
  .testimonial-media { width: min(76vw, 330px); }
  .testimonial { min-height: 0; }
  .testimonial blockquote { font-size: 30px; }
  .property-page-title { letter-spacing: -.02em; }
  .property-page-meta > div { text-align: center; }
}


/* --- v4 fine-tuning: spacing, individuality, layout safety --- */
.hero-title { letter-spacing: -.012em; text-wrap: balance; }
.location-title { letter-spacing: -.01em; text-wrap: balance; }
.contact-title { letter-spacing: -.008em !important; text-wrap: balance; }
.property-page-title {
  font-size: clamp(58px, 9.2vw, 128px);
  line-height: 1.08;
  letter-spacing: .025em;
  max-width: 9ch;
  text-wrap: balance;
  margin-top: 16px;
}
.property-page-content .eyebrow { margin-bottom: 6px; position: relative; z-index: 3; }
.property-page-meta { max-width: 1120px; margin-left: auto; margin-right: auto; }
.testimonial-layout { grid-template-columns: 170px 1fr; gap: 34px; }
.testimonial-slides { margin-left: -204px; }
.testimonial.active { gap: clamp(28px, 4vw, 58px); }
@media (max-width: 1050px) {
  .testimonial-layout { grid-template-columns: 150px 1fr; gap: 24px; }
  .testimonial-slides { margin-left: -174px; }
  .property-page-title { font-size: clamp(54px, 9.5vw, 106px); max-width: 9.5ch; }
}
@media (max-width: 700px) {
  .hero-title { letter-spacing: -.01em; }
  .location-title { letter-spacing: -.008em; }
  .contact-title { letter-spacing: -.006em !important; }
  .testimonial-layout { grid-template-columns: 1fr; gap: 26px; }
  .testimonial-slides { margin-left: 0; }
  .property-page-title { font-size: clamp(46px, 12vw, 76px); letter-spacing: .018em; max-width: 8.6ch; margin-top: 14px; }
}


/* === v5 targeted corrections === */
/* Prevent the large CTA heading from colliding across lines. */
.contact-box h2,
.contact-title {
  line-height: 1.18;
  letter-spacing: .006em !important;
  text-wrap: balance;
}
.contact-title em {
  line-height: inherit;
  margin-top: .12em;
}

/* Keep testimonial controls fixed while text and image change. */
.testimonial-layout {
  min-height: 570px;
  align-items: start;
}
.testimonial-side {
  position: relative;
  height: 570px;
  min-height: 570px;
  justify-content: flex-start;
}
.testimonial-counter {
  position: absolute;
  top: 0;
  left: 0;
}
.testimonial-nav {
  position: absolute;
  left: 0;
  bottom: 0;
}
.testimonial-slides {
  min-height: 570px;
}
.testimonial.active {
  min-height: 570px;
  align-content: center;
}

/* Inset property page headings from the viewport edge and preserve hierarchy. */
.property-page-content > .eyebrow,
.property-page-title {
  margin-left: clamp(18px, 1.8vw, 30px);
}
.property-page-title {
  margin-top: 28px;
}

/* Keep the process image moving with the scroll until the list ends. */
.process,
.process > .container,
.process-layout {
  overflow: visible;
}
.process-layout {
  align-items: stretch;
}
@media (min-width: 901px) {
  .process-media {
    position: relative !important;
    top: auto !important;
    align-self: stretch;
  }
  .process-image {
    height: min(610px, calc(100vh - 150px));
  }
}

@media (max-width: 1050px) {
  .contact-box h2,
  .contact-title {
    line-height: 1.18;
  }
  .testimonial-layout,
  .testimonial-side,
  .testimonial-slides,
  .testimonial.active {
    min-height: 530px;
  }
  .testimonial-side {
    height: 530px;
  }
}

@media (max-width: 900px) {
  .process-media {
    position: relative !important;
    top: auto !important;
  }
  .process-image {
    height: 480px;
  }
}

@media (max-width: 700px) {
  .contact-box h2,
  .contact-title {
    line-height: 1.18;
    letter-spacing: .004em !important;
  }
  .testimonial-layout,
  .testimonial-side,
  .testimonial-slides,
  .testimonial.active {
    min-height: 0;
  }
  .testimonial-side {
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .testimonial-counter,
  .testimonial-nav {
    position: static;
  }
  .property-page-content > .eyebrow,
  .property-page-title {
    margin-left: 10px;
  }
  .property-page-title {
    margin-top: 22px;
  }
  .process-image {
    height: 360px;
  }
}
