/* ============================================================
   Espace Real Estate — Microsite Prototype
   Editorial / premium-residential / UK estate-agency in Dubai
   Palette + type system per CLAUDE-DESIGN.md §5
   ============================================================ */

:root {
  /* Light editorial base */
  --paper: #FBFAF8;
  --stone: #EFEBE4;
  --ink: #1A1919;
  --ink-soft: #2A2929;
  --muted: #6A6864;
  --line: #E2DDD3;
  --line-2: #D4CEC2;

  /* Dark sections (hero / footer) */
  --noir: #10141A;
  --ink-dark: #1C232B;
  --line-dark: #2A323B;
  --paper-dark: #F6F4EE;

  /* Accents */
  --espace-red: #F44842;     /* signature coral-red from logo */
  --marine: #13384A;         /* calmer luxury alt */
  --sand: #B68A52;           /* warm desert alt */
  --accent: var(--espace-red);
  --accent-ink: #FFFFFF;

  /* Type */
  --font-serif: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-ar: "Noto Kufi Arabic", "Inter", system-ui, sans-serif;

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --section-y-compact: clamp(48px, 6vw, 80px);

  /* Radii — restrained, editorial */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* RTL */
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] .flip-x { transform: scaleX(-1); }

/* ============================================================
   Type
   ============================================================ */
.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.h-display-roman {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.005em;
  line-height: 1.02;
}
.h1 { font-size: clamp(44px, 7.5vw, 112px); }
.h2 { font-size: clamp(34px, 5.2vw, 72px); }
.h3 { font-size: clamp(26px, 3vw, 44px); }
.h4 { font-size: clamp(20px, 1.8vw, 28px); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow-ink { color: var(--ink); }
.eyebrow-paper { color: rgba(255,255,255,.78); }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 56ch;
}

.body-sm { font-size: 14px; color: var(--muted); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-compact { padding-block: var(--section-y-compact); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-dark { height: 1px; background: var(--line-dark); border: 0; margin: 0; }

/* Density tweak */
body[data-density="compact"] { --section-y: clamp(48px, 6vw, 80px); --gutter: clamp(16px, 3vw, 40px); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-lg { padding: 18px 28px; font-size: 13px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.btn-link:hover { color: var(--accent); }

.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,248,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
  gap: 32px;
}
.nav-logo { height: 28px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
}
.nav-links button { background: none; border: 0; padding: 6px 0; color: var(--ink); font-size: inherit; font-family: inherit; font-weight: inherit; }
.nav-links button:hover { color: var(--accent); }
.nav-links button.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.locale-switch {
  display: flex; align-items: center; gap: 2px;
  font-size: 11px; letter-spacing: 0.12em; font-weight: 500;
}
.locale-switch button {
  background: none; border: 0; padding: 6px 8px; color: var(--muted); font: inherit;
}
.locale-switch button.active { color: var(--ink); border-bottom: 1px solid var(--accent); }
.locale-switch button:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--noir);
  color: var(--paper-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.78;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,20,26,.55) 0%, rgba(16,20,26,.25) 35%, rgba(16,20,26,.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: min(820px, 90vh);
  padding-block: 56px 40px;
}
.hero-meta-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px;
  color: rgba(255,255,255,.75);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-headline {
  align-self: end;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-headline .accent { color: var(--accent); font-style: italic; }
.hero-footer {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 40px;
}
.hero-blurb {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.84);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Marquee / ticker
   ============================================================ */
.ticker {
  background: var(--ink);
  color: var(--paper-dark);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.ticker-track {
  display: flex; gap: 56px;
  padding-block: 18px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.ticker-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,.85);
  display: inline-flex; align-items: center; gap: 14px;
}
.ticker-track .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[dir="rtl"] .ticker-track { animation-direction: reverse; }

/* ============================================================
   Proposition strip
   ============================================================ */
.prop-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.prop-strip .strip-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  font-weight: 400;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.prop-strip .strip-headline em { font-style: italic; color: var(--accent); }
.prop-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.prop-stat {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.prop-stat + .prop-stat { padding-left: 24px; }
.prop-stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
.prop-stat .stat-num {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  font-style: italic;
}
.prop-stat .stat-label {
  font-size: 12px; color: var(--muted);
  margin-top: 8px;
}
.prop-stat .stat-note { font-size: 10px; color: var(--muted); margin-top: 4px; font-style: italic; }
@media (max-width: 820px) {
  .prop-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   Section headers
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head .lead { margin-top: 24px; }
.sec-head .right-meta { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; }
}

/* ============================================================
   Communities grid
   ============================================================ */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.community-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--stone);
  isolation: isolate;
}
.community-card .ph {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .8s ease;
}
.community-card.featured .ph { aspect-ratio: 4/3; }
.community-card:hover .ph { transform: scale(1.04); }
.community-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,20,26,0) 30%, rgba(16,20,26,0.78) 100%);
  pointer-events: none;
}
.community-card .meta {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  color: #fff;
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px;
}
.community-card .meta .name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.005em;
}
.community-card .meta .sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.86;
  margin-top: 6px;
}
.community-card .meta .arrow-c {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.community-card:hover .meta .arrow-c { background: var(--accent); border-color: var(--accent); }

/* Editorial bento spans */
.grid-span-4 { grid-column: span 4; }
.grid-span-3 { grid-column: span 3; }
.grid-span-6 { grid-column: span 6; }
.grid-span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .grid-span-4, .grid-span-3, .grid-span-6 { grid-column: span 6; }
  .community-card .ph { aspect-ratio: 1/1; }
}
@media (max-width: 560px) {
  .grid-span-4, .grid-span-3, .grid-span-6, .grid-span-12 { grid-column: span 12; }
}

/* Communities filter chips */
.chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Valuation band (full-bleed editorial)
   ============================================================ */
.valuation-band {
  background: var(--ink);
  color: var(--paper-dark);
  position: relative;
  overflow: hidden;
}
.valuation-band .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.valuation-band .media {
  height: 100%;
  aspect-ratio: 4/5;
  background: var(--ink-dark);
  overflow: hidden;
}
.valuation-band .media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.valuation-band h2 { color: #fff; margin: 12px 0 18px; }
.valuation-band p { color: rgba(255,255,255,.84); max-width: 50ch; }
.valuation-band em { color: var(--accent); font-style: italic; }
@media (max-width: 820px) {
  .valuation-band .inner { grid-template-columns: 1fr; }
  .valuation-band .media { aspect-ratio: 16/10; }
}

/* ============================================================
   Forms
   ============================================================ */
.form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: inherit;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field.error input, .field.error select { border-color: var(--accent); }
.field .err-msg { font-size: 11px; color: var(--accent); margin-top: 2px; }

/* Forms on dark backgrounds */
.form-dark .field label { color: rgba(255,255,255,.6); }
.form-dark .field input,
.form-dark .field select,
.form-dark .field textarea {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.3);
}
.form-dark .field input::placeholder, .form-dark .field textarea::placeholder { color: rgba(255,255,255,.5); }
.form-dark .field input:focus, .form-dark .field select:focus { border-color: var(--accent); }
.form-dark .field select option { color: var(--ink); }

.form-success {
  border: 1px solid var(--accent);
  padding: 24px;
  background: rgba(244,72,66,0.04);
}
.form-success h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0 0 8px;
  font-style: italic;
}
.form-success p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.form-dark .form-success { background: rgba(244,72,66,0.12); }
.form-dark .form-success h4 { color: #fff; }
.form-dark .form-success p { color: rgba(255,255,255,.8); }

/* ============================================================
   Listings (cards from "live feed" placeholder)
   ============================================================ */
.feed-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--stone);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.feed-banner .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (max-width: 900px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .listings-grid { grid-template-columns: 1fr; }
}

.listing-card {
  background: var(--stone);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.listing-card .media {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, var(--stone) 0 14px, #E6E1D8 14px 28px);
  position: relative;
  overflow: hidden;
}
.listing-card .media .placeholder-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.listing-card .media .placeholder-label .hint {
  display: block; font-size: 9px; opacity: 0.7; margin-top: 6px;
}
.listing-card .body {
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
}
.listing-card .ref {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.listing-card .ttl {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.15;
  margin: 6px 0 6px;
  font-weight: 400;
}
.listing-card .sub {
  font-size: 12px; color: var(--muted); margin-bottom: 16px;
}
.listing-card .specs {
  display: flex; gap: 16px;
  font-size: 12px; color: var(--ink-soft);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.listing-card .specs span { display: inline-flex; gap: 6px; align-items: center; }
.listing-card .price {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}
.listing-card .price.poa { color: var(--muted); }
.listing-card .tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  text-transform: uppercase;
}
.listing-card .tag.luxury { background: var(--ink); color: var(--paper); }
.listing-card .tag.rent { background: var(--accent); color: #fff; }

/* ============================================================
   Agents
   ============================================================ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 1100px) { .agents-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .agents-grid { grid-template-columns: 1fr; } }

.agent-card { cursor: pointer; }
.agent-card .portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--stone);
}
.agent-card .portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.1);
  transition: filter .4s ease, transform .6s ease;
}
.agent-card:hover .portrait img { filter: grayscale(0); transform: scale(1.03); }
.agent-card .name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 18px 0 4px;
  font-weight: 400;
}
.agent-card .title { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.agent-card .langs { font-size: 12px; color: var(--ink-soft); margin-top: 10px; font-style: italic; }

/* ============================================================
   Area guide (community microsite)
   ============================================================ */
.area-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.area-guide .map {
  aspect-ratio: 4/5;
  background: var(--stone);
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
.area-guide .map svg { width: 100%; height: 100%; display: block; }
.area-guide .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.area-guide .fact {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.area-guide .fact:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.area-guide .fact:nth-child(even) { padding-left: 20px; }
.area-guide .fact .k { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.area-guide .fact .v {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-top: 6px;
  font-style: italic;
}
@media (max-width: 820px) {
  .area-guide { grid-template-columns: 1fr; }
}

/* ============================================================
   Market snapshot
   ============================================================ */
.market-snapshot {
  background: var(--stone);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.market-cell {
  border-left: 1px solid var(--line-2);
  padding-left: 20px;
}
.market-cell:first-child { border-left: 0; padding-left: 0; }
.market-cell .k {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.market-cell .v {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  margin-top: 12px;
}
.market-cell .delta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--marine);
}
.market-cell .delta.down { color: var(--accent); }
.market-attribution {
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 760px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .market-cell:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ============================================================
   Agent microsite — hero
   ============================================================ */
.agent-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}
.agent-hero .portrait-lg {
  aspect-ratio: 4/5;
  background: var(--stone);
  overflow: hidden;
}
.agent-hero .portrait-lg img { width: 100%; height: 100%; object-fit: cover; }
.agent-hero .info { display: flex; flex-direction: column; justify-content: center; }
.agent-hero .info .role { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.agent-hero .info .name {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
  font-weight: 400;
}
.agent-hero .info .name em { font-style: italic; color: var(--accent); }
.agent-hero .bio { max-width: 56ch; line-height: 1.7; color: var(--ink-soft); }
.agent-hero .meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 36px; border-top: 1px solid var(--line);
}
.agent-hero .meta-grid > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.agent-hero .meta-grid > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.agent-hero .meta-grid .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.agent-hero .meta-grid .v { font-family: var(--font-serif); font-style: italic; font-size: 20px; margin-top: 6px; }
.agent-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 820px) {
  .agent-hero { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact + Map
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 5vw, 80px);
}
.contact-grid .map-block {
  background: var(--stone);
  aspect-ratio: 4/5;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-list .v { font-family: var(--font-serif); font-style: italic; font-size: 26px; }
.contact-list .v a:hover { color: var(--accent); }
.contact-list .note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--noir);
  color: rgba(255,255,255,.78);
  padding-block: 80px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top h5 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a { color: rgba(255,255,255,.85); font-size: 14px; }
.footer-top a:hover { color: var(--accent); }
.footer-logo { height: 32px; width: auto; margin-bottom: 24px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 11px; color: rgba(255,255,255,.5);
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: 24px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   WhatsApp FAB
   ============================================================ */
.fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,211,102,0.55), 0 4px 8px rgba(0,0,0,0.2); }
html[dir="rtl"] .fab { right: auto; left: 24px; }
@media (max-width: 560px) {
  .fab span.label { display: none; }
  .fab { padding: 14px; }
}

/* ============================================================
   Microsite breadcrumb
   ============================================================ */
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.crumbs a { cursor: pointer; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }

/* ============================================================
   Utility
   ============================================================ */
.flow > * + * { margin-top: 24px; }
.flow-tight > * + * { margin-top: 12px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.italic { font-style: italic; }
.serif { font-family: var(--font-serif); }
.center { text-align: center; }

/* Subtle reveal on page transition */
.page { animation: pageFade .5s ease both; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sample-feed watermark across listing area */
.feed-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(26,25,25,0.06);
  text-transform: uppercase;
  font-weight: 700;
}
