/* Contributors Grid */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 3rem 0 2rem 0;
  justify-items: center;
  /* Make each grid item stretch to the row height for even frames in each row */
  align-items: stretch;
}
.contributor {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(11,79,48,0.06);
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  /* Lock a consistent frame size across all cards */
  width: 260px; /* fixed width to avoid slight width drift */
  height: 340px; /* fixed total height so frames match exactly */
  transition: box-shadow 0.2s;
  /* Ensure uniform card layout regardless of name length */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contributor:hover {
  box-shadow: 0 6px 24px rgba(11,79,48,0.13);
  border-color: var(--fs-accent);
}
.contributor img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2.5px solid var(--fs-accent);
}
.contributor-name {
  font-weight: 600;
  color: var(--fs-accent);
  margin-bottom: 0.15rem; /* tighter gap to role */
  font-size: 1.08rem;
  /* Let long names wrap cleanly and reserve space for up to ~3 lines */
  line-height: 1.25;
  min-height: 3.75em; /* ~3 lines of text */
  overflow-wrap: anywhere; /* allow breaking long words */
  hyphens: auto; /* nicer breaks for hyphenatable names */
  text-wrap: balance; /* improve multi-line balance where supported */
}
.contributor-role {
  color: #485b52;
  font-size: 0.98rem;
  /* Keep role immediately after name; rely on card fixed height for alignment */
  margin-top: 0; 
}
:root{
  --fs-accent:#0b4f30;
  --fs-accent-600:#0a442a;
  --fs-border:#e6eaef;
  --fs-ink:#0e1b14;
}

/* Base */
html, body { background:#fff; }
body { 
  color: var(--fs-ink);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height:1.6;
}

/* Navbar */
.navbar, .navbar.navbar-expand-lg{
  background:#fff !important;
  border-bottom:1px solid var(--fs-border);
  position: sticky; top:0; z-index: 1030;
}
.navbar .navbar-brand, .navbar .navbar-title{ color: var(--fs-accent) !important; font-weight:600; letter-spacing:.2px; }
.navbar .navbar-brand img, .navbar .navbar-logo{ height:28px; width:auto; margin-right:.5rem; }
.navbar .nav-link{ color:#233 !important; font-weight:500; }
.navbar .nav-link:hover{ color: var(--fs-accent) !important; }

/* Hero */
.hero{ padding: 6rem 1rem 3rem; text-align:center; background:#fff; }
.hero-inner{ max-width: 960px; margin: 0 auto; }
.hero-logo{ height:160px; width:auto; margin: 0 auto 1.5rem; display:block; }
.hero-title{ font-size: clamp(2rem, 4vw, 3rem); margin:.25rem 0 .5rem; font-weight:800; letter-spacing:.2px; }
.hero-subtitle{ font-size:1.1rem; color:#4b5; color:#3a4a41; margin-bottom:1.25rem; }

/* Particle/Sphere placeholder */
.hero-visual{ display:flex; justify-content:center; margin: 0 auto 1.25rem; }
.particle-sphere{
  height: 260px; width: 260px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(11,79,48,.08), rgba(11,79,48,0) 60%),
    radial-gradient(circle at 35% 30%, rgba(11,79,48,.10) 0 2px, transparent 3px) 0 0/22px 22px repeat,
    radial-gradient(circle at 70% 60%, rgba(11,79,48,.09) 0 2px, transparent 3px) 6px 10px/22px 22px repeat,
    radial-gradient(circle at 50% 50%, #f4f6f8, #eef2f5 70%);
  box-shadow: inset 0 20px 30px rgba(0,0,0,.03), inset 0 -10px 20px rgba(0,0,0,.02), 0 8px 24px rgba(0,0,0,.06);
}

/* Button (outline) */
.btn-outline, a.btn-outline{
  display:inline-block; padding:.6rem 1rem; border:1.5px solid var(--fs-accent);
  color: var(--fs-accent); border-radius:10rem; text-decoration:none; font-weight:600;
  transition: all .15s ease-in-out; background:transparent;
}
.btn-outline:hover{ color:#fff; background: var(--fs-accent); border-color: var(--fs-accent); }

/* Features */
.features{ padding: 2rem 1rem 4rem; background:#fff; }
.feature-grid{ max-width:1100px; margin:0 auto; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1rem; }
@media (max-width: 900px){ .feature-grid{ grid-template-columns: 1fr; } }
.feature-card{ border:1px solid var(--fs-border); border-radius:14px; padding:1.25rem 1.25rem; text-decoration:none; color:inherit; background:#fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.feature-card:hover{ border-color: rgba(11,79,48,.35); box-shadow: 0 4px 14px rgba(11,79,48,.08); transform: translateY(-1px); }
.feature-card h3{ margin:.25rem 0 .25rem; font-weight:700; color: var(--fs-accent); }
.feature-card p{ margin:0; color:#485b52; }

/* Keep content from sitting under sticky navbar when jumping to anchors */
:target{ scroll-margin-top: 80px; }

/* Footer */
.landing-footer{ padding: 2rem 1rem 1.5rem; background:#fff; border-top:1px solid var(--fs-border); }
.footer-content{ max-width:1100px; margin:0 auto; text-align:left; }
.footer-content p{ margin:0; color:#6b7b72; font-size:0.9rem; }
