/* ─── BRAND: BRICK + WHITE ──────────────────────────────────── */
:root {
  --br:   #C1440E;
  --br2:  #A33A0B;
  --br3:  #D96030;
  --wh:   #FAF8F5;
  --wh2:  #F2EDE6;
  --wh3:  #E8E0D5;
  --ink:  #1C1410;
  --ink2: #4A3F38;
  --ink3: #8C7B72;
  --nv:   #1A1208;
  --ease: cubic-bezier(0.65,0,0.35,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--wh);
  color: var(--ink);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
a, button { text-decoration: none; color: inherit; font-family: inherit; }
img { display: block; max-width: 100%; }

/* Custom Cursor class applied cleanly via JS only */
body.custom-cursor-active, 
body.custom-cursor-active a, 
body.custom-cursor-active button,
body.custom-cursor-active .prop-card,
body.custom-cursor-active .grid-tile,
body.custom-cursor-active .grid-pcard,
body.custom-cursor-active .contact-card,
body.custom-cursor-active .rule-card {
  cursor: none !important;
}

/* ─── GRAIN ─────────────────────────────────────────────────── */
#grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── CURSOR ELEMENTS ───────────────────────────────────────── */
#cursor-dot, #cursor-ring { display: none; }
body.custom-cursor-active #cursor-dot {
  display: block; position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: var(--br); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: width .2s, height .2s, background .3s;
}
body.custom-cursor-active #cursor-ring {
  display: block; position: fixed; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--br); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); opacity: 0.5; transition: width .3s, height .3s, opacity .3s;
}
body.cursor-hover #cursor-dot { width: 4px; height: 4px; }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; opacity: 0.3; }

/* ─── LOADER ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .8s ease, transform .8s ease;
}
#loader.exit { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.loader-toggle {
  width: 88px; height: 50px; border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); position: relative;
}
.loader-dot {
  position: absolute; top: 7px; left: 7px; width: 36px; height: 36px; border-radius: 50%;
  background: #5A4A42; transition: left .6s var(--ease), background .6s var(--ease), box-shadow .6s var(--ease);
}
.loader-dot.on { left: calc(100% - 43px); background: var(--br); box-shadow: 0 0 20px rgba(193,68,14,0.6); }
.loader-wordmark { font-family: 'EB Garamond', serif; font-style: italic; font-size: 26px; color: var(--wh); opacity: 0; transition: opacity .5s ease; letter-spacing: .02em; }

/* ─── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled { background: rgba(250,248,245,0.95); backdrop-filter: blur(20px); border-bottom-color: rgba(28,20,16,0.08); }
#nav.dark-nav { background: rgba(26,18,8,0.94); backdrop-filter: blur(20px); border-bottom-color: rgba(255,255,255,0.07); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; color: var(--wh); }
.nav-logo.dark { color: var(--ink); }
.nav-pill { width: 36px; height: 21px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); position: relative; transition: all .3s; }
.nav-pill.dark-pill { border-color: rgba(28,20,16,0.2); background: rgba(28,20,16,0.06); }
.nav-pill-dot { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #6B5A52; transition: left .55s var(--ease), background .55s var(--ease); }
.nav-pill-dot.on { left: calc(100% - 18px); background: var(--br); box-shadow: 0 0 8px rgba(193,68,14,0.7); }
.nav-links { display: none; list-style: none; gap: 24px; }
.nav-links a { font-family: 'DM Mono', monospace; font-size: 12px; color: rgba(250,248,245,.65); letter-spacing: .04em; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--br); transition: width .4s var(--ease); }
.nav-links a:hover, .nav-links a.nav-active { color: rgba(250,248,245,1); }
.nav-links a:hover::after, .nav-links a.nav-active::after { width: 100%; }
.nav-links.dark-links a { color: rgba(28,20,16,.55); }
.nav-links.dark-links a:hover, .nav-links.dark-links a.nav-active { color: var(--ink); }
.nav-cta { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--br); border: 1px solid rgba(193,68,14,.4); padding: 8px 14px; border-radius: 2px; }

/* ─── GENERAL MODULE BUTTONS ─────────────────────────────────── */
.btn-brick { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--wh); background: var(--br); padding: 14px 24px; border-radius: 2px; transition: background .25s; }
.btn-brick:hover { background: var(--br2); }
.btn-brick .arr { transition: transform .25s var(--ease); }
.btn-brick:hover .arr { transform: translateX(5px); }
.btn-ghost-white { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--wh); border: 1.5px solid rgba(250,248,245,.35); padding: 14px 24px; border-radius: 2px; transition: all .25s; }
.btn-ghost-white:hover { border-color: rgba(250,248,245,.8); background: rgba(250,248,245,.05); }
.btn-ghost-dark { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--ink); border: 1.5px solid rgba(28,20,16,.2); padding: 14px 24px; border-radius: 2px; transition: all .25s; }
.btn-ghost-dark:hover { border-color: rgba(28,20,16,.5); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--br); background: var(--wh); padding: 14px 24px; border-radius: 2px; transition: background .25s; }
.btn-white:hover { background: var(--wh2); }

/* ─── ANIMATION WRAPPERS ─────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }

.page { display: none; }
.page.active { display: block; }

/* ─── HOME HERO ─────────────────────────────────────────────── */
#hero { position: relative; height: 100vh; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; z-index: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(0.85); transform: scale(1.04); animation: heroScale 12s ease-out forwards; }
@keyframes heroScale { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(26,18,8,0.85) 0%, rgba(26,18,8,0.4) 100%); }
.hero-brick-accent { position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--br); z-index: 2; }
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 24px 60px; max-width: 760px; }
.hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(250,248,245,.5); letter-spacing: .14em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--br); }
.hero-hed { font-family: 'EB Garamond', serif; font-weight: 400; font-size: clamp(48px, 10vw, 96px); line-height: .95; color: var(--wh); margin-bottom: 20px; }
.hero-hed em { font-style: italic; color: rgba(250,248,245,.75); }
.hero-sub { font-size: 16px; color: rgba(250,248,245,.6); line-height: 1.6; margin-bottom: 32px; max-width: 400px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-toggle-row { position: absolute; top: 88px; right: 24px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hero-toggle-label { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(250,248,245,.4); }
.hero-toggle-pill { width: 54px; height: 30px; border-radius: 15px; border: 1px solid rgba(250,248,245,.15); background: rgba(250,248,245,.06); position: relative; }
.hero-toggle-dot { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(90,74,66,.8); transition: left .4s var(--ease); }
.hero-toggle-dot.on { left: calc(100% - 24px); background: var(--br); }
.hero-scroll { display: none; }

/* ─── TICKER ─────────────────────────────────────────────────── */
.ticker { background: var(--br); overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 22s linear infinite; }
.ticker-item { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--wh); padding-right: 40px; }
.ticker-sep { color: rgba(250,248,245,.4); padding-right: 40px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%) } }

/* ─── STATS ─────────────────────────────────────────────────── */
#stats { background: var(--wh); padding: 60px 24px; display: grid; gap: 40px; border-bottom: 1px solid var(--wh3); }
.stat-col { padding: 0; position: relative; }
.stat-num { font-family: 'EB Garamond', serif; font-size: 64px; color: var(--ink); display: block; margin-bottom: 4px; }
.stat-num span { color: var(--br); }
.stat-label { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--br); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.stat-desc { font-size: 14px; color: var(--ink2); line-height: 1.6; }

/* ─── PROPERTIES TEASER ──────────────────────────────────────── */
#properties { background: var(--wh2); padding: 60px 24px; }
.section-header { margin-bottom: 40px; }
.section-kicker { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--br); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-kicker::before { content: ''; width: 16px; height: 1.5px; background: var(--br); }
.section-headline { font-family: 'EB Garamond', serif; font-size: clamp(32px, 6vw, 48px); color: var(--ink); line-height: 1.1; }
.prop-grid { display: grid; gap: 24px; }
.prop-card { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--ink); }
.prop-card-img { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.prop-card-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.prop-card:hover .prop-card-img { transform: scale(1.03); }
.prop-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,0.9) 0%, transparent 70%); z-index: 1; }
.prop-card-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 24px; }
.prop-badge { display: inline-block; font-family: 'DM Mono', monospace; font-size: 9px; color: var(--wh); background: var(--br); padding: 4px 8px; border-radius: 2px; margin-bottom: 12px; text-transform: uppercase; }
.prop-badge.sold { background: rgba(250,248,245,.2); }
.prop-name { font-family: 'EB Garamond', serif; font-size: 28px; color: var(--wh); margin-bottom: 4px; }
.prop-location { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(250,248,245,.5); margin-bottom: 12px; }
.prop-price { font-family: 'EB Garamond', serif; font-size: 20px; color: var(--br3); }
.prop-cta { display: flex; align-items: center; gap: 6px; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--wh); margin-top: 12px; }

/* ─── THE RULES ──────────────────────────────────────────────── */
#rules { background: var(--ink); padding: 60px 24px; position: relative; overflow: hidden; }
.rules-bg-text { display: none; }
.rules-header { margin-bottom: 40px; }
.rules-hed { font-family: 'EB Garamond', serif; font-size: clamp(32px, 6vw, 48px); color: var(--wh); margin-bottom: 12px; }
.rules-sub { font-size: 14px; color: rgba(250,248,245,.5); line-height: 1.6; }
.rules-grid { display: grid; gap: 16px; }
.rule-card { background: rgba(250,248,245,.02); border: 1px solid rgba(250,248,245,.05); padding: 32px 24px; }
.rule-num { font-family: 'EB Garamond', serif; font-style: italic; font-size: 32px; color: var(--br); margin-bottom: 12px; display: block; }
.rule-title { font-family: 'EB Garamond', serif; font-size: 22px; color: var(--wh); margin-bottom: 8px; line-height: 1.2; }
.rule-body { font-size: 14px; color: rgba(250,248,245,.45); line-height: 1.6; }

/* ─── COMMUNITY TEASER ───────────────────────────────────────── */
#grid-section { background: var(--wh); padding: 60px 24px; }
.grid-intro { display: grid; gap: 24px; margin-bottom: 40px; }
.grid-right-text { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.grid-mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.grid-tile { position: relative; overflow: hidden; background: var(--wh3); aspect-ratio: 1; }
.grid-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.grid-tile-tall { grid-column: span 2; aspect-ratio: 16/10; }
.grid-tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,.6), transparent); }
.grid-tile-caption { position: absolute; bottom: 12px; left: 12px; right: 12px; font-family: 'EB Garamond', serif; font-style: italic; color: var(--wh); font-size: 14px; z-index: 2; }
.grid-tile-label { position: absolute; top: 12px; left: 12px; font-family: 'DM Mono', monospace; font-size: 9px; color: var(--wh); background: rgba(0,0,0,0.4); padding: 2px 6px; }
.grid-cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

/* ─── MAIN CTA SECTION ──────────────────────────────────────── */
#cta-section { background: var(--br); padding: 80px 24px; position: relative; text-align: center; }
.cta-hed { font-family: 'EB Garamond', serif; font-style: italic; font-size: clamp(48px, 8vw, 80px); color: var(--wh); line-height: 1; margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: rgba(250,248,245,.7); line-height: 1.6; margin-bottom: 32px; }
.cta-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ─── GENERAL LAYOUT COMPONENT FOOTER ───────────────────────── */
#footer { background: var(--ink); padding: 60px 24px; color: rgba(250,248,245,.6); }
.footer-row { display: grid; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'EB Garamond', serif; font-style: italic; font-size: 24px; color: var(--wh); margin-bottom: 12px; }
.footer-logo-icon { width: 24px; height: 14px; border-radius: 7px; background: rgba(250,248,245,.1); position: relative; }
.footer-logo-icon::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--br); }
.footer-tagline { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.footer-email { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--br3); }
.footer-col-title { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(250,248,245,.3); margin-bottom: 16px; display: block; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--wh); }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(250,248,245,.05); font-size: 11px; }
.footer-copy { font-family: 'DM Mono', monospace; color: rgba(250,248,245,.3); }
.footer-sign { font-family: 'EB Garamond', serif; font-style: italic; }

/* ─── PROPERTIES INTERIOR ROW LISTING ───────────────────────── */
.page-hero { height: 40vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); z-index: 0; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,.9), transparent); z-index: 1; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-kicker { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(250,248,245,.5); display: block; margin-bottom: 8px; }
.page-hero-hed { font-family: 'EB Garamond', serif; font-size: clamp(36px, 6vw, 56px); color: var(--wh); line-height: 1; margin-bottom: 8px; }
.page-hero-sub { font-size: 14px; color: rgba(250,248,245,.5); }

.filter-bar { background: var(--wh); padding: 0 12px; border-bottom: 1px solid var(--wh3); display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-btn { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink3); padding: 16px 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.filter-btn.active { color: var(--ink); border-bottom-color: var(--br); }

.listing-row { display: flex; flex-direction: column; border-bottom: 1px solid var(--wh3); }
.listing-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-info { background: var(--wh); padding: 32px 24px; }
.listing-tag { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--br); text-transform: uppercase; margin-bottom: 12px; }
.listing-name { font-family: 'EB Garamond', serif; font-size: clamp(32px, 5vw, 44px); color: var(--ink); margin-bottom: 4px; }
.listing-location { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink3); margin-bottom: 12px; }
.listing-price { font-family: 'EB Garamond', serif; font-size: 24px; color: var(--br); margin-bottom: 16px; }
.listing-copy { font-size: 14px; color: var(--ink2); line-height: 1.6; margin-bottom: 20px; }
.listing-specs { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink3); line-height: 1.8; padding-top: 16px; border-top: 1px solid var(--wh3); margin-bottom: 24px; }

/* ─── HOW IT WORKS STRIP ─────────────────────────────────────── */
.hiw { background: var(--ink); padding: 60px 24px; }
.hiw-hed { font-family: 'EB Garamond', serif; font-size: 32px; color: var(--wh); margin-bottom: 32px; font-weight: 400; }
.hiw-steps { display: grid; gap: 32px; }
.hiw-num { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--br); display: block; margin-bottom: 8px; }
.hiw-title { font-family: 'EB Garamond', serif; font-size: 18px; color: var(--wh); margin-bottom: 8px; }
.hiw-body { font-size: 13px; color: rgba(250,248,245,.4); line-height: 1.6; }
.props-footer { background: var(--ink); padding: 32px 24px; border-top: 1px solid rgba(250,248,245,.06); color: rgba(250,248,245,.4); }

/* ─── COMMUNITY GRID INNER PAGE ─────────────────────────────── */
.grid-hero { height: 75vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 24px; }
.grid-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35); }
.grid-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,.95), transparent); z-index: 1; }
.grid-hero-content { position: relative; z-index: 2; }
.grid-hero-kicker { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(250,248,245,.5); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.grid-hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--br); }
.grid-hero-hed { font-family: 'EB Garamond', serif; font-size: clamp(54px, 10vw, 90px); color: var(--wh); line-height: .95; margin-bottom: 16px; }
.grid-hero-sub { font-family: 'EB Garamond', serif; font-style: italic; font-size: 18px; color: rgba(250,248,245,.6); margin-bottom: 32px; line-height: 1.4; }
.grid-stats { display: flex; gap: 32px; }
.grid-stat-num { font-family: 'EB Garamond', serif; font-size: 32px; color: var(--wh); }
.grid-stat-label { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(250,248,245,.4); text-transform: uppercase; margin-top: 4px; display: block; }

.grid-people-mosaic { display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); }
.grid-pcard { position: relative; overflow: hidden; background: var(--wh3); aspect-ratio: 1; }
.grid-pcard.wide { grid-column: span 2; aspect-ratio: 16/10; }
.grid-pcard img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.grid-pcard-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,.8), transparent); z-index: 1; }
.grid-pcard-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 16px; }
.grid-pcard-role { font-family: 'EB Garamond', serif; font-style: italic; font-size: 18px; color: var(--wh); }
.grid-pcard-note { font-size: 12px; color: rgba(250,248,245,.5); margin-top: 4px; line-height: 1.3; }
.grid-pcard-tag { position: absolute; top: 12px; right: 12px; font-family: 'DM Mono', monospace; font-size: 9px; color: var(--wh); background: rgba(0,0,0,0.4); padding: 2px 6px; z-index: 2; }

.grid-join-cta { background: var(--wh2); padding: 48px 24px; display: grid; gap: 24px; }
.grid-join-hed { font-family: 'EB Garamond', serif; font-size: 32px; color: var(--ink); line-height: 1.1; }
.grid-join-sub { font-size: 14px; color: var(--ink3); line-height: 1.6; }

#grid-form-section { background: var(--wh); padding: 48px 24px; }
#grid-success { display: none; padding: 40px 0; text-align: center; }
.success-title { font-family: 'EB Garamond', serif; font-style: italic; font-size: 36px; color: var(--br); margin-bottom: 12px; }
.success-body { font-size: 14px; color: var(--ink3); line-height: 1.6; }

/* Form Component styling updates */
.form-field { margin-bottom: 24px; position: relative; }
.form-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; color: var(--ink3); text-transform: uppercase; display: block; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--wh3); padding: 10px 0; color: var(--ink); font-size: 15px; font-family: inherit; font-weight: 300; outline: none; }
.form-select option { background: var(--wh); color: var(--ink); } /* Added specific browser option rule fallback override */
.form-textarea { min-height: 90px; resize: none; }
.form-underline { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--br); width: 0; transition: width .3s ease; }
.form-field:focus-within .form-underline { width: 100%; }
.form-field:focus-within .form-label { color: var(--br); }

/* ─── ABOUT INTERIOR PAGE ───────────────────────────────────── */
.about-hero { height: 50vh; background: var(--wh2); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 24px; }
.about-hero-kicker { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--br); text-transform: uppercase; margin-bottom: 12px; display: block; }
.about-hero-hed { font-family: 'EB Garamond', serif; font-size: clamp(36px, 7vw, 64px); color: var(--ink); line-height: 1.1; margin-bottom: 12px; }
.about-hero-sub { font-family: 'EB Garamond', serif; font-style: italic; font-size: 20px; color: var(--br); }

.about-story { display: flex; flex-direction: column; background: var(--ink); }
.about-story-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.about-story-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.about-story-content { padding: 48px 24px; }
.about-story-hed { font-family: 'EB Garamond', serif; font-size: 32px; color: var(--wh); margin-bottom: 20px; line-height: 1.2; }
.about-story-hed em { font-style: italic; color: var(--br3); }
.about-story-body { font-size: 14px; color: rgba(250,248,245,.5); line-height: 1.7; margin-bottom: 16px; }

.about-model { background: var(--wh); padding: 60px 24px; }
.about-model-hed { font-family: 'EB Garamond', serif; font-size: 32px; color: var(--ink); margin-bottom: 36px; }
.model-steps { display: grid; gap: 24px; }
.model-step { padding: 24px 0; border-top: 1px solid var(--wh3); position: relative; }
.model-step::before { content: ''; position: absolute; top: -1px; left: 0; height: 2px; background: var(--br); width: 0; transition: width .6s var(--ease); }
.model-step.in::before { width: 40px; }
.model-step-num { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--br); margin-bottom: 8px; display: block; }
.model-step-title { font-family: 'EB Garamond', serif; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.model-step-body { font-size: 14px; color: var(--ink3); line-height: 1.6; }

.about-cities { background: var(--wh2); padding: 60px 24px; }
.cities-hed { font-family: 'EB Garamond', serif; font-size: 36px; color: var(--ink); margin-bottom: 24px; }
.cities-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.city-chip { font-family: 'DM Mono', monospace; font-size: 11px; padding: 6px 12px; border-radius: 2px; background: rgba(0,0,0,0.03); border: 1px solid var(--wh3); }
.city-chip.phase1 { background: rgba(193,68,14,.06); color: var(--br); border-color: rgba(193,68,14,.15); }
.cities-stat { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink3); padding-top: 16px; border-top: 1px solid var(--wh3); }

.about-landowner { background: var(--br); padding: 48px 24px; display: grid; gap: 24px; }
.landowner-hed { font-family: 'EB Garamond', serif; font-size: 28px; color: var(--wh); }
.landowner-body { font-size: 14px; color: rgba(250,248,245,.7); line-height: 1.6; }

/* ─── CONTACT INTERIOR PAGE ─────────────────────────────────── */
.contact-hero { height: 40vh; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; position: relative; overflow: hidden; }
.contact-hero-img { position: absolute; inset: 0; }
.contact-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35); }
.contact-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,.9), transparent); z-index: 1; }
.contact-hero-content { position: relative; z-index: 2; }
.contact-hero-hed { font-family: 'EB Garamond', serif; font-size: clamp(40px, 7vw, 64px); color: var(--wh); margin-bottom: 8px; }
.contact-cursor { display: inline-block; width: 2px; height: .8em; background: var(--br); margin-left: 4px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.contact-hero-sub { font-size: 14px; color: rgba(250,248,245,.5); }

.contact-cards { display: grid; gap: 1px; background: var(--wh3); }
.contact-card { background: var(--wh); padding: 32px 24px; }
.contact-card-title { font-family: 'EB Garamond', serif; font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.contact-card-body { font-size: 14px; color: var(--ink3); line-height: 1.5; margin-bottom: 16px; }
.contact-card-link { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--br); display: flex; align-items: center; gap: 4px; }
.contact-card-email { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink3); margin-top: 8px; word-break: break-all; }

.contact-form-section { background: var(--wh); padding: 48px 24px; }
.contact-form-hed { font-family: 'EB Garamond', serif; font-size: 32px; color: var(--ink); margin-bottom: 32px; }
.contact-form-info { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--wh3); font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink3); }

/* ─── OFF-SCREEN LAYOUT OVERLAY ──────────────────────────────── */
#off-screen { position: fixed; inset: 0; z-index: 5000; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); padding: 24px; }
#off-screen.active { opacity: 1; pointer-events: all; }
.off-content { text-align: center; max-width: 440px; }
.off-toggle-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; }
.off-status { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(250,248,245,.3); letter-spacing: .1em; }
.off-line { font-family: 'EB Garamond', serif; font-size: 22px; color: var(--wh); margin-bottom: 8px; opacity: 0; transform: translateX(-10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
#off-screen.active .off-line { opacity: 1; transform: none; }
#off-screen.active .off-line:nth-child(2) { font-style: italic; color: rgba(250,248,245,.4); font-size: 18px; }
.off-cta-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-size: 12px; color: var(--br); border: 1px solid rgba(193,68,14,.35); padding: 12px 20px; border-radius: 2px; margin-top: 24px; }
#main-content { transition: opacity .4s var(--ease), filter .4s var(--ease); }
#main-content.blurred { opacity: 0.3; filter: blur(8px); pointer-events: none; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN TABLET & DESKTOP MEDIA QUERIES (768px+)
════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  #nav { padding: 0 48px; }
  .nav-links { display: flex; }
  
  .hero-content { padding: 0 72px 80px; }
  .hero-toggle-row { top: 68px; right: 48px; }
  .hero-scroll { display: flex; position: absolute; bottom: 40px; right: 48px; z-index: 3; font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(250,248,245,.35); align-items: center; gap: 10px; }
  .hero-scroll-line { width: 32px; height: 1px; background: rgba(250,248,245,.25); }

  #stats { grid-template-columns: repeat(3, 1fr); padding: 100px 72px; gap: 0; }
  .stat-col { padding: 0 48px; }
  .stat-col + .stat-col::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--wh3); }
  .stat-num { font-size: 88px; }

  #properties { padding: 100px 0; }
  .section-header { padding: 0 72px; margin-bottom: 56px; }
  .prop-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 72px; }
  
  #rules { padding: 100px 72px; }
  .rules-bg-text { display: block; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: 'EB Garamond', serif; font-size: 300px; color: rgba(250,248,245,.02); z-index: 0; pointer-events: none; }
  .rules-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; position: relative; z-index: 1; }
  .rules-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; position: relative; z-index: 1; }
  
  #grid-section { padding: 100px 0; }
  .grid-intro { padding: 0 72px; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
  .grid-mosaic { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 380px 280px; gap: 4px; padding: 0 72px; }
  .grid-tile-tall { grid-row: span 2; aspect-ratio: auto; }
  .grid-cta-row { padding: 0 72px; flex-direction: row; }

  #cta-section { padding: 120px 72px; }
  .cta-btns { flex-direction: row; justify-content: center; }

  #footer { padding: 72px; }
  .footer-row { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  /* Interior Listing adjustments */
  .page-hero { height: 55vh; padding: 0 72px 64px; }
  .filter-bar { padding: 0 72px; }
  .filter-btn { padding: 18px 24px; }
  .listing-row { grid-template-columns: 55fr 45fr; min-height: 580px; display: grid; border-bottom: none; }
  .listing-row.flip .listing-img { grid-column: 2; }
  .listing-row.flip .listing-info { grid-column: 1; grid-row: 1; }
  .listing-info { padding: 72px 64px; }
  .hiw { padding: 80px 72px; }
  .hiw-steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .hiw-step { padding-right: 24px; }

  /* Grid Page inner view adjustments */
  .grid-hero { height: 100vh; padding: 0 72px 80px; }
  .grid-people-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: 300px 300px; }
  .grid-pcard-body { padding: 24px 20px; }
  .grid-join-cta { padding: 80px 72px; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
  #grid-form-section { padding: 80px 72px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

  /* About view adjustments */
  .about-hero { height: 70vh; padding: 0 72px 80px; }
  .about-story { grid-template-columns: 1fr 1fr; min-height: 60vh; display: grid; }
  .about-story-content { padding: 80px 64px; }
  .about-model { padding: 100px 72px; }
  .model-steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .model-step { border-top: none; border-right: 1px solid var(--wh3); padding: 40px 32px; }
  .model-step:last-child { border-right: none; }
  .about-cities { padding: 80px 72px; }
  .about-landowner { padding: 80px 72px; grid-template-columns: 1fr auto; align-items: center; }

  /* Contact view adjustments */
  .contact-hero { height: 52vh; padding: 0 72px 64px; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .contact-card { padding: 48px 40px; }
  .contact-form-section { padding: 80px 72px; }
  .contact-form-info { flex-direction: row; gap: 48px; }
}