/* GCRI — Global Communication Reproducibility Initiative
   Shared Stylesheet
   ──────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
  /* Palette */
  --c-bg:       #faf9f8;
  --c-bg-alt:   #f4f1fb;
  --c-bg-dark:  #1c1728;
  --c-text:     #1c1728;
  --c-mid:      #3d3356;
  --c-muted:    #6b6082;
  --c-primary:  #3d2f72;
  --c-p2:       #5a3e8a;
  --c-pale:     #ede9f7;
  --c-gold:     #b8860b;
  --c-gold-btn: #c8970e;
  --c-border:   #e2daf2;
  --c-white:    #ffffff;

  /* Type */
  --f-serif: Georgia, 'Times New Roman', serif;
  --f-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6.5rem;

  /* Layout */
  --max-w: 1160px;
  --nav-h: 88px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(29,22,55,0.07);
  --sh-md: 0 4px 22px rgba(29,22,55,0.11);
  --sh-lg: 0 10px 44px rgba(29,22,55,0.16);

  /* Transition */
  --t: 0.2s ease;
}

/* ═══════════════════════════════════════════════════
   2. RESET
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════
   3. BASE TYPOGRAPHY
   ═══════════════════════════════════════════════════ */
body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  line-height: 1.2;
  color: var(--c-primary);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem,   4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw,   2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw,   1.4rem);  }
h4 { font-size: 1.05rem; }

p { color: var(--c-mid); }
strong { font-weight: 600; color: var(--c-text); }

.lead {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--c-mid);
}

/* ═══════════════════════════════════════════════════
   4. LAYOUT
   ═══════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

section { padding: var(--sp-2xl) 0; }
section.alt { background: var(--c-bg-alt); }

/* ═══════════════════════════════════════════════════
   5. NAVIGATION
   ═══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t);
}

#nav.solid {
  background: var(--c-white);
  box-shadow: var(--sh-sm);
}

#nav.transparent { background: transparent; }

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 48px;
  height: 48px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-acronym {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
}

.logo-full {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.nav-links a {
  font-size: 0.865rem;
  font-weight: 500;
  color: var(--c-mid);
  letter-spacing: 0.01em;
  transition: color var(--t);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--c-primary); }
.nav-links a[aria-current="page"] { color: var(--c-primary); font-weight: 600; }

.nav-cta {
  padding: 0.45rem 1.1rem;
  background: var(--c-gold-btn);
  color: var(--c-white) !important;
  border-radius: var(--r-sm);
  font-weight: 600 !important;
  font-size: 0.825rem !important;
  transition: background var(--t), transform var(--t) !important;
}

.nav-cta:hover {
  background: var(--c-gold) !important;
  transform: translateY(-1px);
  color: var(--c-white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--c-white);
  box-shadow: var(--sh-md);
  padding: var(--sp-sm) var(--sp-md);
  z-index: 199;
  border-top: 1px solid var(--c-border);
}

#mobile-menu.open { display: block; }

#mobile-menu li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-mid);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--t);
}

#mobile-menu li:last-child a { border-bottom: none; }
#mobile-menu li a:hover { color: var(--c-primary); }

/* ═══════════════════════════════════════════════════
   6. BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75rem 1.625rem;
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-gold-btn);
  color: var(--c-white);
  border-color: var(--c-gold-btn);
}

.btn-primary:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-pale);
  border-color: var(--c-p2);
  color: var(--c-p2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-p2);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { color: var(--c-primary); }

/* ═══════════════════════════════════════════════════
   7. SECTION HEADERS
   ═══════════════════════════════════════════════════ */
.sec-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-p2);
  margin-bottom: 0.5rem;
}

.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-xl);
}

.sec-head h2 { margin-bottom: 0.75rem; }
.sec-head p  { font-size: 1.025rem; color: var(--c-muted); }

/* ═══════════════════════════════════════════════════
   8. CARDS
   ═══════════════════════════════════════════════════ */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: box-shadow var(--t), transform var(--t);
}

.card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   9. BADGES
   ═══════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge-active {
  background: #e7f5e7;
  color: #176317;
  border: 1px solid #b2d8b2;
}

.badge-active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #176317;
  flex-shrink: 0;
}

.badge-planning {
  background: #fef5e0;
  color: #7a5500;
  border: 1px solid #f5d680;
}

/* ═══════════════════════════════════════════════════
   10. FORMS
   ═══════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-group label .req {
  color: var(--c-gold-btn);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-p2);
  box-shadow: 0 0 0 3px rgba(90,62,138,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--c-mid);
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--c-p2);
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--c-mid);
}

.radio-option input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--c-p2);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   11. HERO SECTION (home)
   ═══════════════════════════════════════════════════ */
.hero-section {
  min-height: 92vh;
  background: var(--c-bg-alt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(61,47,114,0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  padding: var(--sp-xl) 0;
  position: relative;
  width: 100%;
}

.hero-text { max-width: 580px; }

.hero-text h1 {
  margin: 0.625rem 0 1.125rem;
  color: var(--c-primary);
}

.hero-text .lead { margin-bottom: var(--sp-lg); }

.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 620px;
  height: auto;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--c-muted), transparent);
}

/* ═══════════════════════════════════════════════════
   12. WHY 3-COL
   ═══════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  counter-reset: why-c;
}

.why-item {
  padding: var(--sp-lg);
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  counter-increment: why-c;
  content: counter(why-c, decimal-leading-zero);
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  font-family: var(--f-serif);
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--c-pale);
  line-height: 1;
  pointer-events: none;
}

.why-item h3 {
  margin-bottom: 0.625rem;
  font-size: 1.15rem;
  position: relative;
}

.why-item p { font-size: 0.9rem; position: relative; }

/* ═══════════════════════════════════════════════════
   13. STATS ROW
   ═══════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
  margin: var(--sp-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--sp-md) var(--sp-sm);
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}

.stat-num {
  display: block;
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-muted);
}

/* ═══════════════════════════════════════════════════
   14. TIMELINE (vertical)
   ═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.625rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-p2);
  border: 2.5px solid var(--c-white);
  box-shadow: 0 0 0 2px var(--c-p2);
}

.timeline-item.milestone .tl-dot {
  background: var(--c-gold-btn);
  box-shadow: 0 0 0 2px var(--c-gold-btn);
}

.tl-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-p2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1px;
}

.timeline-item.milestone .tl-date { color: var(--c-gold); }

.tl-event {
  font-size: 0.9rem;
  color: var(--c-mid);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   15. MEMBER CARDS
   ═══════════════════════════════════════════════════ */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}

.member-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}

.member-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.member-card-top {
  background: var(--c-bg-alt);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.member-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-meta h3 {
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.member-title-line {
  font-size: 0.79rem;
  color: var(--c-p2);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.member-inst-line {
  font-size: 0.78rem;
  color: var(--c-muted);
  display: block;
  margin-bottom: 5px;
}

.member-role-tag {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: #fef5e0;
  border: 1px solid #f5d67a;
  padding: 2px 7px;
  border-radius: 999px;
}

.member-card-body {
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  flex: 1;
}

.member-bio {
  font-size: 0.875rem;
  color: var(--c-mid);
  line-height: 1.65;
}

/* 5th card: center in a 2-col grid */
.member-grid .member-card:nth-child(5) {
  grid-column: 1 / -1;
  max-width: calc(50% - var(--sp-sm) / 2);
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════
   16. MEMBERS PREVIEW (home page row)
   ═══════════════════════════════════════════════════ */
.members-preview {
  display: flex;
  justify-content: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.mp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.mp-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  box-shadow: var(--sh-md);
  border: 3px solid var(--c-white);
}

.mp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mp-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}

.mp-inst {
  font-size: 0.74rem;
  color: var(--c-muted);
}

/* ═══════════════════════════════════════════════════
   17. PROJECT CARD
   ═══════════════════════════════════════════════════ */
.project-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-lg);
}

.project-card-head {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.project-card-head h3 {
  font-size: 1.35rem;
  margin-top: 0.5rem;
}

.project-target {
  font-size: 0.825rem;
  color: var(--c-muted);
  font-style: italic;
  margin-top: 0.375rem;
}

.project-body { padding: var(--sp-lg); }

.project-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin: var(--sp-md) 0;
}

.ps-item {
  padding: 0.5rem 0.875rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
}

.ps-lbl {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ps-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
}

.rq-list {
  counter-reset: rq-c;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rq-list li {
  font-size: 0.875rem;
  color: var(--c-mid);
  padding-left: 2.75rem;
  position: relative;
  line-height: 1.55;
}

.rq-list li::before {
  counter-increment: rq-c;
  content: 'RQ' counter(rq-c);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--c-p2);
  background: var(--c-pale);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.project-team-line {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--c-border);
  font-size: 0.82rem;
  color: var(--c-muted);
}

.project-team-line strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
}

/* ═══════════════════════════════════════════════════
   18. TWO-COL SECTION
   ═══════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.two-col-text h2 { margin-bottom: var(--sp-sm); }
.two-col-text p  { margin-bottom: var(--sp-md); }
.two-col-text p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════
   19. PLACEHOLDER GRAPHIC
   ═══════════════════════════════════════════════════ */
.placeholder-graphic {
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(
    45deg,
    var(--c-bg-alt),
    var(--c-bg-alt) 6px,
    var(--c-border) 6px,
    var(--c-border) 7px
  );
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   20. PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-p2) 100%);
  color: var(--c-white);
  padding: calc(var(--nav-h) + var(--sp-xl)) 0 var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-hero .container { position: relative; }

.page-hero h1 { color: var(--c-white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.025rem; max-width: 620px; }

/* ═══════════════════════════════════════════════════
   21. FEATURED PROJECT CARD (home)
   ═══════════════════════════════════════════════════ */
.feat-project {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feat-project-banner {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-p2) 100%);
  padding: var(--sp-lg);
  position: relative;
  overflow: hidden;
}

.feat-project-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.feat-project-banner .badge { position: relative; margin-bottom: 0.875rem; }

.feat-project-banner h3 {
  color: var(--c-white);
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  position: relative;
}

.feat-project-banner p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  position: relative;
  max-width: 680px;
  line-height: 1.65;
}

.feat-project-body { padding: var(--sp-lg); }

/* ═══════════════════════════════════════════════════
   22. FOOTER
   ═══════════════════════════════════════════════════ */
#footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.68);
  padding: var(--sp-xl) 0 var(--sp-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-md);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-sm);
  text-decoration: none;
}

.footer-brand-logo .logo-acronym { color: var(--c-white); }
.footer-brand-logo .logo-full    { color: rgba(255,255,255,0.4); }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin-bottom: var(--sp-md);
}

.footer-osf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--c-gold-btn);
  transition: color var(--t);
}

.footer-osf:hover { color: #e8b030; }

.footer-nav-col h4 {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: var(--sp-sm);
}

.footer-nav-col li + li { margin-top: 0.45rem; }

.footer-nav-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t);
}

.footer-nav-col a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: rgba(255,255,255,0.32);
}

/* ═══════════════════════════════════════════════════
   23. CONTACT PAGE
   ═══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-xl);
  align-items: start;
}

.contact-info h3 { margin-bottom: var(--sp-sm); }

.contact-detail {
  margin-bottom: var(--sp-md);
  font-size: 0.9rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════
   24. UTILITIES
   ═══════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted  { color: var(--c-muted); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.divider {
  height: 1px;
  background: var(--c-border);
  margin: var(--sp-lg) 0;
}

/* ═══════════════════════════════════════════════════
   25. RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: var(--sp-lg) 0;
  }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 340px; margin: 0 auto; }
  .hero-section { min-height: unset; padding-bottom: var(--sp-lg); }

  .why-grid   { grid-template-columns: 1fr; }
  .two-col    { grid-template-columns: 1fr; }
  .stats-row  { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: 1fr; }
  .member-grid .member-card:nth-child(5) {
    grid-column: unset;
    max-width: 100%;
    margin-inline: 0;
  }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .container { padding: 0 var(--sp-md); }
}

@media (max-width: 560px) {
  :root { --sp-2xl: 3rem; --sp-xl: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--sp-xs); }
  .stat-num { font-size: 1.6rem; }
  .members-preview { gap: var(--sp-md); }
  .mp-avatar { width: 100px; height: 100px; font-size: 1rem; }
  .project-stats-grid { gap: 6px; }
  .logo-full { white-space: normal; max-width: 90px; }
}
