/* Homepage-specific styles */

/* ───── HERO ───── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #0c0b0a;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: kenburns calc(22s / max(var(--motion), 0.4)) ease-in-out infinite alternate;
}
.hero-video video.on { opacity: 1; }
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* founders cutout — wow moment */
.hero-founders {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: 0;
  height: 82%;
  z-index: 3;
  pointer-events: none;
  animation: foundersIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.hero-founders img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}
@keyframes foundersIn {
  from { transform: translateY(8%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (max-width: 900px) {
  .hero-founders { height: 55%; right: -8%; opacity: 0.7; }
}

/* Team hero band */
.team-hero {
  position: relative;
  overflow: hidden;
}
.team-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}
.team-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.team-hero:hover .team-hero-img img { transform: scale(1.03); }
.team-hero-cap {
  position: absolute;
  left: var(--pad-gutter);
  bottom: 40px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.team-hero-cap-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 12px;
  max-width: 20ch;
}

/* animated light sweep across hero */
.hero-sweep {
  position: absolute;
  top: -50%; bottom: -50%; left: -30%;
  width: 40%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,230,180,0.08),
    rgba(255,230,180,0.14),
    rgba(255,230,180,0.08),
    transparent);
  transform: skewX(-20deg);
  animation: sweep calc(14s / max(var(--motion), 0.1)) ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 100% { transform: translateX(-30vw) skewX(-20deg); opacity: 0; }
  50% { transform: translateX(140vw) skewX(-20deg); opacity: 1; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(12,11,10,0.3) 0%,
    rgba(12,11,10,0) 30%,
    rgba(12,11,10,0) 60%,
    rgba(12,11,10,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 140px var(--pad-gutter) 60px;
  color: #fff;
}

.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  margin-right: 10px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-heading {
  align-self: end;
  font-family: var(--f-display);
  /* Height-aware sizing. The 4-line headline must fit between the
     eyebrow and the foot — cap by min(vw, vh) so a tall narrow window
     and a short wide window both behave. Prior clamp(40,10vw,200) at
     1440 produced 144px → 4 lines × 144 × 0.92 ≈ 530 px tall, which
     overflowed the 1fr middle row and visually collided with the foot
     and the marquee band right below it ("Legacy" looked clipped). */
  font-size: clamp(34px, min(7vw, 13vh), 132px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 400;
  /* Cap so the heading never extends under the founders/agent photo. */
  max-width: min(82%, 960px);
  /* Italic descenders ('y' in Legacy) need a hair of room. */
  padding-bottom: 0.08em;
}
.hero-heading .line {
  display: block;
  overflow: visible;
}
.hero-heading .line span {
  display: inline-block;
  transform: translateY(60%);
  opacity: 0;
  animation: riseIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.05s;
}
.hero-heading .line:nth-child(2) span { animation-delay: 0.18s; }
.hero-heading .line:nth-child(3) span { animation-delay: 0.32s; }
@keyframes riseIn {
  0%   { transform: translateY(60%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-heading .italic {
  font-style: italic;
  color: oklch(0.82 0.12 75);
}

/* ── Hero responsive — guarantees nothing gets clipped under nav,
   over the ticker, or behind the founders/agent photo at any width.
   Test sizes: 375 / 390 / 428 / 768 / 1024 / 1440 / 1920. */
@media (max-width: 900px) {
  .hero-content {
    padding: 110px var(--pad-gutter) 48px;
  }
  .hero-heading {
    font-size: clamp(34px, min(9vw, 11vh), 80px);
    max-width: 100%;
  }
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-foot-cta {
    justify-self: start;
  }
  /* Shrink + soften the photo so it doesn't crowd or visually clip
     the headline on phone widths. */
  .hero-founders {
    height: 60%;
    right: clamp(12px, 4vw, 40px);
    opacity: 0.85;
  }
}
@media (max-width: 480px) {
  .hero {
    min-height: 640px;
  }
  .hero-content {
    padding: 96px var(--pad-gutter) 36px;
  }
  .hero-heading {
    font-size: clamp(30px, min(10vw, 11vh), 60px);
    line-height: 1;
  }
  .hero-founders {
    height: 48%;
    opacity: 0.7;
  }
  .hero-foot-blurb {
    font-size: 14px;
  }
}

/* ── Featured listings ("What we're working on now") on mobile.
   Default desktop layout uses .fl-grid--{four,six,nine,twelve} with
   .fl-card-media at aspect-ratio 16/9 (or 16/10 for the hero variant).
   On phones that produces awkward sizing — collapse to a single column
   and cap photo height so cards look elegant rather than enormous. */
@media (max-width: 768px) {
  .fl-grid,
  .fl-grid--hero,
  .fl-grid--two,
  .fl-grid--three,
  .fl-grid--four,
  .fl-grid--five,
  .fl-grid--six,
  .fl-grid--nine,
  .fl-grid--twelve {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .fl-grid--five > *,
  .fl-grid--five > *:nth-child(-n+3),
  .fl-grid--five > *:nth-child(4),
  .fl-grid--five > *:nth-child(5) {
    grid-column: auto;
  }

  .fl-card-media,
  .fl-card--hero .fl-card-media {
    aspect-ratio: auto;
    height: 200px;
    max-height: 200px;
    overflow: hidden;
  }
  .fl-card-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .fl-card-body,
  .fl-card--hero .fl-card-body {
    padding: 14px 16px;
    gap: 6px;
    justify-content: flex-start;
  }
  .fl-card-price       { font-size: 1.3rem; font-weight: 700; }
  .fl-card-addr,
  .fl-card--hero .fl-card-addr { font-size: 0.95rem; line-height: 1.35; }
  .fl-card-hood        { font-size: 0.8rem; }
  .fl-card-specs       { font-size: 0.85rem; margin-top: 4px; }
  .fl-card-dom         { font-size: 0.75rem; }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-foot-blurb {
  max-width: 380px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.8);
}
.hero-foot-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-self: end;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
}
.hero-scroll::before {
  content: '';
  width: 1px; height: 24px;
  background: currentColor;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 768px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot-cta { justify-self: start; }
}

/* ───── STATS STRIP ───── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px var(--pad-gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-num .plus { color: var(--accent); }
.stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 18ch;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ───── STATS FEATURE (editorial intro) ───── */
.stats-feature {
  padding: var(--pad-section) var(--pad-gutter);
  border-bottom: 1px solid var(--line);
}
.stats-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: start;
}
.stats-feature-copy { padding-top: 24px; }
.stats-feature-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 28px;
}
.stats-feature-title .italic { color: var(--accent); }
.stats-feature-lede {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 44px;
  font-weight: 400;
  color: var(--ink);
}
.stats-feature-lede .hl {
  background: var(--accent-wash, color-mix(in oklch, var(--accent) 24%, transparent));
  color: inherit;
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.stats-feature-body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 56ch;
}
.stats-feature-cta {
  margin-top: 16px;
}
.stats-feature-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.stats-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.stats-feature-img:hover img { transform: scale(1.03); }

.stats-feature-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.stats-feature-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.stats-feature-num-v {
  font-family: var(--f-display);
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 400;
  font-feature-settings: "tnum" 1;
}
.stats-feature-num-v .plus { color: var(--accent); }
.stats-feature-num-l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 28ch;
}
@media (max-width: 900px) {
  .stats-feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-feature-nums { grid-template-columns: 1fr; gap: 48px; margin-top: 80px; padding-top: 40px; }
}

/* ───── FEATURED (listings preview) ───── */
.featured {
  padding: var(--pad-section) 0;
}
.featured-head {
  padding: 0 var(--pad-gutter);
  margin-bottom: 60px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  padding: 0 4px;
}
.listing-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
}
.listing-card--lg { grid-column: span 8; aspect-ratio: 16/11; }
.listing-card--md { grid-column: span 4; aspect-ratio: 4/5; }
.listing-card--sm { grid-column: span 6; aspect-ratio: 3/2; }

.listing-media {
  position: absolute; inset: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.listing-card:hover .listing-media { transform: scale(1.04); }
.listing-card .ph { width: 100%; height: 100%; }

.listing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.75) 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.listing-tag {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
}
.listing-tag.sold { background: rgba(180,60,40,0.5); }
.listing-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.listing-addr {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.listing-hood {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 8px;
}
.listing-price {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: right;
}
.listing-specs {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .listing-card--lg, .listing-card--md, .listing-card--sm { grid-column: span 12; aspect-ratio: 3/2; }
}

/* ───── STORY SECTION ───── */
.story {
  padding: var(--pad-section) var(--pad-gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.story-mark {
  font-family: var(--f-display);
  font-size: clamp(80px, 12vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  position: sticky;
  top: 120px;
}
.story-mark em { color: var(--accent); font-style: italic; }
.story-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.story-lead {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 32ch;
}
.story-para {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}
.story-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.story-meta-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.story-meta-val {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-mark { position: static; }
}

/* ───── INVESTMENT / 3x30 section ───── */
.invest {
  padding: var(--pad-section) var(--pad-gutter);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.invest::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, oklch(from var(--accent) l c h / 0.2), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.invest-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.invest-visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
}
.invest-visual .ph {
  width: 100%; height: 100%;
}
.invest-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/chicago-skyline.jpg');
  background-size: cover;
  background-position: center;
}
.invest-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.invest-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.invest-reel-label {
  position: absolute;
  left: 24px; bottom: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.invest-badge {
  position: absolute;
  top: 24px; left: 24px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.invest-floating-number {
  position: absolute;
  bottom: 32px; right: 32px;
  font-family: var(--f-display);
  font-size: clamp(80px, 10vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  mix-blend-mode: overlay;
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.invest-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.invest-label::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.invest-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.invest-title em { color: var(--accent); }
.invest-body {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 46ch;
}
.invest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.invest-stat-num {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.invest-stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .invest-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ───── TEAM / AGENTS ───── */
.team {
  padding: var(--pad-section) var(--pad-gutter);
}
.team-head { margin-bottom: 60px; max-width: 960px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.team-grid > .agent:nth-child(4),
.team-grid > .agent:nth-child(5) { grid-column: span 1; }
@media (min-width: 1100px) {
  .team-grid { grid-template-columns: repeat(5, 1fr); }
}
.agent {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--dur) var(--ease);
  cursor: pointer;
}
.agent:hover { background: var(--bg-soft); }
.agent-portrait {
  aspect-ratio: 4/5;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  display: block;
}
.agent-portrait--hover {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.agent-portrait .ph { width: 100%; height: 100%; }

.agent-portrait--hover .agent-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-portrait--hover .agent-img--bw {
  opacity: 1 !important;
  filter: grayscale(1) contrast(1.02);
  z-index: 1;
  transition: opacity 0.5s var(--ease);
}
.agent-portrait--hover .agent-img--color {
  opacity: 0 !important;
  transform: scale(1.05);
  z-index: 2;
  transition: opacity 0.5s var(--ease), transform 1.4s var(--ease);
}
.agent-portrait--hover:hover .agent-img--bw { opacity: 0 !important; }
.agent-portrait--hover:hover .agent-img--color {
  opacity: 1 !important;
  transform: scale(1);
}
.agent-name a { color: inherit; transition: color var(--dur-fast) var(--ease); }
.agent-name a:hover { color: var(--accent); }
.agent-name {
  font-family: var(--f-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.agent-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.agent-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: auto;
}
.agent-links {
  display: flex;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.agent-links a { opacity: 0.7; transition: opacity var(--dur-fast) var(--ease); }
.agent-links a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }

/* ───── TESTIMONIALS ───── */
.testi {
  padding: var(--pad-section) var(--pad-gutter);
  background: var(--bg-soft);
}
.testi .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.testi-counter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.testi-counter-n { color: var(--ink); }
.testi-counter-sep { opacity: 0.5; margin: 0 2px; }

.testi-stage {
  position: relative;
  display: grid;
  /* Reserve height; each page absolute-stacks inside */
}
.testi-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 900ms cubic-bezier(.22,.61,.36,1),
    transform 900ms cubic-bezier(.22,.61,.36,1),
    filter 900ms cubic-bezier(.22,.61,.36,1);
}
.testi-page.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0);
}
.testi-card--ghost {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.testi-dots {
  max-width: 1200px;
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.testi-dot {
  width: 28px;
  height: 2px;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.testi-dot.is-active {
  background: var(--accent);
  width: 44px;
}
.testi-dot:hover { background: var(--ink-soft); }
.testi-dot.is-active:hover { background: var(--accent); }

.testi-card {
  padding: 48px 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--bg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.testi-quote {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  position: relative;
}
.testi-quote::before {
  content: '“';
  font-size: 3em;
  line-height: 1;
  position: absolute;
  top: -0.3em; left: -0.15em;
  color: var(--accent);
  opacity: 0.4;
  font-family: var(--f-display);
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testi-author-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-author-img .ph { width: 100%; height: 100%; }
.testi-author-name {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.1;
}
.testi-author-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .testi-page { grid-template-columns: 1fr; }
  .testi .section-head { flex-direction: column; align-items: flex-start; }
}

/* ───── FAQ (AI-searchable) ───── */
.faq {
  padding: var(--pad-section) var(--pad-gutter);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q-plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
  transition: transform var(--dur) var(--ease);
}
.faq-q-plus::before, .faq-q-plus::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.faq-q-plus::before { top: 50%; left: 0; right: 0; height: 1px; }
.faq-q-plus::after { left: 50%; top: 0; bottom: 0; width: 1px; transition: transform var(--dur) var(--ease); }
.faq-item.open .faq-q-plus::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 32px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ───── CTA FINAL ───── */
.cta {
  padding: var(--pad-section) var(--pad-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-title {
  font-family: var(--f-display);
  font-size: clamp(60px, 10vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.cta-title em {
  font-style: italic;
  color: var(--accent);
}
.cta-sub {
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 48px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* press logos */
.press {
  padding: 48px var(--pad-gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.press-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 24px 72px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.62;
}
.press-item {
  font-family: var(--f-display);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.press-item.sans {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 24px;
  text-transform: none;
}
@media (max-width: 900px) {
  .press-grid { gap: 20px 40px; }
  .press-item { font-size: 20px; }
  .press-item.sans { font-size: 18px; }
}

/* ─────────────────────────────────────────────────────────────
   Featured listings — adaptive grid + editorial card.
   .fl-grid layout class is set by gridLayoutClass(count) in home.jsx.
   ───────────────────────────────────────────────────────────── */
.fl-grid {
  display: grid;
  gap: 24px;
  padding: 0 var(--pad-gutter);
}

/* Layout flex by listing count ----------------------------------- */
.fl-grid--hero   { grid-template-columns: 1fr; }
.fl-grid--two    { grid-template-columns: repeat(2, 1fr); }
.fl-grid--three  { grid-template-columns: repeat(3, 1fr); }
.fl-grid--four   { grid-template-columns: repeat(2, 1fr); }
.fl-grid--five   { grid-template-columns: repeat(6, 1fr); }
.fl-grid--five   > *:nth-child(-n+3) { grid-column: span 2; }      /* top row: 3×2 */
.fl-grid--five   > *:nth-child(4)   { grid-column: 2 / span 2; }   /* bottom centered: 2×2 */
.fl-grid--five   > *:nth-child(5)   { grid-column: 4 / span 2; }
.fl-grid--six    { grid-template-columns: repeat(3, 1fr); }
.fl-grid--nine   { grid-template-columns: repeat(3, 1fr); }
.fl-grid--twelve { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .fl-grid--twelve { grid-template-columns: repeat(3, 1fr); }
  .fl-grid--five   { grid-template-columns: repeat(2, 1fr); }
  .fl-grid--five   > * { grid-column: auto !important; }
}
@media (max-width: 800px) {
  .fl-grid--three, .fl-grid--six, .fl-grid--nine,
  .fl-grid--twelve { grid-template-columns: repeat(2, 1fr); }
  .fl-grid--two    { grid-template-columns: 1fr; }
  .fl-grid         { gap: 18px; }
}
@media (max-width: 540px) {
  .fl-grid,
  .fl-grid--three, .fl-grid--four, .fl-grid--five,
  .fl-grid--six, .fl-grid--nine, .fl-grid--twelve {
    grid-template-columns: 1fr;
  }
  .fl-grid--five > * { grid-column: 1 !important; }
}

/* Card ----------------------------------------------------------- */
.fl-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.fl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.65);
}
.fl-card:hover .fl-card-media img { transform: scale(1.04); }
.fl-card:hover .fl-card-price { color: var(--accent); }

.fl-card--hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}
.fl-card--hero .fl-card-media { aspect-ratio: 16/10; }
.fl-card--hero .fl-card-body  { padding: 36px 32px; gap: 14px; justify-content: center; }
.fl-card--hero .fl-card-addr  { font-size: clamp(28px, 3vw, 42px); }
.fl-card--hero .fl-card-price { font-size: clamp(34px, 3.6vw, 52px); }
@media (max-width: 800px) {
  .fl-card--hero { grid-template-columns: 1fr; }
}

/* Media ---------------------------------------------------------- */
.fl-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #0d1015;
}
.fl-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.fl-card-media .ph { width: 100%; height: 100%; aspect-ratio: auto; }

/* Status badges -------------------------------------------------- */
.fl-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
}
.fl-badge--active        { background: #4ade80; color: #061d10; }
.fl-badge--under-contract{ background: #c9a96e; color: #1f1607; }
.fl-badge--buyer-rep     { background: rgba(0,0,0,0.45); color: #fff; border-color: rgba(255,255,255,0.85); }
.fl-badge--coming-soon   { background: #6b3fa0; color: #fff; }
.fl-badge--private       { background: rgba(8,10,14,0.92); color: #c9a96e; border-color: rgba(201,169,110,0.45); }
.fl-badge--sold          { background: rgba(8,10,14,0.85); color: rgba(235,230,221,0.92); border-color: rgba(235,230,221,0.22); letter-spacing: 0.22em; }
.fl-badge-lock           { display: block; }

/* ── Sold listings section header ─────────────────────────── */
.sold-listings { padding-top: clamp(40px, 5vw, 64px); }
.sold-head {
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 40px);
}
.sold-title {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* Body ----------------------------------------------------------- */
.fl-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.fl-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.fl-card-addr {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.fl-card-dom {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.fl-card-hood {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.fl-card-price {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1;
  transition: color var(--dur-fast) var(--ease);
}
.fl-card-specs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Skeleton variant ---------------------------------------------- */
.fl-card--skeleton { pointer-events: none; }
.fl-card--skeleton:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* Empty state + overflow CTA ------------------------------------ */
.fl-empty {
  padding: 64px var(--pad-gutter);
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
}
.fl-empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; margin-left: 4px; }

.fl-overflow {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding: 0 var(--pad-gutter);
}

/* ─────────────────────────────────────────────────────────────
   Listing modal — opens from a featured-listings card click.
   Top half: translucent dark with metallic gold sheen.
   Bottom half: paper-note look with contact form.
   Bottom seal: brushed-metal "The RELUX Group · Compass".
   ───────────────────────────────────────────────────────────── */

.lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lmFadeIn 0.18s ease-out;
}

@keyframes lmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lm-modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(201, 169, 110, 0.25);
  animation: lmRise 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: transparent;
}

@keyframes lmRise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: rgba(8, 10, 14, 0.6);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}
.lm-close:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.7);
}

/* ── Top half · translucent metallic dark ───────────────────── */
.lm-top {
  position: relative;
  padding: 0;
  border-radius: 6px 6px 0 0;
  /* Layered: subtle vertical sheen + gold edge highlights */
  background:
    linear-gradient(180deg,
      rgba(201, 169, 110, 0.06) 0%,
      rgba(201, 169, 110, 0.02) 35%,
      rgba(0, 0, 0, 0.0) 100%
    ),
    linear-gradient(135deg,
      rgba(28, 33, 42, 0.95) 0%,
      rgba(15, 18, 23, 0.96) 100%
    );
  border-bottom: 1px solid rgba(201, 169, 110, 0.32);
  box-shadow: inset 0 1px 0 rgba(201, 169, 110, 0.18);
}

.lm-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: rgba(0, 0, 0, 0.4);
}
.lm-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lm-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(135deg, #1a1f28 0%, #0e1116 100%);
}

.lm-info {
  padding: 22px 26px 24px;
  color: var(--ink);
}

.lm-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.lm-price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.1;
  /* Gold gradient text for the metallic effect */
  background: linear-gradient(180deg, #e8d4a0 0%, #c9a96e 50%, #a98a52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.005em;
}

.lm-address {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.4;
}

.lm-specs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
}

.lm-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
}
.lm-meta dt {
  color: var(--ink-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lm-meta dd {
  color: var(--ink-soft);
  margin: 0;
}

/* ── Bottom half · paper note ──────────────────────────────── */
.lm-paper {
  position: relative;
  padding: 26px 26px 0;
  /* Cream paper with a faint vertical fiber */
  background:
    repeating-linear-gradient(
      180deg,
      rgba(201, 169, 110, 0.025) 0px,
      rgba(201, 169, 110, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(180deg, #f3ecdc 0%, #ebe2cd 100%);
  color: #2a2620;
  border-radius: 0 0 6px 6px;
}

.lm-form h3 {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: clamp(17px, 2.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #2a2620;
}
.lm-form p {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(42, 38, 32, 0.66);
}

.lm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lm-form input,
.lm-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #2a2620;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(42, 38, 32, 0.18);
  border-radius: 4px;
  margin-bottom: 10px;
  transition: border-color 0.16s, background 0.16s;
}
.lm-form input::placeholder,
.lm-form textarea::placeholder {
  color: rgba(42, 38, 32, 0.5);
}
.lm-form input:focus,
.lm-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
}
.lm-form textarea {
  min-height: 76px;
  resize: vertical;
}

.lm-error {
  margin: 4px 0 10px;
  padding: 10px 12px;
  background: rgba(220, 70, 50, 0.08);
  border: 1px solid rgba(220, 70, 50, 0.4);
  border-radius: 4px;
  color: #8a2a1a;
  font-size: 13px;
}

.lm-submit {
  width: 100%;
  padding: 15px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #1a1206;
  /* Brushed gold */
  background: linear-gradient(180deg, #e8d4a0 0%, #c9a96e 50%, #ad8d54 100%);
  border: 1px solid #8a6a3e;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.18s, transform 0.06s;
  text-transform: uppercase;
  margin-top: 6px;
}
.lm-submit:hover { filter: brightness(1.08); }
.lm-submit:active { transform: translateY(1px); }
.lm-submit:disabled {
  filter: grayscale(0.4) brightness(0.85);
  cursor: not-allowed;
}

/* Success state */
.lm-success {
  text-align: center;
  padding: 14px 0 20px;
}
.lm-success-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8d4a0 0%, #c9a96e 60%, #a98a52 100%);
  color: #2a2014;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(160, 120, 60, 0.4);
}
.lm-success h3 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 4px 0 6px;
  color: #2a2620;
}
.lm-success p {
  margin: 4px 0;
  font-size: 14px;
  color: rgba(42, 38, 32, 0.7);
}
.lm-success-detail {
  font-size: 12px;
  margin-top: 14px;
  color: rgba(42, 38, 32, 0.55);
}
.lm-success strong { color: #2a2620; }

/* ── Brushed metallic seal at the very bottom ──────────────── */
.lm-seal {
  margin: 20px -26px 0;
  padding: 12px 26px;
  border-radius: 0 0 6px 6px;
  /* Brushed metal effect: horizontal sheen layers */
  background:
    repeating-linear-gradient(
      90deg,
      rgba(201, 169, 110, 0.08) 0px,
      rgba(201, 169, 110, 0.08) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, #c9a96e 0%, #a98a52 50%, #8a6a3e 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #1a1206;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ── Mobile (<= 540px) ─────────────────────────────────────── */
@media (max-width: 540px) {
  .lm-overlay { padding: 0; align-items: flex-end; }
  .lm-modal {
    max-height: 100vh;
    max-width: none;
    border-radius: 6px 6px 0 0;
  }
  .lm-info { padding: 18px 20px 20px; }
  .lm-paper { padding: 22px 20px 0; }
  .lm-row { grid-template-columns: 1fr; gap: 0; }
  .lm-seal { margin: 18px -20px 0; padding: 12px 20px; font-size: 9px; letter-spacing: 0.26em; }
}

/* ─────────────────────────────────────────────────────────────
   Compact listing card — used on listings.html "Active Inventory".
   Smaller and denser than FeaturedCard so the page can carry
   6-12 listings comfortably. Same modal-on-click behavior.
   ───────────────────────────────────────────────────────────── */

.active-listings {
  padding: clamp(28px, 4vw, 48px) var(--pad-gutter) clamp(20px, 3vw, 36px);
  max-width: var(--maxw, 1280px);
  margin: 0 auto;
}

/* Tighter grid — cards as small as 180px so 5-6 fit per row on desktop */
.lc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}

.lc-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.22s var(--ease, ease),
    transform 0.22s var(--ease, ease),
    box-shadow 0.22s var(--ease, ease);
}
.lc-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.55);
}
.lc-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lc-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.lc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease, ease);
}
.lc-card:hover .lc-media img { transform: scale(1.04); }

.lc-media--placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(201, 169, 110, 0.04) 0px,
      rgba(201, 169, 110, 0.04) 1px,
      transparent 1px,
      transparent 6px
    ),
    linear-gradient(135deg, #1a1f28 0%, #0e1116 100%);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.lc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.lc-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lc-price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.lc-addr {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.32;
  /* Clamp to 2 lines so cards stay aligned */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 2px;
}
.lc-specs {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 6px;
  margin-top: 3px;
  border-top: 1px solid rgba(235, 230, 221, 0.06);
}

.lc-card--skeleton { pointer-events: none; opacity: 0.85; }
.lc-card--skeleton:hover { transform: none; box-shadow: none; border-color: var(--line); }

@media (max-width: 540px) {
  .lc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .lc-body { padding: 10px 10px 12px; }
  .lc-price { font-size: 16px; }
  .lc-addr { font-size: 12px; }
  .lc-meta, .lc-specs { font-size: 9px; letter-spacing: 0.12em; }
  .lc-specs { padding-top: 6px; }
}

/* ─────────────────────────────────────────────────────────────
   Market Signal Digest — homepage widget on both index.html
   and 3x30broker.html. Dark luxury card with gold left rail.
   ───────────────────────────────────────────────────────────── */

.msd-wrap {
  padding: clamp(40px, 5vw, 72px) var(--pad-gutter);
  max-width: var(--maxw, 1280px);
  margin: 0 auto;
}

.msd-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(201,169,110,0.04) 0%, rgba(201,169,110,0) 30%),
    #0d1f33;
  border: 1px solid rgba(201,169,110,0.18);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 40px);
  transition: box-shadow 0.3s var(--ease, ease);
}
.msd-card:hover {
  box-shadow: 0 18px 40px -20px rgba(201,169,110,0.35);
}

.msd-head {
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid rgba(201,169,110,0.18);
}
.msd-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.msd-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #f5f0e8;
  margin: 0 0 8px;
}
.msd-stamp {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
}

.msd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.msd-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msd-block-head {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.msd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msd-list a {
  text-decoration: none;
  color: #f5f0e8;
  display: block;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: border-color 0.18s, background 0.18s;
}
.msd-list a:hover {
  border-left-color: var(--accent);
  background: rgba(201,169,110,0.06);
}
.msd-list--muted a { opacity: 0.65; }

.msd-signal-title {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}
.msd-hood {
  color: #f5f0e8;
  font-size: 13px;
}
.msd-meta {
  color: rgba(245,240,232,0.45);
  font-size: 12px;
  font-style: italic;
}
/* Strength escalation badge — orange "MEDIUM → HIGH" pill */
.msd-tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f97316;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.32);
  font-style: normal;
}
.msd-arrow {
  color: rgba(245,240,232,0.55);
  margin-left: 4px;
}

.msd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.msd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #f5f0e8;
  text-decoration: none;
  background: rgba(8,10,14,0.4);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.msd-pill:hover {
  border-color: var(--accent);
  background: rgba(201,169,110,0.08);
  transform: translateY(-1px);
}
.msd-pill--cool {
  border-color: rgba(158,184,214,0.32);
}
.msd-pill--cool:hover { border-color: #9eb8d6; background: rgba(158,184,214,0.08); }
.msd-dot { font-size: 8px; }
.msd-dot--gold { color: var(--accent); }
.msd-dot--blue { color: #9eb8d6; }

.msd-foot {
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: clamp(16px, 2.5vw, 24px);
  border-top: 1px solid rgba(201,169,110,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  justify-content: space-between;
}
.msd-cta {
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a1206;
  background: linear-gradient(180deg, #e8d4a0 0%, #c9a96e 50%, #ad8d54 100%);
  border: 1px solid #8a6a3e;
  border-radius: 3px;
  text-decoration: none;
  transition: filter 0.18s;
}
.msd-cta:hover { filter: brightness(1.08); }
.msd-cta--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.4);
}
.msd-cta--secondary:hover {
  background: rgba(201,169,110,0.08);
}

@media (max-width: 720px) {
  .msd-grid { grid-template-columns: 1fr; gap: 28px; }
  .msd-foot { flex-direction: column; }
  .msd-cta { text-align: center; }
}

/* Explore-markets link — replaces the homepage OurMarket map (2026-05-05).
   Centered, generous breathing room, mirrors the editorial cadence. */
.explore-markets {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
}
@media (max-width: 640px) {
  .explore-markets a { font-size: 22px !important; }
}
