/* ============================================================
   PABLO GLOBAL PROPERTIES — Design System
   "Private wealth journal" — warm ink, ivory paper, champagne gold
   Type: Fraunces (display) / Albert Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Albert+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #161209;
  --ink-soft: #241e12;
  --ink-2: #3a3220;
  --paper: #f4efe5;
  --paper-2: #ece5d6;
  --paper-3: #e3dac6;
  --gold: #c8a24b;
  --gold-deep: #a8823a;
  --gold-pale: #e9d9ae;
  --forest: #22382e;
  --forest-soft: #2e4a3d;
  --muted: #7c7257;
  --muted-dark: #b3a785;
  --line: rgba(22, 18, 9, 0.14);
  --line-dark: rgba(244, 239, 229, 0.16);
  --shadow-lg: 0 30px 60px -18px rgba(22, 18, 9, 0.35);
  --shadow-md: 0 18px 40px -16px rgba(22, 18, 9, 0.25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Albert Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.container--narrow { width: min(880px, 92vw); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.display-xl { font-size: clamp(2.9rem, 7.2vw, 6rem); font-weight: 400; }
.display-lg { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 400; }
.display-md { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.display-sm { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 42px; height: 1px; background: var(--gold); }
.on-dark .eyebrow, .eyebrow--light { color: var(--gold); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--ink-2); max-width: 56ch; }
.on-dark .lede { color: var(--muted-dark); }

.sec-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), height 0.45s var(--ease);
}
.site-header.is-dark { color: var(--paper); }
.site-header.is-scrolled {
  background: rgba(22, 18, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  height: 68px;
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(200, 162, 75, 0.35);
}
.brand-name { font-family: var(--serif); font-size: 1.06rem; letter-spacing: 0.04em; line-height: 1.15; }
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
.is-dark .brand-name small, .is-scrolled .brand-name small { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.btn { opacity: 1; padding: 11px 22px; letter-spacing: 0.16em; font-size: 0.72rem; }
.main-nav a.btn::after { display: none; }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 320;
  color: inherit;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: currentColor;
  margin: 6px auto;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-open .nav-toggle { color: var(--paper); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
  position: relative;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--sm { padding: 11px 22px; font-size: 0.72rem; }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.text-link:hover { gap: 16px; color: var(--ink); }
.on-dark .text-link { color: var(--gold); }
.on-dark .text-link:hover { color: var(--gold-pale); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(10deg, rgba(22,18,9,0.96) 8%, rgba(22,18,9,0.35) 55%, rgba(22,18,9,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, 92vw);
  margin-inline: auto;
  padding: calc(var(--header-h) + 60px) 0 0;
}
.hero-title { max-width: 14ch; }
.hero-title em { font-style: italic; color: var(--gold-pale); }
.hero-sub { margin-top: 28px; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(244, 239, 229, 0.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 42px; }

.hero-stats {
  margin-top: 70px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat { padding: 26px 28px 34px 0; border-right: 1px solid var(--line-dark); }
.hero-stat:not(:first-child) { padding-left: 28px; }
.hero-stat:last-child { border-right: none; }
.hero-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: var(--gold); }
.hero-stat span { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,239,229,0.62); }

/* Staggered hero reveal */
.hero-reveal { opacity: 0; transform: translateY(34px); animation: rise 1.1s var(--ease) forwards; }
.hero-reveal:nth-child(1) { animation-delay: 0.15s; }
.hero-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-reveal:nth-child(3) { animation-delay: 0.45s; }
.hero-reveal:nth-child(4) { animation-delay: 0.6s; }
.hero-reveal:nth-child(5) { animation-delay: 0.78s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
}
.ticker span::after { content: "✦"; font-style: normal; font-size: 0.7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--tint { background: var(--paper-2); }
.section--forest { background: var(--forest); color: var(--paper); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.sec-head h2 { margin-top: 18px; max-width: 22ch; }
.sec-head h2 em { font-style: italic; color: var(--gold-deep); }
.section--dark .sec-head h2 em, .section--forest .sec-head h2 em { color: var(--gold); }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.prop-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.section--dark .prop-card, .section--forest .prop-card { border-color: var(--line-dark); background: var(--ink-soft); }
.prop-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.prop-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.prop-card:hover .prop-media img { transform: scale(1.07); }
.prop-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(22, 18, 9, 0.85);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 13px;
  backdrop-filter: blur(6px);
}
.prop-badge--gold { background: var(--gold); color: var(--ink); }

.prop-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop-loc { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); display: flex; align-items: center; gap: 8px; }
.section--dark .prop-loc, .section--forest .prop-loc { color: var(--gold); }
.prop-title { font-size: 1.32rem; line-height: 1.2; }
.prop-title a:hover { color: var(--gold-deep); }
.section--dark .prop-title a:hover { color: var(--gold); }
.prop-meta {
  display: flex; gap: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.section--dark .prop-meta, .section--forest .prop-meta { border-color: var(--line-dark); color: var(--muted-dark); }
.prop-meta b { color: inherit; font-weight: 600; }
.prop-price { font-family: var(--serif); font-size: 1.28rem; color: var(--ink); }
.section--dark .prop-price, .section--forest .prop-price { color: var(--gold-pale); }
.prop-price small { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }

/* ---------- Dual market split ---------- */
.market-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-dark); }
.market-panel {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}
.market-panel + .market-panel { border-left: 1px solid var(--line-dark); }
.market-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s; filter: saturate(0.85); }
.market-panel:hover img { transform: scale(1.06); filter: saturate(1.05); }
.market-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(8deg, rgba(22,18,9,0.92) 10%, rgba(22,18,9,0.18) 60%);
}
.market-content { position: relative; z-index: 2; padding: 44px; width: 100%; }
.market-content h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 400; }
.market-content h3 em { font-style: italic; color: var(--gold-pale); }
.market-content p { margin: 14px 0 22px; max-width: 44ch; color: rgba(244,239,229,0.82); font-size: 0.95rem; }
.market-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* ---------- Pillars / value props ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.section--dark .pillars, .section--forest .pillars { border-color: var(--line-dark); }
.pillar {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 32px 44px;
  position: relative;
  transition: background 0.4s var(--ease);
}
.section--dark .pillar, .section--forest .pillar { border-color: var(--line-dark); }
.pillar:hover { background: rgba(200, 162, 75, 0.07); }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 0.9rem; }
.section--dark .pillar-num, .section--forest .pillar-num { color: var(--gold); }
.pillar h3 { font-size: 1.32rem; margin: 16px 0 12px; }
.pillar p { font-size: 0.93rem; color: var(--ink-2); }
.section--dark .pillar p, .section--forest .pillar p { color: var(--muted-dark); }

/* ---------- Editorial split ---------- */
.edit-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.edit-media { position: relative; }
.edit-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.edit-media::before {
  content: ""; position: absolute;
  top: -22px; left: -22px; right: 22px; bottom: 22px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.edit-media--right::before { left: 22px; right: -22px; }
.edit-quote {
  position: absolute;
  bottom: -28px; right: -18px;
  background: var(--ink);
  color: var(--paper);
  padding: 26px 30px;
  max-width: 320px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}
.edit-quote b { color: var(--gold); font-weight: 500; }
.edit-copy h2 { margin: 18px 0 22px; }
.edit-copy h2 em { font-style: italic; color: var(--gold-deep); }
.edit-copy p { color: var(--ink-2); margin-bottom: 16px; }
.on-dark .edit-copy p { color: var(--muted-dark); }
.edit-copy .btn { margin-top: 16px; }

.checklist { margin: 22px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: baseline; font-size: 0.97rem; color: var(--ink-2); }
.on-dark .checklist li { color: var(--muted-dark); }
.checklist li::before { content: "✦"; color: var(--gold-deep); font-size: 0.7rem; flex: none; }
.on-dark .checklist li::before { color: var(--gold); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.quote-card {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.quote-mark { font-family: var(--serif); font-size: 3rem; line-height: 0.6; color: var(--gold); }
.quote-card p { font-family: var(--serif); font-style: italic; font-size: 1.06rem; line-height: 1.6; color: var(--paper); }
.quote-who { margin-top: auto; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); }
.quote-who b { display: block; color: var(--gold); margin-bottom: 4px; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { display: flex; flex-direction: column; background: transparent; }
.blog-card .prop-media { aspect-ratio: 16 / 10; }
.blog-card-body { padding: 22px 0 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.on-dark .blog-tag { color: var(--gold); }
.blog-card h3 { font-size: 1.36rem; line-height: 1.22; }
.blog-card h3 a { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 96%; transition: background-size 0.5s var(--ease); }
.blog-card h3 a:hover { background-size: 100% 1px; }
.blog-card p { font-size: 0.92rem; color: var(--ink-2); }
.on-dark .blog-card p { color: var(--muted-dark); }
.blog-date { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: auto; }

.blog-featured {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--line);
  margin-bottom: 60px;
  background: var(--paper-2);
}
.blog-featured .prop-media { aspect-ratio: auto; min-height: 420px; height: 100%; }
.blog-featured-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.blog-featured-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.blog-featured-body p { color: var(--ink-2); }

/* ---------- Article (prose) ---------- */
.article-hero {
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) 0 clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(200,162,75,0.14), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(46,74,61,0.35), transparent 60%);
}
.article-hero .container--narrow { position: relative; z-index: 2; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 400; margin: 22px 0 18px; }
.article-hero h1 em { font-style: italic; color: var(--gold-pale); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); }
.article-meta b { color: var(--gold); font-weight: 600; }

.article-cover { margin: clamp(-40px, -4vw, -60px) auto 0; position: relative; z-index: 3; }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; box-shadow: var(--shadow-lg); }

.prose { padding: clamp(56px, 7vw, 90px) 0; }
.prose > * + * { margin-top: 1.35em; }
.prose p { font-size: 1.06rem; line-height: 1.85; color: var(--ink-2); }
.prose .opener::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 8px 12px 0 0;
  color: var(--gold-deep);
}
.prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 2em;
  display: flex; align-items: baseline; gap: 16px;
}
.prose h2 .n { font-style: italic; font-size: 0.62em; color: var(--gold-deep); flex: none; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 4px; display: grid; gap: 10px; }
.prose ul li { display: flex; gap: 14px; align-items: baseline; font-size: 1.02rem; color: var(--ink-2); line-height: 1.7; }
.prose ul li::before { content: "✦"; color: var(--gold-deep); font-size: 0.66rem; flex: none; }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; display: flex; gap: 16px; align-items: baseline; font-size: 1.02rem; color: var(--ink-2); line-height: 1.7; }
.prose ol li::before { content: counter(item, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--gold-deep); flex: none; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding: 10px 0 10px 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink);
  margin-block: 2em;
}
.prose b, .prose strong { color: var(--ink); }
.prose .callout {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 36px;
  margin-block: 2.2em;
}
.prose .callout h4 { color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; }
.prose .callout p { color: var(--muted-dark); font-size: 0.98rem; margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-block: 2em; }
.prose th { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; text-align: left; padding: 14px 16px; background: var(--ink); color: var(--gold-pale); }
.prose td { padding: 13px 16px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--paper-2); }

.article-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 0;
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.article-tags span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 13px; color: var(--muted); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 88% 0%, rgba(200,162,75,0.16), transparent 55%),
    radial-gradient(ellipse 45% 60% at 5% 100%, rgba(46,74,61,0.4), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-weight: 400; margin-top: 20px; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--gold-pale); }
.page-hero .lede { margin-top: 22px; }
.crumbs { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 10px; color: var(--gold-deep); }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  padding: 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  position: relative;
  z-index: 5;
  color: var(--paper);
}
.filter-field { display: flex; flex-direction: column; gap: 8px; }
.filter-field label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.filter-field input, .filter-field select {
  background: rgba(244, 239, 229, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  padding: 13px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
}
.filter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c8a24b' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.filter-field select option { background: var(--ink); color: var(--paper); }
.filter-field input:focus, .filter-field select:focus { border-color: var(--gold); }
.filter-field input::placeholder { color: rgba(244,239,229,0.4); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 38px 0 30px; flex-wrap: wrap; }
.results-count { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.results-count b { color: var(--ink); font-style: normal; font-weight: 500; }
.market-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 90px 20px;
  border: 1px dashed var(--line);
}
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); }

/* ---------- Property detail ---------- */
.detail-hero { background: var(--ink); color: var(--paper); padding-top: var(--header-h); }
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 290px);
  gap: 10px;
  padding-top: 10px;
}
.detail-gallery .g-item { overflow: hidden; position: relative; background: var(--ink-soft); }
.detail-gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.detail-gallery .g-item:hover img { transform: scale(1.05); }
.detail-gallery .g-main { grid-row: span 2; }

.detail-band { padding: 40px 0 46px; }
.detail-band-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.detail-title h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 400; margin-top: 12px; }
.detail-price { text-align: right; }
.detail-price b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold); }
.detail-price span { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dark); }

.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.detail-specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 44px;
}
.detail-spec { padding: 22px 20px; border-right: 1px solid var(--line); }
.detail-spec:last-child { border-right: none; }
.detail-spec b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.detail-spec span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.detail-desc h2 { font-size: 1.6rem; margin-bottom: 18px; }
.detail-desc p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.8; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 26px; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; font-size: 0.95rem; color: var(--ink-2); }
.feature-list li::before { content: "✦"; color: var(--gold-deep); font-size: 0.64rem; flex: none; }

.booking-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 36px 32px 40px;
}
.booking-card h3 { font-size: 1.45rem; font-weight: 400; }
.booking-card h3 em { font-style: italic; color: var(--gold-pale); }
.booking-card > p { font-size: 0.9rem; color: var(--muted-dark); margin: 12px 0 24px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.on-dark .form-field label, .booking-card .form-field label { color: var(--gold); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 15px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a8823a' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold-deep); }
.on-dark .form-field input, .on-dark .form-field select, .on-dark .form-field textarea,
.booking-card .form-field input, .booking-card .form-field select, .booking-card .form-field textarea {
  background: rgba(244, 239, 229, 0.05);
  border-color: var(--line-dark);
  color: var(--paper);
}
.booking-card .form-field select option, .on-dark .form-field select option { background: var(--ink); }
.on-dark .form-field input:focus, .booking-card .form-field input:focus,
.on-dark .form-field select:focus, .booking-card .form-field select:focus,
.on-dark .form-field textarea:focus, .booking-card .form-field textarea:focus { border-color: var(--gold); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(124, 114, 87, 0.55); }
.on-dark .form-field input::placeholder, .booking-card .form-field input::placeholder,
.on-dark .form-field textarea::placeholder, .booking-card .form-field textarea::placeholder { color: rgba(244,239,229,0.35); }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip span {
  display: inline-block;
  border: 1px solid var(--line-dark);
  padding: 10px 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  transition: all 0.3s;
}
.on-light .radio-chip span { border-color: var(--line); color: var(--muted); }
.radio-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.form-note { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.on-dark .form-note, .booking-card .form-note { color: rgba(244,239,229,0.45); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--gold);
}
.form-success.show { display: block; animation: rise 0.7s var(--ease); }
.form-success .tick {
  width: 58px; height: 58px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: var(--gold);
  font-size: 1.4rem;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { font-size: 0.92rem; color: var(--muted-dark); max-width: 40ch; margin-inline: auto; }
.on-light .form-success p { color: var(--muted); }

/* ---------- Agents ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.agent-card { background: var(--paper); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.agent-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.agent-photo { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--paper-3); position: relative; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform 0.8s var(--ease); }
.agent-card:hover .agent-photo img { transform: scale(1.05); }
.agent-body { padding: 26px; }
.agent-role { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.agent-body h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.agent-body > p { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 18px; }
.agent-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.agent-tags span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 10px; color: var(--muted); }

.agent-mono {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200,162,75,0.22), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--forest) 100%);
}
.agent-mono span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.4rem;
  color: var(--gold);
  border: 1px solid rgba(200, 162, 75, 0.45);
  padding: 18px 30px;
  line-height: 1;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(200,162,75,0.18), transparent 60%);
}
.cta-inner {
  position: relative; z-index: 2;
  padding: clamp(70px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.cta-inner h2 em { font-style: italic; color: var(--gold-pale); }
.cta-inner p { margin-top: 18px; color: rgba(244,239,229,0.75); max-width: 50ch; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 8vw, 100px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { margin-top: 20px; font-size: 0.92rem; color: var(--muted-dark); max-width: 38ch; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; font-family: var(--sans); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--muted-dark); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-pale); }
.footer-col li { font-size: 0.92rem; color: var(--muted-dark); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  color: var(--muted-dark);
  transition: all 0.35s var(--ease);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px 0;
  font-size: 0.78rem;
  color: rgba(244,239,229,0.4);
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ---------- Misc ---------- */
.divider-flourish {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--gold-deep);
  margin: 10px 0;
}
.divider-flourish::before, .divider-flourish::after { content: ""; height: 1px; width: 90px; background: currentColor; opacity: 0.5; }

.notice-bar { font-size: 0.78rem; color: var(--muted); text-align: center; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- Social feed / live channels ---------- */
.social-wall:empty { display: none; }
.social-wall { margin-bottom: 44px; }
.social-follow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.social-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 32px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 232px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.section--dark .social-tile { background: var(--ink-soft); border-color: var(--line-dark); }
.social-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.social-tile .s-ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: #fff;
}
.social-tile .s-ico svg { width: 27px; height: 27px; fill: currentColor; }
.social-tile.ig .s-ico { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.social-tile.tt .s-ico { background: #0f0f12; }
.social-tile.fb .s-ico { background: #1877f2; }
.social-tile h3 { font-size: 1.28rem; }
.section--dark .social-tile h3 { color: var(--paper); }
.social-tile .s-handle { font-size: 0.85rem; color: var(--muted); }
.section--dark .social-tile .s-handle { color: var(--muted-dark); }
.social-tile .s-go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
  transition: gap 0.3s var(--ease);
}
.section--dark .social-tile .s-go { color: var(--gold); }
.social-tile:hover .s-go { gap: 15px; }
.social-tile .s-watermark {
  position: absolute;
  right: -18px; bottom: -22px;
  font-size: 8rem; line-height: 1;
  opacity: 0.05;
  pointer-events: none;
}
.section--dark .social-tile .s-watermark { opacity: 0.08; }

@media (max-width: 768px) {
  .social-follow { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .prop-grid, .blog-grid, .agent-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid var(--line-dark); }
  .hero-stat:nth-child(even) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .prop-media { min-height: 300px; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
    z-index: 300;
  }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform 0.55s var(--ease); }
  .main-nav a { font-size: 1.15rem; color: var(--paper); opacity: 0; transform: translateY(18px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
  .nav-open .main-nav a { opacity: 1; transform: none; }
  .nav-open .main-nav a:nth-child(1) { transition-delay: 0.12s; }
  .nav-open .main-nav a:nth-child(2) { transition-delay: 0.18s; }
  .nav-open .main-nav a:nth-child(3) { transition-delay: 0.24s; }
  .nav-open .main-nav a:nth-child(4) { transition-delay: 0.3s; }
  .nav-open .main-nav a:nth-child(5) { transition-delay: 0.36s; }
  .nav-open .main-nav a:nth-child(6) { transition-delay: 0.42s; }
  .nav-open .main-nav a:nth-child(7) { transition-delay: 0.48s; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  body.nav-open { overflow: hidden; }

  .prop-grid, .blog-grid, .agent-grid, .quote-grid, .pillars { grid-template-columns: 1fr; }
  .market-split { grid-template-columns: 1fr; }
  .market-panel + .market-panel { border-left: none; border-top: 1px solid var(--line-dark); }
  .market-panel { min-height: 440px; }
  .edit-split { grid-template-columns: 1fr; }
  .edit-media { margin: 22px 22px 50px 22px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 300px 180px 180px; }
  .detail-gallery .g-main { grid-row: auto; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .detail-spec:nth-child(2) { border-right: none; }
  .detail-spec { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .detail-price { text-align: left; }
  .edit-quote { right: 0; max-width: 280px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; padding-left: 0 !important; }
  .filter-bar { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
