:root {
  --primary-blue: #1B5299;
  --accent-blue: #2E7DD6;
  --light-blue: #E8F2FB;
  --dark-navy: #0F1D2E;
  --warm-accent: #FF8C42;
  --bg: #F8F9FB;
  --bg-soft: #FFFFFF;
  --card: #FFFFFF;
  --text: #0F1D2E;
  --muted: #6B7280;
  --line: #E2E6EA;
  --completed: #2E7DD6;
  --progress: #FF8C42;
  --upcoming: #6B7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #F8F9FB 0%, #E8F2FB 100%);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; transition: all 0.3s ease; }
h1, h2, h3, h4 { 
  font-family: 'Playfair Display', Georgia, serif; 
  line-height: 1.2; 
  font-weight: 700;
  color: var(--dark-navy);
}

nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 29, 46, 0.05);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dark-navy);
  white-space: nowrap;
}

.nav-links { list-style: none; display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { 
  text-decoration: none; 
  color: var(--muted); 
  font-weight: 600; 
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}
.nav-links a.active, .nav-links a:hover { color: var(--primary-blue); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.btn, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.nav-cta, .btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue)); 
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 82, 153, 0.3);
}
.nav-cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 82, 153, 0.4);
}
.btn-secondary {
  background: transparent; 
  color: var(--primary-blue); 
  border-color: var(--primary-blue);
}
.btn-secondary:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
}

.mobile-menu-btn { display: none; background: transparent; border: 0; flex-direction: column; gap: 4px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--dark-navy); }
.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.98); 
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); 
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.08);
}
.mobile-menu.active { display: block; }
.mobile-menu a { 
  display: block; 
  text-decoration: none; 
  color: var(--text); 
  padding: 0.85rem 0.5rem; 
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary-blue); }

section, .page-header { padding: 5rem 1.5rem; }
.page-header { 
  padding-top: 8.5rem; 
  padding-bottom: 4rem;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(27, 82, 153, 0.08) 0%, rgba(46, 125, 214, 0.05) 50%, rgba(255, 140, 66, 0.08) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 82, 153, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}
.page-header-with-image::before {
  display: none;
}
.page-header-with-image .section-label {
  color: rgba(255, 255, 255, 0.95);
}
.page-header-with-image .section-title {
  color: white;
}
.page-header-with-image .section-desc {
  color: rgba(255, 255, 255, 0.9);
}
.page-header-media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}
.page-header-media::before {
  display: none;
}
.page-header-media .section-label {
  color: rgba(255, 255, 255, 0.95);
}
.page-header-media .section-title {
  color: white;
}
.page-header-media .section-desc {
  color: rgba(255, 255, 255, 0.9);
}
.section-container, .footer-container { max-width: 1200px; margin: 0 auto; }
.section-header { max-width: 820px; margin: 0 auto 3rem; text-align: center; }
.section-label {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary-blue); margin-bottom: 0.75rem; font-weight: 700;
}
.section-title { 
  font-size: clamp(2.25rem, 5vw, 3.5rem); 
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-desc { 
  color: var(--muted); 
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero { 
  padding-top: 10rem; 
  padding-bottom: 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(27, 82, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 860px; position: relative; z-index: 1; margin: 0 auto; text-align: center; }
.hero h1 { 
  font-size: clamp(2.75rem, 6vw, 4.5rem); 
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.hero p { 
  color: var(--muted); 
  margin-bottom: 2rem;
  font-size: 1.15rem;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; justify-content: center; }
.stats-grid { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
}
.stat {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 242, 251, 0.6) 100%);
  border: 2px solid var(--line); 
  border-radius: 20px; 
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 29, 46, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(27, 82, 153, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat:hover::before {
  opacity: 1;
}
.stat:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(27, 82, 153, 0.18);
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(232, 242, 251, 0.9) 100%);
}
.stat h3 { 
  font-size: 3rem; 
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.stat p { 
  margin: 0; 
  color: var(--dark-navy);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card); 
  border: 2px solid var(--line); 
  border-radius: 16px; 
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.1);
  border-color: var(--accent-blue);
}
.card h3 {
  color: var(--dark-navy);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card p, .card li { 
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.card ul {
  margin-left: 1.25rem;
}
.card li {
  margin-bottom: 0.5rem;
}

.projects-grid { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
}
.project-card {
  background: var(--card); 
  border: 2px solid var(--line); 
  border-radius: 16px; 
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(27, 82, 153, 0.15);
  border-color: var(--accent-blue);
}
.project-card:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 29, 46, 0.82) 0%, rgba(15, 29, 46, 0.1) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-card:hover .project-card-overlay {
  opacity: 1;
}
.project-image { 
  aspect-ratio: 16/10; 
  background: var(--light-blue);
  overflow: hidden;
  position: relative;
}
.project-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}
.project-body { padding: 1.5rem; }
.project-inline-logo {
  margin-bottom: 0.75rem;
}
.project-inline-logo img {
  width: auto;
  max-width: 180px;
  height: 32px;
  object-fit: contain;
}
.project-status {
  display: inline-block; 
  font-size: 0.8rem; 
  padding: 0.35rem 0.85rem; 
  border-radius: 999px; 
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.status-completed { 
  background: rgba(46, 125, 214, 0.15); 
  color: var(--completed);
  border: 1px solid rgba(46, 125, 214, 0.3);
}
.status-progress { 
  background: rgba(255, 140, 66, 0.15); 
  color: var(--progress);
  border: 1px solid rgba(255, 140, 66, 0.3);
}
.status-upcoming { 
  background: rgba(107, 114, 128, 0.15); 
  color: var(--upcoming);
  border: 1px solid rgba(107, 114, 128, 0.3);
}
.project-card h3 {
  color: var(--dark-navy);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.project-meta { 
  margin-top: 1rem; 
  display: grid; 
  gap: 0.5rem; 
  font-size: 0.95rem; 
  color: var(--muted); 
}
.project-meta strong { 
  color: var(--dark-navy); 
  font-weight: 700; 
}
.project-scope { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  border: 1.5px solid var(--line); 
  border-radius: 999px; 
  padding: 0.35rem 0.75rem; 
  font-size: 0.8rem; 
  color: var(--muted);
  background: var(--light-blue);
  font-weight: 600;
}
.project-expand-btn {
  margin-top: 1.25rem;
  width: 100%;
  border: 2px solid var(--primary-blue);
  background: transparent;
  color: var(--primary-blue);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.project-expand-btn:hover {
  background: var(--primary-blue);
  color: white;
}
.project-gallery {
  margin-top: 1.25rem;
  display: none;
}
.project-card.expanded .project-gallery {
  display: block;
}
.project-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.project-gallery-item {
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-blue);
  transition: all 0.3s ease;
}
.project-gallery-item:hover {
  border-color: var(--accent-blue);
  transform: scale(1.02);
}
.project-gallery-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.project-gallery-item figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  background: white;
  font-weight: 600;
}
.project-gallery-empty {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem;
  text-align: center;
  background: var(--light-blue);
  border-radius: 12px;
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  margin-bottom: 1rem;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(27, 82, 153, 0.25);
}

.team-grid { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
}
.team-card {
  background: var(--card); 
  border: 2px solid var(--line); 
  border-radius: 16px; 
  padding: 2rem 1.5rem; 
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.12);
  border-color: var(--accent-blue);
}
.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-blue);
  background: var(--light-blue);
  box-shadow: 0 4px 12px rgba(27, 82, 153, 0.15);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white; 
  display: grid; 
  place-items: center; 
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(27, 82, 153, 0.25);
}
.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.team-group {
  margin-top: 0.75rem;
  display: inline-block;
  border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue);
  background: var(--light-blue);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}
.team-card p { 
  color: var(--muted);
  font-weight: 600;
}

.process-grid { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
}
.process-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.process-card {
  overflow: hidden; 
  border-radius: 16px; 
  border: 2px solid var(--line); 
  background: var(--card);
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.12);
  border-color: var(--accent-blue);
}
.process-card img { 
  width: 100%; 
  height: 180px; 
  object-fit: cover;
  transition: transform 0.3s ease;
}
.process-card:hover img {
  transform: scale(1.05);
}
.process-card h4 { 
  padding: 1rem; 
  font-size: 1rem;
  color: var(--dark-navy);
}
.process-card-double h4 {
  padding-bottom: 0.5rem;
}
.process-images {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}
.process-images img {
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--light-blue);
}

/* Masonry highlights gallery */
.highlights-gallery {
  columns: 4;
  column-gap: 1rem;
}
.highlight-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  position: relative;
  cursor: pointer;
}
.highlight-item.highlight-hidden {
  display: none;
}
.highlight-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.highlight-item:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(27, 82, 153, 0.18);
}
.highlights-show-more-wrap {
  text-align: center;
  margin-top: 2rem;
}
.highlights-show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 2px solid var(--primary-blue);
  background: transparent;
  color: var(--primary-blue);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.highlights-show-more:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 82, 153, 0.22);
}
@media (max-width: 900px) { .highlights-gallery { columns: 3; } }
@media (max-width: 600px) { .highlights-gallery { columns: 2; } }

/* Legacy grid helpers (kept for index page) */
.highlights-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.highlight-card {
  border-radius: 16px;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.12);
  border-color: var(--accent-blue);
}
.highlight-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.highlight-card:hover img {
  transform: scale(1.05);
}

.logo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.logo-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.12);
  border-color: var(--accent-blue);
}
.logo-card img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.logo-card p {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

.org-chart {
  display: grid;
  gap: 1.5rem;
}
.org-level {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.org-node {
  width: 200px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  text-align: center;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.org-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.12);
  border-color: var(--accent-blue);
}
.org-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--primary-blue);
  background: var(--light-blue);
}
.org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.org-node h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.org-node p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-light {
  background: linear-gradient(135deg, var(--light-blue) 0%, #FFFFFF 100%);
}

.contact-grid { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: 1fr 1fr; 
}
.contact-item { 
  display: flex; 
  gap: 1rem; 
  margin-bottom: 1.5rem; 
  align-items: flex-start;
}
.contact-icon {
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  display: grid; 
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(27, 82, 153, 0.25);
  flex-shrink: 0;
}
.contact-item h4 {
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.contact-item a, .contact-item p { 
  color: var(--muted); 
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.contact-item a:hover { 
  color: var(--primary-blue);
}

.trusted-brands {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.brand-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  box-shadow: 0 4px 12px rgba(15, 29, 46, 0.06);
  transition: all 0.3s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.12);
  border-color: var(--accent-blue);
}
.brand-card img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(30%) brightness(1.1);
  opacity: 0.85;
  transition: all 0.3s ease;
  mix-blend-mode: multiply;
}
.brand-card:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}
.brand-card p {
  color: var(--dark-navy);
  font-size: 0.95rem;
  text-align: center;
  font-weight: 700;
  margin: 0;
}

footer { 
  border-top: 2px solid var(--line); 
  padding: 3rem 1.5rem 2rem;
  background: var(--bg-soft);
}
.footer-top { 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  gap: 1.5rem; 
  flex-wrap: wrap; 
  margin-bottom: 1.5rem; 
}
.footer-links { 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
}
.footer-links a { 
  color: var(--muted); 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--primary-blue);
}
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(27, 82, 153, 0.2);
}
.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 82, 153, 0.35);
}
.footer-bottom { 
  color: var(--muted);
  font-weight: 500;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-credit {
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-credit a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer-credit a:hover {
  color: var(--accent-blue);
}

/* ── Project Modal ─────────────────────────────────── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.project-modal.active {
  opacity: 1;
  pointer-events: all;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.project-modal-dialog {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1080px;
  height: min(88vh, 680px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(15, 29, 46, 0.08);
  transform: scale(0.93) translateY(24px);
  transition: transform 0.38s cubic-bezier(0.34, 1.28, 0.64, 1);
}
.project-modal.active .project-modal-dialog {
  transform: scale(1) translateY(0);
}
.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  color: var(--primary-blue);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 20;
  box-shadow: 0 12px 32px rgba(15, 29, 46, 0.24);
  transition: all 0.2s ease;
  line-height: 1;
}
.project-modal-close:hover {
  background: #ffffff;
  border-color: rgba(27, 82, 153, 0.4);
  color: var(--dark-navy);
  transform: scale(1.12);
}
.project-modal-close:focus-visible {
  outline: 3px solid rgba(46, 125, 214, 0.45);
  outline-offset: 2px;
}

/* Modal Left Panel */
.project-modal-left {
  width: 38%;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0c1f38 0%, #152d4e 60%, #1b3a5c 100%);
  color: white;
  padding: 2.5rem 2rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.modal-project-header { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  align-self: flex-start;
}
.modal-logo {
  max-height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.project-modal-left .project-status { align-self: flex-start; }
.project-modal-left h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: white;
  line-height: 1.25;
  margin: 0;
}
.modal-project-meta { display: flex; flex-direction: column; gap: 0; }
.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-meta-item:last-child { border-bottom: none; }
.modal-meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}
.modal-meta-item > span:last-child {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.4;
}
.project-modal-left .project-scope { margin: 0; }
.project-modal-left .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

/* Modal Right Panel */
.project-modal-right {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid var(--line);
}
.modal-image-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.modal-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: opacity 0.22s ease;
  box-shadow: 0 4px 24px rgba(15, 29, 46, 0.1);
  border: 1px solid var(--line);
}
.modal-no-images {
  display: none;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
  align-items: center;
  justify-content: center;
}
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  color: var(--dark-navy);
  font-size: 2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: all 0.2s ease;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 29, 46, 0.08);
}
.modal-nav-btn:hover {
  background: var(--light-blue);
  border-color: var(--accent-blue);
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}
.modal-prev { left: 0.75rem; }
.modal-next { right: 0.75rem; }
.modal-image-footer {
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.modal-caption {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  font-style: italic;
}
.modal-counter {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
  flex-shrink: 0;
}
.modal-dots {
  display: flex;
  gap: 7px;
  padding: 0.65rem 1.25rem 0.9rem;
  justify-content: center;
  flex-shrink: 0;
  min-height: 36px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}
.modal-dot.active {
  background: var(--primary-blue);
  width: 22px;
  border-radius: 4px;
}
.modal-dot:hover:not(.active) {
  background: var(--accent-blue);
}

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-container {
    padding: 0.9rem 1.25rem;
  }
  .mobile-menu {
    top: 74px;
  }
  .logo-img {
    height: 48px;
    width: 48px;
  }
  .logo-text { font-size: 1rem; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  section, .page-header {
    padding: 4rem 1.25rem;
  }
  .page-header {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }
  .hero {
    padding-top: 8rem;
    padding-bottom: 4.5rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .projects-grid,
  .team-grid,
  .process-grid,
  .process-grid-wide,
  .logo-grid,
  .trusted-brands {
    grid-template-columns: 1fr;
  }
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card,
  .project-body,
  .team-card,
  .brand-card,
  .logo-card,
  .org-node {
    padding: 1.5rem;
  }
  .footer-top,
  .footer-links,
  .footer-social {
    justify-content: center;
  }
  .project-modal-dialog {
    flex-direction: column;
    height: min(94vh, 760px);
    border-radius: 20px;
    overflow-y: auto;
    background: var(--bg-soft);
  }
  .project-modal-left {
    order: 2;
    width: 100%;
    max-height: none;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    overflow: visible;
  }
  .project-modal-left h2 { font-size: 1.2rem; }
  .project-modal-right {
    order: 1;
    flex: 0 0 auto;
    min-height: 280px;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .modal-image-area {
    min-height: 240px;
  }
  .modal-image-wrapper {
    padding: 1rem 3.5rem;
  }
}

@media (max-width: 520px) {
  .nav-container {
    padding: 0.8rem 1rem;
  }
  .mobile-menu {
    top: 68px;
    padding: 0.85rem 1rem;
  }
  .logo {
    gap: 0.5rem;
    max-width: calc(100vw - 96px);
  }
  .logo-img {
    height: 42px;
    width: 42px;
  }
  .logo-text {
    font-size: 0.93rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  section, .page-header {
    padding: 3.5rem 1rem;
  }
  .page-header {
    padding-top: 6.75rem;
    padding-bottom: 3rem;
  }
  .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .hero p,
  .section-desc {
    font-size: 1rem;
    line-height: 1.75;
  }
  .section-title {
    font-size: clamp(1.95rem, 10vw, 2.75rem);
  }
  .hero-actions {
    gap: 0.75rem;
    margin-bottom: 2.25rem;
  }
  .btn,
  .nav-cta {
    width: 100%;
    padding: 0.85rem 1.1rem;
  }
  .stats-grid {
    gap: 1rem;
  }
  .stat {
    padding: 1.5rem 1rem;
  }
  .stat h3 {
    font-size: 2.35rem;
  }
  .projects-grid,
  .team-grid,
  .process-grid,
  .process-grid-wide,
  .trusted-brands,
  .logo-grid {
    gap: 1rem;
  }
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-gallery-item img {
    height: 180px;
  }
  .highlights-gallery {
    columns: 1;
  }
  .highlights-show-more {
    width: 100%;
    justify-content: center;
  }
  .card,
  .project-body,
  .team-card,
  .brand-card,
  .logo-card {
    padding: 1.25rem;
  }
  .project-card h3,
  .card h3 {
    font-size: 1.25rem;
  }
  .org-node {
    width: min(100%, 220px);
  }
  .process-card img {
    height: 160px;
  }
  .contact-item {
    gap: 0.85rem;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .footer-top,
  .footer-links,
  .footer-social,
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .project-card,
  .card,
  .team-card,
  .brand-card,
  .logo-card,
  .org-node {
    min-width: 0;
  }
  .project-modal {
    padding: 0.75rem;
  }
  .project-modal-dialog {
    height: min(96vh, 760px);
    border-radius: 18px;
  }
  .project-modal-left {
    padding: 1.1rem 1rem 1rem;
  }
  .project-modal-close {
    top: max(0.7rem, env(safe-area-inset-top));
    right: 0.7rem;
    width: 42px;
    height: 42px;
  }
  .project-modal-right {
    min-height: 250px;
  }
  .modal-image-area {
    min-height: 220px;
  }
  .modal-image-wrapper {
    padding: 0.9rem 3rem;
  }
  .modal-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }
  .modal-prev { left: 0.5rem; }
  .modal-next { right: 0.5rem; }
  .modal-image-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .modal-counter {
    margin-left: 0;
  }
  .modal-dots {
    padding: 0.6rem 1rem 0.85rem;
  }
}
