/* ============================================
   Linden & Vale — Design Tokens
   ============================================ */
:root {
  --stone:        #EAE6DE;
  --stone-dark:   #DCD5C7;
  --ink:          #16232E;
  --ink-soft:     #33465A;
  --brass:        #A9834B;
  --brass-light:  #C9A566;
  --sage:         #6B7A63;
  --white:        #FDFCFA;
  --line:         rgba(22, 35, 46, 0.14);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'Space Grotesk', sans-serif;

  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* subtle paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}

h1, h2, h3 { font-family: var(--display); font-weight: 450; letter-spacing: -0.01em; }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(234, 230, 222, 0.88);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 450;
}
.logo span { color: var(--brass); font-style: italic; }
.nav-links {
  display: flex;
  gap: 2.4rem;
  font-size: 0.9rem;
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.85rem;
  font-family: var(--mono);
  border: 1px solid var(--ink);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--stone); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--stone);
}
.btn-primary:hover { background: var(--brass); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  margin-left: 0.9rem;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }
.btn-large { font-size: 0.95rem; padding: 1.05rem 2.4rem; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: 1.5rem;
}
.hero-title span { display: block; }
.hero-title em { color: var(--brass); font-style: italic; }
.hero-sub {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}
.hero-actions { margin-bottom: 3.2rem; }

.hero-stats {
  display: flex;
  gap: 2.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.hero-stats dt {
  font-family: var(--mono);
  font-size: 1.9rem;
  color: var(--ink);
}
.hero-stats dt::after { content: attr(data-suffix); }
.hero-stats dd {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.hero-art {
  position: relative;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coord {
  position: absolute;
  top: -1.6rem;
  left: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.plan-label {
  position: absolute;
  bottom: -1.6rem;
  right: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.blueprint { width: 100%; max-width: 420px; }
.draw-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease) forwards;
  animation-delay: 0.3s;
}
.draw-dot {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 2.6s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================
   Section shared
   ============================================ */
section { padding: 7rem 2rem; }
.section-head {
  max-width: var(--max);
  margin: 0 auto 3.2rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 620px;
}
.section-head.light .eyebrow { color: var(--brass-light); }
.section-head.light h2 { color: var(--white); }

/* ============================================
   Listings
   ============================================ */
.listings { max-width: var(--max); margin: 0 auto; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(22, 35, 46, 0.25);
}
.listing-art {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.listing-art.card-a { background: linear-gradient(160deg, #E5DCC8, #D5C9AC); }
.listing-art.card-b { background: linear-gradient(160deg, #DCE2DA, #C4CFC2); }
.listing-art.card-c { background: linear-gradient(160deg, #E8DAD1, #D9BFAE); }
.mini-plan { width: 62%; transition: transform 0.6s var(--ease); }
.listing-card:hover .mini-plan { transform: scale(1.08) translateY(-4px); }

.listing-body { padding: 1.6rem 1.7rem 1.9rem; }
.listing-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}
.listing-body h3 { font-size: 1.3rem; margin: 0.5rem 0 0.15rem; }
.listing-loc { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.9rem; }
.listing-specs {
  display: flex;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-bottom: 0.9rem;
}
.listing-price {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brass);
}

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { margin-top: 2rem; }
}

/* ============================================
   Process
   ============================================ */
.process {
  background: var(--ink);
  color: var(--stone);
}
.process-list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.process-list li {
  background: var(--ink);
  padding: 2.4rem 1.8rem;
  transition: background 0.4s var(--ease);
}
.process-list li:hover { background: #1D2E3C; }
.step-index {
  display: block;
  font-family: var(--mono);
  color: var(--brass-light);
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}
.process-list h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.process-list p {
  font-size: 0.9rem;
  color: #A9B6C1;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ============================================
   Neighborhoods
   ============================================ */
.neighborhoods { max-width: var(--max); margin: 0 auto; }
.hood-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.hood-card {
  background: var(--stone-dark);
  border-radius: 4px;
  padding: 1.6rem 1.3rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.hood-card:hover { background: var(--brass); transform: translateY(-4px); }
.hood-card:hover .hood-coord,
.hood-card:hover p,
.hood-card:hover h3 { color: var(--white); }
.hood-coord {
  position: absolute;
  top: 1rem; left: 1.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--sage);
  transition: color 0.35s var(--ease);
}
.hood-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; transition: color 0.35s var(--ease); }
.hood-card p { font-size: 0.83rem; color: var(--ink-soft); transition: color 0.35s var(--ease); }

@media (max-width: 1000px) {
  .hood-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.testimonial cite {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: normal;
}

/* ============================================
   CTA
   ============================================ */
.cta { background: var(--stone-dark); }
.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.cta-sub { color: var(--ink-soft); margin-bottom: 2.2rem; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--stone);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2.4rem;
}
.footer .logo { color: var(--white); }
.footer-inner p { color: #8C99A5; font-size: 0.85rem; margin-top: 0.6rem; }
.footer-links { display: flex; gap: 1.8rem; font-size: 0.88rem; align-self: center; }
.footer-links a { color: #C7CFD6; transition: color 0.3s; }
.footer-links a:hover { color: var(--brass-light); }
.footer-note {
  max-width: var(--max);
  margin: 1.6rem auto 0;
  font-size: 0.76rem;
  color: #7C8894;
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .draw-line { stroke-dashoffset: 0; }
}