/* ═══════════════════════════════════════════════════════════════
   COSMO CONSTRUCTION CONSULTING — Shared Stylesheet
   Design system: Tesla-inspired (see DESIGN.md) adapted for
   a premium Arizona residential contractor.
   Accent: Terracotta #C4612C | Font: Inter | Base unit: 8px
═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --black:       #0D0D0D;
  --white:       #FFFFFF;
  --gray-50:     #F8F8F6;
  --gray-100:    #EFEFED;
  --gray-200:    #E0E0DE;
  --gray-400:    #A8A8A6;
  --gray-600:    #6B6B69;
  --gray-800:    #3A3A38;
  --accent:      #C4612C;
  --accent-dark: #A34E22;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:       72px;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 2px 16px rgba(0,0,0,0.7);
  transition: color 0.3s, text-shadow 0.3s;
  flex-shrink: 0;
}
.nav.scrolled .nav-logo, .nav.dark-nav .nav-logo { text-shadow: none; }
.nav.scrolled .nav-logo { color: var(--black); }
.nav.dark-nav .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links > li > a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.25s, background 0.25s, text-shadow 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  display: block;
}
.nav-links > li > a:hover { color: var(--white); }
.nav.scrolled .nav-links > li > a { color: var(--gray-600); text-shadow: none; }
.nav.scrolled .nav-links > li > a:hover { color: var(--black); background: var(--gray-50); }
.nav.dark-nav .nav-links > li > a { color: var(--gray-600); text-shadow: none; }
.nav.dark-nav .nav-links > li > a:hover { color: var(--black); background: var(--gray-50); }

/* CTA button in nav */
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px !important;
  border-radius: 3px !important;
  background: var(--accent) !important;
  color: var(--white) !important;
  transition: background 0.25s var(--ease), transform 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; transform: translateY(-1px) !important; }

/* Areas dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ' ↓';
  font-size: 10px;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 168px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  list-style: none;
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-800) !important;
  background: transparent !important;
  transition: color 0.2s, background 0.2s !important;
}
.dropdown-menu li a:hover { color: var(--accent) !important; background: var(--gray-50) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: background 0.3s;
  border-radius: 2px;
}
.nav.scrolled .nav-toggle span,
.nav.dark-nav .nav-toggle span { background: var(--black); }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--gray-50);
  padding: 14px 64px;
  border-bottom: 1px solid var(--gray-100);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
}
.breadcrumb-inner a { color: var(--gray-400); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner span { color: var(--gray-800); font-weight: 500; }
.breadcrumb-sep { color: var(--gray-200); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 14px; font-weight: 500; font-family: var(--font);
  background: var(--accent); color: var(--white);
  letter-spacing: 0.02em;
  border: none; cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 40px;
  border-radius: 3px;
  font-size: 14px; font-weight: 500; font-family: var(--font);
  background: var(--accent); color: var(--white);
  letter-spacing: 0.04em;
  transition: background 0.25s var(--ease), transform 0.2s;
}
.btn-primary-lg:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-size: 14px; font-weight: 400; font-family: var(--font);
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.75); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 3px;
  font-size: 13px; font-weight: 400; font-family: var(--font);
  color: rgba(255,255,255,0.8); letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  align-self: flex-start;
}
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--gray-200); border-radius: 3px;
  font-size: 13px; font-weight: 400; font-family: var(--font);
  color: var(--gray-800); letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  align-self: flex-start;
}
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-phone {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 36px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 3px;
  font-size: 14px; font-weight: 400; font-family: var(--font);
  color: rgba(255,255,255,0.75); letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-phone:hover { border-color: rgba(255,255,255,0.6); color: var(--white); transform: translateY(-2px); }

/* ─── ANIMATIONS & REVEAL ────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes heroScale {
  to { transform: scale(1); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ─── HERO (homepage — 100vh) ────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* City/inner pages — shorter hero */
.hero.hero-city {
  height: 70vh;
  min-height: 500px;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}
/* Portfolio hero — dark, no photo */
.hero.hero-portfolio {
  height: auto;
  background: var(--black);
  padding: 140px 64px 80px;
  display: block;
  text-align: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroScale 8s var(--ease) forwards;
}
.hero.hero-portfolio .hero-img { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.38) 50%, rgba(0,0,0,0.55) 100%);
}
.hero.hero-city .hero-sub { margin-left: 0; }
.hero.hero-city .hero-actions { justify-content: flex-start; }
.hero.hero-city .hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.08) 100%);
}
/* Service pages — centered hero (overrides hero-city bottom-left) */
.hero.hero-service {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero.hero-service .hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.38) 50%, rgba(0,0,0,0.55) 100%);
}
.hero.hero-service .hero-content {
  padding: 0 48px;
}
.hero.hero-service .hero-sub {
  margin: 0 auto 40px;
}
.hero.hero-service .hero-actions {
  justify-content: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 860px;
}
.hero.hero-city .hero-content { padding: 0 64px 72px; max-width: 740px; }
.hero.hero-portfolio .hero-content { position: static; padding: 0; max-width: 640px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,0,0,0.55);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}
.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 200; line-height: 1.06;
  color: var(--white); letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero.hero-city .hero-title { font-size: clamp(38px, 5.5vw, 68px); }
.hero.hero-portfolio .hero-title {
  font-size: clamp(40px, 5vw, 72px);
  opacity: 1; transform: none; animation: none;
  color: var(--white);
}
.hero-sub {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.72); line-height: 1.6;
  max-width: 520px; margin: 0 auto 40px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.7s forwards;
}
.hero.hero-portfolio .hero-sub { opacity: 1; transform: none; animation: none; color: rgba(255,255,255,0.55); max-width: 480px; margin: 16px auto 0; }
.hero-actions {
  display: flex; gap: 16px; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.9s forwards;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 32px; right: 64px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.3s forwards;
}
.scroll-hint::before {
  content: ''; display: block; width: 1px; height: 48px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 1.4s ease-in-out 1.5s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 200; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--black);
}
.section-heading.light { color: var(--white); }
.section-body {
  font-size: 15px; font-weight: 300; line-height: 1.75;
  color: var(--gray-600); max-width: 440px;
}
.section-body.light { color: rgba(255,255,255,0.6); }

/* ─── STATS BAR ──────────────────────────────────────────────── */
.stats {
  background: var(--black);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; }
.stat-number {
  font-size: 52px; font-weight: 200;
  color: var(--white); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-number em { font-style: normal; color: var(--accent); }
.stat-label {
  font-size: 12px; font-weight: 400;
  color: var(--gray-400); letter-spacing: 0.12em; text-transform: uppercase;
}

/* ─── SERVICES GRID (homepage) ───────────────────────────────── */
.services { padding: 112px 64px; background: var(--gray-50); }
.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px;
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.service-card { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.service-card-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease);
}
.service-card:hover .service-card-img { transform: scale(1.06); }
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 55%);
}
.service-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; }
.service-card-name { font-size: 18px; font-weight: 300; color: var(--white); margin-bottom: 4px; }
.service-card-link {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.55); letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.25s;
}
.service-card:hover .service-card-link { color: var(--accent); }
.service-card-link::after { content: '→'; transition: transform 0.25s; }
.service-card:hover .service-card-link::after { transform: translateX(4px); }

/* ─── FEATURE SECTIONS (split photo + text) ──────────────────── */
.feature { display: grid; grid-template-columns: 55% 45%; min-height: 90vh; }
.feature.reverse { grid-template-columns: 45% 55%; }
.feature-photo { position: relative; overflow: hidden; }
.feature-photo-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.feature:hover .feature-photo-img { transform: scale(1.03); }
.feature-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 72px; background: var(--black);
}
.feature.light .feature-body { background: var(--white); }
.feature-body .section-heading { margin-bottom: 24px; }
.feature-body .section-body   { margin-bottom: 40px; }
.feature-list { list-style: none; margin-bottom: 44px; }
.feature-list li {
  font-size: 14px; font-weight: 300; color: var(--gray-400);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
}
.feature.light .feature-list li { color: var(--gray-600); border-bottom-color: var(--gray-100); }
.feature-list li::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

/* Full-bleed feature (hardscape section) */
.feature-fullbleed {
  position: relative; min-height: 80vh; overflow: hidden;
  display: flex; align-items: flex-end;
}
.feature-fullbleed-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transition: transform 0.8s var(--ease);
}
.feature-fullbleed:hover .feature-fullbleed-img { transform: scale(1.025); }
.feature-fullbleed-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
}
.feature-fullbleed-content {
  position: relative; z-index: 2;
  padding: 0 64px 72px;
  display: flex; justify-content: space-between; align-items: flex-end;
  width: 100%;
}
.feature-fullbleed-left { max-width: 520px; }
.feature-fullbleed-right { flex-shrink: 0; }

/* ─── PROCESS ────────────────────────────────────────────────── */
.process { padding: 120px 64px; background: var(--white); }
.process-header { text-align: center; margin-bottom: 80px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.process-steps::before {
  content: '';
  position: absolute; top: 28px;
  left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 1px; background: var(--gray-200);
}
.process-step { padding: 0 40px; text-align: center; }
.process-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--gray-800);
  margin: 0 auto 28px; position: relative; z-index: 1;
}
.process-step-title { font-size: 20px; font-weight: 300; color: var(--black); margin-bottom: 14px; letter-spacing: -0.01em; }
.process-step-body  { font-size: 14px; font-weight: 300; color: var(--gray-600); line-height: 1.7; }

/* ─── TESTIMONIAL ────────────────────────────────────────────── */
.testimonial {
  background: var(--gray-50); padding: 120px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.testimonial-mark { font-size: 120px; font-weight: 200; color: var(--accent); line-height: 0.7; margin-bottom: 32px; }
.testimonial-quote { font-size: clamp(20px, 2.5vw, 28px); font-weight: 200; color: var(--black); line-height: 1.5; letter-spacing: -0.01em; margin-bottom: 32px; }
.testimonial-author { font-size: 13px; font-weight: 500; color: var(--gray-400); letter-spacing: 0.14em; text-transform: uppercase; }
.testimonial-right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.testimonial-photo { aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.testimonial-photo:first-child { grid-row: span 2; aspect-ratio: auto; }
.testimonial-photo-bg { width: 100%; height: 100%; min-height: 140px; background-size: cover; background-position: center; display: block; border-radius: 4px; }

/* ─── WORK PREVIEW (homepage portfolio teaser) ───────────────── */
.work-preview { padding: 112px 64px; background: var(--white); }
.work-preview-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.work-preview-link { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.work-preview-link:hover { gap: 10px; }
.work-preview-link::after { content: '→'; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.work-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer;
  display: block;
}
.work-card-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card-img { transform: scale(1.05); }
.work-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; }
.work-card:hover .work-card-overlay { background: rgba(0,0,0,0.3); }
.work-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  transform: translateY(100%); transition: transform 0.35s var(--ease);
  font-size: 13px; font-weight: 400; color: var(--white);
  letter-spacing: 0.04em;
}
.work-card:hover .work-card-label { transform: translateY(0); }
.work-card-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white);
  background: var(--accent); padding: 4px 10px; border-radius: 2px;
}

/* ─── PORTFOLIO PAGE ─────────────────────────────────────────── */
.portfolio-page { padding: 80px 64px 120px; }
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 56px; padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-btn {
  padding: 9px 20px; border-radius: 3px;
  font-size: 13px; font-weight: 400; font-family: var(--font);
  border: 1px solid var(--gray-200); background: transparent;
  color: var(--gray-600); cursor: pointer; letter-spacing: 0.02em;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--gray-800); color: var(--gray-800); }
.filter-btn.active { background: var(--black); border-color: var(--black); color: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.project-card[style*="display: none"] { display: none !important; }
.project-card-photo {
  aspect-ratio: 4/3; overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.project-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-card-photo img { transform: scale(1.04); }
.project-card-body { padding: 20px 24px 24px; }
.project-card-category {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.project-card-title { font-size: 17px; font-weight: 300; color: var(--black); margin-bottom: 6px; letter-spacing: -0.01em; }
.project-card-meta { font-size: 13px; font-weight: 300; color: var(--gray-400); margin-bottom: 12px; }
.project-card-desc { font-size: 13px; font-weight: 300; color: var(--gray-600); line-height: 1.6; }

/* ─── CITY SERVICE FOCUS ─────────────────────────────────────── */
.service-focus { padding: 96px 64px; background: var(--gray-50); }
.service-focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.focus-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 4px; overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.focus-card:hover { transform: translateY(-4px); }
.focus-card-photo {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}
.focus-card:hover .focus-card-photo { transform: scale(1.04); }
.focus-card-body { padding: 24px; }
.focus-card-title { font-size: 18px; font-weight: 300; color: var(--black); margin-bottom: 10px; letter-spacing: -0.01em; }
.focus-card-desc  { font-size: 14px; font-weight: 300; color: var(--gray-600); line-height: 1.65; }
.focus-card-link { text-decoration: none; display: block; }
.focus-card-cta { font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 14px; letter-spacing: 0.02em; }

/* ─── CITY NARRATIVE (local content section) ─────────────────── */
.city-narrative { padding: 96px 64px; background: var(--white); }
.city-narrative-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; }
.city-narrative-text .section-heading { margin-bottom: 24px; }
.city-narrative-text p {
  font-size: 15px; font-weight: 300; color: var(--gray-600);
  line-height: 1.8; margin-bottom: 16px;
}
.city-narrative-text p:last-child { margin-bottom: 0; }
.city-narrative-text strong { font-weight: 500; color: var(--gray-800); }
.city-narrative-photo {
  border-radius: 4px; overflow: hidden;
  background-size: cover; background-position: center;
  align-self: stretch; min-height: 420px;
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────── */
.faq-section { padding: 96px 64px; background: var(--gray-50); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-inner .section-label,
.faq-inner .section-heading { text-align: center; margin-left: auto; margin-right: auto; }
.faq-inner .section-heading { margin-bottom: 48px; }
.faq-item {
  border-bottom: 1px solid var(--gray-200); list-style: none;
}
.faq-item:first-of-type { border-top: 1px solid var(--gray-200); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer;
  font-size: 16px; font-weight: 400; color: var(--black); line-height: 1.4;
  user-select: none; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+'; font-size: 20px; font-weight: 200;
  color: var(--accent); flex-shrink: 0; margin-left: 16px;
  transition: transform 0.25s;
}
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  font-size: 15px; font-weight: 300; color: var(--gray-600);
  line-height: 1.75; padding-bottom: 22px;
}

/* ─── AREAS GRID (city links) ────────────────────────────────── */
.areas-section { background: var(--black); padding: 96px 64px; }
.areas-section-header { text-align: center; margin-bottom: 56px; }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.area-card {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  display: block; cursor: pointer;
}
.area-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
}
.area-card:hover .area-card-bg { transform: scale(1.06); }
.area-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s;
}
.area-card:hover .area-card-overlay { background: rgba(0,0,0,0.25); }
.area-card-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white);
}
.area-card-city { font-size: 18px; font-weight: 300; letter-spacing: 0.04em; margin-bottom: 6px; }
.area-card-arrow { font-size: 12px; color: rgba(255,255,255,0.5); transition: color 0.25s, transform 0.25s; }
.area-card:hover .area-card-arrow { color: var(--accent); transform: translateY(3px); }

/* Fallback for areas with no photo */
.area-card.no-photo { aspect-ratio: auto; }
.area-card.no-photo .area-card-bg { background: rgba(255,255,255,0.04); }
.areas-cards-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.area-pill {
  padding: 10px 22px; border: 1px solid rgba(255,255,255,0.12); border-radius: 24px;
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.area-pill:hover { border-color: var(--accent); color: var(--white); }

/* ─── RELATED LINKS STRIP ────────────────────────────────────── */
.related-links { background: var(--black); border-top: 1px solid rgba(255,255,255,0.07); }
.related-links-inner { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; }
.related-link-card {
  padding: 32px 40px; border-right: 1px solid rgba(255,255,255,0.07);
  color: var(--white); text-decoration: none;
  transition: background 0.2s var(--ease);
  display: block;
}
.related-link-card:last-child { border-right: none; }
.related-link-card:hover { background: rgba(255,255,255,0.04); }
.related-link-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 8px;
}
.related-link-title { font-size: 20px; font-weight: 200; color: var(--white); line-height: 1.3; }
.related-link-arrow { font-size: 20px; color: var(--accent); margin-top: 10px; }
@media (max-width: 768px) {
  .related-links-inner { grid-template-columns: 1fr; }
  .related-link-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 24px; }
  .related-link-card:last-child { border-bottom: none; }
}

/* ─── FINAL CTA ──────────────────────────────────────────────── */
.final-cta {
  position: relative; min-height: 70vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.final-cta-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
}
.final-cta-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.74); }
.final-cta-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 32px; max-width: 680px;
}
.final-cta-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.final-cta-title { font-size: clamp(36px, 5.5vw, 68px); font-weight: 200; color: var(--white); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.final-cta-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 48px; }
.final-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--black); padding: 80px 64px 48px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand-name { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-brand-desc { font-size: 13px; font-weight: 300; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.footer-license  { font-size: 11px; font-weight: 400; color: var(--gray-400); letter-spacing: 0.06em; }
.footer-col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 20px; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col-links a { font-size: 13px; font-weight: 300; color: var(--gray-600); transition: color 0.2s; }
.footer-col-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy  { font-size: 12px; font-weight: 300; color: var(--gray-600); }
.footer-phone { font-size: 13px; font-weight: 400; color: var(--gray-400); transition: color 0.2s; }
.footer-phone:hover { color: var(--white); }
.footer-legal-link { font-size: 12px; font-weight: 300; color: var(--gray-600); transition: color 0.2s; }
.footer-legal-link:hover { color: var(--white); }

/* ─── MODAL & FORM ───────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  z-index: 999; align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: 6px;
  padding: 56px 48px; max-width: 500px; width: 90%;
  position: relative;
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border: none; background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 20px; border-radius: 4px;
  transition: color 0.2s, background 0.2s; font-family: var(--font);
}
.modal-close:hover { color: var(--black); background: var(--gray-100); }
.modal-title { font-size: 28px; font-weight: 200; color: var(--black); letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-sub { font-size: 14px; font-weight: 300; color: var(--gray-600); margin-bottom: 36px; line-height: 1.6; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--gray-600); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--gray-200); border-radius: 3px;
  font-size: 14px; font-family: var(--font); font-weight: 300;
  color: var(--gray-800); background: var(--white);
  transition: border-color 0.2s; outline: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 15px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: 3px;
  font-size: 14px; font-weight: 500; font-family: var(--font);
  letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.25s, transform 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.form-note { font-size: 11px; color: var(--gray-400); text-align: center; margin-top: 14px; }

/* ─── NAP BLOCK ──────────────────────────────────────────────── */
.nap { font-style: normal; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid    { grid-template-columns: repeat(3, 1fr); }
  .project-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat  { border-right: none; padding: 0; }
  .feature { grid-template-columns: 1fr; min-height: auto; }
  .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-photo { order: -1; }
  .feature-photo { min-height: 50vw; }
  .feature-body  { padding: 56px 40px; }
  .testimonial   { grid-template-columns: 1fr; }
  .testimonial-right { display: none; }
  .process-steps::before { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .service-focus-grid { grid-template-columns: repeat(2, 1fr); }
  .city-narrative-inner { grid-template-columns: 1fr; }
  .city-narrative-photo { display: none; }
}
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { padding: 0 24px; }
  .hero.hero-city .hero-content { padding: 0 24px 60px; }
  .scroll-hint { display: none; }
  .stats { padding: 48px 24px; }
  .services, .work-preview, .portfolio-page { padding: 72px 24px; }
  .services-header, .work-preview-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card { grid-column: span 1 !important; aspect-ratio: 3/4 !important; }
  .project-grid { grid-template-columns: 1fr; }
  .service-focus { padding: 72px 24px; }
  .service-focus-grid { grid-template-columns: 1fr; }
  .city-narrative { padding: 72px 24px; }
  .feature-fullbleed-content { flex-direction: column; gap: 24px; padding: 0 24px 48px; }
  .faq-section { padding: 72px 24px; }
  .areas-section { padding: 72px 24px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .process { padding: 72px 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-step { padding: 0; }
  .testimonial { padding: 72px 24px; }
  .final-cta-content { max-width: 100%; }
  footer { padding: 64px 24px 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .breadcrumb { padding: 14px 24px; }
  .modal { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { gap: 6px; }
}
@media (max-width: 480px) {
  .services-grid, .work-grid, .areas-grid { grid-template-columns: 1fr; }
  .services-grid .service-card { grid-column: span 1 !important; aspect-ratio: 3/4 !important; }
  .hero-title { font-size: 36px; }
  .stat-number { font-size: 40px; }
}

/* ─── INSIGHTS LISTING PAGE ──────────────────────────────────── */
.insights-page { padding: 80px 64px; }
.insights-header { margin-bottom: 48px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.blog-card-photo { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-photo img { transform: scale(1.04); }
.blog-card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-category {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.blog-card-title {
  font-size: 17px; font-weight: 400; color: var(--black);
  margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 13px; font-weight: 300; color: var(--gray-600);
  line-height: 1.6; margin-bottom: 20px; flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--gray-400);
  border-top: 1px solid var(--gray-100); padding-top: 16px;
}
.blog-card-read { font-size: 12px; font-weight: 500; color: var(--black); }
.blog-card:hover .blog-card-read { color: var(--accent); }

/* ─── ARTICLE PAGE ───────────────────────────────────────────── */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 64px 32px 120px; }
.article-breadcrumb {
  font-size: 12px; color: var(--gray-400); margin-bottom: 36px;
  display: flex; align-items: center; gap: 8px;
}
.article-breadcrumb a { color: var(--gray-400); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--black); }
.article-breadcrumb-sep { opacity: 0.35; }
.article-category {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.article-title {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 300; line-height: 1.18;
  color: var(--black); letter-spacing: -0.02em; margin-bottom: 20px;
}
.article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--gray-400);
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-100);
}
.article-meta-dot { opacity: 0.35; font-size: 10px; }
.article-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 4px; margin-bottom: 48px; display: block;
}
.article-body {
  font-size: 16px; font-weight: 300;
  color: var(--gray-800); line-height: 1.78;
}
.article-body h2 {
  font-size: 22px; font-weight: 400; color: var(--black);
  letter-spacing: -0.01em; margin: 52px 0 16px; line-height: 1.25;
}
.article-body h3 {
  font-size: 17px; font-weight: 500; color: var(--black);
  margin: 36px 0 12px;
}
.article-body p { margin-bottom: 24px; }
.article-body ul, .article-body ol { margin: 0 0 24px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 500; color: var(--black); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px; margin: 36px 0;
  font-size: 18px; font-weight: 300; color: var(--gray-600); font-style: italic;
}
.article-cta {
  background: var(--black); border-radius: 4px;
  padding: 40px 48px; margin-top: 64px; text-align: center;
}
.article-cta-title {
  font-size: 22px; font-weight: 300; color: var(--white);
  letter-spacing: -0.01em; margin-bottom: 12px;
}
.article-cta-sub {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.5);
  margin-bottom: 28px; line-height: 1.6;
}

@media (max-width: 1100px) {
  .insights-page { padding: 64px 40px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .insights-page { padding: 56px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 40px 24px 80px; }
  .article-cta { padding: 32px 24px; }
}
