:root {
  --navy: #08172f;
  --navy-light: #0e2140;
  --green: #294d36;
  --green-light: #3d6951;
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --ink: #16202e;
  --ink-soft: #4c5a6b;
  --border: #e1e5eb;
  --white: #ffffff;
  --shadow: 0 10px 30px -12px rgba(8, 23, 47, 0.18);
  --radius: 14px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -10px rgba(10,29,59,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo { height: 42px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { color: var(--ink-soft); transition: color .2s ease; }
.nav a:hover { color: var(--navy); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--green-light); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: var(--navy);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(76,131,101,0.35), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(76,131,101,0.18), transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), transparent 70%);
  opacity: 0.25;
  filter: blur(10px);
}
.hero-inner { position: relative; max-width: 720px; }
.eyebrow {
  color: var(--green-light);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 34px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 48px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(51, 96, 68, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
@media (min-width: 901px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--navy); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px;
}
.about-text p { color: var(--ink-soft); line-height: 1.7; font-size: 1.02rem; }
.prose { color: var(--ink-soft); line-height: 1.7; font-size: 1.02rem; max-width: 760px; }

/* ---------- Phase badges ---------- */
.phase-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.phase-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.phase-badge strong {
  background: rgba(51,96,68,0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.contact-card strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 0.98rem; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.contact-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(10,29,59,0.06);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 19px; height: 19px; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-logo { width: 64px; height: auto; }
.footer-text p { margin: 3px 0; font-size: 0.88rem; }
.footer-text strong { color: var(--white); }

/* ---------- Nav active state ---------- */
.nav a.is-active { color: var(--navy); font-weight: 800; }

/* ---------- Interior page hero ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 60px;
}
.page-hero .eyebrow { color: var(--green-light); }
.page-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero-lead-dark {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

/* ---------- Home teaser grid ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.teaser-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.teaser-card .section-lead { margin-bottom: 24px; }
.btn-primary-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(51,96,68,0.1);
  color: var(--green);
  transition: background .2s ease;
}
.btn-primary-ghost:hover { background: rgba(51,96,68,0.18); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 50px 24px;
  flex-wrap: wrap;
}
.cta-band-inner h2 { color: var(--white); margin: 0 0 6px; font-size: 1.4rem; }
.cta-band-inner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); }
.cta-band .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-alt);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info h3 { margin: 0 0 2px; font-size: 1.05rem; color: var(--navy); }
.team-role { margin: 0 0 8px; color: var(--green); font-weight: 700; font-size: 0.85rem; }
.team-bio { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px; }
.project-tag {
  display: inline-block;
  background: rgba(51,96,68,0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-body h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--navy); }
.project-body p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.project-note {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    font-size: 1.05rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-top: 1px solid var(--border);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-cta { align-self: flex-start; }
  .nav-toggle { display: flex; }
  .hero { padding: 96px 0 70px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
  .header-inner { height: 68px; }
  .brand-logo { height: 34px; }
}
