/* ============================================================
   ARCHI. - Architecture & Interior Design
   Single Stylesheet - All Pages
   ============================================================ */

/* ----- 1. CSS VARIABLES ----- */
:root {
  --bg-primary: #FAF9F6;
  --bg-secondary: #F2EFE9;
  --bg-card: #FFFFFF;
  --text-primary: #1C1917;
  --text-secondary: #78716C;
  --accent: #C85A3D;
  --accent-hover: #A84830;
  --accent-sage: #7A8B69;
  --border: #E7E5E4;
  --shadow: 0 10px 30px -10px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 60px -15px rgba(28, 25, 23, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- 2. RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ----- 3. CUSTOM SCROLLBAR ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ----- 4. TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ----- 5. BUTTONS ----- */
.btn-primary-archi {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 2px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary-archi:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline-archi {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-archi:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-full { width: 100%; justify-content: center; }

/* ----- 6. NAVBAR ----- */
.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  height: var(--nav-height);
}
.navbar-main.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 10px rgba(28,25,23,0.04);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}
.navbar-logo:hover { color: var(--text-primary); }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--text-primary); }
.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}
.navbar-links .btn-consult {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition);
}
.navbar-links .btn-consult:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1002;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 100px 2rem 2rem;
  border-left: 1px solid var(--border);
}
.mobile-drawer.open { right: 0; }
.drawer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.drawer-inner a {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-primary);
}
.drawer-inner .btn-consult {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--text-primary);
  margin-top: 1rem;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-overlay.active { opacity: 1; pointer-events: all; }

/* ----- 7. HERO 3D ASSEMBLING HOUSE ----- */
.hero-3d {
  position: relative;
  min-height: 100vh;
  background: var(--bg-primary);
}
.hero-3d-pin {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
}
.hero-3d-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}
.hero-text { z-index: 2; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

/* 3D Perspective Container */
.perspective-container {
  perspective: 1500px;
  width: 100%;
  max-width: 480px;
  height: 420px;
  margin: 0 auto;
  position: relative;
}

/* House Assembly */
.house-assembly {
  position: relative;
  width: 280px;
  height: 340px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

/* Layer 1: Foundation */
.layer-foundation {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transform-origin: center bottom;
  z-index: 1;
}
.foundation-block {
  width: 260px;
  height: 24px;
  background: #44403C;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(28,25,23,0.15);
}

/* Layer 2: First Floor Walls */
.layer-first-floor {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 2;
}
.wall {
  position: absolute;
  background: #D6D3D1;
}
.wall-left {
  width: 12px;
  height: 120px;
  left: 20px;
  bottom: 0;
}
.wall-right {
  width: 12px;
  height: 120px;
  right: 20px;
  bottom: 0;
}
.wall-back {
  width: 220px;
  height: 120px;
  left: 20px;
  bottom: 0;
  background: #E7E5E4;
  z-index: -1;
}

/* Layer 3: Second Floor */
.layer-second-floor {
  position: absolute;
  bottom: 144px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 3;
}
.wall-left-upper {
  width: 12px;
  height: 90px;
  left: 40px;
  bottom: 0;
  background: #D6D3D1;
}
.wall-right-upper {
  width: 12px;
  height: 90px;
  right: 40px;
  bottom: 0;
  background: #D6D3D1;
}
.floor-slab {
  width: 220px;
  height: 8px;
  left: 20px;
  bottom: 0;
  background: #A8A29E;
}

/* Layer 4: Roof */
.layer-roof {
  position: absolute;
  bottom: 234px;
  left: 50%;
  transform: translateX(-50%) translateY(-200px);
  opacity: 0;
  z-index: 4;
}
.roof-shape {
  width: 0;
  height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-bottom: 80px solid #78716C;
  position: relative;
}
.roof-shape::after {
  content: '';
  position: absolute;
  top: 80px;
  left: -110px;
  width: 220px;
  height: 6px;
  background: #57534E;
}

/* Layer 5: Windows & Doors */
.layer-windows {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  z-index: 5;
}
.window {
  position: absolute;
  background: #BFDBFE;
  border: 2px solid #A8A29E;
}
.win-1 { width: 32px; height: 40px; left: 48px; bottom: 50px; }
.win-2 { width: 32px; height: 40px; right: 48px; bottom: 50px; }
.win-3 { width: 28px; height: 32px; left: 68px; bottom: 170px; }
.win-4 { width: 28px; height: 32px; right: 68px; bottom: 170px; }
.door-main {
  position: absolute;
  width: 30px;
  height: 52px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  background: var(--accent);
  border: 2px solid #A8A29E;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

/* Layer 6: Interior / Furniture */
.layer-interior {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  z-index: 6;
}
.furniture { position: absolute; }
.sofa {
  width: 40px;
  height: 16px;
  background: var(--accent-sage);
  left: 50px;
  bottom: 12px;
  border-radius: 3px 3px 0 0;
}
.sofa::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 8px;
  height: 20px;
  background: var(--accent-sage);
  border-radius: 3px 0 0 3px;
}
.table {
  width: 24px;
  height: 4px;
  background: #92400E;
  right: 56px;
  bottom: 12px;
}
.table::before, .table::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 10px;
  background: #92400E;
  top: 4px;
}
.table::before { left: 2px; }
.table::after { right: 2px; }
.plant {
  width: 10px;
  height: 18px;
  border-radius: 50% 50% 0 0;
  background: var(--accent-sage);
}
.plant-1 { right: 36px; bottom: 4px; }
.plant-2 { left: 36px; bottom: 150px; width: 8px; height: 14px; }
.plant::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  background: #92400E;
  border-radius: 0 0 2px 2px;
}
.lamp {
  width: 4px;
  height: 24px;
  background: #1C1917;
  right: 44px;
  bottom: 150px;
}
.lamp::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  background: #FDE68A;
  border-radius: 50% 50% 0 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
}
.scroll-indicator span {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-secondary);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ----- 8. CAMERA FLY-THROUGH ----- */
.flythrough-section {
  position: relative;
  height: 300vh;
  background: var(--bg-secondary);
}
.flythrough-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.flythrough-viewport {
  perspective: 1200px;
  width: 100%;
  max-width: 800px;
  height: 500px;
  position: relative;
  overflow: hidden;
}
.flythrough-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.fly-room {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-living { transform: translateZ(0px); }
.room-kitchen { transform: translateZ(600px); }
.room-bedroom { transform: translateZ(1200px); }

.room-walls {
  position: relative;
  width: 80%;
  height: 70%;
  transform-style: preserve-3d;
}
.room-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: #D6C9B6;
  transform: rotateX(60deg);
  transform-origin: bottom center;
}
.room-wall-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: #F5F0EB;
  border: 1px solid var(--border);
}
.room-wall-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 15%;
  height: 65%;
  background: #EDE8E2;
  transform: skewY(-5deg);
  transform-origin: top left;
}
.room-wall-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 65%;
  background: #EDE8E2;
  transform: skewY(5deg);
  transform-origin: top right;
}

/* Room Furniture (CSS shapes) */
.room-furniture {
  position: absolute;
  bottom: 15%;
  left: 10%;
  right: 10%;
  height: 40%;
}
.r-sofa {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 35%;
  height: 20%;
  background: var(--accent-sage);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}
.r-coffee-table {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 15%;
  height: 6%;
  background: #92400E;
  border-radius: 2px;
}
.r-rug {
  position: absolute;
  bottom: 2%;
  left: 15%;
  width: 50%;
  height: 4%;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 2px;
}
.r-plant {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 8%;
  height: 25%;
  background: var(--accent-sage);
  border-radius: 50% 50% 0 0;
}
.r-counter {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 40%;
  height: 22%;
  background: #E7E5E4;
  border-top: 3px solid #A8A29E;
}
.r-island {
  position: absolute;
  bottom: 8%;
  left: 35%;
  width: 30%;
  height: 12%;
  background: #F5F0EB;
  border: 2px solid var(--border);
}
.r-stool {
  position: absolute;
  bottom: 4%;
  width: 6%;
  height: 14%;
  background: #1C1917;
  border-radius: 50% 50% 0 0;
}
.stool-1 { left: 40%; }
.stool-2 { left: 54%; }
.r-bed {
  position: absolute;
  bottom: 8%;
  left: 20%;
  width: 45%;
  height: 18%;
  background: #F5F0EB;
  border: 2px solid var(--border);
  border-radius: 4px;
}
.r-bed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: #D6D3D1;
  border-radius: 4px 4px 0 0;
}
.r-nightstand {
  position: absolute;
  bottom: 8%;
  width: 8%;
  height: 12%;
  background: #92400E;
  border-radius: 2px;
}
.ns-left { left: 10%; }
.ns-right { left: 67%; }
.r-wardrobe {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 12%;
  height: 35%;
  background: #D6D3D1;
  border: 1px solid var(--border);
}

.room-label {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----- 9. MATERIALS LAYERING ----- */
.section-materials {
  padding: 8rem 0;
  background: var(--bg-primary);
}
.materials-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.materials-perspective {
  perspective: 1000px;
}
.wall-cross-section {
  position: relative;
  width: 280px;
  height: 320px;
  margin: 0 auto;
  transform-style: preserve-3d;
}
.mat-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.mat-studs {
  transform: translateX(-200px) translateZ(0px);
  opacity: 0;
}
.stud {
  position: absolute;
  width: 16px;
  height: 280px;
  background: #D4A76A;
  top: 20px;
}
.stud-1 { left: 20px; }
.stud-2 { left: 85px; }
.stud-3 { left: 150px; }
.stud-4 { left: 215px; }
.stud-plate {
  position: absolute;
  width: 100%;
  height: 14px;
  background: #C49A5E;
  left: 0;
}
.top-plate { top: 6px; }
.bottom-plate { bottom: 6px; }

.mat-insulation {
  transform: translateX(200px) translateZ(30px);
  opacity: 0;
}
.insulation-fill {
  position: absolute;
  top: 20px;
  left: 10px;
  right: 10px;
  height: 280px;
  background: #FBBF24;
  opacity: 0.5;
  border-radius: 2px;
}

.mat-drywall {
  transform: translateZ(60px) translateY(-200px);
  opacity: 0;
}
.drywall-sheet {
  position: absolute;
  top: 10px;
  left: 5px;
  right: 5px;
  height: 300px;
  background: #F5F0EB;
  border: 1px solid var(--border);
}

.mat-paint {
  transform: translateZ(90px) translateY(200px);
  opacity: 0;
}
.paint-finish {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 310px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 2px;
}

.mat-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.materials-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.materials-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ----- 10. PHILOSOPHY SECTION ----- */
.section-philosophy {
  padding: 10rem 0 8rem;
  background: var(--bg-primary);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.philosophy-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.philosophy-quote cite {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-secondary);
}
.philosophy-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

/* ----- 11. FEATURED PROJECTS (HOME) ----- */
.section-projects {
  padding: 8rem 0;
  background: var(--bg-secondary);
}
.projects-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card-home {
  background: var(--bg-card);
  overflow: hidden;
  transition: box-shadow var(--transition);
  cursor: pointer;
}
.project-card-home:hover {
  box-shadow: var(--shadow-lg);
}
.project-card-visual {
  height: 300px;
  background: var(--bg-secondary);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}
.project-card-home:hover .css-building {
  transform: scale(1.05);
}
.project-card-info {
  padding: 1.5rem;
}
.project-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-title {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
  transition: transform var(--transition);
}
.project-card-home:hover .project-title {
  transform: translateY(-4px);
}
.project-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ----- CSS BUILDINGS (Pure CSS Art) ----- */
.css-building {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Modern House */
.building-modern { width: 180px; height: 160px; }
.building-modern .b-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 80px;
  background: #D6D3D1;
}
.building-modern .b-upper {
  position: absolute;
  bottom: 80px;
  left: 30px;
  width: 120px;
  height: 60px;
  background: #E7E5E4;
}
.building-modern .b-roof-flat {
  position: absolute;
  bottom: 140px;
  left: 20px;
  width: 140px;
  height: 6px;
  background: #78716C;
}
.building-modern .b-window {
  position: absolute;
  background: #BFDBFE;
  border: 1.5px solid #A8A29E;
}
.building-modern .bw-1 { width: 28px; height: 32px; left: 16px; bottom: 30px; }
.building-modern .bw-2 { width: 28px; height: 32px; right: 16px; bottom: 30px; }
.building-modern .bw-3 { width: 24px; height: 28px; left: 60px; bottom: 96px; }
.building-modern .b-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.building-modern .b-tree {
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 20px;
  height: 50px;
  background: var(--accent-sage);
  border-radius: 50% 50% 0 0;
}
.building-modern .b-tree::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 16px;
  background: #92400E;
}

/* Apartment Tower */
.building-apartment { width: 100px; height: 200px; }
.building-apartment .b-tower {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 80px;
  height: 200px;
  background: #D6D3D1;
}
.building-apartment .b-balcony {
  position: absolute;
  left: 0;
  width: 100px;
  height: 4px;
  background: #A8A29E;
}
.building-apartment .bal-1 { bottom: 160px; }
.building-apartment .bal-2 { bottom: 120px; }
.building-apartment .bal-3 { bottom: 80px; }
.building-apartment .bal-4 { bottom: 40px; }
.building-apartment .b-entrance {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* Commercial */
.building-commercial { width: 200px; height: 120px; }
.building-commercial .b-wide-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 90px;
  background: #E7E5E4;
}
.building-commercial .b-glass-facade {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 70px;
  background: #BFDBFE;
  opacity: 0.5;
}
.building-commercial .b-canopy {
  position: absolute;
  bottom: 90px;
  left: -10px;
  width: 220px;
  height: 6px;
  background: #78716C;
}
.building-commercial .b-columns {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 90px;
  background: #A8A29E;
}
.building-commercial .col-1 { left: 30px; }
.building-commercial .col-2 { left: 50%; transform: translateX(-50%); }
.building-commercial .col-3 { right: 30px; }

/* Conceptual */
.building-concept { width: 120px; height: 140px; }
.building-concept .b-sphere {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #E7E5E4;
  border: 2px solid #D6D3D1;
}
.building-concept .b-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #A8A29E;
}

/* Small variant */
.css-building.small { transform: scale(0.7); }
.css-building.large { transform: scale(1.2); }

/* ----- 12. PROCESS SECTION ----- */
.section-process {
  padding: 8rem 0;
  background: var(--bg-primary);
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-line {
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
}
.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.process-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ----- 13. STATS SECTION ----- */
.section-stats {
  padding: 6rem 0;
  background: var(--text-primary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--bg-primary);
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.875rem;
  color: #A8A29E;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ----- 14. TESTIMONIALS ----- */
.section-testimonials {
  padding: 8rem 0;
  background: var(--bg-primary);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 2px;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
}
.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ----- 15. NEWSLETTER ----- */
.section-newsletter {
  padding: 6rem 0;
  background: var(--bg-secondary);
}
.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.newsletter-inner p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-right: none;
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form .btn-primary-archi { border-radius: 0; }

/* ----- 16. PAGE HERO (Inner Pages) ----- */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--bg-primary);
}
.page-hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.page-hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ----- 17. PROJECTS PAGE ----- */
.section-filter {
  padding: 2rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}
.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.section-projects-grid {
  padding: 4rem 0 8rem;
}
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.masonry-item { transition: opacity 0.4s, transform 0.4s; }
.masonry-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
.project-card-masonry {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card-masonry:hover {
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  color: var(--text-primary);
}
.masonry-visual {
  height: 220px;
  background: var(--bg-secondary);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
}
.masonry-visual.tall { height: 300px; }
.masonry-info {
  padding: 1.25rem;
}
.masonry-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}
.project-card-masonry:hover .masonry-info h3 { color: var(--accent); }
.masonry-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ----- 18. PROJECT DETAIL PAGE ----- */
.breadcrumb-section {
  padding: calc(var(--nav-height) + 2rem) 0 1rem;
  background: var(--bg-primary);
}
.breadcrumb-archi {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.breadcrumb-archi li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--border);
}
.breadcrumb-archi li:last-child::after { display: none; }
.breadcrumb-archi .active { color: var(--text-primary); }

.project-detail-hero {
  padding: 3rem 0 5rem;
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.pd-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0.5rem 0 1rem;
}
.pd-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.pd-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
  border-left: 2px solid var(--border);
  padding-left: 2rem;
}
.meta-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.meta-value {
  font-size: 1rem;
  font-weight: 500;
}

/* Gallery */
.project-gallery {
  padding: 4rem 0;
  background: var(--bg-secondary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 200px;
}
.gallery-large { grid-column: 1 / 3; min-height: 300px; }
.gallery-wide { grid-column: 1 / 4; min-height: 200px; }

/* CSS Rooms for Gallery */
.css-room {
  width: 100%;
  height: 100%;
  min-height: inherit;
  position: relative;
  overflow: hidden;
}
.room-floor-g {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: #D6C9B6;
}
.room-wall-g {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: #F5F0EB;
}
.room-window-g {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 35%;
  background: #BFDBFE;
  border: 3px solid #D6D3D1;
}
.room-sofa-g {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 30%;
  height: 12%;
  background: var(--accent-sage);
  border-radius: 4px 4px 0 0;
}
.room-counter-g {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 50%;
  height: 15%;
  background: #E7E5E4;
  border-top: 3px solid #A8A29E;
}
.room-bed-g {
  position: absolute;
  bottom: 18%;
  left: 25%;
  width: 40%;
  height: 14%;
  background: #F5F0EB;
  border: 2px solid var(--border);
  border-radius: 4px;
}
.room-sky-g {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: #DBEAFE;
}
.room-ground-g {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--accent-sage);
  opacity: 0.3;
}
.room-house-g {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  background: #D6D3D1;
}
.room-house-g::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -10px;
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 40px solid #78716C;
}

/* Project About */
.project-about {
  padding: 6rem 0;
}
.project-about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}
.project-about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.project-about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}
.project-about-visual {
  display: flex;
  justify-content: center;
}

/* Floor Plans */
.project-floorplans {
  padding: 6rem 0;
  background: var(--bg-secondary);
}
.floorplan-container {
  max-width: 700px;
  margin: 3rem auto 0;
}
.fp-outer {
  position: relative;
  width: 100%;
  height: 400px;
  border: 3px solid var(--text-primary);
  background: var(--bg-card);
}
.fp-room {
  position: absolute;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.fp-room:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.fp-room:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  white-space: nowrap;
  z-index: 10;
  border-radius: 2px;
}
.fp-living { top: 5%; left: 5%; width: 45%; height: 50%; }
.fp-kitchen { top: 5%; right: 5%; width: 40%; height: 30%; }
.fp-dining { top: 40%; right: 5%; width: 40%; height: 20%; }
.fp-master { bottom: 5%; left: 5%; width: 35%; height: 35%; }
.fp-bed2 { bottom: 5%; left: 45%; width: 25%; height: 35%; }
.fp-bath { top: 65%; right: 5%; width: 20%; height: 25%; }
.fp-terrace { bottom: 5%; right: 5%; width: 20%; height: 25%; background: var(--bg-secondary); }

/* Accordion */
.project-details {
  padding: 6rem 0;
}
.accordion-archi {
  max-width: 700px;
  margin: 3rem auto 0;
}
.accordion-item-archi {
  border-bottom: 1px solid var(--border);
}
.accordion-header-archi {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.accordion-header-archi:hover { color: var(--accent); }
.accordion-header-archi i {
  font-size: 0.875rem;
  transition: transform var(--transition);
}
.accordion-header-archi.active i { transform: rotate(45deg); }
.accordion-body-archi {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-archi.open { max-height: 200px; }
.accordion-body-archi p {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----- 19. SERVICES PAGE ----- */
.section-services-grid {
  padding: 4rem 0 8rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.service-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.service-link:hover { gap: 0.75rem; }

/* Design Phases */
.section-phases {
  padding: 8rem 0;
  background: var(--bg-secondary);
}
.phases-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}
.phases-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.phase-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.phase-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.phase-marker span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
}
.phase-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.phase-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}
.phase-duration {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ----- 20. STUDIO PAGE ----- */
.section-story {
  padding: 4rem 0 6rem;
}
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.story-block:last-child { margin-bottom: 0; }
.story-block-right .story-visual { order: 2; }
.story-block-right .story-text { order: 1; }
.story-text h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.story-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

/* CSS Scenes */
.css-scene {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
}
/* Drafting Table Scene */
.draft-table {
  position: absolute;
  bottom: 30px;
  left: 20%;
  width: 60%;
  height: 8px;
  background: #92400E;
  transform: perspective(200px) rotateX(10deg);
}
.draft-table::before, .draft-table::after {
  content: '';
  position: absolute;
  bottom: -40px;
  width: 6px;
  height: 40px;
  background: #92400E;
}
.draft-table::before { left: 10%; }
.draft-table::after { right: 10%; }
.draft-lamp {
  position: absolute;
  bottom: 38px;
  right: 25%;
  width: 4px;
  height: 60px;
  background: #1C1917;
}
.draft-lamp::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -10px;
  width: 24px;
  height: 14px;
  background: #FDE68A;
  border-radius: 50% 50% 0 0;
}
.draft-paper {
  position: absolute;
  bottom: 40px;
  left: 30%;
  width: 80px;
  height: 60px;
  background: #fff;
  border: 1px solid var(--border);
  transform: rotate(-5deg);
}
.draft-pencil {
  position: absolute;
  bottom: 44px;
  left: 55%;
  width: 40px;
  height: 4px;
  background: #F59E0B;
  transform: rotate(15deg);
}
.draft-pencil::before {
  content: '';
  position: absolute;
  right: -6px;
  top: -1px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 6px solid #1C1917;
}

/* Site Visit Scene */
.site-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: var(--accent-sage);
  opacity: 0.3;
}
.site-building {
  position: absolute;
  bottom: 30%;
  left: 30%;
  width: 100px;
  height: 120px;
  background: #D6D3D1;
  border: 2px solid #A8A29E;
}
.site-building::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -10px;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 50px solid #78716C;
}
.site-crane {
  position: absolute;
  bottom: 30%;
  right: 20%;
  width: 4px;
  height: 160px;
  background: #F59E0B;
}
.site-crane::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40px;
  width: 80px;
  height: 4px;
  background: #F59E0B;
}
.site-tree {
  position: absolute;
  bottom: 30%;
  width: 24px;
  height: 50px;
  background: var(--accent-sage);
  border-radius: 50% 50% 0 0;
}
.st-1 { left: 10%; }
.st-2 { right: 10%; height: 40px; }

/* Team */
.section-team {
  padding: 6rem 0 8rem;
  background: var(--bg-secondary);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
  background: var(--bg-card);
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); }
.team-avatar { margin-bottom: 1.25rem; }
.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
  color: var(--text-secondary);
}
.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.team-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.team-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Awards */
.section-awards {
  padding: 6rem 0 8rem;
}
.awards-list {
  max-width: 700px;
  margin: 0 auto;
}
.award-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.award-year {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--accent);
}
.award-name {
  font-weight: 500;
}
.award-project {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ----- 21. CONTACT PAGE ----- */
.section-contact {
  padding: 4rem 0 8rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}
.contact-form-col h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.contact-form-col > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.consultation-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-col h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-info-block { margin-bottom: 2rem; }
.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.info-item i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.25rem;
  width: 20px;
  text-align: center;
}
.info-item strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.info-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.map-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.map-inner > i {
  font-size: 2rem;
  color: var(--text-secondary);
  opacity: 0.3;
}
.map-inner > span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.map-pin {
  position: absolute;
  top: 40%;
  left: 55%;
  color: var(--accent);
  font-size: 1.5rem;
  animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.map-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}
.map-line {
  position: absolute;
  background: var(--text-secondary);
}
.ml-1 { top: 25%; left: 0; right: 0; height: 1px; }
.ml-2 { top: 50%; left: 0; right: 0; height: 1px; }
.ml-3 { top: 75%; left: 0; right: 0; height: 1px; }
.ml-4 { left: 33%; top: 0; bottom: 0; width: 1px; }
.ml-5 { left: 66%; top: 0; bottom: 0; width: 1px; }

/* ----- 22. 404 PAGE ----- */
.section-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
}
.error-content {
  text-align: center;
  max-width: 500px;
}
.error-visual {
  margin-bottom: 2rem;
}
.building-broken {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  position: relative;
}
.building-broken .b-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 160px;
  height: 80px;
  background: #D6D3D1;
}
.building-broken .b-wall-broken {
  position: absolute;
  bottom: 80px;
  left: 20px;
  width: 120px;
  height: 60px;
  background: #E7E5E4;
  clip-path: polygon(0 100%, 0 30%, 20% 0, 50% 40%, 80% 10%, 100% 50%, 100% 100%);
}
.building-broken .b-floating-brick {
  position: absolute;
  width: 18px;
  height: 10px;
  background: #A8A29E;
  animation: floatBrick 3s ease-in-out infinite;
}
.fb-1 { top: 10px; left: 30px; animation-delay: 0s; }
.fb-2 { top: 20px; right: 20px; animation-delay: 0.5s; }
.fb-3 { top: 5px; left: 70px; animation-delay: 1s; }
.fb-4 { top: 30px; right: 50px; animation-delay: 1.5s; }
@keyframes floatBrick {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
.building-broken .bw-1 {
  position: absolute;
  width: 24px;
  height: 28px;
  background: #BFDBFE;
  border: 1.5px solid #A8A29E;
  left: 30px;
  bottom: 20px;
}
.building-broken .b-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.error-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.error-sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ----- 23. FOOTER ----- */
.footer-main {
  background: var(--bg-secondary);
  padding: 5rem 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 1rem;
}
.footer-logo:hover { color: var(--text-primary); }
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-address {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--accent); }

/* ----- 24. BACK TO TOP ----- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { background: var(--accent); }

/* ----- 25. RESPONSIVE ----- */
@media (max-width: 1024px) {
  .hero-3d-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .perspective-container { max-width: 360px; height: 340px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid-home { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .materials-scene { grid-template-columns: 1fr; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-hero-grid { grid-template-columns: 1fr; }
  .pd-hero-meta { border-left: none; padding-left: 0; border-top: 2px solid var(--border); padding-top: 2rem; flex-direction: row; flex-wrap: wrap; }
  .project-about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .story-block { grid-template-columns: 1fr; }
  .story-block-right .story-visual { order: 0; }
  .story-block-right .story-text { order: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-large { grid-column: 1 / 3; }
  .gallery-wide { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }
  .hero-headline { font-size: 2.5rem; }
  .projects-grid-home { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .masonry-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 2px solid var(--border); }
  .award-item { grid-template-columns: 60px 1fr; }
  .award-project { grid-column: 1 / -1; text-align: left; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-large, .gallery-wide { grid-column: 1; }
  .flythrough-viewport { height: 350px; }
  .page-hero-title { font-size: 3rem; }
  .fp-outer { height: 300px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .page-hero-title { font-size: 2.5rem; }
  .error-code { font-size: 5rem; }
  .perspective-container { height: 280px; }
  .house-assembly { transform: scale(0.75); }
}