:root {
  --olive: #364025;
  --muted: #60635b;
  --container: 1220px;
}

/* ==== KEEP GLOBAL BODY (unchanged, keeps Poppins) ==== */
body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  font-family: Poppins, sans-serif; /* <-- same as before */
  background: #fff;
  color: #222;
}

/* ========= PROJECTS PAGE ONLY (scoped) ========= */

/* Containers */
.projects { padding: 45px 0 80px; }
.projects .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.projects .container-wide {
  max-width: 1226px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Text inside projects only (so footer won’t be affected) */
.projects p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

/* Hero */
.projects .projects-hero { text-align: center; }
.projects .projects-hero h1 {
  margin: 0 0 14px;
  color: var(--olive);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
}
.projects .projects-hero .lead {
  max-width: 800px;
  margin: 0 auto 22px;
  color: #60635b;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

/* Filter chips */
.projects .chip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.projects .chip {
  border: 1px solid var(--olive);
  background: #fff;
  color: var(--olive);
  font-weight: 300;
  font-size: 15px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.projects .chip.is-active {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}
.projects .chip:hover {
  color: #fff;
  background-color: #899064;
}

/* Projects grid */
.projects .projects-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.projects .project-card {
  display: block;
  position: relative;
  height: 636px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.projects .project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.projects .project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(54,64,37,0) 0%, rgba(54,64,37,0.90) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 30px;
  border-radius: 10px;
}
.projects .project-card .overlay h3 {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.projects .project-card .overlay p {
  margin: 0;
  color: #CFBB9A;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
}
.projects .project-card.span-2 { grid-column: 1 / -1; }
.projects .overlay .meta {
  font-weight: 300;
  margin: 0.25rem 0 0.35rem;
  font-size: 16px;
}

/* Animations (scoped) */
.projects .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.projects .reveal.show {
  opacity: 1;
  transform: none;
}
.projects .project-card.reveal { transition-duration: .5s; }
@media (prefers-reduced-motion: reduce) {
  .projects .reveal,
  .projects .reveal.show {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .projects .projects-list { gap: 18px; }
  .projects .project-card,
  .projects .project-card.span-2 {
    height: 54vw;
    min-height: 320px;
  }
  .projects .project-card .overlay h3 { font-size: 28px; }
  .projects .project-card .overlay p {
    font-size: 16px;
    font-weight: 300;
  }
}
@media (max-width: 700px) {
  .projects .projects-list { grid-template-columns: 1fr; }
  .projects .project-card.span-2 { grid-column: 1; }
  .projects .project-card,
  .projects .project-card.span-2 {
    height: 62vw;
    min-height: 280px;
  }
}
@media (max-width: 600px) {
  .projects { padding-top: 40px; }
  .projects .chip { font-size: 15px; padding: 9px 16px; }
  .projects p { font-size: 16px; font-weight: 300; }
}
