/* The Dirt · Tradition Real Estate Partners
   Design System — Lewis & Clark × Architectural Watercolor */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--parchment); color: var(--charcoal); font-family: var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ── VARIABLES ── */
:root {
  --red: #BE1E2D;
  --red-hover: #9a1822;
  --parchment: #F2EAD3;
  --parchment-dark: #E8DCC0;
  --parchment-light: #F8F3E8;
  --parchment-deep: #D4C5A0;
  --sienna: #A0522D;
  --ochre: #C8A84B;
  --forest: #3A5A3A;
  --slate: #4A5F7A;
  --charcoal: #2C2420;
  --ink: #3D2B1F;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --stage-1: #8B4513;
  --stage-2: #4A5F7A;
  --stage-3: #3A7A6A;
  --stage-4: #C8943A;
  --stage-5: #557A35;
}

/* ── PARCHMENT BODY ── */
body {
  background-color: var(--parchment);
  background-image: radial-gradient(ellipse at 50% 0%, var(--parchment-light) 0%, var(--parchment) 45%, var(--parchment-dark) 100%);
  min-height: 100vh;
}

/* ── GRAIN OVERLAY ── */
.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  mix-blend-mode: multiply; opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── CURSOR ── */
* { cursor: none !important; }

#trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }

#cursor {
  position: fixed; top: 0; left: 0; width: 24px; height: 24px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ── HUB LINK (floating pill) ── */
.hub-pill {
  position: fixed; top: 80px; right: 20px; z-index: 200;
  background: rgba(44,36,32,0.9); color: rgba(196,184,154,0.9);
  border: 1px solid rgba(160,130,90,0.3); border-radius: 20px;
  padding: 7px 16px; font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}
.hub-pill:hover { background: var(--red); color: white; border-color: var(--red); }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--charcoal);
  border-bottom: 2px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
}

.nav-brand { display: flex; flex-direction: column; gap: 2px; }
.nav-firm {
  font-family: var(--serif); font-weight: 300; font-size: 15px;
  letter-spacing: 0.18em; color: #E8DCC0; text-transform: uppercase;
}
.nav-sub {
  font-family: var(--sans); font-size: 8px; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--red);
}

.nav-links { list-style: none; display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: #B8A882;
  transition: color 0.2s;
}
.nav-links a:hover { color: #E8DCC0; }
.nav-links .nav-cta {
  color: var(--red); border: 1px solid rgba(190,30,45,0.5);
  padding: 7px 18px; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links .nav-cta:hover { background: var(--red); color: white; border-color: var(--red); }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px; background: none;
}
.nav-mobile-toggle span { display: block; width: 22px; height: 1.5px; background: #E8DCC0; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; padding-top: 64px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; overflow: hidden;
}

.hero-landscape {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/hero-bg.webp') center center / cover no-repeat;
}

.hero-topo {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 45%;
  z-index: 1; opacity: 0.06; pointer-events: none;
}

/* Dark scrim so hero text reads over the real image */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(20,15,10,0.35) 0%,
    rgba(20,15,10,0.15) 40%,
    rgba(20,15,10,0.5) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 40px; width: 100%; max-width: 880px;
}

.hero-eyebrow {
  font-family: var(--sans); font-size: 9px; font-weight: 400;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: rgba(232,220,192,0.8); margin-bottom: 20px; opacity: 0;
}

.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(72px, 13vw, 148px);
  letter-spacing: 0.28em; color: #F8F3E8;
  line-height: 0.9; margin-bottom: 20px; opacity: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 18px; color: rgba(232,220,192,0.85); letter-spacing: 0.04em;
  margin-bottom: 48px; opacity: 0;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  background: rgba(242,234,211,0.88); backdrop-filter: blur(10px);
  border: 1px solid rgba(160,82,45,0.18); border-radius: 4px;
  padding: 18px 28px; opacity: 0;
  box-shadow: 0 8px 32px rgba(44,36,32,0.1);
}
.filter-stages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 20px;
  border: 1px solid rgba(160,82,45,0.3); color: var(--sienna);
  background: transparent; transition: all 0.2s;
}
.filter-btn:hover { background: rgba(160,82,45,0.08); border-color: var(--sienna); }
.filter-btn.active { background: var(--sienna); color: var(--parchment-light); border-color: var(--sienna); }

.filter-selects { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-select {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 7px 14px;
  background: transparent; border: 1px solid rgba(160,82,45,0.3);
  border-radius: 3px; color: var(--sienna); appearance: none;
  -webkit-appearance: none;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2; opacity: 0;
}
.scroll-hint span {
  font-family: var(--sans); font-size: 8px; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--sienna); opacity: 0.65;
}
.compass { animation: pulse-compass 2.8s ease-in-out infinite; }
@keyframes pulse-compass {
  0%, 100% { opacity: 0.45; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.12) rotate(5deg); }
}

/* ── TOPO DIVIDER ── */
.topo-divider { display: block; width: 100%; opacity: 0.06; overflow: visible; }

/* ── CATALOG SECTION ── */
.catalog { padding: 0 48px 80px; max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }

.catalog-header {
  display: flex; align-items: center; gap: 20px; margin: 28px 0 6px;
}
.catalog-header-line { flex: 1; height: 1px; background: var(--sienna); opacity: 0.22; }
.catalog-header-text {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 14px; letter-spacing: 0.18em; color: var(--sienna); white-space: nowrap;
}

.catalog-count {
  text-align: center; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.25em; color: var(--sienna); opacity: 0.55; margin-bottom: 36px;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── PROPERTY CARD ── */
.card {
  background: #FAF8F5; border: 1px solid #DDD0B8; border-radius: 3px;
  box-shadow: 0 4px 22px rgba(44,36,32,0.1), 0 1px 4px rgba(44,36,32,0.06);
  overflow: visible; will-change: transform; position: relative;
}
.card:nth-child(3n+1) { transform: rotate(-0.5deg); }
.card:nth-child(3n+2) { transform: rotate(0.3deg); }
.card:nth-child(3n+3) { transform: rotate(-0.2deg); }

.card-image {
  position: relative; height: 196px; overflow: hidden; border-radius: 2px 2px 0 0;
}
.card-image-bg {
  position: absolute; inset: 0;
  transition: transform 0.65s ease;
}
.card:hover .card-image-bg { transform: scale(1.05); }

.card-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(44,36,32,0.28) 100%);
}

/* Wax seal badge */
.card-badge {
  position: absolute; bottom: -16px; left: 16px; z-index: 4;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: white; font-family: var(--mono); font-size: 6.5px;
  text-align: center; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.35),
    inset 0 -1px 2px rgba(255,255,255,0.12),
    0 3px 12px rgba(0,0,0,0.3),
    0 1px 0 rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.card-badge::after {
  content: '';
  position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

.card-badge-tag {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 3px 8px;
  background: rgba(44,36,32,0.72); color: rgba(255,255,255,0.8);
  border-radius: 2px;
}
.card-badge-tag.tag-submitted { background: rgba(74,95,122,0.8); }

.card-body { padding: 30px 18px 14px; }
.card-name {
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  color: var(--charcoal); margin-bottom: 3px; line-height: 1.2;
}
.card-subtitle {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--sienna); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 5px; opacity: 0.85;
}
.card-location {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink); margin-bottom: 10px; opacity: 0.62;
}
.card-price { font-family: var(--serif); font-size: 17px; color: var(--sienna); margin-bottom: 4px; }
.card-price-contact { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--slate); }
.card-broker {
  font-family: var(--mono); font-size: 10px; color: var(--ink);
  opacity: 0.6; margin-bottom: 10px;
}
.fsbo-unrepresented {
  font-family: var(--mono); font-size: 10px; color: var(--slate);
  opacity: 0.75; margin-bottom: 10px;
}

.card-footer {
  padding: 10px 18px;
  border-top: 1px solid rgba(221,208,184,0.45);
  display: flex; justify-content: space-between; align-items: center;
}
.card-footer-cta {
  font-family: var(--sans); font-size: 8px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--sienna);
}
.card-acreage {
  font-family: var(--mono); font-size: 9px; color: var(--slate); opacity: 0.65;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }

.no-results {
  text-align: center; padding: 80px 0; font-family: var(--serif);
  font-style: italic; color: var(--sienna); font-size: 20px; grid-column: 1 / -1;
}

/* ── FSBO STRIP ── */
.fsbo-strip {
  background: var(--charcoal); padding: 64px 48px;
  position: relative; z-index: 2;
}
.fsbo-strip-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.fsbo-strip-eyebrow {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--ochre); margin-bottom: 10px;
}
.fsbo-strip-heading {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 4vw, 42px); color: var(--parchment);
  letter-spacing: 0.04em; line-height: 1.2; margin-bottom: 14px;
}
.fsbo-strip-body {
  font-family: var(--sans); font-size: 13px; color: rgba(232,220,192,0.65);
  line-height: 1.75; max-width: 520px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-family: var(--serif); font-size: 15px;
  letter-spacing: 0.1em; background: var(--red); color: white;
  padding: 15px 36px; border-radius: 2px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 4px 16px rgba(190,30,45,0.3); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-block; font-family: var(--serif); font-size: 14px;
  letter-spacing: 0.08em; background: transparent; color: var(--sienna);
  padding: 13px 30px; border: 1px solid var(--sienna); border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--sienna); color: var(--parchment); }

/* ── DETAIL OVERLAY ── */
.detail-overlay {
  position: fixed; inset: 0; z-index: 500;
  overflow: hidden;
}

#overlay-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}

.overlay-dark {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(30,22,18,0.52);
}

.overlay-close {
  position: absolute; top: 78px; right: 28px; z-index: 10;
  color: rgba(232,220,192,0.65); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232,220,192,0.18); border-radius: 50%;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.overlay-close:hover {
  color: white; border-color: rgba(232,220,192,0.55);
  background: rgba(255,255,255,0.05);
}

.overlay-scroll {
  position: absolute; inset: 0; z-index: 5;
  overflow-y: auto; padding: 88px 60px 60px;
  scrollbar-width: thin;
  scrollbar-color: rgba(160,82,45,0.3) transparent;
}

.overlay-content {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: start;
}

.overlay-fsbo-banner {
  grid-column: 1 / -1;
  background: var(--red); color: white;
  padding: 14px 26px; border-radius: 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 24px;
}
.overlay-fsbo-banner strong {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.overlay-fsbo-banner .btn-outline {
  color: white; border-color: rgba(255,255,255,0.4);
  font-size: 12px; padding: 8px 20px; flex-shrink: 0;
}
.overlay-fsbo-banner .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Left column */
.overlay-left { display: flex; flex-direction: column; gap: 36px; }

.overlay-eyebrow {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--red);
}
.overlay-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5.5vw, 72px); color: rgba(248,243,232,0.95);
  line-height: 1.05; letter-spacing: 0.04em; margin-top: 6px;
}

.overlay-section { display: flex; flex-direction: column; }
.overlay-section-num {
  font-family: var(--serif); font-weight: 300; font-size: 88px;
  color: rgba(200,168,75,0.12); line-height: 0.8; user-select: none;
}
.overlay-section-title {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--ochre); margin-top: -10px; margin-bottom: 14px;
}
.overlay-description {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: rgba(232,220,192,0.78); line-height: 1.75;
}

.overlay-field-note {
  background: rgba(200,168,75,0.1); border-left: 2px solid var(--ochre);
  padding: 16px 20px; border-radius: 0 3px 3px 0;
}
.overlay-field-note-meta {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ochre); margin-bottom: 7px;
}
.overlay-field-note-text {
  font-family: var(--mono); font-style: italic; font-size: 12px;
  color: rgba(232,220,192,0.78); line-height: 1.7;
}

.overlay-generate-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--red); color: white; padding: 20px 40px;
  font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em;
  border-radius: 2px; transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(190,30,45,0.25); align-self: flex-start;
}
.overlay-generate-btn:hover {
  background: var(--red-hover); box-shadow: 0 6px 32px rgba(190,30,45,0.4);
}
.overlay-generate-btn span { font-size: 20px; transition: transform 0.2s; }
.overlay-generate-btn:hover span { transform: translateX(4px); }

/* Right column */
.overlay-right { display: flex; flex-direction: column; gap: 28px; }

.overlay-facts-section { }
.overlay-facts-header {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--ochre);
  border-bottom: 1px solid rgba(200,168,75,0.25); padding-bottom: 9px; margin-bottom: 2px;
}
.overlay-fact-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid rgba(232,220,192,0.06);
}
.overlay-fact-key { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(232,220,192,0.45); }
.overlay-fact-val { font-family: var(--mono); font-size: 11px; color: rgba(232,220,192,0.82); text-align: right; max-width: 60%; }

.overlay-docs-section { }
.overlay-doc-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid rgba(232,220,192,0.06);
}
.overlay-doc-icon { font-size: 20px; color: var(--ochre); flex-shrink: 0; }
.overlay-doc-info { flex: 1; min-width: 0; }
.overlay-doc-name {
  font-family: var(--serif); font-size: 13px; color: rgba(232,220,192,0.82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.overlay-doc-type {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.15em; color: rgba(232,220,192,0.38);
}
.overlay-doc-link {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.15em;
  color: var(--ochre); flex-shrink: 0;
}
.overlay-doc-link:hover { opacity: 0.7; }

.overlay-broker-card {
  background: rgba(232,220,192,0.06); border: 1px solid rgba(232,220,192,0.1);
  border-radius: 3px; padding: 20px;
}
.overlay-broker-name { font-family: var(--serif); font-weight: 600; font-size: 17px; color: rgba(232,220,192,0.9); margin-bottom: 2px; }
.overlay-broker-firm { font-family: var(--mono); font-size: 8px; letter-spacing: 0.22em; color: var(--red); margin-bottom: 12px; text-transform: uppercase; }
.overlay-broker-contact { font-family: var(--sans); font-size: 12px; color: rgba(232,220,192,0.55); line-height: 1.6; }

/* ── NEW LISTING BADGE ── */
.card-new-badge {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: var(--red); color: white;
  font-family: var(--mono); font-size: 6px; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
  animation: new-pulse 1.8s ease-in-out 5;
}
@keyframes new-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(190,30,45,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(190,30,45,0); }
}

/* ── TRADITION BADGE (card corner) ── */
.tradition-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; align-items: center; gap: 5px;
  background: rgba(20,15,10,0.72); backdrop-filter: blur(4px);
  border: 1px solid rgba(200,168,75,0.4); border-radius: 2px;
  padding: 4px 8px;
}
.tradition-badge-mark {
  width: 14px; height: 14px; flex-shrink: 0;
}
.tradition-badge-text {
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ochre);
}

/* ── FSBO CONTACT FORM ── */
.fsbo-contact-form { display: flex; flex-direction: column; gap: 12px; }
.fsbo-contact-fields { display: flex; flex-direction: column; gap: 10px; }
.fsbo-input {
  padding: 12px 16px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,220,192,0.15); border-radius: 2px;
  color: rgba(232,220,192,0.9); font-family: var(--sans); font-size: 13px;
  outline: none; transition: border-color 0.2s;
}
.fsbo-input:focus { border-color: rgba(200,168,75,0.4); }
.fsbo-input::placeholder { color: rgba(232,220,192,0.3); }

/* ── PHOTO GALLERY ── */
.photo-gallery { display: flex; flex-direction: column; gap: 10px; }
.photo-gallery-track {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(160,82,45,0.3) transparent;
}
.photo-thumb {
  flex-shrink: 0; width: 180px; height: 120px; border-radius: 3px; overflow: hidden;
  border: 1px solid rgba(232,220,192,0.1); transition: border-color 0.2s, transform 0.2s;
}
.photo-thumb:hover { border-color: rgba(200,168,75,0.4); transform: scale(1.02); }
.photo-thumb-inner {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.photo-thumb-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
  background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 2px;
}
.photo-gallery-note {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.15em;
  color: rgba(200,168,75,0.5); text-transform: uppercase;
}

/* ── RENDERING MODAL ── */
.render-modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,22,18,0.82); backdrop-filter: blur(10px);
  padding: 20px;
}

.render-modal-inner {
  background: var(--parchment); border-radius: 4px;
  max-width: 660px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 44px; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.intake-modal-inner { max-width: 720px; }

.render-modal-close {
  position: absolute; top: 18px; right: 18px;
  font-size: 13px; font-family: var(--mono); color: var(--sienna);
  opacity: 0.45; transition: opacity 0.2s; padding: 4px;
}
.render-modal-close:hover { opacity: 0.85; }

.render-progress-bar {
  height: 2px; background: rgba(160,82,45,0.18);
  border-radius: 2px; margin-bottom: 9px;
}
.render-progress-fill {
  height: 100%; background: var(--sienna);
  border-radius: 2px; transition: width 0.45s ease;
}
.render-progress-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em;
  color: var(--sienna); opacity: 0.55; margin-bottom: 36px;
}

.render-question-q {
  font-family: var(--serif); font-weight: 300; font-size: 28px;
  color: var(--charcoal); margin-bottom: 32px; line-height: 1.3;
}
.render-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
}
.render-option {
  padding: 18px 14px; text-align: center;
  border: 1.5px solid rgba(160,82,45,0.22); border-radius: 3px;
  background: transparent; transition: all 0.2s;
  font-family: var(--serif); font-size: 15px; color: var(--charcoal); line-height: 1.3;
}
.render-option:hover { border-color: var(--sienna); background: rgba(160,82,45,0.06); }
.render-option.selected { border-color: var(--sienna); background: rgba(160,82,45,0.12); }

/* Generating */
.generating-anim {
  position: relative; height: 90px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
}
.ink-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--sienna); opacity: 0;
  animation: ink-spread 2.2s ease-out infinite;
}
.ink-ring:nth-child(1) { width: 30px; height: 30px; animation-delay: 0s; }
.ink-ring:nth-child(2) { width: 55px; height: 55px; animation-delay: 0.55s; }
.ink-ring:nth-child(3) { width: 80px; height: 80px; animation-delay: 1.1s; }
@keyframes ink-spread { 0% { transform: scale(0.2); opacity: 0.75; } 100% { transform: scale(1); opacity: 0; } }

.generating-label {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--charcoal); text-align: center; margin-bottom: 8px;
}
.generating-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  color: var(--sienna); opacity: 0.6; text-align: center;
}

/* Results */
.results-heading {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--charcoal); margin-bottom: 18px; text-align: center;
}
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.result-image {
  aspect-ratio: 4/3; border-radius: 3px; overflow: hidden;
  position: relative; border: 2px solid transparent; transition: border-color 0.2s;
}
.result-image:hover { border-color: rgba(160,82,45,0.4); }
.result-image.selected { border-color: var(--sienna); }
.result-image-inner { width: 100%; height: 100%; object-fit: cover; }
.result-image-placeholder { width: 100%; height: 100%; }
.result-image-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(44,36,32,0.7); font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.15em; color: white; padding: 6px;
  text-align: center; text-transform: uppercase;
}

.btn-select-rendering { width: 100%; text-align: center; }

.render-done-icon { font-size: 52px; text-align: center; margin-bottom: 14px; }
.render-done-label { font-family: var(--serif); font-size: 26px; text-align: center; color: var(--charcoal); margin-bottom: 8px; }
.render-done-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-align: center; color: var(--sienna); opacity: 0.65; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .overlay-content { grid-template-columns: 1fr; gap: 40px; }
}

/* ── MOBILE NAV DRAWER ── */
.nav-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
  background: #1A1410; border-bottom: 2px solid rgba(190,30,45,0.35);
  flex-direction: column; padding: 12px 0 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: 14px 28px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232,220,192,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: #E8DCC0; }
.nav-mobile-menu .nav-cta { color: var(--red); }

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-content { padding: 0 24px; }
  .catalog { padding: 0 24px 60px; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .card:nth-child(n) { transform: none; }
  .hub-pill { top: 72px; right: 12px; }
  /* Intake/render modals full-width */
  .intake-modal-inner, .render-modal-inner { margin: 0; border-radius: 0; max-height: 100dvh; }
  .render-modal-inner { padding: 28px 22px; }
  .render-options { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }

  /* ── OVERLAY ── */
  .overlay-scroll { padding: 64px 22px 48px; }
  .overlay-content { gap: 32px; }
  .overlay-left { gap: 24px; }
  .overlay-title { font-size: clamp(30px, 8vw, 48px); }
  .overlay-section-num { font-size: 52px; }
  .overlay-description { font-size: 15px; }
  .overlay-generate-btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 15px; }
  .overlay-close { top: 16px; right: 16px; width: 42px; height: 42px; }
  /* FSBO banner: stack on mobile */
  .overlay-fsbo-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* Photo thumbs: smaller on mobile */
  .photo-thumb { width: 140px; height: 95px; }
  /* Broker card compact */
  .overlay-broker-card { padding: 16px 18px; }
  /* Facts: full-width values */
  .overlay-fact-val { max-width: 55%; font-size: 10px; }
}

@media (max-width: 480px) {
  * { cursor: auto !important; }
  #cursor, #trail { display: none; }
  .hub-pill { font-size: 9px; padding: 7px 12px; }
  /* Overlay tighter on small phones */
  .overlay-scroll { padding: 56px 18px 40px; }
  .overlay-title { font-size: clamp(26px, 7vw, 38px); }
  .overlay-section-num { font-size: 40px; }
  .overlay-left { gap: 20px; }
  .overlay-eyebrow { font-size: 8px; }
  .overlay-close { top: 12px; right: 12px; }
  .photo-thumb { width: 120px; height: 82px; }
}
