:root {
  --bg: #FEFEFE;
  --vivid-royal: #1218B5;
  --golden-bronze: #CA9A32;
  --wisteria-blue: #3a4a9e;
  --pale-blue: #eef1ff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--vivid-royal); overflow-x: hidden; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: 92px;
  background: rgba(254,254,254,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,24,181,.15); transition: box-shadow .3s;
  box-shadow: 0 2px 20px rgba(18,24,181,.07);
}
.logo-wrap { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.logo-img-box { width: 66px; height: 66px; border-radius: 10px; background: rgba(18,24,181,.06); border: white; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-img-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text-block { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--vivid-royal); letter-spacing: -.02em; }
.logo-name span { color: var(--golden-bronze); }
.logo-tagline { font-size: .66rem; font-weight: 400; color: var(--wisteria-blue); letter-spacing: .07em; text-transform: uppercase; margin-top: .1rem; }
nav ul { list-style: none; display: flex; gap: 2.2rem; align-items: center; }
nav ul a { font-size: .84rem; font-weight: 500; color: var(--vivid-royal); text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: color .2s; }
nav ul a:hover { color: var(--golden-bronze); }
nav ul a.active { color: var(--golden-bronze); font-weight: 700; }
.nav-cta { background: var(--golden-bronze) !important; color: #fff !important; padding: .5rem 1.3rem; border-radius: 5px; font-weight: 700 !important; transition: opacity .2s, transform .2s !important; }
.nav-cta:hover { opacity: .88 !important; transform: translateY(-1px) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--vivid-royal); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(254,254,254,.99); padding: 1.5rem 6vw 2rem; border-bottom: 1px solid rgba(18,24,181,.1); z-index: 199; flex-direction: column; gap: 1.2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--vivid-royal); text-decoration: none; letter-spacing: .05em; text-transform: uppercase; padding: .5rem 0; border-bottom: 1px solid rgba(18,24,181,.08); transition: color .2s; }
.mobile-menu a:hover { color: var(--golden-bronze); }

.page-hero {
  min-height: 50vh; background: var(--bg); position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 10rem 6vw 6rem;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,24,181,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(18,24,181,.05) 1px, transparent 1px);
  background-size: 56px 56px; animation: gridMove 22s linear infinite;
}
@keyframes gridMove { to { background-position: 56px 56px; } }
.page-hero::after {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(18,24,181,.06) 0%, transparent 70%);
  top: -150px; right: -150px; border-radius: 50%;
  animation: orbPulse 8s ease-in-out infinite alternate;
}
@keyframes orbPulse { from { transform: scale(1); opacity:.5; } to { transform: scale(1.2); opacity:1; } }
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--golden-bronze); margin-bottom: 1.2rem; animation: fadeUp .6s ease both; }
.hero-eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--golden-bronze); }
.page-hero h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.04; color: var(--vivid-royal); letter-spacing: -.03em; animation: fadeUp .6s .1s ease both; }
.page-hero h1 .highlight { color: var(--golden-bronze); display: block; }

/* ══ SHARED ══ */
.section-label { font-size: .73rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--golden-bronze); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.section-label::before { content: ''; display: block; width: 26px; height: 2px; background: var(--golden-bronze); }
.section-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.3rem; color: var(--vivid-royal); }

/* ══ PROJECTS SECTION ══ */
#projects { padding: 7rem 6vw; background: var(--pale-blue); }
.projects-header { margin-bottom: 4rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.projects-grid .project-card:nth-child(4),
.projects-grid .project-card:nth-child(5) {
  grid-column: span 1;
}
.projects-last-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: calc(66.66% - .5rem);
  /* center the two cards */
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  background: var(--bg);
  border: 1px solid rgba(18,24,181,.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(18,24,181,.13);
  border-color: rgba(18,24,181,.25);
}

.project-img {
  width: 100%; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #dce4ff, #c8d4ff);
  position: relative;
}
.project-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.project-card:hover .project-img img { transform: scale(1.05); }
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .7rem;
}
.project-img-placeholder-icon { font-size: 3rem; opacity: .25; }
.project-img-placeholder-text { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(18,24,181,.3); }

.project-body { padding: 1.5rem 1.6rem 1.8rem; }
.project-tag {
  display: inline-block; font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(18,24,181,.08); color: var(--vivid-royal);
  padding: .18rem .65rem; border-radius: 100px; margin-bottom: .75rem;
}
.project-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--vivid-royal);
  margin-bottom: .3rem; line-height: 1.2;
}
.project-location {
  font-size: .78rem; font-weight: 400;
  color: var(--wisteria-blue); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .3rem;
}
.project-location::before { content: '📍'; font-size: .7rem; }
.project-scope {
  font-size: .82rem; color: var(--wisteria-blue);
  line-height: 1.65; font-weight: 300;
  border-top: 1px solid rgba(18,24,181,.08);
  padding-top: .9rem; margin-top: .3rem;
}
.project-scope strong { color: var(--vivid-royal); font-weight: 600; }

footer { background: var(--vivid-royal); border-top: 1px solid rgba(255,255,255,.1); padding: 2.5rem 6vw; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-logo-box { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(202,154,50,.4); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.footer-logo-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: #fff; }
.footer-logo-text span { color: var(--golden-bronze); }
.footer-links { display: flex; gap: 1.8rem; list-style: none; }
.footer-links a { font-size: .79rem; color: rgba(210,220,255,.75); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--golden-bronze); }
.footer-copy { font-size: .76rem; color: rgba(210,220,255,.5); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-last-row { max-width: 100%; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-last-row { grid-template-columns: 1fr; max-width: 100%; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  footer { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-top: 8rem; }
}