/* ===============================
   GLOBAL
================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.section {
  padding: 40px 8%;
}

.text-narrow {
  max-width: 850px;
  width: 100%;
}

/* ===============================
   HEADER
================================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  border-bottom: 1px solid #eee;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-box {
  color: #cc3300;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  font-style: italic;
  font-weight: 600;
}

.logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #000;
}

.aceaa-logo {
  width: 60%;
  max-width: 511px;
  margin-left: 8%;
}

nav a {
  margin-left: 30px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.6;
}

/* ===============================
   HERO
================================= */

.hero {
  padding: 120px 8%;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1rem;
  color: #666;
}

/* ===============================
   INTRO SPLIT (projects page)
================================= */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-media .ecosystems-img img {
  width: 70%;
  margin: 0;
}

/* ===============================
   PROJECT GRID (index page)
================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-item {
  position: relative;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: white;
}

.project-overlay h3 {
  font-weight: 600;
  margin-bottom: 5px;
}

.project-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===============================
   PROJECT PAGE — META
================================= */

.project-meta {
  margin: 25px 0;
}

.project-meta p {
  margin-bottom: 6px;
  color: #555;
}

/* ===============================
   FOOTER
================================= */

footer {
  padding: 60px 8%;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #eee;
  margin-top: 80px;
}

/* ===============================
   COLLAB GRID (projects page)
================================= */

.collab-section {
  padding: 60px 8%;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.collab-group p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 4px;
}

.collab-group a {
  font-size: 1rem;
  color: #cc3300;
}

.collab-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222 !important;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* ===============================
   ECOSYSTEMS PAGE
================================= */

.ecosystems-img img {
  width: 500px;
  max-width: 100%;
  margin: 0 auto;
}

address {
  padding: 0 8%;
  font-style: normal;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {
  .hero {
    padding: 80px 8%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  header {
    flex-direction: column;
    gap: 15px;
  }

  nav a {
    margin-left: 15px;
  }

  .intro-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .collab-section {
    padding: 40px 8%;
  }

  .collab-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}