/* Basic, modern reset */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html:focus-within{scroll-behavior:smooth}
body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.6;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,'Helvetica Neue',Arial,'Apple Color Emoji','Segoe UI Emoji';color:#0f172a;background:#ffffff}
img,picture,svg,video{display:block;max-width:100%}
input,button,textarea,select{font:inherit}
:root{
  --bg:#ffffff;
  --bg-alt:#f6f7fb;
  --text:#0f172a;
  --muted:#475569;
  --brand:#1f6feb;
  --brand-600:#1a62d3;
  --ring: rgba(31, 111, 235, .35);
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

/* Layout helpers */
.container{max-width:1100px;margin-inline:auto;padding:0 1.25rem}
.grid{display:grid;gap:1.25rem}
.grid.two{grid-template-columns:1fr}
.grid.three{grid-template-columns:1fr}
.section{padding:4.5rem 0}
.section-alt{background:var(--bg-alt)}
.section-reduced-top{padding-top:2rem}
.section-lead{color:var(--muted);max-width:100ch;margin:.5rem 0 1.5rem}
.section-header{margin-bottom:1rem}

/* Header */
.header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(10px);box-shadow:none;z-index:50;border-bottom:1px solid transparent;transition:box-shadow .2s ease,border-color .2s ease}
.header.scrolled{box-shadow:0 6px 20px rgba(0,0,0,.08);border-color:var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:64px}
.logo{display:flex;gap:.5rem;align-items:center;font-weight:700;color:var(--text);text-decoration:none}
.logo svg{fill:var(--brand)}
.nav-toggle{display:inline-flex;flex-direction:column;gap:4px;border:0;background:transparent;padding:.5rem;margin:-.5rem;border-radius:.5rem}
.nav-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.nav-toggle-bar{width:24px;height:2px;background:var(--text)}
.nav{position:fixed;inset:0 0 auto 0;background:rgba(255,255,255,.98);transform:translateY(-100%);transition:transform .25s ease}
.nav.open{transform:translateY(0)}
.nav ul{list-style:none;padding:5rem 1.25rem 2rem;display:grid;gap:1rem}
.nav a{color:var(--text);text-decoration:none;font-weight:600}
@media (min-width: 900px){
  .nav{position:static;transform:none;background:transparent}
  .nav ul{padding:0;display:flex;gap:1.25rem}
  .nav-toggle{display:none}
}

/* Hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#ebf2ff,transparent 70%)}
/* .hero-inner{padding:4rem 0 10rem;position:relative;z-index:2} */
.hero h1{font-size:clamp(2rem, 4vw + 1rem, 3rem);line-height:1.15;margin-bottom:.75rem;background: rgba(0,0,0,0.4);
  padding: 0.3em 0.6em;
  border-radius: 4px;}
.hero p{color:var(--muted)}
.hero-cta{margin-top:1rem;display:flex;gap:.75rem;flex-wrap:wrap;position:relative;z-index:3}
/* .hero-art{position:absolute;inset:auto -20% -20% -20%;opacity:.15;pointer-events:none;z-index:1}Cards & features */
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1rem;box-shadow:var(--shadow)}
.features .card .icon{font-size:1.5rem}
/* .mission-grid{grid-template-columns:repeat(2, 1fr)!important} */
/* Mission: 2 columns on wide screens, stack on mobile */
/* Hero fills (viewport - header) and centers content */
/* HERO: bigger background area and centered content */
.hero{
  min-height: calc(100vh - 64px + 120px); /* a little taller than the viewport */
  display: grid;
  place-items: center;                     /* center vertically + horizontally */
}

/* Center all text and keep it close together */
.hero-inner{
  padding: 2rem 0;
  display: grid;
  gap: .75rem;            /* tight spacing between heading, text, buttons */
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.hero h1{ margin: 0; color: #E0E0E0; }
.hero h4{ margin: 0; color: var(--muted); font-weight: normal; }
.hero p{ margin: 0; color: var(--muted); }

/* Center buttons */
.hero-cta{
  justify-content: center;
  gap: .5rem;
  margin-top: .25rem;
}
/* .hero-art{
  position: absolute;
  inset: 0;              
  opacity: .15;
  pointer-events: none;
  z-index: 1;
}
.hero-art img{
  width: 100%;
  height: 100%;
  object-fit: cover;     
  display: block;
}

.hero-inner{ position: relative; z-index: 2; } */



.mission-grid { 
  display: grid; 
  grid-template-columns: 1fr;           /* mobile: 1 per row */
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 700px){
  .mission-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* desktop: 2 per row */
  }
}

/* Project grid */
.project-grid{margin-top:1rem}
.project-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.project-card img{aspect-ratio:16/9;object-fit:cover}
.project-content{padding:1rem}
.project-content h3{margin-bottom:.25rem}
.tags{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 0;padding:0}
.tags li{font-size:.825rem;background:#eef2ff;border:1px solid #dbeafe;border-radius:999px;padding:.15rem .5rem}

/* Media card */
.media-card{border-radius:16px;overflow:hidden;border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow)}
.media-card img{width:100%;height:auto}
.media-card figcaption{padding:.5rem .75rem;color:var(--muted);border-top:1px solid var(--border);background:var(--bg-alt)}

/* Team section */
/* .team-grid{margin-top:1rem;align-items:stretch;display:grid;grid-template-columns:repeat(2, 1fr)} */
.team-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);text-align:center;height:100%}
.team-photo{aspect-ratio:1;overflow:hidden;flex-shrink:0;width:100%}
.team-photo img{width:100%;height:100%;object-fit:cover}
/* .team-content{padding:1.5rem;display:flex;flex-direction:column;flex:1;min-height:0} */
.team-content h3{margin-bottom:.25rem;font-size:1.25rem}
.team-role{color:var(--brand);font-weight:600;margin-bottom:.75rem;font-size:.9rem}
/* .team-content p{margin-bottom:1rem;color:var(--muted);flex:1;min-height:3em}
.team-social{display:flex;justify-content:center;gap:.75rem;margin-top:auto;padding-top:1rem} */
.team-social a{text-decoration:none;font-size:1.25rem;padding:.5rem;border-radius:50%;background:var(--bg-alt);border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem}
.team-social a:hover{background:var(--brand);color:white;border-color:var(--brand)}


.team-content{
  padding:.75rem 1.5rem 1.5rem;   /* ↓ less space above the name/role */
  display:flex;
  flex-direction:column;
  gap:.5rem;                      /* small, consistent gaps between text blocks */
  flex:1;
  min-height:0;
}

.team-content p{
  margin:0;                /* let `gap` handle spacing */
  color:var(--muted);
  /* remove flex:1 and min-height so the paragraph doesn't stretch */
}

.team-social{
  display:flex;
  justify-content:center;
  gap:.75rem;
  margin-top:1.25rem;      /* ↑ more space below the description */
  padding-top:0;
  /* removed margin-top:auto so spacing is consistent */
}
/* .team-grid {
  display: grid;
  grid-template-columns: 1fr;
}

/* two equal columns on larger screens */
/*@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
} */

/* Contact section specific */
.contact-lead{max-width:150ch!important}



/* Buttons */
.btn{appearance:none;border:1px solid var(--border);background:#fff;border-radius:999px;padding:.6rem 1rem;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem;font-weight:600;cursor:pointer}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:3px solid var(--ring);outline-offset:2px}
.btn-primary{background:#384E5F;border-color:#384E5F;color:#fff}
.btn-primary:hover{background:transparent;border-color:#384E5F;color:#384E5F}
.btn-ghost{background:#384E5F;border-color:#384E5F;color:#fff}
.btn-ghost:hover{background:transparent;border-color:#384E5F;color:#384E5F}

/* Forms - COMMENTED OUT */
/*
.field{display:grid;gap:.35rem}
.field input,.field textarea{border:1px solid var(--border);border-radius:12px;padding:.7rem .9rem;background:#fff}
.field input:focus,.field textarea:focus{outline:3px solid var(--ring);border-color:var(--brand)}
.contact-form{display:grid;gap:1rem;margin-top:.5rem}
.form-actions{display:flex;align-items:center;gap:1rem;margin-top:.25rem}
#contact-status{color:var(--muted);min-height:1.2em}
*/

/* Footer */
.footer{border-top:1px solid var(--border);padding:2rem 0;margin-top:2rem;background:#fff}
.footer-inner{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start;justify-content:space-between}
.footer-nav{display:flex;gap:1rem}
.footer a{text-decoration:none;color:var(--muted)}
.footer a:hover{color:var(--text)}

/* Skip link */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;z-index:1000;background:#fff;border:2px solid var(--brand);padding:.5rem 1rem;border-radius:8px}

/* Responsive grids */
@media (min-width: 700px){
  .grid.two{grid-template-columns:1.25fr .75fr}
  .grid.three{grid-template-columns:repeat(3, 1fr)}
  .footer-inner{flex-direction:row;align-items:center}
}

/* Team: 2 columns on wide screens, stack on mobile */
.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;                      /* mobile: stack */
  align-items: stretch;
  margin-top: 1rem;
}
@media (min-width: 700px){
  .grid.team-grid {                                 /* a bit more specific */
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;  /* desktop: 2 per row */
  }
}


/* === Mission: 2×2 cards (each ~50%) === */
.grid.mission-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr; /* mobile */
}
@media (min-width: 700px){
  .grid.mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* desktop: 2 per row */
  }
}

/* === Team: 2 cards side-by-side (each ~50%) === */
.grid.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr; /* mobile */
  align-items: stretch;
}
@media (min-width: 700px){
  .grid.team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* desktop: 2 per row */
  }
}

/* More space below the "Who we are" heading */
#about h2 {
  margin-bottom: 1.75rem; /* tweak to taste */
}

/* 2) More space below the "Our mission" area */
#mission h2 {
  margin-bottom: 1rem; /* adds space between heading and cards */
}
#mission {
  padding-bottom: 6rem; /* adds space after the whole mission section */
}


/* Project card variant: title + list of links */
.project-card--list .project-content {
  padding-top: .75rem; /* a bit tighter above the title */
}

.project-card--list h3 {
  margin-bottom: .5rem;
}

.project-card--list .project-list {
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
  display: grid;
  gap: .5rem; /* space between list items */
}

/* Link rows */
.project-card--list .project-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

/* Hover / focus */
.project-card--list .project-list li a:hover,
.project-card--list .project-list li a:focus-visible {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateY(-1px);
  outline: none;
}

.hero{ position: relative; overflow: hidden; }

.hero-art{
  position: absolute;
  inset: 0;                 /* fill the hero */
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.hero .hero-art img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;  /* defeat the global max-width */
  object-fit: cover !important;/* fill the hero; crops if needed */
  display: block;
}

/* keep content above the image */
.hero-inner{ position: relative; z-index: 2; }