/* 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; }
/* Mobile menu button: the theme draws it white for a dark navbar, invisible on our white one */
.navbar .navbar-toggler{ border:1px solid var(--fs-border); border-radius:8px; padding:.35rem .5rem; }
.navbar .navbar-toggler-icon{
  width:1.4em; height:1.4em;
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230b4f30' stroke-linecap='round' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !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; }

/* Landing: split hero with pitch video */
.hero-split{ padding: 4rem 1rem 2.5rem; background:#fff; }
.hero-split-inner{
  max-width:1100px; margin:0 auto; display:grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap:2.5rem; align-items:center;
}
@media (max-width: 900px){ .hero-split-inner{ grid-template-columns: 1fr; gap:1.75rem; } .hero-split{ padding-top:2.5rem; } }
.hero-brand{ display:flex; align-items:center; gap:.6rem; font-weight:700; color: var(--fs-accent); letter-spacing:.2px; margin-bottom:1rem; }
.hero-brand img{ height:44px; width:auto; }
.hero-split .hero-title{ font-size: clamp(2rem, 3.6vw, 2.9rem); line-height:1.12; margin:0 0 .9rem; border:0; padding:0; }
.hero-split .hero-subtitle{ font-size:1.1rem; color:#3a4a41; margin-bottom:1.5rem; max-width:32rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.75rem; }
.btn-solid, a.btn-solid{
  display:inline-block; padding:.6rem 1.1rem; border:1.5px solid var(--fs-accent);
  color:#fff; background: var(--fs-accent); border-radius:10rem; text-decoration:none; font-weight:600;
  transition: all .15s ease-in-out;
}
.btn-solid:hover{ color:#fff; background: var(--fs-accent-600); border-color: var(--fs-accent-600); }
.hero-video{ margin:0; }
.hero-video video{
  display:block; width:100%; height:auto; aspect-ratio:16/9; background:#dfe9c8;
  border-radius:16px; border:1px solid var(--fs-border); box-shadow: 0 12px 32px rgba(11,79,48,.14);
}
.hero-video figcaption{ margin-top:.6rem; font-size:.9rem; color:#6b7b72; text-align:center; }

/* Landing: highlights strip */
.highlights{ padding: 1rem 1rem .5rem; background:#fff; }
.highlight-grid{ max-width:1100px; margin:0 auto; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1.5rem; }
@media (max-width: 900px){ .highlight-grid{ grid-template-columns: 1fr; gap:1rem; } }
.highlight{ border-left:3px solid var(--fs-accent); padding:.1rem 0 .1rem 1rem; }
.highlight strong{ display:block; color: var(--fs-ink); font-size:1.05rem; }
.highlight span{ color:#485b52; }
.section-label{ max-width:1100px; margin:0 auto .75rem; font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#6b7b72; }

/* About us */
.about-intro{ display:grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap:2.5rem; align-items:start; margin: .5rem 0 3rem; }
@media (max-width: 900px){ .about-intro{ grid-template-columns: 1fr; gap:1.5rem; } }
.about-intro .about-lead{ font-size:1.2rem; line-height:1.55; color:#23352c; }
.about-outlook{ border-left:3px solid var(--fs-accent); padding-left:1rem; color:#23352c; }
.about-path{ list-style:none; margin:0; padding:1.25rem 1.25rem 1.1rem; background:#F0FDF4; border:1px solid #DCFCE7; border-radius:14px; }
.about-path li{ position:relative; padding:0 0 1.1rem 1.5rem; color:#485b52; font-size:.95rem; }
.about-path li:last-child{ padding-bottom:0; }
.about-path li::before{ content:""; position:absolute; left:0; top:.4rem; width:.65rem; height:.65rem; border-radius:50%; background: var(--fs-accent); }
.about-path li::after{ content:""; position:absolute; left:.29rem; top:1.15rem; bottom:-.3rem; width:1.5px; background:#b9d8c4; }
.about-path li:last-child::after{ display:none; }
.about-path strong{ display:block; color: var(--fs-accent); font-size:1rem; }

.team-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:1.5rem; margin: 1.5rem 0 2.5rem; }
@media (max-width: 900px){ .team-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:1rem; } }
.team-card{ margin:0; }
.team-card img{
  display:block; width:100%; aspect-ratio:3/4; object-fit:cover; object-position:center top;
  border-radius:14px; background:#eef2f5; border:1px solid var(--fs-border);
  filter: grayscale(1) contrast(1.05); transition: filter .35s ease, box-shadow .35s ease, transform .35s ease;
}
.team-card:hover img{ filter:none; box-shadow: 0 10px 28px rgba(11,79,48,.16); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce){ .team-card img{ transition:none; } .team-card:hover img{ transform:none; } }
/* Collaborators: smaller cards than the core team */
.team-grid.collab-grid{ grid-template-columns: repeat(auto-fill, minmax(150px, 180px)); gap:1.25rem; }
.collab-grid .team-name{ font-size:.98rem; }
.collab-grid .team-role{ font-size:.86rem; line-height:1.4; }
.collab-grid .team-avatar span{ font-size:2rem; }
@media (max-width: 900px){ .team-grid.collab-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Placeholder when no photo is available: initials on a soft green field */
.team-avatar{
  display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:3/4;
  border-radius:14px; border:1px solid var(--fs-border); box-sizing:border-box;
  margin-bottom:.5rem; /* matches Bootstrap .figure-img on the photos, so captions line up */
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.55) 0 22%, transparent 23%),
    linear-gradient(160deg, #DCFCE7 0%, #B7E0BE 100%);
  transition: box-shadow .35s ease, transform .35s ease;
}
.team-avatar span{
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight:800; letter-spacing:.04em; color: var(--fs-accent);
  margin-top:-12%;
}
.team-card:hover .team-avatar{ box-shadow: 0 10px 28px rgba(11,79,48,.16); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce){ .team-avatar{ transition:none; } .team-card:hover .team-avatar{ transform:none; } }
.team-card figcaption{ padding:.75rem .15rem 0; }
.team-name{ font-weight:700; color: var(--fs-accent); font-size:1.08rem; line-height:1.25; }
.team-role{ color:#485b52; font-size:.95rem; }
.team-group{ display:inline-block; margin-top:.35rem; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--fs-accent); background:#DCFCE7; border-radius:10rem; padding:.1rem .55rem; }
.about-partners{ background:#F0FDF4; border:1px solid #DCFCE7; border-radius:14px; padding:1.1rem 1.25rem; color:#23352c; }
.about-partners p{ margin:0; }
