/* =========================================================
   MERIDIAN REALTY PARTNERS — STYLESHEET
   Token system: Charcoal / Sand / Terracotta
========================================================= */

:root{
  /* Brand palette (as specified) */
  --charcoal: #1C1A1A;
  --sand: #F9F6F0;
  --terracotta: #D36B50;

  /* Derived / supporting tones */
  --charcoal-soft: #262321;
  --charcoal-line: #38332F;
  --terracotta-dark: #A8492F;
  --terracotta-light: #E8967D;
  --terracotta-wash: #F3E1DA;
  --stone: #E7DFD1;
  --stone-line: #DCD3C2;
  --ink: #23201D;
  --ink-muted: #746C63;
  --cream-muted: #C9C2B6;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --wrap: 1220px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --ease: cubic-bezier(.22,.68,0,1);
  --dur: .7s;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ list-style:none; margin:0; padding:0; }
input,select,textarea{ font-family:inherit; font-size:1rem; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline:2px solid var(--terracotta);
  outline-offset:3px;
}

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 32px;
}

/* ---------- Type scale ---------- */
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:500;
  color:var(--charcoal);
  margin:0;
  letter-spacing:-.01em;
}
.section-title{
  font-size:clamp(2rem, 3.4vw, 2.9rem);
  line-height:1.12;
}
.section-title em{
  font-style:italic;
  color:var(--terracotta);
}
.section-title-light{ color:var(--sand); }
.section-lead{
  color:var(--ink-muted);
  font-size:1.05rem;
  max-width:46ch;
  margin:18px 0 0;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--terracotta-dark);
  font-weight:600;
  margin:0 0 16px;
}
.eyebrow-light{ color:var(--terracotta-light); }
.eyebrow-dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--terracotta);
  display:inline-block;
}

.section-head{ max-width:640px; margin-bottom:52px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  transition:transform .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  white-space:nowrap;
}
.btn svg{ transition:transform .3s var(--ease); flex-shrink:0; }
.btn:hover svg{ transform:translateX(3px); }
.btn-primary{
  background:var(--terracotta);
  color:var(--sand);
  box-shadow:0 8px 20px -8px rgba(211,107,80,.55);
}
.btn-primary:hover{
  background:var(--terracotta-dark);
  transform:translateY(-2px);
  box-shadow:0 12px 26px -8px rgba(211,107,80,.65);
}
.btn-ghost{
  background:transparent;
  color:var(--charcoal);
  border-color:var(--charcoal);
}
.btn-ghost:hover{
  background:var(--charcoal);
  color:var(--sand);
  transform:translateY(-2px);
}
.btn-outline{
  background:transparent;
  color:var(--sand);
  border-color:var(--cream-muted);
}
.btn-outline:hover{
  background:var(--sand);
  color:var(--charcoal);
  border-color:var(--sand);
}
.btn-lg{ padding:18px 34px; font-size:1rem; }
.btn-block{ width:100%; justify-content:center; }

/* =========================================================
   PRELOADER
========================================================= */
#preloader{
  position:fixed; inset:0; z-index:9999;
  background:var(--charcoal);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .6s ease, visibility .6s ease;
  /* Pure-CSS safety net: if script.js never runs (e.g. a bad path after
     upload), this still fades the preloader out on its own after ~4s
     instead of blocking the page forever. */
  animation: preloaderAutoHide 0.1s linear 4s forwards;
}
#preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
@keyframes preloaderAutoHide{
  to{ opacity:0; visibility:hidden; pointer-events:none; }
}
.preloader-mark{
  font-family:var(--font-display);
  font-style:italic;
  font-size:3rem;
  color:var(--terracotta);
  animation:preloaderPulse 1.1s ease-in-out infinite;
}
@keyframes preloaderPulse{
  0%,100%{ opacity:.35; transform:scale(.9); }
  50%{ opacity:1; transform:scale(1); }
}

/* Cursor accent (desktop) */
.cursor-dot{
  position:fixed;
  width:26px; height:26px;
  border:1px solid var(--terracotta);
  border-radius:50%;
  pointer-events:none;
  z-index:9998;
  transform:translate(-50%,-50%);
  transition:width .25s var(--ease), height .25s var(--ease), opacity .25s ease, border-color .25s ease;
  opacity:0;
  mix-blend-mode:normal;
}
@media (hover:hover) and (pointer:fine){
  .cursor-dot.is-active{ opacity:1; }
  .cursor-dot.is-grown{ width:52px; height:52px; background:rgba(211,107,80,.12); }
}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:22px 0;
  transition:padding .35s var(--ease), background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled{
  padding:14px 0;
  background:rgba(249,246,240,.86);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--stone-line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-family:var(--font-display);
}
.brand-mark{
  width:38px; height:38px;
  border-radius:50%;
  background:var(--charcoal);
  color:var(--terracotta);
  display:flex; align-items:center; justify-content:center;
  font-style:italic; font-size:1.15rem;
  flex-shrink:0;
}
.brand-name{
  font-size:1.05rem;
  color:var(--charcoal);
  line-height:1.1;
  display:flex; flex-direction:column;
}
.brand-name em{
  font-style:normal;
  font-family:var(--font-body);
  font-size:.62rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ink-muted);
  font-weight:600;
  margin-top:2px;
}
.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-size:.92rem; font-weight:500; color:var(--ink);
  position:relative; padding:4px 0;
}
.main-nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px;
  background:var(--terracotta);
  transition:right .35s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after{ right:0; }
.nav-cta{
  background:var(--charcoal);
  color:var(--sand) !important;
  padding:10px 20px;
  border-radius:999px;
  transition:background .3s ease, transform .3s var(--ease);
}
.nav-cta:hover{ background:var(--terracotta); transform:translateY(-2px); }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  background:none; border:none;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{
  width:22px; height:1.6px; background:var(--charcoal);
  transition:transform .3s var(--ease), opacity .3s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================= */
.hero{
  position:relative;
  padding:168px 0 90px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; top:-120px; right:-160px;
  width:520px; height:520px;
  background:radial-gradient(circle, rgba(211,107,80,.16), transparent 70%);
  border-radius:50%;
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:60px;
  align-items:center;
}
.hero-title{
  font-size:clamp(2.6rem, 4.6vw, 4rem);
  line-height:1.06;
  margin:0 0 22px;
}
.hero-title em{ font-style:italic; color:var(--terracotta); }
.hero-sub{
  color:var(--ink-muted);
  font-size:1.08rem;
  max-width:50ch;
  margin:0 0 34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:52px; }

.hero-ledger{
  border-top:1px solid var(--stone-line);
  padding-top:26px;
}
.ledger-row{ display:flex; align-items:flex-start; gap:26px; flex-wrap:wrap; }
.ledger-stat{ display:flex; flex-direction:column; min-width:110px; }
.ledger-num,.ledger-suffix{
  font-family:var(--font-display);
  font-size:2rem;
  color:var(--charcoal);
  display:inline;
}
.ledger-suffix{ color:var(--terracotta); }
.ledger-label{
  font-size:.8rem; color:var(--ink-muted); margin-top:4px;
}
.ledger-row-divider{ width:1px; height:44px; background:var(--stone-line); align-self:center; }

.hero-visual{ position:relative; }
.hero-shape{
  position:absolute;
  top:-30px; left:-30px;
  width:88%; height:88%;
  background:var(--terracotta);
  border-radius:var(--radius-l);
  z-index:0;
}
.hero-frame{
  position:relative; z-index:1;
  border-radius:var(--radius-l);
  overflow:hidden;
  aspect-ratio:4/5;
  box-shadow:0 30px 60px -20px rgba(28,26,26,.35);
}
.hero-frame img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.2s var(--ease);
}
.hero-visual:hover .hero-frame img{ transform:scale(1.05); }

.hero-float-card{
  position:absolute; z-index:2;
  left:-30px; bottom:36px;
  background:var(--sand);
  border-radius:var(--radius-m);
  padding:16px 20px;
  display:flex; align-items:center; gap:12px;
  box-shadow:0 20px 40px -16px rgba(28,26,26,.28);
  animation:floatCard 5s ease-in-out infinite;
}
.float-icon{ color:var(--terracotta); font-size:1.1rem; }
.hero-float-card p{ margin:0; font-size:.85rem; line-height:1.4; }
@keyframes floatCard{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}

.hero-scroll-cue{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--ink-muted);
}
.hero-scroll-cue span{
  width:1px; height:34px;
  background:linear-gradient(var(--terracotta), transparent);
  position:relative; overflow:hidden;
}
.hero-scroll-cue span::after{
  content:""; position:absolute; top:0; left:0; width:100%; height:40%;
  background:var(--charcoal);
  animation:scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue{
  0%{ transform:translateY(-100%); }
  100%{ transform:translateY(250%); }
}
.hero-scroll-cue p{ font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; margin:0; }

/* =========================================================
   MARQUEE
========================================================= */
.marquee-band{
  background:var(--charcoal);
  padding:22px 0;
  overflow:hidden;
  white-space:nowrap;
}
.marquee-track{ display:flex; width:max-content; animation:marquee 32s linear infinite; }
.marquee-band:hover .marquee-track{ animation-play-state:paused; }
.marquee-group{ display:flex; align-items:center; gap:14px; padding-right:14px; }
.marquee-group span{
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.15rem;
  color:var(--cream-muted);
}
.marquee-group span:nth-child(even){ color:var(--terracotta); font-style:normal; font-family:var(--font-body); font-size:.9rem; }
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* =========================================================
   ABOUT
========================================================= */
.about{ padding:130px 0; }
.about-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:70px;
  align-items:center;
}
.about-visual{ position:relative; padding-bottom:30px; padding-right:30px; }
.about-img-a{
  border-radius:var(--radius-m);
  overflow:hidden;
  aspect-ratio:3/3.6;
}
.about-img-a img{ width:100%; height:100%; object-fit:cover; }
.about-img-b{
  position:absolute; right:0; bottom:0;
  width:52%;
  border-radius:var(--radius-m);
  overflow:hidden;
  border:6px solid var(--sand);
  aspect-ratio:1/1;
  box-shadow:0 24px 40px -18px rgba(28,26,26,.3);
}
.about-img-b img{ width:100%; height:100%; object-fit:cover; }
.about-badge{
  position:absolute; top:-26px; left:-26px;
  background:var(--terracotta);
  color:var(--sand);
  width:100px; height:100px;
  border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  box-shadow:0 16px 30px -12px rgba(211,107,80,.6);
}
.about-badge-num{ font-family:var(--font-display); font-size:1.8rem; line-height:1; }
.about-badge-text{ font-size:.65rem; text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }

.about-points{ margin-top:38px; display:flex; flex-direction:column; gap:26px; }
.about-point{ display:flex; gap:20px; }
.point-index{
  font-family:var(--font-display);
  font-style:italic;
  color:var(--terracotta);
  font-size:1.3rem;
  min-width:34px;
}
.about-point h3{ font-size:1.08rem; margin-bottom:6px; }
.about-point p{ color:var(--ink-muted); margin:0; font-size:.95rem; }

/* =========================================================
   FOUNDER
========================================================= */
.founder{ padding:0 0 130px; }
.founder-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:76px;
  align-items:center;
}
.founder-visual{ position:relative; }
.founder-frame{
  border-radius:var(--radius-l);
  overflow:hidden;
  aspect-ratio:4/5;
  box-shadow:0 30px 60px -20px rgba(28,26,26,.32);
  position:relative;
}
.founder-frame::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(28,26,26,.55), transparent 45%);
}
.founder-frame img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.1s var(--ease);
}
.founder-visual:hover .founder-frame img{ transform:scale(1.045); }

.founder-signature-card{
  position:absolute; left:-28px; bottom:-28px; z-index:2;
  background:var(--sand);
  border-radius:var(--radius-m);
  padding:18px 22px;
  box-shadow:0 20px 40px -16px rgba(28,26,26,.28);
  display:flex; flex-direction:column; gap:6px;
  min-width:210px;
}
.signature-mark{
  width:110px; height:38px;
  color:var(--terracotta);
}
.founder-signature-card p{
  margin:0;
  font-family:var(--font-display);
  font-size:1rem;
  color:var(--charcoal);
  display:flex; flex-direction:column;
}
.founder-signature-card p span{
  font-family:var(--font-body);
  font-size:.72rem;
  color:var(--ink-muted);
  font-weight:500;
  margin-top:2px;
}

.founder-quote{
  margin:26px 0;
  padding:22px 0 22px 26px;
  border-left:2px solid var(--terracotta);
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.2rem;
  line-height:1.55;
  color:var(--charcoal);
}

.founder-credentials{
  display:flex;
  gap:38px;
  flex-wrap:wrap;
  margin:36px 0 30px;
  padding-top:28px;
  border-top:1px solid var(--stone-line);
}
.founder-cred{ display:flex; flex-direction:column; gap:6px; }
.founder-cred-num{
  font-family:var(--font-display);
  font-size:1.7rem;
  color:var(--terracotta-dark);
}
.founder-cred-label{ font-size:.78rem; color:var(--ink-muted); line-height:1.35; }

.founder-social{ display:flex; align-items:center; gap:14px; }
.founder-social-link{
  width:42px; height:42px;
  border:1px solid var(--stone-line);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--charcoal);
  transition:background .3s ease, color .3s ease, transform .3s var(--ease);
}
.founder-social-link:hover{ background:var(--charcoal); color:var(--sand); transform:translateY(-3px); }
.founder-social-cta{
  width:auto; border-radius:999px; padding:0 22px;
  font-size:.85rem; font-weight:600; white-space:nowrap;
  border-color:var(--charcoal);
}

/* =========================================================
   LISTINGS
========================================================= */
.listings{ padding:0 0 130px; }
.listing-filters{ display:flex; gap:10px; margin-bottom:40px; flex-wrap:wrap; }
.filter-btn{
  background:transparent;
  border:1px solid var(--stone-line);
  color:var(--ink-muted);
  padding:9px 20px;
  border-radius:999px;
  font-size:.85rem; font-weight:600;
  transition:all .3s ease;
}
.filter-btn:hover{ border-color:var(--terracotta); color:var(--terracotta-dark); }
.filter-btn.is-active{ background:var(--charcoal); border-color:var(--charcoal); color:var(--sand); }

.listing-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
.listing-card{
  background:#fff;
  border-radius:var(--radius-m);
  overflow:hidden;
  border:1px solid var(--stone-line);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.listing-card:hover{
  transform:translateY(-8px);
  box-shadow:0 26px 44px -20px rgba(28,26,26,.24);
}
.listing-card.is-hidden{ display:none; }
.listing-img{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.listing-img img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.listing-card:hover .listing-img img{ transform:scale(1.08); }
.listing-tag{
  position:absolute; top:14px; left:14px;
  background:var(--sand); color:var(--charcoal);
  font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding:6px 12px; border-radius:999px;
}
.listing-tag-alt{ background:var(--terracotta); color:var(--sand); }
.listing-body{ padding:22px 22px 26px; }
.listing-price{ font-family:var(--font-display); font-size:1.35rem; color:var(--charcoal); }
.listing-price span{ font-family:var(--font-body); font-size:.75rem; color:var(--ink-muted); font-weight:500; }
.listing-body h3{ font-size:1.1rem; margin:8px 0 4px; }
.listing-loc{ color:var(--ink-muted); font-size:.85rem; margin:0 0 16px; }
.listing-specs{ display:flex; gap:14px; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--stone-line); }
.listing-specs li{ font-size:.78rem; color:var(--ink-muted); font-weight:500; }

.listing-cta{
  margin-top:52px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding:34px 40px;
  background:var(--charcoal);
  border-radius:var(--radius-l);
}
.listing-cta p{ color:var(--sand); font-family:var(--font-display); font-size:1.3rem; margin:0; }

/* =========================================================
   PROCESS
========================================================= */
.process{ background:var(--charcoal); padding:130px 0; }
.section-head-light{ }
.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:30px;
  padding:34px 0;
  border-top:1px solid var(--charcoal-line);
  transition:padding-left .4s var(--ease);
}
.process-item:last-child{ border-bottom:1px solid var(--charcoal-line); }
.process-item:hover{ padding-left:14px; }
.process-num{
  font-family:var(--font-display);
  font-style:italic;
  font-size:2.6rem;
  color:var(--terracotta);
}
.process-copy h3{ color:var(--sand); font-size:1.3rem; margin-bottom:8px; }
.process-copy p{ color:var(--cream-muted); max-width:56ch; margin:0; font-size:.98rem; }

/* =========================================================
   SERVICES
========================================================= */
.services{ padding:130px 0; }
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--stone-line);
  border:1px solid var(--stone-line);
  border-radius:var(--radius-m);
  overflow:hidden;
}
.service-card{
  background:var(--sand);
  padding:38px 32px;
  transition:background .35s ease;
}
.service-card:hover{ background:#fff; }
.service-icon{
  width:52px; height:52px;
  color:var(--terracotta);
  margin-bottom:22px;
  transition:transform .4s var(--ease);
}
.service-card:hover .service-icon{ transform:translateY(-4px) rotate(-4deg); }
.service-card h3{ font-size:1.1rem; margin-bottom:10px; }
.service-card p{ color:var(--ink-muted); font-size:.92rem; margin:0; }

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials{ padding:0 0 130px; }
.testi-track-wrap{ overflow:hidden; }
.testi-track{
  display:flex;
  gap:26px;
  transition:transform .6s var(--ease);
}
.testi-card{
  flex:0 0 100%;
  background:#fff;
  border:1px solid var(--stone-line);
  border-radius:var(--radius-m);
  padding:44px;
  margin:0;
}
.testi-card blockquote{
  font-family:var(--font-display);
  font-size:clamp(1.2rem, 2.2vw, 1.55rem);
  line-height:1.5;
  color:var(--charcoal);
  margin:0 0 28px;
}
.testi-card blockquote::before{ content:"\201C"; color:var(--terracotta); }
.testi-card blockquote::after{ content:"\201D"; color:var(--terracotta); }
.testi-card figcaption{ display:flex; align-items:center; gap:14px; }
.testi-card figcaption img{ width:50px; height:50px; border-radius:50%; object-fit:cover; }
.testi-card figcaption strong{ display:block; font-size:.95rem; }
.testi-card figcaption span{ color:var(--ink-muted); font-size:.82rem; }

.testi-dots{ display:flex; justify-content:center; gap:9px; margin-top:30px; }
.testi-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--stone-line);
  border:none;
  transition:all .3s ease;
}
.testi-dot.is-active{ background:var(--terracotta); width:24px; border-radius:999px; }

@media (min-width:760px){
  .testi-card{ flex-basis:100%; }
}

/* =========================================================
   CTA BAND
========================================================= */
.cta-band{
  position:relative;
  padding:110px 0;
  background:var(--terracotta);
  overflow:hidden;
  text-align:center;
}
.cta-band::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at 20% 20%, rgba(28,26,26,.12), transparent 55%);
}
.cta-band-inner{ position:relative; display:flex; flex-direction:column; align-items:center; gap:18px; }
.cta-band h2{
  color:var(--sand);
  font-size:clamp(2rem, 4vw, 3rem);
  max-width:16ch;
}
.cta-band p{ color:rgba(249,246,240,.85); max-width:50ch; margin:0; }
.cta-band .btn-primary{ background:var(--charcoal); margin-top:10px; }
.cta-band .btn-primary:hover{ background:var(--sand); color:var(--charcoal); }

/* =========================================================
   CONTACT
========================================================= */
.contact{ padding:130px 0; }
.contact-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:70px;
}
.contact-details{ margin-top:36px; display:flex; flex-direction:column; gap:20px; }
.contact-details li{ display:flex; flex-direction:column; gap:4px; padding-bottom:20px; border-bottom:1px solid var(--stone-line); }
.contact-label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--terracotta-dark); font-weight:700; }

.contact-form{
  background:#fff;
  border:1px solid var(--stone-line);
  border-radius:var(--radius-l);
  padding:40px;
  display:flex; flex-direction:column; gap:20px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field label{ font-size:.78rem; font-weight:600; color:var(--ink-muted); }
.form-field input, .form-field select, .form-field textarea{
  border:1px solid var(--stone-line);
  border-radius:var(--radius-s);
  padding:13px 15px;
  background:var(--sand);
  color:var(--ink);
  transition:border-color .3s ease, box-shadow .3s ease;
  resize:vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none;
  border-color:var(--terracotta);
  box-shadow:0 0 0 3px var(--terracotta-wash);
}
.form-note{ font-size:.85rem; min-height:1.2em; color:var(--terracotta-dark); margin:0; font-weight:600; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  position:relative;
  background:var(--charcoal);
  padding-top:80px;
  overflow:hidden;
}
.footer-cityscape{
  position:absolute; bottom:0; left:0; right:0; height:180px;
  opacity:.16;
  -webkit-mask-image:linear-gradient(to top, black, transparent);
  mask-image:linear-gradient(to top, black, transparent);
}
.footer-cityscape img{ width:100%; height:100%; object-fit:cover; }
.footer-inner{ position:relative; padding-top:20px; }
.footer-top{ display:flex; justify-content:space-between; gap:60px; flex-wrap:wrap; padding-bottom:70px; }
.brand-footer .brand-name{ color:var(--sand); }
.brand-footer .brand-name em{ color:var(--cream-muted); }
.footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col{ display:flex; flex-direction:column; gap:14px; }
.footer-col h4{
  color:var(--terracotta);
  font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  margin:0 0 4px; font-weight:700;
}
.footer-col a{ color:var(--cream-muted); font-size:.9rem; transition:color .3s ease; }
.footer-col a:hover{ color:var(--sand); }

.footer-bottom{
  border-top:1px solid var(--charcoal-line);
  padding:26px 0 34px;
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
}
.footer-bottom p{ color:var(--cream-muted); font-size:.8rem; margin:0; }
.back-to-top{
  width:40px; height:40px;
  border:1px solid var(--charcoal-line);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--sand);
  transition:background .3s ease, transform .3s var(--ease);
}
.back-to-top:hover{ background:var(--terracotta); transform:translateY(-3px); border-color:var(--terracotta); }

/* =========================================================
   SCROLL REVEAL
========================================================= */
/* Reveal-on-scroll is progressive enhancement: content is visible by
   default. JS adds "reveal-armed" to <html> only once it has successfully
   run and attached the IntersectionObserver — so if script.js ever fails
   to load on a live server, nothing is stuck invisible. */
html.reveal-armed [data-reveal]{
  opacity:0;
  transform:translateY(28px);
  transition:opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html.reveal-armed [data-reveal].is-visible{ opacity:1; transform:translateY(0); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px){
  .hero-grid, .about-grid, .contact-grid, .founder-grid{ grid-template-columns:1fr; }
  .about-visual{ order:2; max-width:480px; }
  .hero-visual{ order:-1; max-width:440px; margin:0 auto; }
  .founder-visual{ max-width:380px; margin:0 auto 50px; }
  .listing-grid{ grid-template-columns:repeat(2, 1fr); }
  .service-grid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width: 860px){
  .main-nav{
    position:fixed; top:0; right:0; height:100vh; width:min(320px, 78vw);
    background:var(--sand);
    flex-direction:column; align-items:flex-start;
    padding:110px 34px 40px;
    gap:26px;
    transform:translateX(100%);
    transition:transform .45s var(--ease);
    box-shadow:-20px 0 50px -20px rgba(0,0,0,.25);
  }
  .main-nav.is-open{ transform:translateX(0); }
  .main-nav a{ font-size:1.05rem; }
  .nav-cta{ margin-top:10px; }
  .nav-toggle{ display:flex; }
}

@media (max-width: 720px){
  .wrap{ padding:0 20px; }
  .hero{ padding:140px 0 70px; }
  .ledger-row{ gap:18px; }
  .ledger-row-divider{ display:none; }
  .listing-grid{ grid-template-columns:1fr; }
  .service-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-top{ flex-direction:column; gap:40px; }
  .about-badge{ width:80px; height:80px; left:-14px; top:-14px; }
  .cta-band, .about, .services, .process, .contact, .listings, .founder{ padding-top:80px; padding-bottom:80px; }
  .listing-cta{ flex-direction:column; align-items:flex-start; padding:30px; }
  .hero-visual{ max-width:88%; margin:0 auto; }
  .hero-shape{ top:-16px; left:-16px; width:calc(100% - 8px); height:calc(100% - 8px); }
  .hero-float-card{ left:6px; right:6px; bottom:18px; }
  .founder-signature-card{ left:8px; bottom:-20px; min-width:0; padding:14px 18px; }
  .founder-credentials{ gap:26px; }
}
