:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE7DA;
  --fg: #2C2C2C;
  --fg-muted: #6B6358;
  --accent: #B85C38;
  --accent-light: #D4845E;
  --green: #5C7A4B;
  --green-light: #7A9E66;
  --cream-dark: #DDD5C4;
  --serif: 'Noto Serif SC', 'Georgia', serif;
  --sans: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.logo-cn {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.logo-en {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ── HERO ── */
.hero {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.hero-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.8;
}

/* Courtyard Visual */
.courtyard {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.courtyard-outer {
  width: 280px;
  height: 280px;
  position: relative;
  border: 2px solid var(--accent);
}
.courtyard-room {
  position: absolute;
  background: var(--accent);
  opacity: 0.15;
}
.room-n { top: 0; left: 0; right: 0; height: 60px; }
.room-s { bottom: 0; left: 0; right: 0; height: 60px; }
.room-e { top: 60px; right: 0; width: 60px; bottom: 60px; }
.room-w { top: 60px; left: 0; width: 60px; bottom: 60px; }
.courtyard-center {
  position: absolute;
  top: 60px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  border: 1px dashed var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.courtyard-tree {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
}
.courtyard-label {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.3em;
}
.courtyard-caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--cream-dark);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.05em;
}

/* ── SECTION EYEBROW ── */
.section-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ── PHILOSOPHY ── */
.philosophy {
  background: var(--bg-alt);
  padding: 6rem 2rem;
}
.philosophy-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.philosophy h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.philosophy-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 700px;
  margin-bottom: 1rem;
  line-height: 1.9;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.philosophy-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: 2px;
  border-left: 3px solid var(--accent);
}
.card-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.philosophy-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.philosophy-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── REGIONS ── */
.regions {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.regions h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  line-height: 1.3;
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.region-card {
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}
.region-header {
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  min-height: 120px;
}
.region-west {
  background: linear-gradient(135deg, #5C7A4B 0%, #7A9E66 100%);
}
.region-south {
  background: linear-gradient(135deg, #B85C38 0%, #D4845E 100%);
}
.region-northeast {
  background: linear-gradient(135deg, #6B6358 0%, #8A7F72 100%);
}
.region-tag {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.1em;
}
.region-body {
  padding: 1.5rem 2rem 2rem;
}
.region-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.region-body ul {
  list-style: none;
  margin-bottom: 1.25rem;
}
.region-body li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.region-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.region-terrain {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}

/* ── PROCESS ── */
.process {
  background: var(--fg);
  color: #fff;
  padding: 6rem 2rem;
}
.process-inner {
  max-width: 900px;
  margin: 0 auto;
}
.process .section-eyebrow {
  color: var(--accent-light);
}
.process h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  line-height: 1.3;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}
.step-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-light);
  min-width: 60px;
  line-height: 1;
}
.step-content h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.step-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.step-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-left: 0;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.manifesto-inner {
  max-width: 750px;
  margin: 0 auto;
}
.manifesto blockquote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 2rem;
  position: relative;
}
.manifesto blockquote::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2rem;
}
.manifesto-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 2;
}

/* ── FOOTER ── */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--cream-dark);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-logo-cn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}
.footer-logo-en {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--cream-dark);
}

/* ── DESIGNS CATALOG ── */
.designs {
  background: var(--bg-alt);
  padding: 6rem 2rem;
}
.designs-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.designs h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.designs-intro {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.design-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.design-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.design-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.design-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.design-card:hover .design-card-img img {
  transform: scale(1.03);
}
.design-card-body {
  padding: 1.5rem;
}
.design-card-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.design-card-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.design-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.design-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--cream-dark);
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.design-card-cta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── DESIGN DETAIL PAGE ── */
.detail-hero {
  padding: 7rem 2rem 4rem;
}
.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.detail-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.detail-back:hover { color: var(--accent); }
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.detail-hero-img {
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}
.detail-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.detail-hero-info h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.detail-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}
.detail-rooms h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.detail-room-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.detail-room-item {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--cream-dark);
  color: var(--fg-muted);
}
.detail-floorplan {
  background: var(--bg-alt);
  padding: 5rem 2rem;
}
.detail-floorplan-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.detail-floorplan h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
}
.detail-floorplan-img {
  border: 1px solid var(--cream-dark);
  background: #fff;
  padding: 1.5rem;
}
.detail-floorplan-img img {
  width: 100%;
  height: auto;
  display: block;
}
.detail-floorplan-svg {
  border: 1px solid var(--cream-dark);
  background: #fff;
  padding: 2rem;
}
.detail-floorplan-svg .floorplan-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── FLOOR PLAN SVG ── */
.fp-wall { fill: none; stroke: #2C2C2C; stroke-width: 3; }
.fp-wall-thin { fill: none; stroke: #2C2C2C; stroke-width: 1.5; }
.fp-fill { fill: #fff; }
.fp-yard { fill: #F0EDE6; }
.fp-room-label { font-family: var(--sans); font-size: 14px; font-weight: 700; fill: #2C2C2C; text-anchor: middle; }
.fp-room-area { font-family: var(--sans); font-size: 11px; font-weight: 400; fill: #6B6358; text-anchor: middle; }
.fp-dim { font-family: var(--sans); font-size: 9px; fill: #6B6358; text-anchor: middle; }
.fp-dim-line { stroke: #B0A898; stroke-width: 0.75; }
.fp-dim-tick { stroke: #B0A898; stroke-width: 0.75; }
.fp-door { fill: none; stroke: #2C2C2C; stroke-width: 1.5; }
.fp-door-arc { fill: none; stroke: #999; stroke-width: 0.75; stroke-dasharray: 3,2; }
.fp-window { stroke: #2C2C2C; stroke-width: 1.5; fill: #fff; }
.fp-title { font-family: var(--serif); font-size: 18px; font-weight: 700; fill: #2C2C2C; text-anchor: middle; }
.fp-subtitle { font-family: var(--sans); font-size: 11px; fill: #6B6358; text-anchor: middle; }
.fp-north { font-family: var(--sans); font-size: 10px; fill: #6B6358; text-anchor: middle; }
.fp-yard-label { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: #6B6358; text-anchor: middle; }
.fp-yard-sub { font-family: var(--sans); font-size: 10px; font-weight: 400; fill: #999; text-anchor: middle; }
.fp-hatch { stroke: #DDD5C4; stroke-width: 0.5; }
.detail-specs {
  padding: 5rem 2rem;
}
.detail-specs-inner {
  max-width: 900px;
  margin: 0 auto;
}
.detail-specs h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
}
.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.detail-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.detail-spec-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.detail-spec-value {
  font-size: 0.9rem;
  color: var(--fg);
  text-align: right;
}
.detail-cta {
  background: var(--fg);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}
.detail-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.detail-cta h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}
.detail-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.detail-cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background 0.15s;
}
.detail-cta-btn:hover {
  background: var(--accent-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual { order: -1; }
  .courtyard-outer {
    width: 220px;
    height: 220px;
  }
  .room-n, .room-s { height: 45px; }
  .room-e, .room-w { width: 45px; }
  .courtyard-center { top: 45px; left: 45px; right: 45px; bottom: 45px; }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .philosophy-grid,
  .regions-grid {
    grid-template-columns: 1fr;
  }
  .designs-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }
  .step { gap: 1.25rem; }
  .step-number { min-width: 40px; font-size: 1.5rem; }
  .philosophy, .regions, .designs, .process, .manifesto { padding: 4rem 1.25rem; }
  .detail-hero, .detail-floorplan, .detail-specs, .detail-cta { padding: 4rem 1.25rem; }
  .detail-hero { padding-top: 5.5rem; }
}