/* -------------------- Reset & Base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, Helvetica, Arial, sans-serif;
  color: #0a0a0a;
  background: #ffffff;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
:root{
  --bg:#ffffff;
  --ink:#0b0b0c;
  --muted:#0a0a0a;
  --accent:#0d6efd;
  --soft:#f4f6f8;
  --card:#ffffff;
  --section:#eeeeee;
  --section2:#f7f9fc;
  --shadow: 0 20px 40px rgba(2,12,27,0.08);
  --radius: 16px;
  --maxw: 1200px;
  --header: 64px;
  --z-header: 100;
}
h1,h2,h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 7vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4.5vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 3vw, 26px); }
p { margin: 0 0 16px; color: var(--muted); }
a { color: var(--ink); text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.lead { max-width: 800px; margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 20px rgba(2,12,27,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(2,12,27,0.14); }
.btn.alt { background: #fff; color: var(--ink); border: 1px solid rgba(2,12,27,0.12); }
.chip { display:inline-block; padding:6px 12px; border-radius:999px; background:var(--soft); color:var(--muted); font-size:.9rem; margin: 10px; font-weight: 600;}

.grid { display: grid; gap: 28px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border:1px solid #eef1f4; }
.section { padding: min(10vh, 120px) 0; position: relative; }
.section.tight { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.spacer { height: 24px; }
.divider { height:1px; background: #e9eef3; margin: 32px 0; }

/* -------------------- Hero -------------------- */
.hero { position: relative; min-height: calc(100vh - var(--header)); display: grid; place-items: center; overflow: clip; background-color: rgb(22, 22, 22);}
.hero picture { opacity: 0.5;}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(1.02) contrast(1.02) brightness(0.98);
  background-color: #000;
}
.hero .content { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.hero h1 { color: #dfe6ee; }
.hero h1 span { background: linear-gradient(90deg, #0a0a0a, #3b3f46); -webkit-background-clip: text; background-clip: text;}
.hero .cta { margin-top: 28px; display:flex; gap: 12px; justify-content:center; flex-wrap:wrap; }
.hero .hero-sub { max-width: 760px; margin: 0 auto; background: rgba(18, 18, 18, 0.2); border-radius: 12px; padding: 8px 12px; color: #fff;}

/* -------------------- What we do -------------------- */
.icon{
  width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center; background: var(--soft);
  box-shadow: inset 0 0 0 1px #e6ebf1;
  margin-bottom: 12px;
}

/* -------------------- Side-by-side -------------------- */
.split { display:grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 980px){ .split { grid-template-columns: 1fr; } }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border:1px solid #e8eef4; }
.media img { display:block; width:100%; height:auto; }

/* -------------------- Project Gallery (generic) -------------------- */
.gallery { display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { grid-column: span 4; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border:1px solid #e1e7ee; }
.tile.tall { grid-row: span 2; }
.tile img { display:block; width:100%; height:100%; object-fit: cover; }
@media (max-width: 980px){ .tile { grid-column: span 6; } .tile.tall{ grid-column: span 12; } }
#residential.section { background-color: var(--section); }
#process.section { background-color: var(--section); }
#faq.section { background-color: var(--section); }

/* -------------------- Contact -------------------- */
form { display:grid; gap: 14px; }
input, button, .input { font: inherit; padding: 14px 16px; border-radius: 12px; border:1px solid #dfe6ee; outline: none; background:#ffffff; }
input:focus { border-color: #b8c7db; box-shadow: 0 0 0 4px rgba(13,110,253,.08); }
button { background: var(--ink); color:#fff; font-weight:600; }
button:hover { opacity:.97; transform: translateY(-1px); box-shadow: var(--shadow); }
.notice { font-size:.95rem; color: var(--muted); }
.contact-side .contact-image { margin-top: 10px; border-radius: 12px; overflow:hidden; box-shadow: var(--shadow); margin-left: 0px;}
.contact-side img { display:block; width:100%; height:auto; }

/* Inline contact links in form */
#contact .card form .contact-inline { margin-top: 16px; display: grid; gap: 10px; }
#contact .card form .contact-inline .row{
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid #e6ebf2; border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink);
  box-shadow: 0 4px 12px rgba(2,12,27,.04);
}
#contact .card form .contact-inline .row:hover{ background: var(--section); border-color: #dfe6ee; }
#contact .card form .contact-inline .icon{
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px #e6ebf1;
  margin-bottom: 0px;
}
#contact .card form .contact-inline .icon svg{ width: 20px; height: 20px; display: block; }
#contact .card form .contact-inline .stack{ display: flex; flex-direction: column; line-height: 1.2; }
#contact .card form .contact-inline .label{ font-size: .85rem; color: var(--muted); }
#contact .card form .contact-inline .value{ font-weight: 600; color: var(--ink); }

/* -------------------- Header/Nav (FIXED & RESPONSIVE) -------------------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  backdrop-filter: saturate(1.1) blur(8px);
  background: rgba(255,255,255,.85); border-bottom:1px solid rgba(2,12,27,0.06);
  height: var(--header);
}
body { padding-top: var(--header); }
.nav { height: var(--header); display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.brand { display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:.06em; text-transform:uppercase; min-width: 140px; }
.mark { width:28px; height:28px; border-radius:8px; background:#000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(2,12,27,.16); flex:0 0 28px; }
#brandText { display:inline-block; transition: opacity .25s ease, transform .25s ease; white-space: nowrap; }
.brand.fade-out #brandText { opacity: 0; transform: translateY(6px); }
.brand.fade-in #brandText { opacity: 1; transform: translateY(0); }
nav a { padding: 8px 12px; border-radius: 999px; }
nav a:hover { background: #f2f5f9; }

/* Mobile nav: simple hamburger lines */
.hamburger {
  display: none; width: 40px; height: 40px; border: 1px solid rgba(2,12,27,.12);
  background: #fff; border-radius: 10px; align-items: center; justify-content: center;
  cursor: pointer; flex-direction: column; gap: 5px; padding: 8px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #111; border-radius: 1px; }
@media (max-width: 920px){ nav.desktop { display:none; } .hamburger { display: inline-flex; } }
.mobilePanel {
  position: fixed; top: var(--header); left: 0; right: 0;
  background:#fff; border-bottom:1px solid rgba(2,12,27,.08);
  transform: translateY(-8px); opacity: 0; pointer-events:none;
  transition: transform .18s ease, opacity .18s ease;
  box-shadow: 0 12px 32px rgba(2,12,27,.08);
}
.mobilePanel.open { transform: translateY(0); opacity: 1; pointer-events:auto; }
.mobileLinks { display:grid; gap:6px; padding: 12px 20px 16px; }
.mobileLinks a { padding: 12px 10px; border-radius:10px; }
.mobileLinks a:hover { background:#f5f7fb; }
@media (min-width: 921px){ .mobilePanel { display:none; } nav.desktop { display:flex; gap: 2px; } }

/* -------------------- Footer -------------------- */
footer { padding: 40px 0; background: var(--section); border-top:1px solid #e6ebf1; font-size: 12px; }
footer p { margin-bottom: 10px; }

/* -------------------- Reveal Animations -------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity:1; transform:none; }
  .btn, button { transition: none; }
  #brandText { transition: none; }
}

/* -------------------- Utilities -------------------- */
.two-col { grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px){ .two-col { grid-template-columns: 1fr; } }

/* ==================== Process (one-column journey) ==================== */
#process .apx-process{ position: relative; max-width: 900px; margin: 32px auto 0; }
#process .apx-steps{ list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
#process .apx-step{
  position: relative; margin: 24px 0; padding: 18px;
  border: 1px solid #e8eef4; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(2,12,27,.06);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease, border-color .2s ease;
}
#process .apx-step.apx-show{ opacity: 1; transform: translateY(0); }
#process .apx-step:hover{ border-color: #d6e0ec; }
#process .apx-step h3{ margin: 4px 0 6px; }
#process .apx-step p{ margin: 0; }

/* Number badge */
#process .apx-badge{
  position: absolute; left: -44px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: #0b0b0c; box-shadow: 0 6px 14px rgba(2,12,27,.18);
}

/* Vertical progress rail (top -> down fill) */
#process .apx-progress{
  position: absolute; left: 15px; top: -6px; bottom: -6px; width: 4px;
  background: #eef3f8; border-radius: 999px; overflow: hidden;
}
#process .apx-progress-fill{
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: #0b0b0c; border-radius: 999px; transition: height .3s ease;
}
@media (max-width: 640px){
  #process .apx-steps{ padding-left: 36px; }
  #process .apx-badge{ left: -38px; }
  #process .apx-progress{ left: 12px; }
}

/* ==================== Project Carousel ==================== */
#project .apx-carousel{
  position: relative; width: 100%; height: 460px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(2,12,27,0.08); border: 1px solid #e8eef4; background: #f2f5f9;
}
@media (max-width: 980px){ #project .apx-carousel{ height: 320px; } }
#project .apx-slide{ position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease-in-out; }
#project .apx-slide.apx-active{ opacity: 1; }
#project .apx-slide img{ width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
#project .apx-dots{
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 8px;
  background: rgba(255,255,255,.6); padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(2,12,27,.08); backdrop-filter: blur(6px);
}
#project .apx-dot{ width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(2,12,27,.35); background: rgba(255,255,255,.8); cursor: pointer; padding: 0; }
#project .apx-dot.apx-active{ background: #0b0b0c; border-color: #0b0b0c; }