/* =========================================================
   NJCO Master Builders Inc. — styles
   Palette (sampled from the official logo):
   --gold #C9A24A | --gold-light #E4C671 | --gold-deep #8E6A26
   --charcoal #16181D | --cream #FAF7F0 | --white #FFFFFF
   ========================================================= */
:root {
  --gold: #C9A24A;
  --gold-light: #E4C671;
  --gold-deep: #8E6A26;
  --gold-text: #7A5A1E;          /* AA-contrast gold for text on light backgrounds */
  --charcoal: #16181D;
  --charcoal-2: #1F2229;
  --charcoal-3: #2A2E37;
  --ink: #2B2D31;
  --muted: #5E6168;
  --muted-light: #B9BCC3;
  --cream: #FAF7F0;
  --cream-2: #F3EDE0;
  --line: #E7E1D3;
  --white: #FFFFFF;
  --gold-grad: linear-gradient(135deg, #F3DC94 0%, #E4C671 22%, #C9A24A 55%, #8E6A26 100%);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
  --shadow-lg: 0 24px 60px rgba(22, 24, 29, .18);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--white); overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .6em; color: var(--charcoal); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
figure { margin: 0; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--charcoal); padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.text-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .88rem; }
.btn-lg { --pad-y: 1rem; --pad-x: 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-grad) border-box; border-color: transparent; color: var(--charcoal); box-shadow: 0 10px 26px rgba(201, 162, 74, .38); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-gold:hover { box-shadow: 0 14px 34px rgba(201, 162, 74, .55); }
.btn-gold:hover::after { left: 120%; }
.btn-glass { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.18); border-color: var(--gold-light); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline-dark { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline-dark:hover { background: rgba(22,24,29,.07); }

.link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--gold-text); text-decoration: none; border-bottom: 2px solid rgba(201,162,74,.45); padding-bottom: 2px; transition: border-color .2s ease, color .2s ease; }
.link-arrow:hover { color: var(--charcoal); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .3s ease;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold-grad); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(22,24,29,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-logo { width: 56px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--charcoal); letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-size: .76rem; color: var(--gold-text); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.primary-nav ul { display: flex; align-items: center; gap: .2rem; }
.primary-nav a:not(.btn) {
  display: block; padding: .5rem .7rem; text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--ink);
  border-radius: 6px; position: relative; transition: color .2s ease; white-space: nowrap;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav a:not(.btn):hover, .primary-nav a.active { color: var(--gold-text); }
.primary-nav a:not(.btn):hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.nav-cta-item { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (v1 design: charcoal + grid, gold line-art building) ----------
   Ported from the first version of the site. Hero-scoped overrides below keep it
   pixel-identical to v1 even where the shared base styles (buttons, eyebrow,
   gold gradient) were refined for the rest of the upgraded site. */
.hero {
  /* v1 gold gradient, scoped to the hero only (headline + hero buttons) */
  --gold-grad: linear-gradient(135deg, #F3DC94 0%, #C9A24A 48%, #9C7630 100%);
  position: relative; overflow: hidden;
  background: var(--charcoal); color: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(5rem, 9vw, 8rem);
  min-height: min(860px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
}
.hero > .container { width: min(1200px, 100% - 2.5rem); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(201,162,74,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(201,162,74,.10), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #1d2027 0%, #121418 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero .eyebrow, .why .eyebrow, .cta-band .eyebrow { color: var(--gold-light); }
.hero .eyebrow { letter-spacing: .14em; }
.hero .eyebrow::before { width: 28px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; color: var(--white); letter-spacing: -.01em; line-height: 1.2; margin-bottom: 1.2rem; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #D5D7DC; max-width: 36rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #C9CBD1; font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }
/* v1 button metrics inside the hero */
.hero .btn { gap: .5rem; line-height: inherit; }
.hero .btn-lg { --pad-y: .95rem; --pad-x: 1.8rem; }
.hero .btn-gold { background: var(--gold-grad); box-shadow: 0 8px 22px rgba(201, 162, 74, .35); }
.hero .btn-gold:hover { box-shadow: 0 12px 28px rgba(201, 162, 74, .5); }
/* v1 reveal timing for the hero elements */
.js .hero .reveal { transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .hero .reveal.in { transform: none; }

.hero-visual { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-skyline { width: 100%; height: auto; filter: drop-shadow(0 0 30px rgba(201,162,74,.25)); }
.hero-skyline .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-badge {
  position: absolute; right: -4%; bottom: -6%;
  background: var(--white); border-radius: 18px; padding: 10px;
  box-shadow: 0 20px 45px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,74,.5);
  animation: floaty 6s ease-in-out infinite;
}
.hero-badge img { width: 120px; height: auto; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .hero { min-height: 0; display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { width: min(360px, 80%); order: -1; margin-bottom: .5rem; }
  .hero-badge img { width: 92px; }
}
@media (max-width: 640px) {
  .hero > .container { width: min(1200px, 100% - 2rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-visual { width: min(280px, 78%); }
  .hero-badge { right: -8%; padding: 7px; border-radius: 14px; }
  .hero-badge img { width: 74px; }
  .scroll-cue { display: none; }
  .hero .eyebrow { letter-spacing: .09em; }
  .hero .eyebrow::before { width: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-head { max-width: 46rem; margin: 0 auto 3.2rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-visual { position: relative; padding: 0 2.5rem 3rem 0; isolation: isolate; }
.about-visual::before {
  content: ""; position: absolute; left: -1.2rem; top: -1.2rem; width: 55%; height: 60%;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: .6;
}
.about-brand {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--gold); padding: clamp(2rem, 5vw, 3.2rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem;
}
.about-brand img { width: min(280px, 80%); height: auto; }
.about-brand-tag { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--charcoal); }
.about-brand-tag span { color: var(--gold-text); }
.about-copy p { color: #45484F; font-size: 1.04rem; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-top: 1.8rem; }
.about-pillars li { padding: 1rem 1.1rem 1rem 1.2rem; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 10px 10px 0; }
.about-pillars strong { display: block; font-family: var(--font-head); color: var(--charcoal); font-size: 1rem; }
.about-pillars span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- Services ---------- */
.services { background: var(--cream); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.6rem 2rem;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
  position: relative; overflow: hidden; isolation: isolate;
}
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--charcoal); transform: translateY(101%); transition: transform .45s var(--ease); }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: none; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--charcoal); transition: background .35s ease, transform .35s var(--ease);
}
.service-icon svg, .why-icon svg, .step-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s ease; }
.service-card:hover .service-icon { background: var(--gold-grad); transform: rotate(-6deg) scale(1.05); }
.service-card:hover .service-icon svg { stroke: var(--charcoal); }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; transition: color .35s ease; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; transition: color .35s ease; }
.service-card:hover h3 { color: var(--white); }
.service-card:hover p { color: var(--muted-light); }

/* ---------- Our Work gallery ---------- */
.work { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; grid-auto-flow: dense; }
.g-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--charcoal-2); }
.g-feature { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-link { display: block; width: 100%; height: 100%; position: relative; cursor: zoom-in; }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,15,18,.85) 0%, rgba(14,15,18,.12) 50%, transparent 72%); }
.g-link::before {
  content: ""; position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; z-index: 2;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181D' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 22px no-repeat;
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .3s var(--ease);
}
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem; color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.g-cap::before { content: ""; display: block; width: 26px; height: 2px; background: var(--gold); margin-bottom: .45rem; transition: width .4s var(--ease); }
.g-feature .g-cap { font-size: 1.15rem; padding: 1.4rem 1.5rem; }
.g-link:hover img, .g-link:focus-visible img { transform: scale(1.07); }
.g-link:hover::before, .g-link:focus-visible::before { opacity: 1; transform: none; }
.g-link:hover .g-cap::before { width: 48px; }
.g-link:focus-visible { outline-offset: -3px; }
.work-more { text-align: center; margin: 2.2rem 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,11,13,.94); display: flex; align-items: center; justify-content: center; padding: 4.5rem 4.5rem 3rem; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb-img { max-width: min(1400px, 100%); max-height: calc(100vh - 10rem); max-height: calc(100svh - 10rem); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-cap { color: #E9E9EC; font-family: var(--font-head); font-weight: 500; text-align: center; font-size: .98rem; }
.lb-cap::before { content: ""; display: block; width: 30px; height: 2px; background: var(--gold); margin: 0 auto .5rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(228,198,113,.5); background: rgba(22,24,29,.8); display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.lb-btn:hover { background: var(--gold); }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-light); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover svg { stroke: var(--charcoal); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -25px; }
.lb-next { right: 1rem; top: 50%; margin-top: -25px; }
body.lb-open { overflow: hidden; }

/* ---------- Projects ---------- */
.projects { background: var(--cream); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background-color: var(--charcoal-2); }
.project-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px; }
.media-1 { background-image: linear-gradient(135deg, #2a2e37 0%, #1a1c21 60%, #3a2f1b 100%); }
.media-2 { background-image: linear-gradient(160deg, #1f2833 0%, #16181d 55%, #463619 100%); }
.media-3 { background-image: linear-gradient(120deg, #3a2f1b 0%, #1d2027 45%, #22262e 100%); }
.media-art { position: relative; width: 62%; height: auto; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: transform .6s var(--ease); }
.media-art .dash { stroke-dasharray: 4 4; opacity: .7; }
.project-card:hover .media-art { transform: scale(1.06); }
.photo-label { position: absolute; bottom: .9rem; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--gold-light); background: rgba(0,0,0,.45); border: 1px solid rgba(228,198,113,.4); padding: .3rem .8rem; border-radius: 999px; }
.project-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.project-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .6rem; }
.project-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.project-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0 0 .6rem; }
.project-loc { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); font-size: .93rem; margin: auto 0 0; padding-top: .4rem; }
.project-loc svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; fill: none; stroke: var(--gold-deep); stroke-width: 2; }

/* ---------- Process timeline ---------- */
.process { background: var(--white); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); opacity: .7; }
.step { position: relative; text-align: center; display: flex; flex-direction: column; }
.step-icon {
  position: relative; width: 72px; height: 72px; margin: 0 auto 1.3rem; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--charcoal);
  box-shadow: 0 0 0 8px var(--white), 0 0 0 9px rgba(201,162,74,.5), 0 14px 30px rgba(22,24,29,.2);
  transition: transform .35s var(--ease), background .35s ease;
}
.step:hover .step-icon { transform: translateY(-4px) scale(1.05); background: var(--gold-grad); }
.step:hover .step-icon svg { stroke: var(--charcoal); }
.step-body { flex: 1; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.1rem 1.4rem; transition: border-color .3s ease, box-shadow .3s ease; }
.step:hover .step-body { border-color: rgba(201,162,74,.6); box-shadow: var(--shadow); }
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* ---------- Why ---------- */
.why { background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 0% 0%, rgba(201,162,74,.16), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(201,162,74,.08), transparent 60%); pointer-events: none; }
.why .container { position: relative; }
.why-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.why-intro { padding-top: .5rem; }
.why .section-title { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.why-intro > p { color: var(--muted-light); font-size: 1.05rem; }
.why-quote { margin: 1.6rem 0 2rem; padding: .8rem 0 .8rem 1.3rem; border-left: 3px solid var(--gold); }
.why-quote p { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--gold-light); font-style: italic; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.why-item { padding: 1.7rem; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: border-color .3s ease, background-color .3s ease, transform .35s var(--ease); position: relative; overflow: hidden; }
.why-item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-grad); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.why-item:hover { border-color: rgba(201,162,74,.45); background: rgba(201,162,74,.07); transform: translateY(-4px); }
.why-item:hover::after { transform: scaleY(1); }
.why-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201,162,74,.55); margin-bottom: 1rem; background: rgba(201,162,74,.08); }
.why-item h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .4rem; }
.why-item p { color: var(--muted-light); margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: #101114; color: var(--white); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,17,20,.96) 0%, rgba(16,17,20,.86) 50%, rgba(16,17,20,.7) 100%), url("../assets/work/foundation-rebar-sm.webp") center / cover no-repeat; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--gold-grad); }
.cta-band::before { top: 0; }
.cta-band::after { bottom: 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 2.5rem; }
.cta-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--white); margin-bottom: .7rem; letter-spacing: -.01em; }
.cta-copy p { margin: 0; color: #CFD1D6; font-size: 1.05rem; max-width: 36rem; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; min-width: 290px; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info > p { color: #45484F; }
.contact-list { margin: 1.8rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list a { color: var(--charcoal); font-weight: 500; text-decoration-color: rgba(201,162,74,.6); text-underline-offset: 3px; word-break: break-word; }
.contact-list a:hover { color: var(--gold-text); }
.ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--charcoal); display: grid; place-items: center; }
.ci-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.addr-note { display: block; font-size: .88rem; color: var(--muted); }
.ci-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #E9E4D8; }
.map-frame { display: block; width: 100%; height: 300px; border: 0; }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; background: var(--white); border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--charcoal); text-decoration: none; transition: color .2s ease, background .2s ease; }
.map-link:hover { color: var(--gold-text); background: #FFFDF7; }

.contact-form, .form-thanks { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.contact-form h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.form-intro { color: var(--muted); margin-bottom: 1.3rem; font-size: .96rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--charcoal); }
.req { color: #B3312F; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .78rem .9rem; border: 1.5px solid #D9D4C7; border-radius: var(--radius-sm); background: #FDFCF9; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,74,.2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3312F; }
.field-error { color: #B3312F; font-size: .84rem; margin: .3rem 0 0; }
.field-error:empty { display: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-status { margin: .8rem 0 0; font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: #2F7A3E; }
.form-status.err { color: #B3312F; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }
.form-thanks { text-align: center; padding-block: 3rem; }
.form-thanks:focus { outline: none; }
.thanks-icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(201,162,74,.4); }
.thanks-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--charcoal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-thanks h3 { font-size: 1.6rem; }
.form-thanks p { color: #45484F; }
.thanks-alt { font-size: .95rem; }
.thanks-alt a { color: var(--gold-text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--muted-light); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: inline-block; background: var(--white); padding: 8px; border-radius: 14px; margin-bottom: 1rem; box-shadow: 0 0 0 1px rgba(201,162,74,.45); }
.footer-logo img { width: 110px; height: auto; }
.footer-name { font-family: var(--font-head); font-weight: 700; color: var(--white); margin: 0 0 .2rem; }
.footer-tag { color: var(--gold-light); font-style: italic; margin: 0; }
.footer-col h3 { color: var(--white); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col li { margin-bottom: .55rem; font-size: .94rem; }
.footer-col a { text-decoration: none; transition: color .2s ease; word-break: break-word; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .86rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* ---------- Floating action buttons ---------- */
.fab-stack { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.fab { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px rgba(0,0,0,.28); transition: transform .25s var(--ease), box-shadow .25s ease, opacity .3s ease, visibility .3s; }
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px rgba(0,0,0,.34); }
.fab svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-call { background: var(--gold-grad) border-box; }
.fab-call svg { stroke: var(--charcoal); }
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--gold); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
.fab-msg { background: linear-gradient(135deg, #00B2FF 0%, #006AFF 55%, #A033FF 100%); }
.fab-msg svg .fill { fill: #fff; stroke: none; }
.fab-top { width: 44px; height: 44px; background: var(--charcoal); border: 1px solid rgba(201,162,74,.6); opacity: 0; visibility: hidden; margin-right: 6px; }
.fab-top svg { width: 22px; height: 22px; stroke: var(--gold-light); stroke-width: 2.4; }
.fab-top.show { opacity: 1; visibility: visible; }
.fab-label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); background: var(--charcoal); color: var(--white); font-family: var(--font-head); font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; border: 1px solid rgba(201,162,74,.4); }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Reveal animation (only when JS enabled) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav a:not(.btn) { padding: .5rem .5rem; font-size: .9rem; }
  .primary-nav a:not(.btn)::after { left: .5rem; right: .5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .timeline::before { display: none; }
}
@media (max-width: 1040px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(22,24,29,.12); max-height: 0; overflow: hidden; transition: max-height .35s ease, visibility .35s; visibility: hidden; }
  .primary-nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.4rem; gap: 0; }
  .primary-nav a:not(.btn) { padding: .9rem .25rem; border-bottom: 1px solid #F0ECE2; font-size: 1.02rem; }
  .primary-nav a:not(.btn)::after { display: none; }
  .nav-cta-item { margin: 1rem 0 0; }
  .nav-cta-item .btn { width: 100%; --pad-y: .85rem; }
  .brand-logo { width: 48px; }
}
@media (max-width: 960px) {
  .about-grid, .contact-grid, .why-layout { grid-template-columns: 1fr; }
  .about-visual { max-width: 560px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; gap: 1.1rem; }
  .timeline::before { display: block; top: 20px; bottom: 20px; left: 35px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; text-align: left; align-items: start; }
  .step-icon { margin: 0; box-shadow: 0 0 0 6px var(--white), 0 0 0 7px rgba(201,162,74,.5), 0 10px 24px rgba(22,24,29,.2); }
}
@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 2rem); }
  .services-grid, .projects-grid, .why-grid, .about-pillars { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 140px; gap: 8px; }
  .g-cap { font-size: .8rem; padding: .7rem .75rem; }
  .g-feature .g-cap { font-size: .98rem; padding: 1rem; }
  .g-link::before { opacity: 1; transform: none; width: 32px; height: 32px; right: 8px; top: 8px; background-size: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-name { font-size: 1rem; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; gap: .5rem; }
  .eyebrow::before, .section-head .eyebrow::after { width: 18px; }
  .brand-sub { font-size: .7rem; }
  .about-visual { padding: 0 1.2rem 2.6rem 0; }
  .about-visual::before { left: -.6rem; top: -.6rem; }
  .lightbox { padding: 4rem .75rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .fab-stack { right: .9rem; bottom: .9rem; }
  .fab { width: 52px; height: 52px; }
  .fab-label { display: none; }
  .site-footer { padding-bottom: 5rem; }
}
@media (max-width: 360px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-skyline .draw { stroke-dashoffset: 0; }
  .js .hero .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

.about-grid--solo { grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
.about-grid--solo .about-pillars { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .about-grid--solo .about-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .about-grid--solo .about-pillars { grid-template-columns: 1fr; } }
.gallery > .g-item:last-child { grid-column: span 2; }
