/* css/home.css */
.hero {
  min-height: 50vh;
  padding-top: var(--nav-height);
  display: flex; align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;  /* text fills space, image is natural */
  gap: 4rem; align-items: center;
  padding: 5rem 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05; margin-bottom: 1rem;

  font-weight: 700;
}
.hero-desc {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 460px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 3/4;
  border-radius: var(--radius) var(--radius) 100px var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.project-thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body { padding: 1.5rem; }
.project-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.2rem 0.6rem; border-radius: 50px; margin-bottom: 0.5rem;
}
.project-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.4rem; color:var(--ink); }
.project-desc { font-size: 0.88rem; color: var(--ink-soft); }


/* ─── Impact section ─── */
.impact-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.impact-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.75rem;
  align-items: center;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.impact-item:nth-child(2n) { border-right: none; }
.impact-item:nth-last-child(-n+2) { border-bottom: none; }
.impact-item:hover { background: var(--bg-elevated); }
.impact-icon {
  grid-column: 1;
  grid-row: 1;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
}
.impact-icon svg {
  width: 17px; height: 17px;
  color: var(--accent);
}
.impact-body {
  grid-column: 2;
  grid-row: 1;
}
.impact-stat {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.impact-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 500px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-item { border-right: none; border-bottom: 1px solid var(--border); }
  .impact-item:last-child { border-bottom: none; }
}


/* Mobile */
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { width: 100%; max-width: 260px; margin: 0 auto; }
}